/* A1〜A5。座標は docs/spec/06_ui_design.md §10、色・素材は既存トークン。 */
#app.is-adventure .av-screen { position: absolute; inset: 0; }
#app.is-adventure .av-screen h1,
#app.is-adventure .av-screen h2,
#app.is-adventure .av-screen h3 { margin: 0; }
#app.is-adventure .av-home .table-scrim { background: rgba(24,16,12,.18); }
#app.is-adventure .av-brief .table-scrim { background: rgba(24,16,12,.45); }
#app.is-adventure .av-top { left: 24px; top: 24px; width: 1872px; height: 88px; border-top: 2px solid var(--brass-light); }
#app.is-adventure .av-title { position: absolute; left: 21px; font-size: 36px; color: var(--text-on-wood); }
#app.is-adventure .av-body { position: absolute; left: 24px; top: 136px; width: 1872px; height: 844px; }
#app.is-adventure .av-footer { position: absolute; z-index: 20; left: 24px; top: 996px; width: 1872px; height: 60px; }
#app.is-adventure .av-back { width: 200px; height: 56px; }
#app.is-adventure .av-money { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
#app.is-adventure .av-money > .icon { flex: 0 0 auto; width: 28px; height: 28px; color: var(--brass); }
#app.is-adventure .av-wallet { position: absolute; right: 21px; color: var(--text-on-wood); }
#app.is-adventure .av-wallet > .icon { width: 56px; height: 56px; color: var(--brass-light); }
#app.is-adventure .av-wallet .num { min-width: 112px; font-size: 40px; text-align: right; }
#app.is-adventure .av-primary { color: var(--text-on-wood); background: linear-gradient(var(--teal-light), var(--teal)); }
#app.is-adventure .av-danger { color: var(--text-danger); }
#app.is-adventure .av-stand { position: absolute; z-index: 12; overflow: hidden; pointer-events: none; }
#app.is-adventure .av-speech { z-index: 30; right: auto; max-width: none; overflow: visible; }
#app.is-adventure .av-face { display: inline-grid; place-items: center; width: 88px; height: 88px; }
#app.is-adventure .av-lottery { font-size: 28px; }
#app.is-adventure .av-lottery::before,
#app.is-adventure .av-lottery::after { display: none; }
#app.is-adventure .av-rating { display: inline-flex; gap: 8px; color: var(--brass); }
#app.is-adventure .av-rating .icon { width: 28px; height: 28px; }
#app.is-adventure .av-rating .av-unearned { fill: var(--clear); stroke: var(--brass-dark); }
#app.is-adventure .av-empty { background: color-mix(in srgb, var(--piece-outline) 12%, transparent); border: 2px dashed var(--brass-dark); color: var(--text-dim); box-shadow: none; }
#app.is-adventure .av-screen .is-locked { position: relative; opacity: .5; cursor: not-allowed; transform: none; }
#app.is-adventure .av-screen .is-locked::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(42,26,18,.28) 14px 22px); pointer-events: none; }
#app.is-adventure .av-rule { display: flex; align-items: center; gap: 10px; width: 240px; height: 40px; padding: 0 10px; background: var(--panel-face-2); border: 1px solid var(--brass); border-radius: var(--radius-m); font-size: 18px; font-weight: 400; }
#app.is-adventure .av-rule .icon { width: 26px; height: 26px; flex: 0 0 auto; }
#app.is-adventure .av-rule small { display: block; font-size: 16px; line-height: 22px; font-weight: 400; }
#app.is-adventure .av-stages-scroll,
#app.is-adventure .av-shop-scroll,
#app.is-adventure .av-inventory-list { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--brass-dark) 55%, transparent) transparent; }

/* 部品 #32: サイズは 88 / 72 / 64、盾・円・棚板の共通枠。 */
#app.is-adventure .av-item { position: relative; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
#app.is-adventure .av-item-88 { width: 88px; height: 88px; }
#app.is-adventure .av-item-72 { width: 72px; height: 72px; }
#app.is-adventure .av-item-64 { width: 64px; height: 64px; }
#app.is-adventure .av-item-face { display: grid; place-items: center; width: 100%; height: 100%; background-size: cover; }
#app.is-adventure .av-item-skill .av-item-face { clip-path: polygon(0 0, 100% 0, 92% 72%, 50% 100%, 8% 72%); background-image: var(--tex-brass-img), linear-gradient(var(--brass), var(--brass-dark)); color: var(--brass-light); }
#app.is-adventure .av-item-ability .av-item-face { border: 4px solid var(--brass); border-radius: var(--radius-round); box-shadow: inset 0 0 0 2px var(--brass-dark); background-image: var(--tex-paper-img), linear-gradient(var(--panel-face), var(--panel-face)); color: var(--wood); }
#app.is-adventure .av-item-slot .av-item-face { border-radius: var(--radius-m); background: linear-gradient(var(--teal-light), var(--teal)); color: var(--brass-light); }
#app.is-adventure .av-item .icon { width: 44px; height: 44px; filter: drop-shadow(var(--shadow-piece)); }
#app.is-adventure .av-item-72 .icon { width: 36px; height: 36px; }
#app.is-adventure .av-item-64 .icon { width: 32px; height: 32px; }
#app.is-adventure .av-sp-cost { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--brass-dark); border-radius: var(--radius-round); background: var(--panel-face); color: var(--text); font-size: 18px; }
#app.is-adventure .av-item-72 .av-sp-cost { width: 24px; height: 24px; }
#app.is-adventure .av-item.has-art { background-size: cover; background-position: center; }
#app.is-adventure .av-item.has-art .av-item-face { visibility: hidden; }

