/* ============================================================
   Duelio — duelioapp.com
   Design system rebuilt from the actual app: Bungee + Nunito,
   the red/blue/gold "duel" palette, graphite hex-tech chrome.
   Vanilla CSS, no build step.
   ============================================================ */

/* ---------- self-hosted app fonts ---------- */
@font-face {
  font-family: "Bungee";
  src: url("/assets/fonts/Bungee-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Black.ttf") format("truetype");
  font-weight: 900; font-display: swap;
}

:root {
  /* ---- the duel: colours sampled from the app icon ---- */
  --red:          #C4350F;   --red-bright: #FE5100;   --red-deep: #9A0909;   --red-glow: #FC6215;
  --blue:         #2361AE;   --blue-bright: #1D89E9;  --blue-deep: #0C2A7A;  --blue-glow: #3AAFF2;
  --gold:         #FFD46B;   --gold-bolt: #FEBC13;    --gold-deep: #99660D;

  /* ---- surfaces (catalog graphite chrome) ---- */
  --black:        #020104;
  --graphite-top: #1B1D21;
  --graphite-bot: #030405;
  --panel-top:    #26292E;
  --panel-bot:    #14161A;
  --tile-top:     #454A52;
  --tile-bot:     #262A2E;
  --steel:        #A3B5C7;

  /* ---- category tints (from the app's section colour-code) ---- */
  --cat-strategy: #FF3B30;
  --cat-sports:   #2E8BFF;
  --cat-words:    #B45BFF;
  --cat-multi:    #FFCf3B;
  --cat-cards:    #4ADE80;
  --cat-racing:   #A3B5C7;

  --ink:   #FFFFFF;
  --muted: #9AA3B8;
  --line:  rgba(163, 181, 199, 0.14);
  --glass: rgba(255, 255, 255, 0.035);

  --radius: 10px;
  --display: "Bungee", "Space Grotesk", sans-serif;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--black);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 212, 107, 0.32); color: #fff; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }

/* graphite base wall — matches the catalog's baseTop→baseBottom gradient */
.wall {
  position: fixed; inset: 0; z-index: -4;
  background: linear-gradient(150deg, var(--graphite-top), var(--graphite-bot) 70%, var(--black));
}
/* the duel glow — blue on the left, red on the right, gold seam implied */
.duel-glow {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(50% 60% at 8% 12%, rgba(29, 137, 233, 0.16), transparent 70%),
    radial-gradient(50% 60% at 94% 20%, rgba(254, 81, 0, 0.13), transparent 70%),
    radial-gradient(40% 40% at 50% 100%, rgba(255, 212, 107, 0.06), transparent 70%);
}
/* animated hex-tech canvas (whole-site tech wall) */
#hexfx { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.75; pointer-events: none; }

/* ---------- typographic helpers ---------- */
.bungee { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.1; }

