/* css/play.css: the floor. Full-bleed night scene; the controls sit on it as paper cards. */

html, body.play { height: 100%; }
body.play { overflow: hidden; background: var(--night); font-size: 15.5px; }

/* ------------------------------------------------------------ stage */
.stage {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 70%, rgba(255, 182, 41, .14), transparent 70%),
    radial-gradient(40% 30% at 30% 40%, rgba(255, 90, 31, .08), transparent 70%),
    linear-gradient(#121828, #090c14);
}
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-poster.is-missing { display: none; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; touch-action: none; }
.stage.is-3d .stage-canvas { opacity: 1; }
/* the 3D canvas is transparent (the sky shows through), so the poster has to fade out under it */
.stage-poster { transition: opacity .8s ease; }
.stage.is-3d .stage-poster { opacity: 0; }
.stage-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(255, 182, 41, .45), transparent 70%); }
.stage-flash.go { animation: flash 2.6s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------------------ top bar */
.bar {
  position: fixed; z-index: 10; top: 12px; left: 16px; right: 16px; height: 60px;
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 18px;
  padding: 0 10px 0 12px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, .55);
}
.bar-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.bar-mark { width: 34px; height: 34px; }
.bar-mark.is-missing { display: none; }
.bar-word { font: 900 26px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.bar-mode { display: flex; gap: 8px; align-items: center; }
.bar-bell { justify-self: center; display: flex; align-items: center; gap: 10px; }
.bar-bell .ico { width: 26px; height: 26px; color: var(--orange-ink); }
.bar-bell-t { display: flex; align-items: baseline; gap: 10px; }
.bar-bell-t .num { font-size: 32px; line-height: 1; }
.bar-bell-s { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-bell > div { min-width: 0; }
.bar-bell { min-width: 0; }
.btn.is-wait { --bg: var(--paper-2); --fg: var(--ink-soft); --bd: var(--steel); box-shadow: none; opacity: 1; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.bar-act { display: flex; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button { border: 0; background: transparent; min-height: 40px; padding: 0 12px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

.note-strip {
  position: fixed; z-index: 9; top: 84px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; max-width: min(640px, calc(100% - 2 * 392px));
  padding: 8px 12px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, .5);
}
.note-strip p { margin: 0; font-size: 14px; font-weight: 500; }
.note-strip.is-warn { background: var(--amber); }
.note-strip.is-live .stamp { color: var(--teal); }

/* ------------------------------------------------------------ panels */
.panels { position: relative; z-index: 5; }
.dock {
  position: fixed; top: 86px; bottom: 16px; width: 372px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  display: flex; flex-direction: column; gap: 14px; padding: 2px 6px 8px 2px;
}
.dock-l { left: 16px; }
.dock-r { right: 16px; }
.panel { padding: 16px 16px 18px; box-shadow: 4px 4px 0 0 rgba(0, 0, 0, .55); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-head .ico { width: 24px; height: 24px; color: var(--ink); }
.panel-title { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.panel-meta, .panel-head .stamp { margin-left: auto; }
.panel-meta { font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; }
.honest { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--rule-strong); }

/* slots meter */
.slots { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 14px; }
.slots i { width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 1px; }
.slots i.on { background: var(--ink); }

/* quick start */
.quick { background: var(--amber); border: 1.5px solid var(--ink); padding: 12px 12px 14px; margin-bottom: 14px; }
.quick-k { color: var(--ink); margin: 0 0 4px; }
.quick-t { margin: 0 0 10px; font-weight: 500; }

/* shop rows */
.shop { list-style: none; display: grid; gap: 0; }
.shop li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.shop li:first-child { border-top: 0; }
.shop-art { width: 56px; height: 56px; background: var(--night); border-radius: 2px; overflow: hidden; position: relative; }
.shop-art img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.shop-art img.is-missing { display: none; }
.shop-art .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 800 22px/1 var(--display); color: #66708a; }
.shop-name { font: 800 21px/1 var(--display); text-transform: uppercase; }
.shop-spec { font: 500 11.5px/1.45 var(--mono); color: var(--ink-soft); margin-top: 3px; }
.shop-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.shop-price { font: 500 13px/1 var(--mono); white-space: nowrap; }
.shop-buy .btn { min-width: 64px; }
.shop-x { font-size: 11px; color: var(--orange-ink); font-family: var(--mono); text-align: right; max-width: 110px; line-height: 1.3; }
.shop li.is-hover { background: linear-gradient(90deg, rgba(255, 182, 41, .25), transparent); }

.expand { margin-top: 12px; padding: 12px; border: 1.5px dashed var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.expand p { margin: 0; font-size: 14px; }
.expand b { font-weight: 600; }

/* time card */
.timecard { background-color: #F6EFE2; background-image: repeating-linear-gradient(transparent 0 27px, rgba(31, 111, 107, .13) 27px 28px); }
.tc-status { font-weight: 500; margin: 0 0 10px; }
.holes { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 12px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); margin-bottom: 14px; min-height: 40px; align-items: center; }
.holes i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; }
.holes i.now { background: var(--orange); }
.holes i.booked { background: var(--ink); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.holes i.carry { background: var(--steel); }
.holes .more { font: 500 11.5px/1 var(--mono); color: var(--ink-soft); }
.holes .none { font: 500 12px/1.2 var(--mono); color: var(--ink-soft); }
.tc-pick { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-bottom: 12px; }
.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); }
.step-b { width: 44px; min-height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.step-b .ico { width: 20px; height: 20px; }
.stepper input { width: 64px; border: 0; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); text-align: center; font: 800 26px/1 var(--display); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.picks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.picks button { min-height: 44px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); font: 500 14px/1 var(--mono); cursor: pointer; }
.picks button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.tc-cost { margin: 0 0 12px; display: grid; gap: 6px; }
.tc-cost div, .pay-est div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tc-cost dt, .pay-est dt { font-size: 13.5px; color: var(--ink-2); }
.tc-cost dd, .pay-est dd { margin: 0; font-size: 14px; text-align: right; }
.tc-total { font-size: 16px !important; font-weight: 500; }
.tc-go { width: 100%; }
.tc-when { font-size: 11.5px; color: var(--ink-soft); margin: 10px 0 0; letter-spacing: .03em; }

/* payday */
.pay-now { margin-bottom: 10px; }
.pay-now .label { margin: 0; }
.pay-big { margin: 2px 0 0; display: flex; align-items: baseline; gap: 8px; }
.pay-big .num { font-size: 48px; line-height: 1; }
.pay-big .mono { font-size: 14px; }
.pay-est { margin: 0 0 6px; display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pay-fine { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); margin: 8px 0 12px; }
.crew { margin: 0 0 12px; padding: 10px 12px; background: var(--paper-2); border: 1px dashed var(--ink); }
.crew .label { margin: 0 0 6px; font-size: 10.5px; }
.crew ul { list-style: none; display: grid; gap: 3px; }
.crew li { display: flex; justify-content: space-between; font: 500 12px/1.4 var(--mono); }
.stock-pick { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.stock-pick legend { margin-bottom: 8px; padding: 0; }
.stocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stocks label { position: relative; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 6px; border: 1.5px solid var(--ink); border-radius: var(--r); cursor: pointer; background: var(--paper); font: 500 12.5px/1 var(--mono); }
.stocks label img, .stocks label .ph { width: 24px; height: 24px; border-radius: 50%; background: #fff; flex: none; object-fit: contain; }
.stocks label .ph { background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 9.5px; }
.stocks input { position: absolute; opacity: 0; pointer-events: none; }
.stocks input:checked + label, .stocks label:has(input:checked) { background: var(--ink); color: var(--paper); }
.stocks input:focus-visible + label, .stocks label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.stocks label.is-off { opacity: .45; text-decoration: line-through; }
.quote { font-size: 12px; line-height: 1.45; color: var(--ink-2); margin: 8px 0 10px; min-height: 2.9em; }
.quote.is-bad { color: var(--orange-ink); }
.pay-btns { display: grid; gap: 8px; }
.paid { margin-top: 12px; }
.paid ul { list-style: none; display: grid; gap: 2px; margin-top: 6px; }
.paid li { display: flex; justify-content: space-between; font: 500 12px/1.5 var(--mono); }

/* ------------------------------------------------------------ summary */
.summary {
  position: fixed; z-index: 6; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: min(600px, calc(100% - 2 * 404px)); padding: 10px 16px 8px;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, .55);
}
.summary dl { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.summary div { padding: 0 8px; border-left: 1px solid var(--rule); }
.summary div:first-child { border-left: 0; padding-left: 0; }
.summary dt { font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.summary dd { margin: 2px 0 0; font-size: 28px; line-height: 1; }
.sum-key dd { color: var(--orange-ink); }
.sum-warn { margin: 8px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--amber); padding: 6px 8px; }
.sum-warn .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.sum-unit { font-size: 10.5px; color: var(--ink-soft); margin: 6px 0 0; letter-spacing: .04em; }

/* ------------------------------------------------------------ tabs (phone) */
.tabs { display: none; }

/* ------------------------------------------------------------ dialogs and toast */
.sheet-dlg { padding: 18px; width: min(460px, calc(100% - 24px)); max-height: calc(100% - 24px); color: var(--ink); }
.sheet-dlg::backdrop { background: rgba(9, 12, 20, .62); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dlg-x { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.wallet-list { list-style: none; display: grid; gap: 8px; }
.wallet-list button { width: 100%; justify-content: flex-start; }
.wallet-list img { width: 26px; height: 26px; border-radius: 6px; }
.t-body dl { margin: 0 0 12px; display: grid; gap: 6px; }
.t-body dl div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--rule); padding-bottom: 6px; }
.t-body dt { font-size: 14px; color: var(--ink-2); }
.t-body dd { margin: 0; font: 500 14px/1.3 var(--mono); text-align: right; }
.t-body .t-total dd { font-size: 17px; }
.t-body p { font-size: 13.5px; color: var(--ink-2); }
.t-body .t-warn { background: var(--amber); padding: 8px 10px; color: var(--ink); font-weight: 500; }
.t-status { min-height: 1.4em; font: 500 13px/1.45 var(--mono); margin: 0 0 12px; overflow-wrap: anywhere; }
.t-status.is-bad { color: var(--orange-ink); }
.t-status.is-ok { color: var(--teal); }
.t-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

.toast {
  position: fixed; z-index: 30; left: 50%; bottom: 120px; transform: translateX(-50%);
  max-width: min(520px, calc(100% - 24px)); padding: 12px 16px;
  background: var(--ink); color: var(--paper); border-radius: var(--r); font-size: 14px; font-weight: 500;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, .5);
}
.toast.is-bad { background: var(--orange); color: var(--ink); }

/* ------------------------------------------------------------ narrower desktop */
@media (max-width: 1240px) and (min-width: 1024px) {
  .dock { width: 330px; }
  .summary { width: calc(100% - 2 * 362px); padding: 8px 10px; }
  .summary dd { font-size: 22px; }
  .note-strip { max-width: calc(100% - 2 * 350px); }
  .bar-bell-s { display: none; }
}

/* ------------------------------------------------------------ phone and tablet: floor on top, sheet below */
@media (max-width: 1023px) {
  body.play { --stage-h: 38svh; --tabs-h: 64px; }
  .stage { bottom: auto; height: var(--stage-h); }
  .bar { top: 8px; left: 8px; right: 8px; height: 52px; grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 6px 0 8px; }
  .bar-word { display: none; }
  .bar-mode { display: none; }
  .bar-bell { justify-self: start; gap: 8px; }
  .bar-bell .ico { width: 22px; height: 22px; }
  .bar-bell-t .label { display: none; }
  .bar-bell-t .num { font-size: 26px; }
  .bar-bell-s { font-size: 10.5px; }
  .seg button { padding: 0 8px; font-size: 11px; min-height: 36px; }
  .bar-act .btn { padding: 0 12px; min-height: 40px; font-size: 14px; }
  .bar-act .btn .ico { display: none; }

  .note-strip { top: calc(var(--stage-h) - 46px); left: 8px; right: 8px; transform: none; max-width: none; padding: 6px 10px; }
  .note-strip p { font-size: 12.5px; line-height: 1.3; }
  .note-strip .stamp { font-size: 10.5px; }

  .summary { top: auto; bottom: auto; position: fixed; top: calc(var(--stage-h) + 0px); left: 0; right: 0; transform: none; width: auto; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; padding: 8px 12px 6px; z-index: 7; }
  .summary dd { font-size: 22px; }
  .summary dt { font-size: 9.5px; }
  .summary div { padding: 0 6px; }
  .sum-unit { display: none; }
  .sum-warn { font-size: 12px; margin-top: 6px; padding: 4px 6px; }

  .panels { position: fixed; z-index: 5; top: calc(var(--stage-h) + var(--sum-h, 58px)); bottom: var(--tabs-h); left: 0; right: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); }
  .dock { display: contents; }
  .panel { display: none; box-shadow: none; border: 0; border-radius: 0; padding: 16px 14px 24px; max-width: 640px; margin: 0 auto; }
  body[data-tab='shop'] .panel[data-panel='shop'],
  body[data-tab='shifts'] .panel[data-panel='shifts'],
  body[data-tab='pay'] .panel[data-panel='pay'] { display: block; }

  .tabs {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; z-index: 8; left: 0; right: 0; bottom: 0; height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink); border-top: 3px solid var(--orange);
  }
  .tabs button { position: relative; border: 0; background: transparent; color: #b9bdc7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; min-height: 44px; }
  .tabs button .ico { width: 22px; height: 22px; }
  .tabs button[aria-pressed='true'] { color: var(--paper); background: var(--ink-2); }
  .tabs button[aria-pressed='true']::before { content: ''; position: absolute; top: -3px; left: 18%; right: 18%; height: 3px; background: var(--amber); }
  .tab-dot { position: absolute; top: 10px; right: calc(50% - 24px); width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
  /* over the floor, never over the panel list and its buttons */
  .toast { bottom: auto; top: calc(var(--stage-h) - 10px); transform: translate(-50%, -100%); width: calc(100% - 24px); }
  .sheet-dlg { margin: auto auto 0; width: 100%; max-width: 560px; border-radius: 6px 6px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1023px) and (min-width: 700px) { body.play { --stage-h: 42svh; } }
.w-short { display: none; }
@media (max-width: 640px) {
  .bar-bell-s { display: none; }
  .bar-act { gap: 6px; }
}
@media (max-width: 420px) {
  .w-long { display: none; }
  .w-short { display: inline; }
}
@media (max-width: 350px) {
  .bar-bell .ico { display: none; }
}
@media (max-width: 360px) {
  .bar-act .btn { padding: 0 9px; font-size: 13px; }
  .seg button { padding: 0 6px; font-size: 10px; }
  .summary dd { font-size: 19px; }
  .stocks { grid-template-columns: repeat(2, 1fr); }
  .shop li { grid-template-columns: 44px 1fr auto; gap: 8px; }
  .shop-art { width: 44px; height: 44px; }
}

/* live, before the first read: the panels wait */
.is-loading .panels, .is-loading .summary { opacity: .35; pointer-events: none; }
.shop-art img:not(.is-missing) + .ph { display: none; }

/* ================================================================== sunny skin
   The same look as the landing page: sky behind the yard, white cards with a navy outline and a short hard shadow,
   chunky rounded type, toy-like buttons. Variables first, so everything above picks them up. */
body.play {
  --paper: #FFFDF7;
  --paper-2: #FFF1D6;
  --paper-3: #F3E6CC;
  --ink: #23314D;
  --ink-2: #3B4A6B;
  --ink-soft: #5B6782;
  --orange: #FF6A2B;
  --orange-ink: #D14A12;
  --amber: #FFC93C;
  --teal: #1F8F86;
  --steel: #B9C2D0;
  --rule: rgba(35, 49, 77, .14);
  --rule-strong: rgba(35, 49, 77, .45);
  --display: 'Baloo 2', 'Arial Rounded MT Bold', 'Nunito', system-ui, sans-serif;
  --text: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --r: 16px;
  background: #8FD0FA;
  color: var(--ink);
  font: 600 15.5px/1.5 var(--text);
}
body.play .display, body.play .panel-title, body.play .shop-name, body.play .bar-word { text-transform: none; font-weight: 800; letter-spacing: 0; }
body.play .label { font: 800 12px/1.3 var(--display); letter-spacing: .06em; color: var(--ink-soft); }
body.play .num { font-family: var(--display); font-weight: 800; }

.stage {
  background:
    radial-gradient(40% 30% at 18% 22%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(36% 26% at 82% 14%, rgba(255, 255, 255, .45), transparent 70%),
    linear-gradient(180deg, #4FAEF0 0%, #8FD0FA 50%, #D6EFFF 100%);
}
.stage-flash { background: radial-gradient(60% 50% at 50% 50%, rgba(255, 220, 120, .55), transparent 70%); }

body.play .card { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 0 var(--ink); }
.bar { border-radius: 18px; box-shadow: 0 5px 0 0 var(--ink); border-width: 3px; }
.panel, .summary { box-shadow: 0 5px 0 0 var(--ink); }
.panel-title { font-size: 28px; }
.bar-word { font-size: 26px; }

body.play .btn {
  min-height: 46px; border: 3px solid var(--bd); border-radius: 14px;
  font: 800 16px/1 var(--display); letter-spacing: .01em;
  box-shadow: 0 4px 0 0 var(--ink);
}
body.play .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--ink); }
body.play .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--ink); }
body.play .btn-hot { --bg: var(--amber); --fg: var(--ink); }
body.play .btn-line { --bg: #fff; --fg: var(--ink); box-shadow: 0 4px 0 0 var(--ink); }
body.play .btn-line:hover { background: #fff; --fg: var(--ink); }
body.play .btn-sm { min-height: 42px; border-radius: 12px; font-size: 15px; }
.btn.is-wait { --bg: var(--paper-2); --fg: var(--ink-soft); --bd: var(--ink); font: 800 13px/1 var(--display); letter-spacing: .04em; box-shadow: none; }

/* stamps become stickers */
body.play .stamp {
  -webkit-mask-image: none; mask-image: none; mix-blend-mode: normal;
  border: 2.5px solid var(--ink); border-radius: 10px; padding: 5px 10px 4px;
  font: 800 12px/1 var(--display); letter-spacing: .08em; color: var(--ink); background: #fff;
  transform: rotate(-3deg); box-shadow: 0 2px 0 0 var(--ink);
}
body.play .stamp-orange { background: #FFD7C2; }
body.play .stamp-teal { background: #C8EEE9; }
body.play .stamp-steel { background: #E6EAF1; }
body.play .stamp-ink { background: var(--amber); }

.note-strip { border-width: 3px; border-radius: 14px; box-shadow: 0 4px 0 0 var(--ink); }
.seg { border-width: 2.5px; border-radius: 12px; }
.seg button { font: 800 12px/1 var(--display); letter-spacing: .06em; }

.slots i { border-width: 2px; border-radius: 4px; }
.slots i.on { background: #7CC855; }
.quick { border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 0 var(--ink); }
.shop-art { background: radial-gradient(circle at 50% 70%, #EAF6FF 0 45%, #D6EFFF 46% 100%); border: 2px solid var(--ink); border-radius: 12px; }
.shop-spec { font: 700 12.5px/1.4 var(--text); }
.shop-price { font: 800 15px/1 var(--display); }
.shop-x { font: 700 11.5px/1.3 var(--text); }
.shop li.is-hover { background: linear-gradient(90deg, rgba(255, 201, 60, .3), transparent); border-radius: 10px; }
.expand { border: 2.5px dashed var(--ink); border-radius: 14px; }

.timecard { background-color: #FFFBF0; background-image: repeating-linear-gradient(transparent 0 27px, rgba(31, 143, 134, .12) 27px 28px); }
.holes { border-top-width: 2.5px; border-bottom-width: 2.5px; }
.holes i { border-width: 2px; }
.holes i.booked { background: var(--ink); box-shadow: none; }
.holes .more, .holes .none { font: 700 12px/1.2 var(--text); }
.stepper { border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.stepper input { border-left-width: 2.5px; border-right-width: 2.5px; font-family: var(--display); }
.picks button { border: 2.5px solid var(--ink); border-radius: 12px; font: 800 15px/1 var(--display); box-shadow: 0 3px 0 0 var(--ink); }
.picks button[aria-pressed='true'] { background: var(--amber); color: var(--ink); transform: translateY(2px); box-shadow: 0 1px 0 0 var(--ink); }
.tc-when { font: 700 12px/1.4 var(--text); }

.crew { border: 2px dashed var(--ink); border-radius: 12px; background: var(--paper-2); }
.crew li { font: 700 12.5px/1.4 var(--text); }
.stocks label { border: 2.5px solid var(--ink); border-radius: 12px; font: 800 13px/1 var(--display); box-shadow: 0 2px 0 0 var(--ink); }
.stocks input:checked + label, .stocks label:has(input:checked) { background: var(--amber); color: var(--ink); }
.stocks label .ph { background: var(--paper-2); color: var(--ink); }
.stocks label img.is-dark { background: var(--ink); padding: 3px; }
.paid li { font: 700 12.5px/1.5 var(--text); }

.summary dt { font: 800 11px/1.2 var(--display); letter-spacing: .06em; }
.summary dd { font-family: var(--display); }
.sum-warn { border-radius: 10px; border: 2px solid var(--ink); }

.toast { border-radius: 14px; border: 3px solid var(--ink); background: var(--ink); color: #fff; font: 700 15px/1.4 var(--text); box-shadow: 0 4px 0 0 rgba(35, 49, 77, .5); }
.toast.is-bad { background: var(--amber); color: var(--ink); }
.sheet-dlg { border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 0 var(--ink); }
.sheet-dlg::backdrop { background: rgba(35, 49, 77, .5); }
.t-body dd, .t-status { font-family: var(--text); font-weight: 700; }
.t-body .t-warn { border-radius: 10px; }

@media (max-width: 1023px) {
  .bar { border-radius: 16px; }
  .panels { background: #FFF8EC; }
  .panel { border: 0; box-shadow: none; }
  .summary { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; border-width: 3px 0; }
  .tabs { background: var(--ink); border-top: 4px solid var(--amber); }
  .tabs button { font: 800 12px/1 var(--display); letter-spacing: .06em; }
  .tabs button[aria-pressed='true'] { color: #fff; background: #33456A; }
  .note-strip { border-width: 2.5px; }
}

/* ------------------------------------------------------------ work permit (Time card) */
.permit {
  margin: 0 0 14px; padding: 12px 12px 12px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 0 var(--ink);
}
.permit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.permit-head .ico { width: 22px; height: 22px; flex: none; }
.permit-title { font: 800 21px/1 var(--display); margin: 0; }
.permit-head .stamp { margin-left: auto; }
.permit-lead { margin: 0 0 8px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.permit-play { margin: 0 0 8px; padding: 6px 8px; font-size: 12.5px; line-height: 1.4; background: var(--paper-2); border: 2px dashed var(--ink); border-radius: 10px; }
.permit-rows { margin: 0 0 10px; padding: 8px 0; display: grid; gap: 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.permit-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.permit-rows dt { font-size: 13px; color: var(--ink-2); flex: none; }
.permit-rows dd { margin: 0; font: 800 14px/1.3 var(--display); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.permit-pick { display: grid; gap: 6px; margin-bottom: 10px; }
.permit-pick .label { margin: 0; }
.permit-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.permit-picks button {
  min-height: 44px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: 800 16px/1 var(--display); box-shadow: 0 3px 0 0 var(--ink); cursor: pointer;
}
.permit-picks button[aria-pressed='true'] { background: var(--amber); transform: translateY(2px); box-shadow: 0 1px 0 0 var(--ink); }
.permit-to { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.permit-go { width: 100%; flex-direction: column; gap: 3px; padding: 7px 14px; text-align: center; }
.permit-go small { font: 700 12px/1.2 var(--text); letter-spacing: 0; }
.permit-none { margin: 8px 0 0; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--orange-ink); }
.permit-none a { color: var(--ink); font-weight: 800; }
.permit-fine { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-soft); }
.permit.is-flag { animation: permit-flag 1.7s ease-out; }
@keyframes permit-flag {
  0%, 55% { box-shadow: 0 0 0 5px var(--amber), 0 4px 0 0 var(--ink); }
  100% { box-shadow: 0 4px 0 0 var(--ink); }
}
.tc-permit {
  display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 6px 8px;
  font-size: 13px; font-weight: 700; line-height: 1.4; background: var(--amber); border: 2px solid var(--ink); border-radius: 10px;
}
.tc-permit .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ------------------------------------------------------------ top bar: the music toggle (js/music.js styles it), 44 px targets
   Every button in the bar is at least 44 px. On a phone the bar is 56 px; at 560 px and below the Practice / Live
   switch leaves the bar and floats just under its right end, over the sky, so the bell keeps its room. */
body.play .bar-act .btn { min-height: 44px; }
.bar-act .music-btn { min-width: 44px; }
body.play .seg button { min-height: 44px; min-width: 44px; }
@media (max-width: 1023px) {
  .bar { height: 56px; }
  .bar-bell { justify-self: stretch; overflow: hidden; }
  .bar-act .music-btn .ico { display: block; }
  /* the note strip sits on the stage's bottom edge and grows upward, so a long note never covers the summary */
  .note-strip { top: calc(var(--stage-h) - 6px); transform: translateY(-100%); }
}
@media (max-width: 560px) {
  .bar-act .seg {
    position: absolute; top: calc(100% + 8px); right: -3px;
    background: var(--paper); box-shadow: 0 4px 0 0 var(--ink); border-width: 3px;
  }
  .bar-act .seg button { padding: 0 12px; }
}
@media (max-width: 420px) {
  .bar { gap: 6px; padding: 0 5px 0 6px; }
  .bar-act { gap: 5px; }
  .bar-act .music-btn > :not(.ico) { display: none; }
}
@media (max-width: 360px) {
  .bar { gap: 5px; }
  .bar-act { gap: 4px; }
  .bar-mark { width: 30px; height: 30px; }
  .permit { padding: 10px 10px 12px; }
  .permit-rows dt { font-size: 12.5px; }
}