/* 吹き出しの尻尾は各立ち絵の顔の方向へ合わせる。 */
#app.is-adventure .av-home-speech::before { left: 276px; }
#app.is-adventure .av-home-speech::after { left: 278px; }
#app.is-adventure .av-shop-speech::before { left: 250px; }
#app.is-adventure .av-shop-speech::after { left: 252px; }
#app.is-adventure .av-brief-speech::before { left: 164px; }
#app.is-adventure .av-brief-speech::after { left: 166px; }

/* A1 */
#app.is-adventure .av-progress { position: absolute; left: 528px; top: 10px; width: 520px; font-size: 26px; color: var(--text-on-wood); }
#app.is-adventure .av-chapter-rail { display: flex; gap: 6px; width: 520px; height: 10px; margin-top: 9px; }
#app.is-adventure .av-chapter-rail span { flex: 1; background: color-mix(in srgb, var(--piece-outline) 70%, transparent); border-radius: var(--radius-s); }
#app.is-adventure .av-chapter-rail .is-clear { background: var(--brass-light); }
#app.is-adventure .av-chapter-rail .is-current { background: var(--glow-gold); }
#app.is-adventure .av-total-rating { position: absolute; left: 1100px; font-size: 20px; color: var(--text-on-wood); }
#app.is-adventure .av-home-menu { position: absolute; z-index: 20; left: 64px; top: 112px; width: 760px; height: 596px; background-image: var(--tex-wood-img), linear-gradient(var(--wood-light), var(--wood-dark)); }
#app.is-adventure .av-home-menu h2 { position: absolute; left: 37px; top: 37px; font-size: 28px; color: var(--text-on-wood); }
#app.is-adventure .av-menu-button { position: absolute; left: 37px; width: 680px; height: 120px; padding: 0; text-align: left; }
#app.is-adventure .av-menu-button:nth-of-type(1) { top: 89px; }
#app.is-adventure .av-menu-button:nth-of-type(2) { top: 221px; }
#app.is-adventure .av-menu-button:nth-of-type(3) { top: 353px; }
#app.is-adventure .av-menu-icon { position: absolute; left: 21px; top: 21px; width: 72px; height: 72px; display: grid; place-items: center; color: var(--brass-dark); }
#app.is-adventure .av-menu-icon.emblem { color: var(--brass-light); }
#app.is-adventure .av-menu-icon .icon { width: 48px; height: 48px; }
#app.is-adventure .av-menu-copy { position: absolute; left: 109px; top: 16px; }
#app.is-adventure .av-menu-copy strong { display: block; font-size: 30px; }
#app.is-adventure .av-menu-copy small { display: block; margin-top: 6px; max-width: 445px; font-size: 18px; font-weight: 400; color: var(--text-dim); }
#app.is-adventure .av-menu-end { position: absolute; right: 18px; bottom: 10px; display: flex; align-items: center; gap: 10px; font-size: 18px; }
#app.is-adventure .av-menu-end .icon { width: 26px; height: 26px; }
#app.is-adventure .av-home-title { position: absolute; left: 457px; top: 497px; width: 260px; height: 56px; background: var(--panel-face-2); }
#app.is-adventure .av-home-main { left: 980px; top: 0; width: 560px; height: 844px; }
#app.is-adventure .av-home-guest { left: 1452px; top: 136px; width: 420px; height: 708px; z-index: 11; filter: brightness(.84) saturate(.92); }
#app.is-adventure .av-home-speech { left: 1000px; top: -16px; width: 440px; height: 112px; }

