/* game.hiiustudio.ee — Noor Tegevjuht / Young CEO.
   The warm coastal-studio system shared with hiiustudio.ee, with slightly
   brighter and more playful accents for the game. */

* { margin: 0; box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #202733;
  --card: rgb(46 56 72 / 0.86);
  --card-solid: #2b3544;
  --border: #465365;
  --border-strong: #657286;
  --text: #f2eee6;
  --muted: #aeb8c5;
  --accent: #7098ec;
  --accent-strong: #527fdc;
  --coral: #f08a68;
  --sand: #dec69a;
  --gradient-brand: linear-gradient(145deg, #244c9f, #4e7fe3 56%, #d96b4b);
  --font-body: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Fraunces, Georgia, serif;
  --radius: 14px;
  --shadow-soft: 0 18px 50px -32px rgb(4 10 20 / 0.72);
  --glow-blue: rgb(85 126 211 / 0.2);
  --glow-coral: rgb(217 107 75 / 0.12);
  --glow-sand: rgb(222 198 154 / 0.09);
  --grid-line: rgb(255 255 255 / 0.04);
  --surface-muted: #252e3c;
  --surface-glass: rgb(46 56 72 / 0.72);
  --surface-soft: rgb(112 152 236 / 0.1);
  --surface-coral: rgb(240 138 104 / 0.09);
  --overlay: rgb(8 13 22 / 0.68);
  --inset-highlight: rgb(255 255 255 / 0.08);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ece9e1;
  --card: rgb(255 255 252 / 0.82);
  --card-solid: #fffdf8;
  --border: #d3d4ce;
  --border-strong: #b8c0c9;
  --text: #172333;
  --muted: #5d6874;
  --accent: #3568d4;
  --accent-strong: #214a9e;
  --coral: #d96b4b;
  --sand: #e8d5b3;
  --shadow-soft: 0 18px 50px -36px rgb(27 44 68 / 0.4);
  --glow-blue: rgb(89 132 221 / 0.16);
  --glow-coral: rgb(217 107 75 / 0.1);
  --glow-sand: rgb(232 213 179 / 0.35);
  --grid-line: rgb(23 35 51 / 0.035);
  --surface-muted: #f3f4f6;
  --surface-glass: rgb(255 253 248 / 0.72);
  --surface-soft: rgb(53 104 212 / 0.07);
  --surface-coral: rgb(217 107 75 / 0.07);
  --overlay: rgb(23 35 51 / 0.5);
  --inset-highlight: rgb(255 255 255 / 0.8);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(85% 65% at 8% -10%, var(--glow-blue), transparent 58%),
    radial-gradient(70% 55% at 96% 5%, var(--glow-coral), transparent 54%),
    var(--bg);
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Slow pools of daylight. */
body::before {
  content: "";
  position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 34% at 18% 24%, var(--glow-blue), transparent 66%),
    radial-gradient(42% 38% at 82% 27%, var(--glow-sand), transparent 68%),
    radial-gradient(34% 32% at 62% 82%, var(--glow-coral), transparent 65%);
  animation: bg-drift 30s ease-in-out infinite alternate;
  will-change: transform;
}
/* Faint drawing-board grid. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
}
@keyframes bg-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* Animated seam field (SVG inline in the HTML) */
.seam-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%; overflow: visible; opacity: 0.38;
}
.seam-core { fill: none; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.seam-glow { fill: none; stroke-width: 28; stroke-linecap: round; vector-effect: non-scaling-stroke;
             animation: glow-pulse 9s ease-in-out infinite alternate; }
.seam-a .seam-core { stroke: rgb(53 104 212 / 0.38); }
.seam-a .seam-glow { stroke: rgb(53 104 212 / 0.26); }
.seam-b .seam-core { stroke: rgb(217 107 75 / 0.3); }
.seam-b .seam-glow { stroke: rgb(217 107 75 / 0.22); animation-delay: -3s; }
.seam-c { opacity: 0.7; }
.seam-c .seam-core { stroke: rgb(38 66 114 / 0.3); }
.seam-c .seam-glow { stroke: rgb(38 66 114 / 0.2); animation-delay: -6s; }
@keyframes glow-pulse {
  from { opacity: 0.35; }
  to   { opacity: 0.8; }
}

main, header, footer { position: relative; z-index: 1; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: 0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  box-shadow: 0 8px 20px -12px rgb(30 58 112 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.7);
}
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
.lang-switch {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px; font-size: 13px; color: var(--muted) !important;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent) !important; }
.theme-toggle.theme-toggle {
  display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem; padding: 0;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); background: var(--surface-glass);
  cursor: pointer; transition: transform 0.15s, border-color 0.15s, color 0.15s;
}
.theme-toggle.theme-toggle:hover { transform: rotate(8deg); border-color: var(--accent); color: var(--accent-strong); }
.theme-toggle.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 64px 0 80px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 40px 0 56px; } }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: var(--muted);
  background: var(--card); margin-bottom: 22px;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px rgb(217 107 75 / 0.45); }

