/* ウチのボードゲームカフェ知ってます？ — a bright café look: cream paper, forest green, wood and gold.
   Every screen fits the window: long screens are split into pages, card lists are paged,
   and a page body only scrolls as a last resort (small windows, phones). */
:root {
  color-scheme: light;
  --bg: #f4ede1; --bg-2: #ece2d0;
  --panel: #fffdf8; --panel-2: #fbf6ec; --panel-3: #f3eadb;
  --ink: #2a241d; --ink-2: #594d40; --muted: #887a68;
  --line: #e4d8c4; --line-2: #d3c2a6;
  --accent: #2f7a5a; --accent-2: #23634a; --accent-ink: #fff; --accent-soft: rgba(47,122,90,.1);
  --green-deep: #1d4f3b;
  --gold: #b07e22; --gold-2: #8f6418; --gold-soft: rgba(205,150,45,.14);
  --wood: #a0683c; --warn: #c2691c; --neg: #c0392b; --good: #2a8656; --level: #b07e22;
  --r: 2px;
  --shadow: 0 1px 0 rgba(120,90,50,.08), 0 4px 14px rgba(120,90,50,.08);
  --f-body: 'Zen Kaku Gothic New', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --f-disp: 'Dela Gothic One', 'Zen Kaku Gothic New', sans-serif;
  --f-num: 'Oswald', 'Zen Kaku Gothic New', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 18px; line-height: 1.6; font-weight: 500;
  background-image: radial-gradient(rgba(160,104,60,.07) 1px, transparent 1px); background-size: 20px 20px;
}
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; }
h2 { font-size: 1.4rem; font-weight: 900; }
h3 { font-size: 1.05rem; }
h4 { font-size: 1rem; display: flex; align-items: center; gap: .4em; color: var(--ink); }
p { margin: 0 0 .55em; }
b, strong { font-weight: 700; }
.small { font-size: .86rem; }
.muted { color: var(--muted); }
.neg { color: var(--neg); }
.warn-text { color: var(--warn); margin: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: var(--r);
  border: 1px solid var(--line-2); border-bottom-width: 3px; background: var(--panel); color: var(--ink);
  padding: .45em 1.15em; min-width: 116px; transition: border-color .25s, background .25s, transform .15s;
}
.btn:hover:not(:disabled) { border-color: var(--accent); background: #f4faf6; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-2); }
.btn.primary:hover:not(:disabled) { background: #378a66; }
.btn.gold { background: #e8a93a; color: #2a1a03; border-color: #b77d1c; }
.btn.gold:hover:not(:disabled) { background: #f0b74e; border-color: #b77d1c; }
.btn.danger { color: var(--neg); }
.btn.sm { padding: .26em .7em; min-width: 0; font-size: .88rem; border-bottom-width: 2px; }
.btn.cur { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.btn.lg { font-size: 1.2rem; padding: .65em 1.6em; min-width: 240px; border-bottom-width: 5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row.center { justify-content: center; }
.btn-row.end { justify-content: flex-end; margin-top: 12px; }
.btn-row.between { justify-content: space-between; margin-top: 12px; }
.icon-btn { font: inherit; cursor: pointer; border: 1px solid var(--line-2); background: rgba(255,253,248,.92); color: var(--muted);
  border-radius: var(--r); padding: .15em .55em; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.icon-btn.cur { color: var(--accent-2); border-color: var(--accent); }
.icon-btn:hover { border-color: var(--accent); }

/* ---------- form controls ---------- */
input[type=number], input[type=text], select {
  font: inherit; padding: .22em .45em; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: var(--r); width: 7em;
}
input:focus, select:focus { outline: 2px solid rgba(47,122,90,.35); outline-offset: 0; border-color: var(--accent); }
input.store-name { font-size: 1.15em; padding: .35em .6em; width: 100%; max-width: 420px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 1.05em; height: 1.05em; }

/* ---------- panels ---------- */
.panel, .card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px; min-width: 0; box-shadow: var(--shadow);
}
.panel > h3, .card > h3 { display: flex; align-items: center; gap: .5em; font-size: 1rem; color: var(--green-deep);
  padding-bottom: 6px; margin-bottom: 10px; border-bottom: 2px solid var(--line); }
.panel > h3::before, .card > h3::before { content: ''; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.card.sel { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); background: #f5fbf7; }
.card.mgr { border-top: 3px solid var(--wood); }
.panel.over { border-color: var(--neg); }
.spec { display: grid; grid-template-columns: 5em 1fr; gap: 2px 8px; margin: 0 0 .6em; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.row { display: flex; align-items: center; gap: 8px; margin: .35em 0; flex-wrap: wrap; }
.row.check { cursor: pointer; }
.row.dis, tr.dis { opacity: .5; }
.big { font-family: var(--f-num); font-size: 2.2rem; font-weight: 600; margin: 0 0 .2em; letter-spacing: .02em; color: var(--green-deep); }

.counter { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: .4em 0; border-bottom: 1px dashed var(--line); }
.counter > div:first-child { display: flex; flex-direction: column; }
.counter .ctl { display: flex; align-items: center; gap: 6px; }
.counter output { min-width: 2em; text-align: center; font-family: var(--f-num); font-size: 1.3rem; }

.area-bar { height: 12px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; margin-bottom: .4em; }
.area-bar span { display: block; height: 100%; background: var(--accent); }
.area-bar span.over { background: var(--neg); }
/* the floor at a glance, across the top of the layout pages */
.meet-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.meet-form { margin: 8px 0; }
.meet-form input[type=number] { width: 90px; }
.meet-form select[data-id=date] { min-width: 12em; }
.floor-banner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; padding: 14px 20px; }
.floor-nums { display: flex; gap: 10px; flex: none; }
.floor-banner .bignum { padding: 8px 16px 10px; }
.floor-banner .bignum span { font-size: 1rem; }
.floor-banner .bignum b { font-size: 2.4rem; }
.floor-banner .bignum.main b { font-size: 2.8rem; }
.floor-meter { flex: 1 1 320px; min-width: 0; }
.area-bar.big { position: relative; height: 26px; margin-bottom: 8px; overflow: visible; }
.area-bar.big span { border-radius: var(--r); }
.area-bar.big span.tight { background: var(--warn); }
.area-bar.big i { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--ink-2); }
.floor-say { margin: 0 0 4px; font-size: 1.35rem; font-weight: 700; }
.floor-say.neg { color: var(--neg); }
.floor-say.good { color: var(--green-deep); }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th, .tbl td { padding: .3em .5em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 500; font-size: .84rem; }
.tbl tr.sum td { font-weight: 700; border-top: 2px solid var(--gold); color: var(--green-deep); }
.tbl td.num { font-family: var(--f-num); font-weight: 500; letter-spacing: .02em; font-size: 1.02em; }
.scroll-x { overflow-x: auto; }
.tbl.acts td { padding: .2em .45em; vertical-align: middle; }
.tbl.acts .small { display: block; font-size: .78rem; line-height: 1.3; }
.tbl.tight td { padding: .1em .45em; font-size: .86rem; }
.tbl.tight td.num { font-size: .92rem; }

/* ---------- stats ---------- */
.stat { display: grid; grid-template-columns: 5.6em 1fr 3em; align-items: center; gap: 6px; font-size: .9rem; margin: 1px 0; }
.stat .num { font-family: var(--f-num); font-size: .95rem; }
.bar { display: inline-block; position: relative; height: 8px; width: 100%; min-width: 60px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; vertical-align: middle; }
.bar > span { position: absolute; top: 0; bottom: 0; left: 0; background: var(--accent); }
.bar.warn > span { background: var(--warn); }
.bar.range > span { background: var(--accent); opacity: .55; }
.face { margin-left: auto; font-size: 1.25rem; }
.tag { font-size: .76rem; background: var(--wood); color: #fff; padding: .05em .5em; border-radius: var(--r); font-weight: 700; }
.tag.plain { background: var(--panel-3); color: var(--ink-2); border: 1px solid var(--line-2); }
.hints { display: flex; flex-wrap: wrap; gap: 4px; margin: .5em 0; }
.hint { font-size: .78rem; border: 1px dashed var(--line-2); padding: 0 .4em; color: var(--muted); border-radius: var(--r); }
.hint.known { border-style: solid; border-color: rgba(47,122,90,.35); color: var(--ink); background: var(--accent-soft); }
.claims { margin: .4em 0; padding-left: 1.2em; font-size: .88rem; color: var(--ink-2); }
.claims li::marker { content: '「'; }
.avail { display: inline-flex; flex-wrap: wrap; gap: 0 10px; vertical-align: baseline; }
.avail span { white-space: nowrap; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--green-deep); color: #fff; font-weight: 700;
  padding: .6em 1.3em; border-radius: var(--r); z-index: 60; box-shadow: 0 8px 30px rgba(60,40,20,.3); }

/* =====================================================================
   title: the logo and the menu on cream paper at the left, the two owners on a deep green panel of game shelves at the right
   ===================================================================== */
.title { position: relative; height: 100vh; height: 100dvh; overflow: hidden; display: flex; align-items: center; background: var(--bg); }
.title-art { position: absolute; top: 0; bottom: 0; right: 0; width: 56%; overflow: hidden; pointer-events: none;
  /* the green laid thin over a photo-like picture of a board game cafe (img/bg/cafe.jpg, from docs/orig/cafe-photo_2026-11-07.jpg) */
  background: linear-gradient(160deg, rgba(36,96,74,.55) 0%, rgba(29,79,59,.62) 55%, rgba(22,61,46,.75) 100%), url(../img/bg/cafe.jpg) 30% center / cover;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); animation: artIn .8s cubic-bezier(.2,1,.3,1) both; }
.title-art::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 60% 55% at 62% 45%, rgba(255,214,140,.38), rgba(255,214,140,0) 70%); }
.title-art::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; z-index: 3;
  background: linear-gradient(90deg, #e8a93a 0 10px, transparent 10px); clip-path: polygon(72.7% 0, 100% 0, 27.3% 100%, 0 100%); }
.title-owner { position: absolute; bottom: 0; width: auto; z-index: 2; filter: drop-shadow(0 0 30px rgba(0,0,0,.25)); }
.title-owner { height: 92vh; right: 12%; animation: ownerIn .9s .2s cubic-bezier(.2,1.1,.3,1) both; }
@keyframes artIn { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 84% 100%); } }
@keyframes ownerIn { from { transform: translateX(14vw); opacity: 0; } }

.title-main { position: relative; z-index: 4; width: 50%; align-self: stretch; padding: 14vh clamp(16px, 3vw, 48px) 0; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; }
/* the logo stays put while what is under it changes (the menu, the difficulties, the tutorial question) */
/* the logo is a picture (img/logo.png, cut out of its green background by tools/cut-logo.ps1) */
.logo { margin: 0 0 3vh; width: min(100%, 860px); line-height: 0; font-size: 0; animation: logoIn .7s .3s cubic-bezier(.2,1.5,.4,1) both; }
.logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(60,40,20,.18)); }
@keyframes logoIn { from { opacity: 0; transform: translateY(14px) scale(.9) rotate(-2deg); } }
.title-lead { font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 700; color: var(--ink); margin: 0 0 3vh; line-height: 1.6; animation: rise .7s 1.1s both; }
.title-lead span { display: block; color: var(--muted); font-size: .85em; font-weight: 500; }
.title-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: rise .7s 1.2s both; }
.title-menu .btn.lg { min-width: 220px; font-size: 1.3rem; box-shadow: 0 8px 18px rgba(60,40,20,.16); }
.diffs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 720px; margin: 0 0 14px; }
.diff { font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; color: var(--ink);
  background: var(--panel); border: 2px solid var(--line-2); border-bottom-width: 5px; border-radius: var(--r); transition: transform .15s, border-color .15s; box-shadow: 0 6px 16px rgba(60,40,20,.12); }
