:root {
    --ink: #f8fbff;
    --muted: rgba(224, 235, 255, .7);
    --night: #07142e;
    --glass: rgba(8, 24, 51, .62);
    --glass-light: rgba(255, 255, 255, .1);
    --line: rgba(255, 255, 255, .16);
    --gold: #f7c76b;
    --gold-deep: #d99b35;
    --mint: #4ce0ba;
    --emerald: #19a77e;
    --danger: #ff7187;
    --shadow: 0 24px 80px rgba(1, 8, 24, .45);
    --radius: 28px;
}
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

* { box-sizing: border-box; }
html {
    min-height: 100%;
    background: var(--night);
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ink);
    font-family: Inter, Avenir, "Segoe UI", sans-serif;
    overflow-x: hidden;
    overflow-x: clip;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(76, 224, 186, .75); outline-offset: 3px; }
[hidden] { display: none !important; }

.scene, .scene-image, .scene-vignette, .stars { position: fixed; inset: 0; pointer-events: none; }
.scene { z-index: -2; background: #07142e; overflow: hidden; }
.scene-image {
    background-image: var(--active-scene, url('../images/worlds/sagittarius-origin-1600.webp'));
    background-position: center center;
    background-size: cover;
    transform: scale(1.025);
    opacity: 1;
    transition: opacity .24s ease;
    animation: scenicReveal 1.8s ease-out both;
}
.scene-image.is-switching { opacity: .42; }
.scene-vignette {
    background:
        linear-gradient(180deg, rgba(4, 13, 31, .52) 0%, rgba(5, 14, 31, .08) 32%, rgba(4, 12, 27, .34) 72%, rgba(3, 9, 22, .86) 100%),
        radial-gradient(circle at 50% 45%, transparent 28%, rgba(1, 7, 19, .48) 100%);
}
.scene-glow { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .26; }
.glow-one { width: 380px; height: 380px; background: #ffad52; top: 14%; left: 36%; }
.glow-two { width: 340px; height: 340px; background: #1768c8; bottom: 5%; right: 6%; }
.stars { opacity: .45; background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px); background-size: 83px 83px; mask-image: linear-gradient(#000, transparent 52%); }

.loading-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; gap: 18px; text-align: center; background: #07142e; transition: opacity .55s ease, visibility .55s; }
.loading-screen.is-hidden { opacity: 0; visibility: hidden; }
.loading-mark, .brand-mark { display: grid; place-items: center; background: linear-gradient(145deg, #53e5c0 0%, #128f7c 55%, #076061 100%); box-shadow: inset 0 1px 1px rgba(255,255,255,.6), 0 8px 24px rgba(0, 207, 164, .3); transform: rotate(45deg); }
.loading-mark { width: 74px; height: 74px; margin: auto; border-radius: 24px 12px 24px 12px; }
.loading-mark span, .brand-mark i { transform: rotate(-45deg); font-family: Georgia, serif; font-style: normal; font-weight: 700; }
.loading-mark span { font-size: 34px; }
.loading-screen p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
.loading-bar { width: 180px; height: 3px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.12); }
.loading-bar i { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--mint); animation: loading 1.1s ease-in-out infinite alternate; }

.app-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(24px, 5vw, 80px); }
.brand { border: 0; background: transparent; display: flex; align-items: center; gap: 14px; padding: 0; cursor: pointer; text-align: left; }
.brand-mark { width: 46px; height: 46px; border-radius: 15px 8px 15px 8px; }
.brand-mark i { font-size: 22px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: Georgia, "Sylfaen", serif; font-size: 21px; letter-spacing: .035em; }
.brand-copy small, .profile-chip small { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.player-stats { display: flex; align-items: center; gap: 10px; }
.stat-pill, .profile-chip { height: 48px; border: 1px solid var(--line); background: rgba(5, 18, 40, .58); box-shadow: inset 0 1px rgba(255,255,255,.09), 0 10px 30px rgba(0,0,0,.16); backdrop-filter: blur(16px); }
.stat-pill { border-radius: 16px; display: flex; align-items: center; gap: 8px; padding: 0 15px; }
.stat-pill strong { font-size: 15px; }
.stat-pill small { color: var(--muted); font-size: 9px; margin-left: -4px; }
.stat-gem { color: #57f0c4; text-shadow: 0 0 16px #2ce5b4; }
.stat-fire { position: relative; color: #ffb54d; text-shadow: 0 0 12px #ff7d3f; }
.stat-fire::after { content: ''; position: absolute; width: 5px; height: 8px; border-radius: 50% 50% 50% 0; background: #ffe08d; left: 4px; top: 2px; transform: rotate(-35deg); }
.profile-chip { border-radius: 16px; padding: 0 12px 0 6px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.profile-chip > span:nth-child(2) { display: grid; gap: 2px; min-width: 90px; text-align: left; }
.profile-chip strong { font-size: 12px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-chip > i { color: var(--muted); font-style: normal; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 12px; color: #08221d; font-weight: 900; background: linear-gradient(145deg, #b9ffe9, #44d4af); box-shadow: inset 0 1px rgba(255,255,255,.7); }
.avatar-scribe { color: #382007; background: linear-gradient(145deg, #fff0b7, #d6a24e); }
.avatar-mountain { color: #eaf3ff; background: linear-gradient(145deg, #5f85ac, #263b5a); }
.avatar-crown { color: #4b2a03; background: linear-gradient(145deg, #ffe7a0, #e7a62b); }

main { flex: 1; min-height: 0; }
.screen { display: none; min-height: calc(100vh - 96px); min-height: calc(100dvh - 96px); }
.screen.is-active { display: flex; }
.home-screen { position: relative; flex-direction: column; align-items: center; padding: clamp(36px, 5vh, 68px) 24px 38px; animation: fadeUp .65s ease-out both; }
.hero-copy { text-align: center; text-shadow: 0 3px 18px rgba(0,0,0,.45); }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: .24em; font-size: 10px; }
.eyebrow span { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow span:last-child { transform: rotate(180deg); }
.location-line { margin: 16px 0 5px; color: rgba(255,255,255,.78); font-size: 13px; letter-spacing: .12em; }
.location-line i { color: var(--gold); font-style: normal; }
.hero-copy h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(52px, 7vw, 92px); line-height: 1; letter-spacing: .16em; font-weight: 500; text-shadow: 0 5px 30px rgba(0,0,0,.48); }
.hero-copy h1 > span { display: block; }
.hero-copy h1 > small { display: block; margin-top: 8px; color: rgba(241,248,255,.84); font: 700 .2em/1 Inter, Avenir, "Segoe UI", sans-serif; letter-spacing: .72em; text-indent: .72em; }
.hero-subtitle { margin: 15px 0 0; color: rgba(245, 249, 255, .78); font-family: Georgia, "Sylfaen", serif; font-size: clamp(14px, 1.35vw, 19px); line-height: 1.65; }
.archive-badge { width: max-content; margin: 14px auto 0; padding: 7px 12px; border: 1px solid rgba(81,228,194,.25); border-radius: 999px; display: flex; align-items: baseline; gap: 7px; color: var(--cyan); background: rgba(6,25,39,.42); box-shadow: inset 0 1px rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.archive-badge strong { font-size: 12px; letter-spacing: .08em; }
.archive-badge span { color: rgba(238,247,255,.68); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.hero-badges { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.hero-badges .archive-badge { margin: 0; }
.games-count { padding: 7px 12px; border: 1px solid rgba(247,199,107,.27); border-radius: 999px; display: flex; align-items: baseline; gap: 6px; color: var(--gold); background: rgba(33,24,11,.38); box-shadow: inset 0 1px rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.games-count strong { font-size: 12px; }.games-count span { color: rgba(238,247,255,.68); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.home-screen { padding-top: clamp(22px, 3vh, 38px); }
.hero-copy h1 { font-size: clamp(48px, 5vw, 72px); }
.hero-subtitle { margin-top: 10px; }
.games-hub { width: min(960px, calc(100vw - 220px)); margin-top: clamp(20px, 2.6vh, 30px); }
.games-hub-heading { margin: 0 auto 15px; text-align: center; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.games-hub-heading > span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.games-hub-heading h2 { margin: 5px 0 0; font: 500 clamp(24px, 3vw, 34px)/1.15 Georgia, "Sylfaen", serif; }
.games-hub-heading p { margin: 7px 0 0; color: rgba(230,240,255,.7); font-size: 12px; }
.game-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.game-choice { min-width: 0; padding: 18px; border: 1px solid rgba(255,255,255,.19); border-radius: 27px; color: var(--ink); background: linear-gradient(150deg, rgba(12,34,63,.84), rgba(5,17,38,.76)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(22px) saturate(1.15); }
.choice-top { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px; text-align: left; }
.choice-top > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.choice-top small { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.choice-top strong { font: 500 18px/1.2 Georgia, "Sylfaen", serif; }
.choice-top em { overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.choice-top em i { color: var(--gold); font-style: normal; }
.choice-top > b { padding: 5px 8px; border: 1px solid rgba(247,199,107,.3); border-radius: 999px; color: var(--gold); background: rgba(247,199,107,.07); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.choice-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; }
.expedition-icon { border: 1px solid rgba(247,199,107,.36); color: var(--gold); background: radial-gradient(circle, rgba(247,199,107,.2), rgba(247,199,107,.05)); box-shadow: 0 0 20px rgba(247,199,107,.1); }
.scramble-icon { border: 1px solid rgba(76,224,186,.4); color: var(--mint); background: rgba(76,224,186,.1); box-shadow: 0 0 20px rgba(76,224,186,.12); }
.pattern-icon { border: 1px solid rgba(143,200,255,.42); color: #9fd1ff; background: rgba(91,170,242,.11); box-shadow: 0 0 20px rgba(91,170,242,.13); }
.hunt-icon { border: 1px solid rgba(114,239,193,.42); color: #92f5d0; background: rgba(62,194,146,.11); box-shadow: 0 0 20px rgba(62,194,146,.13); font-size: 16px; font-weight: 900; }
.expedition-choice { position: relative; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(26,47,77,.92), rgba(5,17,39,.82) 68%); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.expedition-choice:hover { transform: translateY(-3px); border-color: rgba(247,199,107,.52); box-shadow: 0 24px 55px rgba(0,0,0,.34), 0 0 30px rgba(247,199,107,.07), inset 0 1px rgba(255,255,255,.12); }
.expedition-choice::after { content: ""; position: absolute; left: -85px; bottom: -95px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(247,199,107,.14), transparent 67%); pointer-events: none; }
.crossword-preview { position: relative; min-height: 126px; margin: 22px 0 14px; display: grid; place-items: center; }
.crossword-orbit { position: absolute; width: 188px; height: 88px; border: 1px solid rgba(247,199,107,.16); border-radius: 50%; transform: rotate(-12deg); box-shadow: 0 0 28px rgba(247,199,107,.08), inset 0 0 22px rgba(91,170,242,.05); }
.crossword-orbit::before, .crossword-orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px rgba(247,199,107,.9); }
.crossword-orbit::before { top: 8px; right: 29px; }.crossword-orbit::after { left: 18px; bottom: 16px; }
.mini-crossword { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 27px); grid-template-rows: repeat(4, 27px); gap: 4px; transform: rotate(-2deg); }
.mini-crossword span { grid-column: var(--x); grid-row: var(--y); border: 1px solid rgba(255,255,255,.66); border-radius: 7px; display: grid; place-items: center; color: #11253a; background: linear-gradient(145deg, #fff9e9, #e9bc61); box-shadow: 0 7px 14px rgba(0,0,0,.25), inset 0 1px #fff; font-size: 14px; font-weight: 900; animation: crosswordPreviewIn .45s ease both; animation-delay: calc((var(--x) + var(--y)) * 35ms); }
.mini-crossword span:first-child, .mini-crossword span:nth-child(5) { color: #062a27; background: linear-gradient(145deg, #e9fff9, #68d9bd); box-shadow: 0 7px 14px rgba(0,0,0,.25), 0 0 16px rgba(76,224,186,.18), inset 0 1px #fff; }
.expedition-portal-copy { text-align: left; }
.expedition-current { margin-bottom: 10px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.expedition-current > span { min-width: 0; display: grid; gap: 2px; }.expedition-current small { color: rgba(231,240,255,.58); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.expedition-current strong { overflow: hidden; color: #dcecff; font-size: 10px; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }.expedition-current strong i { color: var(--gold); font-style: normal; }.expedition-current strong b { font-weight: 800; }
.expedition-current > em { flex: 0 0 auto; color: var(--gold); font-size: 10px; font-style: normal; }
.expedition-portal-copy h3 { margin: 0; color: #fffaf0; font: 500 22px/1.25 Georgia, "Sylfaen", serif; }.expedition-portal-copy p { margin: 9px 0 0; color: rgba(228,241,255,.72); font-size: 12px; line-height: 1.6; }
.expedition-features span:last-child { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; }.expedition-features span b { font: inherit; }.expedition-features .difficulty-dots { display: inline-flex; gap: 2px; }.expedition-features .difficulty-dots i { width: 4px; height: 4px; }
.games-hub .expedition-cta { position: relative; z-index: 1; min-height: 59px; margin-top: auto; border-radius: 17px; }
.games-hub .level-launch-card { width: 100%; margin-top: 15px; padding: 16px; border-radius: 20px; background: rgba(3,14,32,.36); box-shadow: inset 0 1px rgba(255,255,255,.07); }
.games-hub .level-card-top h2 { font-size: 19px; }.games-hub .level-number { font-size: 29px; }
.games-hub .level-launch-card > p { margin: 10px 0 12px; }.games-hub .lore-preview { margin: -2px 0 12px; padding-block: 8px; }
.games-hub .difficulty-row { padding-top: 11px; }.games-hub .primary-button { min-height: 59px; margin-top: 13px; border-radius: 17px; }
.games-hub .journey-progress, .games-hub .endless-status { width: 100%; }.games-hub .journey-progress { margin-top: 14px; }.games-hub .endless-status { margin-top: 9px; }
.scramble-choice { position: relative; overflow: hidden; align-self: start; display: flex; flex-direction: column; text-decoration: none; background: linear-gradient(145deg, rgba(9,51,62,.88), rgba(5,17,39,.8) 68%); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.scramble-choice::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(76,224,186,.18), transparent 67%); pointer-events: none; }
.scramble-choice:hover { transform: translateY(-3px); border-color: rgba(76,224,186,.55); box-shadow: 0 24px 55px rgba(0,0,0,.34), 0 0 30px rgba(76,224,186,.08), inset 0 1px rgba(255,255,255,.12); }
.pattern-choice { position: relative; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; background: linear-gradient(145deg, rgba(19,50,83,.9), rgba(5,17,39,.82) 68%); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.pattern-choice::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(91,170,242,.2), transparent 67%); pointer-events: none; }
.pattern-choice:hover { transform: translateY(-3px); border-color: rgba(143,200,255,.58); box-shadow: 0 24px 55px rgba(0,0,0,.34), 0 0 30px rgba(91,170,242,.09), inset 0 1px rgba(255,255,255,.12); }
.hunt-choice { position: relative; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; background: linear-gradient(145deg, rgba(8,58,46,.9), rgba(5,17,39,.82) 68%); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.hunt-choice::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(83,226,174,.2), transparent 67%); pointer-events: none; }
.hunt-choice:hover { transform: translateY(-3px); border-color: rgba(114,239,193,.58); box-shadow: 0 24px 55px rgba(0,0,0,.34), 0 0 30px rgba(62,194,146,.09), inset 0 1px rgba(255,255,255,.12); }
.scramble-preview { min-height: 112px; margin: 30px 0 20px; display: flex; align-items: center; justify-content: center; gap: 8px; transform: rotate(-2deg); }
.scramble-preview span { width: clamp(48px, 5vw, 61px); height: clamp(57px, 6vw, 70px); border: 1px solid rgba(255,255,255,.65); border-radius: 15px; display: grid; place-items: center; color: #09251f; background: linear-gradient(145deg, #f7ffff, #bfeee3); box-shadow: 0 12px 24px rgba(0,0,0,.24), inset 0 1px #fff; font-size: clamp(23px, 3vw, 31px); font-weight: 900; }
.scramble-preview span:nth-child(2) { transform: translateY(9px) rotate(3deg); }.scramble-preview span:nth-child(3) { transform: translateY(-7px) rotate(-2deg); }.scramble-preview span:nth-child(4) { transform: translateY(5px) rotate(2deg); }
.pattern-preview { min-height: 112px; margin: 30px 0 20px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pattern-preview span { width: clamp(37px, 4vw, 49px); height: clamp(48px, 5vw, 59px); border: 1px solid rgba(255,255,255,.32); border-radius: 13px; display: grid; place-items: center; color: #08203a; background: rgba(4,18,40,.74); box-shadow: inset 0 1px rgba(255,255,255,.08); font-size: clamp(21px, 2.6vw, 27px); font-weight: 900; }
.pattern-preview span:empty::after { content: ""; width: 13px; height: 2px; border-radius: 9px; background: rgba(220,237,255,.36); }
.pattern-preview span:not(:empty) { border-color: rgba(255,255,255,.72); background: linear-gradient(145deg, #f4fbff, #8fc8ff); box-shadow: 0 10px 22px rgba(0,0,0,.24), 0 0 20px rgba(91,170,242,.18), inset 0 1px #fff; }
.hunt-preview { min-height: 112px; margin: 24px 0 18px; display: grid; place-items: center; align-content: center; gap: 11px; }
.hunt-preview > strong { color: #f5fffb; font: 600 clamp(28px, 4vw, 40px)/1 Georgia, serif; letter-spacing: .18em; text-indent: .18em; text-shadow: 0 0 24px rgba(83,226,174,.24); }
.hunt-preview > span { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.hunt-preview i { padding: 5px 8px; border: 1px solid rgba(114,239,193,.26); border-radius: 9px; color: #cffff0; background: rgba(62,194,146,.09); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.pattern-choice .portal-cta { color: #071f38; background: linear-gradient(135deg, #a9d6ff, #55a8f0); box-shadow: 0 13px 28px rgba(42,127,205,.27), inset 0 1px rgba(255,255,255,.6); }
.pattern-choice .portal-features span { border-color: rgba(143,200,255,.22); color: #d7ebff; background: rgba(91,170,242,.07); }
.hunt-choice .portal-cta { color: #06251c; background: linear-gradient(135deg, #7af0c8, #2cbb89); box-shadow: 0 13px 28px rgba(10,150,115,.27), inset 0 1px rgba(255,255,255,.58); }
.hunt-choice .portal-features span { border-color: rgba(114,239,193,.22); color: #d7ffef; background: rgba(62,194,146,.07); }
.scramble-portal-copy { max-width: 390px; text-align: left; }.scramble-portal-copy h3 { margin: 0; color: #f8fffd; font: 500 22px/1.25 Georgia, "Sylfaen", serif; }.scramble-portal-copy p { margin: 9px 0 0; color: rgba(228,241,255,.72); font-size: 12px; line-height: 1.6; }
.portal-features { margin: 17px 0; display: flex; flex-wrap: wrap; gap: 6px; }.portal-features span { padding: 6px 8px; border: 1px solid rgba(76,224,186,.2); border-radius: 999px; color: #cffff2; background: rgba(76,224,186,.06); font-size: 9px; }
.portal-cta { position: relative; z-index: 1; min-height: 59px; margin-top: auto; padding: 9px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 17px; display: grid; grid-template-columns: 36px 1fr 20px; align-items: center; gap: 10px; color: #06241c; background: linear-gradient(135deg, #65e6c5, #24af8a); box-shadow: 0 13px 28px rgba(10,150,115,.26), inset 0 1px rgba(255,255,255,.5); }
.scramble-choice .portal-cta { margin-top: 4px; }
.portal-cta > i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #eafff8; background: rgba(4,61,48,.2); font-size: 11px; font-style: normal; }.portal-cta > span { display: grid; gap: 1px; text-align: left; }.portal-cta small { font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.portal-cta strong { font-size: 14px; }.portal-cta > b { font-size: 26px; }
.games-hub > .daily-card { width: min(640px, 100%); margin: 14px auto 0; }

.level-launch-card { width: min(430px, 92vw); margin-top: clamp(26px, 4vh, 45px); padding: 20px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: linear-gradient(150deg, rgba(12, 34, 63, .8), rgba(6, 19, 41, .68)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(22px) saturate(1.2); }
.level-card-top { display: flex; justify-content: space-between; align-items: center; }
.level-card-top small, .level-launch-card > p { color: var(--muted); }
.level-card-top small { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.level-card-top h2 { margin: 6px 0 0; font-family: Georgia, "Sylfaen", serif; font-size: 21px; font-weight: 500; }
.level-number { font: 500 33px/1 Georgia, serif; color: rgba(255,255,255,.2); }
.level-launch-card > p { margin: 15px 0 17px; font-size: 11px; line-height: 1.6; }
.lore-preview { margin: -6px 0 16px; padding: 10px 12px; border-left: 2px solid rgba(76,224,186,.55); border-radius: 0 10px 10px 0; color: rgba(223,237,255,.64); background: rgba(0,0,0,.12); font: italic 10px/1.55 Georgia, serif; }
.difficulty-row { display: flex; align-items: center; gap: 9px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.difficulty-row em { margin-left: auto; color: var(--gold); font-style: normal; letter-spacing: .04em; }
.difficulty-name { min-width: 62px; color: rgba(230,242,255,.82); font-size: 9px; letter-spacing: .07em; }
.difficulty-dots { display: flex; gap: 4px; }
.difficulty-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.15); }
.difficulty-dots i.active { background: var(--gold); box-shadow: 0 0 8px rgba(247,199,107,.8); }
.primary-button { width: 100%; min-height: 67px; margin-top: 18px; padding: 9px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 20px; display: grid; grid-template-columns: 42px 1fr 28px; align-items: center; text-align: left; cursor: pointer; background: linear-gradient(135deg, #1fbd91, #087f70); box-shadow: 0 13px 30px rgba(2, 116, 93, .36), inset 0 1px rgba(255,255,255,.28); transition: transform .2s, filter .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 17px 36px rgba(2,116,93,.45), inset 0 1px rgba(255,255,255,.3); }
.primary-button:active { transform: translateY(1px) scale(.99); }
.primary-button .play-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 12px; padding-left: 2px; }
.primary-button > span:nth-child(2) { display: grid; gap: 2px; }
.primary-button small { font-size: 8px; opacity: .72; letter-spacing: .12em; text-transform: uppercase; }
.primary-button strong { font-size: 16px; }
.primary-button > i { font-size: 28px; font-style: normal; opacity: .7; }
.primary-button.compact { min-height: 54px; grid-template-columns: 1fr 24px; text-align: center; border-radius: 16px; }

.daily-card { width: min(430px, 92vw); min-height: 66px; margin-top: 12px; padding: 9px 15px 9px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 13px; text-align: left; cursor: pointer; background: rgba(7,20,43,.62); box-shadow: inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(15px); transition: border-color .2s, background .2s; }
.daily-card:hover { border-color: rgba(247,199,107,.45); background: rgba(11,28,56,.74); }
.daily-calendar { height: 48px; border-radius: 11px; overflow: hidden; display: grid; grid-template-rows: 16px 1fr; text-align: center; color: #11203a; background: #f7f8fa; box-shadow: 0 7px 16px rgba(0,0,0,.2); }
.daily-calendar small { color: #35200a; background: linear-gradient(90deg, #f4ba51, #ffe0a0); font-size: 8px; text-transform: uppercase; line-height: 16px; }
.daily-calendar strong { font: 700 20px/30px Georgia, serif; }
.daily-copy { display: grid; gap: 2px; }
.daily-copy small { color: var(--gold); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.daily-copy strong { font: 500 13px Georgia, "Sylfaen", serif; }
.daily-copy em { color: var(--muted); font-size: 9px; font-style: normal; }
.daily-arrow { font-size: 24px; color: var(--muted); }
.arcade-card { width: min(430px, 92vw); min-height: 66px; margin-top: 10px; padding: 9px 15px 9px 12px; border: 1px solid rgba(76,224,186,.26); border-radius: 20px; display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 13px; color: var(--ink); text-align: left; text-decoration: none; background: linear-gradient(105deg, rgba(16,94,91,.68), rgba(7,28,53,.65)); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 10px 28px rgba(0,0,0,.15); backdrop-filter: blur(15px); transition: border-color .2s, transform .2s, background .2s; }
.arcade-card:hover { border-color: rgba(76,224,186,.62); transform: translateY(-2px); background: linear-gradient(105deg, rgba(19,125,108,.72), rgba(7,31,58,.72)); }
.arcade-icon { width: 44px; height: 44px; border: 1px solid rgba(76,224,186,.4); border-radius: 13px; display: grid; place-items: center; color: var(--mint); background: rgba(76,224,186,.12); box-shadow: 0 0 18px rgba(76,224,186,.12); font-size: 26px; }
.arcade-copy { display: grid; gap: 2px; }.arcade-copy small { color: var(--gold); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }.arcade-copy strong { font: 500 14px Georgia, serif; }.arcade-copy em { color: var(--muted); font-size: 9px; font-style: normal; }.arcade-arrow { color: var(--mint); font-size: 25px; }
.journey-progress { width: min(430px, 92vw); margin-top: 18px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.progress-copy strong { color: #fff; }
.progress-track { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.16); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--gold)); box-shadow: 0 0 10px var(--mint); transition: width .8s ease; }
.endless-status { width: min(430px, 92vw); margin-top: 11px; padding: 10px 13px; border: 1px solid rgba(76,224,186,.2); border-radius: 15px; display: flex; align-items: center; gap: 10px; color: rgba(238,246,255,.76); background: rgba(5,22,43,.48); backdrop-filter: blur(14px); }
.endless-status > i { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: #09251e; background: linear-gradient(145deg, #7ef0d3, #31bd99); box-shadow: 0 0 18px rgba(76,224,186,.2); font-size: 20px; font-style: normal; font-weight: 900; }
.endless-status > span { min-width: 0; display: grid; gap: 1px; }
.endless-status strong { color: #dffff7; font-size: 11px; }
.endless-status small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.seo-intro { width: min(720px, 92vw); margin-top: 22px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; text-align: center; background: rgba(5,20,42,.58); box-shadow: inset 0 1px rgba(255,255,255,.07); backdrop-filter: blur(18px); }
.seo-intro h2 { margin: 0; color: #f8fbff; font: 500 20px/1.25 Georgia, serif; }
.seo-intro p { max-width: 620px; margin: 9px auto 13px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.seo-intro nav { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.seo-intro a { padding: 7px 10px; border: 1px solid rgba(76,224,186,.24); border-radius: 10px; color: #dffff7; background: rgba(76,224,186,.07); font-size: 11px; text-decoration: none; }
.seo-intro a:hover { border-color: rgba(76,224,186,.52); background: rgba(76,224,186,.13); }

.side-rail { position: fixed; z-index: 8; top: 50%; transform: translateY(-45%); display: grid; gap: 14px; }
.left-rail { left: clamp(18px, 3vw, 48px); }
.right-rail { right: clamp(18px, 3vw, 48px); }
.rail-button { position: relative; width: 68px; min-height: 68px; border: 1px solid var(--line); border-radius: 21px; display: grid; place-content: center; gap: 4px; cursor: pointer; background: rgba(7,20,43,.58); box-shadow: 0 12px 34px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(16px); transition: transform .2s, border-color .2s; }
.rail-button:hover { transform: translateY(-2px); border-color: rgba(76,224,186,.5); }
.rail-button span { color: var(--gold); font-size: 23px; line-height: 1; }
.rail-button em { color: var(--muted); font-size: 7px; font-style: normal; }
.rail-button b { position: absolute; right: -5px; top: -5px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; display: grid; place-items: center; background: #f5b94f; color: #302008; font-size: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.admin-link { text-decoration: none; }
.journey-orb { width: 68px; height: 68px; border: 1px solid rgba(247,199,107,.32); border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, rgba(247,199,107,.18), rgba(7,20,43,.64) 65%); box-shadow: inset 0 0 15px rgba(247,199,107,.1), 0 12px 34px rgba(0,0,0,.2); backdrop-filter: blur(14px); }
.journey-orb span { font: 600 16px Georgia, serif; color: var(--gold); }
.journey-orb small { color: var(--muted); font-size: 6px; text-transform: uppercase; }

.game-screen { flex-direction: column; width: min(1080px, calc(100% - 170px)); margin: 0 auto; padding: 14px 0 42px; animation: fadeUp .45s ease-out both; }
.game-topline { display: grid; grid-template-columns: 54px 1fr 90px; align-items: center; gap: 18px; margin-bottom: 18px; }
.icon-button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; background: rgba(7,20,43,.62); box-shadow: inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(16px); font-size: 22px; }
.game-heading small, .game-score small { color: var(--gold); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.game-heading h2 { margin: 4px 0 0; font: 500 22px Georgia, "Sylfaen", serif; }
.game-score { text-align: right; display: grid; }
.game-score strong { font: 500 24px Georgia, serif; }
.game-layout { min-height: min(690px, calc(100vh - 174px)); min-height: min(690px, calc(100dvh - 174px)); display: grid; grid-template-columns: minmax(380px, 1.08fr) minmax(370px, .92fr); gap: 20px; }
.glass-panel { border: 1px solid rgba(255,255,255,.17); border-radius: 30px; background: linear-gradient(145deg, rgba(9,27,54,.76), rgba(5,17,37,.68)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(24px) saturate(1.15); }
.crossword-panel { display: grid; grid-template-rows: auto 1fr auto auto; min-height: 540px; overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; padding: 20px 24px 15px; border-bottom: 1px solid rgba(255,255,255,.09); color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.panel-header strong { color: var(--gold); }
.matrix-level { margin-left: 16px; color: rgba(224,235,255,.62); white-space: nowrap; }
.matrix-level b { color: var(--gold); font-size: 1.18em; }
.matrix-guide { margin-left: auto; margin-right: 18px; display: inline-flex; align-items: center; gap: 6px; color: rgba(224,235,255,.62); letter-spacing: .04em; white-space: nowrap; }
.matrix-guide b { color: var(--mint); font-size: 14px; line-height: 1; }
.matrix-guide i { opacity: .42; font-style: normal; }
.pulse-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 1.8s infinite; }
.crossword-wrap { display: grid; align-items: start; justify-items: center; padding: 14px 18px 18px; min-height: 0; }
.crossword { --grid-cols: 7; display: grid; grid-template-columns: repeat(var(--grid-cols), minmax(28px, 52px)); gap: clamp(4px, .7vw, 8px); align-items: center; justify-items: center; }
.crossword-cell { width: 100%; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; position: relative; color: transparent; font-size: clamp(17px, 2.2vw, 27px); font-weight: 800; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px rgba(255,255,255,.06); transform: scale(.98); transition: background .3s, transform .3s, color .25s, box-shadow .3s; }
.crossword-cell.is-filled { color: #0d2b28; background: linear-gradient(145deg, #eefff9, #8de6d1); border-color: rgba(255,255,255,.82); box-shadow: 0 6px 18px rgba(31,203,161,.24), inset 0 1px #fff; transform: scale(1); animation: tileReveal .4s ease both; }
.crossword-cell.is-hinted { color: #402b08; background: linear-gradient(145deg, #fff4c7, #f0be5d); box-shadow: 0 6px 18px rgba(241,183,72,.25), inset 0 1px #fff; }
.crossword-cell.is-reveal-target { z-index: 3; visibility: visible; border-color: rgba(247,199,107,.95); background-color: rgba(247,199,107,.18); box-shadow: 0 0 0 4px rgba(247,199,107,.18), 0 0 28px rgba(247,199,107,.58), inset 0 1px rgba(255,255,255,.2); animation: revealSlotPulse .85s ease-in-out infinite alternate; }
.crossword-cell.is-newly-revealed { border-color: #fff1b2; box-shadow: 0 0 0 6px rgba(247,199,107,.24), 0 0 40px rgba(247,199,107,.85), inset 0 1px #fff; }
.crossword-cell.is-reveal-start::after { content: attr(data-slot-label); position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: 130px; padding: 5px 8px; border: 1px solid rgba(247,199,107,.48); border-radius: 8px; color: #ffe7a5; background: rgba(7,20,43,.96); box-shadow: 0 8px 20px rgba(0,0,0,.35); font-size: 9px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; transform: translateX(-50%); pointer-events: none; }
.crossword-cell.is-empty { visibility: hidden; }
.game-message { min-height: 46px; margin: 0; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); text-align: center; font-size: 11px; }
.game-message.success { color: var(--mint); }
.game-message.notice { color: var(--gold); background: linear-gradient(90deg, transparent, rgba(247,199,107,.06), transparent); }
.game-message.error { color: #ff9bab; animation: shake .35s ease; }
.discovery-card { margin: 0 18px 12px; padding: 14px 16px; border: 1px solid rgba(76,224,186,.24); border-radius: 17px; background: linear-gradient(135deg, rgba(21,130,111,.17), rgba(255,255,255,.04)); box-shadow: inset 0 1px rgba(255,255,255,.08); animation: fadeUp .35s ease both; }
.bonus-word-alert, #bonusWordAlert { display: none !important; }
.discovery-card.is-bonus { border-color: rgba(247,199,107,.72); background: linear-gradient(135deg, rgba(131,94,28,.27), rgba(21,130,111,.16) 72%, rgba(255,255,255,.04)); box-shadow: 0 0 0 1px rgba(247,199,107,.11), 0 0 30px rgba(247,199,107,.16), inset 0 1px rgba(255,255,255,.12); animation: discoveryBonusFlash .75s ease both, discoveryBonusGlow 2s ease-in-out .75s 2; }
.discovery-card.is-bonus.is-bonus-info { border-color: rgba(247,199,107,.5); background: linear-gradient(135deg, rgba(128,90,25,.2), rgba(255,255,255,.035)); }
.discovery-card.is-bonus .discovery-label { color: var(--gold); }
.discovery-bonus-status { display: block; margin: 9px 0 10px; padding: 8px 11px; border: 1px solid rgba(247,199,107,.38); border-radius: 11px; color: #ffe9ad; background: rgba(247,199,107,.1); font-size: 10px; font-weight: 800; line-height: 1.45; letter-spacing: .02em; }
.discovery-card.is-bonus-reward .discovery-bonus-status { color: #bffff0; border-color: rgba(76,224,186,.38); background: rgba(76,224,186,.1); }
.discovery-top, .discovery-wordline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.discovery-actions { display: flex; align-items: center; gap: 7px; }
.discovery-label { color: var(--mint); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; }
.discovery-top button { width: 32px; height: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; cursor: pointer; color: var(--mint); background: rgba(255,255,255,.05); }
.discovery-top .discovery-close { color: rgba(238,246,255,.76); font-size: 19px; line-height: 1; }
.discovery-wordline h3 { margin: 4px 0 2px; font: 600 22px Georgia, serif; letter-spacing: .08em; }
.discovery-wordline em { color: var(--gold); font-size: 8px; font-style: normal; text-transform: uppercase; }
.discovery-card p { margin: 5px 0; color: rgba(242,247,255,.85); font: 12px/1.5 Georgia, serif; }
.discovery-card > small { display: block; color: var(--muted); font-size: 9px; line-height: 1.45; font-style: italic; }
.save-word-button { margin-top: 10px; padding: 7px 10px; border: 1px solid rgba(76,224,186,.26); border-radius: 10px; cursor: pointer; color: var(--mint); background: rgba(76,224,186,.08); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.save-word-button.saved { color: #09251e; background: var(--mint); }

.word-console { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px; overflow: hidden; }
.word-console::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(43,197,164,.12), transparent 68%); pointer-events: none; }
.level-elapsed { position: relative; z-index: 2; min-width: 126px; min-height: 34px; margin: 0 0 10px; padding: 5px 11px; border: 1px solid rgba(76,224,186,.22); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(238,246,255,.7); background: linear-gradient(135deg, rgba(6,28,47,.76), rgba(10,42,59,.54)); box-shadow: inset 0 1px rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.14); font-variant-numeric: tabular-nums; }
.level-elapsed span { display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.level-elapsed i { color: var(--gold); font-size: 13px; font-style: normal; }
.level-elapsed strong { color: var(--mint); font-size: 15px; letter-spacing: .06em; }
.level-elapsed.is-complete { border-color: rgba(247,199,107,.3); }
.level-elapsed.is-complete strong { color: var(--gold); }
.word-preview { position: relative; z-index: 2; min-width: 210px; min-height: 48px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; display: grid; place-items: center; color: var(--mint); background: rgba(2,12,29,.4); font-size: 21px; font-weight: 700; letter-spacing: .09em; }
.word-preview span { color: rgba(255,255,255,.42); font-size: 10px; font-weight: 400; letter-spacing: .08em; }
.selection-help { position: relative; z-index: 2; margin: 7px 0 0; color: rgba(238,246,255,.58); font-size: 10px; line-height: 1.4; text-align: center; }
.letter-wheel { position: relative; z-index: 1; width: min(320px, 74vw); height: min(320px, 74vw); max-width: 320px; max-height: 320px; margin: 14px auto 8px; border-radius: 50%; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; background: radial-gradient(circle at 47% 43%, rgba(38,72,98,.64), rgba(5,20,42,.84) 65%); border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px rgba(255,255,255,.12), inset 0 -30px 60px rgba(0,0,0,.22), 0 18px 50px rgba(0,0,0,.25); }
.letter-wheel::after { content: ''; position: absolute; inset: 18px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.07); }
.letter-wheel:focus-visible { outline: 3px solid rgba(76,224,186,.7); outline-offset: 5px; }
.letter-wheel.is-rotating { cursor: grabbing; border-color: rgba(76,224,186,.38); box-shadow: inset 0 1px rgba(255,255,255,.12), inset 0 -30px 60px rgba(0,0,0,.22), 0 18px 50px rgba(0,0,0,.25), 0 0 35px rgba(76,224,186,.16); }
.letter-wheel.is-rotating .letter-node { pointer-events: none; }
.letter-node { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; border: 1px solid rgba(255,255,255,.65); display: grid; place-items: center; cursor: pointer; color: #102a2a; background: linear-gradient(145deg, #fff, #c9e3df); box-shadow: 0 8px 18px rgba(0,0,0,.27), inset 0 2px 1px #fff; font-size: 25px; font-weight: 900; user-select: none; -webkit-user-select: none; transition: transform .15s, background .2s, color .2s, box-shadow .2s; }
.letter-node:hover { transform: scale(1.06); }
.letter-node.selected { color: #fff; background: linear-gradient(145deg, #38d6ac, #0f8b76); border-color: #9cffdf; box-shadow: 0 0 0 5px rgba(61,222,180,.15), 0 8px 20px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.4); transform: scale(1.07); }
.wheel-core { position: absolute; z-index: 3; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; padding: 0; border-radius: 50%; display: grid; place-content: center; gap: 1px; cursor: pointer; color: var(--gold); background: radial-gradient(circle, rgba(247,199,107,.2), rgba(5,18,40,.9)); border: 1px solid rgba(247,199,107,.38); box-shadow: 0 0 30px rgba(247,199,107,.12), inset 0 1px rgba(255,255,255,.08); transition: transform .2s, background .2s, border-color .2s; }
.wheel-core:hover { transform: scale(1.05); border-color: rgba(247,199,107,.65); background: radial-gradient(circle, rgba(247,199,107,.27), rgba(5,18,40,.94)); }
.wheel-core span { font-size: 17px; line-height: 1; }
.wheel-core small { color: rgba(255,235,190,.78); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.letter-trace { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.letter-trace polyline { fill: none; stroke: rgba(70,232,190,.74); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(69,236,191,.5)); }
.game-actions { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 88px 1fr 108px; gap: 10px; align-items: center; }
.action-button { height: 64px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; display: grid; place-content: center; gap: 3px; cursor: pointer; background: rgba(255,255,255,.055); transition: background .2s, border-color .2s, opacity .2s; }
.action-button:hover { background: rgba(255,255,255,.1); }
.action-button span { color: var(--mint); font-size: 20px; }
.action-button em { color: rgba(238,246,255,.88); font-size: 10px; font-style: normal; font-weight: 750; letter-spacing: .035em; }
.action-button b { min-width: 54px; color: var(--gold); font-size: 10px; line-height: 1.1; letter-spacing: .07em; }
.hint-button span { color: var(--gold); }
.hint-button.is-ready { border-color: rgba(247,199,107,.42); background: rgba(247,199,107,.08); }
.action-button:disabled { cursor: not-allowed; opacity: .62; }
.submit-button { height: 64px; border: 1px solid rgba(255,255,255,.23); border-radius: 16px; cursor: pointer; color: #08251f; background: linear-gradient(145deg, #7ef0d3, #31bd99); box-shadow: 0 10px 24px rgba(17,169,133,.24), inset 0 1px #d8fff5; font-size: 10px; font-weight: 800; }
.submit-button.is-ready { border-color: rgba(255,255,255,.72); box-shadow: 0 0 0 4px rgba(76,224,186,.13), 0 12px 30px rgba(17,169,133,.42), inset 0 1px #effffb; animation: decodeReady 1.25s ease-in-out infinite; }
.submit-button:disabled { opacity: .4; cursor: not-allowed; }
.hint-policy { position: relative; z-index: 2; width: 100%; margin: 9px 0 -4px; display: flex; justify-content: space-between; gap: 10px; color: rgba(238,246,255,.56); font-size: 8px; letter-spacing: .035em; }
.hint-policy em { color: rgba(247,199,107,.72); font-style: normal; }
.bonus-line { position: relative; z-index: 2; width: 100%; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.bonus-line strong { color: var(--gold); }

.mobile-nav { display: none; }
.community-link { text-decoration: none; }
.race-countdown { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; background: rgba(2,8,21,.78); backdrop-filter: blur(14px); }
.race-countdown[hidden] { display: none; }
.race-countdown > div { width: min(360px, calc(100% - 34px)); padding: 34px; border: 1px solid rgba(247,199,107,.38); border-radius: 30px; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(76,224,186,.18), transparent 52%), #091c38; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.race-countdown small, .race-countdown span { display: block; color: var(--gold); letter-spacing: .14em; font-size: 10px; }
.race-countdown strong { display: block; margin: 10px 0; color: #fff; font: 600 92px/1 Georgia, serif; text-shadow: 0 0 34px rgba(76,224,186,.55); }
.race-finish-time { margin: 13px 0; color: var(--mint); font: 600 50px/1 Georgia, serif; }
.race-result-board { display: grid; gap: 6px; width: 100%; margin: 15px 0; }
.race-result-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; text-align: left; }
.race-result-row b { color: var(--gold); }
.race-return-link { color: #06221c; text-decoration: none; }
body.is-race-active .hint-button { opacity: .45; pointer-events: none; }
body.is-race-active .hint-policy { color: var(--gold); }
body.is-race-active .game-score strong { color: var(--mint); font-variant-numeric: tabular-nums; }
.toast-stack { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 230px; max-width: 340px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; color: #fff; background: rgba(7,20,43,.92); box-shadow: 0 15px 40px rgba(0,0,0,.35); backdrop-filter: blur(18px); font-size: 11px; animation: toastIn .3s ease both; }
.toast.success { border-color: rgba(76,224,186,.4); }
.toast.error { border-color: rgba(255,113,135,.4); }
.toast.is-leaving { animation: toastOut .3s ease both; }


.modal { width: 100%; max-width: none; height: 100%; max-height: none; padding: 22px; border: 0; background: rgba(2,8,20,.7); backdrop-filter: blur(12px); }
.modal::backdrop { background: transparent; }
.modal[open] { display: grid; place-items: center; animation: modalFade .25s ease; }
.modal-card { position: relative; width: min(440px, 94vw); max-height: min(720px, 90vh); overflow: auto; padding: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; color: var(--ink); background: linear-gradient(150deg, rgba(13,38,69,.98), rgba(5,17,38,.98)); box-shadow: 0 35px 100px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.1); }
.modal-close { position: absolute; z-index: 2; right: 15px; top: 15px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; cursor: pointer; color: var(--muted); background: rgba(255,255,255,.05); font-size: 21px; }
.modal-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.modal-heading > span { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--gold); background: rgba(247,199,107,.1); border: 1px solid rgba(247,199,107,.2); font-size: 22px; }
.modal-heading small, .profile-hero small, .completion-card > small { color: var(--gold); font-size: 8px; text-transform: uppercase; letter-spacing: .16em; }
.modal-heading h2, .profile-hero h2 { margin: 3px 0 0; font: 500 24px Georgia, "Sylfaen", serif; }
.modal-intro { margin: -11px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.completion-card { text-align: center; }
.completion-emblem { width: 74px; height: 74px; margin: 4px auto 18px; border-radius: 26px 14px; display: grid; place-items: center; color: #392507; background: linear-gradient(145deg, #ffe7a6, #e9aa36); box-shadow: 0 15px 35px rgba(223,157,44,.3), inset 0 2px #fff0bd; font-size: 32px; transform: rotate(45deg); }
.completion-emblem::first-letter { transform: rotate(-45deg); }
.completion-card > .completion-level-label { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 5px 11px; border: 1px solid rgba(247,199,107,.2); border-radius: 999px; background: rgba(247,199,107,.06); line-height: 1.25; }
.completion-card h2 { margin: 8px 0; font: 500 35px Georgia, "Sylfaen", serif; }
.completion-card > p { color: var(--muted); font-size: 12px; }
.completion-card > .star-rule { margin: 9px auto 0; padding: 8px 12px; border: 1px solid rgba(247,199,107,.18); border-radius: 12px; color: rgba(255,235,190,.76); background: rgba(247,199,107,.06); font-size: 10px; line-height: 1.45; }
.star-row { margin: 9px 0; color: var(--gold); font-size: 29px; letter-spacing: 5px; text-shadow: 0 0 14px rgba(247,199,107,.55); }
.star-row .off { color: rgba(255,255,255,.12); text-shadow: none; }
.reward-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 6px; }
.reward-row > span { padding: 15px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; display: grid; gap: 2px; background: rgba(255,255,255,.04); }
.reward-row i { color: var(--gold); font-style: normal; }
.reward-row strong { font-size: 19px; }
.reward-row small { color: var(--muted); font-size: 8px; }
.text-button, .danger-button { border: 0; background: transparent; cursor: pointer; }
.text-button { margin-top: 13px; color: var(--muted); font-size: 10px; }
.leaderboard-list, .achievement-list { display: grid; gap: 9px; }
.leader-row, .achievement-row { min-height: 62px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.035); }
.leader-row:first-child { border-color: rgba(247,199,107,.3); background: linear-gradient(90deg, rgba(247,199,107,.11), rgba(255,255,255,.03)); }
.leader-rank { width: 24px; color: var(--gold); font: 600 15px Georgia, serif; }
.leader-info { display: grid; gap: 2px; flex: 1; }
.leader-info strong, .achievement-row strong { font-size: 11px; }
.leader-info small, .achievement-row small { color: var(--muted); font-size: 8px; }
.leader-xp { text-align: right; }
.leader-xp strong { color: var(--mint); font-size: 12px; }
.leader-xp small { display: block; color: var(--muted); font-size: 7px; }
.achievement-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--gold); background: rgba(247,199,107,.1); font-size: 21px; }
.achievement-row > div:nth-child(2) { display: grid; gap: 3px; }
.achievement-row.locked { filter: grayscale(1); opacity: .42; }
.lexicon-card { width: min(620px, 94vw); }
.lexicon-list { display: grid; gap: 11px; }
.lexicon-entry { padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 17px; background: rgba(255,255,255,.035); }
.lexicon-entry-head { display: flex; align-items: baseline; gap: 9px; }
.lexicon-entry-head h3 { margin: 0; font: 600 18px Georgia, serif; letter-spacing: .07em; }
.lexicon-entry-head em { color: var(--gold); font-size: 8px; font-style: normal; text-transform: uppercase; }
.lexicon-entry-head button { margin-left: auto; border: 0; cursor: pointer; color: var(--mint); background: transparent; }
.lexicon-entry > p { margin: 8px 0 4px; color: rgba(245,249,255,.84); font: 11px/1.5 Georgia, serif; }
.lexicon-entry > small { display: block; color: var(--muted); font-size: 8px; font-style: italic; }
.lexicon-tools { display: grid; grid-template-columns: 120px 1fr auto; gap: 7px; margin-top: 12px; }
.lexicon-tools select, .lexicon-tools input { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; color: #fff; background: rgba(0,0,0,.22); font-size: 9px; }
.lexicon-tools select option { color: #0b1730; }
.lexicon-tools button { padding: 0 13px; border: 1px solid rgba(76,224,186,.24); border-radius: 10px; cursor: pointer; color: var(--mint); background: rgba(76,224,186,.08); font-size: 8px; }
.gallery-card { width: min(980px, 96vw); }
.gallery-progress { margin: 16px 0 18px; display: grid; gap: 8px; color: var(--muted); font-size: 10px; }
.gallery-progress span b { color: var(--mint); }
.gallery-progress > i { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.gallery-progress > i b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--gold)); transition: width .55s ease; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-skeleton { aspect-ratio: 16 / 11; border-radius: 18px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.09), rgba(255,255,255,.03)); background-size: 200% 100%; animation: skeleton 1.3s linear infinite; }
.gallery-item { min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; cursor: pointer; text-align: left; color: var(--ink); background: rgba(255,255,255,.035); transition: transform .22s, border-color .22s, background .22s; }
.gallery-item:not(:disabled):hover { transform: translateY(-3px); border-color: rgba(76,224,186,.4); background: rgba(76,224,186,.06); }
.gallery-item:disabled { cursor: not-allowed; }
.gallery-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #06152c; }
.gallery-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: filter .35s, transform .35s; }
.gallery-item:not(:disabled):hover .gallery-thumb img { transform: scale(1.035); }
.gallery-thumb i { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; display: grid; place-items: center; color: var(--gold); background: rgba(3,13,30,.78); box-shadow: 0 7px 18px rgba(0,0,0,.34); font-size: 15px; font-style: normal; backdrop-filter: blur(10px); }
.gallery-item.is-locked .gallery-thumb img { filter: blur(8px) grayscale(.85) brightness(.35); transform: scale(1.09); }
.gallery-item.is-locked .gallery-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(5,17,38,.18), rgba(5,17,38,.68)); }
.gallery-item-copy { min-height: 100px; padding: 12px 13px 13px; display: grid; align-content: start; gap: 4px; }
.gallery-item-copy small { color: var(--gold); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.gallery-item-copy strong { overflow: hidden; font: 600 17px/1.2 Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.gallery-item-copy em { color: var(--muted); font-size: 9px; font-style: normal; }
.gallery-item.is-locked .gallery-item-copy { opacity: .62; }
.gallery-viewer-card { width: min(1060px, 96vw); padding: 0; overflow: hidden; }
.gallery-viewer-media { min-height: 280px; display: grid; place-items: center; background: #020916; }
.gallery-viewer-media picture { width: 100%; display: block; }
.gallery-viewer-media img { width: 100%; max-height: 68vh; display: block; object-fit: contain; }
.gallery-viewer-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.gallery-viewer-copy { padding: 21px 24px 24px; }
.gallery-viewer-copy small { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.gallery-viewer-copy h2 { margin: 5px 42px 7px 0; font: 600 27px Georgia, serif; }
.gallery-viewer-copy p { margin: 0; color: rgba(238,246,255,.78); font: 14px/1.55 Georgia, serif; }
.gallery-viewer-copy em { display: block; margin-top: 10px; color: var(--mint); font-size: 9px; font-style: normal; }
.rail-button.is-locked { opacity: .78; }
.skeleton-row { height: 62px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.09), rgba(255,255,255,.03)); background-size: 200% 100%; animation: skeleton 1.3s linear infinite; }
.toggle-row { min-height: 68px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.toggle-row > span { display: grid; gap: 4px; }
.toggle-row strong { font-size: 12px; }
.toggle-row small { color: var(--muted); font-size: 8px; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-row i { position: relative; width: 46px; height: 26px; border-radius: 20px; background: rgba(255,255,255,.12); transition: background .25s; }
.toggle-row i::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .25s; }
.toggle-row input:checked + i { background: var(--emerald); }
.toggle-row input:checked + i::after { transform: translateX(20px); }
.profile-hero { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.avatar.large { width: 58px; height: 58px; border-radius: 19px; font-size: 21px; }
.profile-card form { display: grid; gap: 12px; }
.profile-card label { display: grid; gap: 6px; color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.profile-card input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; color: #fff; background: rgba(0,0,0,.18); }
.avatar-picker { display: flex; gap: 8px; }
.avatar-picker button { width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; cursor: pointer; background: rgba(255,255,255,.06); }
.avatar-picker button.selected { color: #173126; border-color: #9effe4; background: var(--mint); }
.secondary-button { min-height: 46px; border: 1px solid rgba(76,224,186,.35); border-radius: 13px; cursor: pointer; background: rgba(76,224,186,.1); }
.guest-account { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; margin-bottom: 14px; border-radius: 13px; background: rgba(0,0,0,.18); }
.account-tabs button { height: 35px; border: 0; border-radius: 10px; cursor: pointer; color: var(--muted); background: transparent; font-size: 9px; }
.account-tabs button.active { color: #fff; background: rgba(255,255,255,.1); }
.auth-form { display: grid; gap: 10px; }
.captcha-field { margin-top: 2px; }
.captcha-challenge { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; }
.captcha-challenge img { width: 100%; height: 62px; object-fit: cover; border: 1px solid rgba(126,240,211,.24); border-radius: 13px; background: #091c34; box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.18); }
.captcha-challenge button { min-width: 0; padding: 6px; border: 1px solid rgba(247,199,107,.24); border-radius: 13px; display: grid; place-content: center; gap: 2px; cursor: pointer; color: var(--gold); background: rgba(247,199,107,.07); transition: background .2s, transform .2s; }
.captcha-challenge button:hover { background: rgba(247,199,107,.13); transform: translateY(-1px); }
.captcha-challenge button i { font-size: 20px; font-style: normal; line-height: 1; }
.captcha-challenge button small { color: rgba(255,226,151,.74); font-size: 7px; letter-spacing: .04em; }
.profile-card .captcha-help { color: rgba(238,246,255,.48); font-size: 7px; line-height: 1.45; letter-spacing: .025em; }
.profile-card input[name="captcha_answer"] { letter-spacing: .2em; text-transform: uppercase; font-weight: 800; }
.danger-button { width: 100%; margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); color: var(--danger); font-size: 9px; }
.confetti { position: fixed; z-index: 90; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -30px; width: 8px; height: 16px; border-radius: 3px; animation: confettiFall 2.4s linear forwards; }

body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
@keyframes crosswordPreviewIn { from { opacity: 0; transform: translateY(6px) scale(.84); } to { opacity: 1; transform: none; } }
@keyframes scenicReveal { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.025); } }
@keyframes loading { to { transform: translateX(125%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--mint); } }
@keyframes decodeReady { 50% { filter: brightness(1.12); transform: translateY(-2px); } }
@keyframes tileReveal { 0% { transform: scale(.65) rotate(-5deg); opacity: .2; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes revealSlotPulse { from { transform: scale(.96); filter: brightness(1); } to { transform: scale(1.06); filter: brightness(1.22); } }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
@keyframes discoveryBonusFlash { 0% { filter: brightness(1); transform: scale(1); } 35% { filter: brightness(1.35); transform: scale(1.012); } 100% { filter: brightness(1); transform: scale(1); } }
@keyframes discoveryBonusGlow { 50% { box-shadow: 0 0 0 1px rgba(247,199,107,.18), 0 0 40px rgba(247,199,107,.32), inset 0 1px rgba(255,255,255,.12); } }
@keyframes modalFade { from { opacity: 0; } }
@keyframes skeleton { to { background-position: -200% 0; } }
@keyframes confettiFall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(900deg); opacity: .4; } }

@media (max-width: 1050px) {
    .game-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .expedition-choice { grid-column: 1 / -1; }
}

@media (min-width: 1051px) {
    .hunt-choice { margin-top: calc(-1 * var(--home-masonry-lift, 0px)); }
}

@media (max-width: 900px) {
    .side-rail { display: none; }
    .game-screen { width: min(760px, calc(100% - 28px)); }
    .game-layout { grid-template-columns: 1fr; min-height: auto; }
    .crossword-panel { min-height: 500px; }
    .word-console { min-height: 560px; }
    .screen { min-height: calc(100dvh - 82px); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .home-screen { justify-content: flex-start; }
    .games-hub { width: min(560px, 100%); }
    .game-choice-grid { grid-template-columns: 1fr; }
    .expedition-choice { grid-column: auto; }
    .game-choice { width: 100%; }
    .scramble-preview { min-height: 92px; margin: 22px 0 16px; }
    .scramble-preview span { width: 52px; height: 60px; }
    .pattern-preview { min-height: 92px; margin: 22px 0 16px; }
    .pattern-preview span { width: 45px; height: 57px; }
}

@media (max-width: 620px) {
    .scene-glow { display: none; }
    .scene-image {
        background-image: var(--active-scene, url('../images/worlds/sagittarius-origin-720-portrait.webp'));
        background-position: center center;
    }
    body { padding-bottom: 70px; }
    .topbar { padding: 15px 15px 6px; }
    .brand-copy, .profile-chip > span:nth-child(2), .profile-chip > i, .stat-pill small { display: none; }
    .brand-mark { width: 41px; height: 41px; }
    .player-stats { gap: 6px; }
    .stat-pill { height: 41px; padding: 0 11px; border-radius: 13px; }
    .profile-chip { width: 43px; height: 43px; padding: 3px; border-radius: 14px; }
    .avatar { width: 35px; height: 35px; }
    .home-screen { min-height: calc(100dvh - 72px); justify-content: flex-start; padding: 18px 12px 30px; }
    .hero-copy h1 { font-size: clamp(48px, 16vw, 66px); }
    .hero-subtitle br { display: none; }
    .hero-subtitle { margin-top: 7px; font-size: 13px; }.hero-badges { margin-top: 10px; gap: 5px; }.hero-badges .archive-badge, .games-count { padding: 6px 8px; }.hero-badges span { font-size: 8px; }
    .games-hub { margin-top: 17px; }.games-hub-heading { margin-bottom: 11px; }.games-hub-heading h2 { font-size: 23px; }.games-hub-heading p { font-size: 11px; line-height: 1.45; }
    .game-choice-grid { gap: 11px; }.game-choice { padding: 14px; border-radius: 22px; }.choice-top { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px; }.choice-icon { width: 40px; height: 40px; border-radius: 13px; }.choice-top strong { font-size: 16px; }.choice-top > b { padding: 4px 6px; font-size: 7px; }
    .level-launch-card { margin-top: 24px; padding: 17px; }
    .games-hub .level-launch-card { margin-top: 11px; padding: 13px; }.games-hub .level-launch-card > p, .games-hub .lore-preview { display: none; }.games-hub .difficulty-row { margin-top: 9px; }.games-hub .primary-button { min-height: 55px; }.games-hub .endless-status { padding: 8px 10px; }.games-hub .endless-status > i { width: 26px; height: 26px; }.games-hub .endless-status small { font-size: 9px; }
    .crossword-preview { min-height: 104px; margin: 16px 0 10px; }.crossword-orbit { width: 166px; height: 76px; }.mini-crossword { grid-template-columns: repeat(5, 23px); grid-template-rows: repeat(4, 23px); gap: 3px; }.mini-crossword span { border-radius: 6px; font-size: 12px; }.expedition-portal-copy h3, .scramble-portal-copy h3 { font-size: 19px; }.expedition-portal-copy p, .scramble-portal-copy p { font-size: 11px; }.expedition-current { margin-bottom: 8px; }.scramble-preview, .pattern-preview, .hunt-preview { min-height: 72px; margin: 17px 0 12px; }.scramble-preview span { width: 45px; height: 52px; border-radius: 12px; font-size: 22px; }.pattern-preview span { width: 39px; height: 50px; border-radius: 11px; font-size: 21px; }.hunt-preview > strong { font-size: 27px; }.portal-features { margin: 12px 0; }.portal-cta, .games-hub .expedition-cta { min-height: 55px; }
    .games-hub > .daily-card { margin-top: 11px; }
    .side-rail { display: none; }
    .mobile-nav { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: max(9px, env(safe-area-inset-bottom)); height: 58px; padding: 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(5,17,38,.9); box-shadow: 0 15px 45px rgba(0,0,0,.4); backdrop-filter: blur(20px); }
    .mobile-nav button, .mobile-nav a { border: 0; border-radius: 15px; display: grid; place-content: center; gap: 1px; color: var(--muted); background: transparent; font-size: 7px; text-align: center; text-decoration: none; }
    .mobile-nav span { font-size: 17px; }
    .mobile-nav button.active, .mobile-nav a.active { color: var(--mint); background: rgba(76,224,186,.08); }
    .game-screen { width: calc(100% - 20px); padding-top: 10px; }
    .game-topline { grid-template-columns: 45px 1fr 68px; gap: 10px; }
    .icon-button { width: 42px; height: 42px; }
    .game-heading h2 { font-size: 17px; }
    .game-layout { gap: 12px; }
    .glass-panel { border-radius: 23px; }
    .crossword-panel { min-height: 410px; }
    .matrix-guide { margin-right: 12px; gap: 4px; font-size: 8px; }
    .matrix-guide b { font-size: 12px; }
    .crossword-wrap { padding: 13px; }
    .crossword { grid-template-columns: repeat(var(--grid-cols), minmax(23px, 43px)); gap: 4px; }
    .crossword-cell { border-radius: 9px; font-size: clamp(15px, 5vw, 22px); }
    .word-console { min-height: 495px; padding: 20px 13px; }
    .game-actions { grid-template-columns: 76px 1fr 98px; gap: 7px; }
    .action-button, .submit-button { height: 62px; }
    .action-button em { font-size: 9px; }
    .action-button b { font-size: 9px; }
    .hint-policy { font-size: 7px; }
    .letter-wheel { width: min(290px, 78vw); height: min(290px, 78vw); }
    .letter-node { width: 56px; height: 56px; margin: -28px; font-size: 22px; }
    .toast-stack { left: 15px; right: 15px; bottom: 82px; }
    .toast { min-width: 0; max-width: none; }
    .lexicon-tools { grid-template-columns: 1fr; }
    .gallery-card { width: calc(100vw - 16px); max-height: calc(100dvh - 18px); padding: 21px 13px 16px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
    .gallery-item { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
    .gallery-thumb { height: 100%; min-height: 112px; aspect-ratio: auto; }
    .gallery-item-copy { min-height: 112px; padding: 13px 11px; }
    .gallery-item-copy strong { white-space: normal; font-size: 16px; }
    .gallery-viewer-card { width: calc(100vw - 16px); max-height: calc(100dvh - 18px); }
    .gallery-viewer-media { min-height: 190px; }
    .gallery-viewer-media img { max-height: 57dvh; }
    .gallery-viewer-copy { padding: 16px 17px 19px; }
    .gallery-viewer-copy h2 { font-size: 23px; }
    .gallery-viewer-copy p { font-size: 13px; }
}

@media (max-height: 760px) and (min-width: 901px) {
    .home-screen { padding-top: 20px; }
    .hero-copy h1 { font-size: 54px; }
    .hero-subtitle { margin-top: 8px; }
    .level-launch-card { margin-top: 18px; }
    .daily-card { min-height: 58px; }
    .game-layout { min-height: 560px; }
    .letter-wheel { max-width: 270px; max-height: 270px; }
}

/* Readability and responsive interaction pass */
body { font-size: 16px; line-height: 1.5; }
.brand-copy small, .profile-chip small, .stat-pill small { font-size: 11px; }
.eyebrow { font-size: 12px; }
.archive-badge span { font-size: 10px; }
.level-card-top small { font-size: 11px; }
.level-launch-card > p { font-size: 13px; }
.lore-preview { font-size: 12px; }
.difficulty-row { font-size: 11px; }
.primary-button small { font-size: 10px; }
.daily-calendar small, .daily-copy small { font-size: 10px; }
.daily-copy strong { font-size: 15px; }
.daily-copy em, .progress-copy { font-size: 11px; }
.endless-status strong { font-size: 13px; }
.endless-status small { font-size: 11px; }
.rail-button em { font-size: 10px; }
.journey-orb small { font-size: 9px; }
.game-heading small, .game-score small { font-size: 11px; }
.game-heading h2 { font-size: 25px; }
.panel-header { font-size: 12px; }
.game-message { min-height: 52px; font-size: 14px; line-height: 1.45; }
.discovery-card { padding: 18px 19px; }
.discovery-label { font-size: 12px; font-weight: 800; }
.discovery-top button { width: 40px; height: 36px; font-size: 16px; }
.discovery-wordline h3 { margin-top: 6px; font-size: 30px; }
.discovery-wordline em { font-size: 12px; font-weight: 800; }
.discovery-card p { margin: 8px 0; font-size: 17px; line-height: 1.55; }
.discovery-card > small { font-size: 14px; line-height: 1.55; }
.save-word-button { min-height: 44px; padding: 9px 13px; font-size: 13px; font-weight: 800; }
.word-preview span { font-size: 12px; }
.selection-help { max-width: 360px; font-size: 12px; }
.wheel-core small { font-size: 9px; }
.action-button em { font-size: 12px; }
.action-button b { font-size: 11px; }
.submit-button { font-size: 12px; }
.hint-policy { font-size: 10px; line-height: 1.45; }
.bonus-line { font-size: 11px; }
.toast { font-size: 13px; line-height: 1.45; }
.modal-heading small, .profile-hero small, .completion-card > small { font-size: 10px; }
.modal-intro { font-size: 13px; }
.completion-card > p { font-size: 14px; line-height: 1.5; }
.completion-card > .star-rule { font-size: 12px; }
.reward-row small { font-size: 10px; }
.text-button { min-height: 38px; font-size: 12px; }
.leader-info strong, .achievement-row strong { font-size: 13px; }
.leader-info small, .achievement-row small, .leader-xp small { font-size: 10px; }
.leader-xp strong { font-size: 14px; }
.lexicon-entry-head em { font-size: 10px; }
.lexicon-entry > p { font-size: 13px; }
.lexicon-entry > small { font-size: 11px; }
.lexicon-tools select, .lexicon-tools input, .lexicon-tools button { font-size: 11px; }
.toggle-row strong { font-size: 14px; }
.toggle-row small { font-size: 11px; }
.profile-card label { font-size: 12px; }
.account-tabs button { font-size: 12px; }
.captcha-challenge button small, .profile-card .captcha-help { font-size: 10px; }
.danger-button { min-height: 42px; font-size: 12px; }

@media (max-width: 620px) {
    body { padding-bottom: 82px; }
    .topbar { padding: 12px 10px 5px; }
    .hero-copy h1 > small { margin-top: 6px; font-size: .23em; }
    .seo-intro { margin-bottom: 66px; padding: 16px 13px; }
    .seo-intro h2 { font-size: 18px; }
    .seo-intro p { font-size: 12px; }
    .mobile-nav { left: 8px; right: 8px; height: 64px; }
    .mobile-nav button, .mobile-nav a { font-size: 9px; }
    .mobile-nav span { font-size: 19px; }
    .game-screen { width: calc(100% - 12px); padding-top: 8px; }
    .game-topline { grid-template-columns: 44px minmax(0, 1fr) 72px; gap: 8px; margin-bottom: 12px; }
    .game-heading h2 { font-size: 20px; }
    .game-heading small, .game-score small { font-size: 10px; }
    .crossword-panel { min-height: 430px; }
    .panel-header { padding: 17px 16px 13px; font-size: 11px; }
    .crossword-wrap { padding: 12px 8px; }
    .word-console { min-height: 535px; padding: 22px 12px; }
    .level-elapsed { min-width: 122px; min-height: 31px; margin-bottom: 7px; }
    .word-preview { width: min(240px, 90%); min-width: 0; min-height: 52px; }
    .selection-help { max-width: 280px; margin-top: 8px; font-size: 11px; }
    .letter-wheel { width: min(300px, 82vw); height: min(300px, 82vw); margin-top: 12px; }
    .game-actions { grid-template-columns: 76px minmax(92px, 1fr) 102px; gap: 7px; }
    .action-button, .submit-button { height: 66px; }
    .action-button em { font-size: 11px; }
    .action-button b { font-size: 10px; }
    .submit-button { font-size: 11px; line-height: 1.2; }
    .hint-policy { margin-top: 10px; display: grid; grid-template-columns: 1fr; gap: 3px; font-size: 10px; text-align: left; }
    .hint-policy em { text-align: right; }
    .bonus-line { font-size: 12px; }
    .toast { font-size: 13px; }
    .modal { padding: 10px; }
    .modal-card { width: min(460px, 96vw); padding: 26px 20px; border-radius: 24px; }
    .completion-card h2 { font-size: 32px; }
    .completion-card > p { font-size: 14px; }
    .completion-card > .star-rule { font-size: 11px; }
    .discovery-card { margin-inline: 10px; padding: 16px; }
    .discovery-label { font-size: 11px; }
    .discovery-wordline h3 { font-size: 27px; }
    .discovery-wordline em { font-size: 11px; }
    .discovery-card p { font-size: 16px; }
    .discovery-card > small { font-size: 13px; }
    .save-word-button { font-size: 12px; }
}

@media (max-width: 380px) {
    .game-actions { grid-template-columns: 68px minmax(82px, 1fr) 92px; gap: 5px; }
    .action-button { padding-inline: 4px; }
    .action-button em, .submit-button { font-size: 10px; }
    .action-button b { min-width: 0; font-size: 9px; letter-spacing: .035em; }
    .letter-node { width: 52px; height: 52px; margin: -26px; }
    .wheel-core { width: 58px; height: 58px; margin: -29px; }
    .reward-row { margin-top: 17px; }
}

/* Compact mobile gameplay cockpit */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (max-width: 620px) {
    body.is-game-active { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
    body.is-game-active .topbar,
    body.is-game-active .mobile-nav { display: none; }
    body.is-game-active .game-screen {
        width: 100%;
        min-height: 100dvh;
        padding: max(6px, env(safe-area-inset-top)) 6px max(10px, env(safe-area-inset-bottom));
    }
    body.is-game-active .game-topline {
        grid-template-columns: 40px minmax(0, 1fr) 62px;
        gap: 7px;
        min-height: 42px;
        margin: 0 2px 6px;
    }
    body.is-game-active .icon-button { width: 38px; height: 38px; border-radius: 13px; }
    body.is-game-active .game-heading,
    body.is-game-active .game-score { min-width: 0; }
    body.is-game-active .game-heading small {
        display: block;
        overflow: hidden;
        font-size: 8px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.is-game-active .game-heading h2 {
        overflow: hidden;
        margin-top: 1px;
        font-size: 17px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.is-game-active .game-score small { font-size: 8px; }
    body.is-game-active .game-score strong { font-size: 20px; }
    body.is-game-active .game-layout { gap: 7px; }
    body.is-game-active .glass-panel { border-radius: 18px; }
    body.is-game-active .crossword-panel {
        position: relative;
        min-height: 0;
        grid-template-rows: auto auto auto auto;
    }
    body.is-game-active .panel-header { padding: 9px 12px 8px; font-size: 9px; }
    body.is-game-active .crossword-wrap {
        min-height: 0;
        max-height: 330px;
        padding: 8px 5px 9px;
        overflow: auto;
        overscroll-behavior: contain;
    }
    body.is-game-active .crossword {
        grid-template-columns: repeat(var(--grid-cols), var(--mobile-cell-size, 26px));
        gap: 3px;
    }
    body.is-game-active .crossword-cell {
        border-radius: 7px;
        font-size: var(--mobile-cell-font, 15px);
    }
    body.is-game-active .game-message {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 11px;
        line-height: 1.35;
    }
    body.is-game-active .word-console {
        min-height: 0;
        justify-content: flex-start;
        padding: 10px 9px 11px;
        overflow: visible;
    }
    body.is-game-active .word-preview {
        width: min(220px, 82%);
        min-height: 38px;
        padding: 6px 12px;
        border-radius: 12px;
        font-size: 18px;
    }
    body.is-game-active .level-elapsed { min-width: 112px; min-height: 27px; margin-bottom: 4px; padding: 3px 8px; border-radius: 10px; }
    body.is-game-active .level-elapsed span { font-size: 7px; }
    body.is-game-active .level-elapsed i { font-size: 11px; }
    body.is-game-active .level-elapsed strong { font-size: 12px; }
    body.is-game-active .word-preview span { font-size: 10px; }
    body.is-game-active .selection-help {
        max-width: 100%;
        margin: 4px 0 2px;
        font-size: 9px;
        line-height: 1.3;
    }
    body.is-game-active .letter-wheel {
        width: min(224px, 60vw, 29dvh);
        height: min(224px, 60vw, 29dvh);
        min-width: 184px;
        min-height: 184px;
        margin: 6px auto;
    }
    body.is-game-active .letter-wheel::after { inset: 13px; }
    body.is-game-active .letter-node {
        width: 46px;
        height: 46px;
        margin: -23px 0 0 -23px;
        font-size: 19px;
    }
    body.is-game-active .wheel-core {
        width: 52px;
        height: 52px;
        margin: -26px;
    }
    body.is-game-active .wheel-core span { font-size: 14px; }
    body.is-game-active .wheel-core small { font-size: 7px; }
    body.is-game-active .game-actions {
        grid-template-columns: 62px minmax(92px, 1fr) 86px;
        gap: 5px;
    }
    body.is-game-active .action-button,
    body.is-game-active .submit-button {
        height: 52px;
        border-radius: 13px;
    }
    body.is-game-active .action-button { padding: 4px; }
    body.is-game-active .action-button span { font-size: 17px; }
    body.is-game-active .action-button em,
    body.is-game-active .submit-button { font-size: 9px; }
    body.is-game-active .action-button b { min-width: 0; font-size: 8px; }
    body.is-game-active .hint-policy {
        grid-template-columns: 1fr auto;
        gap: 6px;
        margin: 6px 0 0;
        font-size: 8px;
        line-height: 1.25;
    }
    body.is-game-active .hint-policy em { text-align: right; }
    body.is-game-active .bonus-line { margin-top: 7px; padding-top: 7px; font-size: 10px; }
    body.is-game-active .discovery-card {
        position: absolute;
        z-index: 8;
        inset: 38px 7px 45px;
        margin: 0;
        padding: 10px 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: linear-gradient(145deg, rgba(6,31,55,.98), rgba(7,23,47,.98));
        box-shadow: 0 18px 45px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.09);
    }
    body.is-game-active .discovery-label { font-size: 9px; }
    body.is-game-active .discovery-top button { width: 34px; height: 30px; }
    body.is-game-active .discovery-top .discovery-close { font-size: 20px; }
    body.is-game-active .discovery-wordline h3 { font-size: 22px; }
    body.is-game-active .discovery-wordline em { font-size: 9px; }
    body.is-game-active .discovery-card p { font-size: 14px; line-height: 1.4; }
    body.is-game-active .discovery-card > small { font-size: 11px; line-height: 1.35; }
    body.is-game-active .save-word-button { min-height: 38px; font-size: 10px; }
    body.is-game-active .toast-stack { bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 620px) {
    body.is-game-active { padding: 0; }
    body.is-game-active .topbar,
    body.is-game-active .mobile-nav { display: none; }
    body.is-game-active .game-screen {
        width: 100%;
        min-height: 100dvh;
        padding: 5px 7px max(6px, env(safe-area-inset-bottom));
    }
    body.is-game-active .game-topline {
        grid-template-columns: 38px minmax(0, 1fr) 58px;
        gap: 6px;
        min-height: 38px;
        margin: 0 2px 4px;
    }
    body.is-game-active .icon-button { width: 35px; height: 35px; border-radius: 12px; }
    body.is-game-active .game-heading small { font-size: 7px; }
    body.is-game-active .game-heading h2 { margin-top: 0; font-size: 15px; }
    body.is-game-active .game-score small { font-size: 7px; }
    body.is-game-active .game-score strong { font-size: 18px; }
    body.is-game-active .game-layout {
        min-height: calc(100dvh - 49px);
        grid-template-columns: minmax(0, 1fr) minmax(292px, .9fr);
        gap: 7px;
    }
    body.is-game-active .crossword-panel,
    body.is-game-active .word-console {
        min-height: 0;
        max-height: calc(100dvh - 49px);
    }
    body.is-game-active .crossword-wrap { max-height: none; overflow: auto; }
    body.is-game-active .word-console { justify-content: center; padding: 7px 8px; overflow: hidden; }
    body.is-game-active .level-elapsed { min-height: 24px; margin-bottom: 2px; }
    body.is-game-active .word-preview { min-height: 34px; padding-block: 4px; font-size: 16px; }
    body.is-game-active .selection-help { display: none; }
    body.is-game-active .letter-wheel {
        width: min(184px, 43dvh);
        height: min(184px, 43dvh);
        min-width: 156px;
        min-height: 156px;
        margin: 3px auto;
    }
    body.is-game-active .letter-node { width: 42px; height: 42px; margin: -21px 0 0 -21px; font-size: 17px; }
    body.is-game-active .wheel-core { width: 46px; height: 46px; margin: -23px; }
    body.is-game-active .game-actions { grid-template-columns: 58px minmax(88px, 1fr) 82px; }
    body.is-game-active .action-button,
    body.is-game-active .submit-button { height: 46px; }
    body.is-game-active .hint-policy { margin-top: 4px; font-size: 7px; }
    body.is-game-active .bonus-line { margin-top: 5px; padding-top: 5px; }
}