.grad-duel {
  background: linear-gradient(95deg, var(--blue-bright) 0%, var(--blue) 30%, var(--gold-bolt) 50%, var(--red) 70%, var(--red-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-gold {
  background: linear-gradient(180deg, #FFF5BD, var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { max-width: 1240px; margin: 0 auto; padding: 52px 18px 24px; }
.section > .eyebrow { text-align: center; }
.section > h2 {
  text-align: center; font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: 8px;
}
.section-sub { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 46px; font-size: 1.02rem; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 22px; border-bottom: 1px solid transparent;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
}
.nav.scrolled {
  background: rgba(6, 7, 10, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.nav-logo img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 18px rgba(255, 212, 107, 0.18); }
.nav-logo .wm { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 700; font-size: 0.86rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--gold);
  border: 1px solid rgba(255, 212, 107, 0.35); background: rgba(255, 212, 107, 0.06);
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.nav-cta:hover { color: var(--gold); border-color: rgba(255, 212, 107, 0.6); box-shadow: 0 0 22px rgba(255, 212, 107, 0.22); }
.nav-cta .soon { color: var(--muted); font-size: 0.62rem; margin-left: 5px; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
/* Duelio keycap buttons: a raised face on a dark lip that the press sinks onto */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.03em;
  padding: 12px 19px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(163, 181, 199, 0.2); color: var(--ink);
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bot));
  box-shadow: 0 4px 0 rgba(2, 3, 5, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.25s;
  position: relative; overflow: hidden; line-height: 1.1;
}
.btn:hover { filter: brightness(1.12); color: var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(2, 3, 5, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn small { font-family: var(--body); font-size: 0.62rem; font-weight: 700; opacity: 0.85; letter-spacing: 0.03em; display: block; }
.btn-gold {
  background: linear-gradient(180deg, #FFF5BD, var(--gold) 45%, var(--gold-deep));
  color: #241a05; border: none;
  box-shadow: 0 4px 0 rgba(84, 55, 6, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover { color: #241a05; filter: brightness(1.06); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(84, 55, 6, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-gold:hover::after { transition: transform 0.7s ease; transform: translateX(120%); }
.btn-gold.disabled { filter: grayscale(0.55) brightness(0.72); cursor: default; }
.btn-gold.disabled:hover::after { transform: translateX(-120%); }
.btn-gold.disabled:active { transform: none; box-shadow: 0 4px 0 rgba(84, 55, 6, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.big { padding: 17px 30px; font-size: 1rem; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: min(78svh, 640px); display: flex; align-items: center;
  padding: 76px 18px 34px;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 24px; align-items: center;
}
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); letter-spacing: 0.04em; margin-bottom: 3px; }
.hero-by {
  font-family: var(--display); font-size: 0.76rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 16px;
}
.hero-bullets { list-style: none; margin: 0 0 18px; max-width: 33rem; }
.hero-bullets li {
  position: relative; padding-left: 24px; margin-bottom: 5px;
  color: var(--muted); font-size: 0.92rem; font-weight: 600;
}
.hero-bullets li b { color: var(--ink); font-weight: 800; }
.hero-bullets li::before {
  content: ""; position: absolute; left: 2px; top: 0.52em;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--blue-bright), var(--red-bright));
  box-shadow: 0 0 10px rgba(255, 190, 40, 0.35);
}
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.hero-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--display); font-size: 1.25rem; }
.hero-stats span { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.hero-stats .gap { color: var(--gold); }

/* ---- phone: shows real gameplay video ---- */
.hero-phone { position: relative; justify-self: center; cursor: pointer; }
.hero-phone:active .phone { transform: rotate(2deg) scale(0.985); }
.phone {
  position: relative; width: clamp(200px, 20vw, 228px); aspect-ratio: 300 / 620; border-radius: 40px;
  background: linear-gradient(160deg, #202531, #0a0c13);
  border: 1px solid rgba(163, 181, 199, 0.18);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), inset 0 0 0 6px #05060c, inset 0 0 0 7px rgba(163, 181, 199, 0.08);
  padding: 10px; z-index: 1; transform: rotate(2deg);
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 19px; border-radius: 12px; background: #04050a; z-index: 5;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden;
  background: linear-gradient(160deg, #101318, #05060a);
  display: flex; flex-direction: column;
  padding: 40px 12px 12px;
}

/* ---- iMessage thread ---- */
.thread-head {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 4px 10px; border-bottom: 1px solid var(--line);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 900; color: #fff; font-family: var(--body);
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
}
.thread-name { font-size: 0.78rem; font-weight: 800; line-height: 1.2; }
.thread-name small { color: var(--muted); font-weight: 600; font-size: 0.62rem; }

.thread { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 12px 2px; overflow: hidden; }

.bubble {
  max-width: 82%; padding: 8px 12px; border-radius: 17px;
  font-size: 0.8rem; font-weight: 600; line-height: 1.35;
  opacity: 0; transform: translateY(14px) scale(0.9);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bubble.on { opacity: 1; transform: none; }
.bubble.them { align-self: flex-start; background: #262a36; border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #2f7cf6, #1f5fd6); border-bottom-right-radius: 5px; }

.bubble.typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); animation: ty 1s infinite ease-in-out; }
.bubble.typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ty { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.bubble.typing.done { display: none; }

/* the real Duelio invite — cover art the app composes into the message */
.bubble.invite {
  padding: 0; overflow: hidden; width: 90%; max-width: 90%;
  background: #14161d; border: 1px solid rgba(163, 181, 199, 0.22);
  border-bottom-right-radius: 5px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}
.inv-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.inv-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; }
.inv-bar img { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }
.inv-bar b { display: block; font-family: var(--display); font-weight: 400; font-size: 0.56rem; letter-spacing: 0.08em; color: var(--gold); }
.inv-bar span { display: block; font-size: 0.66rem; font-weight: 700; color: var(--muted); line-height: 1.25; }

.thread-field {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 7px 6px 13px; color: var(--muted); font-size: 0.74rem; font-weight: 600;
}
.thread-field em {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: #2f7cf6; color: #fff; font-size: 0.75rem;
}
.phone-glow {
  position: absolute; inset: 6% -8%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 190, 40, 0.22), transparent 70%);
  filter: blur(34px);
}

/* =====================================================================
   CATALOG (exact iMessage catalog recreation)
   ===================================================================== */
/* The previews sit on a restrained graphite slab. The global duel wall carries
   the color; this panel stays neutral so the game art remains the focal point. */
.catalog-shell {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 0 8px;
  border: 1px solid rgba(163, 181, 199, 0.22);
  border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(90% 50% at 50% -10%, rgba(255, 212, 107, 0.055), transparent 64%),
    linear-gradient(168deg, var(--panel-top), var(--panel-bot) 58%, var(--graphite-bot));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.62),
    0 9px 0 -5px #04050a,
    0 26px 64px rgba(0, 0, 0, 0.58);
}
.catalog-shell::before {
  content: ""; position: absolute; inset: 0 5% auto; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(29, 137, 233, 0.5) 28%, rgba(255, 212, 107, 0.8) 50%, rgba(254, 81, 0, 0.5) 72%, transparent);
}
.catalog-hexfx {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.1;
  filter: grayscale(1) contrast(0.8); pointer-events: none;
}
.catalog-head {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
  gap: 12px; height: 42px; margin: 2px 0 1px;
}
.catalog-head .wm { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.92); }
.catalog-scroll { position: relative; z-index: 2; padding: 2px 2px 4px; }

/* the rotating gameplay-tip key, straight from the app's catalog footer */
.tip-row { position: relative; z-index: 2; display: flex; justify-content: center; padding: 3px 8px 10px; }
.tip-key {
  position: relative; border: none; background: none; padding: 0 0 4px; cursor: pointer;
  font-family: inherit; max-width: 440px; width: 100%;
}
.tip-key::before { /* the stationary dark lip the face presses onto */
  content: ""; position: absolute; inset: 6px 0 0 0; border-radius: 8px;
  background: #08090c;
}
.tip-face {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 8px 14px; border-radius: 8px; text-align: center;
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bot));
  border: 1px solid rgba(163, 181, 199, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.09s ease, opacity 0.18s ease;
}
.tip-key:active .tip-face { transform: translateY(4px); }
.tip-face.swap { opacity: 0; }
.tip-game { font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--gold); }
.tip-hint { font-family: var(--body); font-weight: 700; font-size: 0.8rem; color: rgba(255, 255, 255, 0.88); line-height: 1.35; }

.cat-section { margin-bottom: 9px; }
.cat-header {
  display: flex; align-items: center; gap: 10px; margin: 6px 2px 5px;
}
.cat-header .t { font-family: var(--display); font-size: 0.76rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.cat-header .rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(163, 181, 199, 0.45), transparent); }
.cat-header .count { font-family: var(--body); font-weight: 800; font-size: 0.7rem; color: var(--muted); }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 5px; }