/* A2 */
#app.is-adventure .av-chapter-tabs { position: absolute; left: 527px; display: flex; gap: 16px; }
#app.is-adventure .av-chapter-tab { width: 260px; height: 56px; }
#app.is-adventure .av-tab-locked { opacity: .6; }
#app.is-adventure .av-stages-scroll { position: absolute; z-index: 20; inset: 0; padding: 20px 24px; }
#app.is-adventure .av-chapter { position: relative; margin-bottom: 24px; }
#app.is-adventure .av-chapter:last-child { margin-bottom: 0; }
#app.is-adventure .av-section-heading { height: 44px; display: flex; align-items: center; gap: 20px; font-size: 26px; color: var(--text-on-wood); text-shadow: var(--shadow-piece); }
#app.is-adventure .av-section-heading::before,
#app.is-adventure .av-section-heading::after { content: ""; height: 2px; background: var(--brass-dark); }
#app.is-adventure .av-section-heading::before { width: 24px; }
#app.is-adventure .av-section-heading::after { flex: 1; }
#app.is-adventure .av-section-heading small { order: 1; font-size: 20px; }
#app.is-adventure .av-stage-grid { display: grid; grid-template-columns: repeat(2, 896px); gap: 32px; margin-top: 8px; }
#app.is-adventure .av-stage-card { position: relative; width: 896px; height: 200px; padding: 0; text-align: left; background-image: linear-gradient(var(--panel-face), var(--panel-face-2)); }
#app.is-adventure .av-stage-card:hover:not(:disabled) { transform: translateY(-3px); outline: 3px solid var(--glow-gold); }
#app.is-adventure .av-stage-name { position: absolute; left: 17px; top: 9px; width: 560px; font-size: 30px; line-height: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app.is-adventure .av-stage-card .av-rating { position: absolute; left: 769px; top: 11px; }
#app.is-adventure .av-stage-meta { position: absolute; left: 17px; top: 51px; width: 856px; font-size: 18px; font-weight: 400; color: var(--text-dim); }
#app.is-adventure .av-stage-faces { position: absolute; left: 17px; top: 85px; display: flex; gap: 8px; }
#app.is-adventure .av-stage-rules { position: absolute; left: 313px; top: 85px; width: 488px; display: flex; flex-wrap: wrap; gap: 6px 8px; }
#app.is-adventure .av-stage-reward { position: absolute; left: 821px; top: 85px; width: 52px; display: flex; flex-direction: column; gap: 0; font-size: 28px; }
#app.is-adventure .av-stage-reward > .icon { width: 40px; height: 40px; }
#app.is-adventure .av-stage-reward small { font-size: 14px; color: var(--text-dim); white-space: normal; text-align: center; line-height: 18px; }
#app.is-adventure .av-clear-tag { position: absolute; left: 660px; top: 0; width: 96px; height: 28px; text-align: center; background: linear-gradient(var(--brass), var(--brass-dark)); color: var(--text-on-wood); font-size: 16px; border-radius: var(--radius-s); }
#app.is-adventure .av-stage-card-body { position: absolute; inset: 0; }
#app.is-adventure .av-screen .av-stage-card.is-locked { opacity: 1; }
#app.is-adventure .av-stage-card.is-locked .av-stage-card-body { opacity: .45; }
#app.is-adventure .av-lock-message { position: absolute; z-index: 1; left: 165px; top: 73px; width: 560px; height: 48px; display: grid; place-items: center; background: var(--parchment); border: 2px solid var(--brass-dark); font-size: 20px; }

#app.is-adventure .av-stage-rules .av-rule { width: auto; height: 30px; padding: 0 8px; gap: 6px; font-size: 16px; }
#app.is-adventure .av-stage-rules .av-rule .icon { width: 20px; height: 20px; }

/* A3 */
#app.is-adventure .av-brief-stand { left: 0; top: 0; width: 760px; height: 844px; }
#app.is-adventure .av-brief-faces { position: absolute; z-index: 13; left: 536px; top: 736px; display: flex; gap: 8px; width: 216px; height: 96px; }
#app.is-adventure .av-brief-speech { left: 212px; top: -8px; width: 548px; height: 140px; font-size: 26px; }
#app.is-adventure .av-brief-panel { position: absolute; z-index: 20; left: 784px; top: 0; width: 1088px; height: 844px; padding: 25px; overflow-y: auto; background-image: var(--tex-paper-img), linear-gradient(var(--panel-face), var(--panel-face-2)); }
#app.is-adventure .av-brief-heading { font-size: 28px; }
#app.is-adventure .av-brief-stats { display: flex; gap: 12px; margin-top: 8px; }
#app.is-adventure .av-brief-stats > div { width: 336px; height: 72px; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--panel-face-2); border-radius: var(--radius-m); font-size: 18px; }
#app.is-adventure .av-brief-stats strong { font-size: 40px; }
#app.is-adventure .av-brief-rules { display: grid; grid-template-columns: repeat(2, 508px); gap: 8px 16px; margin-top: 12px; }
#app.is-adventure .av-brief-rules .av-rule { width: 508px; min-height: 64px; height: auto; padding: 8px 10px; }
#app.is-adventure .av-brief-divider { width: 1032px; margin: 8px 0; border: 0; border-top: 1px solid var(--brass-dark); opacity: .4; }
#app.is-adventure .av-loadout-heading { font-size: 24px; }
#app.is-adventure .av-brief-equipment { display: flex; flex-wrap: wrap; gap: 12px; width: 1032px; margin-top: 8px; }
#app.is-adventure .av-mini { flex: 0 0 240px; width: 240px; height: 88px; display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--panel-face); border: 2px solid var(--brass); border-radius: var(--radius-m); }
#app.is-adventure .av-mini.av-empty { justify-content: center; border-style: dashed; color: var(--text-dim); font-size: 16px; }
#app.is-adventure .av-mini-name { min-width: 0; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
#app.is-adventure .av-change-equipment { width: 240px; height: 48px; margin-left: auto; }
#app.is-adventure .av-brief-notes { width: 1032px; margin-top: 12px; border-top: 1px solid var(--brass-dark); padding-top: 10px; font-size: 20px; line-height: 28px; font-weight: 400; }
#app.is-adventure .av-start { position: absolute; left: 1448px; top: -12px; width: 400px; height: 72px; font-size: 30px; }

