/* casino/css/hush-rooms.css - THE HOUSE'S READABLE ROOMS (slice 8 of the readable rooms, 2026-10-13; docs/READABILITY.md).
 *
 * The main game's room kit (../js/room-ui.js and ../js/room-ui.css) in the Gilded Hush's own colours: velvet and gilt,
 * the lamps' amber, the house's Palatino. It holds every rule of the kit (no word under 16 px, every button 44 px, the
 * camera's side kept clear, the side tabs' 42 px) and adds the house's own:
 *
 *   THE ROUND BACK (SPEC 4.3, Goliath 2026-10-11: every casino screen's Back is one round gilt arrow disc in the bottom
 *   right corner, never a BACK plate at the top left): the room's Back is that disc, on THE BOTTOM LINE with the room's
 *   line (its status) beside it, under the room's sections, so nothing scrolls under it.
 *   THE CURRENCIES BAR steps aside while a room is up: the room's header carries the same four numbers
 *   (HUSH.purseBar.coins()).
 *   THE BOARD (casino/js/hush-board-room.js): on a PC the four rungs stand side by side as the canvas had them, the
 *   rest across the foot; a phone lists them on the left and shows one at a time.
 *   THE SHEETS: a row of choices (one pressed), the host's dealer between two arrows, the code's one field.
 */