h1 { font-family: var(--font-display); font-weight: 650; font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 20px; }
h1 .accent { color: var(--accent-strong); }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 34em; margin-bottom: 30px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; border-radius: 10px;
  padding: 12px 22px; font-size: 15px; font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -16px rgb(33 74 158 / 0.78); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); }

/* Approval-card mockup */
.mockup {
  background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 28px 70px -42px rgb(4 10 20 / 0.65), inset 0 3px 0 var(--inset-highlight);
  overflow: hidden; font-size: 14px;
  animation: float 7s ease-in-out infinite alternate;
}
@keyframes float { from { transform: translateY(-4px); } to { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .mockup, body::before, .seam-glow { animation: none; }
}
.mockup-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text); font-weight: 600;
}
.mockup-head .when { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.mockup-body { padding: 14px 16px 6px; color: var(--muted); }
.mockup-body .why { margin-bottom: 10px; }
.mockup-body .why b, .mockup-draft b { color: var(--text); }
.mockup-draft {
  border-left: 2px solid var(--accent); padding: 8px 12px; margin: 0 0 12px;
  color: var(--text); background: var(--surface-muted); border-radius: 0 8px 8px 0;
  font-style: italic;
}
.mockup-actions { display: flex; gap: 10px; padding: 4px 16px 16px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px;
  font-size: 13.5px; color: var(--muted);
}
.chip-approve { background: var(--accent); border-color: transparent; color: #fff; font-weight: 600; }
.mockup-meta { padding: 0 16px 14px; font-size: 12.5px; color: var(--muted); }
.conf { color: var(--accent); }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 56px 0; }
.kicker { color: var(--accent); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 10px; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 14px; line-height: 1.12; }
.section-lead { color: var(--muted); max-width: 44em; margin-bottom: 36px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-soft);
}
.card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; margin-bottom: 14px;
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }
.agent { text-align: left; }
.agent .avatar {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  color: #fff; background: var(--gradient-brand);
}
.agent .role { color: var(--accent); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 18px 0 26px; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.checklist li b { color: var(--text); }

/* Handbook banner */
.handbook-banner {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.handbook-banner p { color: var(--muted); max-width: 36em; }
.handbook-banner h2 { margin-bottom: 8px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 40px;
  padding: 32px 0 44px; color: var(--muted); font-size: 14px;
}
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ── Competition-first landing page ───────────────────── */
.landing-page {
  --game-blue: #719cff;
  --game-blue-bright: #9ab8ff;
  --game-coral: #ff805c;
  --game-gold: #ffd16a;
  --game-green: #71dfa6;
  --game-panel: rgb(33 42 57 / 0.88);
  line-height: 1.5;
}

html[data-theme="light"] .landing-page {
  --game-blue: #3568d4;
  --game-blue-bright: #214a9e;
  --game-coral: #d85f3e;
  --game-gold: #bd7a07;
  --game-green: #18875b;
  --game-panel: rgb(255 253 248 / 0.9);
}

.landing-page .wrap { max-width: 1180px; }

.landing-page .site-header {
  min-height: 76px;
  padding: 17px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

html[data-theme="light"] .landing-page .site-header {
  border-bottom-color: rgb(23 35 51 / 0.08);
}

.landing-page .brand { font-size: 15px; }
.landing-page .brand-mark {
  transform: rotate(-3deg);
  box-shadow: 0 9px 30px -11px rgb(73 121 228 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.55);
}

.landing-page .site-nav a {
  font-size: 14px;
  font-weight: 650;
}

.game-hero {
  min-height: min(680px, calc(100vh - 76px));
  padding: 62px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: center;
  position: relative;
}

.game-hero::before {
  content: "CEO";
  position: absolute;
  left: -0.05em;
  top: 0.02em;
  z-index: -1;
  font-family: var(--font-body);
  font-size: clamp(8rem, 21vw, 17rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.09em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(112 152 236 / 0.1);
  user-select: none;
}

.game-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--game-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--game-coral);
  box-shadow: 0 0 0 5px rgb(255 128 92 / 0.12), 0 0 18px rgb(255 128 92 / 0.7);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { transform: scale(0.75); opacity: 0.68; }
}

.landing-page h1 {
  max-width: 720px;
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-size: clamp(3.55rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  padding-right: 0.09em;
  color: var(--game-coral);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 650;
  letter-spacing: -0.045em;
  text-shadow: 0 16px 48px rgb(240 138 104 / 0.18);
}

.hero-highlight::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: -0.02em;
  bottom: -0.08em;
  height: 0.06em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--game-coral), transparent);
  transform: rotate(-1deg);
}

