/* Safe zones for the playground games (see docs/superpowers/specs/2026-10-18-hud-safe-zones-design.md): the middle band
   (20% to 70% of the height, to 60% in portrait) is for play. tests/e2e/hud-zones-e2e.js checks it. Loaded after world.css. */
:root { --hud-top: calc(max(14px, env(safe-area-inset-top)) + 54px); --top-edge: max(6px, env(safe-area-inset-top)); }

/* The dock: landscape sits between the joystick and the Emote and Run buttons, above the game's own control (--dock-lift,
   set by dock.js); it never rises above 70% of the height. A card takes the control's place while it is open. */
.g-dock { position: fixed; z-index: 13; left: 216px; right: 204px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  bottom: max(8px, env(safe-area-inset-bottom), calc(var(--dock-lift, 0px) + 4px)); pointer-events: none; }
.g-dock.has-card { bottom: max(8px, env(safe-area-inset-bottom)); }
body:has(> .g-dock.has-card) > .pk-bar, body:has(> .g-dock.has-card) > .tb-bar, body:has(> .g-dock.has-card) > .lk-bar { visibility: hidden; }
.g-dock > * { pointer-events: auto; }
.g-dock [hidden] { display: none; }
.g-dock > .g-hint, .g-dock > .g-ref, .g-dock > .g-replay { position: static; transform: none; width: auto; max-width: 100%; margin: 0; }
.g-dock.has-card > .g-hint, .g-dock.has-card > .g-ref, .g-dock.has-card > .g-replay, .g-dock.has-ref > .g-hint { display: none; }
.g-dock > .talk { position: static; transform: none; width: 100%; max-width: 560px; padding: 8px 14px 10px; border-radius: var(--cz-r-md);
  max-height: max(128px, 46vh);
  background: var(--cz-surface); box-shadow: inset 0 0 0 3px var(--cz-line), 0 4px 0 var(--cz-ledge); z-index: auto; }
.g-dock > .talk { animation-name: dockTalkPop; }
@keyframes dockTalkPop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.g-dock .talk-say { font-size: 17px; margin: 2px 0 6px; }
.g-dock .talk-row, .g-dock .talk-row.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; background: transparent; position: static; margin: 0; padding: 6px 0 0; }
.g-dock .talk-row.stack .talk-btn:last-child:nth-child(odd) { grid-column: auto; }
.g-dock .talk-btn, .g-dock .talk-row.stack .talk-btn { min-height: 44px; font-size: 15px; padding: 6px 12px; border-radius: var(--cz-r-sm); line-height: 1.2; overflow-wrap: anywhere; }
@media (max-height: 520px) {
  .g-dock > .g-ref, .g-dock > .g-hint { font-size: 14px; padding: 3px 12px; }
  .g-dock .talk-who { font-size: 13px; }
  .g-dock .talk-say { font-size: 15px; margin: 0 0 4px; }
  .g-dock .talk-row { padding-top: 2px; }
}
/* Portrait: a strip right above the big joystick (168px and its border), clear of the right-hand rail, from 60% down. */
@media (max-width: 900px) and (min-height: 521px) {
  .g-dock { left: 12px; right: 96px; bottom: max(calc(max(24px, env(safe-area-inset-bottom)) + 184px), calc(var(--dock-lift, 0px) + 4px)); }
  .g-dock.has-card { bottom: calc(max(24px, env(safe-area-inset-bottom)) + 184px); }
  .g-dock > .talk { max-height: max(150px, calc(40vh - 100px)); }
  /* The referee's call can run several lines; at the bottom it covers the player, so it sits at the top of the play band, under the pill, instead. */
  .g-dock > .g-ref { position: fixed; left: 50%; transform: translateX(-50%); top: calc(20vh + 4px); width: max-content;
    max-width: calc(100% - 32px); font-size: 14px; line-height: 1.2; padding: 4px 12px; opacity: .9; }
  /* Sungka has no joystick or runner: the board is framed above its own bar, so the dock and its call sit on that bar. */
  body:has(> .sgbar) .g-dock, body:has(> .sgbar) .g-dock.has-card { bottom: calc(var(--dock-lift, 0px) + 4px); }
  body:has(> .sgbar) .g-dock > .g-ref { position: static; transform: none; top: auto; width: auto; max-width: 100%; }
}

/* A small card just under the top bar; it does not freeze her. */
.talk.talk-banner { width: min(420px, calc(100% - 24px)); padding: 8px 14px 10px; border-radius: var(--cz-r-md); opacity: .96; max-height: 40vh; }
.talk-banner .talk-say { font-size: 17px; margin: 2px 0 4px; }
.talk-banner .talk-sub { font-size: 13px; margin: 0 0 6px; }
.talk-banner .talk-btn { min-height: 36px; font-size: 15px; padding: 4px 16px; }
@media (max-height: 520px) {
  .talk.talk-banner { left: 50%; right: auto; transform: translateX(-50%); width: min(420px, calc(100% - 232px)); }
}

/* Top bar. Portrait: the pill under the HUD row, the team rows under it, the ✖ under Refresh. */
.g-pill { top: var(--hud-top); max-width: calc(100% - 128px); font-size: 13px; padding: 3px 12px; gap: 6px; background: var(--cz-hud); box-shadow: 0 2px 0 var(--cz-ledge); }
.g-roster { top: calc(var(--hud-top) + 34px); }
.g-roster-row { box-shadow: none; }
.g-pause { position: fixed; right: 16px; top: calc(var(--hud-top) + 4px); z-index: 12; width: 40px; height: 40px; min-height: 0; padding: 0;
  border-radius: 50%; font: 900 22px/1 system-ui, sans-serif; color: var(--cz-on-hud); text-shadow: none; background: var(--cz-hud);
  border: 3px solid var(--cz-plum-deep); box-shadow: 0 3px 0 var(--cz-ledge), 0 5px 8px var(--cz-ledge); }
