/* Cannons & Coastlines, digital edition: styles.css
   Styled after the printed rulebook: parchment paper, brown ink, gold
   hairline rules, crimson callouts, Pirata One titles, Crimson Text body.
   Portrait: panels above and below the table. Landscape: left and right. */

@font-face { font-family: 'Pirata One'; src: url('fonts/PirataOne-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Crimson Text'; src: url('fonts/CrimsonText-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Crimson Text'; src: url('fonts/CrimsonText-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Crimson Text'; src: url('fonts/CrimsonText-Italic.ttf') format('truetype'); font-style: italic; font-display: swap; }

:root {
  --paper: #f7eed9; --card: #fbf4e3; --tint: #eee1c3; --edge: #e8dcc0;
  --ink: #1a1209; --ink-soft: #5a3a1e; --ink-faint: #8a6f45; --heading: #2c1810;
  --brown: #3c2415; --gold: #a8801a; --rule: #c4a87a; --crimson: #8b1a1a; --crimson-dim: #6b1414;
  --box: #6b4c30; --deck: #2b2018; --deck-deep: #1e1610; --cream: #faf3e0;
  --stripe: rgba(210,185,145,.16);
  --display: 'Pirata One', 'Crimson Text', Georgia, serif;
  --body: 'Crimson Text', Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--deck); font-family: var(--body); color: var(--ink);
  overscroll-behavior: none; }
#app { position: fixed; inset: 0; overflow: hidden; }
button { font: inherit; color: inherit; touch-action: manipulation; }
b, strong { color: var(--heading); }

.paper { background: var(--paper) url('parchment.jpg') center / cover; }

/* Shared button: parchment card, thin ink border, small caps */
.btn, .titleBtns button, .setupBtns button, .overlay .box > button, .actBtn, .optBtn {
  font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  background: var(--card); color: var(--brown); border: 1px solid var(--box); border-radius: 3px;
  cursor: pointer; min-height: 38px; padding: 0 14px; font-size: .82rem; }
.btn:hover, .titleBtns button:hover, .setupBtns button:hover, .overlay .box > button:hover, .actBtn:hover, .optBtn:hover { background: var(--tint); }
.btn:active, .actBtn:active { background: var(--edge); }
.primary, .actBtn.go, .setupBtns button.primary { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.primary:hover, .actBtn.go:hover, .setupBtns button.primary:hover { background: #52321e; }

/* Title and setup screens */
.screen { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center;
  background: var(--paper) url('parchment.jpg') center / cover;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; }
#titleScreen { justify-content: center; display: flex; }
#titleScreen h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 11vw, 5rem);
  color: var(--heading); text-align: center; line-height: 1; }
.subtitle { font-style: italic; color: var(--ink-soft); font-size: clamp(1rem, 3vw, 1.3rem); margin-bottom: 1.4em; text-align: center; }
.decorLine { display: flex; align-items: center; gap: 10px; width: min(300px, 70%); margin: .7em 0 .6em; color: var(--gold); font-size: 1rem; }
.decorLine::before, .decorLine::after { content: ''; flex: 1; height: 1px; background: var(--gold); }
.titleBtns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: min(320px, 90vw); }
.titleBtns button { min-height: 46px; font-size: .95rem; }
.titleBtns button.minor { min-height: 40px; font-size: .78rem; color: var(--ink-soft); }
.backLink { margin-top: 2em; color: var(--ink-faint); font-size: .95rem; font-style: italic; }
.backLink:hover { color: var(--crimson); }

#setupScreen h2, .overlay h2 { font-family: var(--display); font-weight: 400; color: var(--heading);
  font-size: clamp(1.9rem, 6vw, 2.5rem); text-align: center; line-height: 1.1; }
#setupScreen h2::after, .overlay h2::after, .overlay h1::after {
  content: ''; display: block; width: 45%; max-width: 220px; height: 1px; background: var(--gold); margin: 6px auto 8px; }
#setupBody { width: min(980px, 100%); }
.setupLabel { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem;
  color: var(--brown); margin: 12px 2px 6px; padding-bottom: 3px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 8px; }