.hero-pitch {
  max-width: 570px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.7;
}

.hero-actions-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  max-width: 590px;
  margin: 0 0 22px;
  padding: 0;
}

.hero-actions-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
}

.hero-actions-list li span {
  color: var(--game-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-question {
  max-width: 590px;
  margin: 0 0 28px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.34rem);
  font-style: italic;
  font-weight: 600;
}

.landing-page .cta-row { align-items: center; }

.landing-page .btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 750;
}

.btn-play {
  gap: 28px;
  min-width: 190px;
  color: #fff;
  background: linear-gradient(135deg, #426fd1, #648ff0);
  border: 1px solid rgb(255 255 255 / 0.22);
  box-shadow: 0 18px 42px -20px rgb(52 103 218 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.24);
}

.btn-play:hover {
  color: #fff;
  box-shadow: 0 22px 46px -18px rgb(52 103 218 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.24);
}

.btn-play b {
  font-size: 19px;
  transition: transform 0.18s ease;
}

.btn-play:hover b { transform: translateX(4px); }

.btn-challenge {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-challenge:hover { border-color: var(--game-blue); }

.play-note {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.play-note span { color: var(--game-green); }

.leaderboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(112 152 236 / 0.3);
  border-radius: 22px;
  padding: 24px;
  background:
    linear-gradient(150deg, rgb(112 152 236 / 0.1), transparent 46%),
    var(--game-panel);
  box-shadow: 0 36px 90px -42px rgb(3 8 17 / 0.88), inset 0 1px 0 var(--inset-highlight);
  transform: rotate(1.1deg);
}

.leaderboard-card::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -70px;
  width: 230px;
  height: 230px;
  border: 1px solid rgb(112 152 236 / 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgb(112 152 236 / 0.03), 0 0 0 64px rgb(112 152 236 / 0.025);
  pointer-events: none;
}

.leaderboard-head,
.board-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.board-label {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.leaderboard-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  border: 1px solid rgb(113 223 166 / 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--game-green);
  background: rgb(113 223 166 / 0.07);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.live-badge span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.podium {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 24px 0 20px;
}

.podium-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgb(255 255 255 / 0.025);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.podium-row:hover {
  transform: translateX(-3px);
  border-color: var(--game-blue);
}

.podium-row.rank-one {
  min-height: 78px;
  border-color: rgb(255 209 106 / 0.34);
  background: linear-gradient(100deg, rgb(255 209 106 / 0.11), transparent 74%);
}

.rank-medal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 13px;
  font-weight: 800;
}

.rank-one .rank-medal {
  color: #422b00;
  border-color: #ffe09b;
  background: linear-gradient(145deg, #ffe39b, #eaaa28);
  box-shadow: 0 8px 20px -10px rgb(255 209 106 / 0.8);
}

.company {
  min-width: 0;
  display: grid;
}

.company b {
  overflow: hidden;
  color: var(--text);
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-one .company b { font-size: 15px; }

.company small {
  color: var(--muted);
  font-size: 10.5px;
}

.rank-score {
  color: var(--game-blue-bright);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rank-one .rank-score {
  color: var(--game-gold);
  font-size: 15px;
}

.empty-rank { opacity: 0.68; }

.board-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 17px;
  color: var(--muted);
  font-size: 11.5px;
}

.board-footer p { margin: 0; }
.board-footer p span { color: var(--text); font-weight: 800; }
.board-footer a {
  color: var(--game-blue-bright);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.pressure-strip {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pressure-strip span {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.pressure-strip b {
  color: var(--game-coral);
  font-size: 15px;
}

.pressure-strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

.challenge-section { padding: 104px 0 92px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading .game-kicker { margin-bottom: 8px; }

.section-heading h2,
.win-copy h2,
.teacher-section h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.section-heading h2 {
  max-width: 690px;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.challenge-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(150deg, rgb(255 255 255 / 0.045), transparent 50%), var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.challenge-card:hover {
  transform: translateY(-5px);
  border-color: rgb(112 152 236 / 0.55);
}

.challenge-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -80px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgb(112 152 236 / 0.08);
  filter: blur(2px);
}

.challenge-card.danger-card::after { background: rgb(255 128 92 / 0.12); }

.challenge-no {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--border-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.challenge-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 54px;
  border: 1px solid rgb(112 152 236 / 0.26);
  border-radius: 14px;
  background: rgb(112 152 236 / 0.09);
  font-size: 22px;
}

.challenge-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
}

.challenge-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
}

.win-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(44px, 8vw, 94px);
  align-items: center;
  margin: 24px 0 112px;
  padding: 64px;
  border: 1px solid rgb(112 152 236 / 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 100%, rgb(112 152 236 / 0.15), transparent 38%),
    linear-gradient(145deg, rgb(40 51 70 / 0.88), rgb(29 37 50 / 0.88));
  box-shadow: 0 34px 80px -55px rgb(0 0 0 / 0.8);
}

html[data-theme="light"] .win-section {
  background:
    radial-gradient(circle at 0 100%, rgb(53 104 212 / 0.1), transparent 38%),
    linear-gradient(145deg, rgb(255 255 252 / 0.9), rgb(239 240 238 / 0.9));
}

.win-copy .game-kicker { margin-bottom: 12px; }
.win-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5vw, 4.3rem);
  line-height: 0.99;
}
.win-copy h2 span {
  color: var(--game-blue-bright);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 650;
}
.win-copy > p:not(.game-kicker) {
  max-width: 470px;
  margin-bottom: 20px;
  color: var(--muted);
}

.text-link {
  color: var(--game-blue-bright);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.text-link:hover { color: var(--text); }

.mission-panel { display: grid; gap: 10px; }
.mission {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.09);
}
html[data-theme="light"] .mission { background: rgb(255 255 255 / 0.58); }
.mission > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-muted);
  font-weight: 800;
}
.mission p { display: grid; }
.mission b { font-size: 13px; }
.mission small { color: var(--muted); font-size: 11px; }
.mission strong {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.mission.complete > span { color: #102d20; background: var(--game-green); }
.mission.complete strong { color: var(--game-green); }
.mission.active {
  border-color: rgb(112 152 236 / 0.44);
  background: rgb(112 152 236 / 0.07);
}
.mission.active > span { color: #fff; background: var(--game-blue); }
.mission.active strong { color: var(--game-blue-bright); }

.learning-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(42px, 8vw, 100px);
  align-items: end;
  padding: 0 12px 104px;
}

.learning-section .game-kicker { margin-bottom: 9px; }
.learning-section h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.055em;
}
.learning-copy > p {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.learning-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.learning-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  background: var(--surface-glass);
  font-size: 10.5px;
  font-weight: 750;
}

.teacher-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 52px;
  padding: 0 0 82px;
}
.teacher-section > div:first-child { max-width: 720px; }
.teacher-section .game-kicker { margin-bottom: 10px; }
.teacher-section h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}
.teacher-section p:not(.game-kicker) { max-width: 650px; color: var(--muted); }
.teacher-actions {
  flex: none;
  display: grid;
  gap: 13px;
  justify-items: center;
}
.teacher-actions .btn { min-width: 210px; }

