@font-face {font-family:Cairo;src:url("/assets/Cairo-700.ttf");font-weight:700}
@font-face {font-family:Cairo;src:url("/assets/Cairo-400.ttf");font-weight:400}
body {margin:0;color-scheme:light dark;background:light-dark(#fbf4e6,#142920);color:light-dark(#163e32,#f9ecd4);font:16px/1.45 Cairo,system-ui,sans-serif}
body > #jebna-toits {max-width:980px;margin:clamp(12px,3vh,28px) auto;padding:0 clamp(12px,4vw,48px)}
#jebna-toits {font-family:Cairo,system-ui,sans-serif;font-variant-numeric:tabular-nums}
#jebna-toits * {box-sizing:border-box}
#jebna-toits [hidden] {display:none!important}
#jebna-toits .hud,#jebna-toits .meters,#jebna-toits .toolbar,#jebna-toits .caption {display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#jebna-toits .hud {justify-content:space-between;margin-bottom:14px}
#jebna-toits h1,#jebna-toits h2,#jebna-toits p {margin:0}
#jebna-toits h1 {font-size:clamp(1.45rem,4.6vw,2.8rem);line-height:1.15;letter-spacing:-.055em}
#jebna-toits .meters {gap:22px}
#jebna-toits .meters div {display:grid}
#jebna-toits .meters span,#jebna-toits .caption span,#jebna-toits .finish small {font:700 .72rem/1.4 Cairo,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.12em}
#jebna-toits .meters strong {font:700 clamp(1.1rem,3vw,1.65rem)/1.2 ui-monospace,monospace}
#jebna-toits .track {position:relative;isolation:isolate;overflow:hidden;border-radius:15px;background:#e8c590;touch-action:manipulation;user-select:none;-webkit-user-select:none}
#jebna-toits canvas {display:block;width:100%;aspect-ratio:2.8;touch-action:manipulation}
#jebna-toits .caption {position:absolute;right:12px;top:12px;pointer-events:none;gap:8px}
#jebna-toits .caption span {padding:4px 9px;color:#fff3d8;background:#204b40;border-radius:5px}
#jebna-toits .caption [data-combo] {background:#71351b}
#jebna-toits .finish {position:absolute;inset:0;display:grid;place-items:center;background:#102f2b60;pointer-events:none;text-align:center}
#jebna-toits .finish div {padding:12px 20px;background:#fff3d9;color:#183e34;border-radius:10px;box-shadow:0 4px #785839}
#jebna-toits .finish small {color:#865229}
#jebna-toits .finish h2 {font-size:1.5rem}
#jebna-toits .toolbar {margin-top:14px;gap:10px}
#jebna-toits .sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body > #jebna-toits button {min-height:48px;padding:0 20px;border:1px solid currentColor;border-radius:10px;background:transparent;color:inherit;font:700 1rem Cairo,system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
body > #jebna-toits .btn-primary {background:light-dark(#214f40,#f3e6ca);color:light-dark(#fff2d7,#183e34)}
@media(max-width:520px){
  #jebna-toits .meters {gap:12px}
  #jebna-toits .hud {gap:10px}
}
#jebna-toits [data-controls] {margin-top:12px}
#jebna-toits [data-controls] summary {width:fit-content;min-height:48px;align-content:center;cursor:pointer;font-size:1.05rem;font-weight:700}
#jebna-toits .control-list {display:flex;flex-wrap:wrap;gap:10px 26px;margin:8px 0 12px}
#jebna-toits .control-list div,#jebna-toits .keyboard {display:inline-flex;gap:8px;align-items:center}
#jebna-toits .control-list dt {font-weight:700}
#jebna-toits .control-list dd {margin:0}
#jebna-toits kbd {display:inline-grid;place-items:center;min-width:2rem;min-height:1.8rem;padding:1px 6px;border:1px solid light-dark(#939c8d,#91a496);border-bottom-width:3px;border-radius:5px;background:light-dark(#fffcf3,#31483c);font:700 .92rem/1.25 Cairo,system-ui,sans-serif}
#jebna-toits .space-key {min-width:5rem}
#jebna-toits .control-list .touch {display:none}
@media(pointer:coarse){#jebna-toits .control-list .keyboard {display:none} #jebna-toits .control-list .touch {display:inline}}

#jebna-toits .game-nav {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;border-bottom:1px solid #83998770;margin-bottom:clamp(18px,4vw,38px);padding-bottom:10px}
#jebna-toits .brand,#jebna-toits .languages a {display:inline-flex;align-items:center;min-height:48px;color:inherit;text-decoration:none}
#jebna-toits .brand {font-weight:700;font-size:1.65rem;letter-spacing:-.06em}
#jebna-toits .brand img {margin-right:8px;border-radius:8px}
#jebna-toits .brand span {color:#dd7228}
#jebna-toits .languages {display:flex;gap:12px}
#jebna-toits .languages a {font-size:.9rem}
#jebna-toits .languages a[aria-current],#jebna-toits a:hover {text-decoration:underline;text-underline-offset:4px}
#jebna-toits .target {margin-bottom:12px;font-weight:700}
#jebna-toits [data-notice]:not(:empty),#jebna-toits [data-manual]:not([hidden]) {display:block;margin-top:10px}
#jebna-toits [data-manual] input {display:block;width:100%;max-width:420px;min-height:48px;direction:ltr;font:inherit}
#jebna-toits .toolbar button {border-color:#829388}
#jebna-toits :focus-visible {outline:3px solid #bf762e;outline-offset:3px}
#jebna-toits .rotation-hint {display:none}
@media (pointer:coarse) and (orientation:portrait) and (max-width:600px) {
  #jebna-toits[data-mode=ready] .rotation-hint,#jebna-toits[data-mode=running] .rotation-hint {display:block;margin-top:8px;font-size:.9rem}
}
body > #jebna-toits:fullscreen {box-sizing:border-box;width:100%;height:100%;max-width:none;margin:0;overflow:auto;background:light-dark(#fbf4e6,#142920);padding-block:12px}
@media (pointer:coarse) and (orientation:landscape) and (max-height:600px) {
  body > #jebna-toits:is([data-mode=running],[data-mode=paused]) {box-sizing:border-box;width:100%;max-width:none;margin:0;padding:4px max(12px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  #jebna-toits:is([data-mode=running],[data-mode=paused]) .game-nav {display:none}
  #jebna-toits .hud {margin:0 0 4px;gap:6px}
  #jebna-toits h1 {font-size:1.12rem}
  #jebna-toits .meters {gap:12px}
  #jebna-toits .meters div {display:flex;align-items:baseline;gap:5px}
  #jebna-toits .meters strong {font-size:1rem}
  #jebna-toits .target {margin:0;font-size:.85rem}
  #jebna-toits .track {width:min(100%,max(220px,calc((100dvh - 112px - env(safe-area-inset-bottom)) * 3.18)));margin-inline:auto}
  #jebna-toits .toolbar {justify-content:center;margin-top:4px;gap:8px}
}
