:root { color-scheme: dark; font-family: Georgia, serif; color: #eee5ce; background: #142329; --player-blue: #287bc4; --enemy-red: #b4434b; --enemy-red-subtle: #6e4b4c; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% 20%, #3d5552, transparent 70%); }
main { max-width: 1280px; margin: auto; padding: 18px 32px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #8f8b6a; padding-bottom: 10px; }
small, #round { font: 11px system-ui; letter-spacing: 1.5px; }
header small { color: #cbbd91; }
h1 { font-size: 30px; margin: 5px 0 0; font-weight: normal; }
h2 { margin: 6px 0; font-size: 24px; }
p { margin: 6px 0; }
#round { border: 1px solid #a89765; padding: 12px; white-space: nowrap; }
.battle { display: grid; grid-template-columns: minmax(220px, 270px) minmax(280px, 1fr) minmax(220px, 270px); gap: 24px; padding: 18px 0; align-items: center; }
.fighter { position: relative; align-self: stretch; display: flex; flex-direction: column; background: #ded1ad; color: #273c3c; border: 4px solid #9c8757; outline: 1px solid #d3bc83; border-radius: 12px; box-shadow: inset 0 0 0 3px #586865, 0 12px 24px #08161980; padding: 13px; text-align: center; min-height: 366px; }
.knight { border-color: var(--player-blue); }
.enemy { border-color: var(--enemy-red); background: #d5c8a2; }
.card-heading { display: flex; align-items: center; justify-content: space-between; color: #66552f; }
.card-heading small { font-size: 10px; letter-spacing: 1.2px; }
.fighter h2 { font-size: 25px; margin: 3px 0 9px; }
.portrait { height: 139px; overflow: hidden; border: 2px solid #7c805f; border-radius: 5px 5px 35% 35%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.health { font-size: 30px; margin: 6px 0 0; font-weight: bold; }
.health span { font: 14px system-ui; }
meter { width: 100%; height: 13px; accent-color: #4e765b; }
.defense { font: bold 14px system-ui; margin: 7px 0; text-align: center; }
.defense strong { display: block; font: bold 32px/1.1 Georgia, serif; color: #21623d; margin-top: 3px; }
.statuses { font: 12px/1.4 system-ui; min-height: 42px; margin-top: auto; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.status { display: block; padding: 3px 5px; border: 1px solid #9a906d; background: #efe7ce; border-radius: 3px; }
.fumble { color: #344e64; }.fury { color: #793b24; border-color: #ab7050; }
.crossing { position: relative; display: flex; flex-direction: column; gap: 10px; align-self: stretch; justify-content: center; }
.bridge { position: absolute; width: 100%; height: 100px; top: 38%; border-top: 20px solid #a1a58b33; border-radius: 50%; pointer-events: none; z-index: 0; }
.bridge span { position: absolute; top: -46px; width: 100%; text-align: center; font: 9px system-ui; letter-spacing: 3px; color: #e3dfc522; }
.intent { z-index: 1; border: 1px solid var(--enemy-red-subtle); border-left: 4px solid var(--enemy-red-subtle); background: #253737; padding: 12px 15px; text-align: center; }
.intent-heading { font: bold 18px/1.3 system-ui; letter-spacing: 1px; color: #ed8388; margin: 0 0 8px; }
.intent strong { display: block; margin: 5px 0; font-size: 23px; color: #f1d695; }
.intent span { display: block; font: 12px/1.45 system-ui; color: #dddacb; }
.intent span b { font-size: 17px; color: #fff0c5; }
.feedback { position: relative; border: 4px solid var(--enemy-red); background: #182b30f2; padding: 11px 15px; min-height: 92px; border-radius: 4px; text-align: center; }
.feedback small { font-size: 10px; letter-spacing: 1px; color: #c9b689; }
.feedback h3 { margin: 4px 0; font-size: 21px; color: #f0c48b; }
.feedback p { font: 13px/1.4 system-ui; color: #e2e5d9; margin: 3px 0; }
.feedback .damage-number { font: bold 30px Georgia; color: #ffe6c6; }
.damage-number span { font: 15px system-ui; }
.player-feedback { border-color: var(--player-blue); }
.player-feedback h3 { color: #b5d9cf; }
.result { position: absolute; inset: 0; z-index: 3; margin: auto; height: max-content; background: #182e32; border: 2px solid #d9bc7e; box-shadow: 0 10px 40px #081619; padding: 22px 18px; text-align: center; border-radius: 6px; }
.result h2 { color: #ffe4ac; line-height: 1.25; font-size: 27px; }.result p { margin: 15px 0; }
.fracture { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; filter: drop-shadow(2px 2px 0 #f7e6b3); }
.fracture path { stroke: #182124; stroke-width: 9; fill: none; }
.destroyed { transform: rotate(-3deg); filter: saturate(.25) brightness(.72); }
.destroyed .fracture { opacity: 1; }
.table { border-top: 1px solid #8f8b6a; padding-top: 10px; }
.hand-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hand-heading h2 { font-size: 20px; }.hand-heading>span { font: 13px system-ui; color: #c9cbb8; }
.energy { font: 14px system-ui; color: #f5dc9c; border-left: 1px solid #8d8c6f; padding-left: 12px; margin-left: 8px; white-space: nowrap; }
#hand { display: grid; grid-template-columns: repeat(auto-fit, 164px); grid-auto-rows: 1fr; gap: 12px; justify-content: center; align-items: stretch; min-height: 250px; }
button { font: 16px Georgia; cursor: pointer; border: 1px solid #ceb877; background: #ddc38b; color: #203436; border-radius: 5px; padding: 12px 25px; }
button:hover:enabled { filter: brightness(1.1); }button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.card { position: relative; width: 164px; min-height: 250px; display: grid; grid-template-rows: 18px 44px 32px minmax(88px, auto); align-items: center; justify-items: center; text-align: center; padding: 13px 12px; background: #e3d8b8; border: 2px solid #b5a16e; box-shadow: inset 0 0 0 2px #f8edcc55, 0 4px 7px #08161960; transition: transform .12s; overflow-wrap: anywhere; }
.card:hover:enabled { transform: translateY(-4px); }.card small { font: 10px system-ui; letter-spacing: .8px; color: #52615a; max-width: calc(100% - 28px); }.card strong { font-size: 18px; }.card-effect { font: 14px/1.35 system-ui; }.card .cost { position: absolute; right: 7px; top: 7px; border-radius: 50%; background: #294c52; color: white; width: 25px; height: 25px; text-align: center; padding-top: 3px; }
.card-mark { font-size: 27px; color: #506c60; }.card:disabled { background: #9b9d8c; color: #34403b; border-color: #6c7a70; box-shadow: none; cursor: default; }.card:disabled .cost { background: #555e57; }.card:disabled .card-mark { color: #5c6960; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; }.controls p { font: 13px/1.5 system-ui; color: #c9d1c4; }.controls button { white-space: nowrap; }button:disabled { cursor: default; opacity: .65; }
details { margin-top: 12px; border-top: 1px solid #596c61; padding-top: 10px; font: 13px/1.6 system-ui; color: #cbd0c0; text-align: left; }summary { cursor: pointer; color: #d9c18c; }details>p { max-width: 1000px; }ol { margin: 10px 0; padding-left: 26px; }li { padding: 2px 0; border-bottom: 1px solid #ffffff09; }
[hidden] { display: none !important; }
@media(max-width: 1000px) { main { padding: 16px; }.battle { gap: 14px; grid-template-columns: minmax(190px, 1fr) minmax(260px, 1.3fr) minmax(190px, 1fr); }.fighter { padding: 10px; }.portrait { height: 120px; }.fighter h2 { font-size: 22px; }.feedback { padding: 9px 11px; }.feedback h3 { font-size: 19px; }.intent { padding: 10px; } }
@media(max-width: 700px) { .battle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }.crossing { grid-column: 1 / -1; grid-row: 2; }.fighter { min-height: 340px; min-width: 0; }.card { width: 145px; }#hand { grid-template-columns: repeat(auto-fit, 145px); }.hand-heading { flex-wrap: wrap; }header small { font-size: 9px; }h1 { font-size: 26px; } }
@media(prefers-reduced-motion: reduce) { .card { transition: none; } }



#encounter-progress { font-weight: bold; letter-spacing: .08em; }

.result-portrait { width: 70px; height: 70px; object-fit: cover; border: 2px solid #bda16a; border-radius: 50%; }
/* Desktop hall: four seats above, three at either side of a rectangular table. */
.hall-header { padding-bottom: 8px; }
.hall-header h1 { font-size: 28px; letter-spacing: 2px; }
.week { font: bold 26px/1.2 Georgia, serif; padding: 10px 20px; border: 1px solid #bda16a; border-radius: 5px; color: #ffe3a0; white-space: nowrap; }
.hall-intro { font: 13px/1.4 system-ui; color: #ced6c9; margin: 10px 0; }
.company-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0; }
.company-heading h2 { font-size: 19px; margin: 0; }.company-heading>span { font: 13px system-ui; color: #d4c497; }
.hall-scroll { overflow-x: auto; padding: 2px; }
.hall-floor { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); grid-template-rows: 128px repeat(3,minmax(112px,auto)); gap: 10px; min-width: 1000px; }
.roster { display: contents; }
.roster-knight { min-width: 0; background: #ded1ad; border: 2px solid #7b887b; border-radius: 7px; padding: 8px; color: #283d3d; display: grid; grid-template-columns: 54px minmax(0,1fr); grid-template-rows: 1fr auto; align-items: center; gap: 5px 7px; }
.roster-knight img { width: 54px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid #8e997f; }
.seat-identity { min-width: 0; }.roster-knight small { font: 8px/1.2 system-ui; letter-spacing: .6px; color: #645936; }
.roster-knight h3 { margin: 2px 0 3px; font-size: 17px; overflow-wrap: anywhere; }
.roster-knight .availability { font: bold 11px/1.3 system-ui; color: #235a3d; margin: 0; }
.roster-knight button { grid-column: 1 / -1; width: 100%; padding: 5px; font-size: 12px; line-height: 1.2; }
.roster-knight.selected { border-color: var(--player-blue); box-shadow: inset 0 0 0 1px var(--player-blue); }
.roster-knight.recovering { background: #c8c1a9; border-color: #9d8451; }.roster-knight.recovering img { opacity: .65; }.roster-knight.recovering .availability { color: #73501f; }
.roster-knight.vacant { display: flex; flex-direction: column; justify-content: center; gap: 3px; border: 1px dashed #7d8067; background: #cabd9609; color: #a3ab96; text-align: center; }
.roster-knight.vacant small { color: #a3ab96; }.roster-knight.vacant h3 { font-size: 14px; font-weight: normal; margin: 0; }.vacant-shield { font-size: 27px; line-height: 1; color: #8d947b; }
.quest-table { grid-column: 2 / 6; grid-row: 2 / 5; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 18px 24px; background: #ded1ad; color: #283d3d; border: 7px solid #84704b; outline: 1px solid #b7a171; box-shadow: inset 0 0 0 2px #f0dfb4, 0 8px 16px #08161980; border-radius: 9px; text-align: center; }
.quest-panel small { color: #66552f; }.quest-panel h2 { font-size: 25px; margin: 7px 0; }
.quest-panel>p { max-width: 680px; margin: 9px auto; font: 13px/1.4 system-ui; }
.quest-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0; font: bold 11px system-ui; }.quest-facts span { border: 1px solid #a29978; border-radius: 3px; padding: 5px 7px; }
#selected-knight { font-weight: bold; }#begin { font-size: 15px; padding: 9px 24px; }
.campaign-notice { font: 12px/1.4 system-ui; margin: 10px auto 0; color: #46594d; }
.rest-panel { border-top: 1px solid #a29978; margin-top: 8px; padding-top: 7px; }.rest-panel p { font: 12px/1.4 system-ui; margin: 0 0 6px; }.rest-panel button { font-size: 13px; padding: 6px 14px; }
.recruitment>small { color: #67552f; font: bold 12px system-ui; letter-spacing: 1px; }.recruitment>h2 { font-size: 22px; margin: 8px auto; max-width: 550px; }.recruitment>p { font: 12px/1.4 system-ui; margin: 7px 0; }
.candidates { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.candidate { min-width: 0; padding: 8px; border-radius: 6px; border: 1px solid #9a8c63; background: #ebdfc0; display: flex; flex-direction: column; align-items: center; gap: 5px; }.candidate img { width: 100%; height: 88px; object-fit: contain; background: #536d72; border-radius: 4px; }.candidate small { color: #655735; font-size: 8px; letter-spacing: .6px; }.candidate h3 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }.candidate button { margin-top: auto; width: 100%; font-size: 13px; padding: 7px 5px; }
.hall-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; }.new-campaign-action { display: flex; align-items: center; gap: 10px; }.new-campaign-action button { background: transparent; color: #dcc99e; font-size: 11px; padding: 7px 10px; }.new-campaign-action span,.session-note { font: 10px/1.4 system-ui; color: #bfc9bb; }.session-note { margin: 0; }

.hall-brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hall-brand h1 { font-size: 32px; }
.hall-brand em { font-size: 14px; color: #d6c493; }
/* Equipment preparation keeps the existing parchment palette. */
.quest-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 9px; }.quest-choice { font: 11px/1.3 system-ui; padding: 7px 5px; background: #d8c699; }.quest-choice[aria-pressed="true"] { border: 2px solid var(--player-blue); background: #f1e4bd; }
.selected-champion { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 9px 0; }.selected-champion img { width: 54px; height: 54px; object-fit: cover; border-radius: 5px; border: 1px solid #8c8767; }.selected-champion p { font: 12px/1.4 system-ui; margin: 3px 0; }#selected-loadout { max-width: 600px; font-size: 11px; }
.departure-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }#armory-open { font-size: 13px; padding: 9px 15px; }
.card { grid-template-rows: 18px 44px 32px minmax(88px,auto) auto; }.card-source { font: 10px/1.3 system-ui; color: #4e625a; border-top: 1px solid #a89d7b; padding-top: 5px; margin-top: 5px; }
.armory-panels { display: grid; grid-template-columns: minmax(180px,.85fr) minmax(230px,1.2fr) minmax(230px,1.2fr) minmax(180px,.85fr); gap: 12px; min-width: 1020px; margin-top: 18px; align-items: stretch; }
#armory-view { overflow-x: auto; }.armory-panel { min-width: 0; padding: 16px; background: #ded1ad; color: #283d3d; border: 2px solid #9e8856; border-radius: 7px; }.armory-panel h2 { font-size: 22px; margin: 8px 0; }.armory-panel>small { color: #68552e; font-size: 10px; }.armory-panel p { font: 12px/1.5 system-ui; }
.knight-switches { display: flex; flex-wrap: wrap; gap: 4px; }.knight-switches button { font-size: 11px; padding: 4px 7px; }
.training-dummy { position: relative; height: 180px; margin: 16px auto; width: 150px; padding-top: 4px; text-align: center; }.training-dummy img { position: relative; z-index: 1; width: 72px; height: 72px; object-fit: cover; border: 3px solid #83704a; border-radius: 50%; }.dummy-body { height: 95px; width: 70px; margin: -5px auto 0; padding-top: 15px; background: #94784f; border: 3px solid #554c38; border-radius: 16px 16px 5px 5px; color: #d6c28e; font-size: 35px; }.dummy-body::before { content: ''; position: absolute; width: 140px; height: 18px; background: #94784f; border: 3px solid #554c38; top: 94px; left: 5px; z-index: 0; }
.equipped-slots,.inventory-filters { display: flex; flex-direction: column; gap: 6px; }.equipped-slots button,.inventory-filters button,#inventory-items button { font-size: 12px; padding: 8px; text-align: left; }#inventory-items { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.armory-panel button[aria-pressed="true"] { border: 2px solid var(--player-blue); background: #f1e5c3; }
.item-type { color: #5e6854; font-weight: bold !important; }.item-flavor { font-style: italic; }.item-cards { margin: 12px 0 0; padding: 0; list-style: none; }.item-cards li { padding: 7px 0; border-bottom: 1px solid #b9ae8d; font: 12px/1.4 system-ui; }.item-cards span { display: block; margin-top: 2px; }#equip-actions button { width: 100%; margin-top: 14px; border-width: 2px; }
.deck-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }.deck-heading h2 { font-size: 22px; }.deck-heading span,#armory-notice { font: 13px/1.5 system-ui; color: #ddd1ae; }
.combined-deck { display: flex; overflow-x: auto; gap: 10px; padding: 10px 3px 15px; }.deck-card { flex: 0 0 158px; min-height: 185px; padding: 12px; display: flex; flex-direction: column; gap: 8px; text-align: center; background: #e3d8b8; color: #283d3d; border: 3px solid #9d8b61; border-radius: 6px; }.deck-card strong { font-size: 17px; }.deck-card small { font-size: 9px; letter-spacing: .4px; }.deck-card span,.deck-card p { font: 12px/1.4 system-ui; }.deck-card.proposed { border-color: #329053; box-shadow: inset 0 0 0 1px #329053; }
