:root { color-scheme: dark; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #f5f6ed; background: #14221e; font-synthesis: none; --accent: #f3c200; --ink: #14221e; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { -webkit-tap-highlight-color: transparent; }
button, a { -webkit-touch-callout: none; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
a { color: inherit; text-underline-offset: 4px; }
[hidden], .hidden { display: none !important; }
#game { position: fixed; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.hud { position: fixed; z-index: 2; top: calc(16px + env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.hud-logo { position: fixed; top: calc(11px + env(safe-area-inset-top)); left: 50%; width: 100px; height: auto; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 2px 3px #00000080); }
.icon-btn { background: linear-gradient(#3f4543, #101713); border: 2px solid #080808; box-shadow: inset 1px 1px 0 #ffffff70, 0 3px 0 #080808, 0 5px 10px #00000040; }
.distance-card { padding: 0; min-width: 134px; flex-shrink: 0; text-shadow: 0 2px 4px #000000d9; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 2px; color: var(--accent); }
.distance-card > div { display: flex; align-items: baseline; height: 46px; line-height: 1; margin: 0; }
#score-hud { font-size: 34px; font-weight: 850; line-height: 46px; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.unit { font-size: 14px; color: #bbc6ba; margin-left: 5px; }
.best { display: flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: 1px; color: #c4ccbf; }
.best-icon { flex-shrink: 0; color: var(--accent); filter: drop-shadow(0 1px 2px #000000b3); }
.lives { display: flex; align-items: center; gap: 3px; padding-right: 8px; }
.lives img { display: block; width: 20px; height: 20px; opacity: .25; filter: grayscale(1); }
.lives img.filled { opacity: 1; filter: none; }
.lives.protected { filter: drop-shadow(0 0 5px #ff2a2aaa); }
.hud-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; min-width: 0; }
.spray-powerup { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(310px, calc(100vw - 32px)); padding: 10px 12px; border: 2px solid #080808; border-radius: 12px; background: #080808e6; box-shadow: inset 0 1px 0 #ffffff70, 0 3px 0 #080808; color: #ffffff; }
.spray-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: 11px; line-height: 1; }
.spray-label strong { text-transform: uppercase; letter-spacing: 1px; }
#spray-seconds { color: #ffe600; font-variant-numeric: tabular-nums; }
.spray-time { height: 9px; overflow: hidden; border: 1px solid #080808; border-radius: 4px; background: #ffffff25; }
#spray-fill { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, #ff2b05, #ff9000, #fff600); }
.spray-powerup.attracting { border-color: #ffe600; box-shadow: 0 0 14px #ffb00070; }
.coin-pill { display: flex; flex-shrink: 0; align-items: center; gap: 6px; height: 46px; padding: 0 9px; font-size: 17px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 3px #000000d9; }
.coin-count { display: flex; align-items: center; gap: inherit; }
.coin-dot { display: block; width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 2px 3px #00000080); }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #f5f6ed; font-size: 20px; pointer-events: auto; }
.overlay { position: fixed; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) calc(60px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); overflow-y: auto; background: linear-gradient(145deg, #14221ef5, #14221ec9 50%, #14221ee8); }
.panel { width: 100%; max-width: 420px; flex-shrink: 0; }
#menu { justify-content: center; align-items: center; padding: max(24px, env(safe-area-inset-top), env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left), env(safe-area-inset-right)); background: none; pointer-events: none; }
#menu .menu-panel { align-self: center; width: min(100%, 400px); max-width: 400px; margin: auto 0; color: #f5f6ed; text-align: center; text-shadow: 0 1px 3px #000000d9; pointer-events: auto; }
.game-logo { display: block; width: 100%; height: auto; max-height: 34vh; object-fit: contain; object-position: left; filter: drop-shadow(0 2px 4px #00000080); }
#menu h1 { margin: 0 0 24px; }
#menu .game-logo { object-position: center; }
.compact-panel .game-logo { width: min(180px, 34vw); max-height: 18vh; object-position: center; margin: 0 auto 24px; }
#menu .controls { border-color: #ffffff50; }
#menu .controls > div { align-items: center; }
#menu .panel-footer, #menu .pwa-status { color: #f5f6ed; font-weight: 600; }
#menu .btn { text-shadow: none; }
#paused, #over { justify-content: center; align-items: center; padding: max(24px, env(safe-area-inset-top), env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left), env(safe-area-inset-right)); background: none; pointer-events: none; }
#paused .panel { align-self: center; width: min(360px, 100%); margin: auto 0; pointer-events: auto; }
#paused .subtitle { color: #f5f6ed; text-shadow: 0 1px 3px #000000d9; }
#over .panel { align-self: center; margin: auto 0; pointer-events: auto; text-shadow: 0 2px 4px #000000d9; }
#over .btn { text-shadow: none; }
#over .results { border-color: #ffffff50; }
#over .results > div > span, #over .final-distance > span { color: #f5f6ed; }
h1 { font-size: clamp(52px, 11vw, 76px); font-weight: 900; line-height: .98; letter-spacing: -2px; margin: 0 0 30px; }
h1 em { display: block; color: var(--accent); font-style: normal; }
.subtitle { font-size: 15px; line-height: 1.65; color: #becbbb; margin: 19px 0 24px; }
.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #ffffff20; border-bottom: 1px solid #ffffff20; padding: 18px 0; gap: 9px; margin-bottom: 22px; }
.controls > div { display: flex; flex-direction: column; gap: 10px; }
.control-keys { display: flex; justify-content: center; gap: 5px; padding-bottom: 4px; }
.control-keys kbd { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid #080808; border-radius: 8px; background: linear-gradient(#ffffff, #dedede); box-shadow: 0 4px 0 #a3a3a3, 0 5px 0 1px #080808, 0 7px 8px #00000040, inset 0 1px 0 #ffffff; color: #080808; font-family: inherit; font-size: 25px; font-weight: 500; line-height: 1; text-shadow: none; }
.control-alternatives { gap: 4px; padding-bottom: 0; }
.control-alternatives kbd { width: auto; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 5px; font-size: 11px; font-weight: 600; box-shadow: 0 2px 0 #a3a3a3, 0 3px 0 1px #080808, 0 4px 5px #00000040, inset 0 1px 0 #ffffff; }
.controls strong { font-size: 10px; letter-spacing: 1.5px; }
.touch-controls { display: none; }
.swipe-icon { display: block; width: 42px; height: 42px; filter: drop-shadow(0 1px 2px #00000080); }
.swipe-icon circle { fill: var(--accent); stroke: var(--ink); }
.swipe-hint { max-width: 95px; font-size: 10px; line-height: 1.4; }
.btn { --button-edge: #ffb000; min-height: 62px; border: 4px solid #080808; border-radius: 16px 10px; padding: 14px 18px; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; color: #ffffff; text-decoration: none; box-shadow: inset 3px 3px 0 #ffffff, inset -3px -3px 0 var(--button-edge), 0 6px 0 #080808, 0 10px 14px #00000066; transform: skewX(-5deg); transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-2px) skewX(-5deg); }
.btn:active { transform: translateY(4px) skewX(-5deg); box-shadow: inset 3px 3px 0 #ffffff, inset -3px -3px 0 var(--button-edge), 0 2px 0 #080808, 0 5px 8px #00000066; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; filter: brightness(1.08); }
.btn:disabled, .icon-btn:disabled { cursor: wait; opacity: .6; }
.btn:disabled:hover { transform: skewX(-5deg); filter: none; }
.primary { background: linear-gradient(180deg, #fff600 8%, #ffd000 38%, #ff7a00 70%, #ff1c05 100%); }
.secondary { --button-edge: #66736b; background: linear-gradient(180deg, #3f4543, #1c2420 65%, #0b110e); color: #ffffff; margin-top: 16px; }
.btn-copy { display: flex; flex-direction: column; align-items: center; gap: 7px; transform: skewX(5deg); }
#play-btn .btn-copy { flex-direction: row; gap: 14px; }
.start-key { padding: 5px 10px; border: 2px solid #080808; border-radius: 5px; background: linear-gradient(#ffffff, #dedede); box-shadow: 0 3px 0 #a3a3a3, 0 4px 0 1px #080808; color: #080808; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; text-shadow: none; }
.btn-label, .panel-title { transform: skewX(-8deg); font-family: Impact, "Arial Black", ui-sans-serif, sans-serif; font-weight: 900; line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; -webkit-text-stroke: 1.5px #080808; paint-order: stroke fill; text-shadow: 2px 3px 0 #080808; }
.btn-label { font-size: clamp(22px, 5.5vw, 26px); }
.panel-footer { margin-top: 20px; display: flex; justify-content: center; font-size: 10px; color: #93a48d; line-height: 1.5; }
.pwa-status { font-size: 10px; color: #a9bd9c; line-height: 1.5; }
.compact-panel { max-width: 360px; text-align: center; }
.compact-panel .subtitle { margin: 0 0 20px; }
h2 { font-size: clamp(37px, 9vw, 48px); line-height: 1.05; letter-spacing: -2px; margin: 15px 0 26px; }
.panel-title { font-size: clamp(30px, 8vw, 40px); margin: 0 0 20px; }
.final-distance { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 18px; }
.final-distance strong { font-size: clamp(58px, 16vw, 78px); letter-spacing: -3px; line-height: 1; font-variant-numeric: tabular-nums; }
.final-distance > span { font-size: 22px; color: #aab8a5; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 1px solid #ffffff20; padding: 16px 0 22px; }
.results > div { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.results > div > span { font-size: 10px; letter-spacing: 1.5px; color: #aab8a5; }
.results strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.new-best { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1px; margin: 0 0 14px; }
.bottom-bar { position: fixed; z-index: 4; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; pointer-events: none; gap: 8px; }
.bottom-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.fps-counter { align-self: flex-end; padding: 0; color: var(--accent); font: 600 11px/1 ui-monospace, monospace; font-variant-numeric: tabular-nums; text-align: left; text-shadow: 0 2px 3px #000000d9; }
.sound-btn { width: 34px; height: 34px; font-size: 18px; }
.sound-btn[aria-pressed="true"] { color: #aab8a5; text-decoration: line-through; }
.update-prompt { position: fixed; z-index: 5; top: calc(16px + env(safe-area-inset-top)); left: 50%; width: max-content; max-width: calc(100vw - 48px); transform: translateX(-50%); pointer-events: none; }
/* During a run the HUD logo sits at the top centre: keep the button just below it. */
.hud:not([hidden]) ~ .update-prompt { top: calc(104px + env(safe-area-inset-top)); }
.update-btn { pointer-events: auto; }
#flash { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: #ff593b; opacity: 0; }
#loading { position: fixed; z-index: 6; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; background: #080808e6; color: #ffffff; font-size: 14px; font-weight: 650; }
.loading-spinner { width: 22px; height: 22px; border: 3px solid #ffffff30; border-top-color: var(--accent); border-radius: 50%; animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (max-height: 730px) { .overlay { align-items: flex-start; padding-top: calc(20px + env(safe-area-inset-top)); } h1 { font-size: 52px; } .subtitle { margin: 12px 0 17px; font-size: 13px; } .controls { padding: 13px 0; } .compact-panel { align-self: center; } }
@media (max-height: 730px) {
  .compact-panel .game-logo { max-height: 12vh; margin-bottom: 14px; }
  .compact-panel .panel-title { font-size: 30px; margin-bottom: 12px; }
  .compact-panel .btn { min-height: 52px; padding: 12px 16px; }
  .compact-panel .final-distance { margin-bottom: 12px; }
  .compact-panel .results { padding: 12px 0 16px; }
}
@media (orientation: landscape) and (max-height: 540px) { .menu-panel { max-width: 600px; } #menu .game-logo { max-height: 24vh; } #menu h1 { margin-bottom: 16px; } #menu .controls { padding: 8px 0; margin-bottom: 14px; } #menu .panel-footer { margin-top: 12px; } .compact-panel { margin: auto; } .compact-panel .game-logo { max-height: 14vh; margin-bottom: 12px; } }
@media (orientation: landscape) and (max-height: 540px) {
  .spray-powerup { bottom: calc(14px + env(safe-area-inset-bottom)); }
  #paused .panel-title { font-size: 24px; margin-bottom: 10px; }
  #paused .subtitle { font-size: 12px; line-height: 1.3; margin-bottom: 8px; }
  #paused .btn { min-height: 44px; padding: 8px 14px; }
  #paused .secondary { margin-top: 10px; }
  #over { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(68px, env(safe-area-inset-bottom)); }
  #over .panel { max-width: 600px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
  #over .game-logo { grid-column: 1; grid-row: 1 / span 2; width: min(160px, 100%); max-height: 28vh; margin: 0 auto; }
  #over h2 { grid-column: 2; grid-row: 1; font-size: 32px; margin: 0 0 8px; }
  #over .new-best { grid-column: 2; grid-row: 2; margin: 0; }
  #over .final-distance { grid-column: 1; grid-row: 3; margin: 12px 0; }
  #over .final-distance strong { font-size: 64px; }
  #over .results { grid-column: 2; grid-row: 3; gap: 24px; padding: 12px 0; }
  #over .btn { grid-row: 4; min-height: 48px; padding: 12px 16px; }
  #over .secondary { margin-top: 0; }
  #over .over-ranking-button { grid-column: 1 / -1; grid-row: 5; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .loading-spinner { animation: none; } }
@media (min-width: 768px) {
  .lives { gap: 5px; padding-right: 10px; }
  .lives img { width: 28px; height: 28px; }
  .coin-dot { width: 32px; height: 32px; }
  .coin-pill { gap: 8px; font-size: 20px; }
}
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .hud-logo { width: 76px; }
  .coin-pill { flex-direction: column; align-items: flex-end; height: auto; padding: 0; }
  .coin-pill .lives { padding-right: 0; }
}
@media (max-width: 640px) {
  #menu .controls { gap: 4px; padding: 12px 0; }
  #menu .controls strong { font-size: 9px; letter-spacing: 0; }
  #menu .btn { min-height: 52px; padding: 14px; }
}
@media (hover: none) and (pointer: coarse) {
  #menu { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  #menu .menu-panel { margin: auto 0 0; }
  #menu h1 { position: fixed; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); margin: 0; pointer-events: none; }
  #menu .game-logo { width: clamp(128px, 42vw, 180px); max-height: 18vh; margin: 0 auto; }
  .keyboard-controls, .start-key { display: none; }
  .touch-controls { display: grid; }
  .touch-controls > div { gap: 6px; }
}
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  #menu .game-logo { max-height: 14vh; }
}
@media (max-width: 360px) {
  .hud { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); gap: 8px; }
  .distance-card { min-width: 110px; }
  #score-hud { font-size: 28px; }
  .hud-actions { gap: 6px; }
  .coin-pill { gap: 5px; padding: 0; }
  .coin-dot { width: 20px; height: 20px; }
  .lives { gap: 2px; padding-right: 6px; }
  .lives img { width: 18px; height: 18px; }
  .hud-actions .icon-btn { width: 40px; height: 46px; }
}

/* Account and leaderboard use the runner's native HTML controls. */
.menu-stats { display: grid; width: max-content; max-width: 100%; gap: 9px; margin: 0 auto 20px; }
.menu-coins { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 100%; min-height: 46px; margin: 0; padding: 7px 14px; border: 2px solid #080808; border-radius: 12px 8px; background: linear-gradient(#344139ed, #111913ed); box-shadow: inset 1px 1px 0 #ffffff50, 0 3px 0 #080808, 0 6px 10px #0005; text-shadow: none; }
.menu-coins img { flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 2px 2px #0008); }
.menu-coins > span { min-width: 0; color: #e4e8db; font-size: 10px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.menu-coins strong { color: #ffe600; font: 900 25px/1 Impact, "Arial Black", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .5px; text-shadow: 1px 2px 0 #080808; }
.menu-record { min-height: 40px; }
.menu-record-icon { flex-shrink: 0; width: 23px; height: 23px; color: #ffe600; filter: drop-shadow(0 2px 2px #0008); }
.menu-record strong { font-size: 22px; }
.online-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.online-button { min-height: 52px; padding: 12px 14px; }
.online-button .btn-copy { flex-direction: row; gap: 9px; min-width: 0; }
.online-button .btn-label { font-size: 20px; letter-spacing: .7px; }
.online-actions .online-button { min-width: 0; margin-top: 0; }
.online-actions .btn-label { font-size: clamp(15px, 4.3vw, 18px); }
.button-icon { flex-shrink: 0; width: 20px; height: 20px; filter: drop-shadow(1px 2px 0 #080808); }
.online-status { margin: 10px 0; font-size: 12px; line-height: 1.5; color: #d2ddcd; overflow-wrap: anywhere; }
#account-status { min-height: 36px; margin-top: 16px; }
#menu .panel-footer { margin-top: 6px; }
.redirect-button, .over-ranking-button { margin-top: 16px; }
#retry-score-btn { margin-bottom: 14px; }
.online-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 22px; border: 4px solid #080808; border-radius: 22px 14px; background: linear-gradient(145deg, #344139, #17211c 50%, #101713); color: #f5f6ed; box-shadow: inset 2px 2px 0 #ffffff60, inset -2px -2px 0 #0006, 0 8px 0 #080808, 0 24px 80px #000c; }
.online-dialog::backdrop { background: #000a; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 18px; }
.dialog-heading h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: 1px; }
.dialog-close { flex-shrink: 0; width: 38px; height: 38px; font-size: 27px; line-height: 1; }
.install-shortcut { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: 54px; height: 54px; }
.install-shortcut svg { width: 23px; height: 23px; }
.install-dialog .dialog-heading h2 { font-size: clamp(25px, 6.7vw, 30px); }
.install-app { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.install-app img { flex-shrink: 0; border: 2px solid #080808; border-radius: 16px; box-shadow: 0 3px 0 #080808; }
.install-app strong { display: block; font-size: 17px; font-weight: 850; }
.install-app span { display: block; margin-top: 7px; color: #d2ddcd; font-size: 12px; line-height: 1.4; }
.install-steps { counter-reset: install-step; list-style: none; padding: 0; margin: 18px 0; }
.install-steps li { position: relative; min-height: 32px; padding: 0 0 0 38px; margin: 14px 0; font-size: 12px; line-height: 1.6; color: #e4e8db; }
.install-steps li::before { counter-increment: install-step; content: counter(install-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 27px; height: 29px; border: 2px solid #080808; border-radius: 7px 4px; background: linear-gradient(#fff600, #ff9d00); color: #080808; font: 900 18px/1 Impact, "Arial Black", sans-serif; box-shadow: 0 2px 0 #080808; transform: rotate(-5deg); }
.install-feedback:empty { display: none; }
.install-dialog .online-button { margin-top: 16px; margin-bottom: 6px; }
.ranking-emblem { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border: 3px solid #080808; border-radius: 13px 9px; background: linear-gradient(#fff600, #ffb000 65%, #ff6900); color: #080808; box-shadow: inset 2px 2px 0 #fff, 0 4px 0 #080808; transform: rotate(-7deg); }
.ranking-emblem svg { width: 29px; height: 29px; }
.ranking-heading { flex: 1; }
.dialog-kicker { display: block; margin-bottom: 4px; color: #ffe600; font-size: 10px; font-weight: 850; letter-spacing: 3px; text-transform: uppercase; }
#profile-form label { display: block; margin-bottom: 9px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
#nickname-input { width: 100%; padding: 13px; border: 2px solid #080808; border-radius: 10px 7px; background: #08080870; color: inherit; font: inherit; box-shadow: inset 0 2px 4px #0006, 0 1px 0 #ffffff30; }
#nickname-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
#profile-form .online-button, #sign-out-btn { margin-top: 18px; }
#ranking-list { list-style: none; padding: 2px 3px 6px; margin: 16px -3px 18px; scrollbar-width: thin; scrollbar-color: #7c8c74 #101713; }
.ranking-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 60px; margin-bottom: 10px; padding: 10px; border: 2px solid #080808; border-radius: 12px 8px; background: linear-gradient(115deg, #35433a, #202c24); box-shadow: inset 0 1px 0 #ffffff30, 0 3px 0 #080808; font-size: 14px; }
.ranking-row:last-child { margin-bottom: 0; }
.ranking-position { display: grid; place-items: center; width: 32px; height: 34px; border: 2px solid #080808; border-radius: 8px 5px; background: #14221e; color: #fff; font: 900 21px/1 Impact, "Arial Black", sans-serif; font-variant-numeric: tabular-nums; text-shadow: 1px 2px 0 #080808; box-shadow: inset 1px 1px 0 #ffffff50, 0 2px 0 #080808; transform: rotate(-5deg); }
.ranking-row[data-place="1"] .ranking-position { background: linear-gradient(#fff600, #ff9d00); color: #080808; text-shadow: 0 1px 0 #fff7; }
.ranking-row[data-place="2"] .ranking-position { background: linear-gradient(#fff, #8d9a9d); color: #080808; text-shadow: 0 1px 0 #fff7; }
.ranking-row[data-place="3"] .ranking-position { background: linear-gradient(#ffbd76, #b96835); color: #080808; text-shadow: 0 1px 0 #fff7; }
.ranking-row.is-you { border-color: #f3c200; background: linear-gradient(115deg, #5a481c, #263123); }
.ranking-name { min-width: 0; overflow-wrap: anywhere; font-weight: 750; }
.ranking-row.is-you .ranking-name::after { content: 'Você'; display: block; width: fit-content; margin-top: 5px; padding: 2px 5px; border-radius: 3px; background: #f3c200; color: #080808; font-size: 9px; font-weight: 850; line-height: 1.2; text-transform: uppercase; letter-spacing: .5px; }
.ranking-distance { color: #fff6bb; font: 900 20px/1.1 Impact, "Arial Black", sans-serif; letter-spacing: .4px; font-variant-numeric: tabular-nums; text-shadow: 1px 2px 0 #080808; white-space: nowrap; }
.ranking-own { margin: 0 0 16px; padding: 13px; border: 2px solid #080808; border-left: 5px solid var(--accent); border-radius: 10px 6px; background: #08080850; color: #ffe600; font-size: 12px; font-weight: 750; line-height: 1.5; }
.ranking-own:empty { display: none; }
#refresh-ranking-btn { margin: 0 0 6px; }
@media (max-height: 740px) { #menu h1 { margin-bottom: 12px; } #menu .game-logo { max-height: 25vh; } #menu .controls { padding: 12px 0; margin-bottom: 14px; } .online-actions { margin-top: 12px; } }
@media (max-width: 380px) { .online-dialog { padding: 18px; } .dialog-heading { gap: 10px; } .ranking-emblem { width: 44px; height: 44px; } .dialog-heading h2 { font-size: 27px; } .ranking-row { gap: 8px; padding: 9px; font-size: 13px; } .ranking-distance { font-size: 18px; } .button-icon { width: 17px; height: 17px; } }
@media (max-width: 360px) { .online-actions .button-icon { display: none; } }
@media (max-height: 540px) { .online-dialog { padding: 14px 18px; } .dialog-heading { margin-bottom: 10px; } .dialog-heading h2 { font-size: 26px; } .ranking-emblem { width: 40px; height: 40px; } .ranking-emblem svg { width: 24px; height: 24px; } .ranking-dialog .online-status { margin: 4px 0; font-size: 11px; } #ranking-list { margin-top: 10px; margin-bottom: 12px; } .ranking-own { padding: 9px; margin-bottom: 12px; font-size: 11px; } .online-dialog .online-button { min-height: 44px; padding: 8px 12px; } .online-dialog .btn-label { font-size: 18px; } }
.run-kind { display: block; margin-top: 5px; color: #d2ddcd; font-size: 9px; }
.btn[aria-busy="true"] .btn-label::after { content: '…'; }
.update-btn[aria-busy="true"] .btn-label::after { content: none; }
.ranking-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.ranking-dialog .dialog-heading, .ranking-dialog .online-status, .ranking-dialog .ranking-own, #refresh-ranking-btn { flex-shrink: 0; }
#ranking-list { min-height: 0; max-height: 48dvh; flex: 0 1 auto; overflow-y: auto; overscroll-behavior: contain; }
#ranking-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