#app.is-adventure .av-brief-loadout-header { display: flex; align-items: center; }
#app.is-adventure .av-brief-blurb { margin: 0; }

/* A4 */
#app.is-adventure .av-shop-stand { left: 0; top: 0; width: 620px; height: 844px; }
#app.is-adventure .av-shop-speech { left: 52px; top: 0; width: 520px; height: 130px; font-size: 24px; }
#app.is-adventure .av-shop-panel { position: absolute; z-index: 20; left: 652px; top: 0; width: 1220px; height: 844px; background-image: var(--tex-paper-img), linear-gradient(var(--panel-face), var(--panel-face-2)); }
#app.is-adventure .av-shop-header { position: absolute; left: 21px; top: 21px; width: 1172px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
#app.is-adventure .av-shop-header h2 { font-size: 26px; }
#app.is-adventure .av-shop-wallet { display: flex; align-items: center; gap: 12px; font-size: 18px; }
#app.is-adventure .av-shop-wallet .num { font-size: 28px; }
#app.is-adventure .av-shop-scroll { position: absolute; left: 21px; top: 73px; width: 1172px; height: 744px; }
#app.is-adventure .av-shop-group { padding-bottom: 14px; }
#app.is-adventure .av-shelf-heading { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; gap: 16px; height: 32px; margin-bottom: 14px !important; background: var(--parchment); background-image: var(--tex-paper-img, none); background-size: cover; font-size: 20px; color: var(--brass-dark); }
#app.is-adventure .av-shelf-heading::before,
#app.is-adventure .av-shelf-heading::after { content: ""; height: 2px; background: var(--brass-dark); }
#app.is-adventure .av-shelf-heading::before { width: 20px; }
#app.is-adventure .av-shelf-heading::after { flex: 1; }
#app.is-adventure .av-shop-grid { display: grid; grid-template-columns: repeat(3, 372px); gap: 14px 28px; }
#app.is-adventure .av-shop-card { position: relative; width: 372px; height: 128px; border-width: 2px; text-align: left; box-shadow: var(--shadow-inset); }
#app.is-adventure .av-shop-card > .av-item { position: absolute; left: 10px; top: 18px; }
#app.is-adventure .av-shop-name { position: absolute; left: 110px; top: 6px; width: 248px; font-size: 22px; line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app.is-adventure .av-shop-desc { position: absolute; left: 110px; top: 34px; width: 248px; height: 54px; font-size: 16px; line-height: 18px; font-weight: 400; overflow: hidden; }
#app.is-adventure .av-price { position: absolute; left: 110px; top: 90px; width: 120px; height: 30px; font-size: 24px; }
#app.is-adventure .av-price > .icon { width: 26px; height: 26px; }
#app.is-adventure .av-shop-state { position: absolute; left: 246px; top: 90px; width: 112px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--teal); color: var(--text-on-wood); font-size: 18px; }
#app.is-adventure .av-unaffordable .av-shop-state { opacity: .4; cursor: not-allowed; }
#app.is-adventure .av-unaffordable .av-price .num { color: var(--text-danger); }
#app.is-adventure .av-screen .av-owned { opacity: 1; border-color: var(--brass-dark); background: var(--panel-face-2); }
#app.is-adventure .av-owned .av-shop-state,
#app.is-adventure .av-owned .av-inventory-state { background: linear-gradient(var(--brass), var(--brass-dark)); color: var(--text-on-wood); }
#app.is-adventure .av-shop-card.is-locked .av-shop-state { white-space: nowrap; background: none; color: var(--text-dim); font-size: 16px; line-height: 17px; }
#app.is-adventure .av-shop-notice { position: absolute; z-index: 30; left: 676px; top: 64px; width: 1172px; background: var(--parchment); padding: 12px; text-align: center; color: var(--teal); font-size: 22px; box-shadow: var(--shadow-panel); }
#app.is-adventure .av-purchase .game-modal { width: 720px; height: 420px; }
#app.is-adventure .av-purchase .game-modal-title { margin-bottom: 18px; }
#app.is-adventure .av-purchase .game-modal-body { height: 204px; padding: 20px; }
#app.is-adventure .av-purchase-info { display: flex; align-items: center; gap: 24px; }
#app.is-adventure .av-purchase-info strong { display: block; font-size: 26px; }
#app.is-adventure .av-purchase-info p { margin: 8px 0 0; font-size: 20px; }
#app.is-adventure .av-purchase-price { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 26px; }
#app.is-adventure .av-purchase-remaining { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 20px; color: var(--text-dim); }
#app.is-adventure .av-purchase .game-modal-footer .btn { width: 200px; height: 56px; }
#app.is-adventure .av-purchase .game-modal-footer .btn:not(.av-primary) { color: var(--text); }
#app.is-adventure .av-purchase .game-modal-footer .av-primary { width: 240px; }

