:root {
  color-scheme: dark;
  --bg: #071116;
  --surface: #0c1b21;
  --surface2: #10232a;
  --border: #25404a;
  --border-soft: #1b353d;
  --ink: #eaf7f6;
  --muted: #829da4;
  --cyan: #69dbe1;
  --green: #a6f06b;
  --gold: #e7c686;
  --orange: #ffad73;
  --violet: #b7a0f6;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height:100vh; margin:0; background:var(--bg); color:var(--ink); overflow-x:hidden; }
body::before { content:""; position:fixed; z-index:-2; inset:0; pointer-events:none; background-image:linear-gradient(#76cbd70a 1px,transparent 1px),linear-gradient(90deg,#76cbd70a 1px,transparent 1px); background-size:38px 38px; mask-image:linear-gradient(#0008,transparent 90%); }
button { font:inherit; }
button:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
button:disabled { cursor:not-allowed; }
button:hover:not(:disabled) { -webkit-tap-highlight-color:transparent; }
.ambient { position:fixed; pointer-events:none; border-radius:50%; z-index:-1; filter:blur(105px); opacity:.15; }
.ambient-one { width:440px; height:440px; background:#267d80; top:-230px; left:-180px; }
.ambient-two { width:460px; height:460px; background:#2b746b; right:-260px; top:30%; }
.shell { max-width:1350px; padding:25px 30px 20px; margin:0 auto; }
.topbar,.brand,.header-right,.pill,.hero-copy,.stats-strip,.panel-topline,.ticket-heading,.ticket-led,.shop-heading,.category-summary,.progress-top,.progress-bottom,.activity-heading,.department-header,.department-name,.bottom-heading,.prestige-info,.footer,.prestige-meta { display:flex; }
.topbar,.panel-topline,.ticket-heading,.shop-heading,.category-summary,.progress-top,.progress-bottom,.activity-heading,.department-header,.department-name,.bottom-heading,.prestige-info,.footer,.prestige-meta { justify-content:space-between; align-items:center; }
.topbar { align-items:center; gap:15px; padding-bottom:21px; border-bottom:1px solid var(--border-soft); }
.brand { gap:13px; align-items:center; }
.brand-mark { width:47px; height:47px; display:grid; place-items:center; background:linear-gradient(145deg,#b7f88e,#7ddfc7); border:1px solid #bafc9e; border-radius:12px; box-shadow:0 0 22px #8cf5aa30; color:#05251c; font-family:monospace; font-size:20px; font-weight:900; }
.brand-name { font-size:22px; font-weight:900; letter-spacing:-.06em; line-height:1; }
.brand-name span { color:var(--green); }
.brand-subtitle { font-size:9px; font-weight:700; letter-spacing:.18em; color:#74949b; margin-top:7px; }
.header-right { gap:17px; align-items:center; }
.pill { align-items:center; gap:9px; padding:10px 12px; border:1px solid #29473f; border-radius:40px; color:#9fbfb2; font-size:11px; white-space:nowrap; background:#0b211d; }
.pulse { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px #a6f06b14,0 0 16px #8afa65b8; display:inline-block; flex:none; }
.text-button { font-size:12px; font-weight:700; background:none; color:#a9c4c5; border:0; cursor:pointer; padding:7px 2px; }
.text-button:hover { color:var(--green); }
.text-button.danger:hover { color:#ff9898; }
.hero-copy { align-items:flex-end; gap:25px; margin:34px 0 28px; }
.eyebrow,.mini-label,.mini-index,.stat>span,.progress-top>span,.progress-bottom,.shop-stamp,.footer,.department-name,.department-total,.ticket-led,.corner-tag,.activity-heading { font-size:10px; font-weight:850; letter-spacing:.13em; }
.eyebrow { color:var(--green); display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.eyebrow .line { display:block; width:22px; height:2px; background:var(--green); }
.eyebrow .sep { color:#3b6870; }
.hero-copy h1 { font-size:clamp(35px,4.4vw,57px); line-height:1.04; letter-spacing:-.058em; margin:13px 0 10px; font-weight:840; }
.hero-copy h1 span { color:var(--green); }
.hero-copy p { font-size:14px; color:#9cb4b7; margin:0; line-height:1.55; max-width:670px; }
.hero-status { border:1px solid #294841; border-radius:12px; padding:12px 15px; min-width:190px; background:#102620aa; color:#9fb9b8; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:10px; line-height:1.95; }
.live-line { font-size:10px; font-weight:900; color:var(--green); letter-spacing:.04em; border-bottom:1px solid #28443d; padding-bottom:5px; margin-bottom:5px; }
.live-line .pulse { margin-right:8px; width:6px; height:6px; }
.hero-code { display:flex; justify-content:space-between; gap:10px; }
.hero-code strong { color:#c7e7e6; }
.stats-strip { align-items:stretch; background:linear-gradient(110deg,#10242b,#0d1b23); border:1px solid var(--border); border-radius:17px; margin-bottom:18px; padding:22px 8px; }
.stat { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; align-items:center; justify-content:center; border-right:1px solid var(--border); text-align:center; }
.stat:last-child { border-right:0; }
.stat>span { color:#87a6a8; }
.stat strong { font-size:clamp(23px,2.8vw,35px); letter-spacing:-.05em; line-height:1.3; font-variant-numeric:tabular-nums; }
.stat:first-child strong { color:var(--green); }
.stat:nth-child(2) strong { color:var(--cyan); }
.stat:last-child strong { color:var(--gold); }
.stat strong.boosted { color:var(--orange); }
.stat small { font-size:11px; color:#7c9da5; }
.main-grid { display:grid; grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr); gap:18px; align-items:stretch; }
.panel { background:linear-gradient(153deg,#10242b,#0c1b22 75%); border:1px solid var(--border); border-radius:var(--radius); min-width:0; box-shadow:0 14px 35px #020c102e; }
.click-panel { padding:23px 24px 21px; display:flex; flex-direction:column; }
.panel-topline { gap:12px; }
.mini-label { display:flex; align-items:center; gap:8px; color:#8eacae; }
.mini-label .muted { color:#64848a; }
.tiny-dot { width:7px; height:7px; display:inline-block; flex:none; border-radius:50%; background:var(--green); box-shadow:0 0 10px #b7fc8088; }
.tiny-dot.cyan { background:var(--cyan); box-shadow:0 0 10px #69dbe188; }
.tiny-dot.lime { background:var(--green); }
.tiny-dot.gold { background:var(--gold); box-shadow:0 0 10px #e7c68688; }
.mini-index { color:#68868e; font-family:ui-monospace,monospace; }
.ticket-heading { margin-top:12px; }
.ticket-heading h2,.shop-heading h2,.department-header h2,.bottom-heading h2 { margin:0; font-size:25px; letter-spacing:-.04em; }
.ticket-led { gap:8px; font-size:9px; color:#b0cfc6; }
.ticket-led .pulse { width:6px; height:6px; }
.click-stage { height:327px; position:relative; display:grid; place-items:center; isolation:isolate; overflow:hidden; margin-top:12px; }
.click-stage::before { content:""; width:235px; height:235px; position:absolute; background:var(--green); border-radius:50%; filter:blur(85px); opacity:.12; z-index:-1; }
.grid-plane { position:absolute; inset:0; background:linear-gradient(90deg,transparent 49.8%,#5e9f9d12 50%,transparent 50.2%),linear-gradient(transparent 49.8%,#5e9f9d12 50%,transparent 50.2%); background-size:45px 45px; mask-image:radial-gradient(ellipse 54% 50% at center,#0009,transparent); pointer-events:none; }
.orbit { position:absolute; border:1px solid #5ab89c38; border-radius:50%; pointer-events:none; }
.orbit-one { width:305px; height:305px; border-style:dashed; animation:rotate 60s linear infinite; }
.orbit-two { width:260px; height:260px; border-color:#85c6b432; }
.orbit-three { width:225px; height:225px; border-color:#9af2c139; border-style:dotted; animation:rotate 50s linear infinite reverse; }
.orbit-node { position:absolute; width:8px; height:8px; border-radius:50%; background:var(--cyan); box-shadow:0 0 13px var(--cyan); }
.node-one { transform:translate(-142px,-60px); }
.node-two { transform:translate(115px,70px); background:var(--green); box-shadow:0 0 13px var(--green); }
.node-three { transform:translate(-75px,120px); width:5px; height:5px; }
@keyframes rotate { to { transform:rotate(360deg); } }
.main-click { width:190px; height:190px; border-radius:50%; border:5px solid #baf8b1; position:relative; cursor:pointer; color:#072a21; background:radial-gradient(circle at 30% 23%,#e2ffbb,#aff492 42%,#6ac79e 82%,#4ba389); display:flex; flex-direction:column; justify-content:center; align-items:center; box-shadow:0 0 0 9px #baf8b11c,0 0 0 18px #baf8b108,0 10px 0 #296e5a,0 19px 42px #65dca530,inset 0 8px 17px #ffffff78; transition:transform .09s,box-shadow .09s; touch-action:manipulation; user-select:none; z-index:2; }
.main-click:active,.main-click.hit { transform:translateY(6px) scale(.97); box-shadow:0 0 0 9px #baf8b11c,0 0 0 18px #baf8b108,0 4px 0 #296e5a,0 10px 28px #65dca530,inset 0 8px 17px #ffffff78; }
.core-glare { position:absolute; left:22%; top:8%; width:56%; height:22%; background:#fff; filter:blur(16px); opacity:.35; border-radius:50%; }
.core-symbol { font-size:72px; font-weight:1000; line-height:1; margin-top:-4px; text-shadow:0 3px 0 #3f9e7759; }
.core-text { margin-top:6px; font-size:12px; font-weight:1000; letter-spacing:.08em; text-align:center; line-height:1.2; }
.corner-tag { position:absolute; color:#52747a; font-size:9px; font-family:ui-monospace,monospace; }
.corner-one { left:6px; top:12px; }
.corner-two { right:7px; bottom:10px; }
.bonus-bubble { position:absolute; top:8px; right:3px; z-index:5; border:1px solid #f0bd72; background:linear-gradient(145deg,#653f26,#4e332a); box-shadow:0 8px 28px #f8a35a30; color:#fff4dc; text-align:left; display:flex; flex-direction:column; padding:12px 14px; gap:5px; border-radius:12px; cursor:pointer; max-width:215px; animation:bonus-bob 1.3s ease-in-out infinite alternate; }
.bonus-bubble[hidden] { display:none; }
.bonus-bubble span { color:#ffcb89; font-size:9px; font-weight:900; letter-spacing:.1em; }
.bonus-bubble strong { font-size:12px; }
.bonus-bubble small { font-size:10px; color:#fcd5b4; }
@keyframes bonus-bob { to { transform:translateY(-4px); } }
.particles { position:absolute; inset:0; pointer-events:none; z-index:4; }
.float-score { position:absolute; font-size:19px; font-weight:1000; color:var(--green); text-shadow:0 3px 12px #001; white-space:nowrap; animation:float-up .85s ease-out forwards; }
@keyframes float-up { from { opacity:1; transform:translate(-50%,-5px) scale(.9); } to { opacity:0; transform:translate(-50%,-95px) scale(1.2); } }
.current-ticket { display:flex; align-items:center; gap:11px; border:1px solid #29444a; border-radius:11px; padding:11px 13px; background:#0a191f; min-width:0; }
.ticket-avatar { flex:none; width:32px; height:32px; border-radius:8px; background:#18353b; color:var(--cyan); display:grid; place-items:center; font-weight:950; }
.ticket-info { display:flex; flex:1; flex-direction:column; gap:3px; min-width:0; }
.ticket-info strong { font-size:11px; letter-spacing:.06em; color:var(--cyan); }
.ticket-info span { font-size:12px; color:#b7ced0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ticket-priority { flex:none; border:1px solid #326058; background:#15342e; color:var(--green); padding:6px 8px; border-radius:6px; font-size:10px; font-weight:900; }
.click-hint { color:#c4d7d4; text-align:center; font-size:12px; font-weight:700; margin:15px 0 18px; }
.click-hint span { color:#73949b; font-weight:400; }
kbd { padding:2px 5px; border:1px solid #3b5459; border-radius:4px; color:#a6d9c5; background:#193037; font-size:10px; }
.progress-card { background:#0a181e; border:1px solid #29434b; border-radius:12px; padding:14px 15px; }
.progress-top { margin-bottom:11px; }
.progress-top>span { color:#86a1a7; }
.progress-top strong { font-size:12px; color:var(--green); }
.progress-track,.prestige-track,.department-track { height:7px; border-radius:40px; background:#244047; overflow:hidden; }
.progress-fill,.prestige-fill,.department-fill { height:100%; width:0; border-radius:40px; background:linear-gradient(90deg,#56c9ca,#a4f27d); transition:width .2s ease; }
.progress-bottom { color:#779399; font-size:10px; margin-top:9px; }
.activity-wrap { margin-top:17px; }
.activity-heading { color:#73949b; margin-bottom:8px; }
.terminal-dot { color:#355c54; letter-spacing:.1em; font-size:9px; }
.activity-log { background:#07161b; border:1px solid #24414a; border-radius:11px; padding:9px 12px; display:flex; flex-direction:column; justify-content:flex-start; gap:8px; height:124px; overflow:hidden; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.log-row { display:flex; gap:12px; font-size:10px; color:#90aaa9; align-items:baseline; min-width:0; }
.log-row>span:first-child { color:#4f7983; flex:none; }
.log-row>span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.log-row.log-success>span:last-child { color:#a5debc; }
.log-row.log-alert>span:last-child { color:var(--orange); }
.shop-panel { display:flex; flex-direction:column; padding:23px 21px 18px; }
.shop-heading { align-items:flex-start; gap:10px; }
.shop-heading h2 { margin-top:10px; font-size:25px; }
.shop-heading p { margin:6px 0 0; font-size:12px; color:#819fa6; }
.shop-stamp { font-size:9px; white-space:nowrap; padding:8px; border:1px solid #395851; border-radius:7px; color:#9dc2a4; }
.shop-stamp span { color:var(--green); }
.tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; border:1px solid #254148; border-radius:12px; background:#091920; padding:4px; margin:19px 0 14px; }
.tab { padding:11px 5px; background:none; border:0; border-radius:8px; font-size:11px; font-weight:850; color:#73949d; cursor:pointer; white-space:nowrap; }
.tab:hover { color:#daeee9; }
.tab.active { color:#dffcf1; background:#1d4240; box-shadow:inset 0 0 0 1px #3b7164; }
.category-summary { gap:10px; margin-bottom:10px; font-size:10px; color:#819fa6; }
.category-summary strong { color:#adcebd; white-space:nowrap; }
.shop-items { display:flex; flex-direction:column; gap:8px; max-height:623px; overflow-y:auto; padding:0 4px 1px 0; scrollbar-width:thin; scrollbar-color:#3b6e6f #0c2227; }
.shop-item { width:100%; display:flex; align-items:center; text-align:left; gap:12px; padding:12px 11px; color:var(--ink); background:#122a31; border:1px solid #26454e; border-radius:11px; cursor:pointer; transition:background .12s,border-color .12s,transform .12s; }
.shop-item:hover:not(:disabled) { background:#1b3c3e; border-color:#83d7bb; transform:translateY(-1px); }
.shop-item:disabled { background:#102229; opacity:.69; }
.shop-emoji { flex:none; width:44px; height:44px; display:grid; place-items:center; background:#234047; border:1px solid #33565d; border-radius:10px; font-size:22px; }
.shop-item-inner { min-width:0; flex:1; }
.item-firstline { display:flex; align-items:center; gap:8px; }
.item-name { font-size:12px; font-weight:900; line-height:1.2; }
.item-owned { flex:none; color:#8bcfc5; background:#2e605a4f; border-radius:5px; padding:3px 6px; font-size:10px; font-weight:850; }
.item-owned.done { color:var(--green); }
.item-desc { font-size:10.5px; line-height:1.4; color:#8da7ae; margin-top:4px; }
.item-rate { font-size:10px; font-weight:850; color:var(--green); margin-top:7px; }
.item-price { flex:none; display:flex; flex-direction:column; align-items:flex-end; min-width:63px; gap:4px; }
.item-price strong { font-size:12px; white-space:nowrap; }
.item-price strong.affordable { color:var(--green); }
.item-price span { color:#74929a; font-size:10px; }
.item-price .buy-arrow { display:none; color:var(--green); font-size:14px; font-weight:900; }
.shop-item.can-buy .buy-arrow { display:block; }
.shop-footnote { border-top:1px solid #214049; padding-top:13px; margin:15px 2px 0; font-size:11px; line-height:1.55; color:#789ba2; }
.shop-footnote span { color:var(--cyan); font-weight:900; padding-right:3px; }
.department-panel { padding:21px 24px 23px; margin-top:18px; }
.department-header { gap:10px; margin-bottom:17px; }
.department-header h2 { font-size:20px; margin-top:7px; }
.department-total { color:#9bc1ba; font-size:10px; }
.department-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.department { padding:14px; border:1px solid #29464c; border-radius:11px; background:#0c1d24; min-width:0; }
.department-name { gap:10px; }
.department-name span { color:#8baba9; font-size:10px; white-space:nowrap; }
.department-name strong { font-size:14px; color:#d8f7ef; white-space:nowrap; letter-spacing:-.03em; }
.department-track { height:6px; margin:13px 0 9px; background:#264249; }
.department-fill.fill-team { background:#a9f080; }
.department-fill.fill-infra { background:#69dbe1; }
.department-fill.fill-security { background:#d2baf2; }
.department small { font-size:10px; color:#7b9ba3; }
.bottom-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:18px; margin-top:18px; }
.mini-panel { padding:22px 24px; }
.bottom-heading { align-items:start; }
.bottom-heading h2 { font-size:21px; margin-top:8px; }
.count { font-size:12px; color:#80a5a5; margin-left:5px; }
.section-glyph { font-size:25px; }
.achievements { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:16px; }
.achievement { display:flex; align-items:center; gap:9px; min-width:0; padding:9px; background:#152b32; border:1px solid #2b4750; border-radius:9px; }
.achievement.locked { opacity:.45; filter:grayscale(1); }
.achievement-icon { width:33px; height:33px; flex:none; display:grid; place-items:center; font-size:17px; background:#24474d; border-radius:8px; }
.achievement strong,.achievement span { display:block; }
.achievement strong { font-size:11px; margin-bottom:3px; }
.achievement span { font-size:9.5px; color:#83a1a8; line-height:1.3; }
.prestige-copy { font-size:12px; line-height:1.7; color:#91afb3; margin:16px 0 19px; }
.prestige-copy strong { color:#e4d8ff; }
.prestige-info { color:#88a3a7; font-size:11px; gap:12px; margin-bottom:11px; }
.prestige-info strong { font-size:12px; white-space:nowrap; color:#edebf2; }
.prestige-fill { background:linear-gradient(90deg,#ac91e9,#ebc4f4); }
.prestige-button { width:100%; margin-top:16px; padding:13px; background:linear-gradient(120deg,#d9beff,#a08bdb); border:0; border-radius:10px; color:#251a37; font-size:12px; font-weight:950; cursor:pointer; }
.prestige-button:disabled { background:#243740; color:#7a979d; }
.prestige-note { margin-top:11px; text-align:center; color:#79969e; font-size:10px; line-height:1.4; }
.prestige-meta { margin-top:22px; border-top:1px solid #2a4650; padding-top:16px; font-size:10px; color:#8fa8b1; font-weight:850; letter-spacing:.08em; }
.prestige-meta strong { color:var(--gold); font-size:19px; }
.footer { gap:12px; padding:25px 2px 3px; color:#59808a; font-size:9px; }
.toast-stack { display:flex; position:fixed; right:22px; bottom:22px; flex-direction:column; gap:8px; z-index:99; max-width:min(390px,calc(100vw - 40px)); pointer-events:none; }
.toast { padding:13px 16px; border:1px solid #77d6af8a; border-radius:12px; background:#174035; box-shadow:0 12px 32px #0009; color:#ecfff4; font-size:12px; font-weight:800; line-height:1.45; animation:toast-in .25s ease-out; }
@keyframes toast-in { from { transform:translateY(15px); opacity:0; } to { transform:translateY(0); opacity:1; } }
@media (max-width:1090px) {
  .shell { padding:22px 20px; }
  .main-grid { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:13px; }
  .tabs { grid-template-columns:repeat(2,1fr); }
  .department-name { align-items:flex-start; flex-direction:column; }
  .shop-items { max-height:635px; }
  .click-panel,.shop-panel,.mini-panel { padding:20px 18px; }
}
@media (max-width:780px) {
  .main-grid,.bottom-grid { grid-template-columns:1fr; }
  .hero-status { display:none; }
  .shop-items { max-height:unset; }
  .tabs { grid-template-columns:repeat(4,1fr); }
  .department-grid { grid-template-columns:1fr; }
  .department-name { align-items:center; flex-direction:row; }
  .click-stage { height:315px; }
  .click-panel { padding:23px; }
  .topbar { padding-bottom:17px; }
  .hero-copy { margin:27px 0 25px; }
}
@media (max-width:540px) {
  .shell { padding:17px 12px; }
  .topbar { align-items:flex-start; }
  .brand { gap:9px; }
  .brand-mark { width:39px; height:39px; font-size:17px; }
  .brand-name { font-size:17px; }
  .brand-subtitle { font-size:7px; letter-spacing:.09em; }
  .header-right { gap:5px; align-items:flex-end; flex-wrap:wrap; justify-content:flex-end; max-width:155px; }
  .pill { padding:6px 8px; font-size:9px; }
  .text-button { font-size:10px; padding:3px 6px; }
  .eyebrow { font-size:8px; gap:6px; }
  .hero-copy h1 { font-size:35px; }
  .hero-copy p { font-size:12px; }
  .stats-strip { display:grid; grid-template-columns:1fr 1fr; gap:0; padding:8px; }
  .stat { padding:12px 5px; border-right:0; }
  .stat:nth-child(odd) { border-right:1px solid var(--border); }
  .stat:nth-child(-n+2) { border-bottom:1px solid var(--border); }
  .stat strong { font-size:25px; }
  .stat>span { font-size:9px; }
  .stat small { font-size:9px; }
  .click-panel,.shop-panel,.mini-panel,.department-panel { padding:17px 14px; }
  .ticket-heading h2,.shop-heading h2 { font-size:23px; }
  .shop-stamp { display:none; }
  .click-stage { height:305px; }
  .main-click { width:172px; height:172px; }
  .core-symbol { font-size:62px; }
  .core-text { font-size:11px; }
  .orbit-one { width:285px; height:285px; }
  .orbit-two { width:238px; height:238px; }
  .orbit-three { width:208px; height:208px; }
  .node-one { transform:translate(-132px,-55px); }
  .node-two { transform:translate(103px,67px); }
  .bonus-bubble { max-width:190px; padding:10px; top:5px; right:0; }
  .bonus-bubble strong { font-size:11px; }
  .click-hint span { display:block; margin-top:5px; }
  .tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tab { padding:11px 4px; }
  .category-summary { font-size:9px; }
  .shop-item { gap:9px; padding:10px 8px; }
  .shop-emoji { width:40px; height:40px; font-size:19px; }
  .item-name { font-size:11px; }
  .item-desc,.item-rate { font-size:9.5px; }
  .item-price strong { font-size:11px; }
  .item-price { min-width:52px; }
  .department-header h2 { font-size:18px; }
  .department-total { font-size:9px; text-align:right; }
  .achievements { gap:6px; }
  .achievement { gap:6px; padding:7px 5px; }
  .achievement-icon { width:29px; height:29px; font-size:15px; }
  .achievement strong { font-size:10px; }
  .achievement span { font-size:9px; }
  .footer { flex-direction:column; gap:8px; font-size:8px; }
}
@media (max-width:355px) { .item-desc { display:none; } .mini-label { font-size:8px; } .brand-subtitle { display:none; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.001ms!important; transition-duration:.001ms!important; } }

/* OPS//CTRL v2 — comptes, choix de sauvegarde et classement. */
[hidden] { display:none!important; }
.account-trigger { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; border-radius:10px; padding:10px 13px; border:1px solid #4c857b; background:#173b36; color:#b8f8d8; font-size:12px; font-weight:850; cursor:pointer; }
.account-trigger:hover { background:#22534b; color:#fff; }
.auth-overlay { position:fixed; z-index:105; inset:0; display:grid; place-items:center; padding:18px; }
.auth-backdrop { position:absolute; inset:0; background:#030c11d9; backdrop-filter:blur(8px); }
.auth-modal { isolation:isolate; position:relative; z-index:1; background:linear-gradient(150deg,#122b31,#0b1b24); border:1px solid #407268; box-shadow:0 24px 95px #000b; border-radius:20px; padding:28px; width:min(100%,475px); max-height:calc(100dvh - 38px); overflow-y:auto; }
.auth-modal-head { display:flex; justify-content:space-between; gap:12px; align-items:start; }
.auth-modal h2 { margin:10px 0 6px; font-size:25px; letter-spacing:-.03em; }
.auth-x { cursor:pointer; border:1px solid #345059; width:33px; height:33px; border-radius:8px; background:#132c33; color:#fff; font-size:25px; }
.auth-subtitle { color:#a7bdc1; font-size:12px; line-height:1.6; margin:8px 0 18px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; padding:4px; border:1px solid #29454f; background:#09191f; border-radius:11px; gap:4px; margin-bottom:18px; }
.auth-tabs button { color:#9fb6ba; padding:11px 8px; border:0; background:transparent; border-radius:8px; font-size:12px; font-weight:800; cursor:pointer; }
.auth-tabs button.active { background:#1a4740; color:#d3ffe1; }
.auth-form { display:flex; flex-direction:column; gap:13px; }
.auth-form label { display:flex; flex-direction:column; gap:7px; color:#bbd7da; font-size:12px; font-weight:750; }
.auth-form input { min-width:0; width:100%; padding:13px 14px; background:#07151b; border:1px solid #35565e; border-radius:10px; color:#fff; font:inherit; font-size:14px; outline:none; }
.auth-form input:focus { border-color:#9aefbf; box-shadow:0 0 0 3px #69dbaa22; }
.auth-error { min-height:18px; margin:0; font-size:12px; color:#fbb2a8; line-height:1.45; }
.auth-error.good { color:#a5f1bf; }
.auth-primary,.auth-secondary { border-radius:10px; font-size:13px; font-weight:850; padding:13px 17px; cursor:pointer; }
.auth-primary { background:#a6f06b; color:#0a2015; border:1px solid #c3ffa2; }
.auth-primary:hover { background:#c9ffab; }
.auth-primary:disabled { opacity:.45; cursor:wait; }
.auth-secondary { background:#172c35; color:#d5ebea; border:1px solid #46666a; }
.auth-link { cursor:pointer; font-size:12px; color:#9cdce3; background:none; border:0; padding:4px; align-self:center; }
.auth-profile { display:flex; flex-direction:column; align-items:center; text-align:center; gap:9px; }
.account-avatar { width:62px; height:62px; display:grid; place-items:center; background:#173e36; border:1px solid #66d6aa; border-radius:50%; font-size:27px; }
.auth-profile strong { font-size:20px; }
.profile-mail { color:#91abb3; font-size:12px; word-break:break-all; }
.sync-state { margin:9px 0; background:#0b251f; border:1px solid #306457; color:#b6edc4; border-radius:10px; padding:12px; width:100%; font-size:12px; }
.profile-actions { width:100%; display:grid; gap:10px; }
.auth-muted { color:#77959f; font-size:11px; line-height:1.55; margin:12px 0 0; }
.auth-setup { background:#0e242c; padding:16px; border:1px solid #355059; border-radius:12px; color:#bbdad7; font-size:12px; line-height:1.6; }
.auth-setup p { margin:7px 0 0; }
.auth-setup code { color:#a5f2be; }
.choice-modal { padding:27px; }
.choice-buttons { display:grid; gap:9px; }
.choice-buttons button { display:flex; flex-direction:column; gap:5px; align-items:start; text-align:left; padding:14px; background:#142d35; border:1px solid #36545d; border-radius:12px; color:#e3f8ee; cursor:pointer; }
.choice-buttons button:hover { background:#1b433d; border-color:#83dcaf; }
.choice-buttons button strong { font-size:13px; }
.choice-buttons button span { color:#94b4bb; font-size:11px; }
.ranking-panel { padding:22px 25px; margin-top:18px; }
.ranking-panel h2 { font-size:23px; margin:8px 0 0; }
.ranking-note,.ranking-placeholder { font-size:11px; color:#91aab1; line-height:1.5; }
.ranking-note { margin:10px 0 15px; }
.ranking-list { display:grid; gap:6px; }
.ranking-row { display:grid; grid-template-columns:40px minmax(0,1fr) minmax(90px,auto) minmax(85px,auto); gap:12px; align-items:center; padding:12px 13px; border:1px solid #264750; border-radius:10px; background:#0b1c22; font-size:12px; }
.ranking-row.my-score { border-color:#81daa1; background:#15382e; }
.ranking-row .place { font-weight:900; color:#a6f06b; }
.ranking-row .player-name { font-weight:800; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ranking-row .value { text-align:right; color:#9dc6ca; font-variant-numeric:tabular-nums; }
@media (max-width:780px) { .header-right { flex-wrap:wrap; justify-content:flex-end; gap:9px; } }
@media (max-width:540px) {
  .topbar { flex-wrap:wrap; }
  .header-right { max-width:100%; width:100%; justify-content:flex-start; align-items:center; }
  .account-trigger { padding:8px 10px; font-size:11px; }
  .auth-modal { padding:20px; }
  .auth-modal h2 { font-size:22px; }
  .ranking-panel { padding:17px 14px; }
  .ranking-row { grid-template-columns:25px minmax(0,1fr) 72px 70px; gap:7px; font-size:10px; padding:9px 7px; }
  .ranking-note { font-size:10px; }
}
