/* Ctrl+Alt+Drive — pixel/konzolové UI v barvách CONEMA */
/* fonty lokálně (web conema.cz je bez třetích stran), OFL – licence v ../fonts/ */
@font-face { font-family: 'Press Start 2P'; font-weight: 400; font-display: swap; src: url('../fonts/press-start-2p-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Press Start 2P'; font-weight: 400; font-display: swap; src: url('../fonts/press-start-2p-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Rajdhani'; font-weight: 500; font-display: swap; src: url('../fonts/rajdhani-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Rajdhani'; font-weight: 500; font-display: swap; src: url('../fonts/rajdhani-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url('../fonts/rajdhani-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url('../fonts/rajdhani-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0f17;
  --panel: #111a2c;
  --panel2: #1a2540;
  --line: #26365a;
  --cyan: #4fd1ea;
  --violet: #9b7bff;
  --pink: #ff4fd8;
  --amber: #f4c542;
  --ok: #46d160;
  --bad: #ff4f6d;
  --orange: #ff8a3d;
  --text: #eaf2ff;
  --muted: #8fa3bf;
  --grad: linear-gradient(90deg, #4fd1ea, #9b7bff 55%, #ff4fd8);
  --pix: 'Press Start 2P', ui-monospace, monospace;
  --disp: 'Rajdhani', system-ui, sans-serif; /* nadpisy s diakritikou */
  --sans: 'Rajdhani', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
#game { position: fixed; inset: 0; display: block; touch-action: none; }
.hidden { display: none !important; }
kbd { font-family: var(--mono); font-size: .9em; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 5px; background: #0d1424; }

/* ================= HUD ================= */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 32; font-family: var(--mono); }
.h-tl { position: absolute; left: calc(12px + var(--safe-l)); top: calc(12px + var(--safe-t)); display: flex; flex-direction: column; gap: 6px; width: 168px; }
.h-minibox { position: relative; width: 168px; height: 168px; border-radius: 14px; overflow: hidden; border: 2px solid #1d2a47; box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.45), inset 0 0 22px rgba(79,209,234,.12); background: #050b16; }
.h-mini { width: 100%; height: 100%; display: block; }
.h-mini-n { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font: 8px var(--pix); color: var(--cyan); opacity: .8; }
.h-dist { background: rgba(9,14,26,.86); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 8px; padding: 5px 8px; display: flex; flex-direction: column; gap: 2px; }
.h-dist b { font: 700 15px var(--sans); color: var(--text); }
.h-dist span { font-size: 10px; color: var(--muted); }
.h-ind { display: block; height: 4px; background: #1b2436; border-radius: 2px; overflow: hidden; }
.h-ind em { display: block; height: 100%; background: var(--grad); }

.h-tr { position: absolute; right: calc(12px + var(--safe-r)); top: calc(12px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.h-btns { display: flex; gap: 6px; pointer-events: auto; }
.h-b { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(9,14,26,.86); font-size: 17px; cursor: pointer; display: grid; place-items: center; }
.h-b:active { transform: translateY(1px); background: var(--panel2); }
.h-money { font: 20px var(--pix); color: var(--ok); text-shadow: 3px 3px 0 #000; letter-spacing: -1px; }
.h-money small, .rt-money small { font: 700 .8em var(--disp); margin-left: 4px; letter-spacing: 0; text-shadow: 1px 1px 0 #000; }
.h-row { display: flex; gap: 8px; }
.h-clock, .h-rate { background: rgba(9,14,26,.86); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.h-rate { color: var(--amber); }
.h-batt { display: flex; align-items: center; gap: 8px; background: rgba(9,14,26,.86); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.h-batt i { position: relative; display: block; width: 64px; height: 14px; border: 2px solid #8fa3bf; border-radius: 3px; padding: 1px; }
.h-batt i::after { content: ''; position: absolute; right: -5px; top: 3px; width: 3px; height: 6px; background: #8fa3bf; border-radius: 1px; }
.h-batt em { display: block; height: 100%; background: linear-gradient(90deg, #46d160, #4fd1ea); border-radius: 1px; transition: width .3s; }
.h-batt.low em { background: var(--orange); }
.h-batt.low span { color: var(--orange); }
.h-batt.dead em { background: var(--bad); }
.h-batt.dead { animation: blink .8s steps(2) infinite; }
.h-batt.chg i { box-shadow: 0 0 10px var(--cyan); }
.h-batt.ice { display: none; }
.h-inc { background: rgba(30,8,16,.9); border: 2px solid var(--c, var(--bad)); border-radius: 8px; padding: 5px 9px; font-size: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 260px; }
.h-inc.t1 { --c: var(--cyan); } .h-inc.t2 { --c: var(--amber); } .h-inc.t3 { --c: var(--orange); } .h-inc.t4 { --c: var(--bad); }
.h-inc b { color: var(--c); font-weight: 700; }
.h-inc.seen { animation: incpulse .5s steps(2) infinite; }
.h-shields { color: var(--c); letter-spacing: 3px; font-size: 14px; }
@keyframes incpulse { 50% { box-shadow: 0 0 16px var(--c); } }

.h-tc { position: absolute; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: min(560px, calc(100vw - 420px)); min-width: 240px; }
.h-ticket { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: rgba(9,14,26,.9); border: 1px solid var(--line); border-top: 3px solid var(--violet); border-radius: 10px; padding: 6px 10px; font-size: 13px; justify-content: center; }
.h-ticket.idle { border-top-color: var(--line); }
.h-ticket .tid { color: var(--muted); }
.h-ticket .tcl { font: 700 15px var(--sans); }
.h-ticket .tsla { color: var(--cyan); font-weight: 700; }
.h-ticket .tsla.low { color: var(--amber); animation: blink .6s steps(2) infinite; }
.h-ticket .tsla.over { color: var(--bad); }
.h-ticket .tfr { color: var(--bad); }
.prio { font: 9px var(--pix); padding: 4px 6px; border-radius: 5px; color: #0b0f17; background: var(--cyan); }
.prio.p1 { background: var(--bad); color: #fff; } .prio.p2 { background: var(--amber); } .prio.p3 { background: var(--cyan); }
.prio .pn { font: 700 12px/1 var(--disp); font-style: normal; letter-spacing: .02em; }
.h-inv { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; font-size: 11px; }
.h-inv small { color: var(--muted); }
.h-inv i { font-style: normal; background: #1d2740; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.h-inv i.need { border-color: var(--amber); color: var(--amber); }
.h-inv em { color: var(--muted); }
.h-goal { background: rgba(9,14,26,.82); border-radius: 8px; padding: 4px 10px; font-size: 13px; color: #c9f5ff; text-shadow: 0 0 8px rgba(79,209,234,.4); text-align: center; }
.h-goal:empty { display: none; }
.h-race { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; background: rgba(9,14,26,.9); border: 1px solid #1f5fd6; border-radius: 8px; padding: 5px 9px; width: 260px; font-size: 11px; }
.h-race b { grid-column: span 2; font: 700 13px var(--disp); color: #5ab0ff; text-transform: uppercase; }
.h-race span { font-weight: 700; color: var(--text); }
.h-race.losing { animation: incpulse .6s steps(2) infinite; --c: #1f5fd6; }
.h-race i { display: block; height: 7px; background: #1b2436; border-radius: 3px; overflow: hidden; }
.h-race i em { display: block; height: 100%; transition: width .3s; }
.h-race .you em { background: var(--grad); }
.h-race .mega em { background: #1f5fd6; }

.h-toasts { position: absolute; right: calc(12px + var(--safe-r)); top: calc(190px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 340px; }
.h-toast { background: rgba(9,14,26,.94); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 8px; padding: 7px 10px; font: 600 14px var(--sans); animation: toastin .25s ease-out; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.h-toast.warn { border-left-color: var(--orange); }
.h-toast.ok { border-left-color: var(--ok); }
.h-toast.out { opacity: 0; transform: translateX(20px); transition: all .35s; }
.h-toast.achv { display: flex; gap: 10px; align-items: center; border: 2px solid transparent; background: linear-gradient(#0d1424, #0d1424) padding-box, var(--grad) border-box; padding: 8px 12px; }
.h-toast.achv .ai { font-size: 26px; }
.h-toast.achv small { display: block; font: 700 12px var(--disp); text-transform: uppercase; letter-spacing: .08em; color: var(--pink); }
.h-toast.achv b { display: block; font: 700 17px var(--sans); }
.h-toast.achv em { font-style: normal; color: var(--muted); font-size: 13px; }
@keyframes toastin { from { opacity: 0; transform: translateX(30px); } }

.h-banner { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.h-banner b { display: block; font: 700 clamp(26px, 6.4vw, 56px)/1.05 var(--disp); text-transform: uppercase; letter-spacing: .04em; color: var(--c, var(--amber)); text-shadow: 4px 4px 0 #000, 0 0 24px var(--c, var(--amber)); }
.h-banner span { display: inline-block; margin-top: 10px; font: 700 18px var(--sans); background: rgba(9,14,26,.85); padding: 4px 12px; border-radius: 8px; }
.h-banner.pop { animation: bannerpop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes bannerpop { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }

.h-prompt { position: absolute; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%); font: 700 19px var(--disp); text-transform: uppercase; background: var(--grad); color: #0b0f17; padding: 12px 18px; border-radius: 10px; box-shadow: 0 0 24px rgba(155,123,255,.6), 4px 4px 0 #000; animation: promptb 1s ease-in-out infinite; }
@keyframes promptb { 50% { transform: translateX(-50%) translateY(-4px); } }

.h-br { position: absolute; right: calc(14px + var(--safe-r)); bottom: calc(16px + var(--safe-b)); text-align: right; }
.h-speed b { font: 30px var(--pix); color: var(--text); text-shadow: 3px 3px 0 #000; }
.h-speed small { font: 9px var(--pix); color: var(--muted); margin-left: 6px; }
.h-ping { font-size: 11px; color: var(--cyan); opacity: .8; }

.h-radio { position: absolute; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); width: min(560px, 60vw); display: flex; gap: 8px; align-items: center; background: rgba(9,14,26,.8); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 12px; overflow: hidden; white-space: nowrap; }
.h-radio span { color: var(--pink); flex: none; font-weight: 700; }
.h-radio em { font-style: normal; color: #d6e4f5; overflow: hidden; text-overflow: ellipsis; }
.h-radio em.roll { animation: radioin .5s ease-out; }
@keyframes radioin { from { opacity: 0; transform: translateY(8px); } }

.h-charge { position: absolute; left: 50%; bottom: calc(56px + var(--safe-b)); transform: translateX(-50%); display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; justify-items: start; background: rgba(9,14,26,.9); border: 2px solid var(--cyan); border-radius: 14px; padding: 12px 18px; box-shadow: 0 0 30px rgba(79,209,234,.35); }
.h-cbat { grid-row: span 3; position: relative; width: 34px; height: 56px; border: 3px solid var(--text); border-radius: 6px; padding: 3px; display: flex; align-items: flex-end; }
.h-cbat::before { content: ''; position: absolute; top: -8px; left: 12px; width: 10px; height: 5px; background: var(--text); border-radius: 2px 2px 0 0; }
.h-cbat i { display: block; width: 100%; background: linear-gradient(0deg, #46d160, #4fd1ea); border-radius: 2px; box-shadow: 0 0 12px var(--cyan); }
.h-charge b { font: 16px var(--pix); color: var(--cyan); }
.h-charge span { font: 600 13px var(--sans); color: var(--muted); }

.h-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.h-flash.on { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }

.h-hint { position: absolute; left: 50%; top: 56%; bottom: auto; transform: translateX(-50%); width: min(620px, 92vw); background: rgba(9,14,26,.95); border: 2px solid transparent; background-clip: padding-box; border-radius: 12px; padding: 12px 16px; font: 600 16px/1.5 var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--violet), 0 10px 30px rgba(0,0,0,.5); }
.h-hint b { color: var(--cyan); }

/* karta ticketu */
.h-card { position: absolute; right: calc(16px + var(--safe-r)); top: calc(200px + var(--safe-t)); width: 340px; pointer-events: auto; background: #0e1628; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 1px #000; font-family: var(--sans); }
.h-card.in { animation: cardin .35s cubic-bezier(.2,1.4,.4,1); }
.h-card.out { transform: translateX(120%); transition: transform .25s ease-in; }
@keyframes cardin { from { transform: translateX(120%) rotate(4deg); } }
.tc-head { display: flex; justify-content: space-between; background: var(--grad); color: #0b0f17; font: 700 14px var(--disp); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; }
.tc-row1 { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; }
.tc-id { font: 13px var(--pix); }
.tc-sla { margin-left: auto; font: 700 15px var(--mono); color: var(--cyan); }
.tc-client { padding: 2px 12px; }
.tc-client b { display: block; font-size: 20px; }
.tc-client span { color: var(--muted); font-size: 14px; }
.tc-desc { margin: 6px 12px; background: #0a101e; border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; }
.tc-desc small { color: var(--muted); font-size: 12px; }
.tc-desc p { font-size: 17px; min-height: 2.4em; color: #fff; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; font-size: 14px; }
.tc-tags span { background: #1a2540; border-radius: 6px; padding: 2px 8px; }
.tc-tags .need { color: var(--amber); }
.tc-tags .have { color: var(--ok); }
.tc-tags .fr { color: var(--bad); }
.tc-diag { margin: 6px 12px 0; color: var(--cyan); font-size: 14px; }
.tc-race { margin: 6px 12px 0; color: #5ab0ff; font-weight: 700; font-size: 15px; }
.tc-chat { margin: 8px 12px 0; font-size: 14px; color: #d6e4f5; }
.tc-chat b { color: var(--pink); }
.tc-accept { position: relative; display: block; width: calc(100% - 24px); margin: 10px 12px 12px; padding: 12px; border: 0; border-radius: 10px; background: var(--ok); color: #06210d; font: 700 18px var(--disp); text-transform: uppercase; cursor: pointer; overflow: hidden; }
.tc-accept small { font-size: 13px; opacity: .7; }
.tc-accept i { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(0,0,0,.35); transform-origin: left; animation: shrink linear forwards; }
@keyframes shrink { to { transform: scaleX(0); } }

/* hodnocení zákazníka */
.h-rating { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,8,16,.55); pointer-events: auto; }
.rt-card { width: min(420px, 92vw); background: #0e1628; border-radius: 18px; padding: 20px; text-align: center; border: 2px solid transparent; background: linear-gradient(#0e1628, #0e1628) padding-box, var(--grad) border-box; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: bannerpop2 .4s cubic-bezier(.2,1.5,.4,1); font-family: var(--sans); }
@keyframes bannerpop2 { from { transform: scale(.6); opacity: 0; } }
.rt-head { font: 700 17px var(--disp); letter-spacing: .08em; color: var(--ok); }
.rt-client { font: 700 20px var(--sans); margin-top: 6px; }
.rt-stars { display: flex; justify-content: center; gap: 6px; margin: 12px 0 6px; }
.rt-stars span { font-size: 46px; line-height: 1; color: #2a3350; transform: scale(.6); transition: transform .25s cubic-bezier(.2,2,.4,1), color .2s; position: relative; }
.rt-stars span.on { color: #ffd23f; transform: scale(1); text-shadow: 0 0 18px rgba(255,210,63,.8); }
.rt-stars span.on::after { content: '✦'; position: absolute; left: 50%; top: 50%; font-size: 18px; color: #fff; animation: sparkle .6s ease-out forwards; }
.rt-stars span.dim { color: #222b42; transform: scale(.85); }
@keyframes sparkle { from { transform: translate(-50%,-50%) scale(.3); opacity: 1; } to { transform: translate(40%,-160%) scale(1.4); opacity: 0; } }
.rt-quote { font-size: 19px; color: #fff; font-style: italic; margin: 6px 0 10px; }
.rt-break { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 14px; }
.rt-break span { background: #1a2540; border-radius: 6px; padding: 2px 8px; }
.rt-break .ok { color: var(--ok); } .rt-break .warn { color: var(--orange); }
.rt-money { font: 28px var(--pix); color: var(--ok); margin-top: 14px; text-shadow: 3px 3px 0 #000; opacity: 0; transform: scale(.5); transition: all .3s cubic-bezier(.2,2,.4,1); }
.rt-money.on { opacity: 1; transform: scale(1); }
.rt-combo { font: 700 17px var(--disp); color: var(--pink); margin-top: 8px; }
.rt-go { margin-top: 14px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); font: 700 16px var(--disp); text-transform: uppercase; cursor: pointer; }

@keyframes blink { 50% { opacity: .35; } }

/* ================= dotykové ovládání ================= */
#touch { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.tc-zone { position: absolute; left: 0; bottom: 0; width: 58%; height: 62%; pointer-events: auto; touch-action: none; }
.tc-stick { position: absolute; left: 0; top: 0; width: 140px; height: 140px; border-radius: 50%; border: 2px solid rgba(79,209,234,.35); background: radial-gradient(circle, rgba(79,209,234,.08), rgba(11,15,23,.35)); transform: translate(calc(24px + var(--safe-l)), calc(100vh - 190px - var(--safe-b))); pointer-events: none; opacity: .55; transition: opacity .15s; }
.tc-stick.active { opacity: 1; transition: none; }
.tc-knob { position: absolute; left: 42px; top: 42px; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px rgba(155,123,255,.6), inset 0 -4px 0 rgba(0,0,0,.25); }
.tc-lbl { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); font: 700 12px var(--disp); text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tc-stick.active .tc-lbl { display: none; }
.tc-right { position: absolute; right: calc(14px + var(--safe-r)); bottom: calc(20px + var(--safe-b)); width: 200px; height: 220px; }
.tc-btn { position: absolute; pointer-events: auto; touch-action: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(0,0,0,.6); font: 700 15px var(--disp); letter-spacing: .04em; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.55), 0 0 18px rgba(0,0,0,.4); -webkit-user-select: none; user-select: none; }
.tc-btn.on { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.55); filter: brightness(1.3); }
.tc-drift { right: 0; bottom: 0; width: 96px; height: 96px; background: radial-gradient(circle at 40% 35%, #ff7ce4, #d42fb4); font-size: 18px; }
.tc-brake { right: 106px; bottom: 0; width: 76px; height: 76px; background: radial-gradient(circle at 40% 35%, #59657d, #2b3346); }
.tc-horn { right: 112px; bottom: 90px; width: 50px; height: 50px; background: #2b3346; font-size: 20px; }
/* háček 1.1: místo pro „Ajťácký mobil“ (tlačítko je zatím skryté) */
.tc-phone { right: 112px; bottom: 150px; width: 50px; height: 50px; background: #2b3346; font-size: 20px; }
.tc-act { right: 0; bottom: 108px; width: 124px; height: 58px; border-radius: 14px; background: var(--grad); color: #0b0f17; font-size: 16px; animation: promptb2 1s ease-in-out infinite; }
.tc-act.off { display: none; }
@keyframes promptb2 { 50% { transform: translateY(-3px); } }

/* ================= obrazovky (overlay) ================= */
#overlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); background: radial-gradient(circle at 30% 20%, rgba(155,123,255,.18), transparent 60%), radial-gradient(circle at 80% 80%, rgba(79,209,234,.14), transparent 55%), rgba(6,9,16,.94); }
#overlay.dim { background: rgba(6,9,16,.72); }
#overlay.boot-bg { background: #000; align-items: flex-start; justify-content: flex-start; }
#overlay.denied-bg { background: radial-gradient(circle at 50% 40%, rgba(255,79,109,.25), rgba(10,4,8,.96) 70%); }
.screen { width: min(860px, 100%); margin: auto; text-align: center; }

/* BIOS */
.boot { padding: 20px; font: 13px/1.6 var(--mono); color: #b8f7c4; text-align: left; }
.boot-pre { white-space: pre-wrap; text-shadow: 0 0 6px rgba(70,209,96,.6); }
.boot-any { margin-top: 18px; opacity: 0; color: #fff; }
.boot-any.on { opacity: 1; animation: blink 1s steps(2) infinite; }

/* logo z kláves */
.logo-keys { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.logo-keys i { font: 18px var(--pix); color: var(--muted); font-style: normal; }
.key { display: inline-grid; place-items: center; min-width: 74px; height: 62px; padding: 0 12px; font: 15px var(--pix); color: #e8eefc; background: linear-gradient(#2b3550, #1a2236); border: 2px solid #0a0e18; border-radius: 10px; box-shadow: inset 0 -7px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.12), 0 5px 0 #05070d, 0 8px 18px rgba(0,0,0,.5); cursor: pointer; transition: transform .06s, box-shadow .06s; }
.key.k-drive { min-width: 116px; color: #0b0f17; background: var(--grad); text-shadow: 0 1px 0 rgba(255,255,255,.3); }
.key.press { transform: translateY(4px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.35), 0 1px 0 #05070d; }
.sub { font: 700 22px var(--sans); letter-spacing: 3px; margin-top: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.by { font: 700 13px var(--disp); letter-spacing: .1em; color: var(--muted); margin-top: 6px; }

.menu-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.menu-left { display: flex; flex-direction: column; align-items: center; }
.showroom { width: 300px; height: 300px; margin-top: 10px; }
.showroom.small { width: 200px; height: 200px; margin: 0; }
.showroom.egg { filter: drop-shadow(0 0 20px var(--pink)); }
.car-name { font: 700 18px var(--disp); text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-top: 2px; }
.car-name small { color: var(--amber); font-size: 13px; }
.menu-right { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pilot { color: var(--muted); font-size: 16px; }
.pilot b { color: var(--text); }
.linkbtn { background: none; border: none; color: var(--cyan); cursor: pointer; text-decoration: underline; margin-left: 6px; }
.money { display: inline-block; font: 700 18px var(--disp); color: var(--ok); border: 1px solid var(--line); background: var(--panel); padding: 8px 12px; border-radius: 8px; margin: 6px 0; }
.btns { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tip { color: #bcd0e8; font-size: 15px; max-width: 380px; margin-top: 6px; }
.warn { color: var(--orange); font-size: 14px; }
.egg-toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); font: 700 18px var(--disp); background: var(--grad); color: #0b0f17; padding: 12px 18px; border-radius: 10px; animation: bannerpop .5s cubic-bezier(.2,1.6,.4,1); z-index: 60; }

.btn { font: 700 17px var(--disp); text-transform: uppercase; letter-spacing: .06em; color: var(--text); background: var(--panel2); border: 2px solid #05070d; border-radius: 10px; box-shadow: 0 4px 0 #05070d; padding: 14px 20px; cursor: pointer; min-width: 260px; transition: transform .05s, box-shadow .05s, filter .1s; }
.btn:hover { filter: brightness(1.2); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #05070d; }
.btn.primary { background: var(--grad); color: #0b0f17; }
.btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; font-size: 15px; }
.btn.small { font-size: 14px; min-width: 0; padding: 9px 12px; box-shadow: 0 3px 0 #05070d; }
.btn.disabled, .btn:disabled { opacity: .45; cursor: not-allowed; }

/* okna ve stylu OS */
.os-win { background: #0e1628; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.6); text-align: left; }
.os-win.wide { width: min(980px, 100%); }
.os-win.pause { width: min(440px, 100%); }
.os-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(90deg, #17223d, #1d1638); border-bottom: 1px solid var(--line); padding: 8px 12px; font: 700 14px var(--disp); color: #cfe0ff; }
.os-bar span::before { content: '●●●'; color: #ff5f57; letter-spacing: 2px; margin-right: 10px; font-size: 11px; }
.os-x { background: #2a1a2e; border: 1px solid var(--line); color: #ffd1e0; border-radius: 6px; padding: 4px 10px; cursor: pointer; font: 700 14px var(--disp); }
.os-body { padding: 18px; }
.os-body > .btns, .os-body > .row { margin-top: 12px; }
.login .os-body, .pause .os-body { text-align: center; }
.login .field { display: block; width: min(340px, 100%); margin: 14px auto; font: 700 20px var(--disp); color: var(--text); background: #0a101e; border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px; text-align: center; outline: none; }
.login .field:focus { box-shadow: 0 0 0 2px var(--violet); }
.hint { color: var(--muted); margin-top: 10px; font-size: 15px; }
.hint.unlock { color: var(--amber); }
.howto { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.35; margin-bottom: 14px; }
.keys-help { background: #0a101e; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 16px; line-height: 2; }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.row .btn { min-width: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.card { background: #131d33; border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; transition: transform .06s, border-color .1s; text-align: left; }
.card:hover { transform: translateY(-2px); border-color: #3a4f80; }
.card.sel { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 0 18px rgba(155,123,255,.3); }
.card.locked { opacity: .7; }
.card.slim { display: flex; flex-direction: column; gap: 6px; cursor: default; }
.cspr { width: 120px; height: 60px; display: block; margin: 0 auto 6px; }
.cname { font: 700 16px/1.3 var(--disp); text-transform: uppercase; letter-spacing: .04em; }
.cname small { color: var(--amber); font-size: 12px; }
.cdesc { color: var(--muted); font-size: 14px; }
.ctag { font-size: 13px; color: var(--cyan); font-weight: 700; }
h3 { text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin: 18px 0 8px; font-size: 13px; }
.garage .g-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.g-info { flex: 1; min-width: 240px; }
.g-info h2 { font: 700 26px var(--disp); text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.g-info h2 small { font-size: 14px; color: var(--amber); }
.bars { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.bar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.bar span { width: 80px; flex: none; }
.bar .track { flex: 1; height: 8px; background: #0a101e; border-radius: 4px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--grad); }
.tunelist { display: flex; flex-direction: column; gap: 8px; }
.tunerow { display: flex; align-items: center; gap: 12px; background: #131d33; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; flex-wrap: wrap; }
.tinfo { flex: 1; min-width: 160px; }
.tinfo b { font: 700 16px var(--disp); text-transform: uppercase; }
.tinfo small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 3px; background: #0a101e; border: 1px solid var(--line); }
.dots i.on { background: var(--ok); }
.maxed { color: var(--ok); font: 700 14px var(--disp); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ach { background: #131d33; border: 1px solid var(--line); border-radius: 10px; padding: 10px; opacity: .55; display: flex; flex-direction: column; gap: 2px; }
.ach.on { opacity: 1; border-color: var(--violet); }
.ach span { font-size: 24px; }
.ach b { font-size: 16px; }
.ach small { color: var(--muted); font-size: 13px; }

/* výkaz dne */
.report { width: min(720px, 100%); }
.rp-hdr { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 10px; }
.rp-hdr .key { min-width: 54px; height: 44px; font-size: 10px; }
.rp-hdr .key.k-drive { min-width: 80px; }
.rp-meta { display: flex; flex-direction: column; font: 13px var(--mono); color: var(--muted); text-align: right; }
.rp-meta b { color: var(--text); font: 700 18px var(--disp); text-transform: uppercase; }
table.vk { width: 100%; border-collapse: collapse; font: 14px var(--mono); }
table.vk td { padding: 6px 4px; border-bottom: 1px solid #18233b; vertical-align: middle; }
table.vk td:first-child { color: var(--muted); width: 45%; }
table.vk tr.sum td { font-size: 16px; color: var(--ok); border-bottom: 0; }
.rec { font: 700 12px var(--disp); color: var(--pink); font-style: normal; margin-left: 6px; animation: blink 1s steps(2) infinite; }
.sla-chart { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 4px; }
.sla-chart i { width: 12px; background: var(--ok); border-radius: 2px 2px 0 0; }
.sla-chart i.mid { background: var(--amber); } .sla-chart i.bad { background: var(--bad); }
.sla-chart .none { color: var(--muted); font-size: 12px; }
.export { font: 11px var(--mono); color: #61789a; margin: 12px 0; }

/* 403 */
.denied { text-align: center; font-family: var(--sans); }
.d-code { font: clamp(64px, 18vw, 140px) var(--pix); color: var(--bad); text-shadow: 6px 6px 0 #000, 0 0 40px rgba(255,79,109,.6); animation: glitch 1.6s steps(2) infinite; }
@keyframes glitch { 0%, 92% { transform: none; } 94% { transform: translate(4px,-2px) skewX(-6deg); } 96% { transform: translate(-3px,2px); } }
.d-title { font: 700 clamp(26px, 6vw, 44px) var(--disp); letter-spacing: .06em; color: #fff; margin: 8px 0 14px; }
.d-sub { color: var(--orange); font-weight: 700; font-size: 17px; }
.denied p { font-size: 17px; margin: 6px 0; }
.d-fine { font: 700 22px var(--sans); margin: 14px 0 6px; }
.d-fine b { color: var(--bad); }
.quiz .os-body { text-align: center; }
.q-q { font: 700 20px var(--sans); margin-bottom: 14px; }
.q-a { text-align: left; font-family: var(--sans); font-weight: 700; font-size: 17px; text-transform: none; width: min(520px, 100%); }
.q-a.good { background: var(--ok); color: #06210d; }
.q-a.bad { background: var(--bad); }
.q-score { font: 32px var(--pix); color: var(--cyan); margin: 10px 0; }

/* ================= opravy (minihry) ================= */
#repair { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; background: rgba(5,8,16,.82); padding: calc(10px + var(--safe-t)) 10px calc(10px + var(--safe-b)); }
.rp-win { width: min(760px, 100%); height: min(640px, 100%); display: flex; flex-direction: column; background: #0d1527; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: bannerpop2 .3s ease-out; }
.rp-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(90deg, #17223d, #1d1638); border-bottom: 1px solid var(--line); }
.rp-icon { font-size: 26px; }
.rp-ht { flex: 1; min-width: 0; }
.rp-ht b { display: block; font: 700 16px var(--disp); text-transform: uppercase; letter-spacing: .05em; }
.rp-ht small { color: var(--muted); font-size: 15px; }
.rp-prio { font: 10px var(--pix); padding: 5px 8px; border-radius: 6px; background: var(--cyan); color: #0b0f17; }
.rp-prio.p1 { background: var(--bad); color: #fff; } .rp-prio.p2 { background: var(--amber); }
.rp-body { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.rp-intro { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.rp-user { display: flex; gap: 12px; align-items: center; }
.rp-avatar { font-size: 42px; }
.rp-user p { font: 700 21px var(--sans); background: #fff; color: #111; padding: 10px 14px; border-radius: 16px 16px 16px 4px; }
.rp-prob { font: 15px var(--mono); color: var(--cyan); }
.rp-diag { color: var(--amber); font-size: 15px; }
.rp-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.rp-btn { border: 2px solid #05070d; border-radius: 14px; padding: 16px 14px; text-align: left; cursor: pointer; box-shadow: 0 5px 0 #05070d; display: flex; flex-direction: column; gap: 6px; min-height: 96px; }
.rp-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #05070d; }
.rp-btn b { font: 700 19px var(--sans); }
.rp-btn small { font-size: 14px; opacity: .8; }
.rp-btn.quick { background: #1d2740; color: #fff; }
.rp-btn.main { background: var(--grad); color: #0b0f17; }
.rp-console { padding: 24px; font: 16px/1.8 var(--mono); color: #b8f7c4; }
.rp-ok { color: var(--ok); font-weight: 700; }
.rp-bad { color: var(--orange); }
.rp-gtop { display: flex; align-items: center; gap: 10px; padding: 8px 14px; flex-wrap: wrap; }
.rp-gname { font: 700 15px var(--disp); text-transform: uppercase; color: var(--cyan); }
.rp-hint { flex: 1; font: 700 16px var(--sans); color: #fff; min-width: 180px; }
.rp-clock { font: 18px var(--pix); color: var(--amber); }
.rp-bar { height: 6px; margin: 0 14px; background: #1b2436; border-radius: 3px; overflow: hidden; }
.rp-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; }
.rp-bar.low i { background: var(--bad); }
.rp-stage { position: relative; flex: 1; min-height: 0; margin: 10px 14px 14px; border-radius: 12px; background: #0a101e; border: 1px solid #18233b; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; touch-action: none; }
.rp-result { margin: auto; text-align: center; padding: 30px; }
.rp-rtitle { font: 700 clamp(22px, 5vw, 34px) var(--disp); text-transform: uppercase; color: var(--ok); text-shadow: 3px 3px 0 #000; animation: bannerpop2 .4s cubic-bezier(.2,1.6,.4,1); }
.rp-result.mid .rp-rtitle { color: var(--amber); } .rp-result.bad .rp-rtitle { color: var(--bad); }
.rp-qbar { width: 260px; height: 10px; background: #1b2436; border-radius: 5px; margin: 16px auto 8px; overflow: hidden; }
.rp-qbar i { display: block; height: 100%; background: var(--grad); }
.rp-q { color: var(--muted); font-size: 15px; }

.mg-hand { position: absolute; z-index: 30; pointer-events: none; font-size: 40px; line-height: 1; transform-origin: 40% 0; margin: -4px 0 0 -16px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.mg-arrow { position: absolute; z-index: 29; height: 4px; background: var(--pink); transform-origin: 0 50%; pointer-events: none; }
.bad { animation: badshake .35s; }
.good { animation: goodpop .4s; }
.shake { animation: badshake .35s; }
@keyframes badshake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@keyframes goodpop { 50% { filter: brightness(1.6); transform: scale(1.04); } }

/* kabeláž */
.kb-wrap { position: relative; width: 100%; height: 100%; display: flex; justify-content: space-between; padding: 10px 14px; gap: 30px; }
.kb-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.kb-line { fill: none; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.kb-line.tmp { stroke-dasharray: 2 10; }
.kb-plugs, .kb-switch { display: flex; flex-direction: column; justify-content: center; gap: 8px; z-index: 1; }
.kb-cap { font: 700 12px var(--disp); text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 2px; }
.kb-switch { background: #151d2e; border: 2px solid #2a3550; border-radius: 10px; padding: 8px; }
.kb-plug { display: flex; align-items: center; gap: 10px; background: #1a2540; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 46px; cursor: grab; touch-action: none; }
.kb-plug b, .kb-port b { font: 700 16px var(--sans); }
.kb-plug.drag { border-color: var(--cyan); }
.kb-plug.done { opacity: .5; cursor: default; }
.kb-jack { width: 26px; height: 18px; border-radius: 4px; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0,0,0,.3); }
.kb-port { display: flex; align-items: center; gap: 8px; background: #0e1424; border: 1px solid #2a3550; border-radius: 8px; padding: 6px 10px; min-height: 46px; }
.kb-port small { color: var(--muted); margin-left: auto; font-size: 11px; }
.kb-hole { width: 26px; height: 20px; border-radius: 3px; background: #05070d; border: 3px solid var(--c); }
.kb-led { width: 8px; height: 8px; border-radius: 50%; background: #3a2020; }
.kb-port.done .kb-led { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink .5s steps(2) 3; }
.kb-port.over { border-color: var(--cyan); background: #12223a; }
.kb-port.beep, .kb-port.hintp { box-shadow: 0 0 0 2px var(--amber), 0 0 12px var(--amber); }

/* výměna dílu */
.dl-box { position: relative; width: min(420px, 94%); height: min(250px, 46%); flex: none; }
.dl-board { position: absolute; inset: 0; background: linear-gradient(135deg, #0f4d3a, #0b3a2c); border: 3px solid #0a2a20; border-radius: 10px; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 12px; }
.dl-server .dl-board { background: #1a1f2b; grid-template-columns: 1fr; grid-template-rows: repeat(6, 1fr); gap: 4px; }
.dl-cpu { background: #8a8f9a; border-radius: 6px; display: grid; place-items: center; font: 8px var(--pix); color: #222; box-shadow: inset 0 0 0 6px #6c717a; }
.dl-ramrow { display: flex; gap: 8px; }
.dl-slot { position: relative; background: rgba(0,0,0,.35); border: 2px dashed rgba(255,255,255,.18); border-radius: 6px; display: grid; place-items: center; min-height: 44px; flex: 1; }
.dl-slot > span { font: 700 11px var(--disp); color: rgba(255,255,255,.5); }
.dl-slot.over, .dl-slot.glow { border-color: var(--cyan); background: rgba(79,209,234,.18); }
.dl-slot.diag { box-shadow: 0 0 0 2px var(--amber); }
.dl-slot.rack { flex-direction: row; display: flex; justify-content: space-between; padding: 0 10px; background: #252c3b; border-style: solid; border-color: #333c50; }
.dl-slot.rack i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.dl-slot.rack.empty { background: #0b0f17; border-style: dashed; border-color: var(--amber); }
.dl-part { display: grid; place-items: center; border-radius: 5px; font-family: var(--sans); color: #fff; cursor: grab; touch-action: none; z-index: 5; transition: transform .15s; }
.dl-part.drag { transition: none; z-index: 20; filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); }
.dl-part b { font-weight: 700; font-size: 14px; }
.dl-part em { font-style: normal; font-size: 11px; }
.dl-part.p-ram { width: 28px; height: 90px; background: linear-gradient(#1b5e20, #2e7d32); border: 2px solid #0d3b10; writing-mode: vertical-rl; }
.dl-part.p-ssd { width: 92px; height: 30px; background: #222a3a; border: 2px solid #4fd1ea; }
.dl-part.p-fan { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #444 20%, #1c1c1c 21%, #2c2c2c); border: 3px solid #666; }
.dl-part.p-server { width: 220px; height: 30px; background: #39445c; border: 2px solid #9aa6bf; }
.dl-part.old { outline: 2px solid var(--bad); }
.dl-part.old em { color: #ffb3c0; }
.dl-part.new em { color: var(--ok); }
.dl-part.ok { cursor: default; opacity: .9; }
.dl-part.trashed { transform: scale(.2) !important; opacity: 0; }
.dl-part.nope { outline: 2px solid var(--bad); }
.dl-part.placed { cursor: default; }
.dl-cover { position: absolute; inset: -4px; background: linear-gradient(135deg, #3a4560, #252d42); border: 3px solid #12182a; border-radius: 12px; display: grid; place-items: center; transition: transform .4s cubic-bezier(.5,0,.3,1), opacity .4s; z-index: 10; }
.dl-cover.open { transform: translateX(110%) rotate(8deg); opacity: 0; pointer-events: none; }
.dl-logo { font: 54px var(--pix); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .4; }
.dl-screw { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: radial-gradient(circle at 40% 35%, #e9edf3, #8b93a3); box-shadow: 0 3px 0 #000; cursor: pointer; display: grid; place-items: center; touch-action: none; }
.dl-screw i { display: block; width: 26px; height: 5px; background: #333; border-radius: 2px; transform: rotate(var(--r, 0deg)); transition: transform .12s; }
.dl-screw i::after { content: ''; display: block; width: 5px; height: 26px; margin: -10px auto 0; background: #333; border-radius: 2px; }
.dl-screw.s0 { left: 10px; top: 10px; } .dl-screw.s1 { right: 10px; top: 10px; } .dl-screw.s2 { left: 10px; bottom: 10px; } .dl-screw.s3 { right: 10px; bottom: 10px; }
.dl-screw.out { opacity: .35; transform: scale(.8); }
.dl-status { font: 700 17px var(--sans); color: var(--cyan); }
.dl-tray { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #121a2c; border: 1px dashed var(--line); border-radius: 12px; min-height: 100px; transition: opacity .2s; }
.dl-tray.locked { opacity: .45; pointer-events: none; }
.dl-cap { font: 700 11px var(--disp); text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.dl-bin { width: 64px; height: 64px; border-radius: 12px; background: #1b2436; border: 2px dashed #3a4560; display: grid; place-items: center; font-size: 30px; }
.dl-bin.over { border-color: var(--bad); background: #2a1520; }

/* viry */
.vr-desk { position: relative; width: 100%; height: 100%; background: radial-gradient(circle at 50% 45%, #1d2a50, #0b1020); overflow: hidden; }
.vr-desk.shake { animation: badshake .35s; }
.vr-wall { position: absolute; inset: 0; display: grid; place-items: center; }
.vr-wall span { font: 90px var(--pix); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .15; }
.vr-task { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: rgba(5,8,16,.9); display: flex; align-items: center; gap: 12px; padding: 0 10px; font-size: 14px; }
.vr-task b { color: var(--cyan); }
.vr-pop { position: absolute; border-radius: 8px; overflow: hidden; background: #f2f2f2; color: #111; box-shadow: 0 8px 20px rgba(0,0,0,.5); cursor: pointer; animation: popin .2s cubic-bezier(.2,1.8,.4,1); touch-action: none; font-family: var(--sans); }
.vr-pop .vr-bar { display: flex; justify-content: space-between; padding: 6px 8px; font: 700 13px var(--sans); color: #fff; background: #d32f2f; }
.vr-pop .vr-bar i { font-style: normal; background: rgba(0,0,0,.25); padding: 0 6px; border-radius: 3px; }
.vr-pop p { padding: 8px; font-weight: 700; font-size: 15px; }
.vr-pop.fake { background: #fff8d6; border: 2px solid #f4c542; }
.vr-pop.fake .vr-bar { background: linear-gradient(90deg, #f4c542, #ff9f43); color: #3a2600; }
.vr-cta { display: block; margin: 0 8px 8px; text-align: center; background: #2e7d32; color: #fff; border-radius: 6px; padding: 4px; font-weight: 700; animation: blink .5s steps(2) infinite; }
.vr-pop.gone { transform: scale(.2); opacity: 0; transition: all .2s; }
.vr-pop.zap { background: var(--cyan); }
@keyframes popin { from { transform: scale(.3); opacity: 0; } }

/* Wi-Fi */
.wf-wrap { position: relative; flex: none; border-radius: 8px; overflow: visible; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.wf-plan { display: block; border-radius: 8px; }
.wf-status { font: 700 17px var(--sans); color: var(--muted); }
.wf-status b { color: var(--text); }
.wf-status.ok { color: var(--ok); }
.wf-tray { display: flex; gap: 12px; align-items: center; }
.wf-ap { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(79,209,234,.5), 0 4px 10px rgba(0,0,0,.5); cursor: grab; touch-action: none; font-family: var(--sans); line-height: 1; z-index: 5; }
.wf-ap span { font-size: 18px; } .wf-ap b { font-size: 11px; }
.wf-ap.on { position: absolute; }
.wf-ap.drag { box-shadow: 0 0 0 6px var(--cyan), 0 8px 16px rgba(0,0,0,.6); }
.wf-done.off { opacity: .35; }
.wf-done { font: 700 17px var(--disp); text-transform: uppercase; background: var(--grad); color: #0b0f17; border: 0; border-radius: 10px; padding: 14px 18px; cursor: pointer; box-shadow: 0 4px 0 #05070d; }

/* tiskárna */
.pr-box { position: relative; width: min(340px, 90%); height: 220px; flex: none; }
.pr-printer { position: absolute; inset: 0; }
.pr-body { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(#e8eaee, #b9bec8); border-radius: 12px; border: 3px solid #7d8492; }
.pr-screen { position: absolute; left: 14px; bottom: 16px; width: 96px; height: 26px; background: #2a1012; color: #ff6b6b; font: 700 13px var(--disp); display: grid; place-items: center; border-radius: 4px; }
.pr-printer.ready .pr-screen { background: #0f2a14; color: var(--ok); }
.pr-led { position: absolute; right: 18px; bottom: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); animation: blink .5s steps(2) infinite; }
.pr-printer.ready .pr-led { background: var(--ok); animation: none; }
.pr-inside { position: absolute; left: 20px; right: 20px; top: 40px; height: 90px; background: #2b2f38; border-radius: 8px; overflow: visible; }
.pr-roll { position: absolute; left: 10%; right: 10%; top: 62px; height: 12px; background: #111; border-radius: 6px; }
.pr-roll.r2 { top: 76px; }
.pr-toner-slot { position: absolute; right: 10px; top: 8px; width: 74px; height: 40px; border: 2px dashed #555d6e; border-radius: 6px; display: grid; place-items: center; }
.pr-lid { position: absolute; left: 10px; right: 10px; top: 30px; height: 104px; background: linear-gradient(#f2f3f5, #c9ced7); border: 3px solid #7d8492; border-radius: 12px 12px 6px 6px; display: grid; place-items: center; font: 700 15px var(--disp); color: #555; cursor: pointer; transform-origin: top; transition: transform .35s cubic-bezier(.4,1.6,.5,1); z-index: 8; touch-action: none; }
.pr-printer.opened .pr-lid { transform: perspective(400px) rotateX(70deg) translateY(-30px); }
.pr-paper { position: absolute; top: 18px; width: 70px; height: 54px; background: #fff; border-radius: 3px; transform: rotate(-4deg); box-shadow: 0 3px 6px rgba(0,0,0,.4); cursor: grab; touch-action: none; z-index: 4; display: flex; flex-direction: column; gap: 5px; padding: 8px; clip-path: polygon(0 8%, 20% 0, 45% 10%, 70% 2%, 100% 12%, 96% 50%, 100% 92%, 60% 100%, 30% 90%, 4% 100%, 0 60%); }
.pr-paper i { display: block; height: 3px; background: #c9ced7; }
.pr-paper.scrap { width: 40px; height: 30px; }
.pr-paper.out { opacity: 0; transform: translateY(-160px) rotate(20deg) !important; transition: all .25s; }
.pr-toner { width: 70px; height: 34px; border-radius: 6px; display: grid; place-items: center; cursor: grab; touch-action: none; font-family: var(--sans); z-index: 9; line-height: 1; }
.pr-toner b { font-size: 12px; } .pr-toner em { font-style: normal; font-size: 10px; }
.pr-toner.old { background: #444a56; color: #ccc; }
.pr-toner.new { background: #111; color: var(--cyan); border: 2px solid var(--cyan); }
.pr-toner.shaken { border-color: var(--ok); color: var(--ok); }
.pr-out { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); }
.pr-page { width: 120px; padding: 8px; background: #fff; color: #111; border-radius: 3px; font-family: var(--sans); animation: printout 1s ease-out; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.pr-page b { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 20px; }
@keyframes printout { from { transform: translateY(-60px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.pr-status { font: 700 17px var(--sans); color: var(--cyan); text-align: center; }
.pr-tray { display: flex; gap: 14px; align-items: center; min-height: 70px; }
.pr-bin { width: 60px; height: 60px; border-radius: 12px; background: #1b2436; border: 2px dashed #3a4560; display: grid; place-items: center; font-size: 28px; }

/* heslo */
.pw-box { width: min(560px, 96%); display: flex; flex-direction: column; gap: 10px; }
.pw-old { font-size: 16px; color: var(--muted); }
.pw-old s { color: var(--bad); }
.pw-field { min-height: 52px; background: #05070d; border: 2px solid var(--line); border-radius: 10px; padding: 10px; font: 15px var(--mono); display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.pw-field b { color: var(--cyan); }
.pw-field b.weak { color: var(--bad); }
.pw-field i { color: var(--muted); font-style: normal; }
.pw-ph { color: #4a5b78; }
.pw-meter { position: relative; height: 26px; background: #1b2436; border-radius: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 4%; background: var(--bad); transition: width .25s, background .25s; }
.pw-meter.l1 i { background: var(--orange); } .pw-meter.l2 i { background: var(--ok); } .pw-meter.l3 i { background: var(--grad); }
.pw-meter span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px var(--sans); }
.pw-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pw-tile { font: 700 17px var(--sans); background: #1a2540; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; min-height: 44px; box-shadow: 0 3px 0 #05070d; }
.pw-tile.used { opacity: .25; }
.pw-row { display: flex; gap: 10px; justify-content: center; }
.pw-undo, .pw-save { font: 700 15px var(--disp); text-transform: uppercase; border-radius: 10px; padding: 12px 14px; border: 2px solid #05070d; cursor: pointer; box-shadow: 0 3px 0 #05070d; }
.pw-undo { background: #2b3346; }
.pw-save { background: #2b3346; opacity: .6; }
.pw-save.ready { background: var(--grad); color: #0b0f17; opacity: 1; }
.pw-tip { font-size: 13px; color: var(--muted); text-align: center; }

/* ================= velká mapa ================= */
#map { position: fixed; inset: 0; z-index: 38; display: grid; place-items: center; background: rgba(4,7,14,.9); padding: calc(10px + var(--safe-t)) 10px calc(10px + var(--safe-b)); }
.mp-win { width: min(1180px, 100%); height: 100%; display: flex; flex-direction: column; background: #0b1222; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mp-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: linear-gradient(90deg, #17223d, #1d1638); font: 700 15px var(--disp); }
.mp-x { background: #2a1a2e; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font: 700 14px var(--disp); cursor: pointer; }
.mp-body { flex: 1; display: flex; gap: 12px; padding: 10px; min-height: 0; align-items: flex-start; justify-content: center; }
.mp-canvas { border-radius: 10px; flex: none; }
.mp-side { width: 230px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 100%; }
.mp-side h4 { font: 700 13px var(--disp); text-transform: uppercase; color: var(--cyan); margin: 8px 0 2px; }
.mp-d b { float: right; }
.mp-bb { color: var(--pink); margin-top: 6px; }


/* ================= rychlé rozhovory / hovor za jízdy ================= */
.h-talk { position: absolute; left: calc(12px + var(--safe-l)); bottom: calc(52px + var(--safe-b)); width: min(440px, 46vw); pointer-events: auto; background: rgba(9,14,26,.95); border: 2px solid var(--ring, var(--cyan)); border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 18px color-mix(in srgb, var(--ring, #4fd1ea) 35%, transparent); font-family: var(--sans); z-index: 3; }
.h-talk.in { animation: talkin .25s cubic-bezier(.2,1.4,.4,1); }
@keyframes talkin { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.h-talk.call { border-style: dashed; animation: talkin .25s cubic-bezier(.2,1.4,.4,1), ringshake .5s 2; }
@keyframes ringshake { 25% { transform: rotate(-1deg); } 75% { transform: rotate(1deg); } }
.tk-top { display: flex; gap: 10px; align-items: flex-start; }
.tk-face { width: 52px; height: 52px; flex: none; border-radius: 10px; image-rendering: pixelated; border: 2px solid var(--ring, var(--cyan)); background: #000; }
.tk-body { flex: 1; min-width: 0; }
.tk-name { display: block; font: 700 14px var(--disp); text-transform: uppercase; letter-spacing: .05em; }
.tk-line { font: 600 19px/1.25 var(--sans); color: #fff; min-height: 1.3em; }
.tk-choice { margin-top: 8px; }
.tk-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-btns button { flex: 1 1 140px; min-height: 44px; border: 2px solid #05070d; border-radius: 10px; padding: 8px 10px; background: #1d2740; color: #fff; font: 700 15px/1.2 var(--sans); text-align: left; cursor: pointer; box-shadow: 0 3px 0 #05070d; }
.tk-btns button.def { background: #24345a; }
.tk-btns button.hang { flex: 0 1 auto; background: #3a1820; color: #ffd1d8; }
.tk-btns button:active { transform: translateY(2px); box-shadow: 0 1px 0 #05070d; }
.tk-btns kbd { font-size: 11px; margin-right: 4px; }
.tk-timer { display: block; height: 6px; margin-top: 6px; background: #1b2436; border-radius: 3px; overflow: hidden; }
.tk-timer em { display: block; height: 100%; background: var(--grad); transform-origin: left; }
.tk-timer.low em { background: var(--bad); }

/* napětí: pulzující okraj při hořícím SLA + velká čísla odpočtu */
.h-tension { position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 4px rgba(255,79,109,.9), inset 0 0 80px rgba(255,79,109,.45); }
.h-tension.on { animation: tense .8s ease-in-out infinite; }
@keyframes tense { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.h-count { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font: clamp(48px, 12vw, 110px) var(--pix); color: #fff; text-shadow: 6px 6px 0 #000, 0 0 30px var(--bad); pointer-events: none; }
.h-count.pop { animation: countpop .6s ease-out forwards; }
@keyframes countpop { 0% { transform: translateX(-50%) scale(1.6); opacity: 0; } 20% { transform: translateX(-50%) scale(1); opacity: 1; } 100% { transform: translateX(-50%) scale(.8); opacity: 0; } }
.h-ticket.boss { border-top-color: var(--bad); box-shadow: 0 0 20px rgba(255,79,109,.35); }
.h-inv i.have { border-color: var(--ok); color: var(--ok); }
.rt-grumpy { color: var(--orange); font-weight: 700; margin-top: 6px; }
.rp-story { margin: 12px 0; background: #121a2c; border-left: 3px solid var(--pink); border-radius: 8px; padding: 8px 12px; }
.rp-story b { font: 700 14px var(--disp); text-transform: uppercase; color: var(--pink); }
.rp-story p { font-size: 16px; }

/* restart routeru */
.rt-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rt-dev { position: relative; width: min(340px, 86vw); height: 130px; background: linear-gradient(#2b3550, #1a2236); border: 3px solid #0a0e18; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.rt-dev > b { font: 700 15px var(--disp); color: var(--muted); }
.rt-leds { display: flex; gap: 14px; }
.rt-leds i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #2a3040; font-style: normal; }
.rt-leds i::after { content: attr(data-l); position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font: 700 11px var(--sans); color: var(--muted); white-space: nowrap; }
.rt-leds i.err { background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: blink .5s steps(2) infinite; }
.rt-leds i.on { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.rt-reset { position: absolute; right: 16px; top: 14px; width: 74px; height: 44px; border-radius: 10px; border: 2px solid #05070d; background: #3a1820; color: #ffd1d8; font: 700 14px var(--disp); box-shadow: 0 4px 0 #05070d; touch-action: none; cursor: pointer; }
.rt-reset.on { transform: translateY(3px); box-shadow: 0 1px 0 #05070d; background: var(--bad); }
.rt-sock { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); width: 60px; height: 26px; border-radius: 6px; background: #05070d; display: grid; place-items: center; }
.rt-sock span { font: 700 10px var(--sans); color: #555; }
.rt-plug { position: absolute; left: 10px; top: 4px; width: 40px; height: 50px; border-radius: 8px; background: #e8e8e8; border: 2px solid #777; cursor: grab; touch-action: none; transition: transform .2s; z-index: 4; }
.rt-plug.drag { transition: none; }
.rt-plug i { position: absolute; left: 50%; top: 100%; width: 8px; height: 60px; background: #333; transform: translateX(-50%); }
.rt-hold { width: min(340px, 86vw); height: 10px; background: #1b2436; border-radius: 5px; overflow: hidden; margin-top: 70px; }
.rt-hold i { display: block; height: 100%; width: 0; background: var(--grad); }
.rt-status { font: 700 18px var(--sans); color: var(--cyan); text-align: center; }

/* linka MegaIT */
.hl-box { width: min(520px, 96%); display: flex; flex-direction: column; gap: 10px; }
.hl-head { font: 700 15px var(--disp); color: #5ab0ff; text-transform: uppercase; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.hl-head span { color: var(--pink); animation: blink 1s steps(2) infinite; text-transform: none; }
.hl-caller { background: #fff; color: #111; border-radius: 14px 14px 14px 4px; padding: 10px 14px; }
.hl-caller b { font-size: 14px; color: #1f5fd6; }
.hl-caller p { font: 700 20px var(--sans); }
.hl-manual { display: flex; flex-direction: column; gap: 8px; }
.hl-manual small { color: var(--muted); }
.hl-a { text-align: left; min-height: 48px; border: 2px solid #05070d; border-radius: 10px; background: #10264f; color: #fff; font: 700 17px var(--sans); padding: 10px 12px; cursor: pointer; box-shadow: 0 3px 0 #05070d; }
.hl-sad { font: 700 18px var(--sans); color: var(--orange); }
.hl-end { text-align: center; }
.hl-end p { font: 700 22px var(--sans); }
.hl-end b { font: 700 30px var(--disp); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 760px), (max-height: 520px) {
  .h-talk { left: 8px; right: 8px; width: auto; bottom: calc(232px + var(--safe-b)); padding: 8px 10px; }
  .tk-line { font-size: 17px; }
  .tk-face { width: 44px; height: 44px; }
  .tk-btns button { flex: 1 1 100%; min-height: 50px; font-size: 16px; }
  .tk-btns button.hang { flex: 1 1 100%; min-height: 40px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .h-talk { left: 150px; right: 220px; bottom: 8px; }
  .tk-btns button { flex: 1 1 45%; min-height: 40px; }
}


/* ================= skutečné projekty CONEMA ================= */
.tc-ref { display: inline-block; margin-left: 8px; font: 700 12px var(--disp); font-style: normal; color: #ffd23f; text-transform: uppercase; letter-spacing: .05em; }
.h-charge small { max-width: 300px; text-align: left; font: 600 12px var(--sans); color: #8fe8c0; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ref { background: #121a2c; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; padding: 10px 12px; opacity: .55; display: flex; flex-direction: column; gap: 4px; }
.ref.on { opacity: 1; box-shadow: 0 0 18px color-mix(in srgb, var(--c) 25%, transparent); }
.ref-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ref-top b { font: 700 17px var(--sans); }
.ref-top em { font: 700 11px var(--disp); font-style: normal; text-transform: uppercase; color: #0b0f17; background: var(--amber); border-radius: 4px; padding: 1px 6px; }
.ref-top em.own { background: var(--cyan); }
.ref-top em.live { background: var(--ok); }
.ref small { color: var(--c); font-weight: 700; }
.ref ul { margin: 2px 0 0 16px; font-size: 14px; color: #d6e4f5; }
.ref-link { font: 12px var(--mono); color: var(--muted); }
.ref-lock { color: var(--muted); font-size: 14px; }

/* Iron Gym – vstup */
.vs-box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(420px, 96%); }
.vs-box.bad { animation: badshake .35s; }
.vs-door { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; background: #16171c; border: 2px solid #2a2b31; border-radius: 10px; padding: 8px 12px; }
.vs-door b { font: 700 22px var(--disp); color: #fff; }
.vs-247 { font: 700 20px var(--disp); color: #ffd2b8; text-shadow: 0 0 10px #ff5a1f; }
.vs-led { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: #444; }
.vs-led.open { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.vs-led.shut { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.vs-member { width: 100%; min-height: 150px; background: #121a2c; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
.vs-member.in { animation: talkin .25s ease-out; }
.vs-av { font-size: 42px; grid-row: span 2; }
.vs-member b { font: 700 20px var(--sans); }
.vs-phone { display: flex; align-items: center; gap: 10px; background: #05070d; border-radius: 10px; padding: 8px; }
.vs-qr { width: 46px; height: 46px; flex: none; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 12px 12px; border: 3px solid #fff; border-radius: 4px; }
.vs-phone span { font: 700 16px var(--sans); }
.vs-phone .ok { color: var(--ok); } .vs-phone .bad { color: var(--bad); }
.vs-say { grid-column: span 2; color: var(--amber); font-weight: 700; }
.vs-btns { display: flex; gap: 12px; width: 100%; }
.vs-btns button { flex: 1; min-height: 58px; border: 2px solid #05070d; border-radius: 12px; font: 700 20px var(--disp); box-shadow: 0 4px 0 #05070d; cursor: pointer; }
.vs-no { background: #3a1820; color: #ffd1d8; }
.vs-yes { background: var(--ok); color: #06210d; }
.vs-count { color: var(--muted); font-size: 14px; }

/* S.araH. – platby */
.pl-pay { cursor: grab; transition: transform .15s; }
.pl-pay.drag { transition: none; z-index: 10; position: relative; }
.pl-chip { font-size: 20px; }
.pl-row small { margin-left: auto; color: var(--muted); }
.pl-st { font-style: normal; font-size: 12px; color: var(--orange); margin-left: 6px; }
.pl-row.done .pl-st { color: var(--ok); }
.pl-row.done .kb-led { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pl-pay.done { opacity: .35; }

/* Petiris – konfigurátor */
.kf-box { width: min(560px, 96%); display: flex; flex-direction: column; gap: 10px; }
.kf-order { background: #fff3f6; color: #3a1220; border-radius: 12px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 16px; }
.kf-order small { width: 100%; color: #b84d6a; font-weight: 700; }
.kf-rows { display: flex; flex-direction: column; gap: 6px; }
.kf-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kf-row > b { width: 64px; font: 700 15px var(--disp); text-transform: uppercase; color: var(--muted); }
.kf-opt { flex: 1 1 90px; min-height: 46px; border: 2px solid #05070d; border-radius: 10px; background: #1a2540; color: #fff; font: 700 15px var(--sans); cursor: pointer; display: flex; align-items: center; gap: 6px; justify-content: center; box-shadow: 0 3px 0 #05070d; }
.kf-opt.sel { background: #e86a8a; color: #fff; }
.kf-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kf-bag { position: relative; width: 70px; height: 54px; border-radius: 8px 8px 14px 14px; background: #e86a8a; border: 3px solid #7a2a40; flex: none; }
.kf-bag::before { content: ''; position: absolute; left: 14px; right: 14px; top: -18px; height: 18px; border: 4px solid #7a2a40; border-bottom: 0; border-radius: 16px 16px 0 0; }
.kf-bag.p-flower { background-image: radial-gradient(circle at 30% 40%, #fff 4px, transparent 5px), radial-gradient(circle at 70% 65%, #ffd1dc 4px, transparent 5px); }
.kf-bag.p-dots { background-image: radial-gradient(circle, #222 3px, transparent 4px); background-size: 14px 14px; }
.kf-bag.p-stripe { background-image: repeating-linear-gradient(90deg, #e86a8a 0 8px, #fff 8px 12px); }
.kf-bag.s-pack { border-radius: 14px; height: 62px; }
.kf-bag.s-clutch::before { display: none; }
.kf-price { flex: 1; min-width: 120px; }
.kf-price small { color: var(--muted); }
.kf-bar { height: 10px; background: #1b2436; border-radius: 5px; overflow: hidden; }
.kf-bar em { display: block; height: 100%; background: var(--grad); transition: width .35s; }
.kf-send { min-height: 50px; border: 2px solid #05070d; border-radius: 12px; background: var(--ok); color: #06210d; font: 700 16px var(--disp); padding: 0 14px; cursor: pointer; box-shadow: 0 4px 0 #05070d; }
.kf-send.off { opacity: .4; }

/* Fuková – galerie */
.gl-box { width: min(520px, 96%); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gl-order { font-size: 17px; }
.gl-cnt { color: var(--cyan); font-weight: 700; margin-left: 6px; }
.gl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; transition: transform .6s, opacity .6s; }
.gl-grid.sent { transform: scale(.6) translateY(-30px); opacity: .2; }
.gl-ph { aspect-ratio: 4 / 3; border: 3px solid #fff; border-radius: 6px; font-size: 30px; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.gl-ph.sel { outline: 4px solid var(--violet); transform: scale(.94); }
.gl-send { min-height: 52px; width: 100%; border: 2px solid #05070d; border-radius: 12px; background: var(--grad); color: #0b0f17; font: 700 17px var(--disp); cursor: pointer; box-shadow: 0 4px 0 #05070d; }
.gl-send.off { opacity: .4; }

/* SEČTI */
.sc-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sc-box.flash { animation: scflash .4s ease-out; }
@keyframes scflash { 0% { filter: brightness(3); } 100% { filter: none; } }
.sc-cv { border-radius: 10px; background: #9fc4d8; touch-action: none; cursor: pointer; }
.sc-panel { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sc-plan { font-size: 16px; color: #d6e4f5; }
.sc-shot { min-height: 56px; padding: 0 22px; border: 2px solid #05070d; border-radius: 14px; background: #ff7a1a; color: #1a0a00; font: 700 22px var(--disp); cursor: pointer; box-shadow: 0 4px 0 #05070d; }
.sc-shot small { font-size: 12px; background: #1a0a00; color: #ffb27a; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.sc-res { text-align: center; font-size: 17px; }
.sc-res b { color: #ff7a1a; font-size: 20px; }
.sc-res span { display: block; color: var(--muted); font-size: 14px; }

/* VSYP */
.vy-box { position: relative; width: min(600px, 98%); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 12px; align-items: center; }
.vy-pile { position: relative; height: 170px; }
.vy-doc { position: absolute; width: 120px; height: 150px; background: #fff; color: #222; border-radius: 4px; padding: 8px; box-shadow: 0 4px 10px rgba(0,0,0,.4); transform: rotate(var(--r)); cursor: grab; touch-action: none; display: flex; flex-direction: column; gap: 5px; transition: transform .2s; }
.vy-doc.drag { transition: none; z-index: 10; }
.vy-doc.in { transform: scale(.2) rotate(40deg) !important; opacity: 0; }
.vy-doc b { font: 700 13px var(--disp); }
.vy-doc span { font-size: 11px; color: #555; }
.vy-doc i { display: block; height: 4px; background: #ddd; }
.vy-funnel { width: 150px; height: 150px; border-radius: 16px; background: #0d1a05; border: 3px dashed #C8F23C; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #C8F23C; }
.vy-funnel b { font: 700 34px var(--disp); }
.vy-funnel.over { background: #1d3a0a; }
.vy-log { grid-column: span 2; background: #0a101e; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; min-height: 90px; }
.vy-log small { color: #C8F23C; font-weight: 700; }
.vy-log ul { list-style: none; max-height: 64px; overflow: hidden; }
.vy-log li { color: #d6e4f5; }
.vy-log li b { color: #fff; }
.vy-cnt { color: var(--muted); }
.vy-export { margin-top: 4px; font: 700 16px var(--disp); color: #C8F23C; }
.vy-all { position: absolute; left: 0; top: 176px; min-height: 40px; border: 2px solid #05070d; border-radius: 10px; background: #1d3a0a; color: #C8F23C; font: 700 14px var(--disp); padding: 0 12px; cursor: pointer; z-index: 11; }

/* Licenční server */
.lc-pre { font: 15px/1.7 var(--mono); color: #f4c542; white-space: pre-wrap; }

/* Wi-Fi QR pro hosty */
.wf-qr { position: absolute; inset: 0; margin: auto; width: 200px; height: 220px; background: #fff; color: #111; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: bannerpop2 .4s ease-out; z-index: 40; }
.wf-qrc { display: grid; grid-template-columns: repeat(7, 14px); gap: 1px; }
.wf-qrc i { width: 14px; height: 14px; background: #eee; }
.wf-qrc i.on { background: #111; }
.wf-qr small { color: #666; }
@media (max-width: 760px) {
  .vy-box { grid-template-columns: 1fr; }
  .vy-funnel { width: 100%; height: 90px; }
  .vy-log { grid-column: auto; }
  .gl-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================= mobil / dotyk ================= */
@media (max-width: 900px) {
  .h-tc { max-width: calc(100vw - 260px); }
}
@media (max-width: 760px), (max-height: 520px) {
  .h-tl { width: 112px; gap: 4px; }
  .h-minibox { width: 112px; height: 112px; border-radius: 10px; }
  .h-dist { padding: 3px 6px; }
  .h-dist b { font-size: 12px; }
  .h-dist span { display: none; }
  .h-money { font-size: 13px; }
  .h-b { width: 34px; height: 34px; font-size: 15px; }
  .h-clock, .h-rate, .h-batt { font-size: 11px; padding: 3px 6px; }
  .h-batt i { width: 40px; height: 12px; }
  .h-inc { font-size: 10px; max-width: 170px; }
  .h-tc { top: calc(150px + var(--safe-t)); left: 12px; right: 12px; transform: none; max-width: none; min-width: 0; }
  .h-ticket { font-size: 11px; padding: 4px 8px; }
  .h-ticket .tcl { font-size: 13px; }
  .h-goal { font-size: 11px; }
  .h-race { width: 220px; }
  .h-toasts { top: auto; bottom: calc(260px + var(--safe-b)); right: 10px; left: 10px; align-items: center; max-width: none; }
  .h-toast { font-size: 13px; padding: 5px 9px; }
  .h-card { left: 10px; right: 10px; width: auto; top: calc(128px + var(--safe-t)); bottom: auto; max-width: 420px; margin: 0 auto; max-height: calc(100vh - 380px); overflow-y: auto; }
  .tc-desc p { font-size: 15px; min-height: 0; }
  .tc-client b { font-size: 17px; }
  .h-br { bottom: auto; top: calc(150px + var(--safe-t)); display: none; }
  .h-radio { bottom: auto; top: calc(232px + var(--safe-t)); width: calc(100vw - 24px); font-size: 10px; opacity: .85; }
  .h-banner { top: 40%; }
  .h-prompt { bottom: calc(250px + var(--safe-b)); }
  .h-hint { bottom: auto; top: calc(260px + var(--safe-t)); font-size: 14px; }
  .h-charge { top: calc(176px + var(--safe-t)); bottom: auto; }
  .menu-grid { grid-template-columns: 1fr; gap: 10px; }
  .showroom { width: 220px; height: 220px; }
  .key { min-width: 58px; height: 50px; font-size: 11px; padding: 0 8px; }
  .key.k-drive { min-width: 86px; }
  .logo-keys { gap: 4px; }
  .logo-keys i { font-size: 12px; }
  .sub { font-size: 18px; }
  .btn { min-width: 220px; padding: 12px 16px; font-size: 11px; }
  .rp-choices { grid-template-columns: 1fr; }
  .rp-user p { font-size: 18px; }
  .kb-wrap { gap: 16px; padding: 6px; }
  .kb-plug, .kb-port { padding: 6px 8px; min-height: 42px; gap: 6px; }
  .kb-plug b, .kb-port b { font-size: 14px; }
  .kb-port small { display: none; }
  .mp-body { flex-direction: column; align-items: center; }
  .mp-side { width: 100%; max-height: 30%; }
}

/* ===== telefon na výšku: přehledné rozvržení (dole páčka a tlačítka) ===== */
@media (max-width: 760px) and (orientation: portrait) {
  .h-tl { width: 96px; }
  .h-minibox { width: 96px; height: 96px; }
  .h-tc { top: calc(118px + var(--safe-t)); left: 10px; right: 10px; gap: 4px; }
  .h-radio { display: none; }
  .h-hint { top: auto; bottom: calc(232px + var(--safe-b)); left: 8px; right: 8px; width: auto; transform: none; font-size: 15px; padding: 10px 12px; }
  .h-talk { bottom: calc(228px + var(--safe-b)); }
  .h-card { top: calc(112px + var(--safe-t)); max-height: none; }
  .h-card .tc-chat, .h-card .tc-diag, .h-card .tc-desc small { display: none; }
  .h-card .tc-row1 { padding: 8px 10px 2px; }
  .h-card .tc-client { padding: 0 10px; }
  .h-card .tc-client b { font-size: 16px; }
  .h-card .tc-desc { margin: 4px 10px; padding: 4px 8px; }
  .h-card .tc-tags { padding: 0 10px; font-size: 13px; }
  .h-card .tc-accept { padding: 9px; margin: 8px 10px 10px; width: calc(100% - 20px); font-size: 16px; }
  .h-toasts { top: calc(176px + var(--safe-t)); bottom: auto; left: 10px; right: 10px; align-items: center; }
  .h-banner { top: 34%; }
  .h-count { top: 26%; }
  .h-charge { top: calc(176px + var(--safe-t)); bottom: auto; }
}

/* telefon na šířku: HUD nahoru a do stran, ať páčka a tlačítka nic nezakrývají */
@media (max-height: 520px) and (orientation: landscape) {
  .h-toast.achv { padding: 5px 9px; gap: 6px; }
  .h-toast.achv .ai { font-size: 18px; }
  .h-toast.achv b { font-size: 14px; }
  .h-toast.achv em { display: none; }
  .h-toast { font-size: 12px; max-width: 300px; }
  .h-tc { top: calc(8px + var(--safe-t)); left: 140px; right: 210px; }
  .h-radio { display: none; }
  .h-toasts { bottom: auto; top: 100px; left: auto; right: 200px; align-items: flex-end; }
  .h-card { left: auto; right: 220px; bottom: 10px; width: 330px; }
  .h-hint { top: auto; bottom: 10px; width: 50vw; }
  .tc-zone { height: 80%; width: 50%; }
  .tc-stick { transform: translate(calc(24px + var(--safe-l)), calc(100vh - 170px)); }
}
@media (pointer: coarse) {
  .h-br { display: none; }
  .h-prompt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= verze 1.1: ajťácký mobil, rádio, vizitky ================= */
/* kolo „Ajťácký mobil“ */
.h-wheel { position: absolute; right: calc(20px + var(--safe-r)); bottom: calc(64px + var(--safe-b)); width: 344px; height: 344px; pointer-events: none; z-index: 5; --pc: var(--cyan); }
.h-wheel.in .wh-ring { animation: wheelin .22s cubic-bezier(.2,1.5,.4,1); }
@keyframes wheelin { from { transform: scale(.6); opacity: 0; } }
.wh-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(9,14,26,.25) 30%, rgba(9,14,26,.78) 31%, rgba(9,14,26,.82) 70%, rgba(9,14,26,0) 71%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pc) 45%, transparent) inset; }
.wh-slot { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; transform: rotate(var(--a)) translate(124px) rotate(calc(-1 * var(--a))); border-radius: 50%; border: 2px solid var(--pc); background: radial-gradient(circle at 40% 30%, #1d2a47, #0d1424); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; pointer-events: auto; touch-action: none; overflow: hidden; box-shadow: 0 4px 0 rgba(0,0,0,.5), 0 0 14px color-mix(in srgb, var(--pc) 30%, transparent); transition: transform .08s, opacity .15s; font-family: var(--sans); }
.wh-slot:hover { filter: brightness(1.25); box-shadow: 0 4px 0 rgba(0,0,0,.5), 0 0 22px var(--pc); }
.wh-slot .wh-ic { font-size: 28px; line-height: 1; position: relative; z-index: 1; }
.wh-slot b { font: 700 14px/1 var(--sans); position: relative; z-index: 1; white-space: nowrap; }
.wh-slot small { font: 600 10.5px/1.1 var(--sans); color: var(--muted); max-width: 84px; text-align: center; position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-slot kbd { position: absolute; top: 4px; right: 13px; font-size: 9px; padding: 0 4px; border-bottom-width: 2px; z-index: 1; }
.wh-slot .wh-cd { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(0,0,0,.66) calc(var(--cd, 0) * 360deg), transparent 0); pointer-events: none; }
.wh-slot.off { opacity: .55; border-color: #3a4766; box-shadow: 0 4px 0 rgba(0,0,0,.5); }
.wh-slot.cool small { color: var(--amber); font-weight: 700; }
.wh-slot.empty { visibility: hidden; }
.wh-slot.hit { animation: slothit .35s ease-out; }
.wh-slot.nope { animation: badshake .3s; }
@keyframes slothit { 30% { filter: brightness(2); box-shadow: 0 0 30px var(--pc); } }
.wh-hub { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; pointer-events: auto; text-align: center; }
.wh-tabs { display: flex; flex-direction: column; gap: 3px; }
.wh-tabs button { font: 700 12px var(--sans); background: rgba(13,20,36,.95); border: 1px solid #2a3858; color: var(--muted); border-radius: 7px; padding: 3px 8px; cursor: pointer; touch-action: none; }
.wh-tabs button.on { color: #0b0f17; background: var(--c); border-color: var(--c); }
.wh-info { font: 600 11px/1.2 var(--sans); color: #d6e4f5; max-width: 140px; min-height: 2.4em; }
.wh-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2a3858; background: #0d1424; color: var(--muted); font-size: 14px; cursor: pointer; pointer-events: auto; touch-action: none; }
.wh-keys { display: none; position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.h-b.new, .tc-btn.tc-phone.new { animation: phonenew 1s ease-in-out infinite; }
@keyframes phonenew { 50% { box-shadow: 0 0 0 3px var(--pink), 0 0 18px var(--pink); } }
#touch .tc-right.wheel-open { visibility: hidden; }

/* rádio: displej při přepnutí + mini ekvalizér v pásku */
.h-tuner { position: absolute; left: 50%; bottom: calc(52px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; pointer-events: auto; background: linear-gradient(#141d33, #0b1222); border: 2px solid var(--sc, var(--pink)); border-radius: 12px; padding: 6px 10px; box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 16px color-mix(in srgb, var(--sc, #ff4fd8) 35%, transparent); z-index: 4; }
.h-tuner.in { animation: talkin .25s cubic-bezier(.2,1.4,.4,1); }
.tn-b { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #0d1424; font-size: 14px; cursor: pointer; touch-action: none; }
.tn-lcd { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; background: #071a12; border: 1px solid #12402a; border-radius: 6px; padding: 4px 10px; min-width: 210px; }
.tn-lcd small { grid-column: span 2; font: 9px var(--pix); color: #5ef0a0; opacity: .8; }
.tn-lcd b { font: 700 20px var(--sans); color: var(--sc, #fff); text-shadow: 0 0 8px color-mix(in srgb, var(--sc, #fff) 50%, transparent); }
.tn-eq { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.tn-eq s, .mini-eq s { display: block; width: 4px; background: var(--sc, var(--pink)); animation: eq .6s ease-in-out infinite alternate; }
.tn-eq s:nth-child(2) { animation-delay: -.2s; } .tn-eq s:nth-child(3) { animation-delay: -.45s; } .tn-eq s:nth-child(4) { animation-delay: -.1s; } .tn-eq s:nth-child(5) { animation-delay: -.33s; }
.h-tuner.off .tn-eq s { animation: none; height: 2px; }
.tn-hint { font: 600 11px var(--sans); color: var(--muted); }
@keyframes eq { from { height: 3px; } to { height: 100%; } }
.mini-eq { display: inline-flex; align-items: flex-end; gap: 1px; height: 10px; margin-left: 3px; vertical-align: -1px; }
.mini-eq s { width: 2px; background: currentColor; }
.mini-eq s:nth-child(2) { animation-delay: -.3s; } .mini-eq s:nth-child(3) { animation-delay: -.15s; }

/* mise Odboje pod cílem */
.h-quest { background: rgba(42,16,54,.9); border: 1px solid var(--pink); border-radius: 8px; padding: 4px 10px; font: 600 13px var(--sans); color: #ffd6f6; text-align: center; box-shadow: 0 0 12px rgba(255,79,216,.25); }
.h-quest b { color: var(--pink); }
.h-quest span { color: var(--muted); margin: 0 2px; }
.h-quest span.ok { color: var(--ok); }
.h-quest span.now { color: #fff; font-weight: 700; }
.h-quest em { font-style: normal; color: var(--amber); font-family: var(--mono); margin-left: 6px; }
.h-quest small { color: var(--muted); }
.tc-ref.lead { color: var(--ok); }

/* pauza: Zvuk a rádio, Kontakty */
.os-win.subpanel .os-body { text-align: left; }
.os-win.subpanel .btn { display: block; margin: 12px auto 0; }
.vols { display: grid; gap: 10px; margin: 6px 0 14px; }
.vol { display: grid; grid-template-columns: 130px 1fr 66px; align-items: center; gap: 10px; font: 600 15px var(--sans); }
.vol input { width: 100%; accent-color: #ff4fd8; height: 28px; }
.vol em { font-style: normal; font-family: var(--mono); color: var(--cyan); text-align: right; white-space: nowrap; }
.stations { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 10px; }
.os-win.subpanel .stations .btn { display: inline-flex; flex-direction: column; margin: 0; min-width: 150px; border-color: var(--sc); }
.st-btn small { font: 9px var(--pix); color: var(--muted); }
.st-btn.on { background: color-mix(in srgb, var(--sc) 30%, #111a2c); box-shadow: 0 0 12px var(--sc); }
.ld-list { list-style: none; display: grid; gap: 6px; margin: 6px 0 10px; max-height: 46vh; overflow-y: auto; }
.ld { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; background: #121a2c; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 8px; padding: 6px 10px; }
.ld b { font: 700 16px var(--sans); }
.ld small { grid-column: 1; color: var(--muted); font-size: 13px; }
.ld em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 700 13px var(--sans); font-style: normal; color: var(--amber); }
.ld.ok { border-left-color: var(--cyan); } .ld.ok em { color: var(--cyan); }
.ld.ticket { border-left-color: var(--violet); } .ld.ticket em { color: var(--violet); }
.ld.client { border-left-color: var(--ok); } .ld.client em { color: var(--ok); }
.ld.lost { border-left-color: #4a5670; opacity: .75; } .ld.lost em { color: var(--muted); }

/* desktop s myší: klávesy v kole */
@media (pointer: fine) { .wh-keys { display: block; font: 600 10px var(--sans); color: var(--muted); } .wh-keys kbd { font-size: 9px; padding: 0 3px; } }

/* telefon / malé displeje */
@media (max-width: 760px), (max-height: 520px) {
  .h-wheel { width: 300px; height: 300px; right: calc(6px + var(--safe-r)); bottom: calc(6px + var(--safe-b)); }
  .wh-slot { width: 84px; height: 84px; margin: -42px 0 0 -42px; transform: rotate(var(--a)) translate(106px) rotate(calc(-1 * var(--a))); }
  .wh-slot .wh-ic { font-size: 26px; }
  .wh-slot b { font-size: 13px; }
  .wh-slot small { font-size: 10px; max-width: 76px; }
  .wh-hub { width: 124px; height: 124px; margin: -62px 0 0 -62px; }
  .wh-tabs button { font-size: 11px; padding: 3px 6px; }
  .wh-info { font-size: 10px; max-width: 118px; min-height: 0; }
  .h-tuner { bottom: calc(10px + var(--safe-b)); padding: 4px 8px; }
  .tn-lcd { min-width: 170px; }
  .tn-lcd b { font-size: 16px; }
  .tn-hint { display: none; }
  .h-quest { font-size: 11px; padding: 3px 8px; }
  .vol { grid-template-columns: 96px 1fr 48px; font-size: 14px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .h-wheel { right: 50%; transform: translateX(50%); bottom: calc(10px + var(--safe-b)); }
  .h-tuner { bottom: auto; top: calc(232px + var(--safe-t)); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .h-tuner { left: auto; right: calc(230px + var(--safe-r)); transform: none; }
}

/* ================= týdenní žebříček na Výkazu dne ================= */
.lb { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: 12px; background: #0c1426; text-align: left; }
.lb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lb-head h3 { margin: 0; }
.lb-score { font: 700 16px var(--sans); color: var(--muted); }
.lb-score b { font: 18px var(--pix); color: var(--amber); margin-left: 6px; }
.lb-how { font: 600 13px var(--sans); color: var(--muted); margin: 4px 0 8px; }
.lb-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-form label { font: 700 14px var(--sans); color: var(--text); }
.lb-form input { flex: 1 1 160px; min-width: 0; max-width: 260px; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #070c18; color: var(--text); font: 700 17px var(--sans); user-select: text; -webkit-user-select: text; }
.lb-form input:focus { outline: 2px solid var(--cyan); }
.lb-msg { font: 600 14px var(--sans); color: var(--amber); margin: 6px 0; }
.lb-rank { font: 700 17px var(--sans); color: var(--text); margin: 6px 0; }
.lb-rank b { color: var(--amber); font-size: 20px; }
.lb-top { list-style: none; display: grid; gap: 4px; margin: 4px 0 8px; }
.lb-top li { display: grid; grid-template-columns: 30px 1fr auto; column-gap: 8px; align-items: baseline; background: #121a2c; border-radius: 6px; padding: 4px 8px; }
.lb-top li.me { outline: 2px solid var(--pink); background: #22132e; }
.lb-top span { color: var(--muted); font: 700 14px var(--sans); }
.lb-top b { font: 700 16px var(--sans); }
.lb-top em { font: 13px var(--pix); font-style: normal; color: var(--cyan); }
.lb-top small { grid-column: 2 / span 2; color: var(--muted); font-size: 12px; }
.lb-share { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.lb-card { width: min(100%, 360px); aspect-ratio: 1200 / 630; height: auto; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.lb-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lb-note { color: var(--ok); font: 600 13px var(--sans); }
.lb-contact { margin: 10px 0 0; font: 600 13px var(--sans); }
.lb-contact a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(143,163,191,.4); }
.lb-contact a:hover { color: var(--cyan); }