/* A5 */
#app.is-adventure .av-slots-panel,
#app.is-adventure .av-inventory-panel { position: absolute; z-index: 20; top: 0; height: 844px; background-image: var(--tex-paper-img), linear-gradient(var(--panel-face), var(--panel-face-2)); }
#app.is-adventure .av-slots-panel { left: 0; width: 760px; }
#app.is-adventure .av-slots-content { position: absolute; left: 25px; top: 25px; width: 704px; height: 788px; }
#app.is-adventure .av-equip-heading { font-size: 28px; }
#app.is-adventure .av-slots-heading,
#app.is-adventure .av-fixed-heading { position: absolute; left: 0; height: 32px; font-size: 22px; color: var(--brass-dark); }
#app.is-adventure .av-slots-heading-skills { top: 36px; }
#app.is-adventure .av-slots-heading-abilities { top: 310px; }
#app.is-adventure .av-fixed-heading { top: 662px; }
#app.is-adventure .av-equipment-slot { position: absolute; left: 0; width: 704px; height: 88px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0; text-align: left; background: var(--panel-face); border: 3px solid var(--brass); border-radius: var(--radius-m); box-shadow: none; }
#app.is-adventure .av-slot-skills-0 { top: 68px; height: 104px; }
#app.is-adventure .av-slot-skills-1 { top: 186px; height: 104px; }
#app.is-adventure .av-slot-abilities-0 { top: 342px; }
#app.is-adventure .av-slot-abilities-1 { top: 442px; }
#app.is-adventure .av-slot-abilities-2 { top: 542px; }
#app.is-adventure .av-equipment-slot.av-empty { border: 2px dashed var(--brass-dark); background: color-mix(in srgb, var(--piece-outline) 12%, transparent); font-size: 20px; }
#app.is-adventure .av-screen .av-equipment-slot.is-locked { position: absolute; opacity: 1; color: var(--brass-dark); font-size: 16px; }
#app.is-adventure .av-equipment-lock-message { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; background: color-mix(in srgb, var(--parchment) 85%, transparent); border-radius: var(--radius-s); }
#app.is-adventure .av-equipment-slot > .av-item { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
#app.is-adventure .av-slot-copy { position: absolute; left: 100px; right: 108px; top: 50%; transform: translateY(-50%); }
#app.is-adventure .av-slot-copy strong { display: block; font-size: 24px; }
#app.is-adventure .av-slot-copy small { display: block; font-size: 18px; line-height: 24px; font-weight: 400; }
#app.is-adventure .av-slot-state { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 88px; height: 32px; display: grid; place-items: center; font-size: 16px; background: var(--panel-face-2); border-radius: var(--radius-s); }
#app.is-adventure .av-fixed { top: 694px; border-color: var(--brass-light); box-shadow: var(--shadow-glow); background: var(--parchment); }
#app.is-adventure .av-fixed .av-slot-state { color: var(--text-dim); background: none; }
#app.is-adventure .av-replace { outline: 3px solid var(--glow-gold); outline-offset: 2px; }
#app.is-adventure .av-inventory-panel { left: 784px; width: 1088px; }
#app.is-adventure .av-inventory-header { position: absolute; left: 25px; top: 25px; width: 1032px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
#app.is-adventure .av-inventory-header h2 { max-width: 700px; font-size: 26px; }
#app.is-adventure .av-inventory-tabs { display: flex; gap: 8px; }
#app.is-adventure .av-inventory-tabs .btn { width: 160px; height: 40px; font-size: 20px; }
#app.is-adventure .av-inventory-list { position: absolute; left: 25px; top: 93px; width: 1032px; height: 720px; }
#app.is-adventure .av-inventory-row { position: relative; width: 1032px; height: 92px; margin-bottom: 10px; text-align: left; box-shadow: none; }
#app.is-adventure .av-inventory-row > .av-item { position: absolute; left: 9px; top: 11px; }
#app.is-adventure .av-inventory-copy { position: absolute; left: 96px; top: 8px; right: 160px; }
#app.is-adventure .av-inventory-copy strong { display: block; font-size: 20px; }
#app.is-adventure .av-inventory-copy small { display: block; margin-top: 2px; font-size: 16px; line-height: 20px; font-weight: 400; }
#app.is-adventure .av-inventory-state { position: absolute; right: 16px; top: 27px; width: 112px; height: 32px; display: grid; place-items: center; font-size: 18px; border-radius: var(--radius-s); opacity: 0; }
#app.is-adventure .av-inventory-row:hover .av-inventory-state,
#app.is-adventure .av-inventory-row:focus-visible .av-inventory-state,
#app.is-adventure .av-inventory-row.av-owned .av-inventory-state { opacity: 1; }
#app.is-adventure .av-inventory-empty { margin: 310px 0 0; text-align: center; color: var(--text-dim); font-size: 20px; }