.setupLabel .dot, .pDot { width: 11px; height: 11px; border-radius: 50%; background: var(--pc); border: 1px solid var(--ink); flex: 0 0 auto; }
.fRow { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.fCard { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px 9px 8px 11px; cursor: pointer;
  background: rgba(251,244,227,.85); border: 1px solid var(--box); border-left: 4px solid var(--acc); border-radius: 3px; min-height: 44px; color: var(--ink); }
.fCard:hover { background: var(--card); }
.fCard.selected { background: var(--card); border-color: var(--crimson); border-left-color: var(--crimson); box-shadow: 0 0 0 2px rgba(168,128,26,.55); }
.fName { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brown); font-size: .86rem; line-height: 1.15; }
.fName em { font-weight: 400; text-transform: none; font-style: italic; letter-spacing: 0; font-size: .78rem; color: var(--gold); margin-left: 3px; }
.fStats { font-size: .82rem; color: var(--ink-soft); }
.fPass { font-size: .8rem; color: var(--ink); line-height: 1.25; }
.optGrid { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin: 16px 2px 4px; }
.optGrid > span { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--brown); }
.optGrid > div { display: flex; flex-wrap: wrap; gap: 6px; }
.optBtn { text-transform: none; letter-spacing: .02em; font-size: .92rem; }
.optBtn.on { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.optNote, .callout { border: 1px solid var(--box); border-left: 3px solid var(--crimson); border-radius: 2px;
  background: rgba(245,235,220,.55); padding: 8px 12px; margin: 10px 2px; font-size: .95rem; line-height: 1.35; }
.setupBtns { display: flex; gap: 10px; justify-content: center; margin: 14px 0 6px; flex-wrap: wrap; }
.setupBtns button { min-width: 130px; min-height: 44px; }

/* Game layout */
#game { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--deck); }
#game.landscape { flex-direction: row; }
#boardWrap { position: relative; flex: 1 1 auto; min-height: 0; min-width: 0; contain: strict; }
#boardCanvas { position: absolute; left: 0; top: 0; display: block; touch-action: none; cursor: crosshair;
  -webkit-user-select: none; user-select: none; }
/* The 3D table (view3d.js) draws underneath; the board canvas becomes a clear overlay for the controls. */
#boardWrap canvas.board3d { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
#game.landscape #panel2 { order: 0; }
#game.landscape #boardWrap { order: 1; }
#game.landscape #panel1 { order: 2; }

.panel { flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; padding: 6px 9px;
  background: var(--paper) url('parchment.jpg') center / cover; position: relative; z-index: 5;
  border: 0 solid var(--box); color: var(--ink); contain: strict; touch-action: pan-x pan-y; }
#panel1 { border-top-width: 2px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
#panel2 { border-bottom-width: 2px; padding-top: max(6px, env(safe-area-inset-top)); }
#game.flipTop #panel2 { transform: rotate(180deg); border-bottom-width: 0; border-top-width: 2px; }
#game.landscape .panel { width: clamp(230px, 26vw, 310px); height: 100%; overflow-y: auto; border-width: 0; padding: 12px; }
#game.landscape #panel1 { border-left-width: 2px; }
#game.landscape #panel2 { border-right-width: 2px; }
.panel:not(.active) { filter: saturate(.75) brightness(.93); }

.pHead { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-height: 32px;
  padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.pWho { font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--pcd); font-size: .88rem; }
.pFaction { font-size: .92rem; color: var(--ink-soft); font-style: italic; }
.pScore { font-weight: 700; color: var(--crimson); font-size: .95rem; }
.pMeta { font-size: .82rem; color: var(--ink-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menuBtn { margin-left: auto; background: var(--card); border: 1px solid var(--box); border-radius: 3px;
  width: 38px; height: 36px; cursor: pointer; font-size: 1.05rem; color: var(--brown); }
.panel.active .pHead::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pc); }

