/* V6: readable deck building, card artwork with preserved proportions, and resolution ledger. */
.style-select,.style-chosen,.style-rule{background:linear-gradient(120deg,#101f30ed,#1a3140e9);border:1px solid #c5975d;box-shadow:inset 0 0 0 1px #f0d0942e,0 7px 20px #0008;color:#f8e5c0}
.style-select{padding:12px;margin:8px 0}.style-select-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:9px}.style-select-title strong{font-size:20px;letter-spacing:.08em}.style-select-title small{font-size:13px;color:#cbdad9}.style-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.style-options button{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;gap:0 8px;text-align:left;align-items:center;min-width:0;padding:9px;border:1px solid #94744e;background:linear-gradient(130deg,#263b46,#122433);color:#ffdfaa;cursor:pointer;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}.style-options button:hover,.style-options button:focus-visible{border-color:#ffe19e;background:#35515b;filter:brightness(1.15)}.style-options b,.style-emblem{grid-row:span 2;display:grid;place-items:center;width:39px;height:39px;background:#a94f2c;border:1px solid #ebbb70;font-size:20px;color:#fff0d3;transform:rotate(-5deg)}.style-options strong{font-size:16px}.style-options small{color:#c5d7d9;font-size:11px;line-height:1.3}.style-chosen{display:flex;align-items:center;gap:9px;margin:7px 0;padding:6px 10px}.style-chosen strong{display:block;font-size:15px}.style-chosen small{display:block;color:#bdd0d3;font-size:11px}.style-strip .style-chosen{margin:3px 0 8px}.style-rule{margin:12px 0;padding:14px}.style-rule h3{font-size:20px;color:#ffe0a4;margin:0 0 4px}.style-rule p{font-size:15px;line-height:1.5;margin:0;color:#e5e5d9}
.draw-actions{display:flex;gap:5px;flex-wrap:wrap}.draw-actions .focus-button{background:linear-gradient(115deg,#335165,#1d3044);color:#d9f4f3;border-color:#7aafb2}.draw-actions .focus-button:disabled{opacity:.46}
.battle-slot.has-card{min-height:94px;align-content:start}.battle-slot .slot-preview{grid-column:2 / -1;display:grid;grid-template-columns:auto 1fr;gap:2px 6px;min-width:0;padding:3px 6px;margin-top:2px;background:#091726b9;border-left:2px solid var(--element-color,#e6b979);color:#f7e1aa}.slot-preview b{font-size:12px;white-space:nowrap}.slot-preview small{font-size:10px;line-height:1.25;color:#d9e4e2;white-space:normal}.slot-preview em{grid-column:1/-1;font-style:normal;font-size:9px;color:#a6d6d8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settlement-ledger{margin:10px 0 0;padding:10px;border:2px solid #bd9566;background:linear-gradient(120deg,#132635eb,#0d1d2ceb),url('/src/assets/ui-washi-v5.webp') center/cover;color:#f4e4c5;max-height:min(31vh,250px);overflow:auto}.ledger-head{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #8c795c;padding-bottom:5px}.ledger-head strong{font-size:17px}.ledger-head small{font-size:11px;color:#bdcbcc}.ledger-wave{display:grid;grid-template-columns:72px repeat(3,minmax(0,1fr));gap:6px;padding:6px 0;border-bottom:1px solid #ffffff25}.ledger-wave>b{font-size:12px;color:#f2bd73;padding-top:5px}.ledger-effect{min-width:0;display:flex;flex-wrap:wrap;align-content:start;gap:2px 6px;border-left:2px solid #ba8b58;background:#071724b8;padding:5px}.ledger-effect strong{font-size:12px}.ledger-effect>span:not(.effect-math){font-size:12px;color:#ffcd84}.effect-math{flex-basis:100%;font-size:10px;line-height:1.35;color:#cbd9d8}
.cinema-speed{border:1px solid #b99c72;background:#142734ce;color:#ffe0a7;cursor:pointer;padding:4px 8px;font-size:12px}.cinema-speed:hover{background:#345260}
.skill-card:before,.offer-card:before,.skill-codex .codex-card:before{display:none}.skill-card .card-art-window,.offer-card .card-art-window{position:absolute;z-index:0;inset:0 0 0 45%;display:block;overflow:hidden;pointer-events:none}.card-art-window img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;aspect-ratio:1}.skill-card:after,.offer-card:after{z-index:0;background:linear-gradient(90deg,#091522f8 0%,#0b1929ee 42%,#0c192999 65%,#06111e18 100%),linear-gradient(0deg,#061321ee,transparent 50%)}.skill-card .skill-number,.skill-card .skill-icon,.skill-card .skill-body,.skill-card .skill-end,.offer-card .offer-rarity,.offer-card .skill-icon,.offer-card .skill-body,.offer-card .skill-end{z-index:1;position:relative}.skill-card .skill-icon,.offer-card .skill-icon{background-image:none!important;display:grid;place-items:center}
.skill-codex .codex-card .codex-art{position:absolute;right:0;top:0;width:45%;height:100%;object-fit:cover;object-position:center;opacity:.7;mask-image:linear-gradient(90deg,transparent,#000 50%);pointer-events:none}.card-detail-hero{background:#07131f!important;display:grid;place-items:center;overflow:hidden;height:clamp(160px,31vh,310px);aspect-ratio:1.9;width:100%;margin:10px auto}.card-detail-hero img{display:block;max-width:100%;width:100%;height:100%;object-fit:contain;object-position:center;aspect-ratio:1}
@media(orientation:landscape) and (max-height:650px){.style-select{padding:6px;margin:3px 0}.style-select-title{margin-bottom:3px}.style-select-title strong{font-size:14px}.style-select-title small{font-size:9px}.style-options{gap:3px}.style-options button{grid-template-columns:26px 1fr;padding:3px 5px}.style-options b{width:24px;height:24px;font-size:12px}.style-options strong{font-size:11px}.style-options small{font-size:8px}.style-chosen{padding:3px 7px}.style-chosen .style-emblem{width:24px;height:24px;font-size:12px}.style-chosen strong{font-size:11px}.style-chosen small{font-size:8px}.battle-slot.has-card{min-height:64px}.slot-preview b{font-size:9px}.slot-preview small,.slot-preview em{font-size:7px}.settlement-ledger{max-height:22vh}.ledger-head strong{font-size:11px}.ledger-wave{grid-template-columns:45px repeat(3,minmax(0,1fr));gap:3px}.ledger-effect strong,.ledger-effect>span:not(.effect-math){font-size:8px}.effect-math{font-size:7px}.card-detail-hero{height:80px}}
@media(max-width:690px){.style-options{grid-template-columns:1fr 1fr}.style-options button{grid-template-columns:28px 1fr}.style-options b{width:26px;height:26px;font-size:14px}.style-options strong{font-size:11px}.style-options small{font-size:9px}.ledger-wave{grid-template-columns:48px 1fr 1fr}.ledger-effect{padding:3px}.card-detail-hero{height:130px}}

.battle-slot.has-card strong{color:#fff0d1;font-size:14px;text-shadow:0 1px 2px #000}.battle-slot.is-empty{background:#1b2c39;border:1px dashed #977951;color:#ead3ac}.battle-slot.is-empty small{color:#d5b88b}.offer-card .offer-rarity{position:absolute;top:5px;right:7px}.skill-card .skill-number{position:absolute;top:5px;right:7px}
@media(orientation:landscape) and (max-height:450px){
  .page-shell .arena-frame{padding:1px;margin:0}.page-shell .arena-topbar,.page-shell .arena-footer{display:none}.page-shell .arena-scene,.page-shell--trio.page-shell--market .arena-scene{height:52px!important}.page-shell .fighter{bottom:1px;width:55px}.page-shell .fighter-art{width:45px;height:48px;object-fit:contain}.page-shell .fighter-label,.page-shell .versus-mark,.page-shell .fighter-shadow{display:none}.page-shell .arena-scene .moon,.page-shell .arena-scene .mountain,.page-shell .arena-scene .village{display:none}
  .style-select{padding:4px 6px;margin:2px 0}.style-select-title{margin:0 0 3px}.style-select-title strong{font-size:12px}.style-select-title small{font-size:8px}.style-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.style-options button{grid-template-columns:20px 1fr;padding:2px 3px;min-height:28px}.style-options b{width:19px;height:19px;font-size:10px}.style-options strong{font-size:10px}.style-options small{display:none}
  .page-shell .turn-panel{padding:4px 6px}.page-shell .turn-head{padding-bottom:2px}.page-shell .turn-head h2{font-size:12px}.page-shell .dice-zone{padding:2px 0}.page-shell .dice-row{margin:1px 0}.page-shell .die{width:28px;height:28px}.page-shell .zone-title span{font-size:9px}.page-shell .zone-title small{font-size:7px}.page-shell .combo-line{margin-top:1px;font-size:7px;min-height:0}.page-shell .action-message{min-height:19px;padding:2px 4px;margin-top:2px}.page-shell .main-action{padding-top:2px}.page-shell .roll-button{height:26px;font-size:11px}
  .page-shell .player-card{padding:3px 5px}.page-shell .player-top{margin:0}.page-shell .stat-row{margin:1px 0}.page-shell .player-foot{margin-top:1px;padding-top:1px}.page-shell .left-column{gap:3px}.page-shell .battle-log{display:none}.page-shell .game-wrap{gap:3px}.page-shell .skills-section{padding:4px}
  .page-shell .battle-slot.has-card{min-height:47px}.page-shell .battle-slot.has-card strong{font-size:10px}.page-shell .slot-preview{padding:1px 2px;margin-top:0}.page-shell .slot-preview b,.page-shell .slot-preview small{font-size:7px}.page-shell .slot-preview em{display:none}.page-shell .selected-tray{gap:2px}
  .page-shell .offer-card,.page-shell .hand-grid .skill-card{min-height:54px}.page-shell .skill-body strong,.page-shell .offer-card .skill-body strong{font-size:10px}.page-shell .skill-body small,.page-shell .offer-card .skill-body small{font-size:7px}.page-shell .settlement-ledger{max-height:105px}.page-shell .ledger-wave{grid-template-columns:40px repeat(3,minmax(0,1fr))}
}