.g-pause:active { transform: translateY(3px); box-shadow: 0 0 0 var(--cz-ledge); }
.g-noise { top: calc(var(--hud-top) + 48px); padding: 2px 10px; font-size: 44px; line-height: 1; color: var(--cz-on-main); box-shadow: 0 0 0 3px var(--cz-line); }
/* Wide or short screens: the pill at the very top edge between the HUD pills and Settings, the team rows side by side. */
@media (min-width: 900px), (max-height: 520px) {
  .g-pill { top: var(--top-edge); max-width: calc(100% - 700px); }
  .g-roster { top: calc(var(--top-edge) + 30px); flex-direction: row; gap: 6px; }
  .g-noise { top: calc(var(--hud-top) + 4px); right: 64px; }
}
/* Short screens: the ⏸ joins the HUD row, left of Settings; the pill and the team rows end at its left (the HUD pills on
   the left grow with the streak, so they are not centred) and the speaker sits under the ⏸. */
@media (max-height: 520px) {
  .g-pause { top: max(14px, env(safe-area-inset-top)); right: 152px; }
  .g-pill, .g-roster { left: auto; right: 200px; transform: none; max-width: calc(100% - 550px); }
  .g-roster { max-width: none; }
  .g-noise { top: calc(var(--top-edge) + 30px); right: 152px; font-size: 32px; }
}

/* Wide screens have room beside the joystick: Tumbang's bar stays at the bottom edge while she runs. */
@media (min-width: 900px) { .tb-bar.tb-free { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 8px); } }

/* During a game (the ⏸ shows) Emote is hidden and the tired heart sits above Run, out of the band.
   A phone's rail already keeps them low. */
@media (min-width: 601px) {
  body:has(> .g-pause:not([hidden])) .w-heart { right: 16px; bottom: calc(max(24px, env(safe-area-inset-bottom)) + 80px); }
}

/* The skill rail (boot/skill-rail.js). Phone: 48px buttons in the right-hand column just above Run, two to a column. Tablet:
   64px. Wide or short screens: one row to the left of Run, at the bottom, so the play band stays clear; the action button, the
   tired heart and the dock make room through --skills-n (buttons) and --skills-cols (set on body by the rail). */
:root { --sk: 48px; --skills-n: 0; --skills-cols: 0; }
@media (min-width: 768px) and (min-height: 521px) { :root { --sk: 64px; } }
.w-skills { position: fixed; z-index: 6; right: calc(var(--sprint-r, 16px) + 68px); bottom: max(24px, env(safe-area-inset-bottom));
  display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.w-skills[hidden] { display: none; }
.w-skill { position: relative; flex: 0 0 auto; width: var(--sk); height: var(--sk); margin: 0; padding: 0; box-sizing: border-box; display: grid; place-items: center;
  border: 3px solid var(--cz-plum-deep); border-radius: 50%; cursor: pointer; touch-action: manipulation; direction: ltr;
  background: var(--cz-hud);
  box-shadow: 0 4px 0 var(--cz-ledge), 0 8px 16px var(--cz-ledge); transition: transform .08s, box-shadow .08s; }
.w-skill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cz-ledge); }
.w-skill:focus-visible { outline: 4px solid var(--cz-hud-accent); outline-offset: 3px; }
.w-skill[aria-disabled="true"] { opacity: .45; }
.w-skill .ic { position: relative; font-size: calc(var(--sk) * .5); line-height: 1; }
.w-skill-ring { position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(color-mix(in srgb, var(--cz-plum-deep) 80%, transparent) var(--cd, 0%), transparent 0); }
.w-skill.cooling .w-skill-ring { opacity: 1; }
.w-skill-cd { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font: 800 calc(var(--sk) * .34)/1 'Baloo 2', system-ui, sans-serif; color: var(--cz-on-hud); text-shadow: 0 1px 2px var(--cz-plum-deep); }
.w-skill-cd[hidden] { display: none; }
.w-skill.cooling .ic { opacity: .35; }
.w-skill-cost { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); display: flex; gap: 2px;
  padding: 2px 4px; border-radius: 999px; background: var(--cz-plum-deep); pointer-events: none; }
.w-skill-pip { width: 4px; height: 4px; border-radius: 50%; background: var(--cz-leaf); }
.w-skill[aria-disabled="true"] .w-skill-pip { background: var(--cz-terracotta); }
.w-skill-new { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid var(--cz-on-hud); border-radius: 50%;
  background: var(--cz-bougainvillea); animation: w-skill-new 1.2s ease-in-out infinite; }
.w-skill.shake { animation: w-skill-shake .25s; }
.w-skill-hint { position: absolute; right: 0; bottom: calc(100% + 8px); max-width: 60vw; padding: 3px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font: 800 14px/1.2 'Baloo 2', system-ui, sans-serif; color: var(--cz-on-hud); background: var(--cz-hud); box-shadow: 0 2px 0 var(--cz-ledge); }
.w-skill-hint[hidden] { display: none; }
/* The arc (skill-rail.js place()): each key, and Run when a game key holds the corner, is placed inline from the bottom-right
   corner by arcSlots; this layer only holds them. Before the first place() the row rules above are the fallback. */
body .w-skills.arc, body .w-rail > .w-skills.arc { position: fixed; right: 0; bottom: 0; width: 0; height: 0; min-height: 0; margin: 0; padding: 0;
  background: none; display: block; }
body .w-skills.arc[hidden], body .w-rail > .w-skills.arc[hidden] { display: none; }
.w-skills.arc > .w-skill { position: fixed; }
.w-skills.arc > .w-skill-hint { position: fixed; right: 12px; bottom: calc(var(--arc-h, 160px) + 8px); }
@keyframes w-skill-new { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes w-skill-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .w-skill, .w-skill-new, .w-skill.shake { animation: none; transition: none; } }

