/* Shared lacquer, brass and felt finishes for the playable screen furniture. */
:root {
  --bg: #080e0c;
  --panel: #14231e;
  --panel2: #21312a;
  --ink: #f8f1df;
  --ink-dim: #c2bdad;
  --line: #625b46;
  --gold: #e4c48c;
  --accent: #ad352c;
  --felt: #185337;
  --felt-deep: #09301f;
  --lacquer: linear-gradient(120deg, #17231d, #0d1511 80%);
  --brass-edge: 1px solid #746649;
  --display-face: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
body {
  background: radial-gradient(ellipse at 50% 24%, #1d2a21, #090e0c 72%) fixed;
}
button:focus-visible, a:focus-visible { outline: 2px solid #ffe1a3; outline-offset: 2px; }

/* The illustration contains no controls or lettering. */
#titleScreen {
  isolation: isolate;
  background: #0d100d;
}
#titleScreen::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #080b09eb 0, #0d100e96 30%, transparent 56%),
    linear-gradient(0deg, #0a0c08a1, transparent 23%),
    url("../assets/title-lounge.webp") center center / cover no-repeat;
}
.title-inner {
  width: min(39vw, 520px); max-width: none;
  min-height: 100svh; margin: 0 0 0 clamp(36px, 7vw, 152px);
  padding: max(34px, env(safe-area-inset-top)) 0 max(36px, env(safe-area-inset-bottom));
  align-items: flex-start; text-align: left;
}
.logo-title {
  color: #fbf1db; font-family: var(--display-face);
  font-size: clamp(54px, 6.75vw, 118px); line-height: 1.13; letter-spacing: -.075em;
  text-shadow: 0 4px 16px #0009;
}
.logo-title .accent {
  display: block; color: #ddc08a;
  font-size: 1.25em; letter-spacing: .025em; margin: .015em 0 .22em;
}
.title-btns { width: min(100%, 334px); }
.title-btns { margin-top: 25px; gap: 9px; }
.title-btns button {
  position: relative; text-align: left; padding: 0 24px; border-radius: 4px;
  font-family: var(--display-face); letter-spacing: .12em; font-size: 19px;
  transition: filter .15s, background-color .15s;
}
.title-btns button::after { content: "›"; position: absolute; right: 22px; top: 50%; transform: translateY(-54%); font: 26px/1 Georgia, serif; }
.title-btns button:hover { filter: brightness(1.18); }
.btn-start, .card .btnrow button.primary, .card .btncol button.primary {
  background: linear-gradient(110deg, #af392b, #80271e);
  border: 1px solid #c98965; color: #fff5de; box-shadow: inset 0 1px 0 #f2bf9533, 0 5px 16px #090a0866;
}
.title-btns .btn-sub { background: #0e1712db; border: var(--brass-edge); color: #eee4cd; min-height: 47px; }

.wrap {
  max-width: 1500px; padding: max(6px, env(safe-area-inset-top)) clamp(6px, 1vw, 20px) max(14px, env(safe-area-inset-bottom));
}
.topbar.refbar {
  align-items: center; padding: 4px 0 7px; gap: 7px; margin: 0;
  border: 0; border-bottom: 1px solid #9e8351; border-radius: 0; background: transparent; box-shadow: none;
}
.topbar.refbar .btn-orange, .topbar.refbar .naki-toggle.refskip, .topbar.refbar .sound-chip.icon-chip {
  color: var(--ink-dim); min-height: 36px; background: #101914;
  border: 1px solid #665a42; border-radius: 4px; text-shadow: none; box-shadow: none;
}
.topbar.refbar .btn-orange { order: 4; font: 700 12px/1.2 system-ui, sans-serif; letter-spacing: .1em; }
.topbar .round-title {
  justify-content: flex-start; padding-left: 3px; font: 800 clamp(17px, 2vw, 24px)/1.3 var(--display-face);
  color: var(--ink); letter-spacing: .09em;
}
.topbar.refbar .naki-toggle.refskip.on, .topbar.refbar .sound-chip.icon-chip.on { color: var(--gold); border-color: #89774e; }
.topbar.refbar .naki-toggle.refskip .state { background: #2e3026; color: #ddc69a; }
.topbar.refbar .naki-toggle.refskip.auto .state { background: #214138; color: #bce2cd; }
#multBadge {
  margin: 5px auto; padding: 3px 18px; background: #3e1528;
  color: #ffdee9; border: 1px solid #d773a1; border-radius: 3px; box-shadow: inset 0 0 14px #98286450;
}
#table.stage-mode {
  padding: 0; margin-top: 5px; gap: 0; border: 1px solid #725e3c; border-radius: 7px;
  background: #0e1813; box-shadow: 0 8px 28px #0005;
}
#stageTop { gap: 4px; padding: 5px; }
#stage3d { width: 100%; height: auto; aspect-ratio: 1.64; border-radius: 0; }
.char-plate .plate-body, .plate-body, .info-panel, .center-info.v51, #stageTop #hudCenter.v51, .final-row, .sb-card {
  background: var(--lacquer); color: var(--ink); border: var(--brass-edge); border-radius: 4px; box-shadow: inset 0 1px 0 #f3d89e14;
}
.char-plate .char-face, .sb-face, .win-face, .fr-face {
  background: #152c21; mask-image: none; -webkit-mask-image: none; border-radius: 4px; filter: none;
}
.char-plate.chip, #myPlate .char-plate {
  background: var(--lacquer); border: var(--brass-edge); border-radius: 5px; padding: 2px; gap: 4px;
}
.char-plate.chip .char-face { display: block; width: 40px; height: 43px; border-radius: 2px; }
.char-plate.chip .plate-body, #myPlate .plate-body { background: transparent; border: 0; box-shadow: none; padding: 1px 5px; }
.char-plate.chip.turn, #myPlate .char-plate.turn { border-color: #e3b96e; box-shadow: inset 0 -2px #b68c51; }
.char-plate.turn .plate-body { border-color: #d3b77d; box-shadow: inset 0 -1px #ae8a55; }
.char-plate.chip.turn .plate-body, #myPlate .turn .plate-body { box-shadow: none; }
.char-plate.turn .char-face { filter: none; }
.plate-score { color: #fff8e7; }
.wind-badge {
  background: none; color: var(--gold); border: 0; padding: 0; border-radius: 0; line-height: 1.3;
}
.plate-tag.oya, .char-plate.chip .ftag.oya { background: #e2c68d; color: #342711; }
.plate-rank, .cp-left b, .final-row .fr-rank { color: var(--gold); }
.cp-sticks, .cp-lbl, .ip-name, .win-hero-sub, .final-row .fr-name, .final-row .fr-side { color: #d6d2c3; }
#stageTop #hudCenter.v51 { border-radius: 3px; }
#myPlate .info-panel { margin: 0; align-self: stretch; border: 0; border-left: var(--brass-edge); border-radius: 0; }
#myPlate .char-face { width: 43px; height: 47px; object-fit: cover; }
#myPlate .plate-body { min-width: 88px; }
.myarea { margin: 5px auto 0; }
.handrow {
  justify-content: center; background: linear-gradient(#19251c,#101910);
  border: var(--brass-edge); border-radius: 4px; box-shadow: inset 0 1px 5px #0008;
}
.opensets:empty, .actions:empty { display: none; }
.actions button { border-radius: 4px; }
.actions button.big { background: linear-gradient(115deg,#ab3c30,#80281f); border-color: #ddad83; }
.actions button.gold { background: linear-gradient(115deg,#ead3a4,#b99862); border-color: #efd9b4; }
.statusline { color: #ece7d9; }
.statusline .wait { color: #ffc68e; }

.overlay { background: #060d0bb0; backdrop-filter: blur(4px); }
.card, .help-card, .info-card {
  border: var(--brass-edge); border-top: 2px solid #b19660; border-radius: 6px;
  background: linear-gradient(145deg,#1d2c24,#101b16 65%); color: var(--ink);
  box-shadow: 0 20px 80px #000a;
}
.card h2, .help-card h2, .info-card h3 { color: #f6e6c6; font-family: var(--display-face); }
.card .btnrow button, .card .btncol button, .card .menu-seg button { border-radius: 4px; }
.card.win52 {
  background: radial-gradient(ellipse at 85% 0,#394531 0,transparent 53%), linear-gradient(145deg,#182a20,#0c1913 72%);
  border: var(--brass-edge); border-top: 2px solid #c4a371; color: var(--ink);
}
.card.win52 h2 { color: #f5e3be; }
.card.win52 .yaku-row { border-bottom: 1px solid #74664982; }
.card.win52 .win-total {
  background: linear-gradient(100deg,#58432a,#322c1e 63%,#22251a);
  border: var(--brass-edge); border-left: 3px solid #e0be7e; border-radius: 3px;
  padding: 8px 12px; box-shadow: inset 0 1px 0 #f5da961c;
}
.card.win52 .win-total .wt-rank { color: #eed5a2; text-shadow: none; }
.card.win52 .win-total .wt-pts { color: #fff4da; text-shadow: none; }
.card.win52.yakuman .win-total { background: linear-gradient(105deg,#78551d,#302a18); border-color: #ebc470; }
.final-row.me { background: linear-gradient(105deg,#423b28,#19281e); border-color: #c8ac72; box-shadow: inset 3px 0 #ddbb7c; }
.final-row.me .fr-name { color: #f1d9a9; }
#startBanner { background: radial-gradient(ellipse at 50% 38%,#294735,#14291e 55%,#0a120d); }
.sb-card .sb-round { color: #f5e5c1; -webkit-text-stroke: 0; text-shadow: 0 2px 6px #0008; }
.sb-card .sb-honba { color: var(--gold); text-shadow: none; }
.help-card .build-tag { position: static; width: fit-content; margin-top: 7px; color: var(--ink-dim); }

/* The wide camera leaves the outer corners free. Keeping the scoring panels
   at the edges preserves the discard pools, indicators and all 3D hitboxes. */
@media (min-width: 850px) and (min-aspect-ratio: 6/5) {
  .wrap { width: min(100%, calc((100svh - 155px) * 1.67 + 28px)); min-width: min(100%, 830px); }
  #table.stage-mode { overflow: visible; }
  #stageTop { position: static; padding: 0; }
  #stage3d { aspect-ratio: 1.67; }
  #stageTop #seatPlates .chip {
    position: absolute; z-index: 3; width: clamp(132px, 13vw, 174px);
  }
  #stageTop #seatPlates .pos2 { bottom: calc(100% + 3px); top: auto; left: 50%; transform: translateX(-50%); }
  #multBadge:not([hidden]) + #table #seatPlates .pos2 { bottom: calc(100% + 40px); }
  #stageTop #seatPlates .pos3 { left: .7%; top: 24%; }
  #stageTop #seatPlates .pos1 { right: .7%; top: 24%; }
  #stageTop #hudCenter.v51 {
    position: absolute; z-index: 3; top: 7px; left: 1.3%; gap: 4px;
    align-items: flex-start; flex-direction: column; padding: 6px 9px;
  }
  #stageTop #hudCenter .cp-sticks { flex-wrap: wrap; gap: 5px; }
  #myPlate { position: relative; }
}
@media (min-width: 850px) and (min-aspect-ratio: 6/5) and (pointer: fine) {
  /* Keep the semantic hand available to keyboard users on the 3D stage. */
  body.has-stage #handRow:not(:focus-within) {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-width: 849px), (max-aspect-ratio: 6/5) {
  #stage3d { aspect-ratio: 1.34; }
}
@media (max-width: 650px) and (orientation: portrait) {
  #titleScreen::before {
    position: absolute; bottom: auto; height: 57svh; min-height: 270px;
    background: linear-gradient(0deg,#0d100d,transparent 31%), url("../assets/title-lounge.webp") 76% 40% / cover no-repeat;
  }
  .title-inner { width: min(calc(100% - 44px), 400px); margin: 0 auto; justify-content: flex-end; padding: max(38svh,215px) 0 max(26px, env(safe-area-inset-bottom)); }
  .logo-title { font-size: clamp(36px, 10vw, 61px); }
  .logo-title .accent { display: inline-block; font-size: 1em; margin: 0 0 0 .08em; }
  .title-btns { width: 100%; }
  .title-btns { margin-top: 18px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 5px; }
  .topbar.refbar { gap: 4px; padding: 3px 0 5px; }
  .topbar.refbar .btn-orange { padding: 3px 6px; font-size: 11px; }
  .topbar.refbar .sound-chip.icon-chip { width: 33px; }
  .topbar.refbar .naki-toggle.refskip { padding: 3px 5px; gap: 2px; font-size: 12px; }
  .topbar .round-title { letter-spacing: .01em; font-size: clamp(15px,3.8vw,19px); }
  #stageTop { padding: 3px; }
  #stageTop #seatPlates { gap: 3px; }
  .char-plate.chip { gap: 2px; }
  .char-plate.chip .char-face { width: clamp(24px,7.6vw,37px); height: clamp(33px,9.6vw,46px); }
  .char-plate.chip .plate-body { padding: 0 1px; }
  .char-plate.chip .plate-top { gap: 2px; }
  .char-plate.chip .plate-name { letter-spacing: 0; }
  #stageTop #hudCenter.v51 { gap: 6px; flex-wrap: wrap; row-gap: 1px; }
  #stage3d { aspect-ratio: 1.15; }
  .actions button { flex: 1 1 auto; padding: 5px 10px; }
  .handrow { padding: 8px 3px 5px; gap: 1px; }
  .tile.drawn { margin-left: 4px; }
}
@media (max-height: 530px) and (orientation: landscape) {
  .title-inner { padding-block: 15px; }
  .logo-title { font-size: clamp(38px,10svh,63px); }
  .title-btns { margin-top: 12px; }
  .title-btns button { min-height: 40px; }
}

.result-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: #e4d5b6; border-bottom: 1px solid #9c855c85;
  padding-bottom: 7px; margin-bottom: 12px; font-weight: 700; font-size: 13px; letter-spacing: .09em;
}
.result-hand { min-width: 0; }
.result-hand h2 { font-family: var(--display-face); font-size: clamp(24px, 2.75vw, 41px); }
.result-settlement h3 { color: #ddc697; font-family: var(--display-face); font-size: 17px; }
.result-settlement .settle-rows { margin-top: 6px; }
.result-settlement .settle-row { gap: 5px; }
.result-settlement .settle-row .plate-sub { flex-wrap: wrap; gap: 1px 4px; }
.result-settlement .st-delta { font-size: clamp(16px,2.2vw,23px); min-width: 65px; }
.card .report-line { white-space: normal; }
@media (min-width: 850px) {
  .card.win52 { max-width: 980px; padding: 20px 30px 23px; }
  .result-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 26px; }
  .result-settlement { border-left: 1px solid #8c785242; padding-left: 22px; }
  .result-settlement h3 { margin-top: 6px; }
  .result-settlement .settle-row { padding: 2px 0; }
  .result-settlement .settle-row .char-face { width: 35px; height: 39px; }
  .card.win52 > .btnrow { border-top: 1px solid #9c855c70; padding-top: 14px; justify-content: flex-end; }
  .card.win52 > .btnrow button { flex: 0 1 auto; }
}
@media (max-width: 560px) {
  .card.win52 { padding: 14px 13px; }
  .result-hand .yaku-row { font-size: 14px; gap: 4px; }
  .result-hand .yaku-row.mult-row { display: block; }
  .result-hand .yaku-row.mult-row .yh { display: block; }
  .card.win52 .win-hero { flex-basis: 84px; }
  .card.win52 .win-face { width: 80px; height: 88px; }
  .card.win52.yakuman .win-hero { flex-basis: 96px; }
  .card.win52.yakuman .win-face { width: 92px; height: 101px; }
  .win-hero-sub { font-size: 10px; white-space: normal; text-align: center; }
  .result-settlement .settle-row .plate-body { min-width: 0; }
}

/* In-hand pickup notices finish behind the score sheet. */
@media (max-width: 560px) {
  .card.win52 > .btnrow {
    position: sticky; bottom: -14px; z-index: 1;
    margin: 10px -13px -14px; padding: 8px 13px 13px;
    background: #112019; border-top: var(--brass-edge);
  }
}
.hand-prompt {
  text-align: center; color: #eed6a2; letter-spacing: .13em;
  font: 700 13px/1.5 var(--display-face); margin-bottom: 2px;
}
/* The control dock stays in the layout. The canvas takes the remaining height
   when a decision, a furiten warning or a long table of waits appears. */
.wrap {
  display: flex; flex-direction: column; height: 100svh; min-height: 0;
  padding-bottom: max(5px, env(safe-area-inset-bottom));
}
.topbar, #multBadge, .myarea, #stageTop { flex: 0 0 auto; }
#table:not(.stage-mode) { flex: 0 1 auto; min-height: 0; overflow: auto; }
#table.stage-mode { min-height: 0; flex: 0 1 auto; }
#table.stage-mode #stage3d { min-height: 0; flex: 0 1 auto; }
#stage3d canvas { position: absolute; inset: 0; }
.myarea {
  width: 100%; display: flex; flex-direction: column; gap: 4px;
  margin: 4px auto 0;
}
.hand-assist {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  min-width: 0; background: #101a15; color: var(--ink);
  border: var(--brass-edge); border-radius: 4px; padding: 4px 6px;
}
#myPlate { flex: 0 0 auto; min-width: 0; }
#myPlate:empty, .hand-guide:has(.statusline:empty):has(.hand-prompt[hidden]) { display: none; }
#myPlate .char-plate.abs { position: static; transform: none; }
.hand-guide { flex: 1 1 250px; min-width: 0; }
.hand-assist .hand-prompt {
  color: var(--gold); margin: 0 0 1px; text-align: left; font-weight: 700; letter-spacing: .06em;
}
.hand-guide .statusline {
  margin: 0; width: 100%; min-width: 0; align-items: center; gap: 2px 6px;
}
.statusline .wait-options {
  width: 100%; max-height: min(112px, 17svh);
  overflow-y: auto; overscroll-behavior-y: contain;
  scrollbar-width: thin; scrollbar-color: #a18d68 #1b2a21;
}
.statusline .wait-opt, .statusline .wait-fixed {
  display: flex; width: 100%; align-items: center; padding: 1px 3px; gap: 2px 5px;
}
.statusline .wait-opt + .wait-opt { border-top: 1px solid #5f614866; }
.statusline .wait-item { gap: 2px; }
.statusline .wait-total { color: #f5d3a0; }
.hand-assist .actions:not(:empty), body.has-stage .hand-assist .actions:not(:empty) {
  order: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 4px; margin: 0; flex: 0 1 auto;
}
.hand-assist .actions button {
  flex: 0 1 auto; min-height: 38px; padding: 3px 12px;
  font-size: 15px; line-height: 1.35;
}
.hand-assist .actions .ghost { color: var(--ink); }
.hand-assist .actions .hint { color: var(--ink-dim); }
.hand-assist .actions .call-t { width: 30px; }
.hand-assist .actions .call-target { gap: 4px; }
.myarea .opensets { margin: 0; }
@media (min-width: 850px) and (min-aspect-ratio: 6/5) {
  body.has-stage .wrap { min-width: 0; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .hand-assist { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 3px; gap: 3px 4px; }
  #myPlate { grid-row: 1; grid-column: 1; justify-self: start; }
  .hand-assist .actions { grid-row: 1; grid-column: 2; }
  .hand-assist .actions:has(.call-target), .hand-assist .actions:has(button:nth-of-type(n+3)) {
    grid-column: 1 / -1; grid-row: auto;
  }
  .hand-assist .actions:has(.hint):has([data-act="riichiCancel"]) .hint { display: none; }
  .hand-assist .actions button { padding: 4px 7px; font-size: 13px; }
  .hand-guide { grid-column: 1 / -1; min-width: 0; }
  #myPlate .char-face { width: 32px; height: 36px; }
  #myPlate .plate-body { min-width: 0; padding-inline: 3px; }
  #myPlate .ip-row { gap: 4px; line-height: 1.16; }
  #myPlate .ip-dots { padding-top: 0; }
  #myPlate .info-panel { padding: 2px 4px; }
  .hand-guide .tile.wait-t { width: 20px; }
  .statusline .wait-options { max-height: min(105px, 16svh); }
  .hand-assist .hand-prompt { font-size: 12px; }
}
@media (max-height: 530px) and (orientation: landscape) and (min-width: 480px) {
  .wrap {
    width: 100%; min-width: 0; max-width: 1100px; display: grid;
    grid-template-columns: minmax(0,1.75fr) minmax(195px,1fr);
    grid-template-rows: auto auto minmax(0,1fr) auto auto; gap: 2px 5px;
    padding: max(2px, env(safe-area-inset-top)) max(5px, env(safe-area-inset-right)) max(2px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
  }
  .topbar { grid-area: 1 / 1 / 2 / -1; padding-block: 1px; }
  #multBadge { grid-area: 2 / 1 / 3 / -1; padding-block: 0; margin-block: 0; font-size: 12px; }
  #table { grid-area: 3 / 1; margin: 0; }
  #table.stage-mode { overflow: hidden; }
  #table.stage-mode #stageTop { position: static; padding: 2px; gap: 2px; }
  #table.stage-mode #stage3d { width: 100%; height: 0; flex: 1; aspect-ratio: auto; }
  #stageTop #seatPlates .char-plate.chip { position: static; flex: 1; transform: none; }
  #stageTop #seatPlates { gap: 2px; }
  #stageTop #seatPlates .char-face { width: 22px; height: 27px; }
  #stageTop #seatPlates .chip .plate-top { gap: 1px; }
  #stageTop #seatPlates .chip .plate-body { padding: 0 1px; }
  #stageTop #seatPlates .chip .plate-name { font-size: 11px; }
  #stageTop #seatPlates .chip .plate-score { font-size: 12px; }
  #stageTop #hudCenter.v51 { position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1px 6px; padding: 2px; }
  #stageTop #hudCenter .cp-left b { font-size: 14px; }
  #stageTop #hudCenter .tile.mini { width: 14px; }
  .myarea { display: contents; }
  .hand-assist {
    grid-area: 3 / 2; display: flex; flex-direction: column; align-items: stretch;
    flex-wrap: nowrap; gap: 4px; padding: 4px; min-height: 0; overflow-y: auto;
  }
  .hand-guide { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .hand-guide .statusline { flex: 0 1 auto; min-height: 0; flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .hand-guide .wait-options { max-height: none; min-height: 28px; flex: 0 1 auto; }
  .hand-guide .wait-t { width: 18px; }
  .hand-guide .furiten-badge { align-self: start; }
  .hand-assist .actions:not(:empty) { flex: 0 0 auto; justify-content: flex-start; }
  #handRow { grid-area: 4 / 1 / 5 / -1; padding: 3px; }
  #handRow button.tile { max-width: min(5.8vw, 36px); }
  #openSets { grid-area: 5 / 1 / 6 / -1; }
}
.statusline .wait-count {
  font-size: 11px; font-weight: 700; line-height: 1.15; color: #ddcba5; letter-spacing: .04em;
}
.wait-options:focus-visible { outline: 2px solid #e8c484; outline-offset: 0; }
@media (max-height: 530px) and (orientation: landscape) and (min-width: 480px) {
  #myPlate .char-face { width: 28px; height: 32px; }
  #myPlate .plate-body { min-width: 0; padding: 0 2px; }
  #myPlate .plate-name, #myPlate .plate-score { font-size: 12px; }
  #myPlate .info-panel { padding: 1px 3px; }
  #myPlate .ip-name, #myPlate .ip-diff { font-size: 10px; }
  #myPlate .ip-row { line-height: 1.06; gap: 3px; }
  #myPlate .ip-dots { padding: 0; }
  .hand-assist .actions:not(:empty), body.has-stage .hand-assist .actions:not(:empty) {
    flex: 0 0 auto; justify-content: flex-start; max-height: min(94px, 28svh); overflow-y: auto;
  }
  .hand-assist .actions button { min-height: 32px; padding: 2px 5px; font-size: 13px; }
  .hand-assist .actions .call-target { flex: 1 1 100%; }
  .hand-assist .actions .call-t { width: 20px; }
  .hand-assist .actions .btn-tiles .tile { width: 15px; }
  .hand-guide .wait-fixed { min-height: 30px; overflow-y: auto; }
}

.statusline .shanten-status { color: #f5e3bd; font-weight: 700; white-space: nowrap; }
.tile.hand.tenpai-choice::before {
  content: ""; position: absolute; bottom: 1px; left: 17%; width: 66%; height: 3px;
  border-radius: 2px; background: #34d893; box-shadow: 0 0 0 1px #206849;
  pointer-events: none;
}
