:root {
 --world-image:url('../assets/world-v2/minimal.webp'); --background-brightness:.8; --world-accent:#6c60d7; --world-base:#d6e7ef;
 --world-text:#1c2b46; --world-muted:#60728a; --world-surface:rgba(255,255,255,.95); --world-solid:#fff; --world-question:rgba(244,241,255,.97);
 --world-border:rgba(207,220,236,.95); --world-tint:#eef0fc; --world-on-accent:#fff; --world-good-bg:#eaf8f1; --world-good-text:#28715b;
 --world-bad-bg:#fff0f2; --world-bad-text:#a04e5c; --world-hint-bg:#fff8e9; --world-hint-text:#765b2c; --world-selected:#e8e3fd; --world-shadow:0 14px 45px #1f41601a;
}
:root[data-theme='classic'] { --world-base:#eef0ed; }
:root[data-theme='summer'] { --world-base:#deece3; --world-question:#edf8f4; --world-tint:#e9f5f0; }
:root[data-theme='autumn'] { --world-base:#eee1d6; --world-question:#fff5eb; --world-tint:#fbf0e1; }
:root[data-theme='winter'] { --world-base:#e4edf4; --world-question:#edf5fd; --world-tint:#e8f1fb; }
:root[data-theme='sand'] { --world-base:#eee4d2; --world-question:#fff5e8; --world-tint:#f9efdf; }
:root[data-theme='city'] { --world-base:#dfe7ed; --world-question:#eff0fb; }
:root[data-theme='minimal'] { --world-base:#eef1fa; }
:root[data-theme='night'],:root[data-theme='space'] {
 --world-base:#151f38; --world-text:#f1f5ff; --world-muted:#b3c0d8; --world-surface:rgba(25,37,63,.96); --world-solid:#21304b;
 --world-question:rgba(37,48,79,.98); --world-border:#42516e; --world-tint:#303b5e; --world-on-accent:#20213d;
 --world-good-bg:#193f3a; --world-good-text:#9ce6cc; --world-bad-bg:#4d2c3c; --world-bad-text:#ffc1ce;
 --world-hint-bg:#3e3525; --world-hint-text:#f0dba9; --world-selected:#47426f; --world-shadow:0 14px 45px #080e2540;
}
:root[data-theme='night'] { --world-base:#242b34; }
:root[data-theme='space'] { --world-base:#302638; --world-surface:rgba(36,31,61,.96); --world-solid:#30294a; --world-question:rgba(50,43,78,.98); --world-tint:#40365e; --world-border:#5b5078; }
body.world-ui { --primary:var(--world-accent); --text:var(--world-text); --muted:var(--world-muted); --border:var(--world-border); --bg:var(--world-base); background:var(--world-base); color:var(--world-text); }
#worldBackground { position:fixed; z-index:0; inset:0; pointer-events:none; background:var(--world-image) center/cover; opacity:var(--background-brightness); }
.world-ui .shell { position:relative; z-index:1; }
.world-ui .topbar,.world-ui .footer { border-color:var(--world-border); }
.world-ui .topbar { background:var(--world-surface); padding:13px 16px; margin-top:14px; border:1px solid var(--world-border); border-radius:20px; }
.world-ui .brand { color:var(--world-text); }
.world-ui .brand-accent { color:var(--world-accent); }
.world-ui .brand-mark { color:var(--world-accent); background:var(--world-surface); }
.world-ui .topbar-right,.world-ui .footer { color:var(--world-muted); }
.world-ui.mind-active .topbar-right,.world-home-active .topbar,.world-home-active .footer { display:none; }
.global-settings,.world-icon-button,.world-back { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; border:1px solid var(--world-border); border-radius:15px; background:var(--world-surface); color:var(--world-accent); box-shadow:0 4px 14px #29436708; cursor:pointer; }
.global-settings { margin-left:12px; }
.global-settings .icon,.world-icon-button .icon { width:22px; height:22px; }
.world-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:13px 20px; border:1px solid var(--world-accent); border-radius:14px; background:var(--world-accent); color:var(--world-on-accent); font:inherit; font-size:13px; font-weight:700; line-height:1.5; cursor:pointer; }
.world-button .icon { width:18px; height:18px; }
.world-ui button:focus-visible,.world-ui input:focus-visible { outline:3px solid var(--world-accent); outline-offset:3px; }
.world-ui button:disabled { cursor:default; opacity:.55; }
.world-panel { background:var(--world-surface); border:1px solid var(--world-border); border-radius:24px; box-shadow:var(--world-shadow); }
.world-home { max-width:920px; margin:0 auto; padding:24px 0 22px; }
.world-home-top { display:flex; justify-content:space-between; align-items:center; gap:15px; }
.world-edition { font-size:10px; letter-spacing:2px; color:var(--world-text); font-weight:750; text-shadow:0 1px 10px #fff8; }
.world-home .world-brand { padding:12px 0 22px; text-align:center; }
.world-logo { display:flex; align-items:center; justify-content:center; gap:10px; }
.world-home .home-hero-art { display:block; width:78px; height:78px; flex:none; }
.world-home .home-hero-art img { display:block; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 7px 10px #4d72a127); }
.world-home .home-hero h1 { color:var(--world-text); font-size:64px; line-height:1.1; letter-spacing:-2px; font-weight:850; margin:0; text-shadow:0 3px 0 #ffffff78,0 7px 18px #263f6320; }
.world-home .home-hero h1 span { color:var(--world-accent); }
.world-home .home-hero-description { font-size:16px; line-height:1.5; color:var(--world-text); margin:9px 0 0; font-weight:650; text-shadow:0 1px 8px #ffffff78; }
.world-brand-note { display:block; margin-top:8px; font-size:11px; color:var(--world-text); opacity:.8; }
.world-mode-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:8px 0 15px; color:var(--world-text); }
.world-mode-heading h2 { font-size:18px; font-weight:750; letter-spacing:-.4px; }
.world-mode-heading > span { font-size:10px; }
.world-mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.world-home .world-mode { position:relative; display:flex; flex-direction:column; align-items:center; padding:22px 28px 25px; min-width:0; text-align:center; border:1px solid #d3e7f5; border-radius:28px; background:linear-gradient(145deg,#ffffffef,#e4f2fff5); box-shadow:0 13px 34px #274c7620,inset 0 1px 0 #fff; }
.world-home .world-full { border-color:#e0d8f3; background:linear-gradient(145deg,#ffffffef,#efe8fdf5); }
.world-mode-art { position:relative; width:148px; height:142px; margin:0 0 8px; display:grid; place-items:center; }
.world-mode-art img { position:relative; z-index:1; width:145px; height:140px; object-fit:contain; }
.world-full .world-mode-art img { width:149px; height:149px; filter:drop-shadow(0 9px 8px #8678c126); }
.world-mode-orbit { position:absolute; width:130px; height:93px; border-radius:50%; background:#cae5f9; opacity:.55; transform:rotate(-16deg); }
.world-full .world-mode-orbit { background:#dcd0fa; }
.world-mode-tag { display:inline-flex; padding:5px 10px; border-radius:8px; background:#dfeffc; color:#4d7ba6; font-size:9px; font-weight:700; margin-bottom:10px; }
.world-full .world-mode-tag { color:#8870b7; background:#e9e0f9; }
.world-home .mode-title { display:block; font-size:27px; line-height:1.25; font-weight:800; color:#223958; margin:0 0 10px; padding:0; letter-spacing:-.7px; }
.world-home .mode-description { margin:0; font-size:13px; line-height:1.6; color:#5c7391; min-height:0; }
.world-home .mode-description span { padding:0 4px; opacity:.6; }
.world-mode-copy { font-size:12px; line-height:1.6; color:#5e7390; margin:10px 0 18px; }
.world-mode-start { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:auto; width:100%; min-height:51px; padding:13px 18px; border:1px solid #6799d4; border-radius:15px; color:#fff; background:linear-gradient(110deg,#3e78b8,#4569ad); font:inherit; font-size:16px; font-weight:750; box-shadow:0 5px 13px #5687c522; cursor:pointer; }
.world-full .world-mode-start { border-color:#8270c6; background:linear-gradient(110deg,#8060bd,#7053b5); box-shadow:0 5px 13px #8870c52a; }
.world-mode-start .icon { width:19px; height:19px; }
.world-home .world-home-records { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding:15px 22px; margin:18px 0 0; border:1px solid var(--world-border); border-radius:18px; background:var(--world-surface); }
.world-home .home-mode-record { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; }
.world-home .home-record-label { color:var(--world-muted); font-size:10px; line-height:1.5; }
.world-home .home-record-value { flex:none; font-size:23px; color:var(--world-accent); font-weight:800; letter-spacing:-.5px; }
.world-home .home-record-value small { font-size:9px; font-weight:500; }
.world-home .home-completion-count { text-align:center; margin:10px 0 0; color:var(--world-text); font-size:10px; }
.world-last-result { display:flex; align-items:center; justify-content:center; gap:8px; margin:10px auto 0; padding:8px; color:var(--world-text); min-height:44px; font-size:11px; line-height:1.6; flex-wrap:wrap; }
.world-resume { margin:0 0 16px; background:var(--world-surface); border-color:var(--world-border); color:var(--world-text); border-radius:17px; }
.world-resume small { color:var(--world-muted); }
.world-resume .home-resume-meter { display:block; width:100%; max-width:210px; height:3px; border-radius:4px; background:var(--world-border); margin-top:8px; overflow:hidden; }
.world-resume .home-resume-meter > span { display:block; height:100%; background:var(--world-accent); }
.world-bottom-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:19px; }
.world-bottom-nav button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; min-height:86px; padding:13px 8px; border:1px solid var(--world-border); border-radius:20px; background:var(--world-surface); box-shadow:0 5px 16px #26436a0b; color:var(--world-text); font:inherit; font-size:12px; font-weight:650; cursor:pointer; }
.world-bottom-nav .icon { width:27px; height:27px; color:var(--world-accent); }
.world-home-caption { display:table; text-align:center; color:var(--world-muted); font-size:11px; margin:18px auto 0; padding:7px 12px; border-radius:12px; background:var(--world-surface); }
.world-screen { max-width:900px; margin:24px auto 0; }
.world-screen-top { display:flex; align-items:center; gap:18px; margin-bottom:23px; }
.world-back { gap:7px; flex:none; padding:10px 13px; font-size:12px; }
.world-back .icon { width:16px; height:16px; }
.world-screen-top h1 { font-size:30px; line-height:1.3; font-weight:800; letter-spacing:-.8px; color:var(--world-text); }
.world-screen-top p { font-size:12px; line-height:1.6; color:var(--world-muted); margin-top:5px; }
.settings-screen > .world-panel { padding:26px; }
.settings-tabs { display:flex; gap:7px; padding:5px; border-radius:15px; background:var(--world-tint); }
.settings-tabs button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:10px 15px; flex:1; border:0; border-radius:11px; color:var(--world-muted); background:transparent; font:inherit; font-size:12px; font-weight:650; cursor:pointer; }
.settings-tabs button.is-active { background:var(--world-solid); color:var(--world-accent); box-shadow:0 3px 9px #26386508; }
.settings-tabs .icon { width:16px; height:16px; }
.settings-intro { margin:25px 0 18px; }
.settings-intro h2 { font-size:21px; line-height:1.4; font-weight:750; color:var(--world-text); }
.settings-intro p { font-size:12px; line-height:1.7; color:var(--world-muted); margin-top:7px; }
.theme-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.theme-choice { min-width:0; padding:6px 6px 11px; background:var(--world-solid); border:2px solid var(--world-border); border-radius:17px; cursor:pointer; color:var(--world-text); }
.theme-thumbnail { display:block; position:relative; overflow:hidden; border-radius:11px; }
.theme-thumbnail img { width:100%; height:105px; display:block; object-fit:cover; }
.theme-name { display:block; font-size:12px; font-weight:700; margin-top:9px; }
.theme-choice.is-active { border-color:var(--world-accent); box-shadow:0 4px 15px #6e5fcb12; animation:themeSelected 180ms ease-out; }
.theme-check { position:absolute; right:7px; bottom:7px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--world-accent); color:var(--world-on-accent); }
.theme-check .icon { width:14px; height:14px; }
.brightness-setting { margin:25px 0; padding:20px; border:1px solid var(--world-border); border-radius:17px; background:var(--world-solid); }
.brightness-setting label { display:flex; align-items:center; gap:9px; color:var(--world-text); font-size:13px; font-weight:650; }
.brightness-setting label .icon { width:19px; height:19px; color:var(--world-accent); }
.brightness-setting output { margin-left:auto; font-size:12px; color:var(--world-accent); }
#backgroundBrightness { display:block; width:100%; margin:17px 0 10px; min-height:32px; accent-color:var(--world-accent); cursor:pointer; }
.brightness-limits { display:flex; justify-content:space-between; color:var(--world-muted); font-size:10px; }
.preview-heading { display:flex; justify-content:space-between; gap:10px; margin-bottom:12px; }
.preview-heading h2 { font-size:15px; color:var(--world-text); }
.preview-heading > span { font-size:10px; color:var(--world-muted); }
.preview-stage { position:relative; padding:22px; border:1px solid var(--world-border); border-radius:20px; overflow:hidden; background:var(--world-base); }
.preview-landscape { position:absolute; inset:0; background:var(--world-image) center/cover; opacity:var(--background-brightness); }
.preview-question { position:relative; padding:18px; max-width:440px; margin:auto; border:1px solid var(--world-border); border-radius:17px; background:var(--world-surface); color:var(--world-text); text-align:center; }
.preview-question > span { display:block; font-size:9px; color:var(--world-muted); margin-bottom:7px; }
.preview-question > strong { font-size:16px; }
.preview-symbols { margin:12px 0; font-size:24px; letter-spacing:6px; color:var(--world-accent); }
.preview-symbols i { font-style:normal; }
.preview-answers { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.preview-answers > span { padding:8px; border:1px solid var(--world-border); border-radius:9px; font-size:9px; background:var(--world-solid); }
.settings-save-status { margin-top:22px; padding-top:16px; border-top:1px solid var(--world-border); color:var(--world-muted); font-size:11px; line-height:1.6; }
.setting-toggle { display:flex; align-items:center; gap:14px; padding:20px 0; border-bottom:1px solid var(--world-border); cursor:pointer; }
.setting-toggle > span:first-child { flex:1; min-width:0; }
.setting-toggle strong { display:block; font-size:14px; color:var(--world-text); }
.setting-toggle small { display:block; font-size:11px; line-height:1.7; color:var(--world-muted); margin-top:7px; }
.setting-toggle input { position:absolute; opacity:0; width:1px; height:1px; }
.toggle-track { display:block; width:42px; height:25px; border-radius:15px; flex:none; background:var(--world-border); padding:3px; }
.toggle-track::after { content:''; display:block; width:19px; height:19px; border-radius:50%; background:var(--world-solid); box-shadow:0 1px 4px #17213b20; transition:transform 150ms; }
.setting-toggle input:checked + .toggle-track { background:var(--world-accent); }
.setting-toggle input:checked + .toggle-track::after { transform:translateX(17px); }
.setting-toggle input:focus-visible + .toggle-track { outline:3px solid var(--world-accent); outline-offset:3px; }
.settings-note,.collection-footnote { font-size:11px; line-height:1.8; color:var(--world-muted); margin:23px 0 0; }
.world-version { display:inline-block; font-size:11px; font-weight:650; padding:4px 8px; background:var(--world-tint); border-radius:7px; color:var(--world-accent); }
.cloud-status { padding:20px; background:var(--world-solid); border:1px solid var(--world-border); border-radius:17px; }
.cloud-status h3 { font-size:14px; }
.cloud-status p { margin:9px 0 0; color:var(--world-muted); font-size:12px; line-height:1.7; }
.cloud-status button { margin-top:15px; }
.collection-summary { padding:18px 26px; display:flex; align-items:center; gap:20px; }
.collection-summary > img { width:85px; height:89px; object-fit:contain; }
.collection-summary > div { flex:1; min-width:0; }
.collection-summary strong { font-size:22px; font-weight:800; color:var(--world-text); }
.collection-summary p { font-size:12px; color:var(--world-muted); margin:7px 0 13px; }
.collection-progress,.achievement-mini-progress { height:6px; background:var(--world-tint); border-radius:8px; overflow:hidden; }
.collection-progress > span,.achievement-mini-progress > span { display:block; height:100%; border-radius:inherit; background:var(--world-accent); }
.achievement-filters { display:flex; flex-wrap:wrap; gap:8px; margin:22px 0; }
.achievement-filters button { min-height:44px; padding:10px 17px; border:1px solid var(--world-border); border-radius:13px; background:var(--world-surface); color:var(--world-muted); font-size:12px; font-weight:600; cursor:pointer; }
.achievement-filters button.is-active { border-color:var(--world-accent); color:var(--world-on-accent); background:var(--world-accent); }
.achievement-group { margin-top:24px; }
.achievement-group > h2 { font-size:17px; font-weight:750; color:var(--world-text); margin-bottom:14px; }
.achievement-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.achievement-card { min-width:0; display:flex; flex-direction:column; align-items:center; padding:20px 17px; border:1px solid var(--world-border); border-radius:22px; background:var(--world-surface); box-shadow:0 5px 18px #263d6208; text-align:center; }
.achievement-rarity { display:inline-flex; padding:4px 8px; border-radius:7px; background:var(--world-tint); color:var(--world-muted); font-size:9px; line-height:1.4; font-weight:650; }
.rarity-rare .achievement-rarity,.achievement-rarity.rarity-rare { background:#e8f2ff; color:#3568a8; }
.rarity-epic .achievement-rarity,.achievement-rarity.rarity-epic { background:#f0e9fd; color:#7954a7; }
.rarity-legendary .achievement-rarity,.achievement-rarity.rarity-legendary { background:#fff0ca; color:#80581a; }
.achievement-medal { width:99px; height:104px; object-fit:contain; margin:14px 0 10px; }
.is-locked .achievement-medal { opacity:.58; }
.is-earned .achievement-medal { filter:drop-shadow(0 6px 10px #9471c51c); }
.achievement-card h3 { font-size:16px; line-height:1.4; font-weight:750; color:var(--world-text); margin-bottom:8px; }
.achievement-condition { font-size:11px; color:var(--world-muted); line-height:1.75; margin:0 0 15px; }
.achievement-state { display:flex; justify-content:center; align-items:center; gap:5px; margin-top:auto; font-size:10px; color:var(--world-muted); }
.is-earned .achievement-state { color:var(--world-accent); font-weight:700; }
.achievement-state .icon { width:13px; height:13px; }
.achievement-date { color:var(--world-muted); font-size:9px; margin-top:6px; }
.achievement-progress-text { color:var(--world-muted); font-size:9px; line-height:1.6; margin-top:8px; }
.achievement-mini-progress { width:100%; height:4px; margin-top:9px; }
.achievement-share-button { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:44px; margin-top:13px; padding:10px 8px; border:1px solid var(--world-border); border-radius:12px; color:var(--world-accent); background:var(--world-tint); font-size:11px; font-weight:650; cursor:pointer; }
.achievement-share-button .icon { width:15px; height:15px; }
.world-empty { padding:36px; text-align:center; }
.world-empty > .icon { width:40px; height:40px; color:var(--world-accent); }
.world-empty h2 { font-size:19px; margin:15px 0 9px; }
.world-empty p { font-size:12px; color:var(--world-muted); }
.achievement-notice { max-width:760px; margin:23px auto 0; display:flex; align-items:center; gap:13px; padding:15px 20px; animation:worldNotice 220ms ease-out; }
.achievement-notice > img { width:66px; height:69px; flex:none; }
.achievement-notice > div { display:flex; flex-direction:column; gap:5px; min-width:0; flex:1; }
.achievement-notice span { font-size:10px; color:var(--world-accent); }
.achievement-notice strong { font-size:15px; color:var(--world-text); }
.achievement-notice small { font-size:10px; color:var(--world-muted); }
.achievement-notice button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:10px 13px; border:0; border-radius:12px; color:var(--world-on-accent); background:var(--world-accent); font-size:11px; font-weight:700; cursor:pointer; }
.achievement-notice button .icon { width:14px; height:14px; }
.record-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:22px; }
.record-card { text-align:center; padding:30px 22px; display:flex; flex-direction:column; align-items:center; }
.record-icon { display:grid; place-items:center; width:54px; height:54px; border-radius:18px; background:var(--world-tint); color:var(--world-accent); margin-bottom:17px; }
.record-icon .icon { width:28px; height:28px; }
.record-card h2 { font-size:20px; line-height:1.4; }
.record-score { font-size:61px; color:var(--world-accent); letter-spacing:-2px; margin:17px 0 8px; }
.record-score small { font-size:17px; font-weight:500; letter-spacing:0; }
.record-card p,.record-card > small,.record-mode-note { color:var(--world-muted); line-height:1.7; }
.record-card p { font-size:12px; }.record-card > small { margin-top:9px; font-size:10px; }.record-mode-note { font-size:10px; margin-top:17px; }
.rules-panel { padding:27px; }
.rules-panel h2 { display:flex; align-items:center; gap:10px; font-size:18px; margin:25px 0 12px; color:var(--world-text); }
.rules-panel h2:first-child { margin-top:0; }
.rules-panel h2 .icon { width:21px; height:21px; color:var(--world-accent); }
.rules-panel p { font-size:13px; line-height:1.9; color:var(--world-muted); }
.rules-panel .notice { border-top:1px solid var(--world-border); padding-top:20px; margin-top:25px; }
.achievement-share-screen .share-layout { padding:25px; }
.achievement-share-screen .share-controls h2 { font-size:29px; line-height:1.3; margin:15px 0; }
.achievement-share-screen .share-controls p { font-size:12px; line-height:1.8; color:var(--world-muted); }
.achievement-share-screen .share-controls button { width:100%; margin-top:11px; }
/* Existing game components share the same tokens. The original bank SVG is unchanged. */
.world-ui .mind-game { --primary:var(--world-accent); --text:var(--world-text); --muted:var(--world-muted); --border:var(--world-border); }
.world-ui .mind-game .question-panel { background:var(--world-question); border-color:var(--world-border); box-shadow:var(--world-shadow); }
.world-ui .mind-game :is(.question-title,.question-counter strong) { color:var(--world-text); }
.world-ui .mind-game :is(.mode-name,.category-pill) { color:var(--world-accent); }
.world-ui .mind-game :is(.difficulty,.mind-time-note,.question-counter,.answers-heading,.safe-pill) { color:var(--world-muted); }
.world-ui .mind-game .progress-track { background:var(--world-border); }
.world-ui .mind-game .progress-fill { background:var(--world-accent); }
.world-ui .mind-game .answer { color:var(--world-text); border-color:var(--world-border); background:var(--world-solid); }
.world-ui .mind-game .answer:disabled { opacity:1; }
.world-ui .mind-game .answer:hover:not(:disabled) { background:var(--world-tint); border-color:var(--world-accent); }
.world-ui .mind-game .answer-label { background:var(--world-tint); color:var(--world-muted); }
.world-ui .mind-game .answer.is-eliminated { background:var(--world-tint); opacity:.38; }
.world-ui .mind-game .answer.is-correct { background:var(--world-good-bg); border-color:#27ad87; color:var(--world-good-text); }
.world-ui .mind-game .answer.is-wrong { background:var(--world-bad-bg); border-color:#e36b75; color:var(--world-bad-text); }
.world-ui .mind-game .graphic-puzzle { background:#fff; border-color:#dce2f1; }
.world-ui .mind-game .puzzle-strip { background:transparent; }
.world-ui .mind-game .puzzle-strip span,.world-ui .mind-game .number-matrix-cell { background:var(--world-solid); color:var(--world-text); border-color:var(--world-border); }
.world-ui .mind-game .number-matrix-cell.is-missing { background:var(--world-tint); color:var(--world-accent); border-color:var(--world-accent); }
.world-ui .mind-game .puzzle-table,.world-ui .mind-game .puzzle-table td,.world-ui .mind-game .puzzle-table th { color:#33415e; background:#fff; }
.world-ui .mind-game .quick-timer { background:var(--world-tint); color:var(--world-accent); border-color:var(--world-border); }
.world-ui .mind-game .quick-timer.time-urgent { background:var(--world-bad-bg); color:var(--world-bad-text); border-color:#e36b75; }
.world-ui .mind-game .hint-card { background:var(--world-hint-bg); border-color:#d7b56e; }
.world-ui .mind-game .hint-heading h2,.world-ui .mind-game .hint-copy p,.world-ui .mind-game .hint-credit { color:var(--world-hint-text); }
.world-ui .mind-game .hint-reward,.world-ui .mind-game #next { background:var(--world-accent); border-color:var(--world-accent); color:var(--world-on-accent); }
.world-ui .mind-game #next:hover:not(:disabled),.world-ui .mind-game .hint-reward:hover:not(:disabled) { background:var(--world-accent); filter:brightness(1.04); }
.world-ui .mind-game .feedback { color:var(--world-bad-text); background:var(--world-bad-bg); border-color:#d7909d; }
.world-ui .mind-game .feedback.good { color:var(--world-good-text); background:var(--world-good-bg); border-color:#6fa992; }
.world-ui .mind-game .halfway-note { background:var(--world-tint); color:var(--world-accent); }
.world-ui :is(.score-card,.leaderboard-card,.share-preview,.celebrity-card) { background:var(--world-surface); border-color:var(--world-border); }
.score-history { margin-top:18px; padding:16px 20px; }
.score-history summary { min-height:44px; padding:10px 0; cursor:pointer; font-size:14px; font-weight:650; }
.score-history p { font-size:12px; line-height:1.7; }
.world-ui :is(.result h1,.leaderboard-name,.leaderboard-card h1,.personal-record span,.celebrity-card h2,.celebrity-card h3,.celebrity-card strong) { color:var(--world-text); }
.world-ui :is(.score-number,.stat-value,.leaderboard-score,.personal-record strong) { color:var(--world-accent); }
.world-ui :is(.result-lead,.stat-name,.score-caption,.rank-note,.result .notice,.share-controls p,.celebrity-card p,.celebrity-card small,.leaderboard-card > p,.leaderboard-columns,.leaderboard-empty p) { color:var(--world-muted); }
.world-ui .ghost { background:var(--world-surface); border-color:var(--world-border); color:var(--world-accent); }
.world-ui .primary-button { background:var(--world-accent); border-color:var(--world-accent); color:var(--world-on-accent); }
.world-ui .celebrity-source { color:var(--world-accent); }
.world-ui .leaderboard-avatar,.world-ui .leaderboard-heading-icon,.world-ui .personal-record { background:var(--world-tint); color:var(--world-accent); }
.world-ui .leaderboard-row { border-color:var(--world-border); }
.world-ui .leaderboard-row.is-me { background:var(--world-tint); }
.world-ui .leaderboard-empty strong { color:var(--world-text); }
.world-ui .iq-comparison-pair > div,.world-ui .celebrity-prompt,.world-ui .iq-evidence { background:var(--world-tint); border-color:var(--world-border); }
.world-ui .iq-comparison-pair span,.world-ui .celebrity-navigation,.world-ui .evidence-label { color:var(--world-muted); }
.world-ui .result-badge,.world-ui .result-badge-mini { background:var(--world-tint); color:var(--world-accent); }
:root[data-theme='night'] .world-mode,:root[data-theme='space'] .world-mode { background:var(--world-surface); border-color:var(--world-border); box-shadow:var(--world-shadow); }
:root[data-theme='night'] .world-mode :is(.mode-title,.mode-description,.world-mode-copy),:root[data-theme='space'] .world-mode :is(.mode-title,.mode-description,.world-mode-copy) { color:var(--world-text); }
:root[data-theme='night'] .world-edition,:root[data-theme='space'] .world-edition,:root[data-theme='night'] .world-home .home-hero-description,:root[data-theme='space'] .world-home .home-hero-description { text-shadow:none; }
:root[data-theme='night'] .world-home .home-hero h1,:root[data-theme='space'] .world-home .home-hero h1 { text-shadow:0 4px 16px #0c102b88; }
@keyframes mindCorrect { from { background:var(--world-selected); border-color:var(--world-accent); } to { background:var(--world-good-bg); border-color:#27ad87; } }
@keyframes mindWrong { from { background:var(--world-selected); border-color:var(--world-accent); } to { background:var(--world-bad-bg); border-color:#e36b75; } }
@keyframes themeSelected { from { transform:scale(.98); } to { transform:none; } }
@keyframes worldNotice { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media(max-width:850px) { .achievement-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) {
 .world-home { padding-top:16px; }.world-edition { font-size:8px; letter-spacing:1px; }
 .world-home .world-brand { padding:14px 0 21px; }.world-home .home-hero-art { width:58px; height:58px; }
 .world-home .home-hero h1 { font-size:47px; letter-spacing:-1.7px; }.world-home .home-hero-description { font-size:13px; }.world-brand-note { font-size:10px; }
 .world-mode-heading { margin-top:5px; }.world-mode-heading h2 { font-size:17px; }.world-mode-heading > span { display:none; }
 .world-mode-grid { grid-template-columns:1fr; gap:15px; }
 .world-home .world-mode { display:grid; grid-template-columns:minmax(0,1fr) 105px; grid-template-areas:'tag art' 'title art' 'description art' 'button button'; gap:0 8px; text-align:left; align-items:center; padding:21px; border-radius:24px; }
 .world-mode-art { grid-area:art; width:105px; height:110px; margin:0; }.world-mode-art img,.world-full .world-mode-art img { width:106px; height:110px; }.world-mode-orbit { width:99px; height:75px; }
 .world-mode-tag { grid-area:tag; justify-self:start; font-size:8px; padding:4px 7px; margin-bottom:9px; }
 .world-home .mode-title { grid-area:title; font-size:23px; line-height:1.3; margin-bottom:9px; }.world-home .mode-description { grid-area:description; font-size:11px; line-height:1.7; }
 .world-mode-copy { display:none; }.world-mode-start { grid-area:button; margin-top:17px; font-size:14px; min-height:48px; }
 .world-home .world-home-records { padding:14px 16px; gap:15px; }.world-home .home-mode-record { flex-direction:column; align-items:flex-start; gap:6px; }.world-home .home-record-label { font-size:9px; }.world-home .home-record-value { font-size:21px; }
 .world-bottom-nav { gap:8px; margin-top:15px; }.world-bottom-nav button { min-height:75px; gap:8px; padding:10px 3px; border-radius:17px; font-size:9px; }.world-bottom-nav .icon { width:24px; height:24px; }.world-home-caption { font-size:10px; }
 .world-screen { margin-top:20px; }.world-screen-top { gap:12px; align-items:flex-start; margin-bottom:18px; }.world-screen-top h1 { font-size:24px; }.world-screen-top p { font-size:10px; }
 .world-back { padding:10px; font-size:10px; border-radius:12px; }.world-back .icon { width:14px; height:14px; }
 .settings-screen > .world-panel { padding:18px; border-radius:22px; }.settings-tabs { gap:3px; }.settings-tabs button { padding:9px 6px; gap:5px; font-size:10px; }.settings-tabs .icon { width:14px; height:14px; }
 .settings-intro h2 { font-size:19px; }.settings-intro p { font-size:11px; }.theme-grid { gap:9px; }.theme-choice { padding:4px 4px 9px; border-radius:13px; }.theme-thumbnail { border-radius:8px; }.theme-thumbnail img { height:75px; }.theme-name { font-size:10px; margin-top:7px; }
 .theme-check { width:19px; height:19px; right:4px; bottom:4px; }.theme-check .icon { width:12px; height:12px; }.brightness-setting { padding:15px; margin:20px 0; }.brightness-setting label { font-size:11px; }
 .preview-stage { padding:15px; }.preview-question { padding:14px; }.preview-question > strong { font-size:14px; }.preview-heading > span { font-size:8px; }
 .collection-summary { padding:16px; gap:12px; }.collection-summary > img { width:65px; height:68px; }.collection-summary strong { font-size:19px; }.collection-summary p { font-size:10px; }
 .achievement-filters button { padding:10px 13px; font-size:11px; }.achievement-grid { gap:11px; }.achievement-card { padding:16px 12px; border-radius:19px; }.achievement-medal { width:81px; height:85px; }.achievement-card h3 { font-size:14px; }.achievement-condition { font-size:10px; }.achievement-rarity { font-size:8px; }.achievement-group > h2 { font-size:16px; }
 .achievement-notice { padding:13px; gap:9px; flex-wrap:wrap; }.achievement-notice > img { width:54px; height:57px; }.achievement-notice strong { font-size:13px; }.achievement-notice button { margin-left:auto; }
 .record-grid { grid-template-columns:1fr; gap:15px; }.record-card { padding:24px; }.record-card h2 { font-size:21px; }.rules-panel { padding:21px; }.rules-panel h2 { font-size:17px; }.rules-panel p { font-size:12px; }
 .achievement-share-screen .share-layout { padding:18px; }.achievement-share-screen .share-controls h2 { font-size:24px; }
}
@media(max-width:350px) {
 .world-edition { display:none; }.world-home .home-hero h1 { font-size:41px; }.world-home .home-hero-description { font-size:12px; }
 .world-home .world-mode { padding:18px; grid-template-columns:minmax(0,1fr) 88px; }.world-mode-art { width:88px; height:100px; }.world-mode-art img,.world-full .world-mode-art img { width:92px; height:100px; }.world-mode-orbit { width:85px; height:66px; }
 .world-home .mode-title { font-size:21px; }.world-home .mode-description { font-size:10px; }.world-screen-top h1 { font-size:22px; }
 .settings-screen > .world-panel { padding:15px; }.theme-grid { gap:7px; }.theme-name { font-size:9px; }.theme-thumbnail img { height:64px; }.settings-tabs button { font-size:9px; gap:4px; }
 .achievement-card { padding:14px 10px; }.achievement-card h3 { font-size:13px; }.achievement-condition { font-size:10px; }
}
@media(hover:hover) { .world-mode-start:hover,.world-button:hover { filter:brightness(1.04); }.theme-choice:hover { border-color:var(--world-accent); } }
@media(prefers-reduced-motion:reduce) { .theme-choice.is-active,.achievement-notice { animation:none; }.toggle-track::after { transition:none; } }
:root[data-reduced-motion='true'] *,:root[data-reduced-motion='true'] *::before,:root[data-reduced-motion='true'] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