.coinTray { display: flex; gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px 1px 1px; }
.coinTray:empty { display: none; }
#game.landscape .coinTray { flex-wrap: wrap; }
.coin { position: relative; flex: 0 0 auto; width: 46px; min-height: 52px; cursor: pointer; background: none; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; color: var(--ink-soft); }
.coin img { width: 38px; height: 38px; display: block; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 1px 1px rgba(60,36,21,.45)); }
.coin .cn { font-size: .62rem; line-height: 1; font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.coin .cc { position: absolute; top: -2px; right: -1px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px;
  background: var(--brown); color: var(--cream); font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
.coin.none { opacity: .33; filter: grayscale(.9); cursor: default; }
.coin.live img { filter: drop-shadow(0 0 4px rgba(168,128,26,.9)); }
.coin.sel img { outline: 2px solid var(--crimson); outline-offset: 1px; border-radius: 50%; }

.pBar { display: flex; flex-direction: column; gap: 5px; }
/* The prompt keeps the same box whether or not the panel is active. */
.prompt { font-size: .98rem; line-height: 1.28; min-height: 1.28em; color: var(--ink);
  border: 1px solid transparent; border-left-width: 3px; border-radius: 2px; padding: 4px 9px; }
.panel.active .prompt { border-color: var(--box); border-left-color: var(--crimson); background: rgba(251,244,227,.7); }
.acts { display: flex; gap: 5px; flex-wrap: wrap; }
.acts:empty { display: none; }
.actBtn { font-size: .74rem; padding: 0 11px; flex: 0 0 auto; white-space: nowrap; }
.actBtn.gold { background: var(--gold); color: var(--cream); border-color: #7a5c10; animation: pulse 1.5s ease-in-out infinite; }
.actBtn.on { background: var(--brown); color: var(--cream); }
.actBtn.dim { opacity: .45; }
.actBtn.fireBtn { background: var(--crimson); border-color: var(--crimson-dim); color: var(--cream); min-width: 90px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 2px rgba(168,128,26,.4); } 50% { box-shadow: 0 0 10px rgba(168,128,26,.9); } }

#turnBanner { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 6; pointer-events: none;
  font-family: var(--display); font-size: clamp(1.4rem, 5vw, 2.1rem); color: var(--heading);
  padding: .15em .9em .25em; border: 1px solid var(--box); border-left: 5px solid; border-radius: 3px;
  background: var(--paper) url('parchment.jpg') center / cover; box-shadow: 0 4px 16px rgba(0,0,0,.45); opacity: 0; white-space: nowrap; }
#turnBanner.show { animation: banner 1.8s ease forwards; }
@keyframes banner { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
#toast { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 6; pointer-events: none;
  max-width: min(92%, 520px); text-align: center; font-size: .98rem; padding: 5px 12px; border-radius: 3px;
  background: var(--card); border: 1px solid var(--box); border-left: 3px solid var(--crimson); color: var(--ink);
  box-shadow: 0 3px 10px rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
#toast.show { opacity: 1; }

/* Overlays: menu, help, game over */
.overlay { position: absolute; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center;
  background: rgba(30,22,16,.72); padding: 14px; overflow-y: auto; }
.overlay .box { width: min(580px, 100%); max-height: 100%; overflow-y: auto; padding: 18px 20px;
  background: var(--paper) url('parchment.jpg') center / cover; border: 1px solid var(--box); border-radius: 3px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); color: var(--ink); }
.overlay h1 { font-family: var(--display); font-weight: 400; color: var(--heading); text-align: center;
  font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.05; }
#menuBody { display: flex; flex-direction: column; gap: 8px; }
#menuBody .actBtn { min-height: 44px; font-size: .85rem; }
#statsText { text-align: center; }
#statsText p { font-size: 1.05rem; }
.bookTable { margin: 10px auto; border-collapse: collapse; font-size: .95rem; width: 100%; }
.bookTable th { background: var(--brown); color: var(--cream); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: .72rem; padding: 7px 6px; }
.bookTable td { padding: 6px; }
.bookTable tr:nth-child(odd) td { background: var(--stripe); }
#statsText .small { font-size: .9rem; color: var(--ink-faint); font-style: italic; }
.helpBox { line-height: 1.42; font-size: 1.02rem; }
.helpBox h3 { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brown); font-size: .95rem;
  margin: 14px 0 5px; padding-bottom: 2px; border-bottom: 1px solid var(--rule); }
.helpBox ul { padding-left: 1.2em; }
.helpBox li { margin: 3px 0; }
.helpBox p { margin: 4px 0; }
.helpBox .bookTable td:first-child { width: 44px; }
.helpBox .bookTable img { width: 34px; height: 34px; display: block; }
.helpBox .bookTable td { vertical-align: top; text-align: left; font-size: .95rem; }
.helpBox > button { display: block; margin: 16px auto 0; min-width: 140px; min-height: 44px; }
#help { z-index: 60; }