#app.is-adventure .av-item-flavor { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--text-dim); }
#app.is-adventure .av-inventory-browse-heading { margin: 12px 0; font-size: 20px; color: var(--brass-dark); }
#app.is-adventure .av-inventory-browse { opacity: .72; border-style: dashed; }
#app.is-adventure .av-inventory-browse:hover,
#app.is-adventure .av-inventory-browse:focus-visible { opacity: 1; }
#app.is-adventure .av-inventory-browse .av-inventory-state { top: 14px; height: 58px; opacity: 1; color: var(--brass-dark); }
#app.is-adventure .av-inventory-browse .av-inventory-state > small { font-size: 14px; }

/* 対局中 §10-8。板の外形・通常モードのルールには触れない。 */
#app.is-adventure .hud-actions .roll-button { left: 7px; top: 137px; bottom: auto; width: 240px; height: 48px; }
#app.is-adventure .hud-actions .end-turn { left: 255px; top: 137px; bottom: auto; width: 298px; }
#app.is-adventure .av-sp-gauge { position: absolute; left: 0; top: 90px; width: 200px; height: 28px; border-top: 1px solid rgba(0,0,0,.4); border-radius: 6px; background: var(--wood-dark); box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
#app.is-adventure .av-sp-cells { position: absolute; left: 6px; top: 3px; display: flex; gap: 2px; }
#app.is-adventure .av-sp-cell { display: block; width: 15px; height: 20px; border-radius: 3px; background: rgba(0,0,0,.28); }
#app.is-adventure .av-sp-cell.is-lit { background: linear-gradient(var(--glow-gold), var(--brass)); border-top: 1px solid var(--brass-light); }
#app.is-adventure .av-sp-value { position: absolute; right: 2px; top: 1px; font-size: 20px; line-height: 24px; color: var(--text-on-wood); }
#app.is-adventure .av-sp-gauge.is-empty .av-sp-value { color: var(--text-dim); }
#app.is-adventure .av-sp-marker { position: absolute; top: 0; height: 26px; width: 2px; background: var(--brass-light); box-shadow: 0 0 2px var(--wood-dark); }
#app.is-adventure .av-sp-mini { left: auto; right: 16px; top: auto; bottom: 15px; width: 152px; height: 18px; background: rgba(0,0,0,.45); }
#app.is-adventure .av-sp-mini .av-sp-cells { left: 20px; top: 2px; gap: 1px; }
#app.is-adventure .av-sp-mini .av-sp-cell { width: 12px; height: 12px; }
#app.is-adventure .av-sp-mini .av-sp-value { left: 0; right: auto; top: 0; width: 16px; text-align: left; font-size: 12px; line-height: 16px; letter-spacing: -1px; }
#app.is-adventure .av-stage-info-panel { left: 1356px; top: 324px; width: 540px; height: 420px; padding: 20px 24px; background: var(--parchment); background-image: var(--tex-paper-img, none); background-size: cover; }
#app.is-adventure .av-stage-info-chapter { margin: 0 0 8px; color: var(--brass-dark); font-size: 20px; }
#app.is-adventure .av-stage-info-name { margin: 0 0 12px; font-size: 28px; }
#app.is-adventure .av-stage-info-target { margin: 0 0 16px; font-size: 24px; }
#app.is-adventure .av-stage-info-rules { display: flex; flex-direction: column; gap: 8px; }
#app.is-adventure .av-stage-info-rules .av-rule { width: 100%; min-height: 40px; height: auto; padding: 6px 10px; }
#app.is-adventure .av-skill-row { position: absolute; left: 0; top: 126px; width: 200px; height: 68px; display: flex; gap: 8px; }
#app.is-adventure .av-skill-button { position: relative; flex: 1 1 0; width: 96px; height: 68px; min-width: 0; padding: 3px 1px; font-size: 13px; }
#app.is-adventure .av-skill-button > .icon { width: 32px; height: 32px; margin: 0 auto 3px; }
#app.is-adventure .av-skill-label { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#app.is-adventure .av-skill-cost { position: absolute; right: 1px; top: 0; width: 26px; height: 26px; display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 92% 72%, 50% 100%, 8% 72%); background: var(--panel-face); color: var(--text); font-size: 15px; }
#app.is-adventure .av-skill-button:disabled { opacity: .4; cursor: not-allowed; }
#app.is-adventure .av-skill-button.is-short .av-skill-cost { color: var(--text-danger); }
#app.is-adventure .av-skill-button.is-ready { outline: 3px solid var(--glow-gold); }
#app.is-adventure .av-skill-button:hover:not(:disabled) { transform: translateY(-2px); }
#app.is-adventure .av-skill-button:active:not(:disabled) { transform: translateY(1px); }

