@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
:root { --bg: #080a18; --fg: #fff; --muted: #b9c0e6; --pink: #ff3d7f; --gold: #ffd23d; --cyan: #3dd6ff; --green: #3dffb5; --violet: #7b5cff; --card: rgba(14, 18, 44, .86); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
body { font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif; }
#app { position: fixed; inset: 0; }
#screen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

#hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
#hud button { pointer-events: auto; }
#btnMenu { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 10px; width: 42px; height: 42px; border-radius: 13px; border: 2px solid rgba(255,255,255,.3); background: rgba(10,14,34,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.len { position: absolute; top: calc(env(safe-area-inset-top) + 8px); left: 62px; display: flex; flex-direction: column; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.len small { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.len b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.len span { font-size: 13px; color: var(--muted); }
#lb { position: absolute; top: calc(env(safe-area-inset-top) + 8px); right: 10px; margin: 0; padding: 8px 10px; list-style: none; background: rgba(10,14,34,.5); border-radius: 12px; font-size: 13px; min-width: 170px; max-width: 46vw; }
#lb li { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px; line-height: 1.45; color: #dfe3ff; }
#lb li b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lb li i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
#lb li.me { color: var(--gold); } #lb li.me i { color: var(--gold); }
#hNet { position: absolute; top: calc(env(safe-area-inset-top) + 78px); left: 10px; font-size: 12px; color: var(--muted); background: rgba(10,14,34,.5); padding: 4px 8px; border-radius: 8px; }
#btnLink { position: absolute; top: calc(env(safe-area-inset-top) + 106px); left: 10px; font: 700 13px "Space Grotesk", sans-serif; color: #fff; background: var(--violet); border: 0; border-radius: 10px; padding: 7px 10px; cursor: pointer; }
#mini { position: absolute; left: 10px; bottom: calc(env(safe-area-inset-bottom) + 10px); width: 130px; height: 130px; opacity: .9; }
#btnBoost { position: absolute; right: 18px; bottom: calc(env(safe-area-inset-bottom) + 26px); width: 84px; height: 84px; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); background: radial-gradient(circle at 35% 30%, rgba(255,210,61,.7), rgba(255,61,127,.5)); color: #fff; font: 700 13px/1 "Space Grotesk", sans-serif; letter-spacing: .05em; touch-action: none; }
#stick { position: absolute; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); pointer-events: none; z-index: 6; }
#knob { position: absolute; left: 32px; top: 32px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.5); }
#toast { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); padding: 8px 16px; border-radius: 16px; background: linear-gradient(90deg, var(--pink), var(--violet)); font-size: 16px; text-align: center; max-width: min(90vw, 440px); opacity: 0; pointer-events: none; z-index: 20; }
#toast.show { animation: toast 1.8s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateX(-50%) scale(.7); } 12% { opacity: 1; transform: translateX(-50%) scale(1.05); } 20% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-12px); } }

#ui { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.scr { pointer-events: auto; position: absolute; inset: 0; overflow-y: auto; padding: calc(env(safe-area-inset-top) + 56px) 16px calc(env(safe-area-inset-bottom) + 70px); display: flex; flex-direction: column; align-items: center; gap: 12px; background: radial-gradient(ellipse at 50% 35%, rgba(8,10,24,.2), rgba(8,10,24,.78)); touch-action: pan-y; }
.scr > * { width: 100%; max-width: 480px; }
.scr.tot, .scr.pause, .scr.verbinde { justify-content: center; background: rgba(8,10,24,.45); }
.logo { text-align: center; font-size: clamp(46px, 13vw, 78px); line-height: 1; letter-spacing: -.02em; margin-top: 8px; filter: drop-shadow(0 5px 0 rgba(0,0,0,.4)); }
.logo span { background: linear-gradient(90deg, #3dffb5, #3dd6ff 40%, #b46bff 70%, #ff3d7f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo em { font-style: normal; color: var(--gold); font-size: .55em; margin-left: 2px; }
.claim, .best { text-align: center; margin: 0; color: var(--muted); font-size: 15px; }
.best b { color: var(--gold); }
h2 { margin: 2px 0 6px; text-align: center; font-size: 26px; }
h3 { margin: 0 0 8px; font-size: 16px; }
.card { background: var(--card); border: 1.5px solid rgba(255,255,255,.14); border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.card.center { text-align: center; }
.card.center .btn { display: block; width: 100%; margin-top: 8px; }
.card.center .link { display: block; margin: 8px auto 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; justify-content: space-between; margin: 8px 0; }
.row .btn { flex: 1; }
.nm { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.nm.small { flex-direction: row; align-items: center; }
input, select { font: 700 17px "Space Grotesk", sans-serif; color: #fff; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.25); border-radius: 12px; padding: 10px 12px; width: 100%; -webkit-user-select: text; user-select: text; }
select { width: auto; }
#inCode { text-transform: uppercase; letter-spacing: .3em; text-align: center; flex: 1; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.chk input { width: auto; }
.skins { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.skins canvas { flex: 1; width: 100%; max-width: 300px; height: auto; aspect-ratio: 300 / 90; }
.arrow { appearance: none; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 40px; height: 40px; border-radius: 50%; font: 700 24px/1 "Space Grotesk", sans-serif; cursor: pointer; }
.skname { text-align: center; margin: 4px 0 0; font-size: 15px; }
.lock { color: var(--muted); font-size: 13px; }
.btn { appearance: none; border: 0; border-radius: 16px; padding: 13px 16px; font: 700 17px/1.1 "Space Grotesk", sans-serif; color: #fff; background: linear-gradient(180deg, #4a5296, #2e3470); box-shadow: 0 4px 0 #1b1f4a; cursor: pointer; touch-action: manipulation; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1b1f4a; }
.btn.big { font-size: 25px; padding: 17px; background: linear-gradient(180deg, #4dffc4, #1fd48f 55%, #12a86f); color: #06261a; box-shadow: 0 5px 0 #0b6a46, 0 10px 24px rgba(61,255,181,.3); }
.btn.small { font-size: 15px; padding: 9px 12px; flex: 0 0 auto; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { appearance: none; background: none; border: 0; color: var(--muted); font: 700 15px "Space Grotesk", sans-serif; text-decoration: underline; cursor: pointer; padding: 6px; }
.rooms { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 34vh; overflow-y: auto; }
.rooms li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.05); }
.rooms li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rooms li span { color: var(--muted); font-size: 14px; }
.rooms li.muted { display: block; color: var(--muted); font-size: 14px; background: none; }
.note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.note.err { color: #ffb0c4; text-align: center; min-height: 1em; }
.rec { color: var(--gold); font-size: 19px; letter-spacing: .06em; }
.big-score { font-size: 54px; line-height: 1.05; }
.stats { display: flex; justify-content: center; gap: 14px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.up { color: var(--green); }
.sl { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 15px; }
.sl input { accent-color: var(--green); padding: 0; border: 0; background: none; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; appearance: none; border: 1.5px solid rgba(255,255,255,.2); background: rgba(10,14,34,.6); color: var(--muted); border-radius: 10px; padding: 8px; font: 700 14px "Space Grotesk", sans-serif; cursor: pointer; }
.seg button.on { background: var(--green); color: #06261a; }
.help p, .help li { font-size: 15px; line-height: 1.45; color: #e2e6ff; }
.help ul { padding-left: 18px; margin: 6px 0 0; }
.noscript { padding: 20px; }
@media (max-width: 520px) { #lb { font-size: 12px; min-width: 140px; padding: 6px 8px; } #lb li:nth-child(n+7):not(.me) { display: none; } #mini { width: 96px; height: 96px; } }
@media (orientation: landscape) and (max-height: 520px) { .scr { padding-top: 12px; gap: 8px; } .logo { font-size: 44px; margin: 0; } .btn.big { padding: 11px; font-size: 21px; } #lb li:nth-child(n+6):not(.me) { display: none; } }
@media (orientation: landscape) and (max-height: 520px) { .claim, .best { display: none; } .skins { margin-top: 6px; } .skins canvas { max-height: 56px; } .card { padding: 10px 14px; } }