.meter { display: flex; align-items: center; gap: 6px; flex: 1 1 140px; min-width: 120px; }
.meter span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brown); }
.meter .bar { flex: 1; height: 14px; border: 1px solid var(--box); border-radius: 3px; background: var(--card); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--crimson)); }
@media (prefers-reduced-motion: reduce) { #turnBanner.show { animation-duration: .9s; } .actBtn.gold { animation: none; } }
#setupScreen .setupBtns { position: sticky; bottom: calc(-1 * max(16px, env(safe-area-inset-bottom))); width: calc(100% + 32px);
  margin: 12px -16px 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(247,238,217,.85), var(--paper)); border-top: 1px solid var(--rule); }

/* Online screens */
.olBody { width: min(760px, 100%); }
.olField { display: flex; flex-direction: column; gap: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--brown); }
.olField input, .olField select, .olRow input { font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink);
  background: var(--card); border: 1px solid var(--box); border-radius: 3px; min-height: 40px; padding: 0 10px; }
.olRow { display: flex; gap: 8px; }
.olRow input { flex: 1; text-transform: uppercase; letter-spacing: .15em; }
.olGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.olEmpty { font-style: italic; color: var(--ink-faint); margin: 6px 2px; }
#olList .bookTable td { vertical-align: middle; }
.roomCode { text-align: center; color: var(--ink-soft); margin-bottom: 6px; }
.roomCode b { letter-spacing: .15em; color: var(--crimson); font-size: 1.1rem; }
.seatList { display: flex; flex-direction: column; gap: 4px; }
.seatRow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; min-height: 44px;
  background: rgba(251,244,227,.8); border: 1px solid var(--box); border-left: 4px solid var(--pc); border-radius: 3px; }
.seatName { font-weight: 700; flex: 1 1 140px; }
.seatFac { font-style: italic; color: var(--ink-soft); }
.seatReady { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brown); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { min-height: 38px; padding: 0 12px 0 30px; position: relative; border: 1px solid var(--box); border-radius: 3px; background: var(--card); cursor: pointer; font-weight: 700; color: var(--brown); }
.swatch::before { content: ''; position: absolute; left: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--sw); border: 1px solid var(--ink); }
.swatch.on { background: var(--brown); color: var(--cream); }
.swatch:disabled { opacity: .35; cursor: not-allowed; }
#netStatus { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 7; display: none;
  background: var(--crimson); color: var(--cream); padding: 4px 12px; border-radius: 3px; font-weight: 700; }
#windDial { position: absolute; left: 8px; top: 8px; z-index: 6; width: 64px; padding: 4px 4px 2px; border-radius: 4px; pointer-events: auto;
  border: 1px solid var(--box); background: rgba(251,244,227,.92); text-align: center; color: var(--brown); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
#windDial[hidden] { display: none; }
#windDial svg { width: 54px; height: 54px; display: block; margin: 0 auto; overflow: visible; }
#windDial span { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
#windDial .wdRim { fill: rgba(232,216,176,.7); stroke: var(--box); stroke-width: 1.2; }
#windDial .wdQuarters { stroke: var(--rule); stroke-width: 1; }
#windDial .wdShaft { stroke: #2b5f8e; stroke-width: 2.6; stroke-linecap: round; fill: none; }
#windDial .wdHead { fill: #2b5f8e; }
#windDial.shift #windArrow { transition: transform .9s cubic-bezier(.2,.8,.3,1); }
/* Camera buttons stack down the right edge and wrap into a second column
   on a short board, so they never push anything else about. */
#camBtns { position: absolute; right: 8px; top: 8px; bottom: 8px; z-index: 6; display: grid; gap: 4px;
  grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 38px); grid-auto-columns: 38px; direction: rtl;
  pointer-events: none; touch-action: none; }
#camBtns button { width: 38px; height: 38px; border-radius: 3px; border: 1px solid var(--box); background: rgba(251,244,227,.9); color: var(--brown);
  font-size: 1.1rem; font-weight: 700; cursor: pointer; pointer-events: auto; direction: ltr; display: flex; align-items: center; justify-content: center; }