.tile {
  position: relative; display: flex; flex-direction: column; gap: 3px; cursor: default;
  border: none; background: transparent; padding: 0; font-family: inherit; text-align: center;
}
.tile-face {
  position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden;
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bot));
  box-shadow: 0 3px 0 rgba(3, 4, 6, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  outline: 1px solid rgba(163, 181, 199, 0.16); outline-offset: -1px;
}
.tile-face video, .tile-face img:not(.pro-seal) { /* the Pro seal is a badge, not a face */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s ease;
}
.tile-face video.ready, .tile-face img:not(.pro-seal).ready { opacity: 1; }
.tile-face .gloss { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 40%); pointer-events: none; }
.tile-face::after { /* steel inner rim */
  content: ""; position: absolute; inset: 1.5px; border-radius: 7px; border: 1px solid rgba(163, 181, 199, 0.2); pointer-events: none;
}
.tile-name { font-family: var(--display); font-size: 0.56rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.86); line-height: 1.15; min-height: 1.9em; padding: 0 2px; }
.tile-name.gold { background: linear-gradient(180deg, #FFF5BD, var(--gold) 50%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pool & Darts: the caption is the current MODE, letter-faded on every change.
   Height is locked in rem (not em) so the smaller sizes below cannot nudge the
   grid as the name swaps, and the app's own length thresholds pick the size. */
.tile-name.mode { min-height: 1.14rem; white-space: nowrap; text-transform: uppercase; }
/* Sized to the NARROWEST a tile ever gets (the 96px grid floor, so ~92px of
   label): AROUND THE WORLD is 10.87em wide, which fits at 8.4px — the old
   0.39rem was compensating far harder than the tile ever needed. */
.tile-name.mode.m-sm { font-size: 0.56rem; }
.tile-name.mode.m-xs { font-size: 0.5rem; letter-spacing: 0.01em; }
.tile-name.mode .lt {
  display: inline-block; opacity: 0; filter: blur(2.5px); transform: translateY(3px);
  transition: opacity 0.2s ease-out, filter 0.2s ease-out, transform 0.2s ease-out;
}
.tile-name.mode.shown .lt { opacity: 1; filter: blur(0); transform: none; }
/* the mode handoff is a cut, not the 0.5s reveal fade the other tiles use */
.tile-face video.pv { transition: opacity 0.22s linear; }

/* live pip on the tile face */
.tile .live-pip {
  position: absolute; top: 6px; left: 6px; z-index: 4;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--display); font-size: 0.44rem; letter-spacing: 0.08em; color: #fff;
  background: rgba(3, 4, 6, 0.5); border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: 999px; padding: 2px 6px; backdrop-filter: blur(4px);
}
.tile .live-pip::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cat-cards); }
/* the app's own winged-gem Pro seal (DuelioProIcon), carried at the same
   glow the app gives it rather than a lettered pill */