.landing-footer { margin-top: 0; }

/* Kairi contact approval — shared interaction pattern with hiiustudio.ee. */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--overlay);
  backdrop-filter: blur(7px);
  animation: contact-overlay-in 0.18s ease-out;
}

.contact-modal {
  position: relative;
  width: min(100%, 440px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  color: var(--text);
  background: var(--card-solid);
  box-shadow: 0 34px 90px -28px rgb(0 0 0 / 0.7), inset 0 1px 0 var(--inset-highlight);
  animation: contact-card-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.12);
}

@keyframes contact-overlay-in { from { opacity: 0; } }
@keyframes contact-card-in {
  from { opacity: 0; transform: translateY(15px) scale(0.97); }
}

.contact-modal-close {
  position: absolute;
  top: 11px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
}

.contact-modal-close:hover { color: var(--text); background: var(--surface-soft); }

.contact-agent-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding-right: 30px;
}

.contact-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #9333ea);
  box-shadow: 0 9px 22px -13px rgb(139 92 246 / 0.8);
}

.contact-agent-head > div { min-width: 0; display: grid; }
.contact-agent-head strong { font-size: 13.5px; }
.contact-agent-head small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-status {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--game-blue-bright);
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}
.contact-status.done {
  color: var(--game-green);
  border-color: rgb(113 223 166 / 0.35);
}