/* ---- the house's colours on the kit --------------------------------------------------------------------------------- */
.rui, .rui[data-side="horde"], .rui-dlg-back, .rui-dlg-back[data-side="horde"] {
  --rui-ink: #FBF3E7;
  --rui-soft: #E3D3F5;
  --rui-panel: #1E0F18;
  --rui-panel-2: #2A1622;
  --rui-line: rgba(201, 162, 70, 0.5);
  --rui-gold: #F5C242;
  --rui-warn: #FFB060;
  --rui-accent: #D9B8FF;
  --rui-title-font: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
}
.rui[data-house] { background: linear-gradient(180deg, rgba(11, 8, 20, 0.5), rgba(11, 8, 20, 0.7)); }
.rui[data-house] .rui-head { background: rgba(26, 12, 20, 0.96); border-bottom-color: rgba(201, 162, 70, 0.55); }
.rui[data-house] .rui-card { --card-accent: #B8913E; background: rgba(30, 15, 24, 0.95); }
.rui-dlg-back .rui-dlg { border-color: rgba(201, 162, 70, 0.85); }

/* a phone held sideways: the house's four currencies are each an icon and a number (the word stays for a screen reader
   and the tooltip), so the room's name is never cut short */
.rui[data-house][data-mode="compact"][data-shape="long"] .rui-coin__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the currencies are the one part of the row that gives way, at any width, in any font and at any text size (UI-116: a
   width picked in one font held in the session's Inter and GitHub's fonts, and an iPhone's own Trebuchet MS put How to
   play off the screen). The name keeps its width; the currencies take what is left of the row and wrap in it, right
   against the buttons, never narrower than one currency (narrower, they lay under the text size button); and when the
   name, one currency and the buttons cannot share the row (Largest text on a small phone), the buttons, and the
   currencies too if need be, take the line under the name, at its right */
.rui[data-house][data-mode="compact"][data-shape="long"] .rui-head { flex-wrap: wrap; }
.rui[data-house][data-mode="compact"][data-shape="long"] .rui-titles { flex: 0 0 auto; }
.rui[data-house][data-mode="compact"][data-shape="long"] .rui-bal { flex: 1 1 0; flex-wrap: wrap; justify-content: flex-end; }
.rui[data-house][data-mode="compact"][data-shape="long"] .rui-tools { margin-left: auto; }
/* a header too narrow for the name, four currencies and the two buttons in one row (an iPhone SE or 8 held sideways,
   667 wide, signed in, UI-60; an iPhone 14, 15 or Pro Max held sideways, 844 to 932 wide, UI-116): the currencies' two
   rows have smaller icons, inside the buttons' height, so the header stays one button tall. The Cask Room's row needs
   737 px in Inter and 752 in Trebuchet MS */
@container (max-width: 780px) {
  .rui[data-house][data-mode="compact"][data-shape="long"] .rui-bal { gap: 2px 10px; }
  .rui[data-house][data-mode="compact"][data-shape="long"] .rui-coin { gap: 4px; }
  .rui[data-house][data-mode="compact"][data-shape="long"] .rui-coin__icon { width: calc(22px * var(--rui-s)); height: calc(22px * var(--rui-s)); }
}

/* THE CURRENCIES BAR steps aside for a room; the room's header has the same numbers */
html[data-room] #hush-purse { display: none !important; }

/* ---- THE BOTTOM LINE: the room's line and the round Back ------------------------------------------------------------ */
.rui[data-house] { --hush-back: 56px; }
@media (pointer: coarse) { .rui[data-house] { --hush-back: 52px; } }
.rui[data-house] .rui-body { order: 2; }
.rui[data-house] .hush-line {
  order: 3; display: flex; align-items: center; gap: 12px; min-height: calc(var(--hush-back) + 12px);
  padding: 6px calc(var(--rui-edge-r) + var(--rui-tabs) + 10px) calc(6px + env(safe-area-inset-bottom, 0px)) calc(var(--rui-edge-l) + var(--rui-tabs) + 8px);
  border-top: 1px solid rgba(201, 162, 70, 0.4); background: rgba(26, 12, 20, 0.94);
}
.rui[data-house] .hush-line > .rui-status { display: block; flex: 1 1 auto; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; color: #FFD9A8; font-style: italic; }
.rui[data-house] .hush-line > .rui-back {
  position: relative; z-index: 2; flex: 0 0 auto; margin-left: auto;
  width: var(--hush-back); height: var(--hush-back); min-width: 0; min-height: 0; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #C9A246; background: radial-gradient(circle at 35% 30%, #4A1E2E, #1A0A12 72%); color: #F5C242;
  box-shadow: 0 0 0 3px rgba(26, 10, 18, 0.9), 0 6px 16px rgba(0, 0, 0, 0.55);
}
.rui[data-house] .hush-line > .rui-back .rui-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rui[data-house] .hush-line > .rui-back::before { content: '\2190'; margin: 0; font: bold 30px/1 var(--rui-title-font); }
/* a phone held sideways has no height to spare for a line of its own: the line's bar steps aside (display: contents),
   the room runs to the foot of the screen, the words come under the header only while they have something to say (as
   the main game's rooms have them), and the disc keeps the bottom right corner in a lane of its own at the right of the
   room's sections, so nothing scrolls under it */
.rui[data-house][data-mode="compact"] .hush-line { display: contents; }
.rui[data-house][data-mode="compact"] .hush-line > .rui-status { order: 1; padding: 4px calc(var(--rui-edge-r) + var(--rui-tabs) + 8px) 4px calc(var(--rui-edge-l) + var(--rui-tabs) + 8px); border-bottom: 1px solid rgba(201, 162, 70, 0.4); background: rgba(26, 12, 20, 0.94); }
.rui[data-house][data-mode="compact"] .hush-line > .rui-status:empty { display: none; }
.rui[data-house][data-mode="compact"] .rui-main { padding-right: calc(var(--hush-back) + 18px); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.rui[data-house][data-mode="compact"] .hush-line > .rui-back { position: absolute; margin: 0; right: calc(var(--rui-edge-r) + var(--rui-tabs) + 8px); bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.rui[data-house] .hush-line > .rui-back:hover, .rui[data-house] .hush-line > .rui-back:focus-visible { border-color: #F5C242; background: radial-gradient(circle at 35% 30%, #5A2238, #2A0F1A 72%); }

/* ---- THE BOARD ------------------------------------------------------------------------------------------------------ */
.rsh-board--hush-board .rui-card__name { font-family: var(--rui-title-font); letter-spacing: 0.04em; color: var(--rui-gold); }
.rsh-board--hush-board .rui-card__line { color: var(--rui-soft); }
.rsh-board--hush-board .rui-card__why { color: #D9C4FA; font-weight: normal; font-style: italic; }
.rsh-board--hush-board .rsh-empty { font-style: italic; color: #E8D9FF; }
.rsh-board--hush-board .rui-card { grid-template-columns: minmax(0, 1fr); }
.rsh-board--hush-board .rui-card__art { display: none; }
@media (min-width: 1100px) {
  .rui:not([data-mode="compact"]) .rsh-board--hush-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; align-content: start; }
  .rsh-board--hush-board > .rui-sec { grid-column: 1 / -1; }
  .rsh-board--hush-board > [data-sec="wick"], .rsh-board--hush-board > [data-sec="moth"],
  .rsh-board--hush-board > [data-sec="truce"], .rsh-board--hush-board > [data-sec="eye"] { grid-column: auto; min-width: 0; }
  .rsh-board--hush-board > [data-sec="wick"] .rui-grid, .rsh-board--hush-board > [data-sec="moth"] .rui-grid,
  .rsh-board--hush-board > [data-sec="truce"] .rui-grid, .rsh-board--hush-board > [data-sec="eye"] .rui-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- THE SHEETS ----------------------------------------------------------------------------------------------------- */
.hush-sheet__line { color: var(--rui-ink); }
.hush-sheet__line--big { font-weight: bold; color: #E8D9FF; }
.hush-sheet__group { margin: 14px 0 6px; }
.hush-sheet__label { display: block; margin: 0 0 8px; font: bold var(--rui-min)/1.3 var(--font, 'Trebuchet MS', sans-serif); letter-spacing: 0.18em; color: #C9A8F5; }
.hush-sheet__choices { display: flex; flex-wrap: wrap; gap: 10px; }
.hush-sheet__choice { min-width: calc(5.5em * var(--rui-s)); font-family: var(--rui-title-font); font-size: var(--rui-num); }
.hush-sheet__choice[aria-pressed="true"] { background: linear-gradient(180deg, #F5C242, #C9A246); border-color: #FFF1CF; color: #1A1026; }
.hush-sheet__step { display: flex; align-items: center; gap: 12px; }
.hush-sheet__step-name { flex: 1 1 auto; min-width: 0; text-align: center; font: bold var(--rui-num)/1.2 var(--rui-title-font); letter-spacing: 0.06em; color: var(--rui-gold); }
.hush-sheet__arrow { font-size: var(--rui-num); }
.hush-sheet__code {
  display: block; width: min(100%, calc(9.5em * var(--rui-s))); min-height: 56px; padding: 6px 14px; box-sizing: border-box;
  border: 2px solid #C9A246; border-radius: 10px; background: #07050B; color: #F5C242;
  font: bold calc(34px * var(--rui-s))/1.2 var(--rui-title-font); letter-spacing: 0.4em; text-transform: uppercase;
}
.hush-sheet__code:focus { outline: none; border-color: #F5C242; box-shadow: 0 0 0 3px rgba(245, 194, 66, 0.35); }
.hush-sheet__status { min-height: 1.5em; margin: 12px 0 0; font-style: italic; color: var(--rui-warn); }
.hush-sheet__status:empty { margin: 0; min-height: 0; }
.hush-sheet__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.hush-sheet__acts .rui-btn { min-width: calc(8em * var(--rui-s)); }

/* ---- THE STORY BOX (casino/js/hush-speech.js): the house's story box as page text -------------------------------------------
   The canvas keeps the dim, the portraits and a card's painting; the box is the page's: the speaker's name and title on
   their side, SKIP on the other, the line at the reading size, CONTINUE beside its last words. Clear of the camera's side
   and the side tabs, never over the bottom bar of an iPhone. */
.hush-speech {
  --rui-min: calc(16px * var(--rui-s, 1)); --rui-body: calc(18px * var(--rui-s, 1)); --rui-num: calc(22px * var(--rui-s, 1));
  --talk-l: calc(var(--sotc-edge-l, env(safe-area-inset-left, 0px)) + 50px);
  --talk-r: calc(var(--sotc-edge-r, env(safe-area-inset-right, 0px)) + 50px);
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: env(safe-area-inset-top, 0px) var(--talk-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--talk-l);
  box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-family: var(--font, 'Trebuchet MS', 'Lucida Grande', Verdana, sans-serif); color: #FBF3E7;
}
.hush-speech *, .hush-speech *::before { box-sizing: border-box; }
.hush-speech__box {
  width: 100%; max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "text foot";
  column-gap: 18px; row-gap: 6px; align-items: end; padding: 10px 18px 12px;
  border: 2px solid rgba(201, 162, 70, 0.8); border-radius: 12px; background: rgba(26, 16, 36, 0.96); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.hush-speech__head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.hush-speech[data-side="right"] .hush-speech__head { flex-direction: row-reverse; }
.hush-speech__plate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.hush-speech[data-side="right"] .hush-speech__plate { justify-content: flex-end; text-align: right; }
.hush-speech__name { font: bold var(--rui-num)/1.2 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif; letter-spacing: 0.05em; color: #F5C242; text-shadow: 0 2px 0 #1A1026; }
.hush-speech__title { font-size: var(--rui-min); line-height: 1.3; color: #D9C4FA; font-style: italic; }
.hush-speech__text { grid-area: text; align-self: start; margin: 0; font-size: calc(20px * var(--rui-s, 1)); line-height: 1.45; color: #FBF3E7; }
.hush-speech__rest { color: transparent; }
/* while the story is up the page's own layers keep still under it (inert) and the Undercroft's header goes dark with
   the canvas's dim, so nothing under the story looks pressable */
html[data-hush-speech] .rvm[data-house] .rvm-head { filter: brightness(0.4); }
.hush-speech__said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.hush-speech__foot { grid-area: foot; display: flex; justify-content: flex-end; }
.hush-speech__btn {
  min-height: 48px; min-width: 48px; padding: 8px 18px; border-radius: 24px; cursor: pointer;
  font: bold var(--rui-min)/1.2 var(--font, 'Trebuchet MS', sans-serif); letter-spacing: 0.08em;
  border: 2px solid #C9A246; background: #2A1622; color: #F5C242;
}
.hush-speech__more { padding: 8px 22px; border-width: 3px; background: linear-gradient(180deg, #5A2238, #3A1426); color: #FBF3E7; font-size: var(--rui-body); }
.hush-speech__more::after { content: ''; display: inline-block; margin-left: 12px; border: 7px solid transparent; border-left: 11px solid #F5C242; border-right: 0; vertical-align: -1px; }
.hush-speech[data-typing] .hush-speech__more { opacity: 0.55; }
.hush-speech__btn:hover, .hush-speech__btn:focus-visible { border-color: #F5C242; background: #4A1E2E; outline: none; box-shadow: 0 0 0 3px rgba(245, 194, 66, 0.35); }
.hush-speech__more:hover, .hush-speech__more:focus-visible { background: linear-gradient(180deg, #6A2A44, #4A1A30); }
/* a narration card: the words in the middle of the screen over the canvas's painting, SKIP and CONTINUE under them */
.hush-speech__card { display: none; }
.hush-speech[data-mode="card"] { justify-content: center; }
.hush-speech[data-mode="card"] .hush-speech__card {
  display: block; max-width: 46em; margin: auto 0 0; text-align: center; font: italic calc(24px * var(--rui-s, 1))/1.5 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  color: #FBF3E7; text-shadow: 0 3px 12px #000, 0 0 2px #0B0814;
}
.hush-speech[data-mode="card"] .hush-speech__box { display: flex; justify-content: center; gap: 14px; margin: 0 0 auto; padding: 18px 0 0; border: 0; background: none; box-shadow: none; }
.hush-speech[data-mode="card"] .hush-speech__plate, .hush-speech[data-mode="card"] .hush-speech__text { display: none; }
.hush-speech[data-mode="card"] .hush-speech__head, .hush-speech[data-mode="card"] .hush-speech__foot { display: contents; }
/* a phone held sideways: a little less round the box, the line at the reading size */
@media (max-height: 560px) {
  .hush-speech { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .hush-speech__box { padding: 6px 14px 8px; column-gap: 14px; row-gap: 2px; }
  .hush-speech__text { font-size: var(--rui-body); }
  .hush-speech[data-mode="card"] .hush-speech__card { font-size: calc(20px * var(--rui-s, 1)); }
}

/* ---- THE UNDERCROFT'S WORDS (casino/js/hush-lobby-page.js on js/village-map.js) --------------------------------------
   The map kit in the house's colours: the header over the gallery's dark, the currencies in it (the pinned strip steps
   aside), a door's plate and a bark in brass and velvet. */
.rvm[data-house], .rvm[data-house][data-side="horde"] {
  --rui-ink: #FBF3E7; --rui-soft: #E3D3F5; --rui-panel: #1E0F18; --rui-panel-2: #2A1622; --rui-line: rgba(201, 162, 70, 0.5);
  --rui-gold: #F5C242; --rui-accent: #D9B8FF; --rui-warn: #FFB060;
  --rui-title-font: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
}
.rvm[data-house] .rvm-head { background: linear-gradient(180deg, rgba(26, 12, 20, 0.95), rgba(26, 12, 20, 0.82)); border-bottom-color: rgba(201, 162, 70, 0.55); }
.rvm[data-house] .rvm-title { color: var(--rui-gold); letter-spacing: 0.08em; }
.rvm[data-house] .rvm-tag { font-style: italic; color: #D9C4FA; }
.rvm[data-house] .rvm-card { background: rgba(26, 16, 22, 0.96); border-color: var(--card-accent, rgba(201, 162, 70, 0.8)); }
.rvm[data-house] .rvm-card__name { color: var(--rui-gold); letter-spacing: 0.04em; }
.rvm[data-house] .rvm-card__line { color: #FBF3E7; }
.rvm[data-house] .rvm-card[data-shut] .rvm-card__name { color: #E3D3F5; }
.rvm[data-house] .rvm-toast { border-color: rgba(201, 162, 70, 0.7); }
html[data-hush-map] #hush-purse { display: none !important; }
.hush-coins { flex: 0 1 auto; min-width: 0; padding: 4px 12px; background: rgba(26, 12, 20, 0.6); }
.hush-coins[hidden] { display: none; }
.hush-coins .rui-bal { flex-wrap: nowrap; gap: 4px 14px; }
.hush-coins__guest { font-size: var(--rui-min); font-style: italic; color: #E3D3F5; }
/* held sideways on a phone: each currency an icon and its number (the word stays for a screen reader and the tooltip) */
.rvm[data-house][data-mode="compact"] .rui-coin__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rvm[data-house][data-mode="compact"] .hush-coins .rui-bal { gap: 4px 10px; }
.rvm[data-house][data-mode="compact"] .hush-coins .rui-coin__icon { width: calc(24px * var(--rui-s)); height: calc(24px * var(--rui-s)); }

/* ---- THE FRONT PAGE (casino/js/hush-front-page.js on js/front-page.js) -----------------------------------------------
   The main game's front page kit in the house's colours: SHADOWS OF THE CORN over the house's name, the tagline in the
   lamps' amber, the money line under the rows, the currencies under the account where the pinned strip stood. */
.rfp[data-house] { --rui-accent: #D9B8FF; }
html[data-hush-front] #hush-purse { display: none !important; }
.rfp[data-house] .hush-front__kicker { margin: 0 0 calc(6 * var(--fpx)); font: bold max(var(--rui-min), calc(20 * var(--fpx)))/1.2 var(--rui-title-font); letter-spacing: 0.25em; color: #F5C242; text-shadow: 0 2px 0 #1A1026, 0 0 8px #0B0814; }
.rfp[data-house] .rfp-headline { color: #FFD9A8; }
.rfp[data-house] .hush-front__money { margin: 2px 0 0 4px; font-size: max(var(--rui-min), calc(14 * var(--fpx))); font-style: italic; color: #D9C4FA; text-shadow: 0 1px 2px #000, 0 0 6px #0B0814; }
.rfp[data-house] .hush-front__coins { justify-content: flex-end; gap: 6px 14px; padding: 6px 12px; border-radius: 12px; background: rgba(26, 12, 20, 0.82); border: 1px solid rgba(201, 162, 70, 0.55); pointer-events: none; }
.rfp[data-house] .hush-front__coins:empty { display: none; }
.rfp[data-house] .hush-front__coins .rui-coin__icon { width: max(24px, calc(26 * var(--fpx))); height: max(24px, calc(26 * var(--fpx))); }
.rfp[data-house] .hush-front__coins .rui-coin__n { font-size: max(calc(18px * var(--rui-s)), calc(19 * var(--fpx))); }
.rfp[data-house] .hush-front__coins .rui-coin__word { font-size: max(var(--rui-min), calc(14 * var(--fpx))); color: #E3D3F5; }
.rfp[data-house][data-mode="wide"] .rfp-corner { max-width: calc(620 * var(--fpx)); }
.rfp[data-house][data-mode="wide"] .hush-front__coins { flex-wrap: nowrap; }
.rfp[data-house][data-mode="compact"] .hush-front__kicker { margin-bottom: 2px; font-size: calc(16px * var(--rui-s)); letter-spacing: 0.18em; }
.rfp[data-house][data-mode="compact"] .hush-front__coins { flex-wrap: wrap; gap: 4px 10px; }
.rfp[data-house][data-mode="compact"] .hush-front__coins .rui-coin__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* THE HOUSE RULES, a sheet: the five, numbered, and the foot line */
.hush-rules { margin: 0; padding: 0 0 0 1.6em; display: flex; flex-direction: column; gap: 12px; }
.hush-rules__rule { font: var(--rui-body)/1.5 var(--rui-title-font); color: var(--rui-ink); padding-left: 4px; }
.hush-rules__rule::marker { font-weight: bold; color: var(--rui-gold); }
.hush-rules__foot { margin-top: 16px; font-style: italic; color: #D9C4FA; }

/* ---- THE TABLE'S WORDS (casino/js/hush-table-page.js) ----------------------------------------------------------------
   The frame's words over the table's canvas: the header and the purse corner over the room's painting, a plate by each
   portrait, SIT on a chair, the pills, the bubbles, the notice, the toasts and the rail. Each is placed in stage px by
   the script and is never smaller than the canvas drew it (--k, the canvas's CSS px per stage px); none is under 16 px.
   Only SIT and the rail's buttons take a press; the rest lets a tap through to the felt. */
html[data-hush-table] #hush-purse { display: none !important; }
.htp { --k: 1; z-index: 30; padding: 0 calc(var(--rui-edge-r) + var(--rui-tabs)) 0 calc(var(--rui-edge-l) + var(--rui-tabs)); line-height: 1.25; }
.htp [hidden] { display: none !important; }
.htp > *, .htp-seats > *, .htp-lift > * { position: absolute; left: 0; top: 0; margin: 0; box-sizing: border-box; }
.htp p, .htp h2 { margin: 0; }
.htp-seats, .htp-lift { position: absolute; inset: 0; }
.htp[data-covered] { visibility: hidden; }   /* the bell's lesson over the table (slice 8c) */
.htp-head, .htp-purse { pointer-events: none; text-shadow: 0 2px 0 #1A1026, 0 0 8px #0B0814, 0 0 2px #0B0814; }
.htp-title { margin: 0; font: bold max(calc(18px * var(--rui-s)), calc(32px * var(--k)))/1.15 var(--rui-title-font); letter-spacing: 0.08em; color: var(--rui-gold); }
.htp-sub { margin: 2px 0 0 calc(10px * var(--k)); font-size: max(var(--rui-min), calc(20px * var(--k))); color: #C9A8F5; }
.htp-head[data-faint] .htp-sub { color: #FFB060; }
/* Enter VR under the room's line (hush-vr.js): the header lets presses through, the button takes its own */
.htp-vr { pointer-events: auto; margin: 6px 0 0 calc(10px * var(--k)); min-height: 44px; text-shadow: none; }
/* while the table is in a headset the flat page rests unpainted (hush-vr.js sets it; nothing on it can be seen or pressed then) */
html[data-hush-vr] body > * { visibility: hidden !important; }
.htp-purse { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.htp-coins { justify-content: flex-end; flex-wrap: nowrap; gap: 4px 12px; padding: 4px 12px; border-radius: 12px; background: rgba(26, 12, 20, 0.86); border: 1px solid rgba(201, 162, 70, 0.55); text-shadow: none; }
.htp-coins .rui-coin__icon { width: calc(22px * var(--rui-s)); height: calc(22px * var(--rui-s)); }
.htp-purse__tag { font: bold max(var(--rui-min), calc(22px * var(--k)))/1.2 var(--rui-title-font); letter-spacing: 0.1em; color: #F5C242; }
.htp-purse__tag[data-tone="rose"] { color: #FF8FC7; }
.htp-purse__line { font-weight: bold; font-size: max(var(--rui-min), calc(16px * var(--k))); color: #D9C4FA; }
.htp-purse[data-dim] .htp-purse__tag { opacity: 0.6; }
.htp[data-mode="compact"] .htp-coins { gap: 2px 8px; padding: 2px 10px; }
.htp[data-mode="compact"] .htp-coins .rui-coin__n { font-size: calc(17px * var(--rui-s)); }
.htp[data-mode="compact"] .htp-coins .rui-coin__icon { width: calc(18px * var(--rui-s)); height: calc(18px * var(--rui-s)); }
.htp[data-mode="compact"] .htp-coins .rui-coin__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A SEAT'S PLATE: the name over the stack (or the status), lacquer with a gilt edge, gold for yours */
.htp-plate {
  display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 13em; padding: 2px 10px;
  border: 1px solid rgba(201, 162, 70, 0.75); border-radius: 8px; background: rgba(23, 18, 29, 0.92); box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
  pointer-events: none; text-align: center; line-height: 1.15; overflow-wrap: anywhere;
}
.htp-plate[data-you] { border: 2px solid #F5C242; }
/* the name and the stack on one line, where a crowded rail has no room for two (hush-table-page.js placeSeats) */
.htp-plate[data-row] { flex-direction: row; align-items: baseline; gap: 0.45em; white-space: nowrap; }
.htp-plate[data-kind="pill"] { border-radius: 999px; padding: 2px 14px; }
.htp-plate__name { font: bold max(var(--rui-min), calc(17px * var(--k)))/1.15 var(--rui-title-font); color: #FBF3E7; }
.htp-plate__line { font-weight: bold; font-size: max(var(--rui-min), calc(20px * var(--k))); color: #F5C242; }
.htp-plate[data-tone="rose"] .htp-plate__line { color: #FF8FC7; }
.htp-plate[data-tone="grey"] .htp-plate__line { color: #9C8CB8; }
.htp-plate[data-tone="dim"] .htp-plate__line { color: #BFB0DA; }
.htp-plate[data-tone="plain"] .htp-plate__line { color: #FBF3E7; }

/* SIT on a chair you may take (HELD while it is kept): a round gilt button on the chair's ring */
.htp-chair {
  min-width: var(--rui-tap); min-height: var(--rui-tap); padding: 4px 12px; border-radius: 999px; pointer-events: auto; cursor: pointer;
  border: 2px solid #F5C242; background: rgba(11, 8, 20, 0.82); color: #F5C242; box-shadow: 0 0 0 3px rgba(11, 8, 20, 0.6);
  font: bold var(--rui-min)/1 var(--rui-title-font); letter-spacing: 0.08em;
}
.htp-chair:hover, .htp-chair:focus-visible { background: #4A1E2E; outline: none; box-shadow: 0 0 0 3px rgba(245, 194, 66, 0.4); }
.htp-chair:disabled { cursor: default; border-color: #E9DFC6; color: #E9DFC6; }

/* THE GAME'S OWN BUTTONS (slice 8c; js/hush-table-page.js): a kit button (DEAL, HIT, UNDO, DONE...) as a page button
   over its place, its fill the game's, 44 px at least (48 on a touch screen); the page sets each one's width, its
   place's or what its words need where a row shares its room. The games' small words are raised on the canvas. */
.htp-btn {
  position: absolute; min-width: var(--rui-tap); min-height: max(var(--rui-tap), var(--h, 0px)); margin: 0; padding: 2px 6px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(201, 162, 70, 0.85); border-radius: 10px; background: var(--fill, #2A2140); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font: bold var(--rui-min)/1.15 var(--rui-title-font); letter-spacing: 0.02em; text-align: center; white-space: pre; cursor: pointer; pointer-events: auto;
}
.htp-btn:hover, .htp-btn:focus-visible { filter: brightness(1.15); outline: none; box-shadow: 0 0 0 3px rgba(245, 194, 66, 0.5); }
.htp-btn:disabled { background: #4A4060; color: rgba(251, 243, 231, 0.6) !important; cursor: default; filter: none; }

/* A SEAT'S MOVE over its face for a beat */
.htp-pill { padding: 2px 12px; border-radius: 999px; border: 2px solid #C9A246; background: #FBF3E7; color: #1A1026; font: bold var(--rui-min)/1.3 var(--font, 'Trebuchet MS', sans-serif); letter-spacing: 0.04em; pointer-events: none; white-space: nowrap; }
.htp-pill[data-tone="gold"] { background: #F5C242; }
.htp-pill[data-tone="rose"] { background: #FF8FC7; }
.htp-pill[data-tone="grey"] { background: #BFB0DA; }
.htp-pill[data-tone="green"] { background: #A8E05F; }

/* THE BUBBLES: cream with a gilt rim and a tail to the speaker */
.htp-bubble {
  padding: 6px 14px; border: 2px solid #F5C242; border-radius: 12px; background: #FBF3E7; color: #2A1F42; box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.28);
  font: bold italic max(var(--rui-min), calc(16px * var(--k)))/1.3 var(--rui-title-font); text-align: center; pointer-events: none; transition: opacity 0.2s;
}
.htp-bubble--dealer { text-align: left; font-size: max(var(--rui-min), calc(16px * var(--k))); }
.htp-bubble[data-going] { opacity: 0; }
.htp-bubble::after { content: ''; position: absolute; border: 9px solid transparent; }
.htp-bubble[data-tail="down"]::after { top: 100%; left: var(--tail, 50%); transform: translateX(-50%); border-top: 12px solid #F5C242; border-bottom: 0; }
.htp-bubble[data-tail="up"]::after { bottom: 100%; left: var(--tail, 50%); transform: translateX(-50%); border-bottom: 12px solid #F5C242; border-top: 0; }
.htp-bubble[data-tail="left"]::after { right: 100%; top: var(--tail, 50%); transform: translateY(-50%); border-right: 12px solid #F5C242; border-left: 0; }

/* THE NOTICE across the felt, THE TOAST over the bottom bar */
.htp-notice { padding: 10px 18px; border-radius: 8px; background: rgba(11, 8, 20, 0.86); color: #FBF3E7; text-align: center; font: italic max(var(--rui-body), calc(20px * var(--k)))/1.4 var(--rui-title-font); pointer-events: none; }
.htp-toast { max-width: 36em; padding: 6px 16px; border-radius: 10px; border: 1px solid rgba(201, 162, 70, 0.7); background: rgba(26, 16, 36, 0.95); color: #FBF3E7; text-align: center; font-weight: bold; font-size: max(var(--rui-min), calc(17px * var(--k))); pointer-events: none; }
.htp-toast[data-tone="gold"] { color: #F5C242; }

/* THE RAIL on the bottom line: RAIL, TAKE A SEAT and INVITE (or the Snug's word) */
.htp-rail { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.htp-rail__tag { font: bold var(--rui-min)/1.2 var(--rui-title-font); letter-spacing: 0.18em; color: #C9A8F5; text-shadow: 0 1px 2px #000, 0 0 6px #0B0814; }
.htp-rail__note { max-width: 26em; font-style: italic; color: #E8D9FF; text-align: center; text-shadow: 0 1px 2px #000, 0 0 6px #0B0814; }
.htp-rail__btn { font-family: var(--rui-title-font); letter-spacing: 0.06em; }

/* THE MENU, a sheet: its rows as a column of buttons */
/* two columns where the dialog is wide enough (a phone held sideways shows every row without a scroll) */
.htp-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.htp-menu__row { width: 100%; font-family: var(--rui-title-font); letter-spacing: 0.06em; }
.hush-table-sheet .hush-sheet__status[data-tone="plain"] { color: #E8D9FF; }
.hush-table-sheet .hush-sheet__status[data-tone="good"] { color: #A8E05F; }