/* 対象選択。キャンセルボタンと見出しを固定枠内に収める。 */
#app.is-adventure .av-skill-dialog .game-modal { width: 780px; height: 312px; padding: 16px 20px; display: flex; flex-direction: column; }
#app.is-adventure .av-skill-dialog .game-modal-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#app.is-adventure .av-skill-dialog .game-modal-body { flex: 1; min-height: 0; padding: 8px 16px; }
#app.is-adventure .av-skill-dialog .game-modal-footer { margin-top: 8px; gap: 12px; }
#app.is-adventure .av-skill-dialog .game-modal-footer .modal-choice { min-height: 36px; height: 36px; padding: 2px 20px; font-size: 18px; }
#app.is-adventure .av-skill-dialog .steal-choices { justify-content: center; height: 100%; gap: 12px; }
#app.is-adventure .av-skill-dialog .steal-choices .modal-choice { padding: 2px 8px; font-size: 18px; }
#app.is-adventure .av-skill-dialog .steal-choices .face-icon-lg { margin-bottom: 0; }
#app.is-adventure .av-skill-dialog .steal-hand { display: block; font-size: 16px; }
#app.is-adventure .av-skill-target-number .game-modal { height: 360px; }
#app.is-adventure .av-number-choices { display: grid; grid-template-columns: repeat(5, 56px); gap: 16px; justify-content: center; align-content: center; height: 100%; }
#app.is-adventure .av-number-chip { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 56px; height: 56px; min-width: 56px; min-height: 56px; padding: 0; border: 2px solid var(--brass-dark); border-radius: 50%; background: var(--parchment); background-image: var(--tex-paper-img); font-size: 26px; line-height: 28px; box-shadow: var(--shadow-piece); }
#app.is-adventure .av-number-chip-unknown .icon { width: 28px; height: 28px; }
#app.is-adventure .av-number-chip.is-red { color: var(--text-danger); }
#app.is-adventure .av-number-pips { font-size: 12px; line-height: 10px; letter-spacing: 1px; }
#app.is-adventure .av-number-chip:hover, #app.is-adventure .av-number-chip:focus-visible { outline: 3px solid var(--glow-gold); }
#app.is-adventure .av-shift-choices { display: flex; justify-content: center; align-items: center; gap: 24px; height: 112px; }
#app.is-adventure .av-shift-preview { order: 1; display: flex; gap: 12px; }
#app.is-adventure .av-shift-button { width: 160px; height: 72px; font-size: 30px; }
#app.is-adventure .av-skill-dialog .av-shift-note { margin: 0; text-align: center; font-size: 18px; }
#app.is-adventure .av-skill-target-resourceChoice .game-modal,
#app.is-adventure .av-skill-target-swap .game-modal { width: 900px; height: 420px; }
#app.is-adventure .av-skill-editors { display: flex; justify-content: space-evenly; gap: 28px; height: 100%; align-items: center; }
#app.is-adventure .av-skill-editor h3 { margin: 0 0 16px; font-size: 22px; text-align: center; }
#app.is-adventure .av-skill-resources { display: flex; gap: 14px; justify-content: center; }
#app.is-adventure .av-skill-resource .trade-mini { position: relative; }
#app.is-adventure .av-skill-resource .trade-mini::after { content: "+"; position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: var(--radius-round); background: var(--teal); color: var(--text-on-wood); font-size: 16px; line-height: 22px; text-align: center; box-shadow: var(--shadow-piece); }
#app.is-adventure .av-skill-target-resourceChoice .av-skill-editor { width: 100%; }
#app.is-adventure .av-skill-target-resourceChoice .av-skill-resources { justify-content: space-evenly; }
#app.is-adventure .av-skill-stepper { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
#app.is-adventure .av-skill-stepper .modal-choice { width: 30px; height: 30px; min-width: 30px; min-height: 30px; padding: 0; font-size: 18px; }
#app.is-adventure .av-skill-stepper > .num { min-width: 16px; text-align: center; font-size: 20px; }

/* SVG の上には擬似要素を載せられないため、スキル行の .log-act だけ span。 */
#app.is-adventure .log-row.tone-skill { background-image: linear-gradient(90deg, rgba(255,207,92,.22), transparent); box-shadow: inset 2px 0 var(--brass); }
#app.is-adventure .tone-skill .log-bar { left: 2px; width: 2px; }
#app.is-adventure .tone-skill .log-act { position: relative; width: 24px; height: 24px; }
#app.is-adventure .tone-skill .log-act > .icon { width: 24px; height: 24px; color: var(--text); stroke: currentColor; }
#app.is-adventure .tone-skill .log-act::after { content: ""; position: absolute; left: -4px; top: -5px; width: 14px; height: 14px; background: var(--brass-light); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 3 L41 21 61 24 46 39 50 60 32 50 14 60 18 39 3 24 23 21 Z'/%3E%3C/svg%3E") center / contain; }
#app.is-adventure .tone-skill .log-act { filter: drop-shadow(0 1px 0 var(--brass-dark)); }
#app.is-adventure .npc-panel.av-ability-proc { animation: av-ability-flash 300ms ease-out 1; }
@keyframes av-ability-flash { 25%, 65% { border-color: var(--glow-turn); box-shadow: 0 0 14px var(--glow-turn), inset 0 0 0 2px var(--glow-turn); } }

