/* CostoDB reference palette. All brand colors are editable here. */
:root {
  --brand: #FF6600; --brand-strong: #C74700; --brand-hover: #A83A00;
  --brand-soft: #FFF1E6; --price: #B93815; --page: #F5F6F8;
  --surface: #FFFFFF; --text: #22252B; --muted: #606771;
  --border: #E2E5E9; --border-control: #858B94;
  --positive: #176B45; --positive-soft: #EAF6EF;
  --danger: #B52F36; --danger-soft: #FFF0ED; --road: #2B3036;
  --font: Arial, "Helvetica Neue", "Liberation Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 0; font-family: var(--font); background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 15px; top: -70px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1248px; padding: 0 32px; height: 83px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 30px; letter-spacing: -1.6px; font-weight: 800; }
.brand-icon, .brand-db { color: var(--brand); }
.brand-period { color: var(--text); }
nav { display: flex; gap: 31px; align-items: center; margin-left: auto; font-size: 13px; font-weight: 600; }
nav a { display: flex; gap: 10px; }
nav a:hover, .nav-link:hover { color: var(--brand-strong); }
.nav-link { padding: 0; border: 0; background: none; font-weight: 600; font-size: 13px; }
.launch-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; border: 1px solid #F5DBC8; border-radius: 30px; padding: 9px 12px; background: #FFFAF6; color: #984314; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
main { max-width: 1184px; margin: auto; padding: 0 32px; }
.hero { padding: 49px 20px 30px; text-align: center; position: relative; }
.eyebrow { color: var(--brand-strong); font-size: 10px; letter-spacing: 1.75px; line-height: 1.7; font-weight: 700; }
.hero .eyebrow { display: flex; justify-content: center; align-items: center; gap: 9px; }
.mini-flag { display: inline-block; width: 12px; height: 12px; background: conic-gradient(var(--brand-strong) 25%, transparent 0 50%, var(--brand-strong) 0 75%, transparent 0); background-size: 6px 6px; }
h1 { margin: 17px 0 15px; font-size: clamp(40px, 5vw, 65px); font-weight: 800; letter-spacing: -2.8px; line-height: 1.045; }
h1 span { color: var(--brand-strong); }
.hero p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.7; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 11px; display: flex; gap: 10px; align-items: center; justify-content: center; }
.hero-note>span { font-size: 20px; color: var(--brand-strong); }
.hero-decoration { position: absolute; user-select: none; color: #E2E5E9; font-weight: 800; }
.decoration-one { font-size: 80px; left: 10%; top: 95px; transform: rotate(-14deg); }
.decoration-two { font-size: 85px; right: 10%; top: 103px; transform: rotate(8deg); }
.game-shell { overflow: hidden; border: 1px solid #D9DDE2; border-radius: 17px; background: white; box-shadow: 0 6px 22px #22252B06; scroll-margin-top: 16px; }
.game-toolbar { min-height: 82px; display: flex; gap: 18px; align-items: center; padding: 17px 23px; border-bottom: 1px solid var(--border); }
.game-name { display: flex; gap: 12px; align-items: center; }
.flag-icon { color: var(--text); }
.game-name h2 { display: flex; align-items: center; gap: 9px; font-size: 19px; margin: 0 0 5px; letter-spacing: -.55px; }
.edition { font: 9px monospace; background: var(--brand-soft); color: var(--brand-strong); padding: 3px 4px; border-radius: 4px; letter-spacing: 0; }
.tiny-label { font-size: 8px; letter-spacing: 1.35px; color: var(--muted); font-weight: 600; display: block; }
.scoreboard { display: flex; align-items: center; gap: 33px; margin-left: auto; margin-right: 12px; }
.score-item { display: flex; flex-direction: column; gap: 6px; min-width: 71px; }
.score-item output { font-family: "Courier New", monospace; font-weight: 700; font-size: 25px; letter-spacing: 1.6px; line-height: 1; font-variant-numeric: tabular-nums; }
.best-item output { color: var(--muted); }
.toolbar-actions { display: flex; gap: 7px; border-left: 1px solid var(--border); padding-left: 17px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--border); border-radius: 8px; width: 37px; height: 37px; padding: 0; }
.icon-button:not(:disabled):hover { border-color: var(--border-control); background: var(--page); }
.sound-on { display: none; }
#sound-button[aria-pressed="true"] .sound-on { display: inline; }
#sound-button[aria-pressed="true"] .sound-off { display: none; }
.game-stage { height: 340px; position: relative; background: #FBFAF5; }
#game-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
#game-canvas:focus-visible { outline-offset: -4px; }
.stage-topline { position: absolute; top: 18px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.stage-caption { font: 8px "Courier New", monospace; font-weight: 700; letter-spacing: 1.2px; color: #666E64; display: inline-flex; gap: 7px; align-items: center; }
.live-dot { width: 5px; height: 5px; background: var(--positive); }
.lives { color: var(--danger); font-size: 16px; letter-spacing: 5px; font-family: Arial, sans-serif; }
.game-overlay { position: absolute; top: 55px; left: 50%; transform: translateX(-50%); width: 365px; max-width: calc(100% - 32px); text-align: center; padding: 0 14px; }
.overlay-kicker { font-size: 8px; font-weight: 700; letter-spacing: 1.7px; color: #727970; margin-bottom: 10px; }
.game-overlay h3 { font-size: 25px; letter-spacing: -.85px; margin: 0 0 8px; }
.game-overlay p { color: var(--muted); font-size: 11px; margin: 0 0 17px; line-height: 1.5; }
.primary-button { border: 1px solid var(--brand-strong); background: var(--brand-strong); color: white; min-height: 43px; border-radius: 8px; font-size: 12px; font-weight: 700; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 32px; transition: background .15s, transform .15s; }
.primary-button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.primary-button:active { transform: translateY(1px); }
.primary-button>span:last-child:not(:first-child) { font-size: 20px; line-height: 1; font-weight: 400; }
.start-hint { margin-top: 10px; color: #626960; font-size: 9px; }
kbd { display: inline-flex; justify-content: center; align-items: center; min-width: 24px; height: 24px; font: 12px var(--font); border: 1px solid #D1D6D9; border-bottom: 2px solid #BFC5CA; border-radius: 4px; background: #FAFBFC; color: #515962; }
.start-hint kbd { height: 17px; font-size: 9px; min-width: 17px; padding: 0 4px; margin: 0 2px; border-color: #D8DDD5; }
.game-stage[data-state="over"] .game-overlay, .game-stage[data-state="paused"] .game-overlay { top: 37px; background: #FFFFFFF5; padding: 20px 18px 16px; border: 1px solid #E2E5E9; border-radius: 12px; box-shadow: 0 5px 30px #22252B0C; }
.game-stage[data-state="over"] .overlay-kicker { color: var(--brand-strong); }
.game-stage[data-state="paused"] .live-dot { background: var(--brand); }
#share-button { display: block; margin: 11px auto 0; font-size: 10px; }
.stage-bottomline { position: absolute; bottom: 14px; left: 24px; right: 24px; display: flex; justify-content: space-between; font: 9px "Courier New", monospace; font-weight: 700; letter-spacing: 1px; color: #CBD0D2; pointer-events: none; }
.road-arrow { margin-left: 10px; color: #F0AC73; }
#distance>span { margin: 0 7px; color: #666E73; }
.game-bottom { display: flex; justify-content: space-between; padding: 16px 23px; min-height: 63px; gap: 10px; align-items: center; }
.game-bottom p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 10px; color: var(--muted); }
.control-divider { width: 1px; height: 16px; background: var(--border); margin: 0 11px; }
.game-goal { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.good-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); }
.touch-controls { display: none; gap: 8px; padding: 0 14px 14px; }
.touch-controls button { touch-action: none; user-select: none; border: 1px solid #CCD2D7; background: var(--page); border-radius: 9px; min-height: 54px; flex: 1; font-size: 23px; font-weight: 700; }
.touch-controls button small { display: block; font-size: 7px; font-weight: 600; letter-spacing: 1px; padding: 3px 0; }
.touch-controls button:active, .touch-controls button.is-pressed { background: var(--brand-soft); border-color: var(--brand-strong); }
.touch-controls .jump-control { background: var(--brand-strong); color: white; border-color: var(--brand-strong); flex: 1.45; }
.touch-controls .jump-control:active { background: var(--brand-hover); }
.how-to { padding: 31px 0 28px; scroll-margin-top: 20px; }
.how-to-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 17px; }
.how-to-heading h2 { font-size: 12px; margin: 0; font-weight: 700; }
.how-to-heading>span { font-size: 11px; color: var(--muted); }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.rule { display: flex; align-items: flex-start; gap: 13px; padding: 3px 25px 3px 0; position: relative; }
.rule+.rule { padding-left: 25px; border-left: 1px solid #DDE1E5; }
.rule-icon { width: 37px; min-width: 37px; height: 39px; border-radius: 7px; display: flex; justify-content: center; align-items: center; font-size: 23px; font-weight: 700; position: relative; }
.rule-icon>span { font-size: 11px; margin-left: 1px; }
.bad-icon { color: var(--danger); background: #FFE6E1; }
.good-icon { color: var(--positive); background: #E0F0E5; }
.record-icon { color: #8C541D; background: #F7EACA; }
.rule h3 { font-size: 12px; margin: 0 0 7px; }
.rule p { max-width: 238px; font-size: 11px; color: var(--muted); line-height: 1.65; margin: 0; }
.rule-number { position: absolute; top: -3px; right: 12px; font: 9px "Courier New", monospace; color: #767E85; }
.coming-strip { display: flex; align-items: center; gap: 15px; padding: 22px 24px; background: #ECEEF0; border: 1px solid #E3E6E9; border-radius: 10px; }
.coming-mark { font-size: 32px; color: var(--brand-strong); line-height: 1; }
.coming-strip p { margin: 0; font-size: 12px; }
.coming-strip p strong { font-weight: 700; display: block; margin-bottom: 6px; }
.coming-strip p span { color: var(--muted); font-size: 11px; }
.coming-pill { margin-left: auto; letter-spacing: 1px; font-size: 8px; color: var(--muted); white-space: nowrap; }
.coming-pill>span { font-size: 16px; margin-left: 13px; }
.site-footer { max-width: 1184px; margin: 0 auto; padding: 24px 32px 25px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.footer-left, .footer-right { display: flex; align-items: center; gap: 13px; font-size: 9px; color: var(--muted); }
.footer-brand { font-size: 13px; color: #4A5159; font-weight: 700; letter-spacing: -.5px; }
.text-button { font: inherit; border: none; padding: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--brand-strong); }
dialog { max-width: 470px; width: calc(100% - 32px); border: 1px solid var(--border); padding: 26px; border-radius: 17px; color: var(--text); box-shadow: 0 24px 80px #0002; }
dialog::backdrop { background: #22252B70; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dialog-top .eyebrow { font-size: 8px; }
.dialog-top button { font-size: 23px; }
dialog h2 { font-size: 29px; line-height: 1.15; letter-spacing: -1px; margin: 24px 0 18px; }
dialog p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.dialog-callout { font-size: 12px; line-height: 1.7; padding: 14px; background: var(--brand-soft); border-radius: 8px; margin: 17px 0 24px; }
.save-option { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--border-control); border-radius: 8px; margin: 22px 0 14px; }
.save-option input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--brand-strong); flex-shrink: 0; }
.save-option strong { font-size: 12px; }
.save-option small { display: block; font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 7px; }
dialog .small-print { font-size: 11px; }
.secondary-button { border: 1px solid var(--border-control); background: white; border-radius: 6px; padding: 10px 13px; font-size: 12px; }
.secondary-button:hover { background: var(--page); }
.noscript-note { padding: 12px 24px; font-size: 13px; color: var(--danger); }
@media (min-width: 1450px) { .hero { padding-top: 58px; padding-bottom: 36px; } }
@media (pointer: coarse) { .touch-controls { display: flex; } .icon-button { width: 43px; height: 43px; } }
@media (max-width: 850px) {
 .header-inner { padding: 0 24px; gap: 20px; height: 75px; }
 nav { gap: 19px; }
 .launch-status { font-size: 10px; padding: 8px 10px; }
 main { padding: 0 24px; }
 .decoration-one { left: 2%; font-size: 65px; }
 .decoration-two { right: 2%; font-size: 70px; }
 .game-toolbar { padding: 16px 18px; gap: 12px; }
 .scoreboard { gap: 18px; margin-right: 0; }
 .game-bottom { padding: 14px 18px; }
 .control-divider { margin: 0 5px; }
 .game-goal { font-size: 9px; }
 .rule { gap: 9px; padding-right: 14px; }
 .rule+.rule { padding-left: 14px; }
 .rule-icon { width: 32px; min-width: 32px; height: 35px; }
 .rule-number { display: none; }
 .site-footer { padding: 22px 24px; }
 .footer-left>span:last-child { display: none; }
}
@media (max-width: 620px) {
 .header-inner { height: 68px; padding: 0 18px; gap: 15px; }
 .brand { font-size: 25px; gap: 8px; }
 .brand-icon { width: 29px; height: 29px; }
 nav { display: none; }
 .launch-status { margin-left: auto; font-size: 0; padding: 8px; border: none; background: none; }
 .launch-status::after { content: "IN ARRIVO"; font-size: 8px; letter-spacing: 1px; }
 main { padding: 0 14px; }
 .hero { padding: 34px 0 24px; }
 .hero .eyebrow { font-size: 7px; letter-spacing: 1.1px; gap: 6px; }
 .mini-flag { width: 9px; height: 9px; background-size: 6px 6px; }
 h1 { font-size: 44px; letter-spacing: -2px; margin: 15px 0 14px; }
 .hero p { font-size: 12px; line-height: 1.8; }
 .hero-note { font-size: 9px; margin-top: 14px; }
 .hero-decoration { display: none; }
 .game-shell { border-radius: 12px; }
 .game-toolbar { min-height: 76px; padding: 13px 12px; gap: 9px; }
 .game-name { gap: 6px; }
 .flag-icon { width: 20px; height: 23px; }
 .game-name h2 { font-size: 15px; margin-bottom: 5px; gap: 5px; }
 .edition { display: none; }
 .game-name .tiny-label { font-size: 5.5px; letter-spacing: .8px; }
 .scoreboard { gap: 11px; }
 .score-item { min-width: 43px; gap: 6px; }
 .score-item output { font-size: 18px; letter-spacing: .5px; }
 .score-item .tiny-label { font-size: 6px; letter-spacing: .5px; }
 .toolbar-actions { gap: 4px; padding-left: 0; border-left: 0; }
 .icon-button { width: 31px; height: 33px; border-radius: 6px; }
 .toolbar-actions svg { width: 17px; height: 17px; }
 .game-stage { height: 306px; }
 .stage-topline { top: 14px; left: 13px; right: 13px; }
 .stage-caption { font-size: 7px; letter-spacing: .6px; }
 .lives { font-size: 14px; letter-spacing: 3px; }
 .game-overlay { top: 52px; max-width: calc(100% - 20px); }
 .overlay-kicker { font-size: 7px; letter-spacing: 1px; }
 .game-overlay h3 { font-size: 22px; }
 .game-overlay p { font-size: 10px; margin-bottom: 14px; }
 .primary-button { min-height: 42px; font-size: 11px; }
 .start-hint { font-size: 8px; margin-top: 9px; }
 .stage-bottomline { bottom: 10px; left: 13px; right: 13px; font-size: 7px; letter-spacing: .4px; }
 .game-stage[data-state="over"] .game-overlay, .game-stage[data-state="paused"] .game-overlay { top: 37px; }
 .game-bottom { padding: 12px; justify-content: center; min-height: 40px; }
 .game-bottom p { display: none; }
 .game-goal { font-size: 9px; }
 .touch-controls { display: flex; padding: 0 12px 12px; gap: 7px; }
 .how-to { padding: 24px 4px; }
 .how-to-heading { gap: 9px; margin-bottom: 18px; }
 .how-to-heading h2 { font-size: 11px; }
 .how-to-heading>span { font-size: 9px; }
 .rules-grid { grid-template-columns: 1fr; gap: 16px; }
 .rule, .rule+.rule { border: none; padding: 0; gap: 13px; align-items: center; }
 .rule-icon { width: 37px; min-width: 37px; height: 39px; }
 .rule h3 { margin-bottom: 4px; font-size: 12px; }
 .rule p { max-width: 280px; font-size: 10px; }
 .rule-number { display: block; top: 2px; right: 0; }
 .coming-strip { padding: 18px 15px; gap: 11px; border-radius: 8px; }
 .coming-mark { font-size: 27px; }
 .coming-strip p strong { font-size: 11px; line-height: 1.4; }
 .coming-strip p span { font-size: 10px; line-height: 1.5; display: block; }
 .coming-pill { display: none; }
 .site-footer { padding: 21px 18px 24px; gap: 15px; align-items: flex-start; }
 .footer-right { flex-direction: column; align-items: flex-end; gap: 9px; font-size: 8px; text-align: right; }
 .footer-brand { font-size: 12px; }
}
@media (max-width: 360px) { h1 { font-size: 39px; } .best-item { display: none; } .game-name .tiny-label { font-size: 5px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