.diff:hover { transform: translateY(-4px); border-color: var(--accent); }
.diff b { font-size: .95rem; white-space: nowrap; }
.diff .money small { font-family: var(--f-body); font-size: .6em; margin-left: .1em; }
.diff .pips { color: #e2554f; letter-spacing: 1px; font-size: .8rem; }
.diff .money { font-family: var(--f-num); font-size: 1.6rem; line-height: 1.1; color: var(--green-deep); }
.diff.rec { border-color: var(--accent); }
.diff.rec::after { content: 'おすすめ'; font-size: .8rem; color: #fff; background: var(--accent); padding: 0 .6em; border-radius: var(--r); }
.title-ver { position: absolute; right: 16px; bottom: 10px; z-index: 4; margin: 0; font-size: .82rem; color: #cfe2d6; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.title-snd { position: absolute; right: 16px; top: 14px; z-index: 5; }
/* back from the difficulties: kept out of the way in the bottom-left corner, away from the difficulty buttons */
.title-back { position: absolute; left: 16px; bottom: 14px; z-index: 5; }
.title.calm .title-art, .title.calm .title-owner, .title.calm .logo, .title.calm .title-lead, .title.calm .title-menu { animation: none; }
/* a button on the title (はじめから, a difficulty, 戻る): what comes next fades in slowly, a part at a time */
.title.calm .title-main.swap .title-lead { animation: slowIn .8s ease both; }
.title.calm .title-main.swap .title-menu, .title.calm .title-main.swap .diffs, .title.calm .title-main.swap .tut-pick { animation: slowIn .8s .18s ease both; }
.title.swap-back .title-back { animation: slowIn .8s .3s ease both; }
@keyframes slowIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .title-main.swap *, .title.swap-back .title-back { animation: none !important; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* =====================================================================
   setup (opening the store): header with the steps, a page, a footer with the money and the way on
   ===================================================================== */
.shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
/* the store setup: the same cafe picture, faded back behind the pages */
.shell.setup { background: linear-gradient(color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 70%, transparent)), url(../img/bg/cafe.jpg) center / cover; }
.s-head { flex: none; position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 14px 22px; background: var(--green-deep); color: #fff; box-shadow: 0 4px 14px rgba(20,40,30,.18); }
.logo-mini { font-family: var(--f-disp); font-size: 1.25rem; letter-spacing: .04em; white-space: nowrap; color: #ffd98a; }
.logo-mini small { font-family: var(--f-body); font-size: .8rem; color: #cfe2d6; margin-left: .6em; letter-spacing: 0; }
.steps { display: flex; list-style: none; padding: 0; margin: 0 auto; }
.steps li { position: relative; padding: .45em 1.4em .45em 1.7em; font-size: 1.05rem; color: #a9c7b7; background: rgba(255,255,255,.08); margin-left: -6px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); white-space: nowrap; }
.steps li:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); margin-left: 0; padding-left: 1.1em; }
.steps li b { font-family: var(--f-num); margin-right: .4em; }
.steps li.done { color: #e6f2eb; background: rgba(255,255,255,.16); }
.steps li.cur { color: #2a1a03; background: #f0b74e; font-weight: 700; }
.s-head .hud-snd select { background: #fff; }
.s-main { flex: 1; min-height: 0; display: flex; gap: 18px; width: 100%; max-width: 1640px; margin: 0 auto; padding: 10px 18px 0; }
.s-work { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.page-head { flex: none; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.page-of { color: var(--ink-2); font-size: .8em; margin-left: .2em; }
.step-no { font-family: var(--f-num); font-size: 2.5rem; font-weight: 600; color: var(--gold); line-height: 1; letter-spacing: .02em; }
.page-head h2 { margin: 0; font-size: 1.5rem; color: var(--green-deep); }
.page-head h2 small { display: block; font-family: var(--f-num); font-size: .72rem; letter-spacing: .3em; color: var(--muted); font-weight: 500; }
.page-note { margin: 0 0 8px; color: var(--ink-2); flex: none; }
.subtabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.s-foot .subtabs { margin: 0 auto; }
/* coming into the store setup from the title: the top bar slides down and the bottom bar rises into place */
.shell.bars-in .s-head { animation: barDown .55s cubic-bezier(.2,.8,.25,1) .12s both; }
.shell.bars-in .s-foot { animation: barUp .55s cubic-bezier(.2,.8,.25,1) .12s both; }
@keyframes barDown { from { transform: translateY(-100%); } }
@keyframes barUp { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .shell.bars-in .s-head, .shell.bars-in .s-foot { animation: none; } }
.subtabs button { font: inherit; font-size: .95rem; cursor: pointer; padding: .32em 1em; color: var(--ink-2); background: var(--panel);
  border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: var(--r); white-space: nowrap; }
.subtabs button b { font-family: var(--f-num); margin-right: .35em; color: var(--gold); }
.subtabs button:hover { border-color: var(--accent); }
.subtabs button.cur { color: #fff; border-color: var(--accent-2); background: var(--accent); font-weight: 700; }
.subtabs button.cur b { color: #ffd98a; }
.page-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; padding: 2px 2px 8px; }
.page-body > .panel:last-child { margin-bottom: 0; }
.s-foot { flex: none; position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 -4px 14px rgba(120,90,50,.08); }
.s-foot .btn { min-width: 160px; }
.s-foot .btn.next { margin-left: auto; min-width: 220px; font-size: 1.1rem; }
.s-foot .subtabs + .btn.next { margin-left: 0; }

/* a few numbers side by side, big */
.bignums { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 8px; margin: 6px 0 12px; }
.bignum { display: flex; flex-direction: column; line-height: 1.1; padding: 6px 12px 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); }
.bignum span { font-size: .82rem; color: var(--muted); font-weight: 700; }
.bignum b { font-family: var(--f-num); font-size: 1.7rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.bignum.main { background: var(--accent-soft); border-color: rgba(47,122,90,.4); }
.bignum.main b { color: var(--green-deep); font-size: 2rem; }
.bignum b.neg, .bignum.neg b { color: var(--neg); }
.bignum b small { font-size: .55em; color: var(--muted); font-weight: 500; }
/* the one number that matters most on a page, shown before how it is worked out */
.hero-num { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 14px; padding: 14px 20px 16px; background: var(--accent-soft); border: 1px solid rgba(47,122,90,.4); border-radius: var(--r); }
.hero-num span { font-size: 1rem; font-weight: 700; color: var(--muted); }
.hero-num b { font-family: var(--f-num); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.1; color: var(--green-deep); letter-spacing: .02em; white-space: nowrap; }
.hero-num.pay { background: rgba(232,169,58,.14); border-color: rgba(232,169,58,.5); }
.hero-num.pay b { color: var(--accent-2); font-size: clamp(2rem, 3.4vw, 2.8rem); }
.panel.funds { line-height: 1.9; }
.panel.funds .funds-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
@media (max-width: 760px) { .panel.funds .funds-cols { grid-template-columns: 1fr; } }
.panel.funds input[type=range] { width: 100%; }
.panel.funds .row { margin: 14px 0; }
.bignums .op { font-family: var(--f-num); font-size: 1.5rem; color: var(--muted); }

/* the money, big at the top of every setup page */
.moneybar { display: flex; gap: 6px; margin-left: auto; }
.moneybar .m { display: flex; flex-direction: column; line-height: 1.1; padding: 5px 14px 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.moneybar .m span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.moneybar .m b { font-family: var(--f-num); font-size: 1.6rem; font-weight: 600; color: var(--green-deep); letter-spacing: .02em; }
.moneybar .m.main { background: var(--green-deep); border-color: var(--green-deep); }
.moneybar .m.main span { color: #cfe2d6; }
.moneybar .m.main b { color: #ffd98a; font-size: 1.9rem; }
.moneybar .m.main.low { background: #9c2f23; border-color: #9c2f23; }
.moneybar b.neg { color: var(--neg); }
.moneybar .m.main b.neg { color: #fff; }

/* the guide at the left: what this page is about, in her words */
.guide { flex: none; width: 290px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.guide-say { position: relative; background: #fff; border: 2px solid var(--green-deep); border-radius: var(--bubble-r); padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(60,40,20,.12);
  font-size: 1.25rem; line-height: 1.75; }
.guide-say.pop { animation: rise .55s ease both; }
.guide-say p + p { margin-top: 6px; }
.guide-say::after { content: ''; position: absolute; left: 50%; bottom: -14px; margin-left: -12px; border: 12px solid transparent; border-bottom: 0; border-top: 14px solid var(--green-deep); }
.guide-say p { margin: 0; }
.guide-say b { color: var(--accent-2); background: linear-gradient(transparent 62%, rgba(232,169,58,.35) 62%); }
.guide-warn { margin-top: 10px !important; padding: 6px 10px; background: rgba(192,57,43,.08); color: var(--neg); font-weight: 700; }
.guide-who { position: relative; flex: 0 1 auto; min-height: 0; display: flex; justify-content: center; }
.guide-who img { display: block; height: 34vh; max-height: 320px; min-height: 150px; width: auto; }
:root { --bubble-r: 16px; } /* Airi's speech bubbles are rounded */
/* the first setup page: Airi alone in the middle, introducing herself */
.s-main.intro { justify-content: center; align-items: flex-end; }
.airi-intro { width: min(520px, 100%); display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.airi-intro .guide-say { font-size: 1.4rem; padding: 18px 22px; }
.airi-intro .guide-who { display: flex; }
.airi-intro .guide-who img { height: 52vh; max-height: 480px; min-height: 180px; }
.guide-name { position: absolute; left: 0; bottom: 10px; background: var(--green-deep); color: #fff; font-weight: 700; padding: .15em .8em; font-size: 1rem; }
.guide-name small { display: block; font-size: .7rem; color: #cfe2d6; font-weight: 500; }

/* long explanations folded away */
/* the 「ヘルプ」 button a long explanation sits behind, and its pop-up */
.help-btn { font: inherit; display: inline-flex; align-items: center; gap: .35em; margin: 6px 0 10px; padding: .25em .8em; border: 2px solid var(--accent); border-radius: var(--r); background: var(--panel); color: var(--accent-2); font-weight: 700; font-size: 1rem; cursor: pointer; }
.help-btn::before { content: '？'; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8em; }
.help-btn:hover { background: var(--panel-2); }
.modal-bg.help-bg { z-index: 200; }
/* the in-game yes/no question */
.modal-bg.ask-bg { z-index: 210; }
.modal.ask-modal { max-width: 460px; padding: 26px 26px 20px; text-align: center; }
.ask-msg { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.7; color: var(--ink); }
.ask-note { margin: 10px 0 0; font-size: .92rem; line-height: 1.6; color: var(--muted); }
.ask-btns { justify-content: center; gap: 12px; margin-top: 22px; }
.ask-btns .btn { width: 140px; }
.help-modal { max-width: 640px; width: calc(100% - 32px); }
.help-modal h2 { display: flex; align-items: baseline; gap: .4em; flex-wrap: wrap; }
.help-modal h2 small { font-size: .9rem; color: var(--muted); font-weight: 700; }
.help-mark { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8em; align-self: center; }
.help-body { max-height: 60vh; overflow: auto; }
.help-body p { margin: 0; padding: 14px 18px; background: var(--panel-2); border-left: 3px solid var(--accent); font-size: 1.05rem; line-height: 2; }
details.note { margin: 8px 0 12px; font-size: 1rem; color: var(--ink-2); }
details.note summary { cursor: pointer; display: inline-flex; align-items: center; gap: .3em; color: var(--accent-2); font-weight: 700; font-size: .95rem; list-style: none; }
details.note summary::-webkit-details-marker { display: none; }
details.note summary::before { content: '？'; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8em; }
details.note[open] summary { margin-bottom: 4px; }
details.note p { margin: 0; padding: 12px 16px; background: var(--panel-2); border-left: 3px solid var(--accent); line-height: 2; }
.kpis { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.kpi { display: flex; flex-direction: column; line-height: 1.15; }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi b { font-family: var(--f-num); font-size: 1.35rem; font-weight: 500; letter-spacing: .02em; color: var(--green-deep); }
.kpi b.neg { color: var(--neg); }

/* grids inside a page */
.g2, .g3, .g-side, .g-side-l { display: grid; gap: 12px; align-items: start; min-height: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-funds { display: grid; gap: 12px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.g-funds .panel { margin: 0; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
.g-side-l { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
.g2 > *, .g3 > *, .g-side > *, .g-side-l > * { min-width: 0; }
.g2 .panel, .g3 .panel, .g-side .panel, .g-side-l .panel { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack > .panel { margin-bottom: 0; }
.fill { flex: 1; min-height: 0; }

/* card lists split into pages; how many fit is measured after drawing (fitPaged) */
.paged { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.paged-grid { flex: 1; min-height: 0; display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); align-content: start; overflow: hidden; padding: 2px; }
.paged-grid > .card { margin: 0; }
.pager { flex: none; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px 0 0; }
.pager .pg-no { font-family: var(--f-num); color: var(--ink-2); min-width: 4.5em; text-align: center; font-size: 1.05rem; }
.pager .dots { display: flex; gap: 5px; }
.pager .dots i { width: 8px; height: 8px; background: var(--line-2); transform: rotate(45deg); }
.pager .dots i.cur { background: var(--accent); }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }

/* filter bar on the property page */
.filter { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.filter label { display: flex; flex-direction: column; gap: 2px; font-size: .84rem; color: var(--muted); }
.filter select { width: auto; min-width: 8em; }
.filter .pair { display: flex; align-items: center; gap: 4px; }
.filter-bar { flex: none; padding: 8px 14px; margin-bottom: 8px; }
.filter-bar .btn { margin-left: auto; }
.list-head { flex: none; display: flex; align-items: center; gap: 12px; margin: 0 0 6px; color: var(--ink-2); }
.list-head b { font-family: var(--f-num); color: var(--green-deep); font-size: 1.2rem; }
.list-head .btn { margin-left: auto; }

/* property cards: one per row */
.card.prop { position: relative; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.prop-main { flex: 1 0 100%; min-width: 0; padding-right: 168px; box-sizing: border-box; }
.card.prop h4 { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.45; }
.prop-loc { font-size: 1.15rem; line-height: 1.8; color: var(--ink-2); margin: 0; }
.prop-note { font-size: 1.05rem; line-height: 1.8; color: var(--muted); margin: 0; }
.prop-key { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1.2; box-sizing: border-box; padding: 4px 14px; border-left: 3px solid var(--gold); }
.prop-key span { font-size: 1rem; color: var(--muted); font-weight: 700; }
.prop-key b.stars { font-size: 1.8rem; letter-spacing: 0; white-space: nowrap; }
.prop-key em { font-style: normal; font-family: var(--f-num); font-size: 1.15rem; color: var(--ink-2); }
.prop-key.spot { width: 170px; }
.prop-key.rent { width: 215px; border-left-color: var(--accent); }
.prop-key.rent b { font-family: var(--f-num); font-size: 2.3rem; font-weight: 600; color: var(--green-deep); white-space: nowrap; }
.prop-sub { flex: 1 0 auto; display: grid; grid-template-columns: max-content max-content; gap: 2px 14px; margin: 0; font-size: 1.12rem; line-height: 1.8; }
.prop-sub dt { color: var(--muted); white-space: nowrap; }
.prop-sub dd { margin: 0; font-family: var(--f-num); white-space: nowrap; }
.prop-sub small { font-family: var(--f-body); color: var(--muted); }
.prop-act { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 150px; }
.prop-act .tag { position: absolute; top: 14px; right: 20px; width: 150px; box-sizing: border-box; text-align: center; font-size: .95rem; padding: .2em 0; }
.card.prop .btn { min-width: 0; width: 100%; white-space: nowrap; padding-left: 8px; padding-right: 8px; }

/* menu tables, fees */
.tbl.games td, .tbl.games th { white-space: nowrap; vertical-align: middle; }
.tbl.games input[type=number] { width: 66px; }
.tbl.games .ctl { display: inline-flex; align-items: center; gap: 4px; }
.tbl.games .ctl output { min-width: 1.6em; text-align: center; font-family: var(--f-num); font-size: 1.1rem; }
.tbl.menu td, .tbl.menu th { vertical-align: middle; padding-top: .1em; padding-bottom: .1em; }
.tbl.menu tr.cat th { text-align: left; padding-top: 5px; color: var(--green-deep); font-size: .9rem; font-weight: 700; }
.tbl.menu input[type=number] { width: 76px; padding: .05em .35em; }
.tbl.fees input[type=number] { width: 80px; }
.tbl.menu td:nth-child(2), .tbl.fees td:first-child, .tbl.fees th { white-space: nowrap; }
.tbl.menu .small.muted { display: block; line-height: 1.2; font-size: .76rem; }
.tbl.menu td.small { color: var(--muted); }
.tbl.fees tr.child td { background: var(--panel-2); }
.tbl.fees tr.child td:first-child { font-size: .9em; color: var(--muted); }
.tasks { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; margin: 4px 0; }
.tasks .chk { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }

/* stars */
.stars { color: #e7a91e; letter-spacing: 1px; }
.stars .off { color: rgba(120,90,50,.18); }
.stars .half { position: relative; display: inline-block; color: transparent; }
.stars .half::before, .stars .half::after { position: absolute; left: 0; top: 0; color: #e7a91e; }
.stars .half::before { content: '☆'; }
.stars .half::after { content: '★'; width: 50%; overflow: hidden; }
.stars-big { font-size: 1.45rem; margin: 2px 0 4px; }
.stars-big b { font-family: var(--f-num); font-weight: 500; }

/* decoration lists */
.deco h4 { margin: 6px 0 2px; font-size: .95rem; color: var(--green-deep); }
.deco-row { display: flex; align-items: center; gap: 8px; padding: 1px 7px; border: 1px solid transparent; border-radius: var(--r); cursor: pointer; font-size: .92rem; }
.deco-row > div { flex: 1; min-width: 0; }
.deco-row:hover { background: var(--panel-2); }
.deco-row.cur { border-color: var(--accent); background: var(--accent-soft); }
.deco-row input { margin: 0; }
.deco-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.swatch { width: 28px; height: 20px; border-radius: var(--r); border: 1px solid rgba(0,0,0,.2); flex: none; background: repeating-linear-gradient(45deg, #ddd 0 4px, #fff 4px 8px); }

/* PR trends */
.trend svg { width: 100%; height: 100px; display: block; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); }
.tg-grid { stroke: rgba(0,0,0,.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tg-axis { display: flex; justify-content: space-between; }
.tg-key { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: var(--r); vertical-align: -1px; }
.up { color: var(--good); font-weight: 700; }
.down { color: var(--neg); font-weight: 700; }
/* reviews */
.reviews { list-style: none; padding: 0; margin: 6px 0; }
.reviews li { padding: 5px 10px; border-left: 3px solid var(--line-2); margin-bottom: 4px; background: var(--panel-2); font-size: .94rem; }
.reviews li.bad { border-left-color: var(--neg); background: rgba(192,57,43,.06); }
.reviews li.good { border-left-color: var(--good); }
/* log */
.log { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.log li { padding: .22em 0; border-bottom: 1px dashed var(--line); }
.log li.good { color: var(--good); }
.log li.bad { color: var(--neg); }
.log li.warn { color: var(--warn); }
.log li.level { color: var(--level); font-weight: 700; }

/* the store's name and the owner's look */
.profile-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; }
.profile-name { flex: 1 1 220px; min-width: 0; }
.profile-name .store-name { margin: 4px 0 6px; }
.owner-pick { display: flex; gap: 10px; margin-top: 4px; }
.owner-card { font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 150px; padding: 6px 6px 4px;
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: var(--r); }
.owner-card img { width: 136px; height: 170px; object-fit: cover; object-position: top; display: block; background: radial-gradient(circle at 50% 40%, #fff, #e9f0e9); }
.owner-card.cur { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; color: var(--accent-2); }
/* the owner's background: one card each */
.trait-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.trait-card { font: inherit; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px;
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: var(--r); }
.trait-card b { font-size: 1.05em; }
.trait-card span { font-size: .88em; color: var(--muted); }
.trait-card .trait-minus { color: var(--neg); }
.trait-card.cur { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.trait-card.cur b { color: var(--accent-2); }

/* people cards: the bust-up and who they are on top, the shift wish across, then the abilities with room around them */
.card.person { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.person-head { display: flex; gap: 14px; align-items: flex-start; }
.person .bust { flex: none; width: 112px; height: 140px; object-fit: cover; object-position: top;
  border: 1px solid var(--line-2); border-radius: var(--r); background: radial-gradient(circle at 50% 38%, #ffffff, #e3ede5 70%); }
.person-id { min-width: 0; }
.person h4 { margin: 2px 0 4px; font-size: 1.25rem; }
.person-meta { margin: 0; color: var(--ink-2); font-size: .95rem; }
.person-pay { margin: 4px 0 0; font-family: var(--f-num); font-size: 1.2rem; color: var(--green-deep); }
.person-wish { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: .95rem; }
.person-wish .lbl { flex: none; font-size: .8rem; font-weight: 700; color: var(--muted); }
.person-wish .avail { gap: 0 14px; }
.person-stats { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.person-stats .stat { font-size: .98rem; }
.person-note { margin: 0; font-size: .9rem; color: var(--ink-2); }
.person .claims { margin: 0; font-size: .95rem; }
.person .btn-row { margin-top: auto; }
.person .btn-row .btn.sm { font-size: .95rem; padding: .32em .9em; }
.panel.person .bust { width: 104px; height: 130px; float: left; margin: 0 12px 6px 0; }
.panel.person::after { content: ''; display: block; clear: both; }

/* shift */
.shift { border-collapse: collapse; font-size: .9rem; }
.shift th, .shift td { border: 1px solid var(--line-2); padding: 0; text-align: center; min-width: 30px; height: 30px; background: var(--panel); }
.shift th { font-weight: 500; color: var(--ink-2); background: var(--panel-2); }
.shift th.who { text-align: left; padding: 0 8px; white-space: nowrap; min-width: 140px; color: var(--ink); }
.shift td.num { padding: 0 6px; min-width: 64px; }
.shift th.closed, .shift td.closed { background: repeating-linear-gradient(45deg, var(--panel-2) 0 4px, var(--line) 4px 6px); color: var(--muted); }
.shift td.cell { cursor: pointer; user-select: none; }
.shift td.cell:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.shift td.ng { background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(192,57,43,.16) 5px 7px); }
.shift td.on { background: var(--accent); color: #fff; font-weight: 700; }
.shift td.on.ng { background: var(--warn); }
.shift td.blocked { opacity: .4; }
.shift tr.foot th { text-align: left; padding: 0 8px; color: var(--muted); font-size: .84rem; }
/* the shift of one day: the days down the left, the hours across the top, a row of blocks for each staff member */
.sh-wrap { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 10px; }
.sh-days { flex: none; display: flex; flex-direction: column; gap: 4px; width: 62px; }
.sh-day { font: inherit; display: flex; flex-direction: column; align-items: center; padding: 5px 0; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: var(--r); background: var(--panel); color: var(--ink); cursor: pointer; }
.sh-day b { font-size: 1.05rem; }
.sh-day span { font-size: .76rem; color: var(--muted); }
.sh-day:hover { border-color: var(--accent); }
.sh-day.closed { background: repeating-linear-gradient(45deg, var(--panel-2) 0 4px, var(--line) 4px 6px); }
.sh-day.cur { background: var(--accent); border-color: var(--accent-2); color: #fff; }
.sh-day.cur span { color: #ffd98a; }
.sh-main { flex: 1; min-width: 0; }
.sh-grid { display: grid; gap: 5px 0; align-items: stretch; margin-bottom: 8px; }
.sh-hour { font-family: var(--f-num); font-size: .78rem; text-align: center; padding: 3px 0; border-left: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink-2); }
.sh-count { font-family: var(--f-num); font-size: .78rem; text-align: center; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.sh-count i { font-style: normal; font-size: .7rem; color: var(--gold); margin-left: 1px; }
.sh-count.none { background: rgba(192,57,43,.12); }
.sh-who { grid-column: 1; align-self: center; padding-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-who.head { font-size: .8rem; color: var(--muted); }
.sh-seg { font: inherit; height: 36px; margin: 0 1px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); cursor: pointer; }
.sh-seg.on.jl { margin-left: 0; border-left-color: transparent; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.sh-seg.on.jr { margin-right: 0; border-right-color: transparent; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.sh-seg:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.sh-seg.ng { background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(192,57,43,.16) 5px 7px); }
.sh-seg.on { background: var(--accent); border-color: var(--accent-2); }
.sh-seg.on.ng { background: var(--warn); }
.sh-seg:disabled { cursor: default; opacity: .4; outline: 0; }
.sh-week { align-self: center; display: flex; flex-direction: column; align-items: flex-end; padding-left: 8px; font-family: var(--f-num); }
.sh-week span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.sh-cuts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 10px; margin-bottom: 8px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r); }
.sh-cut { display: inline-flex; align-items: center; gap: 8px; }
.sh-cut.cur { font-weight: 700; }
/* tabs inside a page */
.innertabs { flex: none; display: flex; flex-wrap: wrap; margin: 0 0 10px; border-bottom: 2px solid var(--line-2); }
.info-body > .omakase { flex: none; }
.innertabs button { font: inherit; font-size: .92rem; padding: .3em 1.1em; margin-bottom: -2px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-2); cursor: pointer; }
.innertabs button:hover { color: var(--green-deep); }
.innertabs button.cur { color: var(--green-deep); border-bottom-color: var(--accent); font-weight: 700; }
/* big: boxed tabs that read clearly as tabs */
.innertabs.big { gap: 4px; margin-bottom: 14px; }
.innertabs.big button { font-size: 1.08rem; padding: .55em 1.6em; border: 2px solid var(--line-2); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: var(--panel-2); color: var(--ink-2); }
.innertabs.big button.cur { background: var(--panel); color: var(--green-deep); border-color: var(--accent); border-top-width: 4px; margin-bottom: -2px; }
/* equipment: the pieces to pick from beside the picked one */
.eq-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 8px; }
.eq-cards { display: flex; flex-direction: column; gap: 4px; }
.eq-card { font: inherit; display: flex; align-items: center; gap: 10px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); color: var(--ink); cursor: pointer; text-align: left; }
.eq-card img { flex: none; width: 52px; height: 44px; object-fit: contain; }
.eq-card .eq-name { display: flex; flex-direction: column; font-size: .9rem; line-height: 1.3; }
.eq-thumb { flex: none; width: 48px; height: 40px; object-fit: contain; margin-right: 8px; vertical-align: middle; }
.counter .eq-thumb { align-self: center; }
.eq-thumb.flip, .eq-card img.flip, .eq-detail img.flip { transform: scaleX(-1); }
.eq-card:hover { border-color: var(--accent); }
.eq-card.cur { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); background: #eef6f1; }
.eq-detail { border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; background: var(--panel-2); }
.eq-detail img { display: block; width: 100%; height: 190px; object-fit: contain; }
.eq-detail h4 { margin: 6px 0; color: var(--green-deep); }
.eq-detail .tbl td:first-child { color: var(--ink-2); white-space: nowrap; }

/* =====================================================================
   play: the store on the left with its numbers laid over it, the information on the right
   ===================================================================== */
/* the information takes 2/5 of the width (a little more on a small screen), half on the pages with wide tables, never more */
.play { height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 3fr) minmax(min(500px, 50%), 2fr); gap: 10px; padding: 10px; overflow: hidden; }
.play.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stage { position: relative; min-height: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow);
  background: radial-gradient(ellipse 70% 62% at 50% 58%, #fbf7ee 0%, #e4ece3 60%, #c9d8cc 100%); }
.stage::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(47,122,90,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(47,122,90,.05) 1px, transparent 1px); background-size: 32px 32px; }
#storeView { position: absolute; inset: 0; overflow: hidden; }
#storeView canvas { display: block; }
.hud-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 10px 12px 26px; background: linear-gradient(rgba(255,252,245,.95), rgba(255,252,245,.7) 65%, rgba(255,252,245,0)); pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.hud-id { flex: 1; min-width: 160px; }
.hud-store { font-family: var(--f-disp); font-size: 1.25rem; color: var(--green-deep); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-prop { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-date { font-family: var(--f-num); font-size: 1.5rem; font-weight: 500; letter-spacing: .03em; margin-top: 2px; line-height: 1.1; color: var(--ink); }
.hud-date small { font-family: var(--f-body); font-size: .9rem; color: var(--ink-2); margin-left: .4em; font-weight: 700; }
/* national holidays: 木・祝 in one colour everywhere a date or the 祝 column shows (game.js wdHtml / holTag) */
.wd-hol { color: var(--neg); font-weight: 700; }
.hol-name { margin-left: .4em; font-size: .85em; }
.hud-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hud-nums { display: flex; gap: 4px; align-items: stretch; }
.hud-cash { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 14px 6px; background: var(--green-deep); border-radius: var(--r); box-shadow: 0 4px 12px rgba(30,60,40,.25); }
.hud-cash span { font-size: .78rem; color: #cfe2d6; font-weight: 700; white-space: nowrap; }
.hud-cash b { font-family: var(--f-num); font-weight: 600; color: #ffd98a; white-space: nowrap; letter-spacing: .02em; line-height: 1.05; }
.cash-main b { font-size: 2rem; }
.cash-sub b { font-size: 1.1rem; }
.hud-cash b.neg { color: #ff9a8a; }
/* the notice of the next unlocks, under the numbers */
.hud-next { display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: rgba(255,253,246,.92); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: var(--r); font-size: .85rem; line-height: 1.5; color: var(--ink-2); max-width: 100%; }
.hud-next b { color: var(--green-deep); }
.hud-next-tag { font-family: var(--f-num); font-size: .8rem; letter-spacing: .12em; color: #fff; background: var(--gold); padding: 1px 6px; border-radius: var(--r); }
/* the owner level badge left of the cash: wood with a gold number */
.hud-olv { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; min-width: 92px; padding: 4px 12px 6px; border-radius: var(--r);
  background: linear-gradient(160deg, #8a5a32, #5e3b1e); border: 2px solid #c7a25a; box-shadow: 0 4px 12px rgba(60,35,15,.3), inset 0 1px 0 rgba(255,255,255,.18); }
.hud-olv span { font-size: .78rem; font-weight: 700; color: #f3dfb8; letter-spacing: .15em; white-space: nowrap; }
.hud-olv b { font-family: var(--f-num); font-weight: 600; font-size: 2rem; line-height: 1; color: #ffd98a; text-shadow: 0 2px 0 rgba(0,0,0,.25); white-space: nowrap; }
.hud-olv b small { font-size: .5em; margin-right: .12em; color: #f3dfb8; }
.hud-olv .olv-bar { display: block; width: 100%; height: 4px; margin-top: 3px; border-radius: 2px; background: rgba(0,0,0,.35); overflow: hidden; }
.hud-olv .olv-bar i { display: block; height: 100%; background: #ffd98a; }
.hud-kpis { display: grid; grid-template-columns: repeat(3, auto); gap: 4px; }
.chip { display: flex; flex-direction: column; justify-content: center; padding: 1px 10px 2px; min-width: 76px; line-height: 1.15;
  background: rgba(255,253,248,.94); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: var(--r); box-shadow: 0 2px 6px rgba(90,60,30,.1); }
.chip span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.chip b { font-family: var(--f-num); font-weight: 500; font-size: 1.12rem; letter-spacing: .02em; white-space: nowrap; color: var(--ink); }
.chip.money { border-left-color: var(--accent); }
.chip.lv { border-left-color: var(--wood); }
.chip b.neg { color: var(--neg); }
.hud-snd { display: flex; gap: 4px; align-items: center; }
.hud-snd select { width: auto; max-width: 12em; font-size: .82rem; padding: .08em .3em; }
/* the live line runs across the whole top, under the name and the numbers */
.hud-top { flex-wrap: wrap; row-gap: 0; }
.hud-break { flex: 0 0 100%; height: 0; }
.hud-live { flex: 0 1 auto; max-width: 100%; margin-top: 6px; font-size: .95rem; font-weight: 700;
  padding: 2px 10px; background: rgba(255,253,248,.94); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--r); pointer-events: none; }
.hud-live:empty { display: none; }
.hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 22px 12px 10px; background: linear-gradient(rgba(255,252,245,0), rgba(255,252,245,.75) 45%, rgba(255,252,245,.95)); pointer-events: none; }
.hud-bottom > * { pointer-events: auto; }
.hud-bottom .spacer { flex: 1; pointer-events: none; }
.hud-bottom .btn.go { min-width: 132px; }
.hud-bottom .btn.sm { padding: .26em .6em; }
.run-clock { min-width: 4.6em; text-align: center; font-family: var(--f-num); font-weight: 500; font-size: 1.05rem; color: var(--ink-2); }
.seg { display: inline-flex; }
.seg .btn { border-radius: 0; margin-left: -1px; }
.seg .btn:first-child { border-radius: var(--r) 0 0 var(--r); margin-left: 0; }
.seg .btn:last-child { border-radius: 0 var(--r) var(--r) 0; }
.edit-msg { font-weight: 700; color: var(--green-deep); }

.info { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.tabs { flex: none; display: flex; overflow-x: auto; background: var(--green-deep); }
.tabs button { flex: 1; font: inherit; font-size: 1rem; background: none; border: 0; padding: .55em .6em; cursor: pointer; color: #bcd5c7;
  border-top: 3px solid transparent; white-space: nowrap; }
.tabs button:hover { color: #fff; }
.tabs button.cur { color: var(--green-deep); border-top-color: #f0b74e; font-weight: 700; background: var(--panel); }
.badge { display: inline-block; background: #e2554f; color: #fff; font-size: .74rem; font-weight: 700; min-width: 1.5em; padding: 0 .35em; margin-left: .35em; border-radius: 50%; }
/* the page buttons: one width for all (--stw, the widest, set by unifyButtons), wrapping onto more rows */
.info .subtabs { flex: none; margin: 0; padding: 8px 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--stw, 120px), 100%), 1fr)); gap: 4px; }
.info .subtabs.measure { display: flex; flex-wrap: nowrap; }
.info .subtabs.measure button { flex: none; }
.info .subtabs button { font-size: .92rem; padding: .26em .75em; text-align: center; }

/* 当月情報: the three numbers of the month, larger than anywhere else */
.bignums-xl .bignums { gap: 10px; margin: 4px 0 12px; }
.bignums-xl .bignum { flex: 1 1 0; min-width: 180px; padding: 10px 16px 12px; }
.bignums-xl .bignum span { font-size: 1rem; }
.bignums-xl .bignum b { font-size: 2.6rem; }
.owner-stats .stat-bar { width: 55%; }
.owner-stats td { padding-top: 4px; padding-bottom: 4px; }
.owner-stats td:first-child { white-space: nowrap; }
.muted-note { color: var(--muted); align-self: center; }

/* the equipment table: narrow buttons, names kept on a line */
.tbl.equip .eq-name { min-width: 7.5em; }
.tbl.equip .eq-group { min-width: 4.5em; vertical-align: top; }
.tbl.equip td { vertical-align: middle; }
.buy-btns { white-space: nowrap; text-align: right; }
.buy-btns .btn { width: 5.2em; min-width: 0; padding-left: 0; padding-right: 0; margin-left: 4px; }

/* pages made of several blocks: each block keeps its height and the page scrolls (the info column is a flex column) */
.info-body[data-page^="report:"] > *, .info-body[data-page="dash:owner"] > *, .info-body > .g2, .info-body > .bignums, .info-body > .g-side, .info-body > .g-side-l, .info-body > .g-stack, .info-body > .floor-banner { flex: none; }

/* forms and sums laid out as label / value rows (税金・会社, 借入) */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; align-items: center; margin: 4px 0 8px; }
.kv > dt { color: var(--muted); font-size: .9rem; font-weight: 700; }
.kv > dd { margin: 0; }
.kv > dd .btn { margin-left: 8px; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.form-row label { display: inline-flex; align-items: center; gap: 6px; }
.info-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; padding: 10px 12px 12px; }
.info-body > .panel:last-child { margin-bottom: 0; }
.info-body .g2 { gap: 10px; }
.info-body .panel { padding: 10px 14px; }
.info-body .panel > h3 { margin-bottom: 8px; padding-bottom: 4px; }
.info-body p.small { font-size: .82rem; line-height: 1.45; }

/* =====================================================================
   the results popup
   ===================================================================== */
.modal-bg { position: fixed; inset: 0; background: rgba(40,30,18,.5); display: flex; align-items: center; justify-content: center; padding: 16px 12px; overflow-y: auto; z-index: 50; animation: fadeIn .4s ease; }
.modal { position: relative; background: var(--bg); border: 1px solid var(--line-2); border-top: 5px solid var(--accent); border-radius: var(--r); max-width: 800px; width: 100%;
  padding: 14px 18px 14px; box-shadow: 0 20px 60px rgba(40,25,10,.4); animation: popIn .48s cubic-bezier(.2,1.2,.4,1); max-height: calc(100dvh - 32px); overflow-y: auto; }
.person-bio { margin: 8px 0 0; padding: 6px 10px; background: rgba(232,169,58,.12); border-left: 3px solid #e8a93a; font-size: .95rem; line-height: 1.7; }
.modal.story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: end; max-width: 760px; padding-bottom: 22px; }
.story-face { width: 100%; height: auto; display: block; }
.story-body { font-size: 1.08rem; line-height: 1.9; padding-bottom: 4px; }
.story-scene { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 2px; margin: 0 0 10px; }
.story-body p { margin: 0 0 10px; }
.story-note { padding: 8px 12px; background: var(--panel-2); border-left: 3px solid var(--accent); font-size: .95rem; }
.story-body .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.story-body .btn-row .btn { min-width: var(--btn-w, 220px); }
.story-line { min-height: 1.9em; }
.story-line .story-caret { font-style: normal; color: var(--accent); animation: storyCaret .8s steps(1) infinite; }
.story-line .story-caret::before { content: '▍'; }
.story-line .story-caret { display: inline-block; width: 0; overflow: visible; }
.story-line .story-rest { visibility: hidden; }
@keyframes storyCaret { 50% { opacity: 0; } }
.story-after { opacity: 0; visibility: hidden; }
.modal.story.typed .story-after { visibility: visible; animation: storyFade .6s ease forwards; }
.modal.story.shown .story-after { animation: none; opacity: 1; }
@keyframes storyFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .modal.story { grid-template-columns: 1fr; } .story-face { width: 160px; margin: 0 auto; } }
.modal h2 { margin: 0 0 8px; font-size: 1.3rem; color: var(--green-deep); }
.modal h3 { margin: 8px 0 4px; font-size: 1rem; color: var(--green-deep); }
.rep-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.rep-money { display: flex; flex-direction: column; align-items: center; padding: 8px; border-radius: var(--r); margin: 4px 0 8px; text-align: center; border: 1px solid; }
.rep-money b { font-family: var(--f-num); font-weight: 600; font-size: 2.5rem; line-height: 1.1; letter-spacing: .02em; }
.rep-money.plus { background: rgba(42,134,86,.08); color: var(--good); border-color: rgba(42,134,86,.3); }
.rep-money.minus { background: rgba(192,57,43,.07); color: var(--neg); border-color: rgba(192,57,43,.3); }
.rep-money .small { color: var(--ink-2); }
.rep-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rep-grid > div { display: flex; flex-direction: column; align-items: center; padding: 5px 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.rep-grid b { font-family: var(--f-num); font-weight: 500; font-size: 1.4rem; }
.gripe-top { background: rgba(192,57,43,.07); padding: 6px 10px; border-radius: var(--r); font-size: .94rem; }
.gripe-top .small { display: block; }
.gripes { list-style: none; padding: 0; margin: 0; font-size: .94rem; }
.gripes li { padding: 2px 0; }
.levelup { position: relative; overflow: hidden; text-align: center; padding: 10px 10px; margin: 0 0 8px; border-radius: var(--r); color: #fff;
  background: linear-gradient(120deg, #e0a82e, #e0566b, #7b5cc4, #3f7fd1, #e0a82e); background-size: 300% 300%; animation: lvBg 3s linear infinite, lvPop .6s cubic-bezier(.2,1.6,.4,1); }
.levelup b { display: block; font-family: var(--f-disp); font-weight: 400; font-size: 2.1rem; letter-spacing: 3px; text-shadow: 0 3px 0 rgba(0,0,0,.25); animation: lvPulse 1s ease-in-out infinite; }
.levelup span { display: block; font-size: .95rem; margin-top: 4px; }
.levelup .lv-item { margin-top: 6px; text-align: left; }
.levelup .lv-head { display: block; font-weight: 700; font-size: 1.05rem; text-align: center; margin-bottom: 4px; }
.levelup .lv-new { background: rgba(255,255,255,.96); color: #2b2620; border-radius: var(--r); padding: 8px 10px; margin: 6px 0; font-size: .95rem; text-shadow: none; }
.levelup .lv-new b { display: inline-block; font-family: var(--f-body); font-size: .76rem; letter-spacing: 1px; background: #e0566b; color: #fff; padding: 0 .5em; margin-right: .3em; border-radius: var(--r); animation: none; text-shadow: none; }
.levelup .lv-tip { display: block; font-size: .88rem; color: #6b5a44; margin: 2px 0 6px; }
.levelup .lv-plain { display: block; font-size: .9rem; text-align: center; }
.run-next { margin-top: .5em; text-align: center; }
@keyframes fadeIn { from { opacity: 0; } }
/* screen changes: a curtain of the page colour fades in and out (js: curtain); a new page or tab fades in */
#curtain { position: fixed; inset: 0; z-index: 500; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 380ms ease; }
#curtain.on { opacity: 1; pointer-events: auto; }
.pane-in { animation: paneIn .5s ease both; }
.op-head.pane-in { animation-name: fadeIn; } /* stays stuck to the top: no slide */
@keyframes paneIn { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .pane-in { animation: none; } }
@keyframes popIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }
@keyframes lvBg { to { background-position: 300% 0; } }
@keyframes lvPop { from { transform: scale(.4); opacity: 0; } }
@keyframes lvPulse { 50% { transform: scale(1.08); } }

/* ---------- small windows: pages may scroll, columns stack ---------- */
@media (max-width: 1100px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { padding-left: 1.2em; padding-right: 1em; }
  .steps li span { display: none; }
  .guide { width: 220px; }
  .moneybar .m { padding: 4px 8px; }
  .moneybar .m b { font-size: 1.25rem; }
  .moneybar .m.main b { font-size: 1.45rem; }
}
@media (max-width: 900px) {
  body { font-size: 14.5px; }
  .g2, .g3, .g-side, .g-side-l, .g-funds, .deco-cols, .rep-cols { grid-template-columns: minmax(0, 1fr); }
  .s-head { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
  .steps { margin: 0; }
  .s-main { padding: 8px 10px 0; flex-direction: column; gap: 8px; }
  .guide { width: auto; }
  .guide-who { display: none; }
  .guide-say { margin: 0; padding: 8px 12px; font-size: 1.1rem; }
  .guide-say::after { display: none; }
  .s-main.intro { align-items: center; justify-content: flex-end; }
  .airi-intro .guide-say { margin-bottom: 8px; }
  .airi-intro .guide-who img { height: 44vh; }
  .moneybar { width: 100%; flex-wrap: wrap; }
  .s-foot { flex-wrap: wrap; padding: 12px 12px; gap: 8px; }
  .s-foot .kpis { order: -1; width: 100%; justify-content: space-between; }
  .s-foot .btn { flex: 1; min-width: 0; }
  .play, .play.wide { grid-template-columns: minmax(0, 1fr); grid-template-rows: 48vh minmax(0, 1fr); padding: 6px; gap: 6px; }
  .hud-kpis { grid-template-columns: repeat(3, auto); }
  .cash-main b { font-size: 1.3rem; }
  .hud-olv { min-width: 0; padding: 3px 8px 4px; }
  .hud-olv b { font-size: 1.3rem; }
  .chip { min-width: 0; padding: 1px 6px; }
  .chip b { font-size: .95rem; }
  .hud-snd select { display: none; }
  .hud-bottom .btn.go { min-width: 0; }
  .rep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diffs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px; }
  .title { align-items: flex-start; }
  .title-art { width: 100%; top: auto; height: 46vh; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .title-art::after { display: none; }
  .title-owner { height: 42vh; right: 50%; transform: translateX(50%); animation: none; }
  .title-main { width: 100%; padding: 6vh 16px 0; }
  .title-ver { bottom: 64px; color: #cfe2d6; }
}

/* the owner's time: roomy, so the numbers read easily */
.owner-time { font-size: 1.05rem; line-height: 1.9; }
.owner-time .info-list, .info-body .info-list { margin: 4px 0 12px; padding-left: 1.3em; font-size: 1.05rem; line-height: 1.8; }
.owner-time .week-plan { font-size: .95rem; }
.owner-time .sh-who, .owner-time .sh-hour { font-size: .95rem; }
.sh-note { align-self: center; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); font-size: .95rem; }
.sh-note.off { background: var(--panel-2); color: var(--ink-2); }
.owner-time .holidays { gap: 4px 16px; margin: 4px 0 10px; }
.owner-time .acts-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
@media (max-width: 760px) { .owner-time .acts-cols { grid-template-columns: 1fr; } }
.owner-time .tbl.acts td { padding: .32em .6em; vertical-align: middle; }
.owner-time .tbl.acts td b { font-size: 1.05rem; }
.owner-time .tbl.acts .small { font-size: .84rem; line-height: 1.5; margin-top: 2px; }
.owner-time .tbl.acts td.num { font-size: 1.2rem; }
.owner-time .tbl.acts tr.rest td { background: var(--panel-2); }
.owner-sum { margin: 10px 0 4px; }
.owner-sum b { font-family: var(--f-num); font-size: 1.4rem; color: var(--green-deep); }

/* Airi: her answer to what to call the owner, stepping through her lines */
.airi-ask { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.airi-ask input { flex: 1; min-width: 0; width: auto; }
.airi-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.airi-nav .icon-btn { color: var(--accent-2); border-color: var(--accent); font-size: .85rem; }
input.call-name { width: 100%; max-width: 240px; margin-top: 2px; }
/* Airi during play, at the top of the information */
.airi-bar { flex: none; display: flex; align-items: flex-end; gap: 10px; padding: 8px 12px 0; position: relative; }
.airi-face { flex: none; width: 78px; height: 92px; object-fit: cover; object-position: 50% 0; border: 2px solid var(--green-deep); border-radius: 50% 50% var(--r) var(--r); background: #e3ede5; }
.airi-say { position: relative; flex: 1; min-width: 0; background: #fff; border: 2px solid var(--green-deep); padding: 8px 12px; margin-bottom: 4px; font-size: 1.18rem; line-height: 1.6; border-radius: var(--bubble-r); }
.airi-say.pop { animation: rise .5s ease both; }
.airi-say::before { content: ''; position: absolute; left: -12px; bottom: 14px; border: 6px solid transparent; border-right: 10px solid var(--green-deep); }
.airi-say p { margin: 0; }
.airi-say b { color: var(--accent-2); background: linear-gradient(transparent 62%, rgba(232,169,58,.35) 62%); }
.airi-say .airi-nav { margin-top: 2px; }
.airi-x { position: absolute; right: 14px; top: 10px; padding: 0 .45em; }
.airi-open { position: absolute; right: 10px; bottom: 10px; z-index: 5; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px;
  background: var(--green-deep); color: #fff; font-weight: 700; border: 0; border-radius: 999px; box-shadow: 0 4px 12px rgba(30,60,40,.3); }
.airi-open img { width: 40px; height: 40px; object-fit: cover; object-position: 50% 4%; border-radius: 50%; background: #e3ede5; }
.info { position: relative; }

/* setup: buttons of one kind share one width */
.shell { --btn-w: 220px; --btn-w-sm: 150px; }
.shell .btn { min-width: var(--btn-w); }
.shell .btn.sm { min-width: var(--btn-w-sm); }
.shell .ctl .btn, .shell .seg .btn { min-width: 2.4em; }
.shell .s-foot .btn, .shell .s-foot .btn.next { width: 260px; min-width: 0; }
.shell .s-foot .subtabs button { width: 150px; }
.shell .airi-ask .btn.sm { min-width: 0; flex: 1; }
.shell .owner-card { width: 150px; }
@media (max-width: 900px) {
  .shell .btn, .shell .btn.sm { min-width: 0; }
  .shell .s-foot .btn, .shell .s-foot .btn.next { width: auto; flex: 1; }
  .shell .s-foot .subtabs button { width: auto; }
}

.day-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.day-pick { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 64px; height: 52px; border: 2px solid var(--line-2); border-bottom-width: 4px; background: var(--panel); font-weight: 700; font-size: 1.1rem; border-radius: var(--r); }
.day-pick input { display: none; }
.day-pick.cur { background: var(--accent); border-color: var(--accent-2); color: #fff; }
/* Airi on the store view, just above the clock's buttons */
.stage .airi-bar { position: absolute; left: 10px; right: 34%; bottom: calc(var(--hb-h, 48px) + 10px); z-index: 3; padding: 0; }
.stage .airi-say { box-shadow: 0 6px 16px rgba(30,40,30,.2); }
.stage .airi-x { right: 6px; top: 4px; }
.stage .airi-open { bottom: calc(var(--hb-h, 48px) + 14px); }

/* the info column folds away completely; the store view then takes the whole screen */
.play.folded { grid-template-columns: minmax(0, 1fr); }
.play.folded .info { display: none; }
/* while it slides open or shut the column narrows; the information keeps its width and is cut off at the edge */
.play.sliding .info { overflow: hidden; }
.info .tabs { position: relative; }
.info-fold { flex: none; width: 34px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; opacity: .75; }
.info-fold:hover { opacity: 1; }
.info-open { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 6; font: inherit; font-weight: 700; cursor: pointer;
  padding: .5em .8em; background: var(--green-deep); color: #fff; border: 0; border-radius: var(--r); box-shadow: 0 4px 12px rgba(30,60,40,.3); }
@media (max-width: 900px) {
  .play.folded { grid-template-rows: minmax(0, 1fr); }
  .info-fold { transform: rotate(90deg); }
}

/* the Nikkei average line in the fee page */
.econ-chart { display: block; width: 100%; height: 150px; background: #f7faf7; border: 1px solid var(--line-2); border-radius: var(--r); }
.econ-line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.econ-base { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .6; }
.econ-axis { display: flex; justify-content: space-between; margin: 2px 0 6px; }

/* zooming the store view: +, - and back to the whole store (shown folded or not) */
.zoom-ctl { position: absolute; right: 10px; top: calc(50% + 34px); z-index: 6; display: flex; flex-direction: column; gap: 6px; }
.zoom-btn { width: 40px; height: 40px; font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: var(--r); }
.zoom-btn:hover { border-color: var(--accent); }

.person-pay .fare { display: block; font-size: .82em; font-weight: 500; color: var(--muted); }

/* stock page */
.tbl.stock .buy-btns { white-space: nowrap; }
.tbl.stock .buy-btns .btn { min-width: 3.4em; margin-right: 4px; }

/* PR reach: a bar toward each channel's ceiling */
.pr-reach .pr-cap { width: 34%; min-width: 90px; }
.pr-reach .pr-cap .area-bar { margin-bottom: 2px; }

/* owner points (opening) */
.owner-points { margin-top: 14px; }
.owner-points .op-head { position: sticky; top: -1px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -4px; padding: 6px 4px; background: var(--panel); border-bottom: 1px solid var(--line); }
.owner-points .op-head h4 { margin: 0; }
.op-left { padding: 3px 12px; border: 1px solid #c0392b; border-radius: 2px; background: #fdecea; color: #c0392b; font-weight: 700; white-space: nowrap; }
.op-left b { font-family: var(--f-num); font-size: 1.5rem; margin: 0 .15em; }
.op-left small { font-size: .8rem; }
.op-left.done { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.owner-points .op-tbl td { vertical-align: middle; }
.owner-points .op-fixed .op-ctl, .owner-points .op-fixed .op-bar { opacity: .55; }
.owner-points .op-ctl { white-space: nowrap; width: 1%; }
.owner-points .op-bar { width: 30%; min-width: 70px; }
.owner-points .op-bar .area-bar { margin: 0; }
/* each slider is as long as its range is wide (0〜90 the whole cell), so 5 points are the same length on every row */
.owner-points .op-range { display: block; width: calc((var(--hi) - var(--lo)) / 90 * 100%); margin-left: auto; accent-color: var(--accent); cursor: pointer; }
/* Game Market form */
.panel.gm .row { flex-wrap: nowrap; }
.panel.gm .row > select, .panel.gm .row > input[type="text"] { flex: 1 1 auto; width: auto; min-width: 0; max-width: 100%; }
.panel.gm .row.check { align-items: flex-start; }
.panel.gm .row.check input { margin-top: .35em; flex: none; }

/* bonus / 寸志 */
.modal.pay-ask { max-width: 620px; padding: 18px 22px 20px; }
.modal.pay-ask h2 { margin: 0 0 .5em; }
.modal.pay-ask .tbl td { vertical-align: middle; }

/* the register, worked by hand */
.modal.checkout { max-width: 380px; padding: 18px 20px; }
.modal.checkout.cash { max-width: 660px; }
.modal.checkout h2 { margin: 0 0 10px; }
.pay-bill { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.pay-bill td { padding: 4px 2px; border-bottom: 1px solid var(--line); }
.pay-bill .num { text-align: right; }
.pay-bill .sum td { font-weight: 900; font-size: 1.15em; border-bottom: 2px solid var(--line-2); }
.pay-how { margin: 8px 0; }
.pay-in { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pay-in input { flex: 1; min-width: 0; font-size: 1.3em; padding: 6px 8px; text-align: right; border-radius: 2px; }
.pay-msg { min-height: 1.4em; margin: 6px 0; }
.modal.checkout .btn-row { display: flex; gap: 8px; justify-content: flex-end; }
.modal.pick { max-width: 560px; padding: 18px 20px; max-height: 86vh; overflow-y: auto; }
.modal.pick h2 { margin: 0 0 8px; }
.modal.pick h3 { margin: 12px 0 6px; font-size: 0.95em; }
.pick-held { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; background: var(--panel-2, #f3efe6); border-radius: 2px; }
.pick-held b { flex: 1; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pick-item { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 10px; text-align: left; white-space: normal; line-height: 1.25; font-size: 0.9em; }
.pick-item .pi { font-size: 1.4em; }
/* menu pictures in the floor's HTML (pick dialog, held item, guest list): about as big as the emoji were */
.own-ico { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; object-fit: contain; }
.pick-item .pi .own-ico, .pick-held .own-ico { width: 32px; height: 32px; }
.guest-row .gr-ic .own-ico { width: 28px; height: 28px; }
.pick-item small { margin-left: auto; color: var(--neg, #b0413e); }
.modal.pick .btn-row { display: flex; justify-content: flex-end; margin-top: 12px; }

/* =====================================================================
   before opening: the steps on the store screen, and the missions
   ===================================================================== */
.prep-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line-2); background: var(--gold-soft); }
.prep-foot b { font-family: var(--f-num); font-size: 1.15rem; }
.prep-warn { color: #c0392b; font-weight: 700; }
/* during a forced tutorial mission the other tabs and pages cannot be opened */
.tabs button:disabled, .info .subtabs button:disabled { opacity: .35; cursor: not-allowed; }
.tabs button:disabled:hover { color: inherit; }
/* the missions on the board, over the left of the store view */
.mission-panel { position: absolute; left: 10px; top: calc(100% - 22px); z-index: 3; width: 268px; max-height: 38vh; display: flex; flex-direction: column;
  background: rgba(255,252,245,.82); backdrop-filter: blur(3px); border: 1px solid rgba(47,122,90,.35); border-left: 4px solid var(--gold); border-radius: 2px; box-shadow: 0 6px 16px rgba(30,40,30,.14); }
.mission-panel header { flex: none; display: flex; align-items: center; padding: 4px 6px 2px 10px; }
.mp-tag { flex: 1; font-family: var(--f-num); font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-2); }
.mp-tag b { font-size: 1rem; }
.mp-fold { font: inherit; cursor: pointer; border: 0; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 0 .3em; }
.mission-panel ul { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 0 8px; }
.mission-panel li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-top: 1px dashed rgba(47,122,90,.25); }
.mission-panel li:first-child { border-top: 0; }
.mp-box { flex: none; width: 20px; height: 20px; margin-top: 1px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--green-deep); border-radius: 2px;
  background: #fff; color: #fff; font-weight: 900; font-size: .9rem; }
.mission-panel li.ok .mp-box { background: var(--accent); border-color: var(--accent-2); }
.mission-panel li.pop .mp-box { animation: mpPop .5s both; }
@keyframes mpPop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.mp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.mp-txt b { font-size: .9rem; }
.mp-txt small { font-size: .76rem; color: var(--ink-2); }
.mission-panel li.ok .mp-txt { color: var(--muted); }
.mission-panel li.ok .mp-txt b { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.mp-go { flex: none; align-self: center; font: inherit; cursor: pointer; width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; color: var(--green-deep); font-weight: 700; }
.mp-go:hover { border-color: var(--accent); }
.mission-panel footer { flex: none; padding: 4px 10px 6px; font-size: .76rem; color: var(--muted); border-top: 1px solid rgba(47,122,90,.2); }
.mission-panel footer b { font-family: var(--f-num); font-size: .95rem; color: var(--gold-2); }
.mission-mini { position: absolute; left: 10px; top: calc(100% - 22px); z-index: 3; font: inherit; cursor: pointer; padding: 3px 10px; font-family: var(--f-num); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; color: var(--gold-2); background: rgba(255,252,245,.88); border: 1px solid rgba(47,122,90,.35); border-left: 4px solid var(--gold); border-radius: 2px; }
/* the tutorial's next click, ringed */
.tut-focus { position: relative; z-index: 4; }
/* the frame and the ripples drawn over the page around it (tutGuide) */
.tut-spot { position: fixed; z-index: 45; pointer-events: none; border: 4px solid #ff3b30; border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 22px 6px rgba(255,59,48,.65); animation: tutGlow 1s ease-in-out infinite; }
.tut-spot::before, .tut-spot::after { content: ''; position: absolute; inset: -4px; border: 4px solid rgba(255,59,48,.8); border-radius: 6px; animation: tutRipple 1.6s ease-out infinite; }
.tut-spot::after { animation-delay: .8s; }
@keyframes tutGlow { 50% { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 34px 12px rgba(255,59,48,.85); } }
@keyframes tutRipple { from { transform: scale(1); opacity: 1; } to { transform: scale(1.35, 1.6); opacity: 0; } }
/* the pointing finger, bobbing toward the target */
.tut-hand { position: fixed; z-index: 46; pointer-events: none; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); animation: tutBob .7s ease-in-out infinite alternate; }
.tut-hand span { font-size: 46px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.tut-hand b { margin-top: 2px; padding: 1px 10px; background: #ff3b30; color: #fff; font-size: .9rem; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.3); white-space: nowrap; }
.tut-hand.down { flex-direction: column-reverse; transform: translate(-50%, -100%); animation-name: tutBobDown; }
.tut-hand.down span { transform: rotate(180deg); }
.tut-hand.down b { margin: 0 0 2px; }
@keyframes tutBob { from { margin-top: 0; } to { margin-top: 12px; } }
@keyframes tutBobDown { from { margin-top: 0; } to { margin-top: -12px; } }
.tut-spot[hidden], .tut-hand[hidden] { display: none; }
/* the tutorial: Airi big, across the bottom of the store view and over the edge of the information */
.airi-tut { position: fixed; left: 12px; bottom: 66px; z-index: 30; width: min(860px, 62vw); display: flex; align-items: flex-end; pointer-events: none; }
.week-plan.pending { padding: 6px 10px; background: #fff6dc; border-left: 4px solid var(--accent); }
.hol-nav { flex-wrap: wrap; gap: 6px; }
.airi-tut-img { flex: none; width: auto; height: min(44vh, 360px); margin-right: -14px; filter: drop-shadow(0 8px 14px rgba(30,40,30,.25)); }
.airi-tut-say { position: relative; flex: 1; min-width: 0; margin-bottom: 18px; pointer-events: auto; background: #fff; border: 3px solid var(--green-deep); border-radius: var(--bubble-r);
  padding: 10px 14px 10px; box-shadow: 0 10px 24px rgba(30,40,30,.25); font-size: 1.28rem; line-height: 1.7; }
.airi-tut-say.pop { animation: rise .5s ease both; }
.airi-tut-say::before { content: ''; position: absolute; left: -16px; bottom: 30px; border: 8px solid transparent; border-right: 13px solid var(--green-deep); }
.airi-tut-head { display: flex; flex-direction: column; margin-bottom: 4px; line-height: 1.3; }
.airi-tut-head small { font-size: .72rem; color: var(--gold-2); font-weight: 700; letter-spacing: .06em; }
.airi-tut-head b { color: var(--green-deep); font-size: 1.05rem; }
.airi-tut-say p { margin: 0; }
.airi-tut-say p b { color: var(--accent-2); background: linear-gradient(transparent 62%, rgba(232,169,58,.35) 62%); }
.airi-tut-nav { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .82rem; color: var(--muted); font-family: var(--f-num); }
.airi-tut-nav .btn { min-width: 0; }
.airi-big { margin-left: 6px; font-size: .78rem; padding: 0 .5em; }
@media (max-width: 900px) {
  .airi-tut { left: 6px; right: 6px; width: auto; bottom: 6px; }
  .airi-tut-img { height: 30vh; }
  .airi-tut-say { font-size: 1.14rem; }
  .mission-panel { width: 200px; max-height: 22vh; min-height: 0; }
  .mp-txt small { display: none; }
  .stage .airi-bar { right: 10px; }
  .stage .airi-face { width: 56px; height: 66px; }
  .stage .airi-say { font-size: 1.05rem; line-height: 1.5; }
}
/* a mission set cleared: in the middle of the screen, with confetti */
.mission-clear { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(20,30,24,.28); cursor: pointer; animation: mcIn .25s both; }
.mission-clear.out { animation: mcOut .35s both; }
.mission-clear canvas { position: absolute; inset: 0; pointer-events: none; }
@keyframes mcIn { from { opacity: 0; } }
@keyframes mcOut { to { opacity: 0; } }
.mc-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 300px; max-width: 90vw; padding: 20px 36px 18px; background: #fffaf0;
  border: 3px solid var(--gold); border-radius: 2px; box-shadow: 0 16px 40px rgba(0,0,0,.3); animation: mcPop .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes mcPop { from { transform: scale(.3); opacity: 0; } }
.mc-tag { font-family: var(--f-num); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: .06em; color: #e2554f; text-shadow: 2px 2px 0 #ffd98a; }
.mc-card ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mc-card li { font-weight: 700; color: var(--green-deep); font-size: 1.05rem; line-height: 1.6; }
.mc-card li i { font-style: normal; color: var(--accent); margin-right: .4em; }
.mc-reward { font-size: 1rem; color: var(--ink-2); }
.mc-reward b { font-family: var(--f-num); font-size: 1.9rem; color: var(--gold-2); margin-left: .2em; }
/* title: whether to play the tutorial */
.tut-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 720px; margin: 0 0 14px; }
.tut-opt { font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 16px 16px; color: var(--ink); text-align: left;
  background: var(--panel); border: 2px solid var(--line-2); border-bottom-width: 5px; border-radius: 2px; transition: transform .15s, border-color .15s; box-shadow: 0 6px 16px rgba(60,40,20,.12); }
.tut-opt:hover { transform: translateY(-4px); border-color: var(--accent); }
.tut-opt b { font-size: 1.2rem; color: var(--green-deep); }
.tut-opt em { font-style: normal; font-size: .8rem; color: #fff; background: var(--accent); padding: 0 .6em; border-radius: 2px; }
.tut-opt span { font-size: .86rem; color: var(--ink-2); line-height: 1.6; }
.tut-opt.rec { border-color: var(--accent); }
@media (max-width: 600px) { .tut-pick { grid-template-columns: minmax(0, 1fr); } }
/* missions on two columns: each row is a cell of a grid */
.tbl.mi-cols, .tbl.mi-cols tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.tbl.mi-cols tbody { grid-column: 1 / -1; }
.tbl.mi-cols tr { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
.tbl.mi-cols td { border: 0; padding: .22em .4em; line-height: 1.4; }
.tbl.missions tr.done td { color: var(--muted); }
.tbl.missions tr.on td { background: var(--gold-soft); }
.tbl.missions .mi-mark { width: 1.6em; text-align: center; font-weight: 700; color: var(--accent); }
.info-body[data-page="log:missions"] > * { flex: none; }
/* the games to buy: a number box and a slider */
.lib-buy { min-width: 110px; }
.lib-buy input[type="number"] { width: 5.5em; }
.lib-range { display: block; width: 100%; margin-top: 4px; accent-color: var(--accent); cursor: pointer; }
/* the number and the slider side by side, so the five sizes fit without scrolling */
.lib-pair { display: flex; align-items: center; gap: 8px; min-width: 240px; }
.lib-pair .lib-range { flex: 1; margin-top: 0; }
/* saves */
.hud-tools { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.modal.save-menu { max-width: 640px; }
.save-slots th { white-space: nowrap; text-align: left; width: 6.5em; }
.save-slots td b { display: block; }
.save-slots tr.empty th { color: var(--muted); }
.save-slots .sv-btns { white-space: nowrap; text-align: right; }
.save-slots .sv-btns .btn { min-width: 0; margin-left: 4px; }
.modal.save-menu .row.check { margin: 10px 0 0; }
@media (max-width: 600px) {
  .save-slots tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .save-slots th, .save-slots td { display: block; width: auto; border: 0; padding: 2px 4px; }
  .save-slots td:nth-child(2) { grid-column: 1 / -1; }
  .save-slots tr { border-bottom: 1px solid var(--line-2); padding: 6px 0; }
}
.g-stack { display: flex; flex-direction: column; gap: 12px; }
.g-stack .panel { margin-bottom: 0; }
.fee-guide { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; margin-top: 2px; }
.counter.off { opacity: .45; }
/* "おまかせ" */
.omakase { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 6px 10px; background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 2px; }
.omakase .btn { flex: none; min-width: 0; }
/* the register: the till and the hand (cash), the terminal (cashless) */
.till-wrap { display: flex; gap: 12px; align-items: stretch; }
.till { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: linear-gradient(#50555d, #33373d); border-radius: 2px; box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 3px 0 #23262a; }
.till-bills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.till-coins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.till-slot { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 6px 2px; background: #262a2f; border-radius: 2px; box-shadow: inset 0 1px 4px rgba(0,0,0,.7); }
.money { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; border: none; cursor: pointer; font-weight: 900; color: #3a2f1f; transition: transform .08s; }
.money:hover { transform: translateY(-2px); }
.money:active { transform: scale(.94); }
.money.bill { width: 74px; height: 40px; border-radius: 2px; font-size: .8rem; box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.3); }
.money.bill::before { content: ''; position: absolute; right: 8px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: rgba(255,255,255,.4); }
.money.bill span { margin-right: 20px; }
.money.m10000 { background: linear-gradient(135deg, #d2b183, #a8845a); }
.money.m5000 { background: linear-gradient(135deg, #c3aed3, #8f78a8); }
.money.m1000 { background: linear-gradient(135deg, #a7cde0, #6e9db8); }
.money.coin { border-radius: 50%; font-size: .66rem; box-shadow: 0 2px 0 rgba(0,0,0,.4), inset 0 -2px 3px rgba(0,0,0,.25), inset 0 2px 3px rgba(255,255,255,.6); }
.money.m500 { width: 44px; height: 44px; background: radial-gradient(circle at 35% 30%, #fbe7a1, #d4ad45 60%, #b28b2c); }
.money.m100 { width: 40px; height: 40px; background: radial-gradient(circle at 35% 30%, #fff, #c9ced4 60%, #9da3aa); }
.money.m50 { width: 38px; height: 38px; background: radial-gradient(circle, #262a2f 0 4px, transparent 4.5px), radial-gradient(circle at 35% 30%, #fff, #c9ced4 60%, #9da3aa); }
.money.m10 { width: 40px; height: 40px; background: radial-gradient(circle at 35% 30%, #f1b88c, #b8733f 60%, #8e5328); color: #fff3e6; }
.money.m5 { width: 38px; height: 38px; background: radial-gradient(circle, #262a2f 0 4px, transparent 4.5px), radial-gradient(circle at 35% 30%, #fbe7a1, #d4ad45 60%, #b28b2c); }
.money.m1 { width: 34px; height: 34px; background: radial-gradient(circle at 35% 30%, #fff, #e3e6ea 60%, #b9bec4); }
.money.m50 span, .money.m5 span { margin-top: 18px; font-size: .58rem; }
.tray { flex: none; width: 180px; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #f7f2e8; border: 2px dashed var(--line-2); border-radius: 2px; }
.tray-in { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; min-height: 120px; }
.tray-in .money.bill { width: 64px; height: 34px; font-size: .72rem; }
.tray-in .money.m50, .tray-in .money.m5 { background-image: radial-gradient(circle, #f7f2e8 0 4px, transparent 4.5px), radial-gradient(circle at 35% 30%, #fff, #c9ced4 60%, #9da3aa); }
.tray-in .money.m5 { background-image: radial-gradient(circle, #f7f2e8 0 4px, transparent 4.5px), radial-gradient(circle at 35% 30%, #fbe7a1, #d4ad45 60%, #b28b2c); }
.tray-sum { margin: 0; font-weight: 900; text-align: right; font-size: 1.1em; }
.calc { padding: 10px; background: linear-gradient(#3a3f45, #2a2e33); border-radius: 2px; box-shadow: 0 3px 0 #1d2023; }
.calc-disp { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; margin-bottom: 10px; padding: 8px 12px; background: #cfe3c4; color: #1f2a1a; font: 700 2rem/1.2 ui-monospace, Consolas, monospace; border-radius: 2px; box-shadow: inset 0 2px 5px rgba(0,0,0,.4); }
.calc-disp small { font-size: .9rem; }
.calc-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.calc-k { height: 48px; border: none; border-radius: 2px; background: linear-gradient(#fafafa, #d9d9d9); box-shadow: 0 3px 0 #8d8d8d; font-size: 1.25rem; font-weight: 800; color: #2b2620; cursor: pointer; }
.calc-k:active, .calc-k.press { transform: translateY(2px); box-shadow: 0 1px 0 #8d8d8d; }
.calc-k.clr { background: linear-gradient(#ffe9b8, #f0c96a); }
.calc-k.bs { grid-column: span 3; height: 40px; font-size: .95rem; background: linear-gradient(#ffdcd2, #f1b3a3); }
@media (max-width: 640px) {
  .till-wrap { flex-direction: column; }
  .tray { width: auto; }
  .tray-in, .till-wrap .tray-in { flex: none; height: 96px; min-height: 0; }
  .till-coins { grid-template-columns: repeat(3, 1fr); }
}
/* the owner's 休み blocks */
.tbl.away th { width: 3em; }
.cut-row { flex-wrap: wrap; gap: 6px; }
.cut-cells { display: flex; flex-wrap: wrap; gap: 4px; }
.cut-cell { min-width: 38px; padding: 2px 4px; border: 2px solid var(--line-2); background: var(--panel); border-radius: var(--r); cursor: pointer; font: inherit; font-size: .8rem; color: var(--muted); }
.cut-cell.on { background: var(--accent); border-color: var(--accent-2); color: #fff; }
/* the owner's hours of each day, one cell an hour: coloured = in the store, white = 休み */
.away-cells { display: flex; gap: 2px; }
.away-cell { flex: 1 1 0; min-width: 0; max-width: 44px; padding: 4px 0; border: 1px solid var(--line-2); background: var(--panel); border-radius: var(--r); cursor: pointer; font: inherit; font-family: var(--f-num); font-size: .78rem; color: var(--muted); }
.away-cell:hover { border-color: var(--accent); }
.away-cell.on { background: var(--accent); border-color: var(--accent-2); color: #fff; }
.bar.good > span { background: var(--good); }
.bar.neg > span { background: var(--neg); }

/* =====================================================================
   the full game: trial end, account and payment (js/pay.js)
   ===================================================================== */
.title-acct { position: absolute; left: 16px; top: 14px; z-index: 5; }
#pay-root .modal-bg { z-index: 80; }
.modal.pw { max-width: 560px; padding: 18px 22px 16px; }
.modal.pw h2 { margin: 0 0 .5em; }
.modal.pw p { line-height: 1.75; }
.pw-airi { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: end; margin-bottom: 6px; }
.pw-face { width: 100%; height: auto; display: block; }
.pw-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.pw-btns .btn { min-width: var(--btn-w, 220px); }
.pw-note { font-size: .86rem; color: var(--ink-2); margin: 6px 0; }
.pw-msg { margin: 8px 0; padding: 8px 12px; background: rgba(192,57,43,.08); border-left: 3px solid var(--neg); color: var(--neg); font-size: .92rem; }
.pw-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); margin: 0 0 8px; }
.pw-field { display: block; margin: 0 0 10px; }
.pw-field span { display: block; font-size: .86rem; color: var(--ink-2); margin-bottom: 3px; }
.pw-field input { width: 100%; box-sizing: border-box; padding: 9px 10px; font: inherit; font-size: 1rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); color: var(--ink); }
.pw-field input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.pw-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 12px; }
.pw-sum b { font-family: var(--f-num); font-size: 1.6rem; color: var(--green-deep); white-space: nowrap; }
.pw-sum small { font-family: var(--f-body); font-size: .75rem; font-weight: 500; }
.pw-card { min-height: 56px; margin: 4px 0; }
.pw-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; margin: 10px 0 0; }
.pw-legal a, .pw-note a { color: var(--accent-2); }
.pw-foot .btn { min-width: 150px; }
.pw-foot { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
@media (max-width: 640px) { .pw-airi { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; } .pw-btns .btn { flex: 1 1 100%; } }

/* ---------- the information area: no small print (2026-11-07) ----------
   Everything inside the information panel reads at about the size of the 休暇設定 notes (1.05rem; rem is 16px here,
   the body text 18px); labels and table heads stay a step below, and only the hours over the shift grid a little smaller */
.info .info-body .small, .info .info-body p.small, .info .info-body .small.muted, .info .info-body p.muted, .info .info-body p.empty { font-size: 1.05rem; line-height: 1.6; }
.info .info-body .tbl, .info .info-body .tbl.tight td, .info .info-body .tbl.fees td, .info .info-body .shift { font-size: 1.05rem; }
.info .info-body .tbl th, .info .info-body .tbl.menu tr.cat th, .info .info-body .shift tr.foot th { font-size: 1rem; }
.info .info-body .tbl.acts .small, .info .info-body .owner-time .tbl.acts .small, .info .info-body .tbl.menu .small.muted { font-size: .98rem; line-height: 1.45; }
.info .info-body .btn.sm, .info .info-body .innertabs button, .info .subtabs button { font-size: 1.05rem; }
.info .info-body .stat, .info .info-body .person-note, .info .info-body .claims, .info .info-body .log, .info .info-body .eq-card .eq-name, .info .info-body .deco-row,
.info .info-body .gripes, .info .info-body .reviews li, .info .info-body .row, .info .info-body label.check, .info .info-body .kv > dd, .info .info-body .owner-card span { font-size: 1.05rem; }
.info .info-body .hint, .info .info-body .tag, .info .info-body .kpi span, .info .info-body .bignum span, .info .info-body .bignum small, .info .info-body .person-wish .lbl,
.info .info-body .kv > dt, .info .info-body .filter label, .info .info-body .fee-guide { font-size: .98rem; }
.info .info-body .sh-hour, .info .info-body .sh-count, .info .info-body .sh-who.head, .info .info-body .sh-day span, .info .info-body .sh-week span { font-size: .92rem; }
.info .info-body .sh-count i { font-size: .85rem; }
.info .info-body details.note summary, .info .info-body .person-meta, .info .info-body .deco h4 { font-size: 1.05rem; }

/* ---------- the sharp look (v0.68.0) ----------
   Brighter and crisper than the first café look: a near-white page, pure white panels with a clean edge, darker ink,
   a more vivid green and gold, thin hard shadows instead of soft brown ones. Kept as one block of overrides. */
:root {
  --bg: #f5f2ec; --bg-2: #ebe6dc;
  --panel: #ffffff; --panel-2: #f8f6f1; --panel-3: #efebe3;
  --ink: #17150f; --ink-2: #3e392f; --muted: #6e665a;
  --line: #e3ddd2; --line-2: #c9c0b0;
  --accent: #14855a; --accent-2: #0c6743; --accent-soft: rgba(20,133,90,.1);
  --green-deep: #0f3d2c;
  --gold: #c88a0e; --gold-2: #9c6a08; --gold-soft: rgba(232,165,30,.16);
  --warn: #d46a10; --neg: #d1342a; --good: #138a55; --level: #c88a0e;
  --shadow: 0 1px 2px rgba(23,21,15,.06), 0 10px 24px -14px rgba(23,21,15,.22);
}
body { background-image: none; }

/* panels: white cards with a crisp edge; the heading gets a green bar at its left and a hairline under it */
.panel, .card { border-color: var(--line-2); }
.panel > h3, .card > h3 { font-size: 1.02rem; font-weight: 900; letter-spacing: .04em; color: var(--green-deep);
  border-bottom: 1px solid var(--line); padding-left: 0; }
.panel > h3::before, .card > h3::before { width: 4px; height: 1.05em; transform: none; background: linear-gradient(var(--accent) 0 60%, var(--gold) 60% 100%); }
.card.sel { background: #effaf4; }

/* buttons: flat faces, a firm darker bottom edge, a small lift on hover */
.btn { border-color: var(--line-2); border-bottom-color: #a99e8b; transition: border-color .25s, background .25s, transform .15s, box-shadow .25s; }
.btn:hover:not(:disabled) { background: #f2faf6; border-color: var(--accent); border-bottom-color: var(--accent-2); transform: translateY(-1px); box-shadow: 0 4px 10px -6px rgba(12,103,67,.5); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn.primary { background: linear-gradient(#18925f, var(--accent)); border-color: var(--accent-2); border-bottom-color: #084d32; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(#1ba56c, #16915f); }
.btn.gold { background: linear-gradient(#f5b937, #e9a21a); border-color: #b9800f; border-bottom-color: #8f6206; color: #241600; }
.btn.gold:hover:not(:disabled) { background: linear-gradient(#ffc548, #f0ac24); border-bottom-color: #8f6206; }
.btn.cur { background: var(--accent-soft); border-color: var(--accent); border-bottom-color: var(--accent-2); color: var(--accent-2); }

/* the page buttons: the open one solid green with a gold underline */
.subtabs button { border-color: var(--line-2); border-bottom-color: #a99e8b; color: var(--ink-2); }
.subtabs button:hover { border-color: var(--accent); }
.subtabs button.cur { background: var(--accent); border-color: var(--accent-2); border-bottom-color: var(--gold); color: #fff; }

/* the tabs along the info column: a deeper green, the open tab white with a gold top edge */
.tabs { background: linear-gradient(#134a36, var(--green-deep)); }
.tabs button { color: #a8cbb9; letter-spacing: .03em; }
.tabs button.cur { border-top-color: #f5b937; color: var(--green-deep); }

/* tables: small spaced headers, hairline rows */
.tbl th { color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.tbl th, .tbl td { border-bottom-color: var(--line); }
.tbl tr.sum td { border-top-color: var(--gold); }

/* the top and bottom bars of the store setup */
.s-head { background: linear-gradient(#134a36, var(--green-deep)); box-shadow: 0 2px 0 var(--gold), 0 8px 18px rgba(10,30,22,.18); }
.s-foot { border-top: 0; box-shadow: 0 -2px 0 var(--line-2), 0 -8px 18px rgba(23,21,15,.06); }
.steps li.cur { background: #f5b937; color: #241600; }
.page-head h2 { font-weight: 900; letter-spacing: .03em; }
.step-no { color: var(--gold); }

/* the store view: a brighter floor around the store */
.stage { border-color: var(--line-2); background: radial-gradient(ellipse 70% 62% at 50% 58%, #ffffff 0%, #eef3ee 60%, #d8e4da 100%); }
.info { border-color: var(--line-2); }
.hud-top { background: linear-gradient(rgba(255,255,255,.96), rgba(255,255,255,.72) 65%, rgba(255,255,255,0)); }

/* ---------- one size per role (v0.68.0) ----------
   Things doing the same job are the same size everywhere, and boxes fill the room they are given (no ragged gaps):
   buttons come in three heights (sm / normal / lg) with fixed type, pop-ups in three widths, panels share one padding,
   and the panels side by side in a row stretch to the same height. */
:root {
  --btn-h-sm: 38px; --btn-h: 46px; --btn-h-lg: 58px;
  --btn-fs-sm: 1rem; --btn-fs: 1.05rem; --btn-fs-lg: 1.25rem;
  --btn-min-sm: 116px; --btn-min: 160px; --btn-min-lg: 240px;
  --modal-s: 480px; --modal-m: 640px; --modal-l: 800px;
  --pad: 18px 20px; --gap: 16px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35em; box-sizing: border-box;
  height: var(--btn-h); padding: 0 1.1em; font-size: var(--btn-fs); line-height: 1.2; min-width: var(--btn-min); border-bottom-width: 3px; }
.btn.sm, .info .info-body .btn.sm, .person .btn-row .btn.sm, .hud-bottom .btn.sm { height: var(--btn-h-sm); padding: 0 .8em; font-size: var(--btn-fs-sm); min-width: var(--btn-min-sm); border-bottom-width: 2px; }
.btn.lg, .title-menu .btn.lg { height: var(--btn-h-lg); padding: 0 1.6em; font-size: var(--btn-fs-lg); min-width: var(--btn-min-lg); border-bottom-width: 4px; }
/* buttons that wrap two lines of text keep the height of their size but may grow for the second line */
.btn:has(br), .btn:has(small) { height: auto; min-height: var(--btn-h); padding-top: .3em; padding-bottom: .3em; }
.btn.sm:has(br), .btn.sm:has(small) { min-height: var(--btn-h-sm); }
/* the little −／＋ and × controls: one square size */
.ctl .btn, .seg .btn, .shell .ctl .btn, .shell .seg .btn { height: var(--btn-h-sm); min-width: var(--btn-h-sm); padding: 0 .55em; font-size: var(--btn-fs-sm); }
/* the setup's page buttons and the info column's page buttons: the height of a small button */
.subtabs button, .info .subtabs button { height: var(--btn-h-sm); padding: 0 1em; font-size: var(--btn-fs-sm); display: inline-flex; align-items: center; justify-content: center; }
.shell .btn { min-width: var(--btn-min); }
.shell .btn.sm { min-width: var(--btn-min-sm); }
.shell .s-foot .btn, .shell .s-foot .btn.next { height: var(--btn-h); font-size: var(--btn-fs); }
.story-body .btn-row .btn, .pw-btns .btn { min-width: var(--btn-min); }

/* pop-ups: three widths, one padding; their row of buttons fills the bottom edge in equal parts */
.modal { padding: 20px 24px; }
.modal.ask-modal, .modal.checkout { max-width: var(--modal-s); padding: 20px 24px; }
.help-modal, .modal.pay-ask, .modal.pick, .modal.save-menu, .modal.pw, .modal.checkout.cash { max-width: var(--modal-m); padding: 20px 24px; }
.modal.story, .modal.report { max-width: var(--modal-l); }
.modal > .btn-row, .modal .ask-btns, .modal.checkout .btn-row, .modal.pick .btn-row, .help-modal .btn-row { justify-content: stretch; gap: 10px; margin-top: 18px; }
.modal > .btn-row > .btn, .modal .ask-btns > .btn, .modal.checkout .btn-row > .btn, .modal.pick .btn-row > .btn, .help-modal .btn-row > .btn { flex: 1 1 0; width: auto !important; min-width: 0; }
.help-modal .btn-row .spacer { display: none; }

/* panels: one padding inside and one gap between, everywhere; side by side they are the same height.
   No large empty areas, but roomy spacing: wide line height, space between the items inside a panel */
body { line-height: 1.75; }
p { margin: 0 0 .8em; }
.panel > h3, .card > h3, .info-body .panel > h3 { margin-bottom: 14px; padding-bottom: 8px; }
.row { margin: .6em 0; }
.btn-row { gap: 10px; }
.tbl th, .tbl td { padding: .45em .6em; }
.info-body p.small, .info .info-body .small, .info .info-body p.small { line-height: 1.75; }
.panel, .card, .info-body .panel { padding: var(--pad); margin-bottom: var(--gap); }
.g2, .g3, .g-side, .g-side-l, .info-body .g2 { gap: var(--gap); align-items: stretch; }
/* Airi's answer buttons: one per row across the bubble (three side by side were too narrow for their words) */
.airi-ask:not(:has(input)) { display: grid; grid-template-columns: 1fr; gap: 8px; }
.airi-ask .btn { white-space: nowrap; }
/* the setup's bottom bar: the page buttons share the room between back and next in one row, in equal parts */
.shell .s-foot .subtabs { flex: 1 1 auto; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0; }
.shell .s-foot .subtabs button { width: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shell .s-foot .btn, .shell .s-foot .btn.next { width: 220px; flex: none; }
@media (max-width: 900px) { .shell .s-foot .subtabs { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =====================================================================
   game screen polish (v0.69.0): the store's numbers on frosted cards, a bar along the store's bottom edge,
   the information on a soft surface (panels as cards on it), page buttons as one connected strip
   ===================================================================== */
/* the page behind the two columns: the cafe, very faint */
.play { background: linear-gradient(color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 88%, transparent)), url(../img/bg/cafe.jpg) center / cover; }
.stage, .info { border-color: rgba(15,61,44,.16); box-shadow: 0 1px 0 rgba(15,61,44,.06), 0 10px 28px -12px rgba(15,61,44,.28); }

/* the top of the store: the name and date on a frosted card, the numbers beside it */
.hud-top { padding: 12px 12px 30px; }
.hud-id { flex: 0 1 auto; padding: 8px 14px 9px; background: rgba(255,255,255,.82); backdrop-filter: blur(6px); border: 1px solid rgba(15,61,44,.12); border-left: 4px solid var(--green-deep); border-radius: var(--r); box-shadow: 0 4px 14px -6px rgba(15,61,44,.3); }
.hud-store { font-size: 1.3rem; }
.hud-date { display: flex; align-items: baseline; gap: .1em; }
.hud-date small { padding: 0 .5em; border-radius: var(--r); background: var(--green-deep); color: #fff; font-size: .78rem; line-height: 1.6; }
.hud-date small:has(.wd-hol) { background: var(--neg); }
.hud-date small .wd-hol { color: #fff; }
.hud-tools .icon-btn, .hud-snd select, .hud-snd .icon-btn { height: 32px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); }
.hud-olv, .hud-cash { box-shadow: 0 6px 16px -6px rgba(15,61,44,.45); }
.hud-kpis { gap: 4px; }
.chip { min-width: 84px; padding: 3px 10px 4px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); border: 1px solid rgba(15,61,44,.12); border-left: 3px solid var(--gold); border-radius: var(--r); }
.chip span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.chip b { font-size: 1.18rem; font-weight: 600; }
.hud-next { background: rgba(255,255,255,.9); backdrop-filter: blur(6px); }
.mission-panel { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
/* a narrow store view: the save and sound buttons go up beside the name, the numbers on the row under them */
.stage { container: stage / inline-size; }
@container stage (max-width: 1000px) {
  .hud-right { display: contents; }
  .hud-tools { margin-left: auto; align-self: flex-start; }
  .hud-nums { margin-top: 8px; }
  .hud-next { margin-top: 6px; }
}

/* the bottom of the store: one frosted bar from edge to edge, the clock's buttons on the left and the speed on the right */
.hud-bottom { padding: 8px 10px; background: rgba(255,255,255,.86); backdrop-filter: blur(8px); border-top: 1px solid rgba(15,61,44,.14); box-shadow: 0 -6px 18px -12px rgba(15,61,44,.35); flex-wrap: nowrap; }
.hud-bottom .seg .btn.sm { min-width: 0; width: auto; padding: 0 .9em; }
.hud-bottom .seg .btn.sm[data-act="viewSpeed"] { width: 52px; padding: 0; }
.hud-bottom .btn.sm.cur { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.run-clock { padding: 0 .6em; height: var(--btn-h-sm); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: rgba(15,61,44,.07); font-size: 1.1rem; color: var(--green-deep); white-space: nowrap; }
.stage .airi-bar { bottom: calc(var(--hb-h, 54px) + 12px); }
.hud-bottom .btn { white-space: nowrap; }
/* a narrow store view: the speed and the layout button go down to a second row */
@container stage (max-width: 880px) { .hud-bottom { flex-wrap: wrap; row-gap: 6px; } } /* (880: room for ×30 since v1.19.1) */

/* the tabs fit the column's width, each an equal share */
.tabs { overflow: hidden; }
.tabs button { flex: 1 1 auto; min-width: 0; padding: .6em .45em; font-size: .94rem; letter-spacing: 0; position: relative; }
.tabs button .badge { margin-left: .2em; }
.tabs button + button::before { content: ''; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: rgba(255,255,255,.12); }
.tabs button.cur::before, .tabs button.cur + button::before { display: none; }
.info-fold { flex: 0 0 34px; }

/* the page buttons: one connected strip under the tabs */
.info .subtabs { gap: 0; padding: 10px 12px 0; }
.info .subtabs button { border-radius: 0; margin: 0 -1px -1px 0; box-shadow: none; }
.info .subtabs button.cur { position: relative; z-index: 1; }

/* the information: panels as white cards on a soft surface, so what is left below them is part of the surface */
.info { background: #f4f1ea; }
.info .tabs { border-radius: var(--r) var(--r) 0 0; }
.info-body { padding: 12px 12px 14px; }
.info-body .panel { background: #fff; border-color: rgba(15,61,44,.12); box-shadow: 0 1px 0 rgba(15,61,44,.05), 0 6px 16px -10px rgba(15,61,44,.3); }

/* a narrow information column: what stands side by side goes one under the other */
.info-body { container: info / inline-size; }
@container info (max-width: 640px) {
  .g2, .g-side, .g-side-l { grid-template-columns: minmax(0, 1fr); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hud-bottom [data-act="editStart"] { margin-left: auto; }
.info-body .tbl th, .info-body .tbl td { padding: .45em .5em; }

/* the background page: the cards fill the page, three across and two down, the words large; each with its name in English, faint, behind */
.page-body[data-page="funds:trait"] > .panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.page-body[data-page="funds:trait"] .trait-list { flex: 1; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: var(--gap); margin-top: 6px; }
.page-body[data-page="funds:trait"] .trait-card { position: relative; overflow: hidden; justify-content: flex-start; gap: 10px; padding: 20px 22px; background: #fff; }
.page-body[data-page="funds:trait"] .trait-card b { font-size: 1.5rem; line-height: 1.4; }
.page-body[data-page="funds:trait"] .trait-card span { font-size: 1.08rem; line-height: 1.75; }
.page-body[data-page="funds:trait"] .trait-card span.trait-minus { margin-top: auto; padding-top: 10px; border-top: 1px dashed rgba(196,52,40,.3); }
.page-body[data-page="funds:trait"] .trait-card::after { position: absolute; right: 14px; bottom: 8px; font-family: var(--f-num); font-size: 2.1rem; font-weight: 600; letter-spacing: .08em; color: rgba(15,61,44,.07); pointer-events: none; }
.page-body[data-page="funds:trait"] .trait-card.cur { background: #f2faf5; }
.page-body[data-page="funds:trait"] .trait-card.cur::after { color: rgba(20,133,90,.16); }
.trait-card[data-v="influencer"]::after { content: 'INFLUENCER'; }
.trait-card[data-v="banker"]::after { content: 'BANKER'; }
.trait-card[data-v="tax"]::after { content: 'ACCOUNTANT'; }
.trait-card[data-v="salaryman"]::after { content: 'OFFICE WORKER'; }
.trait-card[data-v="actress"]::after { content: 'ACTOR'; }
.trait-card[data-v="freeter"]::after { content: 'FREETER'; }
@media (max-width: 900px) { .page-body[data-page="funds:trait"] .trait-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the property cards, two side by side: the name on top, the two key numbers beside each other, the costs in a row of three,
   the button along the bottom */
.card.prop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "spot rent" "sub sub" "act act"; gap: 12px 14px; align-items: start; align-content: space-between; padding: 16px 18px; }
.prop-main { grid-area: main; padding-right: 110px; }
.card.prop h4 { font-size: 1.22rem; margin-bottom: 4px; }
.prop-loc { font-size: 1rem; line-height: 1.7; }
.prop-note { font-size: .95rem; line-height: 1.7; }
.prop-key { width: auto !important; min-width: 0; }
.prop-key.spot { grid-area: spot; }
.prop-key.rent { grid-area: rent; }
.prop-key b.stars { font-size: 1.5rem; }
.prop-key.rent b { font-size: 1.9rem; }
.prop-sub { grid-area: sub; display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 12px; font-size: 1rem; line-height: 1.6;
  padding: 8px 12px; background: var(--panel-2); border-radius: var(--r); }
.prop-sub dt { font-size: .85rem; font-weight: 700; }
.prop-sub dd { white-space: normal; }
.prop-sub small { font-size: .78rem; }
.prop-act { grid-area: act; width: auto; margin: 0; }
.prop-act .tag { top: 16px; right: 18px; width: 100px; }
.paged-grid:has(> .card.prop) { grid-auto-rows: max-content; }
/* a long run of pages: the dots would not fit, the page number is enough */
.pager.many .dots { display: none; }
.card.prop { gap: 10px 14px; padding: 14px 18px; }
.card.prop h4 { font-size: 1.15rem; line-height: 1.45; }
.prop-key { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 8px; row-gap: 2px; padding: 2px 12px; }
.prop-key span { grid-column: 1 / -1; font-size: .9rem; }
.prop-key b.stars { font-size: 1.4rem; line-height: 1.2; }
.prop-key.rent b { font-size: 1.75rem; line-height: 1.2; }
.prop-sub { padding: 6px 12px; grid-template-columns: none; } /* skeleton cards show two figures, inuki ones three: spread either over the row */
.prop-sub dd, .prop-sub small { white-space: nowrap; }
.card.prop { gap: 8px 14px; padding: 12px 18px; }
.prop-sub { padding: 5px 12px; gap: 0 10px; }
.prop-sub small { display: block; font-size: .74rem; line-height: 1.3; }
.card.prop h4 { line-height: 1.35; }
.prop-loc, .prop-note { line-height: 1.6; }
.page-body[data-page="funds:trait"] .trait-card::after { white-space: nowrap; }

/* Airi's name plate: a white plate with a gold edge, so it stands out against her dark apron */
.guide-name { left: -6px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 8px 18px 9px 14px; background: #fff; color: var(--green-deep);
  border: 1px solid rgba(15,61,44,.18); border-left: 6px solid var(--gold); border-radius: var(--r); box-shadow: 0 8px 20px -6px rgba(15,61,44,.55); }
.guide-name small { display: inline-block; align-self: flex-start; padding: 1px 8px; background: var(--green-deep); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; line-height: 1.5; border-radius: var(--r); }
.guide-name { font-family: var(--f-disp); font-size: 1.6rem; line-height: 1.2; letter-spacing: .08em; }
/* the plate's words in the plain body type, heavy: easier to read than the display face */
.guide-name { font-family: var(--f-body); font-weight: 800; font-size: 1.5rem; letter-spacing: .12em; }
.guide-name small { font-family: var(--f-body); font-weight: 700; }
/* the plate's label and name centred */
.guide-name { align-items: center; text-align: center; padding-left: 16px; padding-right: 16px; }
.guide-name small { align-self: center; }
.guide-name { text-indent: .12em; } .guide-name small { text-indent: .12em; }

/* the background cards: the owner as that background stands at the right, the words on the left */
.page-body[data-page="funds:trait"] .trait-card { padding-right: 44%; }
.trait-card .trait-bust { position: absolute; right: 0; bottom: 0; height: 96%; width: 44%; object-fit: cover; object-position: 50% 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%); }
.page-body[data-page="funds:trait"] .trait-card::after { z-index: 1; right: auto; left: 22px; }
.page-body[data-page="funds:trait"] .trait-card { padding: 18px 40% 16px 20px; gap: 6px; }
.trait-card .trait-bust { width: 40%; }
.page-body[data-page="funds:trait"] .trait-card b { font-size: 1.35rem; }
.page-body[data-page="funds:trait"] .trait-card span { font-size: 1rem; line-height: 1.6; }
.page-body[data-page="funds:trait"] .trait-card span.trait-minus { padding-top: 8px; position: relative; z-index: 2; }
/* v0.94.5 every downside line starts at the same height: the box is always two lines tall, text at its top */
.page-body[data-page="funds:trait"] .trait-card span.trait-minus { box-sizing: border-box; min-height: calc(3.2em + 9px); }
.page-body[data-page="funds:trait"] .trait-card b { white-space: nowrap; font-size: min(1.35rem, 1.45vw); }
.page-body[data-page="funds:trait"] .trait-card span:not(.trait-minus) { min-height: 3.2em; }
.page-body[data-page="funds:trait"] .trait-card::after { font-size: 1.7rem; }
/* with the owner pictured on each card, the faint English names behind are left out */
.page-body[data-page="funds:trait"] .trait-card::after { display: none; }

/* the setup page title sits on the background picture: a plate like the money boxes beside it, so it reads */
.page-title { display: flex; align-items: center; gap: 12px; padding: 6px 20px 7px 14px; background: var(--panel); border: 1px solid var(--line-2);
  border-left: 4px solid var(--gold); border-radius: var(--r); box-shadow: var(--shadow); }
.page-title .step-no { font-size: 2.3rem; }
.page-title h2 small { color: var(--ink-2); }
/* the title plate and the money boxes are one row of the same height */
.page-head:has(> .page-title) { align-items: stretch; }
.page-title { padding-top: 0; padding-bottom: 0; }
.page-title .step-no { font-size: 2rem; }

/* wall and floor rows: one grid for every row, so the names, prices and buttons line up and every row is the same height */
.deco-row, .info .info-body .deco-row { display: grid; grid-template-columns: auto 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 6px 10px; margin-bottom: 4px; border: 1px solid var(--line); background: var(--panel); font-size: 1rem; }
.deco-row:not(:has(input)) { grid-template-columns: 28px minmax(0, 1fr) auto var(--btn-min-sm); }
.deco-row input { grid-column: 1; }
.deco-name { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.deco-name b { font-size: 1.05rem; line-height: 1.3; }
.deco-name .tag { font-size: .8rem; padding: 0 .5em; }
.deco-price { font-family: var(--f-num); white-space: nowrap; text-align: right; }
.deco-price small { font-family: var(--f-body); font-size: .78rem; color: var(--muted); }
.deco-row .btn.sm { width: var(--btn-min-sm); min-width: 0; }
.deco-mark { display: inline-flex; align-items: center; justify-content: center; width: var(--btn-min-sm); height: var(--btn-h-sm); border-radius: var(--r); background: var(--accent); color: #fff; font-size: var(--btn-fs-sm); font-weight: 700; }
.deco-row.cur { border-color: var(--accent); background: var(--accent-soft); }
.deco h4 { margin: 12px 0 6px; }

/* ---------- v0.72 consistency pass over the information column ---------- */
/* tab rows: every row full, the buttons of a row sharing it evenly (spans from tabSpans) */
.info .subtabs { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.info .subtabs button { grid-column: span var(--span, 12); min-width: 0; }
.info-body .innertabs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.info-body .innertabs button { grid-column: span var(--span, 12); min-width: 0; padding-left: .4em; padding-right: .4em; white-space: nowrap; text-align: center; }
/* tables: headings, numbers and the first column never break mid-word; buttons in a table are one small size */
.info-body .tbl th, .info-body .tbl td.num, .info-body .tbl:not(.acts):not(.missions) td:first-child { white-space: nowrap; }
.info-body .tbl .btn.sm { min-width: 0; width: auto; padding: 0 .7em; }
.info-body .tbl.games .ctl .btn, .info-body .tbl.stock .buy-btns .btn { min-width: 3.4em; }
.info-body .tbl.fees input[type=number] { width: 100%; min-width: 3.6em; }
.info-body .tbl.menu input[type=number] { width: 100%; min-width: 4em; }
/* the big numbers: one row, equal boxes of one height (the figures shrink to fit a narrow column) */
.info-body .bignums { flex-wrap: nowrap; align-items: stretch; }
.info-body .bignum { flex: 1 1 0; min-width: 0; }
.info-body .bignums .op { flex: none; align-self: center; }
.info-body .bignum b { font-size: min(1.7rem, 5.4cqi); }
.info-body .bignum.main b { font-size: min(2rem, 6.2cqi); }
/* the help button is always its own small size, at the start of its line */
.info-body .help-btn { align-self: flex-start; width: auto; }
/* the owner's task split: one table under the other in the column */
.info .owner-time .acts-cols { grid-template-columns: minmax(0, 1fr); }
.info .owner-time .acts-cols .tbl.acts + .tbl.acts tr:first-child { display: none; }
/* missions: one list down the column, not two cramped ones */
.info-body .tbl.mi-cols, .info-body .tbl.mi-cols tbody { grid-template-columns: minmax(0, 1fr); }
/* buttons in a grid: the amounts of the investment, four to a row, 「全部」 the whole row */
.btn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.btn-grid .btn, .info .info-body .btn-grid .btn.sm { min-width: 0; width: 100%; padding: 0 .3em; white-space: nowrap; }
.btn-grid .btn.all { grid-column: 1 / -1; }
/* the shop's names: the inputs one width */
.profile-name input[type=text] { width: 100%; box-sizing: border-box; }
/* the shift table in the column: the days across the top so the hours get the whole width (the column is never wide enough for a side list) */
@container info (min-width: 0px) {
  .sh-wrap { flex-direction: column; }
  .sh-days { flex-direction: row; width: 100%; }
  .sh-days .sh-day { flex: 1 1 0; min-width: 0; }
  .sh-main { width: 100%; }
  .sh-grid { --sh-who: 88px; --sh-sum: 64px; }
}
/* (the 内装 rows: the column set above lost to the older .info .info-body .deco-row rule) */
.info .info-body .deco-row:not(:has(input)), .deco-row:not(:has(input)) { grid-template-columns: 28px minmax(0, 1fr) auto var(--btn-min-sm); }
.deco-name b { white-space: nowrap; }
/* inner tabs with long names break onto two lines inside their button instead of running into the next */
.info-body .innertabs button { white-space: normal; line-height: 1.3; }
/* headings may break (long ones onto two lines) but never a short one letter by letter */
.info-body .tbl th { white-space: normal; min-width: 2.6em; }

.info-body .tbl.month td:first-child { white-space: nowrap; }
/* the price sits beside the mood under the name: swatch | name | button */
.info .info-body .deco-row:not(:has(input)), .deco-row:not(:has(input)) { grid-template-columns: 28px minmax(0, 1fr) var(--btn-min-sm); }
.info .info-body .deco-row, .deco-row { grid-template-columns: auto 28px minmax(0, 1fr); }
.deco-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deco-name b { white-space: normal; }
.info-body .bignum b { font-size: min(1.7rem, 4.7cqi); }
.info-body .bignum.main b { font-size: min(2rem, 5.4cqi); }
/* headings stay on one line (kept short in the code); the monthly table a little tighter, its month without the year */
.info-body .tbl th { white-space: nowrap; }
.info-body .tbl.month th, .info-body .tbl.month td { padding-left: .4em; padding-right: .4em; }
.info-body .bignum span { word-break: keep-all; }
.info-body .bignum b { font-size: min(1.7rem, 4.4cqi); }
.info-body .bignum span { overflow-wrap: anywhere; }

/* the information column is one width on every page (45% of the screen), never wider or narrower page to page */
@media (min-width: 901px) {
  .play, .play.wide { grid-template-columns: minmax(0, 1fr) clamp(610px, 45%, 900px); }
  .play.folded { grid-template-columns: minmax(0, 1fr); }
}
/* the interior grade and the 居抜き choice: radio | name over what it is | price */
.info .info-body .deco-row.pick, .deco-row.pick { grid-template-columns: auto minmax(0, 1fr) auto; }
.deco-row.pick .deco-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.deco-row.pick .deco-sub .small { white-space: normal; }
/* no big empty space: the last block of a page reaches down to the bottom of the column */
.info-body > :last-child:is(.panel, .g-stack, .g-side, .g2) { flex: 1 0 auto; }
.info-body > .g-stack:last-child > .panel:last-child, .info-body > .g-side:last-child > *, .info-body > .g2:last-child > * { flex: 1 0 auto; }
/* a page that is one frame (one panel, or one stack of panels, under the switch bar and the numbers) keeps that frame at
   the size of the space left: what is in it scrolls inside, so planning a meet, ticking a box or switching the inner tab
   never makes the frame grow or shrink. Pages of several frames side by side (g2, g-side, panel + panel) scroll as before */
.info-body:not(:has(> .panel ~ .panel, > .g2, > .g-side, > .g-side-l, > .g-stack)) > .panel,
.info-body:not(:has(> .panel, > .g2, > .g-side, > .g-side-l, > .g-stack ~ .g-stack)) > .g-stack { flex: 1 1 0; min-height: 0; overflow-y: auto; }
/* in a narrow column the tables close up a little so their headings stay on one line */
@container info (max-width: 640px) {
  .info-body .tbl { font-size: .98rem; }
  .info-body .tbl th, .info-body .tbl td { padding-left: .32em; padding-right: .32em; }
  .info-body .tbl th { font-size: .9rem; letter-spacing: 0; }
}
.info-body .tbl.fees input[type=number] { min-width: 4.4em; padding-left: .3em; padding-right: .2em; }
.empty-panel { display: flex; align-items: center; justify-content: center; }
.info-body .tbl.menu input[type=number] { min-width: 3.6em; }
@container info (max-width: 700px) { .info-body .tbl.menu td:nth-child(2) { white-space: normal; } }
/* the checkout: what is paid, what is handed in and the change (or the amount to charge) as one row of boxes */
.pay-nums { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 10px 0 12px; }
.pay-nums > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); }
.pay-nums span { font-size: .8rem; color: var(--muted); }
.pay-nums b { font-family: var(--f-num); font-size: 1.25rem; white-space: nowrap; }
.pay-nums .main { border: 2px solid var(--accent); background: #eaf6ef; }
.pay-nums .main span { color: var(--accent-2); font-weight: 700; }
.pay-nums .main b { font-size: 1.6rem; color: var(--accent-2); }
.tray-sum small { margin-left: .4em; font-weight: 400; color: var(--muted); }
.tray-sum.ok { color: var(--accent-2); }
/* the tutorial's steps inside the checkout */
.pay-guide { margin: 12px 0 4px; padding: 10px 12px 10px 2em; border: 1px dashed var(--accent); border-radius: var(--r); background: #fbfaf3; font-size: .92rem; line-height: 1.6; }
.pay-guide li { color: var(--muted); }
.pay-guide li.cur { color: var(--ink); font-weight: 700; }
.pay-guide li.cur::marker { color: var(--accent); }
.pay-guide li.done { text-decoration: line-through; }
.pay-hint { min-height: 1.4em; margin: 4px 0 0; font-weight: 700; color: var(--accent-2); }
.tray-sum small { display: block; margin: 0; }
/* the tutorial's checkout fits a short window: the bill tighter, the steps smaller */
.modal.checkout:has(.pay-guide) .pay-bill td { padding: 2px 2px; }
.modal.checkout:has(.pay-guide) .pay-nums { margin: 8px 0; }
.modal.checkout:has(.pay-guide) .pay-guide { font-size: .86rem; line-height: 1.5; padding: 6px 10px 6px 2em; margin-top: 8px; }
.modal.checkout:has(.pay-guide) .btn-row { margin-top: 10px; }
/* the line for "the amount is wrong" is kept even while empty, so the window does not grow when it appears */
.modal.checkout .pay-msg { min-height: 1.6em; line-height: 1.6; }
.modal.checkout .pay-msg:empty { visibility: hidden; }
/* the stock's cart: what is in it, the total and the cash left, and one button to buy it all */
.cart-box { margin-top: 12px; padding: 10px 12px; border: 2px solid var(--accent); border-radius: var(--r); background: #f3faf6; }
.cart-box h4 { margin: 0 0 6px; color: var(--accent-2); }
.cart-box .tbl.cart { width: 100%; }
.cart-after { margin: 8px 0 0; text-align: right; }
.cart-box .btn-row { display: flex; gap: 10px; margin-top: 10px; }
.cart-box .btn-row > .btn { flex: 1 1 0; min-width: 0; }
.in-n { display: block; color: var(--muted); font-weight: 400; white-space: nowrap; }
.modal.pick .tk-msg { margin: .5em 0 0; font-weight: 700; min-height: 1.5em; }
/* the "not enough stock" line keeps its place while hidden, so the ticket window does not grow when it shows */
.modal.pick .tk-msg[hidden] { display: block; visibility: hidden; }
.cart-n { margin-left: .3em; padding: 0 .35em; border-radius: 2px; background: var(--accent); color: #fff; font-size: .8em; font-weight: 700; }
.cart-empty { margin: 0; font-size: .9rem; color: var(--muted); }
/* the store's facts: two columns, the name left and the figure right */
.tbl.facts th { width: 40%; text-align: left; font-weight: 700; color: var(--muted); }
.profile-name label { display: block; margin-top: 8px; }
.profile-name .tbl.facts { margin-top: 12px; }
.g-stack > .panel + .panel { margin-top: 0; }
.info .info-body .profile-name input[type=text] { width: 100%; max-width: none; }
.profile .tbl.facts { margin-top: 12px; }
/* the equipment page in the column: the choices two to a row on top, the chosen one below (its picture beside its
   figures), so neither side leaves a gap under it */
.eq-pick { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.eq-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.eq-cards .eq-card { height: 100%; box-sizing: border-box; }
.eq-detail { display: grid; grid-template-columns: minmax(140px, 36%) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 4px 14px; align-items: start; }
.eq-detail img { grid-row: 1 / -1; height: 100%; min-height: 170px; max-height: 240px; }
.eq-detail .tbl { width: 100%; }
.info .info-body .eq-detail .tbl td.num { white-space: normal; text-align: left; }
.eq-detail .btn-row { margin-top: 6px; }
/* ---- v0.81: the switch inside a page. A bar of its own with a label, the choices as raised buttons with a radio dot,
   the chosen one filled and pointing down at what it shows: it has to read as "this page switches" at a glance ---- */
nav.innertabs, .info .info-body nav.innertabs { display: flex; align-items: stretch; gap: 10px; margin: 0 0 12px; padding: 8px 10px; border: 0; border-left: 4px solid var(--gold); border-radius: var(--r); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
nav.innertabs .sw-label { flex: none; align-self: center; writing-mode: horizontal-tb; font-size: .82rem; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; line-height: 1.25; width: 4.4em; }
nav.innertabs .sw-btns { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
nav.innertabs .sw-btns button, .info .info-body nav.innertabs .sw-btns button { grid-column: span var(--span, 12); position: relative; display: flex; align-items: center; justify-content: center; gap: .5em; min-width: 0; height: var(--btn-h-sm, 40px); margin: 0; padding: 0 .6em;
  font: inherit; font-size: 1.02rem; font-weight: 700; white-space: nowrap; color: var(--ink); cursor: pointer;
  background: var(--panel); border: 2px solid var(--line-2); border-bottom-width: 4px; border-radius: var(--r); box-shadow: 0 2px 0 rgba(0,0,0,.06); transition: transform .08s, border-color .12s; }
nav.innertabs .sw-btns button:not(.cur):hover, .info .info-body nav.innertabs .sw-btns button:not(.cur):hover { border-color: var(--accent); transform: translateY(-1px); }
nav.innertabs .sw-btns button.cur, .info .info-body nav.innertabs .sw-btns button.cur { color: #fff; background: var(--accent); border-color: var(--accent-2); border-bottom-color: var(--gold); cursor: default; transform: none; }
nav.innertabs .sw-btns button.cur::after { content: ''; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--accent-2); border-bottom: 0; }
nav.innertabs .sw-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--panel); box-sizing: border-box; }
nav.innertabs .sw-btns button:hover .sw-dot { border-color: var(--accent); }
nav.innertabs .sw-btns button.cur .sw-dot { border-color: #fff; background: radial-gradient(circle, #fff 0 3px, var(--accent) 3.5px); }
nav.innertabs, .info .info-body nav.innertabs { flex-direction: column; gap: 6px; }
nav.innertabs .sw-label { align-self: flex-start; width: auto; }
nav.innertabs .sw-label::before { content: "⇆ "; color: var(--gold); }
/* ---- v0.81: tables as blocks, not rows split by thin lines. Each row is a tinted block with a coloured edge and a
   little air between rows; the heading row stays plain; category rows read as small headings; totals stand out ---- */
.tbl, .info .info-body .tbl { border-collapse: separate; border-spacing: 0 5px; margin-top: -5px; }
.tbl th, .tbl td, .info-body .tbl th, .info-body .tbl td, .tbl.mi-cols tr { border-bottom: 0; border-top: 0; }
.tbl tr > td, .tbl tr:has(> td) > th { background: var(--panel-2); }
.tbl tr > :first-child { border-left: 3px solid var(--line-2); border-radius: 2px 0 0 2px; }
.tbl tr > :last-child { border-radius: 0 2px 2px 0; }
.tbl tr:not(:has(> td)) > :first-child { border-left: 3px solid transparent; }
.tbl tr:not(:has(> td)) > th { padding-top: .2em; padding-bottom: .2em; }
.tbl tr:hover > td { background: #ece6d8; }
.tbl tr.cat > th, .info .info-body .tbl.menu tr.cat th { background: none; border-left: 0; padding: .7em .2em .1em; color: var(--green-deep); font-weight: 700; }
.tbl tr.sum > td, .tbl tr.sum > th { background: var(--gold-soft); border-top: 0; }
.tbl tr.sum > :first-child { border-left-color: var(--gold); }
.tbl tr.dis > td { opacity: .6; }
.tbl.missions tr.on > td { background: var(--gold-soft); }
.tbl.mi-cols tr { border-bottom: 0; margin-bottom: 5px; background: var(--panel-2); border-left: 3px solid var(--line-2); }
.tbl.mi-cols td { background: none; }
.tbl.mi-cols tr > :first-child { border-left: 0; }
/* on a tinted box the blocks go white */
.eq-detail .tbl tr > td, .cart-box .tbl tr > td, .eq-detail .tbl tr:has(> td) > th { background: var(--panel); }
/* the checkout's bill the same way */
.pay-bill { border-collapse: separate; border-spacing: 0 4px; }
.pay-bill td { border-bottom: 0; background: var(--panel-2); }
.pay-bill td:first-child { border-left: 3px solid var(--line-2); }
.pay-bill .sum td { background: var(--gold-soft); border-bottom: 0; }
/* v1.9.5: the bill's lines (fees, each item, games bought) scroll in a box of their own; the total stays below */
.pay-items { max-height: 9.6em; overflow-y: auto; margin-bottom: 2px; }
.pay-items .pay-bill { margin-bottom: 0; font-size: 0.92em; }
.pay-items .pay-bill td { padding: 2px 4px; }
/* ---- v0.82: calmer, softer pages. Rounded corners; each page heading leads with an icon badge and is the strongest
   thing on the page; colour is kept for what should be picked out (the main button, the chosen option, the main figure,
   the cart) and taken off the rest (help, おまかせ, plain rows); a little more air between parts ---- */
:root { --r: 8px; --r-lg: 14px; --r-sm: 6px; }
.panel, .card, .info .info-body .panel { border-radius: var(--r-lg); padding: 16px 20px; }
.panel > h3, .card > h3, .info-body .panel > h3, .info .info-body .panel > h3 { font-family: var(--f-disp); font-weight: 400; font-size: 1.22rem; letter-spacing: .05em; color: var(--green-deep);
  gap: .6em; border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }
.panel > h3::before, .card > h3::before { display: none; }
.h-ico { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--green-deep); }
.h-ico .ico { width: 19px; height: 19px; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.panel h4, .info .info-body .panel h4 { margin: 20px 0 8px; font-size: 1.02rem; color: var(--ink); }
.panel h4::before { content: ''; flex: none; width: 5px; height: 1.05em; border-radius: 3px; background: var(--gold); }
.panel > h3 + h4, .panel h4:first-child { margin-top: 0; }
.row { margin: .5em 0; }
/* buttons and fields: rounded */
.btn, .icon-btn, .info .info-body .btn { border-radius: var(--r); }
input[type=number], input[type=text], select { border-radius: var(--r-sm); }
.tag, .hint, .cart-n { border-radius: 999px; }
.bar, .area-bar, .bar > span, .area-bar span { border-radius: 999px; }
/* help is there when wanted, not a thing to look at */
.help-btn { border: 0; background: var(--panel-3); color: var(--ink-2); border-radius: 999px; font-size: .9rem; padding: .3em .95em .3em .55em; margin: 8px 0 4px; }
.help-btn::before { background: var(--muted); }
.help-btn:hover { background: var(--line); }
/* おまかせ: one quiet line */
.omakase, .info .info-body .omakase { background: none; border: 0; padding: 0; margin: 0 0 14px; gap: 12px; }
.omakase .btn { border-radius: 999px; padding-left: 1.1em; padding-right: 1.1em; }
/* table rows: soft rounded blocks, no coloured edge */
.tbl tr > :first-child, .tbl.mi-cols tr { border-left: 0; }
.tbl tr > :first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); padding-left: .8em; }
.tbl tr > :last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.tbl tr.sum > :first-child { border-left: 0; }
.tbl, .info .info-body .tbl { border-spacing: 0 6px; }
.pay-bill td:first-child { border-left: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.pay-bill td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
/* the in-page switch: rounded */
nav.innertabs, .info .info-body nav.innertabs { border-left: 0; border-radius: var(--r-lg); padding: 10px 12px; }
nav.innertabs .sw-btns button, .info .info-body nav.innertabs .sw-btns button { border-radius: 999px; }
.cart-box { border-radius: var(--r-lg); }
.pay-nums > div, .pay-guide { border-radius: var(--r); }
.modal { border-radius: var(--r-lg); }
/* a choice of one among a few as cards: the chosen one filled green with a tick */
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 16px; }
.opt-cards.col { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.opt-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 44px 12px 14px; border: 2px solid var(--line-2); border-radius: var(--r-lg); background: var(--panel); cursor: pointer; transition: border-color .15s, transform .1s; }
.opt-card:hover:not(.cur) { border-color: var(--accent); transform: translateY(-1px); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel-3); color: var(--ink-2); }
.opt-ico .ico { width: 22px; height: 22px; }
.opt-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.opt-txt b { font-size: 1.08rem; }
.opt-txt small { font-size: .82rem; color: var(--muted); }
.opt-mark { position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--panel); }
.opt-card.cur { border-color: var(--accent-2); background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--green-deep); }
.opt-card.cur .opt-ico { background: rgba(255,255,255,.2); color: #fff; }
.opt-card.cur .opt-txt small { color: rgba(255,255,255,.85); }
.opt-card.cur .opt-mark { border-color: #fff; background: #fff; }
.opt-card.cur .opt-mark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.opt-cards.col .opt-card { padding-top: 8px; padding-bottom: 8px; }
.opt-cards.col .opt-ico { width: 32px; height: 32px; }
/* the fees: weekdays and weekends/holidays as two cards of their own colour, well apart */
.fee-cards { display: grid; gap: 16px; margin: 0 0 8px; }
.fee-card { padding: 12px 16px 10px; border-radius: var(--r-lg); background: #edf5ef; }
.fee-card.we { background: #fbeae2; }
.fee-tag { display: inline-flex; align-items: center; gap: .45em; margin: 0 0 6px; padding: .2em .9em .2em .6em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.02rem; }
.fee-card.we .fee-tag { background: #c95a3c; }
.fee-grid { width: 100%; border-collapse: separate; border-spacing: 8px 4px; margin: 0 -8px; }
.fee-grid th { font-size: .84rem; font-weight: 700; color: var(--ink-2); text-align: left; padding: 0; }
.fee-grid tr > th:first-child { width: 4em; white-space: nowrap; font-size: .95rem; color: var(--ink); }
.fee-grid td { padding: 0; vertical-align: top; }
.info .info-body .fee-grid input[type=number], .fee-grid input[type=number] { width: 100%; min-width: 4.2em; border-color: transparent; font-family: var(--f-num); font-size: 1.1rem; }
.fee-card.we .fee-grid input:focus { outline-color: rgba(201,90,60,.35); border-color: #c95a3c; }
.fee-grid .fee-guide, .info .info-body .fee-grid .fee-guide { display: block; font-size: .74rem; color: var(--muted); line-height: 1.4; }
/* the page buttons at the top of a tab: rounded pills with a gap, not a grid of boxes sharing lines */
.info .subtabs { gap: 6px; padding: 10px 12px 2px; }
.info .subtabs button { border-radius: 999px; margin: 0; border-width: 1px; border-bottom-width: 3px; }
.cart-box h4 .ico { color: var(--accent); }
.cart-box h4::before { display: none; }
/* headings in the body font, heavy: the display font is kept for the logo and big figures */
.panel > h3, .card > h3, .info-body .panel > h3, .info .info-body .panel > h3 { font-family: var(--f-body); font-weight: 900; font-size: 1.24rem; letter-spacing: .03em; }
.panel > h3 .small, .card > h3 .small { font-weight: 500; font-size: .82rem; letter-spacing: 0; }
.pools { display: flex; align-items: center; gap: .45em; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 14px; border-radius: 999px; background: var(--panel-2); font-size: .95rem; }
.pools .ico { color: var(--muted); }
/* a page with nothing on it yet: a big friendly picture above the line */
.empty-panel .empty-art { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty-panel .empty-art .ico { width: 52px; height: 52px; }
.empty-panel { flex-direction: column; text-align: center; }
/* ---- v0.83: a cosy café game look, from the user's references. Panels are cream paper in a double frame; the page
   heading is a green ribbon running in from the panel's edge; sub-headings are small paper tags; buttons are chunky
   game buttons with a raised bottom edge; the main tabs carry icons; big figures are tiles with an icon; dialogs are
   framed cards with an ornamented title ---- */
:root { --paper: #fffaf0; --frame: #e2cfa9; --frame-in: #efe2c6; --wood-d: #8a5a32; }
.panel, .card, .info .info-body .panel { background: var(--paper); border: 2px solid var(--frame);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--frame-in), 0 2px 0 rgba(120,90,50,.1), 0 8px 18px -8px rgba(120,90,50,.25); }
.card.sel { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent), 0 8px 18px -8px rgba(47,122,90,.4); background: #f3faf5; }
/* the page heading: a ribbon in from the left edge, its right end notched */
.panel > h3, .card > h3, .info-body .panel > h3, .info .info-body .panel > h3 { width: fit-content; max-width: calc(100% + 20px); margin: 0 0 16px -22px; padding: 6px 34px 6px 10px;
  color: #fff; background: linear-gradient(#34936a, #23674b); clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%);
  box-shadow: none; text-shadow: 0 1px 0 rgba(0,0,0,.2); font-size: 1.18rem; }
.panel > h3 .small, .card > h3 .small, .panel > h3 .muted { color: rgba(255,255,255,.82); }
.panel > h3 .h-ico, .card > h3 .h-ico { width: 30px; height: 30px; background: var(--paper); color: var(--accent-2); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.panel > h3 .h-ico .ico { width: 18px; height: 18px; }
/* sub-headings: a small paper tag with a gold edge */
.panel h4, .info .info-body .panel h4 { width: fit-content; padding: .28em .95em .28em .7em; border-radius: var(--r-sm); background: #f5e8cc; color: #5b4322; border-left: 4px solid var(--gold); }
.panel h4::before { display: none; }
.cart-box h4, .info .info-body .cart-box h4 { background: none; border-left: 0; padding: 0; color: var(--accent-2); }
/* chunky game buttons */
.btn, .info .info-body .btn { background: linear-gradient(#fffdf7, #f2e7d2); border: 1px solid #cdb68e; border-bottom: 4px solid #b39563; border-radius: 10px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px -2px rgba(90,60,20,.3); color: #4a3a26; }
.btn:hover:not(:disabled), .info .info-body .btn:hover:not(:disabled) { background: linear-gradient(#fff, #f7efdf); border-color: #c4a670; }
.btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; }
.btn.primary, .info .info-body .btn.primary { background: linear-gradient(#45a87a, #2b7a56); border-color: #22634a; border-bottom-color: #174a34; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 6px -3px rgba(23,74,52,.6); }
.btn.primary:hover:not(:disabled), .info .info-body .btn.primary:hover:not(:disabled) { background: linear-gradient(#4fb585, #2f845d); }
.btn.gold, .info .info-body .btn.gold { background: linear-gradient(#ffd16a, #eda52c); border-color: #c4831d; border-bottom-color: #9a6512; color: #3a2405; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 6px -3px rgba(154,101,18,.6); }
.btn.sm, .info .info-body .btn.sm { border-bottom-width: 3px; border-radius: 8px; }
.btn.cur, .info .info-body .btn.cur { background: linear-gradient(#e9f5ee, #d6ebdf); border-color: var(--accent); border-bottom-color: var(--accent-2); color: var(--accent-2); }
.btn:disabled { filter: grayscale(.6); }
/* the main tabs: an icon over each name */
.tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.15; }
.tabs button .ico { width: 20px; height: 20px; opacity: .85; }
.tabs button.cur .ico { color: var(--accent); opacity: 1; }
.tabs button.cur { background: var(--paper); }
.tabs .info-fold { flex-direction: row; }
.tabs button .badge { position: absolute; top: 4px; right: calc(50% - 30px); }
.tabs button { position: relative; }
/* big figures: tiles with an icon */
.bignum { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i l" "i n"; align-items: center; column-gap: 10px; row-gap: 2px; padding: 8px 14px 8px 10px;
  background: var(--paper); border: 2px solid var(--frame-in); border-radius: 12px; }
.bignum .bn-ico { grid-area: i; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #f1e6cf; color: var(--wood-d); }
.bignum .bn-ico .ico { width: 20px; height: 20px; }
.bignum > span { grid-area: l; }
.bignum > b { grid-area: n; }
.bignum.main { background: linear-gradient(#f0f8f3, #e2f1e8); border-color: rgba(47,122,90,.45); }
.bignum.main .bn-ico { background: var(--accent); color: #fff; }
.bignums-xl .bignum .bn-ico { width: 48px; height: 48px; }
.bignums-xl .bignum .bn-ico .ico { width: 26px; height: 26px; }
/* dialogs: a framed card, the title centred between ornaments */
.modal { background: var(--paper); border: 3px solid var(--frame); border-top: 3px solid var(--frame); border-radius: 16px;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--frame-in), 0 24px 60px rgba(40,25,10,.45); }
.modal > h2 { display: flex; align-items: center; justify-content: center; gap: .7em; text-align: center; margin: 0 0 14px; }
.modal > h2::before, .modal > h2::after { content: ''; flex: 1 1 auto; max-width: 90px; height: 8px;
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px) center / 8px 8px no-repeat, linear-gradient(var(--frame), var(--frame)) center / 100% 2px no-repeat; }
/* ---- v0.83: pages with a focus, not one even stack (the user's layout-pattern sheet). Three or more big figures with a
   main one: the main one is the large tile on the left, two rows tall, the others stacked beside it. Panels after the
   first on a page are the supporting ones: a lighter frame and a smaller brown ribbon, so the eye lands on the first ---- */
.bignums:has(> .bignum.main):has(> .bignum:nth-child(3)):not(:has(> .op)) { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.bignums:has(> .bignum.main):has(> .bignum:nth-child(3)):not(:has(> .op)) > .bignum { min-width: 0; }
.bignums:has(> .bignum.main):has(> .bignum:nth-child(3)):not(:has(> .op)) > .bignum.main { order: -1; grid-row: span 2; grid-template-columns: minmax(0, 1fr); grid-template-areas: "i" "l" "n";
  justify-items: start; align-content: center; padding: 16px 20px; row-gap: 6px; }
.bignums:has(> .bignum.main):has(> .bignum:nth-child(3)):not(:has(> .op)) > .bignum.main .bn-ico { width: 54px; height: 54px; }
.bignums:has(> .bignum.main):has(> .bignum:nth-child(3)):not(:has(> .op)) > .bignum.main .bn-ico .ico { width: 30px; height: 30px; }
.bignums:has(> .bignum.main):has(> .bignum:nth-child(3)):not(:has(> .op)) > .bignum.main b { font-size: clamp(2.2rem, 3.2vw, 3rem); }
.bignums:has(> .bignum.main):has(> .bignum:nth-child(3)):not(:has(> .op)) > .bignum:not(.main) { padding: 8px 12px; }
.bignum > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bignum > b { min-width: 0; }
.info-body > .panel + .panel, .info-body .g-stack > .panel + .panel { background: #fbf3e3; border: 2px solid var(--frame-in); box-shadow: 0 2px 0 rgba(120,90,50,.06); }
.info-body > .panel + .panel > h3, .info-body .g-stack > .panel + .panel > h3 { background: linear-gradient(#a87a4c, #845630); font-size: 1.02rem; padding-top: 4px; padding-bottom: 4px; }
.info-body > .panel + .panel > h3 .h-ico, .info-body .g-stack > .panel + .panel > h3 .h-ico { width: 26px; height: 26px; color: var(--wood-d); }
/* (any panel that follows another down the page, except cards side by side in a grid) */
.info-body .panel + .panel:not(.g2 > *, .g3 > *, .cards > *, .g-side > *, .g-side-l > *) { background: #fbf3e3; border: 2px solid var(--frame-in); box-shadow: 0 2px 0 rgba(120,90,50,.06); }
.info-body .panel + .panel:not(.g2 > *, .g3 > *, .cards > *, .g-side > *, .g-side-l > *) > h3 { background: linear-gradient(#a87a4c, #845630); font-size: 1.02rem; padding-top: 4px; padding-bottom: 4px; }
.info-body .panel + .panel:not(.g2 > *, .g3 > *, .cards > *, .g-side > *, .g-side-l > *) > h3 .h-ico { width: 26px; height: 26px; color: var(--wood-d); }
/* a counter row (tables, shelves before opening): a block, its figures as small items side by side */
.counter, .info .info-body .counter { margin: 0 0 6px; padding: 8px 12px; border-bottom: 0; border-radius: var(--r); background: var(--panel-2); }
.counter .cnt-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.cnt-spec { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.cnt-spec > div { display: flex; align-items: baseline; gap: .4em; padding: 1px 10px; border-radius: 999px; background: var(--paper); font-size: .86rem; }
.cnt-spec dt { color: var(--muted); font-size: .78rem; }
.cnt-spec dd { margin: 0; font-weight: 700; }
.cnt-spec dd small { font-weight: 500; color: var(--muted); font-size: .8em; }
.row.check > .cnt-main { display: flex; flex-direction: column; gap: 4px; }
/* an equipment tab already settled before opening: shown, locked */
fieldset.eq-paid { position: relative; margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.eq-paid > .panel { opacity: .6; }
.eq-paid-tag { position: absolute; z-index: 2; top: 14px; right: 16px; padding: .2em .9em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; }
.floor-banner .floor-nums .bignum { min-width: 7.5em; grid-template-areas: "l" "n"; grid-template-columns: auto; }
.floor-banner .floor-meter { flex: 1 1 260px; min-width: 0; }
/* the hours: weekdays and weekends/holidays as the fee page's two cards, each with its hours and a 24-hour strip;
   the closed days as big toggle chips across the page */
.hr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.hr-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 12px; }
.hr-head { display: flex; align-items: center; justify-content: space-between; }
.hr-head .fee-tag { margin: 0; }
.hr-len { font-family: var(--f-num); font-size: 1.9rem; line-height: 1; color: var(--green-deep); }
.hr-card.we .hr-len { color: #a8452b; }
.hr-len small { font-size: .5em; margin-left: .15em; color: var(--muted); }
.hr-sel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.info .info-body .hr-sel select, .hr-sel select { width: 100%; font-size: 1.1rem; padding: .3em .5em; }
.hr-strip { position: relative; height: 14px; border-radius: 999px; background: rgba(255,255,255,.8); overflow: hidden; }
.hr-strip span { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.hr-card.we .hr-strip span { background: #c95a3c; }
.hr-ticks { position: relative; height: 1em; margin-top: -6px; font-size: .72rem; color: var(--muted); }
.hr-ticks i { position: absolute; font-style: normal; transform: translateX(-50%); }
.hr-ticks i:first-child { transform: none; }
.hr-ticks i:last-child { transform: translateX(-100%); }
.day-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 8px; }
.day-chip { position: relative; display: grid; place-items: center; height: 52px; border: 2px solid var(--line-2); border-bottom-width: 4px; border-radius: 12px; background: var(--paper); font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.day-chip input { position: absolute; opacity: 0; pointer-events: none; }
.day-chip:hover:not(.cur) { border-color: var(--accent); }
.day-chip.cur { background: #6b5a48; border-color: #4f4134; color: #fff; }
.day-chip.cur::after { content: '休'; position: absolute; top: 3px; right: 6px; font-size: .62rem; opacity: .85; }
/* a panel's notes behind one 「ヘルプ」 in its top-right corner */
.panel.has-help { position: relative; }
.help-btn.corner { position: absolute; top: 14px; right: 16px; margin: 0; z-index: 2; }
.eq-paid-tag { right: 120px; }
/* ---- v0.84: a PC page fits without scrolling. Tighter rhythm inside the info column, pages laid out in two columns
   where their parts sit side by side naturally ---- */
@media (min-width: 1000px) and (min-height: 700px) {
  .info .info-body .panel { padding: 12px 16px; }
  .info .info-body .panel > h3 { margin-bottom: 10px; }
  .info .info-body .panel h4 { margin: 12px 0 6px; }
  .info .info-body .tbl { border-spacing: 0 4px; }
  .info .info-body .tbl th, .info .info-body .tbl td { padding-top: .22em; padding-bottom: .22em; }
  /* the walls and the floors side by side */
  .info .info-body .deco { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .info .info-body .deco h4 { margin-top: 0; }
  .info .info-body .deco-row { padding-top: 4px; padding-bottom: 4px; }
  /* the owner and the owner's figures side by side */
  .info-body[data-page="dash:owner"] .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-body[data-page="dash:owner"] .stat { margin: 0; }
}

/* v0.84: the game's logo in the setup bar, a little over its lower edge */
.logo-mini { display: flex; align-items: center; gap: 4px; height: 44px; }
.logo-mini img { display: block; height: 66px; width: auto; margin: -6px 0 -16px -6px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.logo-mini small { align-self: flex-end; margin-left: .4em; }

/* one size of heading everywhere: the ribbons and the setup title plate keep the same width whatever they say */
.panel > h3, .card > h3, .info-body .panel > h3, .info .info-body .panel > h3 { width: min(360px, calc(100% + 20px)); }
.page-title { width: 400px; flex: none; }

/* every setup page: one frame of the same size, filling the work area */
.page-body > .panel { flex: 1 1 auto; min-height: 0; margin-bottom: 0; display: flex; flex-direction: column; }
.page-body > .panel > .profile-row { flex: 1; min-height: 0; align-items: stretch; }
/* the owner page: the two busts big, the name beside them */
.page-body[data-page="funds:owner"] .profile-owner { display: flex; flex-direction: column; }
.page-body[data-page="funds:owner"] .owner-pick { flex: 1; min-height: 0; gap: 16px; }
.page-body[data-page="funds:owner"] .owner-card { width: 260px; justify-content: flex-start; font-size: 1.15rem; }
.page-body[data-page="funds:owner"] .owner-card img { width: 100%; height: auto; flex: 1; min-height: 0; aspect-ratio: auto; }
.page-body[data-page="funds:owner"] .profile-name { flex: 1; max-width: 520px; padding-top: 4px; }
/* the name page: the shop front with the name on its sign, as it is typed */
.sign-preview { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; margin-top: 12px; container-type: size; }
/* the photo keeps its shape and fits the room left; the plate covers the sign's own lettering */
.sign-photo { position: relative; width: min(100cqw, 100cqh * 2752 / 1536); aspect-ratio: 2752 / 1536; border-radius: var(--r-lg); overflow: hidden;
  background: url(../img/bg/storefront.jpg) center / 100% 100% no-repeat; box-shadow: 0 2px 0 rgba(120,90,50,.15), 0 10px 24px -12px rgba(60,40,20,.45); container-type: inline-size; }
.sign-plate { position: absolute; left: 35.5%; top: 18.2%; width: 32%; height: 8.6%; display: flex; align-items: center; justify-content: center; }
.sign-plate b { font-family: var(--f-disp); line-height: 1; letter-spacing: .06em; color: #2b2119; text-align: center; mix-blend-mode: multiply; opacity: .92; }
/* the points page: the abilities in two columns, filling the frame */
.su-points .owner-points { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 0; }
.su-points .op-head h4 { display: none; }
.su-points .op-head { position: static; justify-content: flex-end; margin: -52px 0 6px; padding: 0; background: none; border: 0; box-shadow: none; }
.su-points .op-tbl { flex: 1; min-height: 0; display: block; margin-top: 8px; }
.su-points .op-tbl tbody { height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px 14px; }
.su-points .op-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; gap: 6px 10px; padding: 8px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.su-points .op-tbl td { display: block; padding: 0; border: 0; }
.su-points .op-tbl td.op-bar { grid-column: 1 / -1; width: auto; }
/* the property page: one frame holding the search, the count and the cards */
.prop-frame > .filter-bar { padding: 0; margin: 0 0 8px; }
.prop-frame > .paged { flex: 1; min-height: 0; }
/* (the points cards: three columns, plain cells, small －/＋ beside the value) */
.su-points .op-head { margin-right: 120px; }
.su-points .op-tbl tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.su-points .op-tbl tr, .su-points .op-tbl tr:nth-child(n) { background: #fff; }
.su-points .op-tbl tr td, .su-points .op-tbl tr:nth-child(n) td { background: none; box-shadow: none; }
.su-points .op-tbl tr { grid-template-rows: auto auto; align-content: space-evenly; padding: 10px 14px; }
.su-points .op-tbl td:first-child { line-height: 1.45; }
.su-points .op-tbl td:first-child br + .small { display: block; margin-top: 2px; font-size: .92rem; }
.su-points .op-ctl .ctl { display: inline-flex; align-items: center; gap: 6px; }
.su-points .op-ctl .btn.sm { min-width: 0; width: 40px; padding: 0; }
.su-points .op-ctl output { min-width: 2.2em; text-align: center; font-family: var(--f-num); font-size: 1.35rem; font-weight: 600; color: var(--green-deep); }
.su-points .op-fixed { opacity: .8; }
/* the name page: the sign over the awning, the shop below */
.logo-mini img { height: 80px; margin: -8px 0 -28px -8px; }

/* v0.84: on a wide PC screen the page tabs and the switch bar each take one row, the switch's label at its left */
@media (min-width: 1600px) {
  .info .subtabs { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
  .info .subtabs button { grid-column: auto; }
  nav.innertabs .sw-btns { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
  nav.innertabs .sw-btns button, .info .info-body nav.innertabs .sw-btns button { grid-column: auto; }
  nav.innertabs, .info .info-body nav.innertabs { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; }
  nav.innertabs .sw-label { align-self: center; white-space: nowrap; }
}
/* the wear table: one line a kind; the chairs page: the types, then the tables a page at a time */
.wear-tbl .wr-life { white-space: nowrap; color: var(--ink-2); }
.wear-tbl .pr-cap { width: 30%; min-width: 120px; }
.wear-tbl .pr-cap .area-bar { margin-bottom: 2px; }
.chairs-panel { display: flex; flex-direction: column; }
.chairs-panel .eq-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.chairs-panel .ch-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 8px; }
.chairs-panel .ch-bar h4 { margin: 0; }
.chairs-panel .ch-bar .btn-row { margin: 0; }
.chairs-panel > .paged { flex: 1; min-height: 160px; }
.ch-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.ch-card .pr-cap .area-bar { margin-bottom: 2px; }
.ch-card .btn { align-self: stretch; }
/* the fee page on a wide screen: the mode and おまかせ on one row, the weekday and weekend cards side by side, the drink choices in a row */
.fee-top { display: flex; align-items: stretch; gap: 10px; }
.fee-top > .opt-cards { flex: 1; min-width: 0; margin: 0; }
.fee-top > .omakase { flex: none; display: flex; align-items: center; margin: 0; }
@media (min-width: 1600px) {
  .fee-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fee-cards .fee-card { margin: 0; }
  .fee-grid input[type=number], .info .info-body .fee-grid input[type=number] { min-width: 0; width: 100%; padding-left: .3em; padding-right: 0; }
  /* the store's facts as tiles in rows of three */
  .tbl.facts, .tbl.facts tbody { display: block; }
  .tbl.facts tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tbl.facts tr { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; background: var(--panel-2); border-radius: var(--r); }
  .tbl.facts th, .tbl.facts td, .tbl.facts td.num { display: block; padding: 0; border: 0; background: none; text-align: left; }
  .tbl.facts th { font-size: .9rem; color: var(--ink-2); }
}
.info-body > .chairs-panel:last-child { flex: 1 1 0; min-height: 0; }
.wear-panel { display: flex; flex-direction: column; }
.wear-panel > .wear-tbl { flex: 1; }
@media (min-width: 1600px) {
  .tbl.facts tr:first-child { grid-column: span 2; }
}
.fee-card .fee-grid, .info .info-body .fee-card .fee-grid { margin-left: 0; margin-right: 0; width: 100%; }
/* (the fee table inside its card: no pull to the left, its 大人/子ども labels in full) */
.fee-card .fee-grid th:first-child { white-space: nowrap; }
@media (min-width: 1600px) { .fee-card .fee-grid { border-spacing: 4px 4px; table-layout: fixed; } .fee-card .fee-grid th:first-child { width: 3.6em; } }
/* the event log: lines a page at a time, sized to the box */
.info-body > .log-panel:last-child { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.log-panel > .paged { flex: 1; min-height: 0; }
.log-panel .paged-grid { gap: 0; padding: 0; }
.log-row { padding: .3em .2em; border-bottom: 1px dashed var(--line); line-height: 1.5; }
.log-row.good { color: var(--good); }
.log-row.bad { color: var(--neg); }
.log-row.warn { color: var(--warn); }
.log-row.level { color: var(--level); font-weight: 700; }
.log-panel > .btn-row { margin: 8px 0 0; }
/* the missions: two columns on a wide screen */
@media (min-width: 1600px) { .info-body .tbl.mi-cols tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the interior before opening: the two ways side by side; the wall and floor finishes one line each */
.pick-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick-pair > .deco-row { margin: 0; }
@media (min-width: 1600px) {
  .info .info-body .deco label.deco-row { min-height: 0; padding: 4px 10px; }
  .info .info-body .deco label.deco-row .deco-name { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
}
@media (min-width: 1600px) {
  .info .info-body .deco label.deco-row .deco-name { flex-wrap: nowrap; width: 100%; }
  .info .info-body .deco label.deco-row .deco-name > b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
  .info .info-body .deco label.deco-row .deco-sub { flex: none; flex-wrap: nowrap; gap: 6px; }
  .info .info-body .deco label.deco-row .deco-sub .tag { font-size: .76rem; }
  .info .info-body .deco label.deco-row .deco-price { font-size: .92rem; white-space: nowrap; }
}
@media (min-width: 1600px) {
  .info .info-body .deco label.deco-row .deco-price small { display: none; }
}
@media (min-width: 1600px) {
  .info-body[data-page="settings:equip"] nav.innertabs { margin-bottom: 6px; }
  .info-body[data-page="settings:equip"] > .floor-banner { margin-bottom: 6px; }
}
@media (min-width: 1600px) { .pick-pair .deco-row { min-height: 0; padding-top: 6px; padding-bottom: 6px; } }
/* the store's mood on the interior panel: a small plate at its top right */
.panel:has(> .mood-tag) { position: relative; }
.mood-tag { position: absolute; top: 14px; right: 16px; padding: 4px 12px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); font-size: .92rem; }
.mood-tag b { color: var(--green-deep); font-size: 1.02rem; }
/* the hours page: the week as rows that fill the frame, the day chip at the left of each */
.info-body[data-page="dash:hours"] > .panel { display: flex; flex-direction: column; }
.wk-grid { flex: 1; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 6px; }
.wk-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px; padding: 0 12px 0 0; border-radius: var(--r); background: var(--panel-2); }
.wk-row .day-chip { height: 100%; min-height: 38px; border-radius: var(--r); }
.wk-row.we .day-chip:not(.cur) { color: #a8452b; }
.wk-bar .hr-strip { height: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.wk-row.we .hr-strip span { background: #c95a3c; }
.wk-off { color: var(--muted); font-weight: 700; letter-spacing: .3em; }
.wk-row.off { background: repeating-linear-gradient(135deg, var(--panel-2) 0 10px, #efe6d6 10px 20px); }
.panel > h3, .card > h3, .info-body .panel > h3, .info .info-body .panel > h3 { width: min(360px, calc(100% - 70px)); }
.sign-plate b { white-space: nowrap; }
.bignum b { min-width: 0; overflow: visible; }
.bignum.tight { grid-template-columns: minmax(0, 1fr); grid-template-areas: "l" "n"; } .bignum.tight > .bn-ico { display: none; }
/* v0.84.5: one width for each column of a kind of row, so nothing moves from row to row */
/* the interior grade / rebuild cards: the price column one fixed width, so every note wraps at the same width; all at the top */
.deco-row.pick, .info .info-body .deco-row.pick { grid-template-columns: auto minmax(0, 1fr) 7.6em; align-items: start; padding-top: 10px; padding-bottom: 10px; }
.deco-row.pick > input { margin-top: .35em; }
.deco-row.pick > .deco-price { text-align: right; }
.deco-row.pick .deco-sub .small { white-space: normal; }
/* the wall and floor rows: the price, then the mood tag, each in a column of one width */
.deco-row .deco-sub, .info .info-body .deco label.deco-row .deco-sub { display: grid; grid-template-columns: 7.4em 5.6em; align-items: center; column-gap: 8px; flex: none; }
.deco-row .deco-sub > .deco-price { text-align: right; white-space: nowrap; }
.deco-row .deco-sub > .tag { justify-self: start; }
.deco-row .deco-sub > .deco-auto { grid-column: 1 / -1; text-align: right; white-space: nowrap; }
/* (the grade cards' note is plain text under the name, as wide as the card leaves; one width for every card) */
.deco-row.pick .deco-sub, .info .info-body .deco-row.pick .deco-sub { display: block; }
.deco-row.pick, .info .info-body .deco-row.pick { grid-template-columns: auto minmax(0, 1fr) 6.4em; column-gap: 10px; }
/* (the wall/floor columns: as narrow as their widest content, so the names keep their room) */
.deco-row .deco-sub, .info .info-body .deco label.deco-row .deco-sub { grid-template-columns: 6.2em 4.9em; column-gap: 6px; }
.info .info-body .deco label.deco-row .deco-sub .tag { font-size: .74rem; padding: 0 .45em; }
.deco-row.pick > .deco-name, .deco-row.pick .deco-sub { width: 100%; }
.deco-row.pick, .info .info-body .deco-row.pick { padding-top: 8px; padding-bottom: 8px; }
.deco-row .deco-sub, .info .info-body .deco label.deco-row .deco-sub { grid-template-columns: 5em 4.4em; column-gap: 4px; }
.info .info-body .deco label.deco-row { column-gap: 8px; }
.info .info-body .deco label.deco-row .deco-name > b { font-size: .96rem; letter-spacing: 0; }
.deco-row.pick, .info .info-body .deco-row.pick { grid-template-columns: auto minmax(0, 1fr) 5.6em; }
.deco-row .deco-sub, .info .info-body .deco label.deco-row .deco-sub { grid-template-columns: 4.6em 4.4em; }
.info .info-body .deco label.deco-row .swatch { width: 24px; height: 24px; }
.info .info-body .deco label.deco-row { grid-template-columns: auto 24px minmax(0, 1fr); margin-bottom: 3px; }
/* the spec chips of the equipment rows: fixed columns, so 広さ／価格／内訳 sit at the same place on every row, never wrapping */
.cnt-spec { display: grid; grid-template-columns: 5.6em 10.6em minmax(0, 1fr); gap: 4px 6px; }
.cnt-spec > div { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.counter .ctl .btn, .info .info-body .counter .ctl .btn { min-width: 0; width: 44px; padding: 0; }
.counter .ctl output { min-width: 2em; text-align: center; }
/* the 内装と張替え rows after opening: swatch | name + mood on one line | price over the button, every column one width */
.info .info-body .deco .deco-row.live, .deco-row.live { display: grid; grid-template-columns: 28px minmax(0, 1fr) 8.4em; align-items: center; column-gap: 10px; min-height: 0; padding: 6px 10px; margin-bottom: 4px; }
.deco-row.live .deco-name { display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.deco-row.live .deco-name > b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deco-swap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; margin-bottom: 10px; border: 1px solid var(--line, #d8cdb8); border-radius: 2px; background: rgba(255, 236, 200, 0.45); }
.deco-swap p { margin: 0; flex: 1 1 14em; }
.deco-row.live .deco-name > .tag { flex: none; width: 5.4em; justify-content: center; text-align: center; font-size: .76rem; }
.deco-row.live .deco-act { display: grid; grid-template-rows: 1.2em auto; justify-items: stretch; row-gap: 2px; }
.deco-row.live .deco-act > .deco-price { text-align: center; font-size: .86rem; font-weight: 700; white-space: nowrap; line-height: 1.2; }
.deco-row.live .deco-act > .deco-price small { font-size: .78em; font-weight: 500; color: var(--muted); }
.deco-row.live .deco-act > .btn, .deco-row.live .deco-act > .deco-mark, .info .info-body .deco-row.live .deco-act > .btn { width: 100%; min-width: 0; height: var(--btn-h-sm); padding: 0; }
/* (the name over its mood tag: same row height as the price over the button, and the names keep their full length) */
.deco-row.live .deco-name { flex-direction: column; align-items: flex-start; gap: 3px; }
.deco-row.live .deco-name > b { flex: none; width: 100%; }
.deco-row.live .deco-name > .tag { width: 5.8em; white-space: nowrap; padding: 0; display: inline-flex; }
.info .info-body .deco .deco-row.live, .deco-row.live { grid-template-columns: 28px minmax(0, 1fr) 7.6em; }

/* v0.85 the list of guests waiting (own.js ownGuestList): at the right of the store while the owner works the floor */
.guest-list { position: absolute; right: 10px; bottom: 64px; z-index: 3; width: 232px; max-height: calc(100% - 330px); overflow: hidden;
  display: flex; flex-direction: column; gap: 4px; padding: 8px; background: rgba(255, 252, 245, 0.94); border: 2px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.guest-list[hidden] { display: none; }
.guest-list h4 { margin: 0 0 2px; font-size: 13px; }
.guest-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto 5px; column-gap: 6px; row-gap: 3px; align-items: center; width: 100%; min-height: 46px;
  padding: 5px 8px; text-align: left; font: inherit; color: inherit; background: #fff; border: 2px solid #e9799a; border-radius: 10px; cursor: pointer; flex: none; }
.guest-row:hover { background: #fff3f6; }
.guest-row.late { border-color: #d2553a; background: #ffe4de; }
.guest-row .gr-ic { grid-row: 1 / 3; font-size: 22px; line-height: 1; text-align: center; }
.guest-row .gr-tx { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.guest-row .gr-tx b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest-row .gr-tx small { flex: none; margin-left: auto; font-size: 11px; color: var(--muted); }
.guest-row .gr-bar { display: block; height: 5px; border-radius: 3px; background: #eadfce; overflow: hidden; }
.guest-row .gr-bar i { display: block; height: 100%; width: 0; background: #e9799a; }
.guest-row.late .gr-bar i { background: #d2553a; }
.guest-list .gr-none { margin: 0; font-size: 12px; color: var(--muted); }

/* v0.85.2 debug mode (index.html?debug): a tag in the corner so it is never mistaken for the real game */
body.debug::after { content: 'DEBUG'; position: fixed; left: 50%; top: 0; transform: translateX(-50%); z-index: 9999; padding: 1px 10px; font: 700 11px/1.6 sans-serif;
  letter-spacing: .1em; color: #fff; background: #c0392b; border-radius: 0 0 6px 6px; pointer-events: none; }

/* v0.86 one width for the same column, whatever the words in the next one (the owner's task tables are two tables stacked) */
.info .info-body .owner-time .tbl.acts { table-layout: fixed; width: 100%; }
.info .info-body .owner-time .tbl.acts th:last-child, .info .info-body .owner-time .tbl.acts td:last-child { width: 10rem; }
.info .info-body .owner-time .tbl.acts td:last-child select { width: 100%; }
/* the Game Market application, in a window: the labels in one column, the choices in the next */
/* one size whatever the form shows (ticking 店長に丸投げ shortens it): what does not fit scrolls inside */
.modal.gm-modal { width: min(820px, 94vw); height: min(720px, 92vh); max-height: none; overflow: auto; }
.gm-modal label.row:not(.check) { display: grid; grid-template-columns: 9em minmax(0, 1fr); align-items: center; gap: 10px; }
.gm-modal label.row:not(.check) > select, .gm-modal label.row:not(.check) > input { width: 100%; }

/* v0.86 shapes: corners softened, never round (no pill buttons); the page tabs and the switch inside a page look different */
:root { --r-btn: 6px; }
.btn, .icon-btn, .info .info-body .btn, .omakase .btn, .help-btn { border-radius: var(--r-btn); }
.tag, .hint, .cart-n, .fee-tag, .pools, .cnt-spec > div, .eq-paid-tag, .mood-tag { border-radius: 4px; }
/* the page tabs: paper tabs on a line, the open one joined to the page under it */
.info .subtabs { gap: 4px; padding: 10px 12px 0; border-bottom: 2px solid var(--accent); }
.info .subtabs button, .subtabs button { border-radius: var(--r-btn) var(--r-btn) 0 0; margin: 0 0 -2px; border: 1px solid var(--line-2); border-bottom: 2px solid var(--accent);
  background: var(--panel-2); color: var(--ink-2); box-shadow: none; transform: none; font-weight: 700; }
.info .subtabs button:hover:not(.cur):not(:disabled) { background: var(--panel); color: var(--accent); }
.info .subtabs button.cur, .subtabs button.cur { background: var(--accent); color: #fff; border-color: var(--accent); border-bottom-color: var(--accent); }
/* the switch inside a page: one joined bar of choices, the chosen one filled */
nav.innertabs .sw-btns, .info .info-body nav.innertabs .sw-btns { gap: 0; }
nav.innertabs .sw-btns button, .info .info-body nav.innertabs .sw-btns button { border-radius: 0; margin: 0 0 0 -1px; border: 1px solid var(--line-2); box-shadow: none; background: var(--paper); transform: none; }
nav.innertabs .sw-btns button:first-child, .info .info-body nav.innertabs .sw-btns button:first-child { margin-left: 0; border-radius: var(--r-btn) 0 0 var(--r-btn); }
nav.innertabs .sw-btns button:last-child, .info .info-body nav.innertabs .sw-btns button:last-child { border-radius: 0 var(--r-btn) var(--r-btn) 0; }
nav.innertabs .sw-btns button:only-child, .info .info-body nav.innertabs .sw-btns button:only-child { border-radius: var(--r-btn); }
nav.innertabs .sw-btns button:not(.cur):hover, .info .info-body nav.innertabs .sw-btns button:not(.cur):hover { transform: none; position: relative; z-index: 1; }
nav.innertabs .sw-btns button.cur, .info .info-body nav.innertabs .sw-btns button.cur { position: relative; z-index: 2; border-color: var(--accent-2); }

.deco-wom { display: inline-block; width: 1.4em; text-align: center; font-size: .9rem; }
.deco-tagline { display: inline-flex; align-items: center; gap: 4px; }
.deco-row.live .deco-name > .deco-tagline > .tag { width: 5.8em; white-space: nowrap; padding: 0; display: inline-flex; justify-content: center; }
.deco-row .deco-sub, .info .info-body .deco label.deco-row .deco-sub { grid-template-columns: 4.6em 4.4em 1.4em; }

/* v0.86 person cards in two columns, recruiting head */
.card.person.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.card.person.cols > .pc-l, .card.person.cols > .pc-r { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.paged-grid { overflow-y: auto; }
.recruit-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
.recruit-bar > .panel { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.recruit-bar h4 { margin: 0; }
.staff-slots .slots { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-slots .slot { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 2px dashed var(--line-2); border-radius: 6px; color: var(--line-2); }
.staff-slots .slot svg { width: 22px; height: 22px; }
.staff-slots .slot.on { border-style: solid; border-color: var(--green-deep); background: var(--green-deep); color: #fff; }
.staff-slots .slot-no { font-family: var(--f-num); font-size: 1.1rem; }
.staff-slots.full .slot-no { color: var(--neg, #b3402e); }
.ad-card p { margin: 0; }
.ad-card .ad-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-card .ad-price { font-family: var(--f-num); }
.ad-card.on { border-color: var(--green-deep); }
.ad-card .ad-on { color: var(--green-deep); font-weight: 700; }
.card.person.cols .tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
.card.person.cols .tasks > b, .card.person.cols .tasks > span { grid-column: 1 / -1; }
.card.person.cols .tasks .chk { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card.person.cols .hints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.card.person.cols .hints .hint { min-width: 0; }

.task-speed { grid-column: 1 / -1; display: grid; grid-template-columns: 5.5em minmax(0, 1fr) 3.2em auto; align-items: center; gap: 8px; margin-top: 4px; }
.task-speed .ts-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.task-speed .ts-bar i { display: block; height: 100%; background: var(--green-deep); }
.task-speed.slow .ts-bar i { background: var(--neg); }
.task-speed.slow b { color: var(--neg); }
.task-speed b { font-family: var(--f-num); text-align: right; }
.task-speed .ts-pr { color: var(--muted); }
.card.person.cols .tasks .chk { white-space: normal; align-items: flex-start; }

/* v0.86 stock: fixed columns (the cart badge no longer moves them), storage gauges, refill switches */
.info .info-body .tbl.stock { table-layout: fixed; width: 100%; }
.info .info-body .tbl.stock th.c-n { width: 8.5rem; }
.info .info-body .tbl.stock th.c-d { width: 7rem; }
.info .info-body .tbl.stock th.c-buy { width: 9.5rem; }
.info .info-body .tbl.stock td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pools { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 8px 14px; padding: 10px 14px; border-radius: 4px; background: var(--panel-2); }
.pool { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 5.5em; align-items: center; gap: 8px; font-size: .92rem; }
.pool .pl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool .pl-bar { position: relative; height: 12px; display: flex; background: var(--panel); border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.pool .pl-bar i { display: block; height: 100%; }
.pool .pl-bar .u { background: var(--green-deep); }
.pool .pl-bar .k { background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 3px, transparent 3px, transparent 6px); }
.pool .pl-no { font-family: var(--f-num); text-align: right; }
.pool.full .pl-no b { color: var(--neg); }
.restock { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 10px; }
.sw-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .95rem; }
.sw-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sw-toggle .sw-knob { position: relative; width: 38px; height: 20px; border-radius: 10px; background: var(--line-2); transition: background .15s; flex: none; }
.sw-toggle .sw-knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw-toggle input:checked + .sw-knob { background: var(--green-deep); }
.sw-toggle input:checked + .sw-knob::after { transform: translateX(18px); }
.sw-toggle input:focus-visible + .sw-knob { outline: 2px solid var(--accent); outline-offset: 2px; }
.cart-after.neg { color: var(--neg); font-weight: 700; }
/* v0.86 headings and choice names stay on one line */
.opt-card .opt-txt b, .info .info-body h3, .info .info-body h4, .modal h3, .modal h4 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .info-body .tbl.stock th.c-n { width: 6.2rem; }
.info .info-body .tbl.stock th.c-d { width: 5.4rem; }
.info .info-body .tbl.stock th.c-buy { width: 8.6rem; }
.pools { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pool { grid-template-columns: 9.5em minmax(0, 1fr) 5.5em; }
.ad-card .ad-price { white-space: nowrap; }
.info .info-body .person h4 { white-space: normal; overflow: visible; }
/* v0.86 a narrow info column stacks the two-up grids (nothing squeezed or cut) */
.info .info-body { container-type: inline-size; }
@container (max-width: 720px) {
  .info-body .g2, .info-body[data-page="dash:owner"] .g2 { grid-template-columns: minmax(0, 1fr); }
}

/* v0.87 購入: the overlay over the whole screen, the cart button on the store screen */
.modal-bg.buy-bg { padding: 2vh 2vw; }
.modal.buy-modal { width: 96vw; height: 96vh; max-width: none; max-height: none; display: flex; flex-direction: column; padding: 14px 18px; }
.buy-head { display: flex; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); margin-bottom: 10px; }
.buy-head h2 { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.buy-head h2 .ico { width: 1.1em; height: 1.1em; }
.buy-head .buy-cash { margin-left: auto; font-family: var(--f-num); font-size: 1.15rem; }
.buy-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.buy-body > .panel, .buy-body > .innertabs { margin-bottom: 10px; }
.icon-btn.buy-btn { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; background: var(--accent); color: #fff; border-color: var(--accent-2); }
.icon-btn.buy-btn .ico { width: 1.05em; height: 1.05em; }
.ch-pickrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.ch-sel { display: grid; grid-template-columns: 9em 10em minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px; border: 2px solid var(--accent); border-radius: 6px; background: var(--panel); min-height: 3.2em; }
.ch-sel.none { border-style: dashed; border-color: var(--line-2); color: var(--muted); grid-template-columns: 1fr; }
.ch-pickrow .btn .ico { width: 1.1em; height: 1.1em; vertical-align: -.15em; margin-right: 4px; }
.ch-buy { margin-top: 12px; }
body:has(.edit-msg) #storeView canvas { cursor: pointer; }
.buy-body > .panel { flex: 1; }
.buy-modal .chairs-panel .eq-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.buy-modal .chairs-panel .eq-card { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 10px; }
.buy-modal .chairs-panel .eq-card img { width: 120px; height: 120px; object-fit: contain; }
.buy-modal .chairs-panel .eq-name { display: flex; flex-direction: column; gap: 4px; font-size: 1.05rem; font-weight: 700; }
.buy-modal .ch-buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.buy-modal .ch-buy .btn { white-space: nowrap; min-height: 3em; }
.buy-modal .ch-pickrow > .btn { min-width: 16em; min-height: 3.6em; }
@media (max-height: 820px) {
  .buy-modal .chairs-panel .eq-card img { width: 84px; height: 84px; }
  .buy-modal .chairs-panel .eq-card { padding: 8px; gap: 4px; }
  .buy-modal .ch-pickrow { margin-bottom: 6px; }
}
/* ---- v0.89: the wooden UI kit (docs/ref/ui-refs/wood-ui-kit.jpg, parts cut by tools/cut-ui.ps1 into img/ui/wood/).
   Frames and plates are cut into nine (border-image), so every panel / button keeps its own size and only its edges are
   wood: page panels in the big frame with iron corners, the ones that follow and the cards in the thin frame, big
   figures and the buy screen's cards on cork, buttons on wooden plates (green to go ahead, red to let go), gauges in a
   wooden trough. Icons are the kit's wooden pictures, where it has one ---- */
:root { --w-big: url(../img/ui/wood/frame_big.png); --w-thin: url(../img/ui/wood/frame_thin.png); --w-cork: url(../img/ui/wood/cork_h.png);
  --w-corkv: url(../img/ui/wood/cork_v.png); --w-plate: url(../img/ui/wood/plate.png); --w-plate-g: url(../img/ui/wood/plate_green.png);
  --w-plate-r: url(../img/ui/wood/plate_red.png); --w-trough: url(../img/ui/wood/trough.png); }
/* panels */
.panel, .card, .info .info-body .panel { border: 16px solid transparent; border-image: var(--w-big) 46 / 16px stretch; background: var(--paper) padding-box;
  box-shadow: none; padding: 6px 10px; border-radius: 18px; }
.info-body > .panel + .panel, .info-body .g-stack > .panel + .panel,
.info-body .panel + .panel:not(.g2 > *, .g3 > *, .cards > *, .g-side > *, .g-side-l > *), .card, .g2 > .panel, .g3 > .panel, .cards > .panel {
  border-width: 10px; border-image: var(--w-thin) 30 / 10px stretch; background: #fbf3e3 padding-box; box-shadow: none; padding: 8px 12px; border-radius: 12px; }
.card.sel { border-image: var(--w-thin) 30 / 10px stretch; box-shadow: 0 0 0 3px var(--accent); background: #f3faf5 padding-box; }
/* the ribbon heading still runs in from the frame's edge */
.panel > h3, .card > h3, .info-body .panel > h3, .info .info-body .panel > h3 { margin-left: -24px; }
.modal { border: 18px solid transparent; border-image: var(--w-big) 46 / 18px stretch; background: var(--paper) padding-box; box-shadow: 0 24px 60px rgba(40,25,10,.45); border-radius: 22px; }
.hud-id { border: 12px solid transparent; border-image: var(--w-big) 46 / 12px stretch; background: rgba(255,250,240,.94) padding-box; border-radius: 14px; padding: 4px 10px 5px; }
/* big figures and the buy screen's cards: cork boards */
.bignum, .info .info-body .bignum { border: 7px solid transparent; border-image: var(--w-cork) 22 fill / 7px stretch; background: none; border-radius: 6px; }
.bignum.main { border-image: var(--w-cork) 22 fill / 7px stretch; background: none; box-shadow: inset 0 0 0 2px rgba(47,122,90,.55); }
.bignum .bn-ico, .bignum.main .bn-ico { background: none; }
.eq-card { border: 7px solid transparent; border-image: var(--w-corkv) 22 fill / 7px stretch; background: none; }
.eq-card:hover { border-color: transparent; filter: brightness(1.04); }
.eq-card.cur { border-color: transparent; background: none; box-shadow: 0 0 0 3px var(--accent); }
/* a staff member's picture in a thin wooden frame */
img.bust, .person img.bust { border: 6px solid transparent; border-image: var(--w-thin) 30 / 6px stretch; border-radius: 6px; box-sizing: border-box; background-clip: padding-box; }
/* buttons: wooden plates */
.btn, .info .info-body .btn { border: 0 solid transparent; border-width: 7px 11px; border-image: var(--w-plate) 28 40 fill / 7px 11px stretch; background: none;
  box-shadow: none; border-radius: 10px; padding: .2em .7em; color: #4a3218; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.btn:hover:not(:disabled), .info .info-body .btn:hover:not(:disabled) { background: none; filter: brightness(1.07); }
.btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 7px; }
.btn.primary, .info .info-body .btn.primary { border-image: var(--w-plate-g) 28 40 fill / 7px 11px stretch; background: none; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.45); box-shadow: none; }
.btn.primary:hover:not(:disabled), .info .info-body .btn.primary:hover:not(:disabled) { background: none; }
.btn.danger, .info .info-body .btn.danger { border-image: var(--w-plate-r) 28 40 fill / 7px 11px stretch; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.45); }
.btn.gold, .info .info-body .btn.gold { border-image: var(--w-plate) 28 40 fill / 7px 11px stretch; background: none; box-shadow: none; filter: sepia(.35) saturate(2.2) hue-rotate(-8deg); color: #3a2405; }
.btn.cur, .info .info-body .btn.cur { border-image: var(--w-plate-g) 28 40 fill / 7px 11px stretch; background: none; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.45); }
.btn.sm, .info .info-body .btn.sm { border-width: 5px 9px; border-image-width: 5px 9px; padding: .12em .5em; border-radius: 8px; }
.btn.sm:active:not(:disabled) { border-bottom-width: 5px; }
.btn.lg { border-width: 10px 16px; border-image-width: 10px 16px; padding: .4em 1.3em; }
.btn.lg:active:not(:disabled) { border-bottom-width: 10px; }
/* gauges: a wooden trough, the fill a rounded bar inside it */
.bar, .task-speed .ts-bar, .pool .pl-bar { height: 14px; border: 3px solid transparent; border-width: 3px 5px; border-image: var(--w-trough) 30 43 fill / 7px 10px stretch;
  background: none; border-radius: 999px; box-sizing: border-box; overflow: hidden; }
.bar > span, .task-speed .ts-bar i, .pool .pl-bar .u { border-radius: 999px; background: linear-gradient(#d9ecd3, #9cc59a 55%, #7fae80); }
.bar.warn > span, .task-speed.slow .ts-bar i { background: linear-gradient(#ffe2b8, #f0a560 55%, #d98a45); }
.bar.neg > span { background: linear-gradient(#ffd0c4, #e07b62 55%, #c4604a); }
.bar.good > span { background: linear-gradient(#e2f1c8, #a9cf7c 55%, #8fbb60); }
/* icons: the kit's wooden pictures, no round badge behind them */
.ico.wood { object-fit: contain; vertical-align: -.25em; }
.h-ico:has(> .wood), .bignum .bn-ico:has(> .wood) { background: none; box-shadow: none; }
.panel > h3 .h-ico:has(> .wood), .card > h3 .h-ico:has(> .wood) { width: 34px; height: 34px; margin: -6px 0; background: none; box-shadow: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.h-ico > .ico.wood, .panel > h3 .h-ico > .ico.wood { width: 100%; height: 100%; }
.bignum .bn-ico > .ico.wood { width: 100%; height: 100%; }
.tabs button .ico.wood { width: 30px; height: 30px; margin: -3px 0 -1px; opacity: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.tabs button:not(.cur) .ico.wood { filter: grayscale(.35) opacity(.85); }
/* inside a dialog (already in the big frame) panels take the thin one */
.modal .panel.panel, .modal .info-body .panel.panel { border-width: 10px; border-image: var(--w-thin) 30 / 10px stretch; background: #fbf3e3 padding-box; padding: 8px 12px; border-radius: 12px; }
/* the staff seats: a wooden meeple on a cork square when taken, a faded one when free */
.staff-slots .slot { border: 4px solid transparent; border-image: var(--w-cork) 22 fill / 4px stretch; background: none; }
.staff-slots .slot.on { border: 4px solid transparent; border-image: var(--w-cork) 22 fill / 4px stretch; background: none; box-shadow: inset 0 0 0 2px var(--green-deep); }
.staff-slots .slot .ico.wood { width: 80%; height: 80%; }
.staff-slots .slot:not(.on) .ico.wood { filter: grayscale(1) opacity(.3); }
.bignum .bn-ico > .ico.wood { width: 100% !important; height: 100% !important; }
.staff-slots .slot:not(.on) { opacity: .5; }

/* v0.90: Airi's lines read like a game's message window: heavy gothic set tight (proportional kana), dark navy on a
   frosted pale-blue panel, key words in blue, short line spacing */
:root { --msg-ink: #1d2742; --msg-key: #2a64d0; }
.airi-say, .airi-tut-say, .guide-say { color: var(--msg-ink); font-weight: 700; font-feature-settings: "palt"; letter-spacing: 0; line-height: 1.45; }
.airi-say b, .airi-tut-say p b, .guide-say b { color: var(--msg-key); background: none; font-weight: 900; }
.airi-tut-say { font-size: 1.36rem; background: linear-gradient(180deg, rgba(252,253,255,.97), rgba(228,236,248,.97)); border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(40,60,100,.25), 0 10px 24px rgba(30,40,60,.28); border-radius: var(--r); }
.airi-tut-say::before { border-right-color: #fff; }
.airi-tut-head b { color: var(--msg-ink); }
/* during play: the window centred across the bottom of the store view, Airi standing in its left end */
.stage .airi-bar { left: 50%; right: auto; transform: translateX(-50%); width: min(900px, calc(100% - 24px)); min-height: 124px; padding: 16px 44px 14px 158px; align-items: center;
  background: linear-gradient(180deg, rgba(252,253,255,.95), rgba(226,234,247,.95)); backdrop-filter: blur(6px);
  border: 2px solid #fff; border-radius: var(--r); box-shadow: 0 0 0 1px rgba(40,60,100,.25), 0 10px 26px rgba(30,40,60,.3); }
.stage .airi-face { position: absolute; left: 14px; bottom: 0; width: 132px; height: 160px; object-fit: cover; object-position: 50% 0; border: 0; border-radius: 0; background: none; filter: drop-shadow(0 4px 6px rgba(30,40,60,.25)); }
.stage .airi-say { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; font-size: 1.4rem; border-radius: 0; }
.stage .airi-say::before { display: none; }
.stage .airi-say p { min-height: 2.9em; }
.airi-tag { display: none; }
.stage .airi-tag { display: block; position: absolute; left: 150px; top: -13px; padding: 1px 14px; background: linear-gradient(#3f7ee6, #2457b8); color: #fff; font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; border: 1px solid #fff; border-radius: var(--r); box-shadow: 0 2px 4px rgba(20,40,90,.3); transform: skewX(-12deg); }
.stage .airi-say .airi-nav { position: absolute; right: 12px; bottom: 6px; margin: 0; gap: 6px; font-family: var(--f-num); font-size: .78rem; color: #7a86a3; }
.airi-next { border: 0; background: none; padding: 0 2px; cursor: pointer; font: inherit; font-size: 1.15rem; line-height: 1; color: var(--msg-key); }
.stage .airi-next { animation: msgNext 1s ease-in-out infinite alternate; }
@keyframes msgNext { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
.stage .airi-x { right: 6px; top: 6px; }
.stage .airi-big { position: absolute; right: 40px; top: 6px; margin: 0; }
@media (max-width: 900px) {
  .stage .airi-bar { width: calc(100% - 12px); min-height: 92px; padding: 12px 34px 12px 96px; }
  .stage .airi-face { left: 6px; width: 86px; height: 112px; }
  .stage .airi-tag { left: 90px; }
  .stage .airi-say { font-size: 1.08rem; }
  .stage .airi-say p { min-height: 0; }
}
/* money: amounts always left-aligned in their column, figures of one width so the digits line up row to row */
.num, .pay-bill .num, .tray-sum, .deco-price, .deco-row.pick > .deco-price, .deco-row .deco-sub > .deco-price { text-align: left; font-variant-numeric: tabular-nums; }
.tbl td.num { font-variant-numeric: tabular-nums; }
/* a money table: kind, when it is paid, the amount, each column one width */
.money-tbl { table-layout: fixed; }
.money-tbl th:nth-child(1) { width: 34%; }
.money-tbl th:nth-child(2) { width: 30%; }
.money-tbl td:nth-child(2) { color: var(--muted); font-size: .9em; }
.money-tbl tr.sum td:first-child { color: var(--green-deep); }
.money-tbl tr.sum td.num { font-size: 1.12em; font-weight: 600; }
/* the equipment's おまかせ: inside the tab's frame under its heading, a bigger button */
.panel > .omakase .btn.sm, .info .info-body .panel > .omakase .btn.sm { font-size: 1.05rem; padding: .3em 1.4em; border-width: 7px 11px; border-image-width: 7px 11px; min-height: 44px; }

/* v0.91: the buy screen stays steady through a redraw (it only fades in when it opens) */
.modal-bg.buy-bg.still, .modal-bg.buy-bg.still .modal { animation: none; }
/* the cart button: big and on its own at the bottom right of the store view, above the clock's buttons */
.stage .buy-btn { position: absolute; right: 14px; bottom: calc(var(--hb-h, 54px) + 14px + var(--airi-h, 0px)); z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 128px; height: 104px; padding: 0; font-size: 1.25rem; font-weight: 900; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5);
  border: 10px solid transparent; border-image: var(--w-plate-g) 28 40 fill / 10px 14px stretch; background: none; border-radius: 12px; box-shadow: 0 8px 18px rgba(30,40,20,.35); cursor: pointer; }
.stage .buy-btn .ico { width: 48px; height: 48px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.stage .buy-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
/* when Airi is hidden her button goes to the bottom left (the cart button keeps the right) */
.stage .airi-open { right: auto; left: 12px; }
@media (max-width: 900px) {
  .stage .buy-btn { width: 92px; height: 78px; font-size: 1rem; }
  .stage .buy-btn .ico { width: 34px; height: 34px; }
}
/* games: for play and for sale, two cards side by side, each in its own colour */
.gb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 10px; }
.gb-side { padding: 12px 14px; border-radius: 10px; border: 3px solid; }
.gb-side.gb-play { border-color: #2f8a5b; background: #eef7f0; }
.gb-side.gb-sell { border-color: #c9822e; background: #fdf3e4; }
.gb-side h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.3rem; background: none; padding: 0; border: 0; box-shadow: none; }
.gb-side.gb-play h4 { color: #1f6b44; }
.gb-side.gb-sell h4 { color: #9a5a12; }
.gb-side h4 .ico { width: 36px; height: 36px; }
.gb-sub { margin: 2px 0 8px; color: var(--muted); }
.gb-cap { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 4px 6px; margin-bottom: 8px; font-family: var(--f-num); }
.gb-cap b { font-size: 1.6rem; }
.gb-cap .bar { align-self: center; margin-left: 8px; }
.gb-rows { display: flex; flex-direction: column; gap: 6px; }
.gb-row { display: grid; grid-template-columns: minmax(0, 1fr) 5em auto; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(255,255,255,.7); border-radius: 6px; }
.gb-box { display: flex; flex-direction: column; line-height: 1.3; }
.gb-n { font-family: var(--f-num); font-size: 1.2rem; }
.gb-btns { display: flex; gap: 6px; }
.gb-btns .btn.sm { width: 4.6em; min-width: 0; }
.gb-side .btn-row { margin-top: 10px; align-items: center; gap: 10px; }
.gb-shelf { margin: 0 0 8px; }
/* equipment: the buttons down the left, the picture and the details on the right */
.buy-modal .eq-pick { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.buy-modal .eq-pick .eq-cards { display: flex; flex-direction: column; gap: 8px; }
.buy-modal .eq-pick .eq-card { min-height: 72px; }
.buy-modal .eq-pick .eq-card img { width: 64px; height: 56px; }
.buy-modal .eq-pick .eq-card .eq-name { font-size: 1.02rem; font-weight: 700; }
.buy-modal .eq-detail { grid-template-columns: minmax(200px, 40%) minmax(0, 1fr); padding: 16px 18px; }
.buy-modal .eq-detail img { min-height: 260px; max-height: 340px; }
.buy-modal .eq-detail .btn-row .btn { min-width: 10em; min-height: 2.8em; font-size: 1.05rem; }
.buy-modal .panel > .btn-row .btn { white-space: nowrap; }
/* a narrow store view: Airi's window and the cart button smaller, so the store stays in sight */
@container stage (max-width: 760px) {
  .stage .airi-bar { min-height: 96px; padding: 12px 36px 10px 112px; }
  .stage .airi-face { left: 8px; width: 98px; height: 120px; }
  .stage .airi-tag { left: 106px; }
  .stage .airi-say { font-size: 1.1rem; }
  .stage .airi-say p { min-height: 0; }
  .stage .buy-btn { width: 100px; height: 84px; font-size: 1.05rem; }
  .stage .buy-btn .ico { width: 36px; height: 36px; }
}
.buy-modal .eq-pick { align-items: start; }
.buy-modal .eq-pick .eq-cards .eq-card { height: auto; }
.buy-modal .eq-detail { overflow: hidden; }
.buy-modal .eq-detail img { min-height: 0; height: min(320px, 34vh); }
@media (max-width: 1500px) { .buy-modal .eq-pick { grid-template-columns: 260px minmax(0, 1fr); } }
/* the publicity channels: their wooden picture beside the name */
td.pr-name { display: flex; align-items: center; gap: 10px; }
.pr-ico { flex: none; width: 66px; height: 66px; margin: -6px 0; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
/* the publicity level: the monthly fee of the level chosen, under its pull-down */
td.pr-lv select { display: block; }
.pr-fee { display: block; margin-top: 4px; font-family: var(--f-num); font-size: .95rem; color: var(--ink-2); }
/* v0.93: the buy button is the wooden cart itself, its name on a green plate across its foot */
.stage .buy-btn { width: 132px; height: 140px; border: 0; border-image: none; background: none; box-shadow: none; border-radius: 0; justify-content: flex-end; gap: 0; }
.stage .buy-btn img { width: 118px; height: auto; margin-bottom: -18px; filter: drop-shadow(0 6px 8px rgba(40,30,15,.35)); transition: transform .15s ease; }
.stage .buy-btn span { position: relative; padding: 2px 18px; border: 6px solid transparent; border-image: var(--w-plate-g) 28 40 fill / 6px 10px stretch; font-size: 1.1rem; }
.stage .buy-btn:hover { transform: none; filter: none; }
.stage .buy-btn:hover img { transform: translateY(-4px) rotate(-3deg); }
@container stage (max-width: 760px) {
  .stage .buy-btn { width: 100px; height: 108px; }
  .stage .buy-btn img { width: 88px; margin-bottom: -14px; }
  .stage .buy-btn span { font-size: .95rem; padding: 0 12px; }
}

/* v0.93 menu pictures beside drink/food names */
td.menu-name { white-space: nowrap; }
.menu-ico { display: inline-block; width: 40px; height: 40px; margin: -8px 8px -8px 0; vertical-align: middle; object-fit: contain; }

/* v0.94 equipment wear: bar only (yellow, then red), the worn list points at the piece, a pop-up on the store */
.area-bar span.warn { background: #e0b43a; }
.wear-bar { min-width: 140px; margin: 0; }
.wear-tbl .wr-row { cursor: pointer; }
.wear-tbl .wr-row:hover td { background: var(--panel-3); }
.stage .wear-pop { position: absolute; z-index: 30; transform: translate(-50%, calc(-100% - 14px)); min-width: 180px; padding: 10px 30px 10px 12px;
  background: #fffaf0; border: 2px solid #8a6a43; border-radius: 2px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.stage .wear-pop b { display: block; margin-bottom: 6px; font-size: .95rem; }
.stage .wear-pop-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; background: none; font-size: 1rem; cursor: pointer; color: #7a6f62; }
.wear-panel > .wear-tbl { flex: none; }

/* v0.94.7 the kitchen / fridge picks: every button the same height, two lines tall, so long names (グレープフルーツジュース) stay inside */
/* two to a row: the longest names (グレープフルーツジュース, タピオカミルクティー) fit on one or two lines */
.modal.pick .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
.modal.pick .btn.pick-item { height: var(--btn-h-lg); min-height: 0; padding: 0 .7em; font-size: var(--btn-fs-sm, .95rem); line-height: 1.2; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.modal.pick .btn.pick-item .pi { flex: none; }
.modal.pick .btn.pick-item { position: relative; }
.modal.pick .btn.pick-item small { position: absolute; top: -9px; right: 8px; margin: 0; padding: 2px 5px; font-size: .72em; line-height: 1; background: #fff; border: 1px solid currentColor; border-radius: 2px; }
/* v1.8.0 order tickets (own.js ownTickets): one row a ticket, all one height (a finger's worth on the phone), the number
   in the same round mark as on the table's bubble and the guest list */
.tk-no { display: inline-block; flex: none; min-width: 1.3em; margin-right: 4px; font-weight: 700; color: #c2456b; font-variant-numeric: tabular-nums; }
.modal.pick .tk-list { display: flex; flex-direction: column; gap: 8px; }
.modal.pick .tk-list:has(.rcpt) { padding: 10px; background: #e9dfcc; border-radius: 2px; }
.modal.pick .btn.tk-row { display: flex; align-items: center; gap: 8px; width: 100%; height: var(--btn-h-lg); min-height: 0; padding: 0 .8em; text-align: left; font-size: var(--btn-fs-sm, .95rem); line-height: 1.2; }
.modal.pick .btn.tk-row .tk-no { font-size: 1.5em; margin: 0; }
.modal.pick .btn.tk-row .pi { flex: none; font-size: 1.4em; }
.modal.pick .btn.tk-row .pi .own-ico { width: 32px; height: 32px; }
.modal.pick .btn.tk-row .tk-tx { display: flex; flex: 1; align-items: baseline; gap: 8px; min-width: 0; }
.modal.pick .btn.tk-row .tk-tx b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.pick .btn.tk-row .tk-tx small { flex: none; color: var(--muted); }
.modal.pick .btn.tk-row[disabled] { opacity: .55; }
.modal.pick .btn.tk-row.busy .tk-tx small { color: #2f6b4f; font-weight: 700; }
.modal.pick .btn.tk-row.short { opacity: .75; border-style: dashed; }
.modal.pick .btn.tk-row.short .tk-tx small { color: var(--neg); font-weight: 700; }
.modal.pick .pick-held .tk-no { font-size: 1.2em; }
/* v1.10.2 drink and food tickets: a receipt slip (paper, torn top and bottom edges, a dotted leader). Same height as
   every ticket row; the torn edges are a mask, so the shadow is a drop-shadow on the list item */
.modal.pick .btn.tk-row.rcpt { --tear: 9px; position: relative; border: 0; border-radius: 0; padding: 0 1em; background: #fff;
  background-image: repeating-linear-gradient(transparent 0 11px, rgba(120, 100, 70, .05) 11px 12px);
  color: #3a332a; font-family: 'BIZ UDGothic', 'Osaka-Mono', 'MS Gothic', ui-monospace, monospace; letter-spacing: .02em;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--tear) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--tear) 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--tear) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--tear) 51% repeat-x;
  filter: drop-shadow(0 1px 0 rgba(60, 45, 25, .25)) drop-shadow(0 2px 3px rgba(60, 45, 25, .3)); box-shadow: none; transform: none; }
.modal.pick .btn.tk-row.rcpt:hover:not([disabled]), .modal.pick .btn.tk-row.rcpt:focus-visible { background-color: #fff6dc; filter: drop-shadow(0 2px 3px rgba(60, 45, 25, .35)); }
.modal.pick .btn.tk-row.rcpt .tk-no { display: inline-flex; align-items: baseline; gap: 1px; padding-right: 10px; border-right: 1px dashed #c9bda6; color: #c2456b; }
.modal.pick .btn.tk-row.rcpt .tk-no i { font-style: normal; font-size: .5em; color: #8a7d68; }
.modal.pick .btn.tk-row.rcpt .tk-tx b { flex: none; max-width: 60%; font-weight: 700; }
.modal.pick .btn.tk-row.rcpt .tk-dots { flex: 1; min-width: 12px; align-self: center; height: 0; border-bottom: 2px dotted #bfb29a; transform: translateY(.3em); }
.modal.pick .btn.tk-row.rcpt .tk-tx small { color: #6f6352; }
.modal.pick .btn.tk-row.rcpt.short { border: 0; opacity: .8; background-color: #f6efe4; }
.modal.pick .btn.tk-row.rcpt.short .tk-tx small { color: var(--neg); font-weight: 700; }
.modal.pick .btn.tk-row.rcpt.short .tk-tx b { text-decoration: line-through; text-decoration-color: rgba(176, 65, 62, .6); }
.guest-row.mine { border-color: #2f8a5f; }
/* v0.94.7 the clock bottom-left keeps one width as the time runs (digits all one width too) */
.run-clock { width: 7.4em; min-width: 7.4em; flex: none; font-variant-numeric: tabular-nums; }
/* v0.94.7 the mission panel's small › and − buttons: the mark sits in the middle, not at the bottom edge */
.mp-go, .mp-fold { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0; overflow: hidden; }

/* v0.95.0 the condition pop-up's 下取り: one button under the bar, then the price asked once more */
.stage .wear-pop-btns { display: flex; gap: 6px; margin-top: 8px; }
.stage .wear-pop-btns .btn { flex: 1 1 0; min-width: 0; }
.stage .wear-pop-ask { margin: 8px 0 0; font-size: .9rem; }
.stage .wear-pop:has(.wear-pop-btns) { min-width: 290px; }
.stage .wear-pop-btns .btn { white-space: nowrap; padding: 0 .5em; }

/* v0.97.0 a guest's request a staff member has taken on: locked to them */
.guest-row.busy { opacity: .55; cursor: default; }

/* v0.98.0 an event with two people in its picture (うぃんた～ず), and the TV event's quiz */
.modal.story.wide { grid-template-columns: 300px minmax(0, 1fr); max-width: 900px; }
.modal.story.quiz { align-items: start; }
.modal.story.quiz .story-face { margin-top: 36px; }
.quiz-count { margin: 0 0 6px; font-weight: 700; font-size: 1.05rem; color: var(--accent-2, #1f6b4a); display: flex; align-items: baseline; gap: 4px; }
.quiz-count span { font-size: .85rem; color: var(--muted, #7a7065); }
.quiz-count .quiz-score { margin-left: auto; font-size: .95rem; color: inherit; }
.quiz-q { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.6; font-weight: 700; }
.quiz-chs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.modal.quiz .btn.quiz-ch { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 44px; height: auto; padding: 6px 12px; text-align: left; white-space: normal; line-height: 1.35; }
.modal.quiz .btn.quiz-ch b { flex: none; width: 1.6em; height: 1.6em; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .08); }
.modal.quiz .btn.quiz-ch:disabled { opacity: .55; }
.modal.quiz .btn.quiz-ch.right { opacity: 1; outline: 3px solid #2f8a5a; }
.modal.quiz .btn.quiz-ch.wrong { opacity: 1; outline: 3px solid #b0413e; }
.quiz-ex { margin: 12px 0 0; padding: 10px 12px; border-radius: 2px; background: #f2f7f1; border-left: 4px solid #2f8a5a; }
.quiz-ex.ng { background: #fbf0ef; border-left-color: #b0413e; }
.quiz-ex p { margin: 6px 0 0; font-size: .92rem; line-height: 1.6; }
.quiz-result { margin: 8px 0; font-size: 1.5rem; }
.quiz-say { margin: 0 0 8px; }
@media (max-width: 640px) { .modal.story.wide { grid-template-columns: 1fr; } .modal.story.wide .story-face { width: 240px; margin: 0 auto; } }

/* v0.99.0 debug event viewer (index.html?debug): the button in the corner and its list */
.dbg-ev-btn { position: fixed; left: calc(50% + 46px); top: 0; z-index: 9998; padding: 1px 10px; font: 700 11px/1.6 sans-serif; color: #fff; background: #8e44ad;
  border: 0; border-radius: 0 0 2px 2px; cursor: pointer; opacity: .85; }
.dbg-ev-btn:hover { opacity: 1; }
.modal.dbg-ev { max-width: 1000px; }
.modal.dbg-ev .btn-row { justify-content: center; }
.modal.dbg-ev .btn-row .btn { flex: 0 0 auto; width: 220px; }
.modal.dbg-ev .dbg-list { max-height: 62vh; overflow-y: auto; padding-right: 6px; }
.modal.dbg-ev h3 { margin: 14px 0 6px; }
.modal.dbg-ev .dbg-tbl td { vertical-align: top; }
.modal.dbg-ev .dbg-tbl td:first-child { width: 55%; }
.modal.dbg-ev .dbg-tbl td:last-child { width: 1%; white-space: nowrap; }
.dbg-now { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.dbg-c.ok { color: #2e7d32; }
.dbg-c.ng { color: #c0392b; }

/* v0.99.1 the floor's use as a small meter (buy screen head, piece detail, edit bar) */
.floor-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; color: var(--ink-2); }
.floor-mini .fm-label { font-weight: 700; }
.floor-mini .fm-bar { position: relative; flex: 0 0 90px; height: 10px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 999px; }
.floor-mini .fm-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.floor-mini .fm-bar > i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink-2); }
.floor-mini b { font-size: 14px; font-variant-numeric: tabular-nums; }
.floor-mini b small { font-size: 11px; }
.floor-mini.tight .fm-bar > span { background: var(--warn); }
.floor-mini.over .fm-bar > span { background: var(--neg); }
.floor-mini.tight .fm-word, .floor-mini.over .fm-word { color: var(--neg); font-weight: 700; }
.buy-head .floor-mini { margin-right: 6px; font-size: 14px; }
.buy-head .floor-mini .fm-bar { flex-basis: 120px; height: 12px; }
.buy-head .floor-mini b { font-size: 17px; }

/* v1.0.0 the second store: the switch under the date, the note on a store without the owner, the property search */
.store-sw { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.store-sw .seg { display: inline-flex; gap: 0; }
.store-sw .btn.sm { min-width: 0; padding: 2px 12px; }
.store-sw .btn.cur { background: var(--accent); color: #fff; }
.store-sw .btn small { margin-left: 4px; font-size: 10px; opacity: .8; }
.store-sw .sw-next { font-size: 11px; color: var(--ink-2); }
.info-lock { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px; border: 2px solid var(--warn); border-radius: 2px; background: rgba(230, 160, 40, .12); font-size: 13px; }
.info-lock b { color: var(--neg); }
.info-lock span { flex: 1 1 260px; }
.modal.branch-pick { max-width: 1240px; width: 96vw; }
.modal.branch-pick .branch-body { max-height: 66vh; overflow-y: auto; }
.modal.branch-pick .prep-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.story-store { margin-left: 10px; padding: 1px 8px; font-size: 12px; color: #fff; background: var(--accent); border-radius: 2px; vertical-align: middle; }
.branch-pr { margin: 0 0 8px; color: var(--ink-2); }

/* v1.1.0 store list overlay */
.modal.store-list { width: min(1100px, 96vw); }
.store-list .sl-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 10px; }
.store-list .sl-card { border: 1px solid var(--line-2); border-radius: 2px; padding: 10px 14px 12px; background: var(--panel-2, transparent); display: flex; flex-direction: column; }
.store-list .sl-card.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.store-list .sl-card h3 { margin: 0 0 6px; }
.store-list .sl-card h3 small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.store-list .sl-card h3 .sl-tag { color: var(--neg); }
.store-list .sl-card h4 { margin: 10px 0 2px; }
.store-list .tbl th { text-align: left; width: 48%; }
.store-list .tbl td.num { text-align: left; }
.store-list .tbl td.neg { color: var(--neg); }
.store-list .sl-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: flex-end; }
.store-list .sl-note { font-size: .82rem; margin: 10px 2px 0; }

/* v1.2.0 events as a back-and-forth: Airi left, the character right, speech bubbles between */
.modal.story.talk, .modal.story.talk.wide { display: grid; grid-template-columns: 230px minmax(0, 1fr) 230px; gap: 18px; align-items: end; max-width: min(1240px, 96vw); width: 100%; }
.modal.story.talk.wide { grid-template-columns: 230px minmax(0, 1fr) 300px; }
.talk-side { display: flex; flex-direction: column; align-items: center; gap: 4px; align-self: end; }
.talk-side .story-face { width: 100%; height: auto; transition: filter .25s ease, transform .25s ease; }
.talk-name { font-size: .86rem; font-weight: 700; color: var(--ink-2); padding: 1px 10px; background: var(--panel-2); border-radius: 2px; }
.modal.story.talk[data-spk="a"] .talk-side.r .story-face, .modal.story.talk[data-spk="e"] .talk-side.l .story-face { filter: brightness(.72) saturate(.8); }
.modal.story.talk[data-spk="a"] .talk-side.l .story-face, .modal.story.talk[data-spk="e"] .talk-side.r .story-face { transform: translateY(-4px); }
.modal.story.talk .story-body { align-self: stretch; display: flex; flex-direction: column; }
.modal.story.talk .story-body h2 { margin-bottom: 8px; }
.talk-log { display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: flex-end; }
.bub { position: relative; max-width: 86%; padding: 7px 14px; border-radius: 2px; border: 2px solid var(--line-2); background: #fff; line-height: 1.7; visibility: hidden; }
.bub.on { visibility: visible; animation: bubIn .22s ease; }
.bub .story-line { margin: 0; min-height: 0; }
.bub.a { align-self: flex-start; background: #eef6ff; border-color: #9fc2e6; }
.bub.e { align-self: flex-end; background: #fffaf0; border-color: #d9b97a; }
.bub.a::before, .bub.e::before { content: ''; position: absolute; top: 12px; width: 0; height: 0; border: 8px solid transparent; }
.bub.a::before { left: -18px; border-right: 10px solid #9fc2e6; }
.bub.e::before { right: -18px; border-left: 10px solid #d9b97a; }
.bub.n { align-self: center; max-width: 92%; border: 0; background: none; color: var(--muted); font-size: .94rem; padding: 2px 6px; }
@keyframes bubIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .modal.story.talk, .modal.story.talk.wide { grid-template-columns: 1fr 1fr; }
  .modal.story.talk .story-body { grid-column: 1 / -1; grid-row: 2; }
  .talk-side .story-face { width: 120px; }
}
.modal.story.talk .btn-row .btn { white-space: nowrap; }
.bub { max-width: 94%; }

/* v1.2.1 one line at a time; every event (and the quiz) in one frame of one size */
.modal.story.talk, .modal.story.talk.wide { height: min(600px, calc(100dvh - 32px)); align-items: stretch; }
.modal.story.talk .talk-side { align-self: end; }
.modal.story.talk .story-body { overflow-y: auto; min-height: 0; }
.talk-log { display: grid; align-content: center; flex: 1; }
.talk-log .bub { grid-area: 1 / 1; display: none; max-width: 100%; font-size: 1.12rem; padding: 12px 18px; }
.talk-log .bub.on { display: block; visibility: visible; }
.talk-log .bub.a { justify-self: start; }
.talk-log .bub.e { justify-self: end; }
.talk-log .bub.n { justify-self: center; }
.bub.next::after { content: '▼'; position: absolute; right: 8px; bottom: 2px; font-size: .7rem; color: var(--accent); animation: storyCaret .8s steps(1) infinite; }
.modal.story.talk:not(.typed) { cursor: pointer; }
.modal.story.talk.quiz .story-body { justify-content: flex-start; }
.modal.story.talk.quiz .story-face { margin-top: 0; }
.talk-log { justify-content: stretch; }
.modal.story.talk.quiz .quiz-chs { grid-template-columns: 1fr 1fr; }
.modal.story.talk.quiz .quiz-ex { margin-top: 10px; }
.modal.story.talk.quiz .btn-row { margin-top: 10px; }
.talk-log { padding: 0 16px; }

/* v1.3.0 store money overlay */
.modal.store-money { width: min(1100px, 96vw); max-width: min(1100px, 96vw); height: min(760px, calc(100dvh - 32px)); display: flex; flex-direction: column; }
.store-money .buy-head .sm-month { margin-left: auto; margin-right: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.store-money .sm-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.store-money .sm-pages .btn.cur { background: var(--accent); color: #fff; }
.store-money .sm-body { flex: 1; overflow-y: auto; min-height: 0; padding-right: 4px; }
.store-money .sm-tbl th { text-align: left; }
.store-money .sm-tbl td.num { text-align: left; }
.store-money .sm-tbl tr:first-child th { color: var(--muted); }
.store-money .sm-tbl td.neg { color: var(--neg); }
.store-money .sm-tbl tr.sum-in td { font-weight: 700; }
.store-money h4 { margin: 14px 0 4px; }
/* v1.3.1 speech bubbles: one size for every line (Airi's and the other's), text as large as Airi's message window */
.talk-log .bub, .talk-log .bub.a, .talk-log .bub.e, .talk-log .bub.n {
  width: 92%; max-width: 92%; min-height: calc(1.5rem * 1.55 * 3 + 32px); box-sizing: border-box; padding: 16px 24px;
  font-size: 1.5rem; font-weight: 700; color: var(--msg-ink); font-feature-settings: "palt"; letter-spacing: 0; line-height: 1.55;
  display: none; align-items: center;
}
.talk-log .bub.on { display: flex; }
.talk-log .bub .story-line { width: 100%; }
.talk-log .bub.n { justify-content: center; text-align: center; color: var(--muted); font-weight: 500; }
.bub.a::before, .bub.e::before { top: 50%; margin-top: -9px; }
.store-money .sm-pages { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.store-money .sm-pages .btn { width: 100%; min-width: 0; padding-left: 4px; padding-right: 4px; white-space: nowrap; }
.store-money .sm-tbl th, .store-money .sm-tbl td { padding: .35em .6em; line-height: 1.4; }
.store-money .sm-tbl th:first-child { width: 30%; }
.store-money .sl-note { font-size: .82rem; line-height: 1.5; }
@media (max-width: 760px) { .store-money .sm-pages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.talk-log .bub, .talk-log .bub.a, .talk-log .bub.e, .talk-log .bub.n { width: 100%; max-width: 100%; }

/* ---------- the clock and today's sales (v1.7.2) ----------
   A dark wooden plate with gold figures at the head of the live line over the store: the time (running on past closing
   while the last guests pay) and the day's sales, big enough to read at a glance. One fixed size in every state
   (before opening, open, after closing), so the store view never refits for it. */
.hud-clock { flex: none; display: flex; align-items: stretch; height: 64px; margin-top: 6px; padding: 0; border-radius: 2px; overflow: hidden;
  background: linear-gradient(160deg, #7a4f2b, #4f3118); border: 2px solid #c7a25a; box-shadow: 0 6px 16px -6px rgba(60,35,15,.55), inset 0 1px 0 rgba(255,255,255,.16); }
.hud-clock > div { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 10px; }
.hud-clock > div + div { border-left: 2px solid rgba(199,162,90,.55); }
.hud-clock img { width: 34px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.hud-clock > div > div { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.hud-clock b { font-family: var(--f-num); font-weight: 700; font-variant-numeric: tabular-nums; color: #ffd98a; text-shadow: 0 2px 0 rgba(0,0,0,.3); white-space: nowrap; letter-spacing: .02em; }
.hud-clock span { font-size: .76rem; font-weight: 700; color: #f3dfb8; letter-spacing: .1em; white-space: nowrap; }
.hc-time b { font-size: 2.3rem; }
.hc-time span { margin-top: 3px; }
/* wide enough for 翌0:10 and 閉店・お会計中, so the plate keeps its width through the day */
.hc-time > div { width: 6.6rem; }
.hc-sales b { font-size: 2.1rem; min-width: 7.2ch; text-align: right; }
.hc-sales span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.hc-sales em { font-style: normal; color: #f3dfb8; letter-spacing: .04em; }
.hc-sales em i { font-style: normal; font-family: var(--f-num); font-variant-numeric: tabular-nums; color: #ffd98a; }
/* after closing the time turns a warmer red-gold so the overtime reads at once */
.hud-clock.after .hc-time b { color: #ffb38a; }
.hud-clock.after .hc-time span { color: #ffd0b8; }
/* what the owner is doing (v1.7.3): a frame of the same wood right under the plate and exactly as wide (the column is
   as wide as the plate: min-content, the plate's figures do not wrap), two lines high, the text wrapping inside */
.hud-clockcol { flex: none; width: min-content; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.hud-clockcol > .hud-clock { margin-top: 0; }
.hud-clockcol > .hud-live { margin: 0; max-width: none; min-height: calc(2.8em + 16px); display: flex; align-items: center; padding: 6px 12px;
  font-size: .85rem; line-height: 1.4; font-weight: 700; color: #f3dfb8; border-radius: 2px;
  background: linear-gradient(160deg, #7a4f2b, #4f3118); border: 2px solid #c7a25a; box-shadow: 0 6px 16px -6px rgba(60,35,15,.55), inset 0 1px 0 rgba(255,255,255,.16); }
@container stage (max-width: 560px) {
  .hud-clock { height: 46px; }
  .hud-clock > div { gap: 6px; padding: 0 10px 0 8px; }
  .hud-clock span { letter-spacing: .04em; }
  /* a phone: the plate and its frame go to the very top, above the name (Airi and the clock's buttons cover the lower
     rows), leaving the top right corner to the cart, which stands there on a phone */
  .hud-clockcol { order: -1; width: calc(100% - 100px); gap: 3px; margin: 0 0 6px; }
  .hud-clockcol > .hud-live { font-size: .7rem; line-height: 1.3; padding: 4px 8px; min-height: calc(2.6em + 12px); }
  .hud-clock img { display: none; }
  .hc-time b { font-size: 1.6rem; }
  .hc-sales b { font-size: 1.45rem; min-width: 0; }
  .hud-clock span { font-size: .66rem; }
  .hc-time > div { width: 4.8rem; }
  .hc-sales { flex: 1; }
  .hc-sales > div { flex: 1; }
}

/* ---------- one column at the left of the store's top (v1.7.5) ----------
   The name card, the NEXT notice, the clock-and-sales plate and the owner's line stand in one column, all one width
   (--hud-w), top to bottom in that order; the save/sound buttons and the numbers stay at the right. The looks of each
   piece are unchanged. On a narrow store view the numbers wrap inside the right column (no longer spread over rows). */
.stage { --hud-w: 24rem; }
.hud-left { flex: none; width: var(--hud-w); max-width: 100%; display: flex; flex-direction: column; gap: 6px; }
.hud-left > .hud-id { flex: none; width: 100%; min-width: 0; }
.hud-left > .hud-next { margin: 0; max-width: none; }
.hud-left > .hud-clockcol { width: 100%; margin: 0; order: 0; }
.hud-left .hud-clock { width: 100%; }
.hud-left .hc-sales { flex: 1; justify-content: flex-end; }
@container stage (max-width: 1000px) {
  .hud-top > .hud-right { display: flex; flex: 1 1 0; min-width: 0; }
  .hud-right > .hud-tools { margin-left: 0; }
  .hud-right > .hud-nums { margin-top: 0; flex-wrap: wrap; justify-content: flex-end; }
}
@container stage (max-width: 560px) {
  .hud-left { width: 100%; }
  .hud-top > .hud-right { flex-basis: 100%; }
}

/* =====================================================================
   phone layout (v1.8.0): body.phone (ui.js isPhone/phoneSync). Not a squeezed PC screen: the store view alone is fixed
   at the top of the first view (sticky), the clock and today's sales in one strip just under it, and everything else in
   one column scrolling under them. Nothing is laid over the floor but its own bubbles and marks.
   body.phone-land: the phone held sideways, the store at the left (full height) and the column at the right.
   ===================================================================== */
body.phone { --ph-sv: clamp(220px, min(50svh, 86vw), 560px); --ph-strip: 54px; --ph-top: calc(var(--ph-sv) + var(--ph-strip)); }
body.phone .play, body.phone .play.wide, body.phone .play.folded { display: flex; flex-direction: column; gap: 0; padding: 0; height: 100vh; height: 100dvh;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* the store and its strip: one block, always in place at the top */
body.phone .ph-store { order: 0; position: sticky; top: 0; z-index: 20; flex: none; display: flex; flex-direction: column; overflow: hidden;
  border: 0; border-bottom: 2px solid var(--frame, #6b4a2a); border-radius: 0; box-shadow: 0 6px 14px -8px rgba(40,25,10,.55); }
body.phone .ph-store #storeView { position: relative; inset: auto; flex: none; height: var(--ph-sv); }
body.phone .ph-strip { position: relative; z-index: 1; flex: none; height: var(--ph-strip); box-sizing: border-box; padding: 4px 6px;
  background: var(--paper, #f6efe2); border-top: 1px solid rgba(107,74,42,.35); }
body.phone .ph-strip .hud-clockcol { order: 0; width: 100%; height: 100%; margin: 0; flex-direction: row; align-items: stretch; gap: 6px; }
body.phone .ph-strip .hud-clock { flex: none; height: 100%; margin: 0; }
body.phone .ph-strip .hud-clock img { display: none; }
body.phone .ph-strip .hud-clock > div { gap: 4px; padding: 0 8px; }
body.phone .ph-strip .hc-time > div { width: 4.6rem; }
body.phone .ph-strip .hc-time b { font-size: 1.55rem; }
body.phone .ph-strip .hc-sales b { font-size: 1.4rem; min-width: 0; }
body.phone .ph-strip .hud-clock span { font-size: .64rem; letter-spacing: .02em; }
body.phone .ph-strip .hud-clockcol > .hud-live { flex: 1; min-width: 0; height: 100%; min-height: 0; box-sizing: border-box; margin: 0; padding: 2px 8px;
  font-size: .7rem; line-height: 1.22; overflow: hidden; display: flex; align-items: center; }
/* the column under the store */
body.phone .ph-dock { order: 2; position: relative; flex: none; overflow: visible; display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px;
  border: 0; border-radius: 0; box-shadow: none; }
body.phone .ph-dock::before { display: none; }
body.phone .ph-dock .hud-bottom { position: static; inset: auto; order: 0; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line-2); border-radius: 2px;
  box-shadow: none; backdrop-filter: none; }
body.phone .ph-dock .hud-bottom .btn.go { order: 0; flex: 1 1 0; min-width: 0; min-height: 48px; font-size: 1.1rem; }
body.phone .ph-dock .hud-bottom > :not(.go):not([data-act="editStart"]) { order: 2; }
body.phone .ph-dock .hud-bottom .edit-msg { order: 0; }
body.phone .ph-dock .hud-bottom .seg { display: flex; gap: 4px; }
body.phone .ph-dock .hud-bottom .btn.sm { min-height: 40px; }
body.phone .ph-dock .hud-bottom .spacer { display: none; }
body.phone .ph-dock .hud-bottom [data-act="editStart"] { order: 1; margin-left: 0; min-height: 48px; }
body.phone .ph-dock .hud-bottom .run-clock { display: none; } /* the strip under the store shows the time */
body.phone .ph-tools { order: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.phone .ph-tools .zoom-ctl { position: static; flex-direction: row; gap: 6px; }
body.phone .ph-tools .zoom-btn { width: 44px; height: 44px; }
body.phone .ph-tools .ph-hint { flex: 1 1 6em; min-width: 0; font-size: .74rem; line-height: 1.3; color: var(--muted); }
body.phone .ph-nums .hud-tools { display: flex; gap: 6px; justify-content: flex-end; }
body.phone .ph-tools .buy-btn { position: static; width: auto; height: 44px; flex-direction: row; align-items: center; gap: 4px; padding: 0; transform: none; }
body.phone .ph-tools .buy-btn img { width: 40px; height: auto; margin: 0; }
body.phone .ph-tools .buy-btn span { font-size: .95rem; padding: 0 12px; }
body.phone .ph-dock .airi-bar { order: 2; position: relative; inset: auto; transform: none; width: auto; margin: 0; }
body.phone .ph-dock .airi-open { position: static; order: 2; align-self: flex-start; }
body.phone .ph-dock .guest-list { order: 3; position: static; inset: auto; width: auto; max-height: none; }
body.phone .ph-dock .mission-panel, body.phone .ph-dock .mission-mini { order: 4; position: static; inset: auto; width: auto; max-height: none; }
body.phone .ph-dock .mission-mini { align-self: flex-start; }
body.phone .ph-dock .mission-panel ul { max-height: 40svh; }
body.phone .ph-dock .mp-txt small { display: inline; }
body.phone .ph-nums { order: 5; display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 2px; }
body.phone .ph-nums .hud-id, body.phone .ph-nums .hud-nums, body.phone .ph-nums .hud-next { position: static; margin: 0; max-width: none; pointer-events: auto; }
body.phone .ph-nums .hud-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body.phone .ph-nums .hud-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; }
/* Airi's tutorial: in the column, right under the store, not over it */
body.phone .play > .airi-tut { order: 1; position: relative; inset: auto; z-index: 1; width: auto; margin: 8px 8px 0; pointer-events: auto; }
body.phone .play > .airi-tut .airi-tut-img { height: 150px; margin-right: -8px; }
/* the information: tabs and pages, no scroll of its own (the column scrolls); the tabs stay just under the store */
body.phone .play > .info, body.phone .play.folded > .info { order: 3; display: flex; flex: none; margin: 0 8px 12px; min-height: calc(100dvh - var(--ph-top)); }
body.phone .info .tabs { position: sticky; top: var(--ph-top); z-index: 10; }
body.phone .info-fold, body.phone .info-open { display: none; }
body.phone .info-body { flex: none; overflow-x: auto; overflow-y: hidden; }
/* a one-frame page (see .info-body:not(:has(...)) on PC): the frame is one screen under the sticky tabs, whatever is in
   it, and scrolls inside; the column scrolls down to it as before */
body.phone .info-body:not(:has(> .panel ~ .panel, > .g2, > .g-side, > .g-side-l, > .g-stack)) > .panel,
body.phone .info-body:not(:has(> .panel, > .g2, > .g-side, > .g-side-l, > .g-stack ~ .g-stack)) > .g-stack { flex: none; height: max(240px, calc(100dvh - var(--ph-top) - 66px - 12px)); }
/* the buy window opens under the store, the store stays in sight to place what was bought */
body.phone .modal-bg.buy-bg { top: var(--ph-top); padding: 6px; align-items: stretch; }
body.phone .modal-bg.buy-bg .modal { max-height: none; }
/* the owner's kitchen / fridge and the register fit the phone's screen */
body.phone .own-pick .modal, body.phone .own-pay .modal { width: 100%; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 12px 12px; }
body.phone .modal-bg.own-pick, body.phone .modal-bg.own-pay { padding: 8px 6px; align-items: flex-start; }

/* sideways: the store fills the left half's height, the column scrolls at the right */
body.phone.phone-land { --ph-sv: calc(100svh - var(--ph-strip)); --ph-top: 0px; }
body.phone.phone-land { --ph-land-w: 54vw; }
body.phone.phone-land .play, body.phone.phone-land .play.folded, body.phone.phone-land .play.wide { padding-left: var(--ph-land-w); }
body.phone.phone-land .ph-store { position: fixed; left: 0; top: 0; width: var(--ph-land-w); height: 100vh; height: 100svh; border-bottom: 0; border-right: 2px solid var(--frame, #6b4a2a); }
body.phone.phone-land .play > .info { min-height: 100svh; }
body.phone.phone-land .modal-bg.buy-bg { top: 0; left: var(--ph-land-w); }
/* the setup pages on the phone: one page scrolling as a whole, the back / next buttons in one row stuck to the bottom,
   the page buttons over them in one row that scrolls sideways */
body.phone .shell { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
body.phone .shell .s-main { flex: 1 0 auto; min-height: 0; }
body.phone .shell .s-work, body.phone .shell .page-body { flex: none; min-height: 0; overflow: visible; }
body.phone .shell .s-foot { position: sticky; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 8px; }
body.phone .shell .s-foot > :not(.btn) { grid-column: 1 / -1; }
body.phone .shell .s-foot .subtabs { order: -1; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
body.phone .shell .s-foot .subtabs button { flex: none; width: auto; min-width: 5.5em; overflow: visible; }
body.phone .shell .s-foot .btn, body.phone .shell .s-foot .btn.next { width: auto; min-width: 0; margin: 0; }
body.phone .page-body[data-page="funds:owner"] .owner-pick { width: 100%; }
body.phone .page-body[data-page="funds:owner"] .owner-card { flex: 1 1 0; width: auto; min-width: 0; }
body.phone .page-title { width: auto; max-width: 100%; flex: 1 1 auto; min-width: 0; }
body.phone .su-points .op-tbl tbody { grid-template-columns: minmax(0, 1fr); }
body.phone .su-points .op-tbl tr { grid-template-columns: minmax(0, 1fr) auto; }
body.phone .shell .s-foot { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
body.phone .shell .s-foot .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; padding-right: 4px; }
body.phone .s-head .logo-mini img { height: 46px; margin: -2px 0 -4px -4px; }
body.phone .list-head { flex-wrap: wrap; }
body.phone .list-head .btn { white-space: nowrap; }
body.phone .shell .s-foot .btn.next { white-space: normal; height: auto; min-height: var(--btn-h, 44px); line-height: 1.25; font-size: .95rem; padding-top: 4px; padding-bottom: 4px; }
body.phone .play > .airi-tut .airi-tut-nav { flex-wrap: wrap; row-gap: 6px; }
body.phone .play > .airi-tut .airi-tut-nav .btn { flex: 1 1 auto; }
/* what is scrolled into view (the tutorial's ring) is not left under the store and the tabs that stay at the top */
body.phone .play * { scroll-margin-top: calc(var(--ph-top) + 76px); scroll-margin-bottom: 12px; }
body.phone .ph-tools .zoom-btn { line-height: 1; }
/* the register on the phone: the buttons stay at the bottom of the window, the tray holds the money in one short row */
body.phone .own-pay .modal.checkout .btn-row, body.phone .own-pick .modal.pick .btn-row { position: sticky; bottom: -12px; z-index: 2; margin: 10px -12px -12px; padding: 8px 12px 12px; background: var(--paper, #f6efe2); box-shadow: 0 -6px 10px -8px rgba(40,25,10,.4); }
body.phone .own-pay .modal.checkout .btn-row .btn { min-height: 48px; }
body.phone .own-pay .tray { width: auto; }
body.phone .own-pay .till-wrap .tray-in { flex: none; height: 96px; min-height: 0; }
body.phone .own-pay .modal.checkout .pay-msg { min-height: 2.8em; }
body.phone .own-pay .pay-nums { margin: 6px 0 8px; }
body.phone .own-pay .modal h2 { margin-bottom: 4px; }
body.phone .modal.story .btn-row { display: flex; flex-wrap: nowrap; gap: 8px; }
body.phone .modal.story .btn-row .btn { flex: 1 1 0; width: auto; min-width: 0; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
body.phone .modal.report h3 { white-space: normal; }
/* the information's pages in the phone's column (about 350px): two-up cards one under the other, tabs in rows */
body.phone .info-body .recruit-bar, body.phone .info-body .card.person.cols { grid-template-columns: minmax(0, 1fr); }
body.phone .info-body .btn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.phone nav.innertabs .sw-btns { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
body.phone .info .info-body nav.innertabs .sw-btns button { font-size: .95rem; }
body.phone nav.innertabs .sw-btns button { grid-column: auto !important; white-space: nowrap; padding-left: .3em; padding-right: .3em; }
body.phone .info .info-body .btn.sm[data-act="custAd"] { height: auto; min-height: var(--btn-h-sm, 32px); white-space: normal; line-height: 1.3; padding-top: 4px; padding-bottom: 4px; }
/* the buy window on the phone: cards two to a row, the picker over its details */
body.phone .buy-modal .chairs-panel .eq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.phone .buy-modal .chairs-panel .eq-card img { width: 88px; height: 88px; }
body.phone .buy-modal .ch-buy { grid-template-columns: minmax(0, 1fr); }
body.phone .buy-modal .ch-pickrow > .btn { min-width: 0; width: 100%; }
body.phone .buy-modal .eq-pick, body.phone .buy-modal .eq-detail { grid-template-columns: minmax(0, 1fr); }
body.phone .buy-modal .eq-detail img { min-height: 0; height: 160px; }
body.phone .buy-head { flex-wrap: wrap; gap: 6px 10px; }
body.phone nav.innertabs .sw-btns { grid-auto-rows: auto; align-content: start; gap: 6px; }
body.phone nav.innertabs .sw-btns button, body.phone .info .info-body nav.innertabs .sw-btns button { font-size: .88rem; gap: 4px; }
body.phone .buy-modal .btn, body.phone .buy-modal .ch-buy .btn { white-space: normal; height: auto; min-height: var(--btn-h, 40px); line-height: 1.3; }
body.phone .info .subtabs { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); padding: 8px 8px 0; }
body.phone .info .subtabs button { grid-column: auto; font-size: .92rem; padding-left: .25em; padding-right: .25em; white-space: nowrap; }
body.phone .info-body .card.person .btn-row .btn { flex: 1 1 100%; width: auto !important; }
/* the shift table on the phone: the days in a row over it, the hours scroll sideways in their own box */
body.phone .sh-wrap { flex-direction: column; }
body.phone .sh-days { flex-direction: row; width: 100%; }
body.phone .sh-main { width: 100%; overflow-x: auto; }
body.phone .sh-grid { min-width: 560px; }
body.phone .ph-dock .airi-say { padding-bottom: 1.5em; }
body.phone .ph-tools .ph-hint { white-space: nowrap; }
body.phone .card.prop { grid-template-columns: minmax(0, 1fr); }
body.phone .card.prop h4 { flex-direction: column; align-items: flex-start; white-space: normal; }
body.phone .prep-foot .btn { height: auto; min-height: var(--btn-h, 44px); line-height: 1.3; padding-top: 4px; padding-bottom: 4px; }
/* windows on the phone: less padding inside the frame, so the panels and their headings keep their room */
body.phone .modal { padding-left: 8px; padding-right: 8px; }
body.phone .modal .panel { padding-left: 10px; padding-right: 10px; }
body.phone .modal .panel > h3 { padding-right: 30px; }

/* v1.14.4 checkout on PC: the bill on the left, the till / calculator on the right, so the whole frame fits without scrolling */
body:not(.phone) .modal.checkout, body:not(.phone) .modal.checkout.cash { max-width: min(1040px, 96vw); }
body:not(.phone) .modal.checkout.cashless { max-width: min(760px, 96vw); }
/* the checkout window keeps one size while money is picked up: a set width, and the tray scrolls inside (below) */
body:not(.phone) .modal.checkout.cash { width: min(1040px, 96vw); }
body:not(.phone) .modal.checkout.cashless { width: min(760px, 96vw); }
.till-wrap .tray-in { flex: 1 1 0; overflow-y: auto; }
body:not(.phone) .pay-cols { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
body:not(.phone) .pay-cols .pay-items { max-height: none; overflow: visible; }
body:not(.phone) .pay-cols .pay-nums { grid-auto-flow: row; grid-auto-columns: auto; margin: 10px 0 0; }
body:not(.phone) .pay-cols .pay-nums > div { flex-direction: row; align-items: baseline; justify-content: space-between; }
body.phone .pay-cols { display: block; }
/* v1.19.1 the checkout frame keeps one height however long the bill is: the bill lines scroll inside the left column */
body:not(.phone) .modal.checkout { height: min(600px, 92vh); display: flex; flex-direction: column; overflow: hidden; }
body:not(.phone) .modal.checkout > h2, body:not(.phone) .modal.checkout > .pay-guide, body:not(.phone) .modal.checkout > .pay-hint, body:not(.phone) .modal.checkout > .pay-msg, body:not(.phone) .modal.checkout > .btn-row { flex: none; }
body:not(.phone) .modal.checkout .pay-cols { flex: 1 1 0; min-height: 0; align-items: stretch; }
body:not(.phone) .pay-cols .pay-l { display: flex; flex-direction: column; min-height: 0; }
body:not(.phone) .pay-cols .pay-l .pay-items { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
body:not(.phone) .pay-cols .pay-r { min-height: 0; display: flex; flex-direction: column; }
body:not(.phone) .pay-cols .pay-r > .till-wrap, body:not(.phone) .pay-cols .pay-r > .calc { flex: 1 1 0; min-height: 0; }

/* v1.14.6 the day's report on PC: side by side (level up | money and numbers | voices) so it fits without scrolling */
body:not(.phone) .modal.report { max-width: min(1240px, 96vw); }
body:not(.phone) .modal.report:not(:has(.rep-lv)) { max-width: min(1040px, 96vw); }
body:not(.phone) .rep-main { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
body:not(.phone) .rep-main:has(.rep-lv) { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); }
body:not(.phone) .rep-main .levelup { margin: 0; }
body:not(.phone) .rep-main .rep-money { margin-top: 0; }
body:not(.phone) .rep-main .rep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:not(.phone) .rep-main .rep-cols { grid-template-columns: minmax(0, 1fr); }
body:not(.phone) .rep-main .rep-b h3:first-child, body:not(.phone) .rep-main .rep-b > div > div:first-child > h3:first-child { margin-top: 0; }

/* v1.14.7 the zoom buttons sit in a row just left of the cart, level with its foot, so they never cover it */
.stage:has(> .buy-btn) { --buy-w: 132px; }
@container stage (max-width: 760px) { .stage:has(> .buy-btn) .zoom-ctl { --buy-w: 100px; } }
.stage:has(> .buy-btn) .zoom-ctl { top: auto; bottom: calc(var(--hb-h, 54px) + 14px + var(--airi-h, 0px)); right: calc(14px + var(--buy-w, 132px) + 10px); flex-direction: row; }

/* v1.14.8 the purchase window on PC fits without scrolling: the games side by side with the cart in a column of its own
   (always in sight), the equipment a page at a time beside the picked piece, and the rows tighter */
body:not(.phone) .buy-body > .panel { display: flex; flex-direction: column; min-height: 0; margin-bottom: 0; }
body:not(.phone) .buy-body > .innertabs, body:not(.phone) .buy-body > .panel > h3 { flex: none; }
body:not(.phone) .buy-body > .panel.games-buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(352px, 30%); grid-template-rows: max-content max-content; column-gap: 16px; align-content: start; }
body:not(.phone) .games-buy > h3 { grid-column: 1; grid-row: 1; }
body:not(.phone) .games-buy .gb-grid { display: contents; }
body:not(.phone) .games-buy .gb-play { grid-column: 1; grid-row: 2; }
body:not(.phone) .games-buy .gb-sell { grid-column: 2; grid-row: 2; }
body:not(.phone) .games-buy .gb-shelf { grid-column: 2 / 4; grid-row: 1; align-self: center; justify-self: end; margin: 0; }
body:not(.phone) .games-buy .cart-box { grid-column: 3; grid-row: 2; align-self: start; margin-top: 0; }
body:not(.phone) .games-buy .gb-side { padding: 10px 12px; }
body:not(.phone) .games-buy .gb-side h4 { font-size: 1.15rem; }
body:not(.phone) .games-buy .gb-side h4 .ico { width: 30px; height: 30px; }
body:not(.phone) .games-buy .gb-sub { margin: 2px 0 6px; }
body:not(.phone) .games-buy .gb-cap { margin-bottom: 6px; }
body:not(.phone) .games-buy .gb-cap b { font-size: 1.4rem; }
body:not(.phone) .games-buy .gb-rows { gap: 4px; }
body:not(.phone) .games-buy .gb-row { padding: 3px 8px; gap: 8px; grid-template-columns: minmax(0, 1fr) 4.5em auto; }
body:not(.phone) .games-buy .gb-side .btn-row { margin-top: 8px; }
body:not(.phone) .games-buy .cart-box .tbl.cart th, body:not(.phone) .games-buy .cart-box .tbl.cart td { padding-top: 2px; padding-bottom: 2px; }
body:not(.phone) .games-buy .cart-box .tbl.cart .btn.sm { min-height: 0; height: 26px; padding: 0 .6em; font-size: .85rem; }
body:not(.phone) .buy-modal .eq-panel .eq-pick { flex: 1; min-height: 0; align-items: stretch; margin-bottom: 0; }
body:not(.phone) .buy-modal .eq-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
body:not(.phone) .buy-modal .eq-side > .btn-row { flex: none; margin: 0; }
body:not(.phone) .buy-modal .eq-side .paged-grid { overflow: hidden; }
body:not(.phone) .buy-modal .eq-side .eq-card { height: 76px; min-height: 0; }
body:not(.phone) .buy-modal .eq-side .pager { padding-top: 4px; }
body:not(.phone) .buy-modal .eq-panel .eq-detail { min-height: 0; align-self: stretch; }
body:not(.phone) .buy-modal .eq-panel .eq-detail .tbl td { padding-top: 4px; padding-bottom: 4px; }
body:not(.phone) .games-buy .cart-box .tbl.cart { border-spacing: 0 2px; }
body:not(.phone) .games-buy .cart-box .tbl.cart td { vertical-align: middle; line-height: 1.3; }
body:not(.phone) .buy-modal .eq-panel .eq-detail .tbl { border-spacing: 0 3px; }
body:not(.phone) .buy-modal .eq-panel .eq-detail .tbl td { vertical-align: middle; line-height: 1.35; }
/* the switch bar in one row, its label at the left, on every PC width */
body:not(.phone) .buy-body nav.innertabs { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; }
body:not(.phone) .buy-body nav.innertabs .sw-label { align-self: center; white-space: nowrap; }
body:not(.phone) .buy-body nav.innertabs .sw-btns { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
body:not(.phone) .buy-body nav.innertabs .sw-btns button { grid-column: auto; padding: 0 .3em; white-space: nowrap; }
/* the equipment's pager fits its narrow column: the page number between two buttons, no dots */
body:not(.phone) .buy-modal .eq-side .pager { gap: 6px; }
body:not(.phone) .buy-modal .eq-side .pager .dots { display: none; }
body:not(.phone) .buy-modal .eq-side .pager .btn { flex: 1 1 0; min-width: 0; }
body:not(.phone) .buy-modal .eq-side .pager .pg-no { min-width: 3.5em; }
/* the games' rows stay on one line each in a narrow column: the count and the buttons a little smaller */
body:not(.phone) .games-buy .gb-row { grid-template-columns: minmax(0, 1fr) 4em auto; }
body:not(.phone) .games-buy .gb-box b { white-space: nowrap; }
body:not(.phone) .games-buy .gb-box .small { white-space: nowrap; font-size: .8rem; }
body:not(.phone) .games-buy .gb-btns { gap: 4px; }
body:not(.phone) .games-buy .gb-btns .btn.sm { width: 3.8em; }
body:not(.phone) .games-buy .cart-box .tbl.cart td.menu-name { white-space: nowrap; }
body:not(.phone) .games-buy .cart-box .tbl.cart th, body:not(.phone) .games-buy .cart-box .tbl.cart td { padding-left: .35em; padding-right: .35em; }
/* a short window (the 1280x720 page without the 16:9 frame): the cart's lines smaller, so a full cart still fits */
@media (max-height: 800px) {
  body:not(.phone) .games-buy .cart-box { padding: 6px 10px; }
  body:not(.phone) .games-buy .cart-box .tbl.cart { font-size: .86rem; border-spacing: 0; }
  body:not(.phone) .games-buy .cart-box .tbl.cart .btn.sm { height: 22px; font-size: .8rem; }
  body:not(.phone) .games-buy .cart-box .btn-row { margin-top: 6px; }
  body:not(.phone) .games-buy .gb-sub { font-size: .8rem; }
}
@media (max-height: 800px) {
  body:not(.phone) .games-buy .cart-box h4 { margin-bottom: 2px; }
  body:not(.phone) .games-buy .gb-side { padding: 8px 10px; }
}
@media (max-height: 800px) {
  body:not(.phone) .buy-body nav.innertabs { padding: 5px 10px; margin-bottom: 8px; }
  body:not(.phone) .games-buy .gb-row { padding-top: 1px; padding-bottom: 1px; }
  body:not(.phone) .games-buy .gb-rows { gap: 3px; }
  body:not(.phone) .games-buy .gb-sub { margin-bottom: 4px; }
  body:not(.phone) .games-buy .gb-cap { margin-bottom: 4px; }
}
body:not(.phone) .games-buy .cart-box .btn-row > .btn { white-space: nowrap; padding-left: .4em; padding-right: .4em; }
@media (max-height: 800px) { body:not(.phone) .games-buy .cart-box .btn-row > .btn { font-size: .92rem; } }
@media (max-height: 800px) {
  body:not(.phone) .games-buy > h3 { margin-bottom: 8px; }
  body:not(.phone) .games-buy .cart-box .tbl.cart th, body:not(.phone) .games-buy .cart-box .tbl.cart td { padding-top: 1px; padding-bottom: 1px; }
}

/* v1.16.0 the game-meet calendar: a wooden calendar just left of the cart (the same size, foot and green plate; the zoom
   buttons move one place further left), opening a window of a fitting size (not the whole screen): the calendar and the
   planned meets on the left, the form on the right */
.stage .meet-btn { position: absolute; right: calc(14px + var(--buy-w, 132px) + 10px); bottom: calc(var(--hb-h, 54px) + 14px + var(--airi-h, 0px)); z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: var(--buy-w, 132px); height: var(--buy-h, 140px); padding: 0;
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 1.25rem; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.stage .meet-btn img { width: 108px; height: auto; margin-bottom: -14px; filter: drop-shadow(0 6px 8px rgba(40,30,15,.35)); transition: transform .15s ease; }
.stage .meet-btn span { position: relative; padding: 2px 14px; border: 6px solid transparent; border-image: var(--w-plate-g) 28 40 fill / 6px 10px stretch; font-size: 1.1rem; letter-spacing: .04em; white-space: nowrap; }
.stage .meet-btn:hover img { transform: translateY(-4px) rotate(3deg); }
.stage:has(> .meet-btn) .zoom-ctl { right: calc(14px + 2 * var(--buy-w, 132px) + 20px); }
@container stage (max-width: 760px) {
  .stage .meet-btn { --buy-w: 100px; --buy-h: 108px; }
  .stage:has(> .meet-btn) .zoom-ctl { --buy-w: 100px; }
  .stage .meet-btn img { width: 80px; margin-bottom: -12px; }
  .stage .meet-btn span { font-size: .95rem; padding: 0 8px; letter-spacing: 0; }
}
body.phone .ph-tools .meet-btn { position: static; width: auto; height: 44px; flex-direction: row; align-items: center; gap: 4px; padding: 0; transform: none; }
body.phone .ph-tools .meet-btn img { width: 38px; height: auto; margin: 0; }
body.phone .ph-tools .meet-btn span { font-size: .95rem; padding: 0 10px; letter-spacing: 0; }

/* the meet window keeps one size (planning a meet or picking another day never resizes it); its body scrolls */
.modal.meet-modal { width: min(1040px, 94vw); height: min(640px, 92vh); max-width: none; max-height: none; display: flex; flex-direction: column; padding: 14px 18px; overflow: hidden; }
.meet-modal .buy-head .mh-ico { width: 1.6em; height: auto; margin: -.3em 0; }
.meet-body { flex: 1; min-height: 0; overflow: auto; }
/* meetPane: one markup for the window and the shop page tab. Wide: calendar + list | form; narrow: calendar, form, list */
.meet-pane { container-type: inline-size; }
.mp-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "cal" "form" "list"; gap: 14px; align-items: start; }
.mp-grid > .mc-col { grid-area: cal; } .mp-grid > .mf-col { grid-area: form; } .mp-grid > .ml-col { grid-area: list; }
@container (min-width: 760px) {
  .mp-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "cal form" "list form"; gap: 0 18px; }
}
/* one set of sizes for both places (the info column otherwise enlarges its .small, rows and pull-downs) */
.meet-pane .mp-grid .ml-col h4 { width: fit-content; margin: 14px 0 6px; padding: .28em .95em .28em .7em; font-size: 1.02rem; color: #5b4322; background: #f5e8cc; border-left: 4px solid var(--gold); border-radius: 2px; }
.meet-pane .mp-grid .meet-row { padding: 6px 0; }
.meet-pane .mp-grid .meet-row .small, .meet-pane .mp-grid p.meet-note.small.muted { font-size: .82rem; line-height: 1.6; }
.meet-pane .mp-grid .mc-head .small { font-size: .86rem; }
.meet-pane .mp-grid .mf-col .row, .meet-pane .mp-grid .mf-col select, .meet-pane .mp-grid .mf-col input { font-size: 1.05rem; }
.meet-pane .mp-grid .mf-col .row .small { font-size: .82rem; }
.mf-col .meet-form { margin-top: 0; }
.mf-col .meet-form .row { margin: 0 0 8px; }
.mf-col .meet-form > .btn { width: 100%; min-height: 2.8em; margin-top: 4px; }
.mf-col > p.small { margin: 10px 0 6px; line-height: 1.6; }
.mf-date b { font-size: 1.1rem; }
.mc-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.mc-head > b { font-size: 1.1rem; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mc-wd { text-align: center; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.mc-wd.sun { color: var(--neg); } .mc-wd.sat { color: #2f6db5; }
.mc-day { min-height: 62px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 6px; font: inherit; text-align: left;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 2px; }
.mc-day b { font-family: var(--f-num); font-size: 1.05rem; font-weight: 500; line-height: 1.1; }
.mc-day.sun b { color: var(--neg); } .mc-day.sat b { color: #2f6db5; }
.mc-day em { max-width: 100%; font-style: normal; font-size: .72rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.mc-day.out { opacity: .35; }
.mc-day.wk-busy { background: repeating-linear-gradient(135deg, var(--panel-2) 0 6px, var(--panel-3) 6px 8px); }
.mc-day.ok { color: var(--ink); background: var(--panel); border-color: var(--accent); border-bottom-width: 3px; cursor: pointer; }
.mc-day.ok:hover { background: var(--accent-soft); }
.mc-day.cur, .mc-day.cur:hover { background: var(--accent); border-color: var(--accent-2); color: #fff; }
.mc-day.cur b { color: #fff; }
.mc-day.has { color: #7a4f00; background: #fff1cf; border-color: #e8a93a; border-bottom-width: 3px; }
.mc-day.has em { font-weight: 700; }
body.phone .modal-bg.meet-bg { align-items: stretch; }
body.phone .modal-bg.meet-bg .modal.meet-modal { width: 100%; height: auto; padding: 10px 10px; }
body.phone .mp-grid { gap: 10px; }
body.phone .mc-day { min-height: 54px; padding: 3px 3px; }
body.phone .mc-day em { font-size: .64rem; }
/* 「店舗Lv:N」 over the name of a food, drink, chair or piece the store level opened (one size everywhere, PC and phone) */
.unlock-lv { display: block; width: fit-content; align-self: flex-start; margin: 0 0 1px; padding: 0 .4em; font-size: .68rem; font-weight: 700; line-height: 1.45; letter-spacing: .02em; white-space: nowrap; color: #7a4f00; background: #fff1cf; border: 1px solid #e8a93a; border-radius: var(--r); }
.buy-modal .chairs-panel .eq-name > .unlock-lv { align-self: center; }
/* the detail heading keeps its height (the detail is fitted to the window): the label sits in the margin over it */
.eq-detail h4:has(> .unlock-lv) { position: relative; overflow: visible; min-height: 0; }
.eq-detail h4 > .unlock-lv { position: absolute; left: 0; bottom: calc(100% + 2px); margin: 0; }
.eq-detail h4:has(> .unlock-lv) + .tbl { position: relative; } /* stacked as before: the table over the heading where a long detail squeezes them */
/* the chairs sit side by side: the ones from the start keep the label's room so the names line up */
.unlock-lv.blank { visibility: hidden; }

/* v1.17.2 the guest list (お客様のご用, own.js ownGuestList) is a column of its own at the right of the store view while
   it is shown: the cart, the game-meet calendar and the zoom buttons move left of it (same row, same sizes), and the
   list stays between the numbers at the top (--hud-b, ui.js hudFit) and the clock's buttons at the bottom */
.stage > .guest-list { bottom: calc(var(--hb-h, 54px) + 10px); max-height: calc(100% - var(--hud-b, 330px) - var(--hb-h, 54px) - 10px); }
.stage:has(> .guest-list:not([hidden])) { --gl-r: 252px; } /* the list's 232px + 10px from the edge + 10px gap */
.stage:has(> .guest-list:not([hidden])) .buy-btn { right: calc(var(--gl-r) + 14px); }
.stage:has(> .guest-list:not([hidden])) .meet-btn { right: calc(var(--gl-r) + 14px + var(--buy-w, 132px) + 10px); }
.stage:has(> .guest-list:not([hidden])):has(> .buy-btn) .zoom-ctl { right: calc(var(--gl-r) + 14px + var(--buy-w, 132px) + 10px); }
.stage:has(> .guest-list:not([hidden])):has(> .meet-btn) .zoom-ctl { right: calc(var(--gl-r) + 14px + 2 * var(--buy-w, 132px) + 20px); }

/* v1.19.1 the cart and the game-meet calendar: smaller, at the top right of the store view just under the numbers
   (口コミ, 常連 ... ; --hud-b from ui.js hudFit), the cart at the edge and the calendar left of it. They stay there
   while the guest list is shown (the list starts under them); the zoom buttons go back to the bottom right in a row */
body:not(.phone) .stage { --tb-w: 84px; --tb-h: 88px; }
body:not(.phone) .stage .buy-btn, body:not(.phone) .stage:has(> .guest-list:not([hidden])) .buy-btn,
body:not(.phone) .stage .meet-btn, body:not(.phone) .stage:has(> .guest-list:not([hidden])) .meet-btn {
  top: var(--hud-b, 330px); bottom: auto; width: var(--tb-w); height: var(--tb-h); }
body:not(.phone) .stage .buy-btn, body:not(.phone) .stage:has(> .guest-list:not([hidden])) .buy-btn { right: 14px; }
body:not(.phone) .stage .meet-btn, body:not(.phone) .stage:has(> .guest-list:not([hidden])) .meet-btn { right: calc(14px + var(--tb-w) + 8px); }
body:not(.phone) .stage .buy-btn img { width: 72px; margin-bottom: -10px; }
body:not(.phone) .stage .meet-btn img { width: 66px; margin-bottom: -9px; }
body:not(.phone) .stage .buy-btn span, body:not(.phone) .stage .meet-btn span { font-size: .85rem; padding: 0 8px; letter-spacing: 0; border-width: 4px; }
body:not(.phone) .stage:has(> .buy-btn) .zoom-ctl, body:not(.phone) .stage:has(> .meet-btn) .zoom-ctl { right: 14px; }
body:not(.phone) .stage:has(> .guest-list:not([hidden])):has(> .buy-btn) .zoom-ctl,
body:not(.phone) .stage:has(> .guest-list:not([hidden])):has(> .meet-btn) .zoom-ctl { right: calc(var(--gl-r) + 14px); }
body:not(.phone) .stage:has(> .buy-btn) > .guest-list, body:not(.phone) .stage:has(> .meet-btn) > .guest-list {
  max-height: calc(100% - var(--hud-b, 330px) - var(--tb-h) - 8px - var(--hb-h, 54px) - 10px); }

/* v1.19.2 the checkout's paper is tinted by how it is paid, so cash and cashless tell apart at a glance:
   cash a warm gold, cashless a cool blue (the frame stays the same wood) */
.modal.checkout.cash { background: #f8ecd0 padding-box; }
.modal.checkout.cashless { background: #e3eef7 padding-box; }
.modal.checkout.cash .pay-items .pay-bill td { background: rgba(255,255,255,.55); }
.modal.checkout.cashless .pay-items .pay-bill td { background: rgba(255,255,255,.6); }
.modal.checkout.cashless .pay-bill tr.sum td { background: #cddff0; }

/* v1.19.4 the zoom buttons stay put whatever the speed: no longer at the foot (the clock's bar and the guest list, which
   come and go with the speed, moved them) but in the top row under the numbers, left of the calendar and the cart */
body:not(.phone) .stage .zoom-ctl, body:not(.phone) .stage:has(> .buy-btn) .zoom-ctl, body:not(.phone) .stage:has(> .meet-btn) .zoom-ctl,
body:not(.phone) .stage:has(> .guest-list:not([hidden])):has(> .buy-btn) .zoom-ctl,
body:not(.phone) .stage:has(> .guest-list:not([hidden])):has(> .meet-btn) .zoom-ctl {
  top: calc(var(--hud-b, 330px) + var(--tb-h, 88px) - 44px); bottom: auto; right: 14px; flex-direction: row; }
body:not(.phone) .stage:not(:has(> .buy-btn)):not(:has(> .meet-btn)) .zoom-ctl { top: var(--hud-b, 330px); }
body:not(.phone) .stage:has(> .buy-btn) .zoom-ctl, body:not(.phone) .stage:has(> .guest-list:not([hidden])):has(> .buy-btn) .zoom-ctl { right: calc(14px + var(--tb-w, 84px) + 8px); }
body:not(.phone) .stage:has(> .meet-btn) .zoom-ctl, body:not(.phone) .stage:has(> .guest-list:not([hidden])):has(> .meet-btn) .zoom-ctl { right: calc(14px + 2 * (var(--tb-w, 84px) + 8px)); }

/* v1.19.5 the cleaning jobs in the task list (発生中タスク): no waiting bar, a calmer colour than the orders */
.guest-row.chore { grid-template-rows: auto; background: #f4f8f3; }
.guest-row.chore:hover { background: #e8f2e6; }
