/* runparty.app's home page (design C "Scoreboard", 6 Nov 2026; reworked phone
   first the same day): the 3D R and RUN. HIKE. RIDE. letters that answer the
   cursor, a live ticker, a dotted route down the page drawn by scrolling, the
   app's screens on phones in a 3D ring turned by scrolling, and a split-flap
   leaderboard (readable rows on phones). The 3D loops are HyperFrames renders
   (motion/). The app's palette A on near-black; one dark look on purpose, like
   the app's share pictures. No italics. */

:root {
  --page: #0b0d0f;
  --panel: #15181b;
  --raised: #1d2125;
  --edge: rgba(255, 255, 255, 0.08);
  --ink: #eef2f4;
  --soft: #a3acb4;
  --faint: #6b747c;
  --lime: #c6ec7c;
  --mint: #8fe3b0;
  --on-lime: #11150b;
  --teal: #6fd6d0;
  --honey: #f2c46b;
  --lavender: #b59cff;
  --display: "Archivo", "Pretendard Variable", "Arial Narrow", system-ui, sans-serif;
  --body: "Manrope", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: max(20px, calc((100vw - 1180px) / 2));
  --line-x: 30px;   /* where the dotted route runs, from the gutter */
  --indent: 72px;   /* how far text keeps clear of it */
  color-scheme: dark;
}
@media (max-width: 720px) { :root { --gutter: 18px; --line-x: 2px; --indent: 22px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.6 var(--body); overflow-x: hidden; overscroll-behavior: none; word-break: keep-all; overflow-wrap: break-word; }
em, i, cite, address { font-style: normal; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
:lang(ko) h2 { letter-spacing: -0.03em; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter); background: rgba(11, 13, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--edge);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav nav a { text-decoration: none; color: var(--soft); font-size: 14.5px; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav nav a.lang { border: 1px solid var(--edge); padding: 6px 11px; font-size: 13px; font-weight: 700; }
.nav nav a.pill { background: var(--lime); color: var(--on-lime); font-weight: 700; margin-left: 4px; }
@media (max-width: 860px) { .nav nav .wide { display: none; } }

/* ---- The sports' moving figures: the app's white loops, tinted here ---- */
.fig { display: inline-block; width: 56px; height: 56px; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; background: var(--c); }
.fig.run { --src: url(/assets/app/run.webp); --c: var(--teal); }
.fig.hike { --src: url(/assets/app/hike.webp); --c: var(--honey); }
.fig.ride { --src: url(/assets/app/ride.webp); --c: var(--lavender); }

/* ---- Hero: the 3D R beside the words; above them on a phone ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 10px 32px; padding: clamp(20px, 5vh, 60px) var(--gutter) 36px; }
.hero-r { order: 2; position: relative; }
.hero-r::after { content: none; }
#r3d { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.hero-r { aspect-ratio: 1; }
.r-poster, #r3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.r-poster { object-fit: cover; transition: opacity 0.6s; }
.hero-r.live .r-poster { opacity: 0; }
#r3d { touch-action: pan-y; }
.hero-copy { order: 1; display: grid; gap: 22px; min-width: 0; }
.words { font-weight: 400; line-height: 0.82; font-size: clamp(64px, 11vw, 176px); letter-spacing: -0.02em; user-select: none; -webkit-user-select: none; }
.words .w { display: block; white-space: nowrap; }
.words .l {
  display: inline-block; font-variation-settings: "wght" var(--wg, 320), "wdth" var(--wd, 70);
  transform: translateY(var(--ly, 0)); transition: font-variation-settings 0.18s ease-out, transform 0.18s ease-out, color 0.3s;
}
.words .w.run .l.hot { color: var(--teal); }
.words .w.hike .l.hot { color: var(--honey); }
.words .w.ride .l.hot { color: var(--lavender); }
.words .dot { color: var(--lime); }
.figs { display: flex; gap: 14px; }
.figs .fig { width: 44px; height: 44px; }
.sub { margin: 0; color: var(--soft); max-width: 46ch; font-size: 17px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 6px; }
  .hero-r { order: 0; width: min(92vw, 460px); justify-self: center; margin-bottom: -18px; }
  .words { font-size: 31vw; line-height: 0.8; }
  .figs { position: absolute; }
  .hero-copy { position: relative; }
  .figs { right: 0; top: 4px; flex-direction: column; gap: 8px; }
  .figs .fig { width: 38px; height: 38px; }
}

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: grid; padding: 9px 18px; border-radius: 14px; background: var(--raised); border: 1px solid var(--edge); line-height: 1.2; text-decoration: none; cursor: default; }
.store small { color: var(--lime); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.store b { font-size: 16px; }
a.store { cursor: pointer; }

/* ---- Ticker ---- */
.ticker { border-block: 1px solid var(--edge); background: var(--panel); overflow: hidden; white-space: nowrap; }
.ticker .track { display: inline-flex; gap: 44px; padding: 13px 0; animation: tick 40s linear infinite; }
.ticker span { color: var(--soft); font-size: 14px; }
.ticker b { color: var(--lime); font-family: var(--display); font-weight: 800; font-size: 16px; margin-left: 6px; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---- The course: sections along a dotted route ---- */
.course { position: relative; }
.line { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.dots { fill: none; stroke-linecap: round; stroke-width: 6; stroke-dasharray: 0 15; stroke: var(--lime); }
.dots.faint { stroke: rgba(255, 255, 255, 0.11); }
@media (max-width: 720px) { .dots { stroke-width: 4; stroke-dasharray: 0 11; } }
.runner { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; filter: drop-shadow(0 0 10px rgba(198, 236, 124, 0.55)); pointer-events: none; z-index: 2; }
.runner.fig { --c: var(--lime); }
@media (max-width: 720px) { .runner { width: 30px; height: 30px; margin: -15px 0 0 -15px; } }

.block { position: relative; z-index: 1; padding: clamp(56px, 9vh, 96px) var(--gutter) clamp(56px, 9vh, 96px) calc(var(--gutter) + var(--indent)); display: grid; gap: 18px; }
.kicker { color: var(--lime); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; margin: 0; }
.block h2, .ring-head h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; font-variation-settings: "wdth" 80; line-height: 1.04; }
.lead { color: var(--soft); margin: 0; max-width: 60ch; font-size: 17px; }

.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
@media (max-width: 900px) {
  .kinds { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .kinds::-webkit-scrollbar { display: none; }
  .kind { scroll-snap-align: start; }
}
.kind { padding: 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--edge); display: grid; gap: 8px; align-content: start; transition: border-color 0.3s, transform 0.3s; }
.kind:hover { border-color: rgba(198, 236, 124, 0.35); transform: translateY(-3px); }
.kind .fig { width: 44px; height: 44px; }
.kind b { font-family: var(--display); font-size: 22px; font-weight: 800; }
.kind p { margin: 0; color: var(--soft); font-size: 15px; }

.points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; max-width: 64ch; }
.points li { color: var(--soft); padding-left: 20px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.points b { color: var(--ink); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.lime { background: linear-gradient(135deg, var(--mint), var(--lime)); color: var(--on-lime); box-shadow: 0 10px 36px rgba(198, 236, 124, 0.22); transition: transform 0.2s; }
.btn.lime:hover { transform: translateY(-2px); }
.quiet { color: var(--soft); font-size: 14.5px; }
.quiet.link { text-decoration: none; border-bottom: 1px solid var(--edge); }
.quiet.link:hover { color: var(--ink); }

/* ---- Every feature: tabs, the 3D ring of phones (full width), the explanation under it (9 Nov) ---- */
.ring { justify-items: stretch; padding-bottom: 40px; }
.ring-head { display: grid; gap: 14px; }
.feature-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 6px calc(-1 * var(--gutter)) 0 0; padding: 2px var(--gutter) 2px 0; }
.feature-tabs::-webkit-scrollbar { display: none; }
.feature-tabs button { flex: none; font: inherit; cursor: pointer; color: var(--soft); background: transparent; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--edge); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.feature-tabs button:hover { color: var(--ink); }
.feature-tabs button[aria-pressed="true"] { color: var(--on-lime); background: var(--lime); border-color: var(--lime); }
.ring-stage {
  position: relative; width: calc(100% + 2 * var(--gutter) + var(--indent)); margin-left: calc(-1 * (var(--gutter) + var(--indent)));
  height: clamp(600px, 84vh, 940px); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: -6px;
}
.ring-stage.grabbing { cursor: grabbing; }
#ring3d { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(transparent, #000 8%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(transparent, #000 8%, #000 90%, transparent); mask-composite: intersect; }
.ring-stage:not(.live) { height: 0; }
.drag-hint {
  position: absolute; left: 50%; bottom: 5%; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(21, 24, 27, 0.85); border: 1px solid var(--edge); color: var(--soft); font-size: 13px; font-weight: 600;
  pointer-events: none; transition: opacity 0.5s; animation: nudge 2.4s ease-in-out infinite;
}
.drag-hint svg { color: var(--lime); }
.drag-hint.gone { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateX(-50%); } 30% { transform: translateX(calc(-50% - 8px)); } 60% { transform: translateX(calc(-50% + 8px)); } }
/* The explanations share one grid cell, so the section keeps its height as they change. */
.feature-details { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; max-width: 720px; justify-self: center; }
.feature-details > li {
  grid-area: 1 / 1; display: grid; justify-items: center; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.35s, transform 0.35s, visibility 0s 0.35s;
}
.feature-details > li.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s, transform 0.35s; }
.detail-copy { display: grid; gap: 14px; justify-items: center; }
.detail-copy .points { text-align: left; }
.detail-copy .num { color: var(--faint); margin-right: 6px; }
.detail-copy h3 { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; font-variation-settings: "wdth" 80; line-height: 1.06; }

/* ---- Boards ---- */
.board-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--edge); }
.tabs button { padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--soft); cursor: pointer; font: 600 14px var(--body); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.picks { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.picks button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--edge); background: var(--panel); color: var(--soft); cursor: pointer; font: 600 13px var(--body); }
.picks button[aria-pressed="true"] { border-color: var(--lime); color: var(--ink); }
.flapboard { --cw: 24px; --ch: 34px; --fs: 18px; background: #07080a; border: 1px solid #22272c; border-radius: 20px; padding: 16px; display: grid; gap: 6px; overflow-x: auto; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6); }
.flaprow { display: flex; gap: 3px; align-items: center; }
.flaprow .gap { width: calc(var(--cw) / 2); flex: none; }
.cell { width: var(--cw); height: var(--ch); flex: none; border-radius: 4px; background: linear-gradient(180deg, #1a1e22 0 49%, #0f1215 51% 100%); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: var(--fs); color: var(--ink); position: relative; font-variation-settings: "wdth" 90; overflow: hidden; }
.cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #050607; }
.cell.flip { animation: flip 0.09s linear; }
@keyframes flip { 50% { transform: scaleY(0.15); } }
.flaprow.lead .cell, .brow.lead .rank, .brow.lead .val .cell { color: var(--lime); }
.flaprow.hidden .cell { color: var(--soft); }
.flaprow.headrow .cell { background: none; color: var(--faint); font-size: calc(var(--fs) * 0.62); height: 16px; }
.flaprow.headrow .cell::after { display: none; }
/* Phones: one readable row per place, the numbers still flipping. */
.flapboard.rows { --cw: 17px; --ch: 26px; --fs: 14px; padding: 8px; gap: 2px; }
.brow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.brow:last-child { border-bottom: 0; }
.brow .rank { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--soft); text-align: center; }
.brow .who { min-width: 0; display: grid; }
.brow .who b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .who small { color: var(--faint); font-size: 12.5px; }
.brow.hidden .who b { color: var(--soft); font-weight: 600; }
.brow .val { display: flex; gap: 2px; }
.board-note { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.board-small { margin: 0; color: var(--faint); font-size: 13px; max-width: 70ch; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: 13.5px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: breathe 2.4s ease-in-out infinite; }
.live.off::before { background: var(--faint); box-shadow: none; animation: none; }
@keyframes breathe { 50% { opacity: 0.35; } }
.ex { color: var(--honey); border: 1px solid rgba(242, 196, 107, 0.4); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border-radius: 18px; background: var(--panel); border: 1px solid var(--edge); padding: 2px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 22px; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--soft); }

/* ---- The end of the course, and the footer ---- */
.cta { margin: 0 var(--gutter); padding: clamp(56px, 10vh, 110px) 0 clamp(56px, 9vh, 96px); border-top: 1px solid var(--edge); display: grid; gap: 16px; justify-items: center; text-align: center; }
.cta-mark { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 10px 40px rgba(198, 236, 124, 0.25); }
.cta h2 { font-size: clamp(36px, 5.4vw, 68px); font-weight: 900; font-variation-settings: "wdth" 78; line-height: 1; }
.cta p { margin: 0; color: var(--soft); font-size: 17px; max-width: 46ch; }
.cta .stores { justify-content: center; margin-top: 6px; }
.foot { padding: 32px var(--gutter) 50px; border-top: 1px solid var(--edge); color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.foot p { margin: 4px 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---- Reduced motion: everything still; the ring turns at once ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .drag-hint { display: none; }
}

/* ---- Phones: compact and calm (6 Nov, the owner's check on a phone) ---- */
:lang(ko) .kicker { letter-spacing: 0.04em; }
@media (max-width: 720px) {
  /* The hero fits about one screen: the R, then the words, then the line and stores. */
  .hero { gap: 0; padding: 0 var(--gutter) 28px; }
  .hero-r { width: min(72vw, 340px); margin: 4px auto -6px; }
  .hero-copy { gap: 16px; }
  .words { font-size: 23vw; line-height: 0.84; }
  .figs { position: static; flex-direction: row; gap: 12px; }
  .figs .fig { width: 34px; height: 34px; }
  .sub { font-size: 15.5px; }
  .store { padding: 8px 14px; }
  .store b { font-size: 15px; }
  /* Sections closer together. */
  .block { padding-top: 44px; padding-bottom: 44px; gap: 14px; }
  .block h2, .ring-head h2 { font-size: 30px; }
  .lead { font-size: 15.5px; }
  /* The three ways stacked as compact rows, nothing cut off at the edge. */
  .kinds { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; margin-right: 0; padding-right: 0; gap: 10px; }
  .kind { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; padding: 16px; border-radius: 18px; }
  .kind:hover { transform: none; }
  .kind .fig { grid-row: 1 / 3; width: 40px; height: 40px; align-self: start; }
  .kind b { font-size: 18px; }
  .kind p { font-size: 14px; }
  /* The ring and its explanation. */
  .ring-stage { height: min(132vw, 620px); }
  #ring3d { -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 92%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 92%, transparent); }
  .feature-tabs button { padding: 7px 12px; font-size: 13.5px; }
  .detail-copy h3 { font-size: 27px; }
  .drag-hint { font-size: 12.5px; padding: 6px 12px 6px 10px; }
  /* Boards. */
  .board-head { gap: 12px; }
  .tabs button { padding: 7px 13px; font-size: 13.5px; }
  .faq summary { padding: 14px 0; font-size: 15px; }
  .cta { padding: 48px 0 44px; }
  .cta h2 { font-size: 30px; }
  .cta p { font-size: 15.5px; }
}