.tile .pro-seal {
  position: absolute; top: 4px; right: 4px; z-index: 4;
  width: 30px; height: auto;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 5px rgba(255, 212, 107, 0.35));
}
.tile.builder .tile-face { outline-color: rgba(255, 212, 107, 0.5); }
.tile.soon { cursor: not-allowed; }
.tile.soon .tile-face video, .tile.soon .tile-face img { filter: grayscale(0.4) brightness(0.5); }
.tile .soon-badge {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
}
.tile .soon-badge span {
  font-family: var(--display); font-size: 0.56rem; letter-spacing: 0.06em; color: #fff;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px; padding: 5px 10px;
}

/* =====================================================================
   ONLINE MATCHMAKING
   ===================================================================== */
.online-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.online-card {
  position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  padding: 20px 18px; background: var(--glass);
}
.online-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.online-card.host::before { background: linear-gradient(90deg, var(--gold), var(--gold-bolt)); }
.online-card.find::before { background: linear-gradient(90deg, var(--blue-bright), var(--blue)); }
.online-card.join::before { background: linear-gradient(90deg, var(--red-bright), var(--red)); }
.online-card .oc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid var(--line); background: rgba(3, 4, 6, 0.35); }
.online-card .oc-icon img { width: 28px; height: 28px; object-fit: contain; opacity: 0.95; }
.online-card h3 { font-size: 0.9rem; letter-spacing: 0.05em; margin-bottom: 7px; }
.online-card p { color: var(--muted); font-size: 0.85rem; }
.online-card .code-chip {
  display: inline-flex; gap: 4px; margin-top: 14px; font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.14em; color: var(--gold);
}
.online-card .code-chip span { background: rgba(3, 4, 6, 0.5); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }


