/* Game landing pages (Millionaire X, GeoRush, 8 way). Builds on echo-blast.css (.eb tokens, buttons,
   language menu, FAQ) and swaps the palette per game: gold quiz stage, rush-hour space, word-world blue. */
.gp-mx {
  --eb-bg: #070604; --eb-panel: rgba(30, 24, 10, .78); --eb-line: rgba(245, 192, 74, .22);
  --eb-ice: #ffe3a0; --eb-cyan: #f5c04a; --eb-gold: #f5c04a; --eb-ember: #c98a12;
  --eb-text: #fbf6ea; --eb-muted: #c9bda0; --eb-display: "Montserrat", "Onest", sans-serif;
  --gp-hero: url("millionaire-x/bg.webp");
}
.gp-geo {
  --eb-bg: #060b2a; --eb-panel: rgba(16, 26, 76, .72); --eb-line: rgba(130, 165, 255, .2);
  --eb-ice: #9fd0ff; --eb-cyan: #4fb6ff; --eb-gold: #ffb020; --eb-ember: #ff4d2e;
  --eb-text: #eef3ff; --eb-muted: #a5b3dc; --eb-display: "Russo One", "Bricolage Grotesque", sans-serif;
  --gp-hero: radial-gradient(60% 70% at 78% 40%, rgba(255, 120, 40, .22), transparent 70%), radial-gradient(80% 90% at 70% 50%, #18307a 0%, transparent 70%);
}
.gp-way {
  --eb-bg: #0a1340; --eb-panel: rgba(24, 38, 112, .66); --eb-line: rgba(140, 180, 255, .22);
  --eb-ice: #a9ecff; --eb-cyan: #3ce0ff; --eb-gold: #ffd23f; --eb-ember: #ff9f1c;
  --eb-text: #f2f5ff; --eb-muted: #b2bfe6; --eb-display: "Rubik", "Onest", sans-serif;
  --gp-hero: url("8-way/journey.webp");
}
.gp-geo h1, .gp-geo h2, .gp-geo h3, .gp-way h1, .gp-way h2, .gp-way h3 { text-transform: none; letter-spacing: 0; }
.gp-way h1, .gp-way h2 { font-weight: 900; }
.gp-mx h1, .gp-mx h2 { font-weight: 900; letter-spacing: -.01em; }

/* Hero */
.gp-hero { position: relative; padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 60%), linear-gradient(0deg, var(--eb-bg), transparent 35%), var(--gp-hero) center / cover no-repeat, var(--eb-bg); }
.gp-way .gp-hero { background: linear-gradient(90deg, rgba(8, 14, 52, .94) 0%, rgba(8, 14, 52, .72) 50%, rgba(8, 14, 52, .35) 100%), linear-gradient(0deg, var(--eb-bg), transparent 30%), var(--gp-hero) center / cover no-repeat; }
.gp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.gp-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 40px rgba(0, 0, 0, .4); }
.gp-hero h1 { margin: 18px 0 18px; line-height: .95; font-size: clamp(2.5rem, 6vw, 5.4rem); color: var(--eb-gold); text-shadow: 0 6px 40px color-mix(in srgb, var(--eb-gold) 35%, transparent); overflow-wrap: break-word; hyphens: manual; }
.gp-mx .gp-hero h1 { background: linear-gradient(180deg, #fff1c4, #f5c04a 50%, #b97d0b); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 24px rgba(245, 192, 74, .35)); }
.gp-geo .gp-hero h1 { background: linear-gradient(180deg, #ffe066, #ffb020 50%, #ff4d2e); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 24px rgba(255, 110, 40, .35)); }
.gp-tag { display: block; margin-top: 14px; font: 600 clamp(1rem, 2.2vw, 1.3rem)/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--eb-text); -webkit-text-fill-color: var(--eb-text); }
.gp-lede { font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.55; color: var(--eb-text); opacity: .88; max-width: 34rem; }
.gp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gp-chips li { font: 600 .78rem/1 var(--f-mono); color: var(--eb-ice); border: 1px solid var(--eb-line); background: rgba(0, 0, 0, .35); padding: 8px 11px; border-radius: 999px; }
.gp .eb-play { background: linear-gradient(180deg, color-mix(in srgb, var(--eb-gold) 70%, #fff), var(--eb-gold) 55%, var(--eb-ember)); }
.gp .gp-ios { background: #f4f6fb; color: #0b0f1e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 10px 30px rgba(0, 0, 0, .3); }
.gp-hero-art { display: grid; place-items: center; position: relative; }

.mx-logo { width: min(440px, 80vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(245, 192, 74, .35), 0 0 120px rgba(245, 192, 74, .35), 0 30px 80px rgba(0, 0, 0, .6); animation: gp-float 6s ease-in-out infinite; }
.mx-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes gp-float { 50% { translate: 0 -10px; } }
.way-phone { transform: rotate(-3deg); }

/* Sections */
.gp-section { padding-block: clamp(60px, 8vw, 104px); }
.gp-head { display: grid; gap: 14px; max-width: 44rem; margin-bottom: clamp(28px, 5vw, 48px); }
.gp-center { margin-inline: auto; text-align: center; justify-items: center; }
.gp-kicker { font: 600 .8rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--eb-gold); }
.gp-head h2 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.02; }
.gp-head p { color: var(--eb-muted); font-size: 1.12rem; line-height: 1.55; }
.gp-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gp-feats li { padding: 24px; border-radius: 18px; border: 1px solid var(--eb-line); background: linear-gradient(180deg, color-mix(in srgb, var(--eb-gold) 8%, transparent), transparent 70%), var(--eb-panel); }
.gp-n { font: 600 .78rem/1 var(--f-mono); color: var(--eb-cyan); }
.gp-feats h3 { font-size: 1.3rem; margin: 10px 0 8px; color: var(--eb-ice); }
.gp-feats p { color: var(--eb-muted); line-height: 1.5; }
.gp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.gp-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px 30px; }
.gp-facts b { display: block; font: 800 2.8rem/1 var(--eb-display); color: var(--eb-gold); }
.gp-facts span { color: var(--eb-muted); font-size: .95rem; }
.gp-spot { background: radial-gradient(70% 80% at 75% 50%, color-mix(in srgb, var(--eb-gold) 10%, transparent), transparent 70%); }
.way-journey { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--eb-line); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.gp-video { max-width: 340px; margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; border: 1px solid var(--eb-line); background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.gp-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.gp-gallery img { width: 220px; aspect-ratio: 390 / 871; }
.gp-final { text-align: center; padding: clamp(72px, 10vw, 120px) 0; background: radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--eb-gold) 16%, transparent), transparent 70%); }
.gp-final .wrap { display: grid; justify-items: center; gap: 14px; }
.gp-final-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.gp-final h2 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.02; }
.gp-final > .wrap > p { color: var(--eb-muted); font-size: 1.12rem; }
.gp-center-cta { justify-content: center; margin: 12px 0 0; }

/* Millionaire X: lifelines and the playable round */
.mx-lifelines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mx-lifelines li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--eb-line); background: var(--eb-panel); }
.mx-ll-ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #1b1204; background: radial-gradient(circle at 35% 30%, #ffe8a8, #f5c04a 55%, #a86f08); box-shadow: 0 0 24px rgba(245, 192, 74, .35); }
.mx-ll-ico svg { width: 28px; height: 28px; }
.mx-lifelines h3 { font-size: 1.1rem; color: var(--eb-gold); }
.mx-lifelines p { color: var(--eb-muted); }
.mx-game { max-width: 620px; margin-inline: auto; padding: clamp(18px, 4vw, 30px); border-radius: 26px; border: 1px solid rgba(245, 192, 74, .4); background: radial-gradient(90% 60% at 50% 0%, rgba(245, 192, 74, .14), transparent 70%), #0d0a04; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: grid; gap: 14px; }
.mx-ladder { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.mx-ladder li { font: 700 .85rem/1 var(--eb-display); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--eb-line); color: var(--eb-muted); }
.mx-ladder li.on { background: var(--eb-gold); color: #1b1204; border-color: var(--eb-gold); }
.mx-ladder li.won { background: #2fbf71; color: #fff; border-color: #2fbf71; }
.mx-label { text-align: center; font: 600 .8rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--eb-gold); }
.mx-q { text-align: center; font: 700 clamp(1.1rem, 2.6vw, 1.35rem)/1.35 var(--eb-display); padding: 20px; border-radius: 18px; border: 1px solid rgba(245, 192, 74, .5); background: rgba(0, 0, 0, .4); min-height: 96px; display: grid; place-items: center; }
.mx-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mx-a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 999px; border: 1px solid rgba(245, 192, 74, .45); background: rgba(0, 0, 0, .35); color: var(--eb-text); font: 600 1rem/1.2 var(--f-body); text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
.mx-a b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--eb-gold); color: #1b1204; font-size: .85rem; }
.mx-a:hover:not(:disabled) { background: rgba(245, 192, 74, .16); transform: translateY(-1px); }
.mx-a.right { background: #1f8f55; border-color: #2fbf71; }
.mx-a.wrong { background: #9b2335; border-color: #e0475c; }
.mx-a.gone { opacity: .2; }
.mx-tools { display: flex; justify-content: center; }
.mx-fifty, .mx-again, .geo-again, .ws-again { font: 700 .95rem/1 var(--f-body); padding: 11px 20px; border-radius: 999px; border: 1px solid var(--eb-gold); background: transparent; color: var(--eb-gold); cursor: pointer; }
.mx-fifty:disabled { opacity: .35; cursor: default; }
.mx-again, .geo-again, .ws-again { justify-self: center; background: var(--eb-gold); color: #1b1204; }
.mx-status, .geo-status, .ws-status { text-align: center; min-height: 1.5em; color: var(--eb-text); font-weight: 600; }

/* GeoRush: flag quiz in the hero */
.geo-card { width: min(420px, 100%); padding: 22px; border-radius: 28px; border: 1px solid var(--eb-line); background: linear-gradient(180deg, rgba(30, 50, 140, .65), rgba(10, 18, 60, .85)); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 80px rgba(255, 140, 40, .14); display: grid; gap: 14px; justify-items: center; position: relative; }
.geo-icon { display: none; }
.gp-demo-cap { margin-bottom: 14px; color: var(--eb-muted); text-align: center; }
.gp-demo-cap b { color: var(--eb-gold); font: 600 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.geo-quiz { width: 100%; display: grid; gap: 12px; }
.geo-head { display: flex; justify-content: space-between; font: 600 .8rem/1 var(--f-mono); color: var(--eb-ice); }
.geo-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.geo-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff4d2e, #ffb020); transform-origin: left; }
.geo-flag { justify-self: center; width: 200px; height: 134px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 14px 30px rgba(0, 0, 0, .45); background: #fff; }
.geo-prompt { text-align: center; font: 400 1.05rem/1.2 var(--eb-display); color: var(--eb-text); }
.geo-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.geo-opt { padding: 12px 10px; border-radius: 14px; border: 1px solid var(--eb-line); background: rgba(255, 255, 255, .06); color: var(--eb-text); font: 600 .95rem/1.2 var(--f-body); cursor: pointer; min-height: 52px; }
.geo-opt:hover:not(:disabled) { background: rgba(255, 176, 32, .16); border-color: rgba(255, 176, 32, .5); }
.geo-opt.right { background: #1f8f55; border-color: #2fbf71; }
.geo-opt.wrong { background: #9b2335; border-color: #e0475c; }
.geo-bt { position: relative; display: flex; justify-content: center; gap: clamp(40px, 10vw, 110px); padding: 20px 0; }
.geo-ph { width: 130px; aspect-ratio: 9 / 17; border-radius: 26px; border: 6px solid #0b1236; background: linear-gradient(180deg, #1a2e7a, #0c1640); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); display: grid; align-content: start; justify-items: center; gap: 10px; padding-top: 30px; }
.geo-ph img { width: 80px; height: 54px; object-fit: cover; border-radius: 6px; }
.geo-ph span { width: 80%; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.geo-ph span:nth-of-type(2) { background: rgba(47, 191, 113, .55); }
.geo-bt i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #2f6bff; color: #fff; box-shadow: 0 0 0 10px rgba(47, 107, 255, .2), 0 0 60px rgba(47, 107, 255, .6); }
.geo-bt i svg { width: 30px; height: 30px; }

/* 8 way: word grid */
.gp-demo-wrap { display: grid; justify-items: center; }
.ws { width: min(440px, 100%); padding: 14px; border-radius: 26px; background: linear-gradient(180deg, #0a1238, #00021c); border: 1px solid #203677; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); display: grid; gap: 12px; }
.ws-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(110deg, #0e9f6e, #7a8a3c 70%, #c77b2c); border: 1px solid rgba(255, 255, 255, .18); }
.ws-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 40, 30, .45); color: #35e58b; }
.ws-icon svg { width: 22px; height: 22px; }
.ws-title { flex: 1; font: 900 1.05rem/1 var(--eb-display); letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.ws-count { font: 900 1.05rem/1 var(--eb-display); color: #fff; }
.ws-words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ws-words li { --c: #0e9f6e; display: flex; align-items: center; gap: 7px; min-width: 0; height: 38px; padding: 0 9px; border-radius: 12px; background: linear-gradient(135deg, #101d4a, #07102f); border: 1.2px solid color-mix(in srgb, var(--c) 72%, transparent); font: 900 .8rem/1 var(--eb-display); color: #fff; transition: background .14s, border-color .14s; }
.ws-words li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-words li i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 7px color-mix(in srgb, var(--c) 40%, transparent); display: grid; place-items: center; }
.ws-words li.done { border-color: #35e58b; background: linear-gradient(90deg, #0c684f, #063329); border-width: 1.7px; color: #e9fff7; box-shadow: 0 0 9px rgba(53, 229, 139, .24); }
.ws-words li.done i { background: #35e58b; box-shadow: 0 0 7px rgba(53, 229, 139, .4); }
.ws-words li.done i::after { content: ""; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; rotate: -45deg; translate: 0 -1px; }
.ws-board { position: relative; aspect-ratio: 1; padding: 7px; border-radius: 24px; background: linear-gradient(135deg, #0b1844, #020722); border: 1.4px solid rgba(86, 200, 255, .38); box-shadow: 0 11px 22px rgba(0, 0, 0, .47); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.ws-board svg { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; z-index: 0; }
.ws-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); height: 100%; }
.ws-cell { --c: #56c8ff; margin: 2.1px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, #173263, #0a173d); border: 1px solid #234b88; color: #fff; font: 800 clamp(1rem, 4.6vw, 1.45rem)/1 var(--eb-display); text-shadow: 0 1px 4px rgba(0, 0, 0, .53); box-shadow: 0 3px 5px rgba(0, 0, 0, .4); transition: background .14s, border-color .14s; }
.ws-cell.lit { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 95%, transparent), color-mix(in srgb, var(--c) 76%, #000)); border-color: color-mix(in srgb, var(--c) 94%, transparent); }
.ws-cell.sel { border-width: 1.8px; box-shadow: 0 3px 5px rgba(0, 0, 0, .4), 0 0 7px color-mix(in srgb, var(--c) 42%, transparent); }
.ws-board.shake { animation: ws-shake .3s; }
@keyframes ws-shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }

@media (max-width: 960px) {
  .gp-hero-grid, .gp-split { grid-template-columns: 1fr; }
  .gp-feats { grid-template-columns: 1fr 1fr; }
  .gp-hero-art { padding-top: 12px; }
}
@media (max-width: 560px) {
  .gp-feats { grid-template-columns: 1fr; }
  .mx-answers { grid-template-columns: 1fr; }
  .mx-logo { width: min(300px, 78vw); }
  .geo-ph { width: 104px; }
  .gp-gallery img { width: 180px; }
  .eb-cta { flex-direction: column; align-items: stretch; }
  .gp-center-cta { align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .mx-logo { animation: none; } }