#app.is-adventure .av-cutin-skill-tag { position: absolute; left: 24px; bottom: 20px; display: grid; place-items: center; width: 280px; height: 48px; border: 2px solid var(--brass-dark); background: var(--parchment); color: var(--text); font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app.is-adventure .av-skill-crest { background: var(--wood-dark); background-image: var(--tex-wood-img); background-size: cover; }
#app.is-adventure .av-skill-crest::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--glow-gold) 55%, transparent) 0%, transparent 70%); }
#app.is-adventure .av-cutin-silhouette { position: absolute; left: 0; top: 0; width: 240px; height: 420px; object-fit: cover; opacity: .5; filter: sepia(1) brightness(.7); }
#app.is-adventure .av-cutin-shield { position: absolute; left: 240px; top: 24px; width: 240px; height: 240px; filter: drop-shadow(0 0 16px var(--glow-gold)); }
#app.is-adventure .av-cutin-shield .icon { width: 120px; height: 120px; }
#app.is-adventure .av-cutin-skill-name { position: absolute; top: 278px; left: 24px; right: 24px; text-align: center; font-size: 36px; color: var(--text-on-wood); }
#app.is-adventure .av-cutin-sp { position: absolute; top: 340px; left: 24px; right: 24px; text-align: center; font-size: 24px; color: var(--text-on-wood); }
#app.is-adventure .av-player-skill-cutin .cutin-text { display: block; -webkit-line-clamp: unset; height: auto; min-height: 160px; white-space: normal; font-size: 32px; }

/* A6: 終局の報酬。既存リザルトへの調整はアドベンチャーだけに限定する。 */
#app.is-adventure .is-adventure-result .game-modal { min-height: 760px; max-height: 880px; height: auto; }
#app.is-adventure .is-adventure-result .game-modal-body { max-height: none; padding: 8px; }
#app.is-adventure .av-result-banner { display: flex; align-items: center; gap: 32px; height: 120px; padding: 12px 24px; margin-bottom: 8px; border: 2px solid var(--brass-dark); border-radius: var(--radius-m); background: var(--tex-paper-img), var(--parchment); background-size: cover; }
#app.is-adventure .av-result-emblem { position: relative; flex: 0 0 88px; width: 88px; height: 88px; display: grid; place-items: center; color: var(--brass-light); }
#app.is-adventure .av-result-emblem .icon { width: 56px; height: 56px; filter: drop-shadow(var(--shadow-piece)); }
#app.is-adventure .av-result-earned { flex: 1; }
#app.is-adventure .av-result-earned > span { display: block; font-size: 18px; color: var(--text-dim); }
#app.is-adventure .av-result-earned > strong { display: block; font-size: 56px; line-height: 1.1; color: var(--brass-dark); }
#app.is-adventure .av-result-rating { display: flex; align-self: stretch; align-items: center; gap: 12px; padding-right: 24px; color: var(--brass); }
#app.is-adventure .av-result-rating > div { position: relative; }
#app.is-adventure .av-result-rating .icon { width: 56px; height: 56px; filter: drop-shadow(var(--shadow-piece)); }
#app.is-adventure .av-result-rating .av-result-unearned { fill: var(--clear); stroke: var(--brass-dark); stroke-width: 2px; filter: none; }
#app.is-adventure .av-result-rating small { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 16px; color: var(--text-dim); }
#app.is-adventure .is-adventure-result .result-table { line-height: 24px; }
#app.is-adventure .is-adventure-result .result-table th,
#app.is-adventure .is-adventure-result .result-table td { padding: 2px 8px; }
#app.is-adventure .av-result-breakdown { margin-bottom: 8px; }
#app.is-adventure .av-result-breakdown th:first-child { width: 100px; }
#app.is-adventure .av-result-breakdown td:nth-child(2) { text-align: left; }
#app.is-adventure .av-result-breakdown td:last-child { width: 128px; text-align: right; }
#app.is-adventure .av-result-total { background: var(--brass-light); font-weight: 700; }
#app.is-adventure .is-adventure-result .result-winner { gap: 24px; margin-bottom: 8px; }
#app.is-adventure .is-adventure-result .result-winner .negotiation-portrait { height: 140px; }
#app.is-adventure .is-adventure-result .result-winner-info .negotiation-speech { margin-top: 6px; padding: 10px 16px; min-height: 0; }
#app.is-adventure .is-adventure-result .result-losers { gap: 12px; margin-bottom: 8px; }
#app.is-adventure .is-adventure-result .result-loser { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: 28px 1fr; gap: 6px 8px; align-items: start; }
#app.is-adventure .is-adventure-result .result-loser .negotiation-portrait { grid-row: 1 / 3; width: 112px; height: 140px; }
#app.is-adventure .is-adventure-result .result-loser .negotiation-speech { padding: 6px 8px; font-size: 18px; }
#app.is-adventure .is-adventure-result .result-note { margin: 6px 0 0; line-height: 22px; }
#app.is-adventure .is-adventure-result .game-modal-footer { margin-top: 12px; }
#app.is-adventure .is-adventure-result .game-modal-footer .modal-choice { width: 240px; height: 64px; }
#app.is-adventure .is-adventure-result .game-modal-footer .modal-choice:last-child { width: 320px; background: linear-gradient(var(--teal-light), var(--teal)); color: var(--text-on-wood); }

#app.is-adventure .av-player-skill-desc { margin: 0; font-size: 32px; }
#app.is-adventure .av-player-skill-flavor { margin: 8px 0 0; font-size: 22px; color: var(--text-dim); }
