.fv-board[data-game="23"] {
  position:relative;
  --hero-paper:#f3e7cb;
  --hero-ink:#32261d;
}
.fv-board[data-game="23"] [data-portrait] {
  background-image:url('/scenes/festival-hero-cards.webp');
  background-size:300% 200%;
  background-position:var(--picture-x,0%) var(--picture-y,0%);
  background-repeat:no-repeat;
}
.fv-board[data-game="23"] :is([data-portrait="1"],[data-portrait="4"]) { --picture-x:50%; }
.fv-board[data-game="23"] :is([data-portrait="2"],[data-portrait="5"]) { --picture-x:100%; }
.fv-board[data-game="23"] :is([data-portrait="3"],[data-portrait="4"],[data-portrait="5"]) { --picture-y:100%; }
.fv-board[data-game="23"] .fv-hero[data-hero] > .fv-commander-picture {
  width:clamp(37px,7vw,58px); height:auto; aspect-ratio:1; align-self:center;
  border:1px solid #d7ab64; border-radius:7px;
  background-image:url('/scenes/festival-hero-cards.webp');background-size:300% 200%;
  background-position:var(--picture-x,0%) var(--picture-y,0%);
}
.fv-hero-hand-head {
  display:flex; align-items:center; justify-content:space-between; gap:.5rem;
  min-height:35px; color:#f1dfba; font-size:.88rem;
}
.fv-hero-hand-area { container-type:inline-size; }
.fv-hero-pages { display:flex; gap:5px; }
.fv-hero-pages[hidden] { display:none; }
.fv-hero-pages button {
  display:grid; place-items:center; min-width:42px; min-height:36px; padding:0;
  color:#f3dbad; background:#382b27; border:1px solid #967853; border-radius:6px;
  font:600 23px/1 Georgia,serif; cursor:pointer;
}
.fv-hero-pages button:disabled { opacity:.38; cursor:default; }
.fv-hero-hand-area .fv-hand.tactics {
  display:flex; flex-wrap:nowrap; justify-content:flex-start; align-items:stretch; gap:8px;
  padding:8px 4px 10px; margin:0; overflow-x:auto; overflow-y:hidden; max-width:100%;
  overscroll-behavior-x:contain; scroll-snap-type:x proximity; scroll-padding-inline:4px;
  scrollbar-width:thin; scrollbar-color:#ad9265 #29241f;
}
.fv-board[data-game="23"] .fv-tactic {
  display:flex; flex-flow:column nowrap; align-items:stretch; justify-content:flex-start; gap:0;
  flex:none; width:clamp(106px,27vw,143px); min-height:0; padding:0; overflow:hidden; text-align:left;
  font-family:inherit; border:1px solid #dec799; border-top:2px solid var(--suit,#aa8150);
  color:var(--hero-ink); background:linear-gradient(125deg,#faf2db,var(--hero-paper) 62%,#d8c39c);
  box-shadow:0 3px 5px #1c151285; border-radius:7px; scroll-snap-align:start;
}
.fv-tactic .fv-history-picture {
  display:block; position:relative; flex:none; width:100%; aspect-ratio:1; background-color:#5f503e;
  border-bottom:2px solid var(--suit,#aa8150);
}
.fv-card-action {
  position:absolute; bottom:4px; left:4px; max-width:calc(100% - 8px); padding:2px 5px;
  border-radius:3px; background:#263b2df2; color:#f6f2ce;
  font-size:.68rem; font-weight:650; line-height:1.2;
}
.fv-tactic.exchange-only .fv-card-action { background:#403c4cf2; color:#f1e5ff; }
.fv-tactic.trim .fv-card-action { background:#682e26f2; color:#fff0dc; }
.fv-tactic.counter .fv-card-action { background:#14554ff2; color:#e2fff3; }
.fv-tactic .fv-history-copy { display:flex; flex-direction:column; align-items:flex-start; padding:5px 7px 8px; gap:3px; }
.fv-history-copy > b { font:700 1.03rem/1.12 Georgia,'Songti SC',serif; color:#33261a; overflow-wrap:anywhere; }
.fv-history-copy > small { font-size:.75rem; font-weight:650; line-height:1.18; color:#6b4631; }
.fv-history-copy > span { font-size:.8rem; line-height:1.32; color:#392e24; overflow-wrap:anywhere; }
.fv-board[data-game="23"] .fv-hand .fv-tactic.selected { transform:translateY(-4px); box-shadow:0 0 0 2px #ffd26e,0 3px 10px #150b02; }
.fv-board[data-game="23"] .fv-tactic.held { border-color:#9e8e75; }
.fv-board[data-game="23"] .fv-tactic.counter { box-shadow:0 0 0 2px #93d5c4; }
.fv-board[data-game="23"] .fv-tactic.trim { border-bottom:3px solid #a56148; }
.fv-board[data-game="23"] .fv-felt.hero.with-table-card {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(94px,116px); grid-template-rows:auto auto auto;
  justify-content:stretch; align-content:center; justify-items:center; align-items:center; gap:5px 12px;
}
.fv-felt.hero.with-table-card > :is(strong,small) { grid-column:1; }
.fv-felt.hero.with-table-card > small:first-child { align-self:end; }
.fv-felt.hero.with-table-card > small:nth-child(3) { align-self:start; }
.fv-board[data-game="23"] .fv-table-tactic { grid-column:2;grid-row:1 / 4;width:100%; max-width:114px; z-index:1; }
.fv-table-tactic .fv-history-picture { width:67%; align-self:center; margin-top:3px; border-radius:4px; }
.fv-table-tactic .fv-history-copy { gap:2px;padding:4px 6px 6px; }
.fv-table-tactic .fv-history-copy > b { font-size:.92rem; }
.fv-table-tactic .fv-history-copy > span { font-size:.76rem; }
.fv-board[data-game="23"] .fv-hero-flight {
  position:absolute; grid-area:auto; z-index:8; max-width:none; margin:0; pointer-events:none;
  box-shadow:0 6px 15px #1d100f80;
}
.fv-board[data-game="23"] .fv-vitals { position:relative; }
.fv-hp-change {
  position:absolute; left:50%; bottom:84%; padding:1px 5px; border-radius:4px;
  font:700 .84rem/1.3 system-ui,sans-serif; white-space:nowrap; color:#fff4d7; background:#7a382e;
}
.fv-hp-change.recover { color:#dbffeb; background:#285d47; }
@media (pointer:coarse) { .fv-hero-pages button { min-width:44px; min-height:44px; } }
@media (min-width:900px) and (min-height:551px) {
  .fv-board[data-game="23"] .fv-hand .fv-tactic { width:clamp(106px,15cqi,143px); }
}
@media (min-width:600px) and (orientation:landscape) and (max-height:550px) {
  .fv-board[data-game="23"] .fv-hero-hand-area { grid-column:2;grid-row:2 / span 2; }
  .fv-board[data-game="23"] .fv-hand .fv-tactic { width:104px; }
}
.fv-board[data-game="23"] .fv-felt.hero {
 background:linear-gradient(120deg,#44332283,#2c2929aa),url("/scenes/festival-mj-material-rim.webp") center/260px 110px,#443628;
 box-shadow:inset 1px 1px 1px #e6c19374,inset -1px -2px 2px #463024,1px 3px 4px #17160f75;
}
.fv-board[data-game="23"] .fv-tactic {
 background:repeating-linear-gradient(109deg,#92785608 0 1px,transparent 1px 3px),linear-gradient(125deg,#fbf3df,#f0e4c8 70%,#ddc9a7);
 box-shadow:inset .7px .8px #fff9dc,0 1px #bb9f79,.7px 2px #a38866,1.5px 4px 4px #21170f66;
}
.fv-board[data-game="23"] .fv-tactic.counter {outline:2px solid #87c6b8;outline-offset:-1px;}
.fv-board[data-game="23"] .fv-hand .fv-tactic.selected {
 transform:translateY(-5px);box-shadow:inset .7px .8px #fffadd,0 1px #b39b72,1px 2px #ab8e66,0 0 0 2px #f5ca70,3px 6px 6px #21170f80;
}
.fv-board[data-game="23"] .fv-history-picture::before {
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(124deg,#ffedcc21,transparent 33%,transparent 74%,#1f17141c);
 box-shadow:inset 1px 1px #f5dfb633;
}
.fv-board[data-game="23"] .fv-hero-hand-area .fv-hand.tactics {padding:10px 5px 13px;}