@media (max-width: 600px) {
  .w-rail > .w-skills { position: relative; right: auto; bottom: auto; width: auto; min-height: 0; padding: 0; border-radius: 0; gap: 8px;
    display: grid; grid-template-rows: repeat(2, var(--sk)); grid-auto-flow: column; justify-content: end; direction: rtl; }
  .w-rail > .w-skills[hidden] { display: none; }
}
@media (max-width: 600px) and (max-height: 520px) {
  .w-rail > .w-skills { display: contents; }
  .w-rail > .w-skills[hidden] { display: none; }
}
@media (max-width: 600px) and (min-height: 521px) {
  .g-dock { right: max(96px, calc(var(--arc-w, 116px) + 4px)); }
  body:has(> .lk-bar.is-sipa) .g-dock { right: max(212px, calc(var(--arc-w, 116px) + 4px)); }
}


@media (min-width: 601px) {
  body { --sprint-r: 16px; --skills-right: max(212px, calc(var(--arc-w, 196px) + 4px)); }
  body:has(> .lk-bar) { --sprint-r: 128px; }
  body:has(> .lk-bar.is-sipa) { --sprint-r: 148px; }
  .w-act { right: var(--skills-right); max-width: calc(100% - 212px - var(--skills-right)); }
}
@media (min-width: 601px) and (max-height: 520px) {
  body:has(> .lk-bar) { --sprint-r: 108px; }
  body:has(> .lk-bar.is-sipa) { --sprint-r: 124px; }
}
@media (min-width: 761px) {
  body:has(> .w-rail > :where(.w-skills:not([hidden]))) .w-heart { right: var(--arc-w, 196px); }
}
@media (min-width: 901px), (min-width: 601px) and (max-height: 520px) {
  .g-dock { right: max(204px, calc(var(--arc-w, 196px) + 4px)); }
}

/* A phone in portrait: the End confirm card sits just under the zoom gauge, so the gauge's track is a little shorter. */
@media (max-width: 600px) and (min-height: 521px) { .w-zoom-track { height: 72px; } }

/* Tumbang and Piko bars stay clear of the skill rail: wide or short screens centre them between the joystick and the rail;
   a phone in portrait keeps them left of the rail's columns. */
@media (min-width: 601px) {
  .tb-bar { left: min(50%, calc((180px + 100% - var(--skills-right)) / 2)); max-width: min(calc(100% - 24px), calc(100% - 180px - var(--skills-right))); }
}
@media (max-width: 600px) and (min-height: 521px) {
  .tb-bar { left: 12px; transform: none; max-width: calc(100% - 40px - var(--skills-cols) * (var(--sk) + 8px)); }
  .tb-bar .tb-row { gap: 6px; }
  .tb-bar .tb-stand { padding: 0 12px; }
}

/* The message pill: a rounded panel, centred, the score on its own line above the words, at most three lines. */
.g-pill-text { text-align: center; white-space: pre-line; }
body .pk-pill { justify-content: center; width: min(460px, calc(100% - 132px)); border-radius: 18px; padding: 6px 14px; line-height: 1.25; }
body .pk-pill .g-pill-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
@media (min-width: 900px), (max-height: 520px) { body .pk-pill { width: min(460px, calc(100% - 700px)); } }
@media (max-height: 520px) { body .pk-pill { left: auto; right: 200px; transform: none; width: min(420px, calc(100% - 550px)); } }

/* Piko's feet: two big dark keys, the foot above its word, a glow while pressed. */
body .pk-foot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; border: 3px solid var(--cz-plum-deep); border-radius: 18px;
  background: var(--cz-hud); color: var(--cz-on-hud); font-size: 18px; line-height: 1; box-shadow: 0 5px 0 var(--cz-ledge), 0 8px 14px var(--cz-ledge); }
body .pk-foot .pk-foot-ic { font-size: 28px; line-height: 1; }
body .pk-foot:active { transform: translateY(4px) scale(.98); background: var(--cz-main); color: var(--cz-on-main); box-shadow: 0 1px 0 var(--cz-ledge), 0 0 20px color-mix(in srgb, var(--cz-main) 60%, transparent); }
body .pk-bar .tb-row { gap: 10px; }
@media (max-height: 520px) { body .pk-foot { min-height: 50px; flex-direction: row; gap: 8px; font-size: 15px; } body .pk-foot .pk-foot-ic { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { body .pk-foot:active { transform: none; } }
/* Piko's buttons sit in the bottom corners, one per thumb: Left foot on the left; Right foot, Throw and Bend on the right.
   The bar keeps only the meter, centred without a transform so its fixed buttons stay pinned to the screen. */
body .tb-bar.pk-bar { left: 0; right: 0; width: max-content; margin: 0 auto; transform: none; max-width: none; padding: 0; background: none; pointer-events: none; }
body .pk-bar .tb-meter { pointer-events: auto; }
body .pk-bar .pk-left, body .pk-bar .pk-right { position: fixed; z-index: 12; bottom: calc(24px + env(safe-area-inset-bottom)); flex: none; pointer-events: auto; }
body .pk-bar .pk-left { left: calc(24px + env(safe-area-inset-left)); }
body .pk-bar .pk-right { right: calc(24px + env(safe-area-inset-right)); }
@media (max-width: 600px) { body .tb-bar.pk-bar { bottom: calc(24px + env(safe-area-inset-bottom) + 80px); } }
@media (min-width: 601px) { body:has(> .pk-bar) .w-skills { right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom) + 80px); } }

/* Skills: the same dark keys as Run, grouped in a soft capsule so they read as one set and clear the joystick and bubbles. */
.w-skill { background: var(--cz-hud); border-color: var(--cz-plum-deep); box-shadow: 0 4px 0 var(--cz-ledge), 0 8px 14px var(--cz-ledge); }
.w-skill:active { background: var(--cz-main); box-shadow: 0 1px 0 var(--cz-ledge), 0 0 16px color-mix(in srgb, var(--cz-main) 55%, transparent); }
@media (max-width: 600px) and (min-height: 521px) {
  .w-rail > .w-skills { gap: 10px; padding: 8px; border-radius: 34px; background: color-mix(in srgb, var(--cz-hud) 45%, transparent); justify-items: center; }
}
@media (min-width: 601px) { .w-skills { padding: 6px; border-radius: 40px; background: color-mix(in srgb, var(--cz-hud) 40%, transparent); } }