.contact-why {
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contact-draft {
  display: block;
  margin-bottom: 12px;
  border-left: 2px solid var(--game-blue);
  border-radius: 0 10px 10px 0;
  padding: 10px 13px;
  background: var(--surface-muted);
}

.contact-draft > span,
.contact-email > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-draft textarea {
  width: 100%;
  min-height: 76px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: vertical;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-style: italic;
  line-height: 1.55;
}

.contact-email { display: block; }
.contact-email input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  outline: 0;
  color: var(--text);
  background: var(--card);
  font: inherit;
  font-size: 13px;
}
.contact-email input:focus { border-color: var(--game-blue); }
.contact-email input::placeholder { color: var(--muted); }
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-error {
  margin-top: 9px;
  color: var(--game-coral);
  font-size: 12px;
}
.contact-error a { color: var(--game-blue-bright); }

.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
}

.contact-actions button,
.contact-done-button {
  min-height: 39px;
  border-radius: 9px;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}
.contact-reject {
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
}
.contact-approve,
.contact-done-button {
  border: 1px solid rgb(255 255 255 / 0.18);
  color: #fff;
  background: var(--accent);
}
.contact-approve:disabled { cursor: wait; opacity: 0.7; }
.contact-done p {
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 940px) {
  .landing-page .site-nav a:not(.lang-switch) { display: none; }
  .game-hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }
  .hero-copy { max-width: 720px; }
  .leaderboard-card {
    max-width: 620px;
    width: 100%;
    transform: none;
  }
  .challenge-grid { grid-template-columns: 1fr 1fr; }
  .challenge-card:last-child { grid-column: 1 / -1; }
  .win-section { grid-template-columns: 1fr; padding: 52px; }
  .learning-section { grid-template-columns: 1fr; }
  .teacher-section { align-items: flex-start; flex-direction: column; }
  .teacher-actions { justify-items: start; }
}

@media (max-width: 620px) {
  .landing-page .wrap { padding: 0 18px; }
  .landing-page .site-header {
    min-height: 68px;
    padding: 14px 0;
    flex-wrap: nowrap;
  }
  .landing-page .brand span:last-child { display: none; }
  .landing-page .site-nav { gap: 10px; flex-wrap: nowrap; }
  .game-hero {
    min-height: auto;
    padding: 54px 0 46px;
    gap: 46px;
  }
  .game-hero::before { top: 0.2em; font-size: 8rem; }
  .landing-page h1 { font-size: clamp(3.05rem, 15.6vw, 4.4rem); }
  .hero-pitch { font-size: 0.98rem; }
  .hero-actions-list { grid-template-columns: 1fr; gap: 7px; }
  .landing-page .cta-row { display: grid; }
  .landing-page .cta-row .btn { width: 100%; }
  .play-note { gap: 5px 10px; }
  .leaderboard-card { padding: 18px; border-radius: 18px; }
  .leaderboard-head h2 { font-size: 1.42rem; }
  .podium-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
  .company b { font-size: 12.5px; }
  .rank-one .company b { font-size: 13.5px; }
  .board-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .pressure-strip {
    justify-content: flex-start;
    overflow: hidden;
    margin: 0 -18px;
    padding: 0 18px;
  }
  .pressure-strip span:nth-of-type(4),
  .pressure-strip i:nth-of-type(3) { display: none; }
  .challenge-section { padding: 76px 0 66px; }
  .challenge-grid { grid-template-columns: 1fr; }
  .challenge-card,
  .challenge-card:last-child { grid-column: auto; min-height: 245px; }
  .challenge-icon { margin-bottom: 38px; }
  .win-section {
    margin: 8px 0 82px;
    padding: 34px 22px;
    border-radius: 19px;
  }
  .mission {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .mission strong { grid-column: 2; }
  .learning-section { padding: 0 0 76px; }
  .teacher-section { padding-bottom: 64px; }
  .teacher-actions,
  .teacher-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .contact-modal-overlay,
  .contact-modal { animation: none; }
}