/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); padding: 32px 22px 26px; }
.foot-inner { max-width: 1080px; margin: 0 auto 18px; display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot-brand p { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
.foot-contact { display: flex; flex-direction: column; gap: 8px; }
.foot-contact .fc-lbl { font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.foot-metk {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--glass);
  padding: 10px 14px; transition: border-color 0.25s, box-shadow 0.25s;
}
.foot-metk:hover { border-color: rgba(29, 137, 233, 0.5); box-shadow: 0 0 22px rgba(29, 137, 233, 0.18); }
.foot-metk img { width: 30px; height: 30px; object-fit: contain; }
.foot-metk span { color: var(--muted); font-size: 0.78rem; font-weight: 700; line-height: 1.3; }
.foot-metk span b { display: block; font-family: var(--display); font-weight: 400; font-size: 0.72rem; color: var(--ink); letter-spacing: 0.04em; }
.foot-legal { max-width: 1080px; margin: 0 auto; color: rgba(154, 163, 184, 0.5); font-size: 0.72rem; line-height: 1.6; }
.foot-legal a { color: rgba(154, 163, 184, 0.7); }

/* =====================================================================
   LEGAL + SUPPORT PAGES
   ===================================================================== */
.page { max-width: 760px; margin: 0 auto; padding: 130px 24px 90px; }
.back-home { display: inline-flex; gap: 8px; color: var(--muted); font-size: 0.9rem; font-weight: 700; margin-bottom: 26px; }
.back-home:hover { color: #fff; }
.page-head { margin-bottom: 44px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin-bottom: 14px; }
.page-head .dates { color: var(--muted); font-size: 0.9rem; }
.page-head .dates b { color: var(--ink); }

.legal h2 { font-size: 1.15rem; letter-spacing: 0.03em; margin: 44px 0 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal h3 { font-family: var(--body); font-weight: 800; font-size: 1.02rem; margin: 24px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; }
.legal p { margin-bottom: 14px; }
.legal strong { color: var(--ink); font-weight: 800; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal .lead { font-size: 1.05rem; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); padding: 20px 22px; }
.legal .addr { line-height: 1.7; }

.faq { margin-bottom: 40px; }
.faq details { border: 1px solid var(--line); border-radius: 9px; background: var(--glass); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; font-size: 0.98rem; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; }
.faq p, .faq li { color: var(--muted); font-size: 0.94rem; }
.faq p { margin-bottom: 10px; }
.faq ul { margin: 0 0 10px 20px; }

.feedback-terminal {
  position: relative; overflow: hidden; max-width: 440px; margin: 0 auto 40px;
  border: 1px solid rgba(98, 216, 255, 0.62); border-radius: 20px;
  background: linear-gradient(145deg, #111f2c, #211226);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), 0 0 26px rgba(98, 216, 255, 0.1);
}
.feedback-terminal-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.feedback-icon {
  display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px;
  color: #62d8ff; font-size: 0.95rem; border-radius: 8px;
  background: rgba(98, 216, 255, 0.15);
}
.feedback-terminal h2 { text-align: left; font-size: 0.86rem; letter-spacing: 0.08em; margin: 0; text-transform: uppercase; }
.feedback-terminal-body { padding: 16px; }
.feedback-prompt {
  color: rgba(255, 255, 255, 0.62); font-family: var(--display); font-size: 0.65rem;
  letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 13px;
}
.feedback-form { display: grid; gap: 10px; }
.feedback-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feedback-type {
  appearance: none; min-height: 36px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 9px; padding: 8px 10px;
  color: rgba(255, 255, 255, 0.76); background: rgba(255, 255, 255, 0.07); font-family: var(--display); font-size: 0.65rem;
  letter-spacing: 0.05em; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-transform: uppercase;
}
.feedback-type:hover { color: #fff; border-color: rgba(98, 216, 255, 0.7); }
.feedback-type.is-active { color: rgba(0, 0, 0, 0.86); border-color: #62d8ff; background: rgba(98, 216, 255, 0.92); }
.feedback-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#feedback-message {
  width: 100%; min-height: 142px; resize: vertical; box-sizing: border-box; border: 1px solid rgba(98, 216, 255, 0.28);
  border-radius: 11px; outline: none; padding: 11px 12px; color: #fff; background: rgba(0, 0, 0, 0.34);
  font: 0.94rem/1.55 var(--body); transition: border-color 0.2s, box-shadow 0.2s;
}
#feedback-message:focus { border-color: rgba(98, 216, 255, 0.75); box-shadow: 0 0 0 3px rgba(98, 216, 255, 0.1); }
#feedback-message::placeholder { color: rgba(255, 255, 255, 0.3); font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; }
.feedback-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-meta { display: flex; align-items: center; gap: 10px; min-height: 1.2em; }
.feedback-status { flex: 1; color: var(--muted); font-size: 0.78rem; }
.feedback-status[data-state="error"] { color: #ff8ba4; }
.feedback-status[data-state="success"] { color: #8ff2ba; }
.feedback-count { color: rgba(98, 216, 255, 0.72); font-size: 0.69rem; font-weight: 800; white-space: nowrap; }
.feedback-submit {
  width: 100%; min-height: 42px; border: 0; border-radius: 11px; padding: 10px 14px;
  color: rgba(0, 0, 0, 0.88); background: rgba(246, 83, 168, 0.9);
  font-family: var(--display); font-size: 0.69rem; letter-spacing: 0.07em; cursor: pointer;
  text-transform: uppercase; transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}
.feedback-submit:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.feedback-submit:active:not(:disabled) { transform: translateY(1px); }
.feedback-submit:disabled { cursor: not-allowed; color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.12); }

.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(70% 120% at 80% 0%, rgba(255, 190, 40, 0.1), transparent 60%), linear-gradient(150deg, var(--panel-top), var(--panel-bot));
  padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.contact-card h2 { font-size: 1.2rem; margin-bottom: 6px; text-align: left; }
.contact-card p { color: var(--muted); font-size: 0.92rem; }
.copy-btn {
  font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.03em; color: #241a05;
  background: linear-gradient(180deg, #FFF5BD, var(--gold)); border: none; border-radius: 9px; padding: 13px 18px; cursor: pointer;
  box-shadow: 0 4px 0 rgba(84, 55, 6, 0.95);
  transition: box-shadow 0.25s;
}
.copy-btn:hover { box-shadow: 0 0 20px rgba(255, 190, 40, 0.35); }
.copy-btn.copied { filter: none; background: linear-gradient(180deg, #b8f5c9, var(--cat-cards)); }

/* 404 */
.err { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }
.err img { width: 120px; height: 120px; border-radius: 28px; animation: bob 3s ease-in-out infinite; box-shadow: 0 20px 60px rgba(255, 190, 40, 0.2); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
.err h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 22px 0 10px; }
.err p { color: var(--muted); margin-bottom: 28px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}
@media (max-width: 780px) {
  .online-card { padding: 16px 14px; }
  .online-card .code-chip { gap: 2px; font-size: 0.72rem; letter-spacing: 0.05em; }
  .online-card .code-chip span { padding: 4px 5px; }
}
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .nav-links {
    display: flex; order: 3; flex: 1 0 100%; width: 100%; margin-left: 0; gap: 18px;
    overflow-x: auto; padding: 5px 0 2px; white-space: nowrap; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 0.82rem; }
  .hero { padding-top: 94px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 92px 14px 28px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
  .online-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 12px 22px; }
  .catalog-shell { padding-inline: 6px; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .tile-name.mode.m-sm { font-size: 0.48rem; }
  .tile-name.mode.m-xs { font-size: 0.42rem; letter-spacing: 0; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .nav-logo .wm { font-size: 1rem; }
  .nav-logo img { width: 30px; height: 30px; }
  .nav-links { gap: 16px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .catalog-head .wm { font-size: 0.98rem; }
  .feedback-terminal { border-radius: 16px; }
  .feedback-terminal-body { padding: 14px; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .duel-glow, .err img, .bubble.typing i, .tile .live-pip::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bubble { opacity: 1; transform: none; transition: none; }
  .btn, .tile { transition: none; }
  #hexfx, .catalog-hexfx { display: none; }
}