/* Sign board windows: a light, warm painted card. A band in the place's colour carries the title, the rules read as a plain
   list with one round icon each, one big yellow Play button, and the Close is a small round X in the corner. */
body .w-card.w-sign:not(#k) { --ink: var(--cz-ink); padding-top: 0; border: 0 !important; width: min(460px, 100%); border-radius: var(--cz-r-lg); color: var(--ink); background: var(--cz-surface);
  box-shadow: 0 0 0 3px var(--cz-line), 0 6px 0 3px var(--cz-ledge), var(--cz-shadow); }
body .w-card.w-sign:not(#k)::before, body .w-card.w-sign:not(#k)::after { display: none; }
body .w-card.w-sign .w-card-title:not(#k) { margin: 0 -18px 14px; padding: 16px 56px 14px; border: 0; border-radius: 24px 24px 0 0; font-size: 24px; text-align: center;
  color: var(--ink); text-shadow: none; background: var(--sign-tint, var(--cz-main)); background: color-mix(in srgb, var(--sign-tint, var(--cz-main)) 38%, var(--cz-cream));
  box-shadow: inset 0 -3px 0 var(--cz-line); }
body .w-sign .w-sign-lines { gap: 4px; margin-bottom: 8px; }
body .w-sign .w-sign-line:not(#k) { align-items: center; gap: 12px; padding: 6px 2px; border-radius: 0; background: transparent; color: var(--ink); font-size: 17px; line-height: 1.35; font-weight: 700; box-shadow: none; }
body .w-sign .w-sign-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; line-height: 1;
  background: var(--cz-surface); box-shadow: inset 0 0 0 3px var(--sign-tint, var(--cz-main)); }
body .w-sign .w-sign-story:not(#k) { margin: 8px 0 0; padding: 8px 14px; border-radius: 14px; background: var(--cz-sunk); color: var(--cz-ink); font-size: 15px; font-weight: 800; box-shadow: none; }
body .w-sign .w-sign-foot:not(#k) { position: static; margin-top: 14px; padding: 14px 0 0; border-top: 2px dashed var(--cz-ledge); }
body .w-sign .w-sign-foot .w-sign-go:not(#k) { min-height: 56px; font-size: 21px; border-radius: 16px; background-color: var(--cz-main); color: var(--cz-on-main);
  box-shadow: inset 0 0 0 2px var(--cz-line), 0 5px 0 var(--cz-ledge); }
body .w-sign .w-sign-foot .w-sign-read:not(#k) { min-height: 46px; border-radius: 14px; background-color: var(--cz-sunk); color: var(--ink); font-weight: 800;
  box-shadow: inset 0 0 0 2px var(--cz-line), 0 3px 0 var(--cz-ledge); }
body .w-sign .w-sign-foot .w-sign-read:not(#k):not(:disabled):hover { background-color: var(--cz-cream); }
body .w-sign .w-diff-label:not(#k) { color: var(--cz-ink-soft); }
body .w-sign .w-diff-btn:not(#k) { background-color: var(--cz-surface); color: var(--cz-ink); box-shadow: inset 0 0 0 2px var(--cz-line); font-weight: 800; }
body .w-sign .w-diff-btn:not(#k):not(:disabled):hover { background-color: var(--cz-sunk); color: var(--ink); }
body .w-sign .w-diff-btn.on:not(#k) { background-color: var(--cz-ok); color: var(--cz-on-ok); box-shadow: inset 0 0 0 2px var(--cz-line), 0 3px 0 var(--cz-ledge); }
body .w-sign .w-sign-foot .w-close:not(#k) { position: absolute; top: 10px; right: 12px; z-index: 2; display: grid; place-items: center; width: 38px; min-height: 38px; height: 38px;
  padding: 0; border-radius: 50%; font-size: 0; color: var(--ink); background-color: var(--cz-sunk); box-shadow: 0 2px 0 var(--cz-ledge); }
body .w-sign .w-sign-foot .w-close:not(#k)::before { content: '\2715'; font: 800 18px/1 system-ui, sans-serif; }
body .w-sign .w-sign-foot .w-close:not(#k):not(:disabled):hover { background-color: var(--cz-cream); color: var(--cz-danger); }
@media (max-height: 520px) {
  body .w-card.w-sign .w-card-title:not(#k) { padding: 10px 56px 8px; font-size: 20px; margin-bottom: 8px; }
  body .w-sign .w-sign-line:not(#k) { font-size: 15px; padding: 3px 2px; }
  body .w-sign .w-sign-icon { width: 34px; height: 34px; font-size: 18px; }
  body .w-sign .w-sign-foot:not(#k) { margin-top: 8px; padding-top: 8px; gap: 8px; }
  body .w-sign .w-sign-foot .w-sign-go:not(#k) { min-height: 46px; font-size: 18px; }
  body .w-sign .w-sign-foot .w-sign-read:not(#k) { min-height: 40px; }
}

/* Level window: the level badge and XP bar first, then Speed and Stamina as bars, then one card for each skill. */
body #hud-info:not(#k):not(#j) { width: min(320px, calc(100vw - 32px)); padding: 14px 16px 16px; border-radius: var(--cz-r-lg); color: var(--cz-ink); background: var(--cz-surface);
  box-shadow: 0 0 0 3px var(--cz-line), 0 6px 0 3px var(--cz-ledge), var(--cz-shadow); font: 800 15px/1.3 'Baloo 2', system-ui, sans-serif; }
.w-info-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.w-info-badge { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-size: 26px; color: var(--cz-on-main);
  background: var(--cz-main); box-shadow: 0 0 0 2px var(--cz-line), 0 3px 0 2px var(--cz-ledge); }
.w-info-who { flex: 1; min-width: 0; }
.w-info-sub { margin-top: 3px; font-size: 13px; color: var(--cz-ink-soft); }
.w-info-meter { margin-bottom: 10px; }
.w-info-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.w-info-k { opacity: 1; }
.w-info-v { color: var(--cz-ink-soft); }
.w-info-track { height: 12px; border-radius: 999px; overflow: hidden; background: var(--cz-sunk); box-shadow: inset 0 0 0 2px var(--cz-line); }
.w-info-fill { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: var(--cz-leaf); }
.w-info-meter.xp .w-info-fill { background: var(--cz-mango); }
.w-info-meter.speed .w-info-fill { background: var(--cz-blue); }
.w-info-meter.stamina .w-info-fill { background: var(--cz-terracotta); }
.w-goals { font-weight: 800; }
.w-goals.done { box-shadow: inset 0 0 0 3px var(--cz-leaf); }
.w-goals.lit { box-shadow: 0 4px 0 var(--cz-ledge), 0 0 0 3px var(--cz-hud-accent); }
.w-goals.lit.done { box-shadow: inset 0 0 0 3px var(--cz-leaf), 0 0 0 3px var(--cz-hud-accent); }
.w-goals-flame { margin-top: 10px; font-weight: 800; }
.w-goals-title { margin-bottom: 10px; font-weight: 800; }
/* Golden day: an outline, so it sits outside the done and lit rings (those are box-shadows). */
.w-goals.gold { outline: 3px solid var(--cz-mango); outline-offset: 3px; }
.w-goals-card.gold { box-shadow: inset 0 0 0 4px var(--cz-mango); }
.w-goals-card.gold .w-goals-title { color: var(--cz-terracotta-deep); }
.w-info-meter.goal .w-info-fill { background: var(--cz-leaf); }
.w-info-head { margin: 12px 0 6px; padding-top: 10px; border-top: 2px dashed var(--cz-ledge); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink-soft); }
.w-info-none { padding: 8px 12px; border-radius: 12px; background: var(--cz-sunk); color: var(--cz-ink); opacity: 1; }
body .w-info-skill:not(#k) { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-bottom: 6px; border-radius: 14px; background: var(--cz-sunk); box-shadow: none; }
.w-info-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; background: var(--cz-hud); }
.w-info-st { display: grid; min-width: 0; }
.w-info-name { font-size: 16px; }
.w-info-detail { font-size: 12px; color: var(--cz-ink); }

/* Sign board window: the close is a flat round X centred in the title band. */
body .w-card.w-sign .w-card-title:not(#k) { display: flex; align-items: center; justify-content: center; min-height: 62px; box-sizing: border-box; width: calc(100% + 36px); max-width: none; }
body .w-sign .w-sign-foot .w-close:not(#k) { top: 12px; right: 14px; width: 38px; height: 38px; min-height: 38px; background-color: var(--cz-sunk); box-shadow: inset 0 0 0 2px var(--cz-line); }
body .w-sign .w-sign-foot .w-close:not(#k)::before { font-size: 17px; }
body .w-sign .w-sign-foot .w-close:not(#k):not(:disabled):hover { background-color: var(--cz-cream); color: var(--cz-danger); }

/* Run is the corner key in town, the biggest key (72px, 64px sideways), with the skill buttons' look. When a game key holds the
   corner, Run joins the arc at skill size. */
:root { --corner: 72px; }
@media (max-height: 520px) { :root { --corner: 64px; } }
body .w-sprint:not(#k), body .w-rail > .w-sprint:not(#k) { width: var(--corner); height: var(--corner); font-size: calc(var(--corner) * .5); background: var(--cz-hud); }
body .w-sprint.in-arc:not(#k), body .w-rail > .w-sprint.in-arc:not(#k) { width: var(--sk); height: var(--sk); min-height: 0; padding: 0; font-size: calc(var(--sk) * .5); }
body .w-sprint[aria-pressed="true"]:not(#k) { background: var(--cz-hud-accent); }
.w-skills { right: calc(var(--sprint-r, 16px) + var(--corner) + 12px); }
@media (max-width: 600px) { .w-rail > .w-sprint { position: fixed; right: var(--sprint-r, 12px); bottom: var(--thumb-b, max(24px, env(safe-area-inset-bottom))); } }

/* Character maker: the same light cream card as the sign boards. Selected choices are green, Next and Done are the one yellow button. */
body .maker:not(#k):not(#j) { color: var(--cz-ink); border-radius: var(--cz-r-lg) var(--cz-r-lg) 0 0; background: var(--cz-surface); box-shadow: 0 -10px 30px var(--cz-ledge), 0 0 0 3px var(--cz-line); }
body .maker-title:not(#k):not(#j) { width: fit-content; margin: 0 auto 12px; padding: 0 12px 6px; border: 0; border-radius: 0; font-size: 24px; color: var(--cz-ink); text-shadow: none;
  background: none; box-shadow: none; border-bottom: 4px solid var(--cz-main); }
body .maker-title:not(#k):not(#j)::before, body .maker-title:not(#k):not(#j)::after { display: none; }
body .maker-label:not(#k):not(#j) { color: var(--cz-ink-soft); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
body .maker-step:not(#k):not(#j), body .maker-hint:not(#k):not(#j) { color: var(--cz-ink); }
body .maker-dot:not(#k):not(#j) { background: var(--cz-surface); border-color: var(--cz-line); }
body .maker-dot[aria-current="true"]:not(#k):not(#j) { background: var(--cz-line); border-color: var(--cz-line); }
body .maker-name:not(#k):not(#j) { border: 2px solid var(--cz-line); border-radius: var(--cz-r-sm); background: var(--cz-surface); color: var(--cz-ink); }
body .maker-bar:not(#k):not(#j) { background: var(--cz-surface); box-shadow: 0 -6px 10px -6px var(--cz-ledge); }
body :is(.maker-tab, .maker-opt):not(#k):not(#j) { background-image: none; background-color: var(--cz-sunk); color: var(--cz-ink); text-shadow: none; border-radius: var(--cz-r-sm);
  box-shadow: inset 0 0 0 2px var(--cz-line), 0 3px 0 var(--cz-ledge); }
body :is(.maker-tab, .maker-opt):not(#k):not(#j):not(:disabled):hover { background-color: var(--cz-cream); }
/* Cozy stage 5: a chosen tab or tile keeps its deep green under the pointer, so its cream words stay readable. */
body :is(.maker-tab, .maker-opt)[aria-pressed="true"]:not(#k):not(#j):not(:disabled):hover { background-color: var(--cz-ok); }
body .maker-tab[aria-pressed="true"]:not(#k):not(#j) { background-color: var(--cz-ok); color: var(--cz-on-ok); box-shadow: inset 0 0 0 3px var(--cz-line), 0 3px 0 var(--cz-ledge); }
body .maker-opt[aria-pressed="true"]:not(#k):not(#j) { background-color: var(--cz-ok); color: var(--cz-on-ok); box-shadow: inset 0 0 0 3px var(--cz-line), 0 3px 0 var(--cz-ledge); }
body .maker-opt.swatch:not(#k):not(#j) { background-color: transparent; box-shadow: 0 0 0 2px var(--cz-surface), 0 0 0 4px var(--cz-ledge); }
body .maker-opt.swatch[aria-pressed="true"]:not(#k):not(#j) { box-shadow: 0 0 0 2px var(--cz-surface), 0 0 0 5px var(--cz-line); }
body :is(.maker-done, .maker-next):not(#k):not(#j) { min-height: 54px; padding: 8px 34px; font-size: 21px; border-radius: var(--cz-r-sm); background-image: none; background-color: var(--cz-main); color: var(--cz-on-main);
  text-shadow: none; box-shadow: inset 0 0 0 2px var(--cz-line), 0 5px 0 var(--cz-ledge); }
body :is(.maker-done, .maker-next):not(#k):not(#j):not(:disabled):hover { background-color: var(--cz-main); }
body :is(.maker-back, .maker-undo):not(#k):not(#j) { min-height: 48px; padding: 8px 22px; border-radius: var(--cz-r-sm); background-image: none; background-color: var(--cz-sunk); color: var(--cz-ink); text-shadow: none;
  box-shadow: inset 0 0 0 2px var(--cz-line), 0 3px 0 var(--cz-ledge); }

/* Simple closet: two big Me / Pet switches, one row of chips that never wraps, square picture tiles. */
body .maker-tabs:not(#k):not(#j) { display: flex; flex-wrap: nowrap; gap: 10px; margin: 2px 0 8px; }
body .maker-tab:not(#k):not(#j) { flex: 1 1 0; min-height: 50px; padding: 0 10px; font-size: 19px; }
body .maker-chips:not(#k):not(#j) { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 0 -4px 4px; padding: 4px 4px 6px; scrollbar-width: none; }
body .maker-chip:not(#k):not(#j) { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--cz-r-pill); font: 800 15px 'Baloo 2', system-ui, sans-serif;
  background: var(--cz-sunk); color: var(--cz-ink); box-shadow: inset 0 0 0 2px var(--cz-line); cursor: pointer; }
body .maker-chip[aria-pressed="true"]:not(#k):not(#j) { background: var(--cz-hud); color: var(--cz-on-hud); box-shadow: none; }
body .maker-opt:not(#k):not(#j) { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; min-height: 56px; padding: 4px 8px; }
body .maker-opt.swatch:not(#k):not(#j) { width: 48px; min-width: 48px; height: 48px; min-height: 48px; padding: 0; }
body .maker-ic:not(#k):not(#j) { font-size: 26px; line-height: 1; }
body .maker-nm:not(#k):not(#j) { max-width: 76px; font-size: 13px; line-height: 1.1; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body .maker-opt.locked .maker-lock:not(#k):not(#j) { position: static; font-size: 11px; }
body .maker-row .maker-hint:not(#k):not(#j) { min-height: 0; margin-top: 6px; text-align: left; font-size: 15px; }
body .maker-empty:not(#k):not(#j) { padding: 12px; text-align: center; color: var(--cz-ink-soft); }
@media (orientation: portrait) { body .maker:not(.guided) .maker-title:not(#k):not(#j) { display: none; } }

/* Sign board close: a round coral key with a white X and a white ring, like the other game buttons. */
body .w-sign .w-sign-foot .w-close:not(#k) { top: 11px; right: 14px; width: 40px; height: 40px; min-height: 40px; color: var(--cz-ink); background-image: none; background-color: var(--cz-sunk);
  box-shadow: inset 0 0 0 2px var(--cz-line), 0 3px 0 var(--cz-ledge); transition: transform .1s, box-shadow .1s, background-color .15s; }
body .w-sign .w-sign-foot .w-close:not(#k)::before { content: '\2715'; font: 900 19px/1 system-ui, sans-serif; text-shadow: none; }
body .w-sign .w-sign-foot .w-close:not(#k):not(:disabled):hover { color: var(--cz-ink); background-color: var(--cz-cream); }
body .w-sign .w-sign-foot .w-close:not(#k):not(:disabled):active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--cz-line); }

/* Sign board close, glossy: an orange-red ball with a dark X cut into it, a lit lower edge and a shine on top. */
body .w-sign .w-sign-foot .w-close:not(#k) { top: 8px; right: 14px; width: 40px; height: 40px; min-height: 40px; color: transparent; font-size: 0;
  background-color: var(--cz-sunk);
  background-image: none;
  box-shadow: inset 0 0 0 2px var(--cz-line), 0 3px 0 var(--cz-ledge); }
body .w-sign .w-sign-foot .w-close:not(#k)::before, body .w-sign .w-sign-foot .w-close:not(#k)::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 10px;
  margin: -5px 0 0 -14px; border-radius: 5px; font: 0/0 system-ui; text-shadow: none;
  background: var(--cz-ink);
  box-shadow: none; }
body .w-sign .w-sign-foot .w-close:not(#k)::before { transform: rotate(45deg); }
body .w-sign .w-sign-foot .w-close:not(#k)::after { transform: rotate(-45deg); }
body .w-sign .w-sign-foot .w-close:not(#k):not(:disabled):hover { filter: brightness(1.08); background-color: var(--cz-cream); color: transparent; }
body .w-sign .w-sign-foot .w-close:not(#k):not(:disabled):active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--cz-line), 0 1px 0 var(--cz-ledge); }

/* The game frame's close: the same flat round close as a sign board's, sand with a plum X. */
body :is(.w-portal-x):not(#k):not(#j) { padding: 0; color: transparent; font-size: 0; text-shadow: none; border: 0; background-color: var(--cz-sunk);
  background-image: none;
  box-shadow: inset 0 0 0 2px var(--cz-line), 0 3px 0 var(--cz-ledge); }
body :is(.w-portal-x):not(#k):not(#j)::before, body :is(.w-portal-x):not(#k):not(#j)::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 9px;
  margin: -4.5px 0 0 -13px; border-radius: 5px; background: var(--cz-ink);
  box-shadow: none; }
body :is(.w-portal-x):not(#k):not(#j)::before { transform: rotate(45deg); }
body :is(.w-portal-x):not(#k):not(#j)::after { transform: rotate(-45deg); }
body :is(.w-portal-x):not(#k):not(#j):active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--cz-line), 0 1px 0 var(--cz-ledge); }

/* Bingo: the small card of six numbers at the left edge under the pill; it never covers the play band. */
.bn-card { position: fixed; left: 12px; top: calc(var(--hud-top) + 34px); z-index: 11; display: grid; grid-template-columns: repeat(3, 26px); gap: 3px; pointer-events: none; }
.bn-chip { width: 26px; height: 26px; border-radius: 8px; background: var(--cz-sunk); color: var(--cz-ink); font: 800 13px/26px 'Baloo 2', system-ui, sans-serif; text-align: center; box-shadow: 0 1px 0 var(--cz-ledge); }
.bn-chip.bn-called { background: var(--cz-main); color: var(--cz-on-main); }
.bn-chip.bn-on { background: var(--cz-ok); color: var(--cz-on-ok); box-shadow: inset 0 0 0 2px var(--cz-line); }

/* During a game the town buttons leave; the joystick leaves too where the game does not walk (games3d wantsWalk). */
body.g-tour :is(.w-emote, .w-emoterow) { visibility: hidden; }
body.in-game :is(.w-signs-pill, .w-look-pill, .w-goals, #hud-switch, .w-treat, .w-use, .w-emote, .w-emoterow), body.g-nowalk .w-joy { visibility: hidden; }

/* Sideways thumb spots: the joystick and the right-hand buttons sit 40px in from each side plus the notch, and 24px up. */
@media (max-height: 520px) {
  body { --thumb-l: calc(40px + env(safe-area-inset-left)); --thumb-r: calc(40px + env(safe-area-inset-right)); --thumb-b: max(24px, env(safe-area-inset-bottom));
    --sprint-r: var(--thumb-r); }
  body:has(> .lk-bar) { --sprint-r: calc(var(--thumb-r) + 92px); }
  body:has(> .lk-bar.is-sipa) { --sprint-r: calc(var(--thumb-r) + 108px); }
  .w-joy { left: var(--thumb-l); bottom: var(--thumb-b); }
  .lk-bar { right: var(--thumb-r); bottom: var(--thumb-b); }
  .w-sprint, body:has(> .lk-bar) .w-sprint { right: var(--sprint-r); bottom: var(--thumb-b); }
  .w-skills { bottom: var(--thumb-b); }
  body:has(> .lk-bar) > .w-rail { right: var(--sprint-r); }
  body:has(> .g-pause:not([hidden])) .w-heart { right: var(--sprint-r); bottom: calc(var(--thumb-b) + 64px); }
  body:has(> .lk-bar) .w-heart { right: var(--arc-w, calc(var(--sprint-r) + 64px)); }
  body .pk-bar .pk-left, body .pk-bar .pk-right { bottom: var(--thumb-b); }
  body .pk-bar .pk-left { left: var(--thumb-l); }
  body .pk-bar .pk-right { right: var(--thumb-r); }
  .tb-hold.tb-hold-round, .tb-stand.tb-stand-round { right: var(--thumb-r); bottom: var(--thumb-b); }
}

/* Tumbang Preso: one big, high-contrast line in the pill; the players down the left side beside the zoom gauge (the thrower
   who is up on top, glowing, the taya last); the can-hit burst. Portrait shows faces and hits only, under the referee's call. */
.g-pill.tb-pill { font: 800 17px/1.25 system-ui, sans-serif; color: var(--cz-on-hud); background: var(--cz-hud); padding: 6px 16px;
  border-radius: var(--cz-r-md); box-shadow: inset 0 0 0 2px var(--cz-plum-deep), 0 3px 0 var(--cz-ledge); }
@media (min-width: 900px) { .g-pill.tb-pill { font-size: 19px; } }
.tb-list { position: fixed; z-index: 12; left: calc(max(12px, env(safe-area-inset-left)) + 64px); top: calc(var(--hud-top) + 14px); width: 168px;
  display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.tb-goal { align-self: flex-start; font: 800 13px/1 system-ui, sans-serif; color: var(--cz-on-hud); background: var(--cz-hud); border-radius: 10px; padding: 4px 8px; }
.tb-row { position: relative; display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 5px; border-radius: 16px; opacity: .9;
  background: var(--cz-sunk); color: var(--cz-ink); font: 800 15px/1.1 system-ui, sans-serif; box-shadow: 0 2px 0 var(--cz-ledge);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), background-color .3s; }
.tb-face { flex: none; width: 28px; height: 28px; display: grid; place-items: center; font-size: 20px; border-radius: 50%; background: var(--cz-cream); }
.tb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-badge { flex: none; font-size: 12px; }
.tb-badge:empty { display: none; }
.tb-hits { flex: none; min-width: 26px; text-align: center; font-size: 17px; color: var(--cz-on-danger); background: var(--cz-danger); border-radius: 12px; padding: 2px 6px; }
.tb-row.tb-taya { background: var(--cz-cream); }
.tb-row.tb-taya .tb-badge { color: var(--cz-on-hud); background: var(--cz-hud); border-radius: 8px; padding: 2px 6px; font-size: 11px; }
.tb-row.tb-up { opacity: 1; background: var(--cz-main); animation: tbGlow 1.4s ease-in-out infinite; }
.tb-row.tb-up .tb-badge { font-size: 20px; animation: tbHop .7s ease-in-out infinite; }
.tb-row.tb-up.tb-pop { animation: tbPopIn .5s cubic-bezier(.3, 1.6, .5, 1), tbGlow 1.4s ease-in-out .5s infinite; }
@keyframes tbGlow { 0%, 100% { box-shadow: 0 0 0 3px var(--cz-line), 0 0 0 0 color-mix(in srgb, var(--cz-main) 60%, transparent); } 50% { box-shadow: 0 0 0 3px var(--cz-line), 0 0 0 10px transparent; } }
@keyframes tbPopIn { 0% { scale: .85; } 60% { scale: 1.08; } 100% { scale: 1; } }
@keyframes tbHop { 0%, 100% { translate: 0 0; rotate: -10deg; } 50% { translate: 0 -5px; rotate: 10deg; } }
.tb-hits.tb-bump { animation: tbBump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes tbBump { 0% { scale: 1; } 40% { scale: 1.5; background: var(--cz-terracotta); } 100% { scale: 1; } }
.tb-plus { position: absolute; right: 2px; top: -6px; font: 900 16px/1 system-ui, sans-serif; color: var(--cz-ink); text-shadow: 0 1px 0 var(--cz-cream);
  pointer-events: none; animation: tbPlus .9s ease-out forwards; }
@keyframes tbPlus { 0% { opacity: 0; translate: -30px 10px; scale: .6; } 30% { opacity: 1; scale: 1.2; } 100% { opacity: 0; translate: 0 -22px; scale: 1; } }
.tb-burst { position: fixed; z-index: 14; width: 0; height: 0; pointer-events: none; }
.tb-bit { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 4px; font-size: 18px; line-height: 16px; text-align: center;
  animation: tbBit 1.1s cubic-bezier(.15, .7, .4, 1) forwards; }
@keyframes tbBit { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 55% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 50px)) rotate(var(--r)) scale(.9); opacity: 0; } }
.tb-tumba { position: absolute; left: 0; top: -72px; transform: translateX(-50%); white-space: nowrap; font: 900 44px/1 system-ui, sans-serif; color: var(--cz-hud-accent);
  -webkit-text-stroke: 2px var(--cz-plum-deep); text-shadow: 0 4px 0 var(--cz-plum-deep), 0 8px 14px var(--cz-ledge); animation: tbTumba 1.2s cubic-bezier(.3, 1.5, .5, 1) forwards; }
@keyframes tbTumba { 0% { scale: .2; rotate: -12deg; opacity: 0; } 25% { scale: 1.25; rotate: 4deg; opacity: 1; } 40% { scale: 1; rotate: 0deg; }
  75% { opacity: 1; translate: 0 -10px; } 100% { opacity: 0; translate: 0 -30px; } }
.tb-shake { animation: tbShake .28s linear; }
@keyframes tbShake { 0%, 100% { translate: 0 0; } 20% { translate: -5px 2px; } 40% { translate: 4px -3px; } 60% { translate: -3px 2px; } 80% { translate: 2px -1px; } }
@keyframes tbFade { 0% { opacity: 0; } 20%, 75% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 900px) and (min-height: 521px) {
  .tb-list { width: auto; top: calc(20vh + 72px); gap: 5px; }
  .tb-name { display: none; }
  .tb-row { padding: 4px 6px 4px 4px; gap: 4px; }
  .tb-goal { font-size: 11px; }
}
@media (max-height: 520px) {
  .tb-list { top: calc(var(--top-edge) + 66px); width: 150px; gap: 4px; }
  .tb-row { padding: 3px 8px 3px 4px; font-size: 13px; }
  .tb-face { width: 22px; height: 22px; font-size: 16px; }
  .tb-hits { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-bit { display: none; }
  .tb-tumba { animation: tbFade 1.2s forwards; }
  .tb-row, .tb-row.tb-up, .tb-row.tb-up.tb-pop, .tb-row.tb-up .tb-badge, .tb-hits.tb-bump, .tb-plus { animation: none; transition: none; }
  .tb-row.tb-up { box-shadow: 0 0 0 3px var(--cz-line); }
}

/* A small upright phone (down to 360 x 640): the pill starts at the left edge and may be wider, the team rows sit side by
   side, and the joystick, the skill keys and Pass are smaller, so the rail fits three keys to a row under the play band
   (skill-rail.js trio). Spec: docs/superpowers/specs/2026-11-16-compact-hud-small-phones-design.md */
@media (max-width: 380px) and (min-height: 521px) {
  :root { --sk: 44px; }
  body .g-pill { left: 12px; transform: none; max-width: calc(100% - 76px); }
  body .pk-pill { width: max-content; }
  body .pk-pill .g-pill-text { -webkit-line-clamp: 2; font-size: 13px; }
  body .g-roster { left: 12px; transform: none; max-width: calc(100% - 76px); flex-direction: row; align-items: flex-start; }
  body .tb-bar.pk-bar { margin: 0 auto 0 12px; }
  body .w-joy { width: 124px; height: 124px; }
  body .w-joy.big { width: 148px; height: 148px; }
  body .w-joy.big .w-knob { width: 66px; height: 66px; margin: -33px 0 0 -33px; }
  body .w-sprint.in-arc { width: 44px; height: 44px; }
  body .lk-pass { width: 52px; height: 52px; }
  body .lk-pass.is-block { width: 56px; height: 56px; }
}
