/* Tap Bounce — brutalist landing.
   Black canvas, white ink, the four game colors as accents, hard offset shadows,
   square grid. Mirrors the in-game look: black field, white ball, color-matched walls. */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8a8a8a;
  --line: #ffffff;
  --panel: #0c0c0c;
  --red: #ff0d33;
  --amber: #fff200;
  --lime: #00ff52;
  --blue: #1a66ff;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', 'Pretendard Variable', Pretendard, system-ui, -apple-system,
    'Segoe UI', 'Noto Sans', 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.display { font-family: 'Archivo Black', 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; }

/* Eyebrow: mono-ish uppercase label that precedes each section. */
.eyebrow {
  font-family: 'Archivo Black', 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; filter: brightness(0) invert(1); }
.brand span { font-size: 15px; letter-spacing: 0.01em; }

.lang { position: relative; }
.lang select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 34px 8px 12px;
  cursor: pointer;
}
.lang::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* ---------- layout shell ---------- */
main { display: block; }
section { padding: clamp(64px, 11vw, 130px) var(--pad); max-width: var(--maxw); margin: 0 auto; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(48px, 8vw, 96px);
}
.hero-title {
  font-family: 'Archivo Black', 'Inter', system-ui, sans-serif;
  font-size: clamp(56px, 12vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 10px 0 0;
  text-transform: uppercase;
}
.hero-title .t { color: var(--fg); }
.hero-title .b {
  color: #000;
  -webkit-text-stroke: 2px var(--fg);
  text-stroke: 2px var(--fg);
}
.hero-tag {
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
  margin: 20px 0 0;
}
.hero-lede { color: #cfcfcf; font-size: clamp(15px, 1.7vw, 17px); margin: 16px 0 0; max-width: 38ch; }

/* color dots echoing the four match colors */
.dots { display: flex; gap: 10px; margin: 26px 0 0; }
.dots i { width: 18px; height: 18px; display: block; }
.dots .d1 { background: var(--red); }
.dots .d2 { background: var(--amber); }
.dots .d3 { background: var(--lime); }
.dots .d4 { background: var(--blue); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  font-family: 'Archivo Black', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 2px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease, color 0.12s ease;
}
.btn-primary { background: var(--fg); color: #000; box-shadow: 6px 6px 0 var(--lime); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--lime); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: #000; }

/* phone mock (portrait 1080x1920) */
.hero-art { display: flex; justify-content: center; align-items: center; }
.phone {
  position: relative;
  flex: 0 0 auto;
  width: min(310px, 74vw);
  aspect-ratio: 1260 / 2736;
  background: #000;
  border: 3px solid var(--fg);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--blue);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* CSS placeholder that mirrors the app icon: 4 color columns + white ball.
   Replaced by a real screenshot <img> once captured. */
.ph-art { position: absolute; inset: 0; background: #000; }
.ph-art .col { position: absolute; top: 0; bottom: 0; width: 26%; }
.ph-art .c-l { left: 0; }
.ph-art .c-r { right: 0; }
.ph-art .c-l::before, .ph-art .c-l::after,
.ph-art .c-r::before, .ph-art .c-r::after {
  content: ""; position: absolute; left: 0; right: 0; height: 50%;
}
.ph-art .c-l::before { top: 0; background: var(--red); }
.ph-art .c-l::after { bottom: 0; background: var(--blue); }
.ph-art .c-r::before { top: 0; background: var(--amber); }
.ph-art .c-r::after { bottom: 0; background: var(--lime); }
.ph-art .ball {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; background: #fff; border-radius: 50%;
}

/* ---------- generic section heading ---------- */
.sec-title {
  font-family: 'Archivo Black', 'Inter', system-ui, sans-serif;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.sec-lede { color: #bdbdbd; font-size: clamp(15px, 1.7vw, 17px); max-width: 56ch; margin: 0 0 8px; }

/* ---------- how it plays ---------- */
.how { border-top: 2px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border: 2px solid var(--line); }
.how-step { padding: 28px; border-right: 2px solid var(--line); }
.how-step:last-child { border-right: 0; }
.how-step .n {
  font-family: 'Archivo Black', sans-serif; font-size: 13px; letter-spacing: 0.1em;
  display: inline-block; padding: 4px 10px; margin-bottom: 14px; color: #000;
}
.how-step:nth-child(1) .n { background: var(--red); }
.how-step:nth-child(2) .n { background: var(--amber); }
.how-step:nth-child(3) .n { background: var(--lime); }
.how-step h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.how-step p { color: #b8b8b8; font-size: 14.5px; margin: 0; }

/* ---------- gallery ---------- */
.gallery { border-top: 2px solid var(--line); }
.shot-strip {
  display: flex; gap: 22px; margin-top: 40px; overflow-x: auto;
  padding-bottom: 16px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot-strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; width: 220px; }
.phone-sm {
  width: 220px; aspect-ratio: 1260 / 2736; background: #000;
  border: 2px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 9px 9px 0 var(--c, var(--lime));
}
.phone-sm img { width: 100%; height: 100%; object-fit: cover; }
.shot-strip figure:nth-child(4n+1) .phone-sm { --c: var(--red); }
.shot-strip figure:nth-child(4n+2) .phone-sm { --c: var(--amber); }
.shot-strip figure:nth-child(4n+3) .phone-sm { --c: var(--lime); }
.shot-strip figure:nth-child(4n+4) .phone-sm { --c: var(--blue); }
.shot-strip figcaption { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: #cfcfcf; }

/* ---------- features ---------- */
.features-section { border-top: 2px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border: 2px solid var(--line); border-bottom: 0; border-right: 0; }
.features li { padding: 30px 26px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.features li.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
.features li.wide .feat-emoji { margin-bottom: 0; flex: 0 0 auto; }
.feat-emoji { font-size: 26px; margin-bottom: 14px; }
.features h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.features p { color: #b4b4b4; font-size: 14.5px; margin: 0; }

/* ---------- download ---------- */
.download { border-top: 2px solid var(--line); text-align: center; }
.download .eyebrow, .contact .eyebrow { /* centered eyebrows */ }
.dl-note {
  display: inline-block; margin: 0 auto 4px; padding: 8px 16px;
  border: 2px solid var(--amber); color: var(--amber);
  font-family: 'Archivo Black', sans-serif; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.store-card {
  display: inline-flex; align-items: center; gap: 13px; min-width: 210px;
  padding: 14px 22px; border: 2px solid var(--line); background: var(--panel);
  text-align: left; transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.store-card:not(.is-soon):hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--fg); }
.store-card.is-soon { opacity: 0.5; cursor: default; }
.store-icon { display: inline-flex; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-top { font-family: 'Archivo Black', sans-serif; font-size: 15px; }
.store-bot { font-size: 12px; color: var(--muted); }

/* ---------- contact / footer ---------- */
.contact { border-top: 2px solid var(--line); text-align: center; }
.contact .email {
  display: inline-block; margin-top: 16px; font-family: 'Archivo Black', sans-serif;
  font-size: clamp(18px, 3vw, 26px); border-bottom: 3px solid var(--lime);
}
footer { border-top: 2px solid var(--line); padding: 26px var(--pad); }
.foot-row {
  max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted);
}
.foot-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-row a:hover { color: var(--fg); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .dots { justify-content: center; }
  .cta-row { justify-content: center; }
  .hero-art { order: -1; }
  .how-grid { grid-template-columns: 1fr; }
  .how-step { border-right: 0; border-bottom: 2px solid var(--line); }
  .how-step:last-child { border-bottom: 0; }
  .features { grid-template-columns: 1fr; }
  .features li.wide { display: block; }
}
@media (max-width: 520px) {
  .store-card { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn, .store-card { transition: none; }
}