#camBtns button svg { width: 18px; height: 18px; display: block; }
#camBtns button.on { background: var(--brown); color: var(--cream); }
#camBtns button[hidden] { display: none; }
.pTimer { font-weight: 700; color: var(--brown); font-variant-numeric: tabular-nums; }
.pTimer.low { color: var(--crimson); }
.panel.scoreboard { padding: 4px 8px; }
#game .panel.scoreboard .sbRows { flex: 1 1 0; overflow-y: auto; min-height: 0; align-content: flex-start; }
.sbRows { display: flex; flex-wrap: wrap; gap: 3px 6px; }
#game.landscape .sbRows { flex-direction: column; flex-wrap: nowrap; }
.sbRow { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 3px 7px; border: 1px solid transparent; border-left: 3px solid var(--pc); border-radius: 2px; font-size: .85rem; }
.sbRow.on { border-color: var(--box); border-left-color: var(--pc); background: rgba(251,244,227,.8); }
.sbRow.out { opacity: .45; text-decoration: line-through; }
.sbName { font-weight: 700; color: var(--pcd); }
.sbFac { font-style: italic; color: var(--ink-soft); }
.sbPts { font-weight: 700; color: var(--crimson); }
.sbMeta { color: var(--ink-faint); font-size: .78rem; }
#game:not(.landscape) .sbFac, #game:not(.landscape) .sbMeta { display: none; }
.rulesVer { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: -1em 0 1.4em; }
#passScreen { z-index: 55; background: rgba(30,22,16,.92); }
.passBox { text-align: center; }
.passBox p { margin: 6px 0 12px; }

/* Portrait game: every row of a panel has a fixed height, so the panels
   (and the board between them) keep the same size whatever mode you are in.
   Long prompts scroll inside their box and buttons scroll sideways. */
#game { --rowHead: 32px; --rowTray: 54px; --rowPrompt: 48px; --rowPromptC: 28px; --rowActs: 40px; --pGap: 5px;
  --pBody: calc(var(--rowHead) + var(--rowTray) + var(--rowPrompt) + var(--rowActs) + 3 * var(--pGap));
  --pBodyC: calc(var(--rowHead) + var(--rowTray) + var(--rowPromptC) + 2 * var(--pGap));
  --pBodySb: 58px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#game:not(.landscape) .panel { overflow: hidden; gap: var(--pGap); }
#game:not(.landscape) #panel1 { height: calc(var(--pBody) + 8px + max(6px, env(safe-area-inset-bottom))); }
#game:not(.landscape) #panel2 { height: calc(var(--pBody) + 8px + max(6px, env(safe-area-inset-top))); }
#game:not(.landscape) #panel1.compact { height: calc(var(--pBodyC) + 8px + max(6px, env(safe-area-inset-bottom))); }
#game:not(.landscape) #panel2.compact { height: calc(var(--pBodyC) + 8px + max(6px, env(safe-area-inset-top))); }
#game:not(.landscape) #panel2.scoreboard { height: calc(var(--pBodySb) + 6px + max(6px, env(safe-area-inset-top))); }
#game:not(.landscape) .pHead { flex: 0 0 var(--rowHead); height: var(--rowHead); min-height: 0; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
#game:not(.landscape) .pHead > * { flex-shrink: 0; }
#game:not(.landscape) .pHead > .pMeta { flex-shrink: 1; }
#game:not(.landscape) .coinTray, #game:not(.landscape) .coinTray:empty { display: flex; flex: 0 0 var(--rowTray); height: var(--rowTray); touch-action: pan-x; }
#game:not(.landscape) .pBar { flex: 1 1 0; min-height: 0; gap: var(--pGap); }
#game:not(.landscape) .prompt { flex: 0 0 var(--rowPrompt); height: var(--rowPrompt); min-height: 0; overflow-y: auto;
  font-size: .92rem; line-height: 1.25; scrollbar-width: none; }
#game:not(.landscape) .acts, #game:not(.landscape) .acts:empty { display: flex; flex: 0 0 var(--rowActs); height: var(--rowActs);
  flex-wrap: nowrap; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; touch-action: pan-x; }
#game:not(.landscape) .panel.compact .prompt { flex-basis: var(--rowPromptC); height: var(--rowPromptC); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#game:not(.landscape) .panel.compact .acts { display: none; }
#game .prompt::-webkit-scrollbar, #game .acts::-webkit-scrollbar, #game .coinTray::-webkit-scrollbar { display: none; }
