/* 人在江湖，身不由己: a phone-first wuxia game interface.
   Painted ink-wash scenes behind dark lacquer panels with thin gold frames and cinnabar seals. */
:root {
  color-scheme: dark;
  --ink: #101216; --lacquer: rgba(21, 17, 15, .88); --lacquer-2: rgba(36, 28, 24, .92);
  --gold: #d8b45a; --gold-dim: rgba(216, 180, 90, .4); --gold-text: #e9d9a8;
  --cin: #c8402f; --cin-dark: #8a261c; --jade: #6fae93; --paper: #f4edda;
  --text: #f3ecd9; --dim: #b5ab92; --good: #8fd3a8; --bad: #f0a090;
  --f-brush: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  --f-body: "Noto Serif SC", "Noto Serif Thai", "Songti SC", "SimSun", Georgia, serif;
  --f-title: "Cormorant Garamond", Georgia, serif;
  --bar: 52px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 15.5px/1.6 var(--f-body); overflow-x: hidden; }
html[lang="th"] body { line-height: 1.7; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
em, i { font-style: normal; }
em { font-family: var(--f-title); font-style: italic; font-weight: 600; color: var(--dim); }
p { margin: 0; }
.small { font-size: 13.5px; color: var(--dim); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 60; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; background: linear-gradient(#0c0d10, rgba(12, 13, 16, .86)); border-bottom: 1px solid var(--gold-dim); backdrop-filter: blur(6px); }
.brand { background: none; border: 0; padding: 0; margin-right: auto; }
.brand .logo { font: 400 22px/1 var(--f-brush); letter-spacing: .05em; white-space: nowrap; }
.gmbtn { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--gold-dim); border-radius: 99px; padding: 2px 12px 2px 2px; font-size: 13px; color: var(--gold-text); }
.menu-btn { width: 38px; height: 38px; background: none; border: 1px solid var(--gold-dim); border-radius: 8px; font-size: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #cfd9d2; border: 2px solid var(--gold); position: relative; display: block; flex: 0 0 auto; padding: 0; }
.avatar.mini { width: 32px; height: 32px; border-width: 1px; }
.avatar.big { width: 60px; height: 60px; }
.avatar img, .face img { width: 100%; height: 100%; display: block; object-fit: cover; }
.face { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); background: #cfd9d2; flex: 0 0 auto; }
.sil { width: 100%; height: 100%; }

.menu { position: fixed; z-index: 70; top: calc(var(--bar) + 4px); right: 10px; width: min(280px, calc(100vw - 20px)); padding: 8px; display: grid; gap: 4px; }
.menu-item { display: grid; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 6px; }
.menu-item:hover { background: rgba(255, 255, 255, .07); }
.menu-item small { color: var(--dim); font-size: 12px; }
.menu-item.danger b { color: var(--bad); }

/* ---------- common ---------- */
.screen { display: none; position: relative; min-height: calc(100vh - var(--bar)); min-height: calc(100dvh - var(--bar)); }
.screen.on { display: block; }
canvas.bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.panel { background: var(--lacquer); border: 1px solid var(--gold-dim); border-radius: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); position: relative; }
.btn { font: 700 14.5px var(--f-body); letter-spacing: .03em; background: linear-gradient(var(--cin), var(--cin-dark)); color: var(--paper); border: 1px solid #e0705a55; border-radius: 6px; padding: 10px 18px; min-height: 44px; transition: transform .15s, filter .15s; }
.btn:hover:not(:disabled) { filter: brightness(1.12); }
.btn.big { font-size: 16.5px; padding: 13px 24px; width: 100%; }
.btn.sm { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.btn.ghost { background: rgba(20, 18, 16, .6); border: 1px solid var(--gold-dim); color: var(--text); }
.btn.jade { background: linear-gradient(#7cbba1, #4f8a72); color: #0e1a14; border-color: #9fd6bf55; }
.note { font-size: 13px; color: var(--dim); white-space: pre-line; }
.note.warn { color: var(--bad); }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--gold); transition: width .5s; }
.bar.hp-bar i { background: linear-gradient(90deg, #d9534a, #f08a5d); }
.bar.low i { background: #ff4d3d; animation: pulse 1s infinite; }
.bar.foe-bar i { background: #9d86d8; }
.bar.trust-bar i { background: var(--jade); }
@keyframes pulse { 50% { opacity: .55; } }
.x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; background: none; border: 0; font-size: 24px; line-height: 1; z-index: 2; color: var(--dim); }
.toast { position: fixed; z-index: 120; left: 50%; top: calc(var(--bar) + 8px); transform: translate(-50%, -30px); opacity: 0; pointer-events: none; max-width: min(520px, calc(100vw - 24px)); background: #1d1814; border: 1px solid var(--gold); border-radius: 8px; padding: 12px 16px; font-size: 14px; transition: .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.chip { display: inline-block; padding: 1px 9px; border: 1px solid var(--gold-dim); border-radius: 99px; font-size: 13px; background: rgba(0, 0, 0, .3); white-space: nowrap; }

.loading.on { display: grid; place-items: center; background: #0d0f0e; }
.loading-card { text-align: center; padding: 24px; }
.loading-card .logo { font: 400 clamp(48px, 12vw, 90px)/1.05 var(--f-brush); letter-spacing: .06em; }
.loading-card p { color: var(--dim); margin-top: 10px; }
.loading-card .btn { margin-top: 12px; }

/* ---------- 1. home ---------- */
.gate { background: #0d0f0e; overflow: hidden; }
.gate-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(10, 10, 10, .78), rgba(10, 10, 10, .9) 40%, rgba(10, 10, 10, .95)); }
.gate-card { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 16px 16px calc(36px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.lang-label { font-size: 12.5px; color: var(--dim); margin-bottom: 4px; }
.lang-pick { display: flex; gap: 6px; }
.lang-pick button { flex: 1; background: rgba(255, 255, 255, .06); border: 1px solid var(--gold-dim); border-radius: 8px; padding: 8px 6px; min-height: 44px; }
.lang-pick button b { font-size: 16.5px; }
.lang-pick button[aria-pressed="true"] { background: var(--cin); border-color: #e0705a; color: var(--paper); }
.lang-pick.in-menu { margin-top: 6px; }
.lang-pick.in-menu button { min-height: 38px; font-size: 14px; }
.kicker { font-size: 12.5px; color: var(--dim); letter-spacing: .05em; }
.kicker span:first-child { background: var(--cin); color: var(--paper); padding: 1px 9px; border-radius: 3px; margin-right: 6px; font-weight: 700; }
.gate-title { margin: 0; font: 400 clamp(40px, 12vw, 64px)/1.04 var(--f-brush); letter-spacing: .05em; text-shadow: 0 2px 24px #000; }
.gate-en { margin-top: -8px; font: 600 italic 20px/1.25 var(--f-title); color: var(--gold); }
html[lang="th"] .gate-en { font-family: var(--f-body); font-style: normal; font-size: 16px; }
.block { background: var(--lacquer); border: 1px solid var(--gold-dim); border-radius: 8px; padding: 12px 14px 14px; display: grid; gap: 8px; }
.block h2 { margin: 0; font: 400 21px/1.2 var(--f-brush); letter-spacing: .05em; color: var(--gold-text); }
.story { font-size: 14.5px; color: rgba(243, 236, 217, .92); }
.block.goal { border-color: var(--cin); }
.block.goal .story { font-weight: 700; color: var(--paper); }
.who { display: flex; gap: 12px; align-items: center; }
.who-text b { font: 400 22px var(--f-brush); letter-spacing: .04em; }
.who-text i { font-size: 12.5px; color: var(--dim); }
.stats { display: grid; gap: 8px; }
.stat { display: grid; gap: 3px; }
.stat-top { display: flex; justify-content: space-between; align-items: baseline; }
.stat-name { font-weight: 700; }
.stat-val { font: 400 30px/1 var(--f-brush); color: var(--gold); }
.stat small { font-size: 12.5px; color: var(--dim); }
.stat-line { font-size: 14px; }
.arts { display: grid; gap: 8px; grid-template-columns: 1fr; }
.art { border: 1px solid var(--gold-dim); border-radius: 6px; padding: 8px 10px; background: rgba(0, 0, 0, .25); display: grid; gap: 1px; }
.art small { color: var(--dim); font-size: 12px; }
.art b { color: var(--gold-text); font-size: 16px; }
.art p { font-size: 13.5px; color: var(--text); }
.reroll.rolling .die { display: inline-block; animation: spin .5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gate-warn { text-align: center; color: var(--bad); font-size: 14px; }
.gate-privacy { text-align: center; font-size: 12px; color: var(--dim); }
@media (min-width: 600px) { .arts { grid-template-columns: 1fr 1fr; } }

/* ---------- 2. the inn ---------- */
.game-wrap { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 10px 12px calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.game::before, .talk::before, .fight::before { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 8, .6); z-index: 1; pointer-events: none; }
.hud { position: sticky; top: calc(var(--bar) + 4px); z-index: 20; padding: 10px 12px; display: grid; gap: 8px; background: rgba(16, 13, 11, .95); }
.hud-top { display: flex; gap: 10px; align-items: center; }
.hp { flex: 1; display: grid; gap: 3px; }
.hp-text { font-weight: 700; font-size: 14px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.track { display: flex; gap: 2px; }
.track .beat { flex: 1; height: 8px; background: rgba(255, 255, 255, .13); border-radius: 2px; }
.track .beat.past { background: var(--gold); }
.track .beat.exit { background: rgba(111, 174, 147, .55); outline: 1px solid var(--jade); }
.track .beat.exit.past { background: var(--jade); }
.storm-text { font-size: 13px; color: var(--gold-text); margin-top: 4px; }
.feed { padding: 8px 12px; max-height: 190px; overflow-y: auto; display: grid; gap: 6px; font-size: 14px; }
.f { display: flex; gap: 8px; }
.f .b { flex: 0 0 auto; min-width: 22px; height: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border-radius: 4px; font-size: 11.5px; color: var(--dim); }
.f-arrival { color: var(--gold-text); } .f-fight, .f-death { color: var(--bad); } .f-gain, .f-calm, .f-win, .f-storm { color: var(--good); } .f-start { color: var(--dim); }
.people { display: grid; gap: 10px; }
.person { background: var(--lacquer); border: 1px solid var(--gold-dim); border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.person.down { opacity: .55; }
.person.calm { border-color: var(--jade); }
.p-text { display: grid; gap: 2px; min-width: 0; }
.p-text b { font: 400 21px/1.15 var(--f-brush); letter-spacing: .04em; color: var(--gold-text); }
.p-title { font-size: 12.5px; color: var(--dim); }
.mood { display: inline-block; width: fit-content; font-size: 12px; padding: 0 8px; border-radius: 99px; border: 1px solid; }
.m-friendly { color: #e9b86b; border-color: #e9b86b88; } .m-aggressive { color: #8fb4f0; border-color: #8fb4f088; } .m-police { color: #d49cf0; border-color: #d49cf088; }
.p-status { font-size: 12.5px; color: var(--bad); }
.meters { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; margin-top: 3px; }
.meters small { font-size: 12px; color: var(--dim); }
.p-acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.incoming { text-align: center; color: var(--dim); font-style: italic; font-size: 14px; min-height: 1.4em; }
.door { width: 100%; }

/* ---------- 3. a conversation ---------- */
.chat { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; height: calc(100dvh - var(--bar)); display: flex; flex-direction: column; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.back { padding: 4px 12px; min-height: 40px; }
.chat-who { display: grid; line-height: 1.2; min-width: 0; flex: 1; }
.chat-who b { font: 400 20px var(--f-brush); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fight-btn.armed { background: #ff4d3d; }
.chat-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 6px 10px; font-size: 13px; }
.chat-meta .bar { width: 90px; }
.thread { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 10px; align-content: start; padding: 4px 2px; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg.hero { justify-content: flex-end; }
.bwrap { display: grid; gap: 3px; max-width: 82%; }
.msg.hero .bwrap { justify-items: end; }
.bubble { background: var(--lacquer-2); border: 1px solid var(--gold-dim); border-radius: 12px 12px 12px 3px; padding: 8px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.hero .bubble { background: rgba(200, 64, 47, .3); border-color: #e0705a66; border-radius: 12px 12px 3px 12px; }
.bubble.thinking { color: var(--dim); letter-spacing: .3em; }
.fb button { background: none; border: 0; padding: 2px 6px; opacity: .6; }
.trust-tag { font-size: 11.5px; padding: 0 8px; border-radius: 99px; border: 1px solid; }
.trust-tag.up { color: var(--good); } .trust-tag.down { color: var(--bad); }
.quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.qc { flex: 0 0 auto; background: rgba(255, 255, 255, .07); border: 1px solid var(--gold-dim); border-radius: 99px; padding: 6px 12px; font-size: 13px; min-height: 36px; white-space: nowrap; }
.composer { display: flex; gap: 8px; padding: 8px; }
.composer input { flex: 1; min-width: 0; background: rgba(0, 0, 0, .35); border: 1px solid var(--gold-dim); border-radius: 6px; padding: 8px 10px; min-height: 44px; font-size: 16px; }

/* ---------- 4. a fight ---------- */
.fight-wrap { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 10px 12px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; padding: 10px; }
.fighter { display: grid; justify-items: center; gap: 4px; text-align: center; }
.fighter b { font: 400 18px/1.1 var(--f-brush); }
.fighter .bar { width: 100%; }
.vs { font: 400 22px var(--f-brush); color: var(--cin); }
.rolls { padding: 10px 12px; display: grid; gap: 10px; min-height: 120px; }
.rl.intro { display: grid; gap: 3px; } .rl small { color: var(--dim); } .rl .good, .good { color: var(--good); }
.roll-row { display: grid; gap: 6px; }
.rl-label { font: 400 18px var(--f-brush); color: var(--gold-text); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.side { display: grid; justify-items: center; gap: 2px; }
.side small { font-size: 12px; color: var(--dim); }
.vs-s { color: var(--dim); font-size: 12px; }
.dice { display: inline-flex; gap: 4px; }
.dice .d { font-size: 44px; line-height: 1; background: #f4edda; color: #22190f; border-radius: 8px; padding: 0 3px; box-shadow: 0 2px 0 #b8ab8a; }
.dice.rolling .d { animation: tumble .14s linear infinite; }
@keyframes tumble { 50% { transform: rotate(14deg) translateY(-3px); } }
.tot { font-size: 14px; }
.result { text-align: center; font-weight: 700; letter-spacing: .08em; padding: 3px; border-radius: 4px; }
.result.hit { background: rgba(200, 64, 47, .35); } .result.miss { background: rgba(255, 255, 255, .08); color: var(--dim); }
.note-art { text-align: center; color: var(--gold-text); }
.battle-log { display: grid; gap: 4px; font-size: 13.5px; color: var(--dim); }
.bl:first-child { color: var(--text); }
.fight-actions { display: grid; gap: 8px; position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); }

/* ---------- windows ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .72); display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.modal-card { width: min(520px, 100%); padding: 18px 16px; max-height: calc(100dvh - 28px); overflow-y: auto; display: grid; gap: 12px; background: #17120f; }
.md-grid { display: grid; gap: 12px; }
.md-portrait { width: 150px; justify-self: center; border-radius: 8px; overflow: hidden; background: #cfd9d2; }
.md-portrait img { width: 100%; display: block; }
.md-body { display: grid; gap: 10px; }
.pl-title { margin: 0; font: 400 28px/1.1 var(--f-brush); letter-spacing: .05em; color: var(--gold-text); }
.pl-by { color: var(--dim); font-size: 13px; }
.pl-text, .end-text { white-space: pre-line; line-height: 1.75; }
.md-actions { display: grid; gap: 8px; }
.ending.dead .pl-title { color: var(--bad); }
.end-status { font: 400 15px var(--f-brush); letter-spacing: .3em; color: var(--dim); text-align: center; }
.ending:not(.dead) .end-status { color: var(--good); }
.end-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.end-track { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--dim); }
.end-chip { border: 1px solid var(--gold-dim); border-radius: 99px; padding: 0 10px; } .end-chip.on { color: var(--gold-text); border-color: var(--gold); }

.sheet { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; max-width: 600px; margin: 0 auto; height: min(80dvh, 620px); border-radius: 14px 14px 0 0; display: flex; flex-direction: column; background: #17120f; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
.sheet header { display: flex; align-items: center; justify-content: space-between; padding-right: 36px; }
.gm-head { display: flex; align-items: center; gap: 8px; font: 400 19px var(--f-brush); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; }
.gm-log { display: grid; gap: 10px; }
.entry .who { font-size: 12px; color: var(--dim); }
.entry.hero { text-align: right; } .entry.hero .bi { color: var(--gold-text); }
.bi { white-space: pre-line; }

.entry .who { display: block; }
#gateStart { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 0 0 6px rgba(10, 10, 10, .7), 0 8px 24px rgba(0, 0, 0, .6); }

/* the fight: read the telegraph, then choose */
.intent { display: grid; gap: 4px; padding: 12px 14px; border-left: 4px solid var(--gold); min-height: 0; }
.intent b { font: 400 22px var(--f-brush); letter-spacing: .06em; }
.intent.i-heavy { border-left-color: #ff6a4d; } .intent.i-heavy b { color: #ff8a6d; }
.intent.i-quick { border-left-color: #ffd34d; } .intent.i-quick b { color: #ffd34d; }
.intent.i-guard { border-left-color: #8fb4f0; } .intent.i-guard b { color: #8fb4f0; }
.intent.rolling { opacity: .5; }
.fight-actions { grid-template-columns: 1fr 1fr; }
.btn.act { display: grid; gap: 1px; text-align: left; padding: 10px 12px; min-height: 64px; }
.btn.act b { font-size: 15.5px; } .btn.act small { font-weight: 400; font-size: 12px; opacity: .85; letter-spacing: 0; }
.btn.act.art { background: linear-gradient(#8a6fd0, #5b438f); border-color: #b9a4f055; }
.qi { display: flex; align-items: center; gap: 4px; }
.qi small { color: var(--dim); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #b9a4f0; }
.pips i.on { background: #b9a4f0; }
.round-card { background: rgba(20, 16, 13, .8); border: 1px solid rgba(216, 180, 90, .22); border-radius: 8px; padding: 8px 10px; display: grid; gap: 4px; }
.dline { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14.5px; }
.dline.good { color: var(--good); } .dline.bad { color: var(--bad); } .dline.dim { color: var(--dim); } .dline.art { color: var(--gold-text); font-size: 13px; }
.dsmall { color: var(--dim); font-size: 15px; white-space: nowrap; letter-spacing: .08em; }
/* the talk: a negotiation with a goal */
.chat-meta { display: grid; gap: 6px; }
.goal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.left { font-size: 13px; color: var(--gold-text); font-weight: 700; } .left.last { color: #ff8a6d; }
.goal-text { font-size: 14px; font-weight: 700; color: var(--paper); line-height: 1.45; }
.goal-meter { display: grid; gap: 3px; }
.goal-meter .bar { width: 100%; overflow: visible; position: relative; }
.goal-mark { position: absolute; top: -4px; width: 3px; height: 16px; margin-left: -1px; background: var(--gold); border-radius: 2px; }
.stake { color: var(--dim); font-size: 12px; }

/* the fight fits one screen: bars and the telegraph on top, the log scrolls in the middle, the actions stay at the bottom */
.fight-wrap { height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); display: flex; flex-direction: column; gap: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.fight-wrap > * { flex: 0 0 auto; }
.duel { padding: 6px 8px; }
.duel .avatar.big { width: 44px; height: 44px; }
.fighter { gap: 2px; } .fighter b { font-size: 16px; } .hp-text { font-size: 13px; }
.intent { padding: 8px 12px; } .intent b { font-size: 19px; } .intent span { font-size: 13.5px; line-height: 1.4; }
.battle-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; }
.round-card { padding: 6px 9px; } .dline { font-size: 14px; }
.fight-actions { position: static; gap: 6px; }
.btn.act { min-height: 54px; padding: 7px 10px; }
.btn.act b { font-size: 14.5px; } .btn.act small { font-size: 11.5px; line-height: 1.25; }
#fightDone { flex: 0 0 auto; }

/* things that happen in the inn during a talk */
.notice { display: flex; gap: 8px; align-items: flex-start; justify-self: center; max-width: 92%; padding: 7px 12px; border: 1px solid var(--gold-dim); border-radius: 10px; background: rgba(0, 0, 0, .35); font-size: 13.5px; color: var(--gold-text); }
.notice.n-gain, .notice.n-calm, .notice.n-storm { color: var(--good); border-color: rgba(143, 211, 168, .4); }
.rest { width: 100%; }
