/* Kickflip Arcade: the cabinet, menus over the canvas, touch pads. Tokens come from site.css. */
.arcade { padding-top: 28px; padding-bottom: 64px; }
.arcade-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.arcade-head h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1; }
.arcade-head h1 span { color: var(--gold); }
.arcade-head .kicker { order: 2; margin: 0; }

.cabinet { border: 2px solid var(--outline); background: var(--panel); box-shadow: var(--shadow); padding: 10px; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #121a26; overflow: hidden; }
#arcade { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; outline: none; cursor: pointer; }

.ov { position: absolute; inset: 0; display: grid; place-items: start center; padding: 6% 12px 12px; background: linear-gradient(rgba(11, 15, 20, 0.45), rgba(11, 15, 20, 0) 75%); }
.ov[hidden] { display: none; }
.ov-card { background: rgba(18, 26, 35, 0.94); border: 2px solid var(--outline); box-shadow: var(--shadow-sm); padding: 14px 16px; width: min(360px, 100%); text-align: center; }
.ov-card .label { margin: 0 0 10px; }
.ov-card .label.bad { color: var(--red-2); }
.picker { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; margin-bottom: 12px; }
.picker b { display: block; font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: 0.04em; }
.picker small { display: none; color: var(--dim); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.arrow { height: 34px; border: 2px solid var(--outline); background: var(--panel-3); color: var(--gold); font-size: 14px; cursor: pointer; box-shadow: var(--shadow-sm); }
.arrow:hover { background: var(--line-2); }
.btn.wide { width: 100%; }
.cab-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 2px 0; }
.keys { margin: 0; font-size: 12px; color: var(--dim); }
.cab-bar .linkish { margin: 0; white-space: nowrap; }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-bottom-width: 2px; padding: 0 5px; background: var(--panel-2); color: var(--text); }
.big-score { font-family: var(--display); font-size: 44px; line-height: 1; margin: 0 0 6px; color: var(--gold); }
.ov-card .dim { margin: 0 0 4px; }
.ov-card .row { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.linkish { margin-top: 10px; background: none; border: 0; color: var(--dim); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }

.pads { display: none; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 8px; margin-top: 10px; }
.pads button { height: 76px; padding: 0 4px; border: 2px solid var(--outline); background: var(--panel-3); color: var(--text); font-family: var(--display); font-size: 18px; letter-spacing: 0.04em; box-shadow: var(--shadow-sm); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pads button:active { background: var(--line-2); transform: translate(2px, 2px); box-shadow: none; }
.pads small { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0; }
#pad-jump { background: var(--gold); color: var(--gold-ink); }
#pad-jump small { color: var(--gold-ink); }
@media (hover: none) and (pointer: coarse) { .pads { display: grid; } .keys { visibility: hidden; } }

.arcade-info { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 20px; }
.arcade-info > * { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; }
.arcade-info .label { display: block; margin: 0 0 10px; }
.drive-row { display: flex; gap: 8px; }
.drive-row input { flex: 1; min-width: 0; background: var(--bg-2); border: 2px solid var(--outline); color: var(--text); font: 15px var(--mono); padding: 10px 12px; }
.drive-row input:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
#car-msg { margin: 10px 0 0; }
.howto ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--dim); }
.howto li { margin: 2px 0; }
.howto b { color: var(--text); font-weight: 500; }
.soon p { margin: 0; }

@media (min-width: 1000px) { .picker small { display: block; } }
@media (max-width: 820px) { .arcade-info { grid-template-columns: 1fr; } }
@media (max-width: 600px) { /* phones: menus sit under the screen instead of covering it */
  .screen { overflow: visible; aspect-ratio: auto; background: none; }
  #arcade { aspect-ratio: 16 / 9; height: auto; background: #121a26; }
  .ov { position: static; background: none; padding: 8px 0 0; }
  .ov-card { width: 100%; }
}
@media (max-width: 480px) {
  .cabinet { padding: 6px; }
  .ov-card { padding: 12px; }
  .picker b { font-size: 15px; }
  .big-score { font-size: 32px; }
}
