/* Wave 3 (SkillSafe additions): styles for the split chip, the added buttons, touch pads and dialogs.
   Colours and type are the game's own (--cy, --mg, --am, --mono from index.html). */
.ssk-root {
  --ssk-bg: #060a12; --ssk-fg: #dff9ff; --ssk-muted: #9fc3d1; --ssk-line: rgba(127, 243, 255, .28);
  --ssk-accent: #7ff3ff; --ssk-accent-fg: #021016; --ssk-radius: 0px; --ssk-scrim: rgba(3, 4, 10, .74);
  --ssk-font: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.ssk-root .ssk-card { border-left: 3px solid #ff3d9a; }
.ssk-root .ssk-title { font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 1.05em; }
.ssk-root .ssk-big { font: 200 2.9em/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .06em; text-shadow: 0 0 22px rgba(95, 242, 255, .6); }
/* the game styles every <button> (wide tracking, glow); dialogs get calmer buttons */
.ssk-root .ssk-btn, .ssk-root .ssk-tab { letter-spacing: .08em; font-weight: 600; font-size: 13px; box-shadow: none; background: transparent; color: var(--ssk-fg); }
.ssk-root .ssk-btn { padding: 9px 12px; text-transform: uppercase; }
.ssk-root .ssk-btn:hover { background: rgba(127, 243, 255, .12); color: var(--ssk-fg); }
.ssk-root .ssk-btn.ssk-primary, .ssk-root .ssk-btn.ssk-primary:hover, .ssk-root .ssk-tab[aria-selected="true"] { background: var(--ssk-accent); color: var(--ssk-accent-fg); }
.ssk-root .ssk-tab { padding: 6px 12px; border-radius: 0; }
.ssk-root .ssk-tab:hover { background: transparent; color: var(--ssk-fg); }
.ssk-root .ssk-pre { letter-spacing: .04em; line-height: 1.5; }
.ssk-root .ssk-toast { border-radius: 0; border-left: 3px solid #ff3d9a; font-size: 13px; letter-spacing: .06em; bottom: max(150px, env(safe-area-inset-bottom)); }

/* title: two more buttons in the author's row, in the quiet style of NEW RUN */
#title .btns.w3-btns { flex-wrap: wrap; }
.w3-btn { border-color: #56707c; color: #9fc3d1; box-shadow: none; background: transparent; }

/* in play: gap chip under the author's counters, and one small menu button */
.w3-chip { right: 22px; top: 134px; padding: 8px 14px; min-width: 178px; font-size: 11px; letter-spacing: .14em; border-right: 3px solid var(--mg); }
.w3-chip[hidden] { display: none; }
.w3-chip-row { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.w3-chip-row .n { color: #9fc3d1; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.w3-chip-row .v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--am); }
.w3-chip-row.ahead .v { color: #7dffb0; }
.w3-menu { position: absolute; right: 22px; top: 102px; pointer-events: auto; padding: 5px 12px; font-size: 10px; letter-spacing: .3em;
  background: rgba(4, 8, 16, .72); border-color: rgba(127, 243, 255, .28); color: #9fc3d1; box-shadow: none; }
#hud:not(.on) .w3-menu { pointer-events: none; }

/* the platform's corner pet sits on the speedometer: out of the way only during a run */
.w3-playing #ss-overlay { display: none !important; }

/* touch pads (coarse pointers only): they press the same keys through the author's __game.hold */
.w3-pads { display: none; position: fixed; inset: auto 0 0 0; padding: 0 max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  justify-content: space-between; align-items: flex-end; pointer-events: none; z-index: 5; }
.w3-playing .w3-pads { display: flex; }
.w3-pl, .w3-pr { display: grid; gap: 8px; pointer-events: auto; }
.w3-pl { grid-template-columns: 76px 76px; }
.w3-pr { grid-template-columns: 76px 76px; }
.w3-pad { height: 62px; padding: 0; font-size: 12px; letter-spacing: .12em; touch-action: none; user-select: none; -webkit-user-select: none;
  background: rgba(4, 8, 16, .55); border-color: rgba(127, 243, 255, .5); color: var(--cy); box-shadow: none; }
.w3-pad.on, .w3-pad:hover { background: rgba(127, 243, 255, .35); color: #fff; }
.w3-pl .w3-pad { font-size: 22px; }
/* with pads on screen the author's map and speedometer move up out from under the thumbs */
.w3-touch #mapbox { bottom: auto; top: 20px; left: 22px; }
.w3-touch #map { width: 96px; height: 96px; }
.w3-touch #mapbox small { display: none; }
.w3-touch #speedo { right: 22px; bottom: 160px; transform: scale(.5); transform-origin: right bottom; }
.w3-touch #msg { bottom: 14px; min-height: 0; width: min(640px, calc(100vw - 380px)); font-size: 11px; }
.w3-touch #where { display: none; }
/* a phone held sideways is too short for the author's title text: the keyboard list goes, the buttons stay on screen */
@media (max-height: 560px) {
  .w3-touch #title .keys, .w3-touch #title .kicker { display: none; }
  .w3-touch #title h1 { font-size: 44px; }
  .w3-touch #title p { margin: 10px 0 14px; font-size: 12px; line-height: 1.45; }
}
.w3-touch #prompt { bottom: auto; top: 64px; }
@media (max-width: 760px) {
  .w3-chip { right: 10px; min-width: 150px; }
  .w3-menu { right: 10px; }
  #title .btns.w3-btns button { padding: 12px 16px; letter-spacing: .18em; font-size: 12px; }
}
