/* Pocket game shell. Paper, jade, cinnabar and the selected illustrations stay the visual anchors. */
:root{--nav-height:76px;--paper:#eee4cc;--paper-light:#faf3df;--ink:#233f35;--muted:#7a735e;--jade:#285745;--gold:#bda36a;--line:#cfbf9a;--red:#984b37;--folio-line:#bca57466;--folio-wash:linear-gradient(145deg,#fff7e380,#f1e8cf24);--folio-radius:16px 4px;--folio-shadow:0 5px 14px #344b3020}
html{background:#18362f;scroll-padding-top:76px;scrollbar-color:#ac996a #263e33}
body{background:radial-gradient(ellipse at 50% 0,#4e6951 0,#1c3b32 55%,#142b25 100%);min-height:100svh}
body:before{z-index:0;opacity:.2;background-size:6px 6px}
body:has(dialog[open]){overflow:hidden}
#app{position:relative;max-width:520px;margin:0 auto;min-height:100svh;background:var(--paper);box-shadow:0 0 100px #041b2680;isolation:isolate}
#app:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.3;background-image:radial-gradient(#9d81493d .6px,transparent .6px);background-size:4px 4px}
#app .page{max-width:none;width:100%;margin:0;padding:20px 18px calc(var(--nav-height) + 20px + env(safe-area-inset-bottom));min-height:calc(100svh - 64px)}
#app h1{font-size:27px;line-height:1.35;letter-spacing:1px;overflow-wrap:anywhere}
#app .eyebrow{font-size:9px;letter-spacing:1.5px;line-height:1.5}
#app .site-header{height:calc(64px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);border:0;background:linear-gradient(115deg,#183e33,#31533e);color:#eee1b6;box-shadow:0 2px 8px #18362822;z-index:8}
#app .header-inner{padding:0 14px;gap:8px;max-width:none}
#app .player-chip{display:flex;align-items:center;gap:9px;min-width:0;flex:1;min-height:48px}
.player-avatar{width:38px;height:42px;display:grid;place-items:center;flex-shrink:0;font:26px var(--serif);color:#efdba8;background:#964e39;border:1px solid #ccac6c;border-radius:9px 2px;box-shadow:inset 0 0 0 3px #964e39,inset 0 0 0 4px #bc8e59;transform:rotate(-3deg)}
.player-name{min-width:0;display:flex;flex-direction:column;gap:1px}.player-name strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-name small{font-size:9px;color:#cabb94;letter-spacing:1px}
.hud-resources{display:flex;gap:5px;flex-shrink:0}.hud-resources a{display:flex;align-items:center;gap:4px;min-height:44px;padding:0 6px;font:12px var(--sans);font-variant-numeric:tabular-nums;border:1px solid #c9b77d20;border-radius:8px;background:#102b241f}.hud-resources .icon{width:17px;height:19px;color:#d1b26e}.hud-resources small{font-size:9px;color:#ccbd9b}.hud-resources strong{font-weight:500}
#app .language-button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;color:#e2d2a7;font:11px var(--sans);letter-spacing:0;border:1px solid #bba66e30;border-radius:50%}
#app .back-button{position:relative;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;color:#ecdcb3;flex-shrink:0;display:grid;place-items:center;box-shadow:none}
#app .site-header .back-button::before{content:"";position:absolute;inset:6px;border:1px solid #c4aa6b70;border-radius:9px 3px;background:#d5c38e0c;pointer-events:none}
#app .site-header .back-button .icon{width:18px;height:18px}
#app .site-header .back-button:hover::before{background:#d5c38e20;border-color:#c4aa6ba0}
#app .site-header .player-avatar{display:grid;width:30px;height:34px;font-size:22px}
#app .detail-brand{display:block;margin:0 auto 0 0;font:20px var(--serif);letter-spacing:2px;color:#e4d4ac;white-space:nowrap}
#app .feature-header .header-inner{flex-wrap:nowrap;min-height:56px}
#app .feature-header .detail-brand{display:flex;align-items:center;gap:8px;min-width:0}
#app .feature-header .detail-brand .player-avatar,
body[data-screen=boss] #app .site-header .player-avatar{width:30px;height:34px;font-size:22px}
#app .feature-header .back-button{align-self:center}
@media(max-width:359px){#app .feature-header .detail-brand{gap:5px;font-size:18px;letter-spacing:1px}#app .feature-header .detail-brand .player-avatar{display:grid}}
#app .bottom-nav{position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:520px;height:calc(76px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);border-top:1px solid #c4ac6c;z-index:20;background:linear-gradient(180deg,#31553f,#203f32);box-shadow:0 -6px 20px #19372b24;backdrop-filter:none}
#app .nav-inner{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:none;height:76px;padding:0;gap:0}
#app .nav-inner>a{display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center;min-width:0;color:#bcc5a7;font-size:10px;position:relative;letter-spacing:1px;padding:4px 0 5px;min-height:64px}
.nav-medallion{height:33px;width:43px;display:grid;place-items:center;border-radius:12px 3px;background:transparent}
#app .nav-inner>a .icon{width:26px;height:26px}#app .nav-inner>a>i{display:none}
#app .nav-inner>a[aria-current]{color:#f5dc99}.nav-inner>a[aria-current] .nav-medallion{background:#d5c78f15;box-shadow:inset 0 0 0 1px #d3b56666}
#app .nav-packs .nav-medallion{height:51px;width:53px;margin-top:-18px;margin-bottom:2px;color:#f9e6ad;border:2px solid #c5a369;background:linear-gradient(145deg,#ad6447,#874632);border-radius:16px 4px;box-shadow:0 3px 7px #0c2b2670,inset 0 0 0 3px #9b533a,inset 0 0 0 4px #c9985d}
#app .nav-packs .icon{height:29px;width:29px}
#app .button{border-radius:10px 3px;min-height:48px;padding:11px 16px;gap:8px;font:600 13px var(--sans);letter-spacing:.4px;line-height:1.4;box-shadow:none}
#app .button.primary{background:linear-gradient(145deg,#a76043,#8b422f);color:#fff0ce;border:1px solid #b79155;box-shadow:0 3px 0 #653d2d,inset 0 0 0 2px #b4785133;text-shadow:0 1px #66311f}
#app .button.primary:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #653d2d}
#app .button.secondary{border:1px solid #a99c76;background:#f5ecd5;color:var(--jade)}
#app .button:disabled{opacity:.48;box-shadow:none;cursor:default}
#app .text-button{min-height:44px}
#app :is(button,a,summary):focus-visible{outline:2px solid #b56b31;outline-offset:3px}
.game-landscape{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}

/* A home scene with one main action, working entrances, and a real collection goal. */
#app .home-page{padding:0 0 calc(88px + env(safe-area-inset-bottom));background:#d6d1ab}
.lobby-world{position:relative;isolation:isolate;overflow:hidden;height:clamp(405px,calc(100svh - 295px),645px);display:flex;flex-direction:column;align-items:center;padding:18px 20px 24px;background:linear-gradient(#ded4b2,#c6c7a2 60%,#567f63)}
.lobby-world:after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(#645c3c33 .65px,transparent .8px);background-size:4px 4px;opacity:.5}
.lobby-title{position:relative;z-index:1;text-align:center}.edition-label{display:block;color:#5d735c;font:9px var(--sans);letter-spacing:4px}
#app .lobby-title h1{font:600 45px var(--serif);letter-spacing:10px;margin:8px 0 0 10px;color:#274c3b;text-shadow:0 2px #f5e1a866}
.lobby-title p{font:12px var(--serif);letter-spacing:2px;color:#657154;margin-top:6px}
.lobby-card-fan{position:relative;z-index:1;flex:1;width:min(100%,360px);min-height:203px;margin:6px 0 10px}
.lobby-card{position:absolute;top:50%;left:50%;width:clamp(133px,37vw,178px);aspect-ratio:2/3;overflow:hidden;border-radius:8px;box-shadow:2px 11px 13px #173b3560;transform:translate(-50%,-50%);border:1px solid #dac487;z-index:3;background:#daca9e}
.lobby-card img{width:100%;height:100%;object-fit:contain}.lobby-card .sealed-back{height:100%}
.lobby-card-1{left:28%;top:54%;transform:translate(-50%,-50%) rotate(-16deg) scale(.89);z-index:1}.lobby-card-2{left:72%;top:54%;transform:translate(-50%,-50%) rotate(16deg) scale(.89);z-index:2}
.fan-orbit{position:absolute;bottom:3%;left:12%;width:76%;height:35px;border:1px solid #dac88877;border-radius:50%;box-shadow:0 4px 0 #dac88822,0 10px 25px #163b3433;z-index:0}
.lobby-card .sealed-brand{font-size:15px}.lobby-card .sealed-emblem{height:64px;width:62px;font-size:36px}.lobby-card .sealed-footer{font-size:8px}.lobby-card .sealed-footer small{font-size:7px}
.lobby-summon{position:relative;z-index:2;width:100%;max-width:352px;text-align:center}.lobby-prompt{font:12px var(--serif);color:#f7e9bc;letter-spacing:1px;display:block;margin-bottom:12px;text-shadow:0 1px 2px #153e33}
#app .lobby-open{width:100%;min-height:56px;font-size:17px;display:flex;justify-content:center;gap:12px}.lobby-open>span{font:9px var(--sans);border-left:1px solid #d1ac7955;padding-left:10px;color:#eed7a7}.lobby-open>.icon:last-child{width:18px;margin-left:auto}.lobby-open>.icon:first-child{margin-right:auto}
.lobby-dock{padding:14px 16px 0;background:linear-gradient(#e8dcba,#eee4cc);border-top:2px solid #bb9b60;position:relative;z-index:2}
.lobby-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lobby-portal{display:flex;align-items:center;gap:8px;padding:9px 10px;min-height:68px;background:#f4e9cd;border:1px solid #baaa7c;border-radius:12px 3px;box-shadow:0 3px 0 #b6a77c33}.portal-icon{display:grid;place-items:center;width:36px;height:38px;background:#d9d8b5;border:1px solid #a4ab81;border-radius:50% 50% 5px 5px;color:#3a6249;flex-shrink:0}.battle-portal .portal-icon{color:#98523a;background:#e5c8a0;border-color:#c69967}.portal-icon .icon{width:24px;height:24px}.lobby-portal strong{display:block;font:600 14px var(--serif);white-space:nowrap}.lobby-portal small{font:9px var(--sans);color:var(--muted);display:block;margin-top:4px}.lobby-portal>.icon{width:13px;margin-left:auto;display:none}
.collection-quest{display:flex;align-items:center;gap:11px;padding:11px 3px 6px;min-height:66px}.quest-book{background:#49664d;color:#ddcd9b;width:30px;height:41px;border-left:4px double #c0aa6f;display:grid;place-items:center;font:20px var(--serif);box-shadow:2px 2px #bba579;border-radius:1px 4px 4px 1px;flex-shrink:0}.quest-copy{flex:1}.quest-copy>small{font-size:8px;letter-spacing:1px;color:#847657}.quest-copy strong{display:flex;align-items:center;justify-content:space-between;font:14px var(--serif);margin:2px 0 5px}.quest-copy strong>span{font:11px var(--sans);color:#6b7859}.quest-copy progress{display:block;height:4px;width:100%;border:0;border-radius:3px;overflow:hidden;accent-color:#597849}.quest-copy progress::-webkit-progress-bar{background:#d9ccaa}.quest-copy progress::-webkit-progress-value{background:#597849}.collection-quest>.icon{width:18px;margin-left:3px;color:#7c855d}

/* Collection becomes a compact card inventory, with filters tucked away. */
#app .collection-intro{border:0;padding:0;margin-bottom:14px;align-items:center;gap:12px}
#app .collection-intro h1{font-size:26px;margin:4px 0 0;letter-spacing:1px;line-height:1.3}
.collection-total{font:12px var(--sans);white-space:nowrap;color:#8a7c5c}.collection-total strong{font:30px var(--serif);color:#355842}
#app .album-shelf{display:flex;gap:7px;max-width:none;margin:0 -2px 16px;padding:2px 2px 8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin}
#app .album-choice{flex:1 0 104px;min-height:67px;max-width:145px;padding:8px;gap:7px;border-radius:8px 2px;border:1px solid #c7b587;background:#e6d9b8;scroll-snap-align:start;box-shadow:0 2px #c5b38a33}
#app .album-choice.chosen{background:#365f49;border-color:#547259;color:#f5e5b9;box-shadow:inset 0 0 0 2px #bbc28e26,0 2px #284936}
#app .album-choice strong{font-size:15px;line-height:1.4;letter-spacing:0}.album-choice.chosen small{color:#d4ccab!important}
#app .album-choice small{font:9px var(--sans);margin-top:4px}#app .mini-book{width:24px;height:37px;font-size:17px;border-left-width:3px;box-shadow:1px 2px #ad9566}
#app .album-choice>.icon{display:none}#app .album-choice-copy{padding:0}
#app .album-content .section-heading{margin:0;min-height:44px}#app .album-content .section-heading h2{font-size:20px;margin:0}
#app .heading-actions{gap:10px}#app .search-toggle{min-width:44px;min-height:44px;border:0;border-radius:50%;background:#e0d3b455;padding:10px}
#app .album-progress{height:3px;margin:3px 0 12px;background:#dbceaa}#app .album-progress-text{font:12px var(--sans)}
#app .collection-toolbar{margin:0;min-height:44px;gap:8px;border-bottom:0}#app .text-filters{gap:4px;flex:1}
#app .text-filters button{font-size:11px;min-height:44px;padding:7px 11px;border-radius:6px;border:0;white-space:nowrap}
#app .text-filters button[aria-pressed=true]{background:#315b45;color:#f9ecc9;box-shadow:inset 0 0 0 1px #8e986766}
#app #result-count{font:9px var(--sans);white-space:nowrap}.album-filters{margin:0 0 12px;border:0}.album-filters>summary{display:flex;justify-content:flex-end;align-items:center;gap:5px;min-height:44px;font-size:11px;color:#6c785b;cursor:pointer;list-style:none}.album-filters>summary .icon{width:16px;height:16px}.album-filters>summary::-webkit-details-marker{display:none}
#app .filter-toolbar{padding:8px 0 10px;margin:0;display:block;background:#e5d8b866;border-radius:8px}#app .filter-chips{display:flex;justify-content:flex-start;gap:4px;flex-wrap:wrap}
#app .album-filters .filter-toolbar{padding:6px 4px 8px;background:none}
#app .album-filters .element-filters{padding-bottom:7px;margin-bottom:3px;border-bottom:1px solid #b9af8e45}
#app .album-filters .chip{flex:0 0 auto;white-space:nowrap}
#app .album-filters .element-filters .chip{gap:3px;padding-inline:7px}#app .chip{min-height:44px;padding:8px 9px;font-size:10px}#app .chip .icon{width:17px;height:17px}
#app .search-field.open{display:flex;margin-top:9px;max-width:none;width:100%;min-height:44px}#app .search-field input{font-size:13px;width:100%;min-width:0}
#app .card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 10px}
#app .card-tile{min-width:0;margin:0;animation:none}#app .card-art{position:relative;border-radius:7px;aspect-ratio:2/3;box-shadow:0 4px 7px #5d633326;overflow:hidden}#app .card-art>img{width:100%;height:100%;object-fit:contain}#app .card-link{display:block}
#app .card-caption{padding:7px 0 0}#app .card-name{align-items:center;gap:3px;display:flex;min-height:22px}#app .card-name h3{font-size:16px;line-height:1.3;letter-spacing:0;flex:1;overflow-wrap:anywhere}
.tile-attack{display:flex;gap:1px;align-items:center;color:#855638;font:10px var(--sans)}.tile-attack .icon{width:11px;height:13px}.tile-lock .icon{width:12px;height:12px;color:#96845d}
.tile-copies{position:absolute;right:4px;bottom:4px;background:#203d30d9;color:#edddb4;padding:1px 5px;border:1px solid #c4b37988;border-radius:4px;font-size:9px}
#app .card-owned-line{margin:3px 0 0;min-height:16px}#app .rarity-badge{font:9px var(--sans);line-height:1.2;padding:3px 5px;border-radius:4px;border:1px solid currentColor;background:#f6ebd085;display:inline-flex;gap:3px;align-items:center}#app .rarity-badge i{font-size:8px}
#app .card-tile .missing-label{font-size:9px}.album-box-link{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;font-size:12px;margin-top:24px;border:1px dashed #b19e71;border-radius:8px;color:#6a7653}.album-box-link .icon{width:19px}
#app .card-art .sealed-back{padding:10px 7px}#app .card-art .sealed-brand{font-size:11px;letter-spacing:1px}#app .card-art .sealed-emblem{width:40px;height:43px;font-size:27px;border-width:2px}#app .card-art .sealed-footer{font-size:7px;letter-spacing:.5px}#app .card-art .sealed-footer small{font-size:6px}
#app .empty-state{padding:36px 14px;text-align:center}#app .empty-state h2,#app .empty-state h3{font-size:20px;margin:12px 0}#app .empty-state p{font-size:12px}#app .empty-state>.icon{width:44px;height:44px;color:#a78c5c}

/* Inspect a card first; choose its attributes, partners or complete story. */
#app .detail-page{padding-top:13px}#app .detail-layout{display:flex;flex-direction:column;gap:13px}#app .art-column{position:relative;top:auto;display:flex;flex-direction:column;align-items:center;width:100%;padding:0;background:radial-gradient(ellipse,#c9cda470,transparent 65%)}
#app .card-stage{width:clamp(174px,29svh,252px);max-width:70%;margin:0 auto;aspect-ratio:2/3;padding:0;min-height:0;box-shadow:0 9px 17px #3049343b;border-radius:9px;background:none}#app .card-front{width:100%;height:100%;border-radius:9px;overflow:hidden}#app .card-front img{width:100%;height:100%;object-fit:contain}
#app .flip-button{min-height:44px;margin:5px 0 0;padding:4px 12px;font-size:11px;gap:6px;color:#677258}#app .flip-button .icon{width:16px;height:16px}
#app .card-back{width:100%;height:100%;min-height:0;padding:17px 13px;position:absolute;inset:0;background:#e9d7a7;border:5px double #648268;border-radius:9px;display:flex;flex-direction:column;justify-content:space-between}#app .back-emblem{font-size:27px}#app .back-quote{font:13px/1.9 var(--serif);margin:8px 0}#app .back-top{font-size:10px;letter-spacing:1px}#app .back-bottom strong{font-size:15px}#app .back-bottom small{font-size:8px}
#app .character-column{padding:0;width:100%;min-width:0}#app .character-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 11px}#app .character-title h1{font-size:30px;line-height:1.2;margin:0}#app .character-title .pinyin{font-size:10px;margin:4px 0 0;letter-spacing:1px}#app .character-title>div:last-child{display:flex;align-items:center;gap:9px}#app .character-title .rarity-badge{font-size:11px;padding:5px 8px}#app .ownership{font-size:11px;color:#817453;white-space:nowrap}
.card-tabs,.game-segments{display:flex;border:1px solid #bdad82;background:#e6d9b8;border-radius:8px;padding:3px;gap:3px;margin-bottom:14px}.card-tabs button,.game-segments button{flex:1;min-height:44px;padding:7px;font-size:12px;border-radius:5px;white-space:nowrap}.card-tabs button[aria-pressed=true],.game-segments button[aria-pressed=true]{background:#315b46;color:#f5e7bf;box-shadow:0 2px 2px #283d2e22}.card-tabs small{font:9px var(--sans);margin-left:5px;opacity:.7}
#app .permanent-attributes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:0;margin:0;padding:0}#app .permanent-attributes>div{padding:8px;background:#e4d8b9;border:1px solid #c5b68766;border-radius:6px}#app .permanent-attributes dt{font-size:9px;color:#8a7c5d}#app .permanent-attributes dd{font-size:12px;display:flex;align-items:center;gap:5px;margin:6px 0 0;font-weight:600}#app .permanent-attributes .icon{display:inline-block;width:17px;height:19px}
#app .base-attack{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:11px;padding:0 2px}#app .base-attack strong{font:600 28px var(--serif);color:#8f5137}#app .base-attack small{margin-left:auto;font-size:9px;max-width:55%;text-align:right;color:#8c8265}
#app .detail-deploy{width:100%;justify-content:center}.detail-deploy>.icon:last-child{margin-left:auto}.detail-deploy>.icon:first-child{margin-right:auto}
#app .related-entry{margin:0 0 10px;padding:12px;gap:12px;border:1px solid #c0b086;border-radius:10px 3px;background:#f2e6c9;min-height:80px}#app .related-entry strong{font-size:20px}#app .related-entry small{font-size:9px}.related-symbol{background:#d3d6b1;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;flex-shrink:0}#app .related-entry em{font:11px var(--sans);margin-top:5px}
#app .story-panel{margin:0;border:0;padding:15px 6px}#app .story-panel h2{font-size:25px;margin:13px 0 19px}#app .story-prose{font:15px/2.2 var(--serif)}#app .story-prose p{margin-bottom:19px}#app .character-subtitle{font:12px/1.8 var(--serif);color:#9b7751;margin:0}.story-end{margin-top:20px}
#app .locked-page{padding-top:23px}#app .locked-card{width:175px;max-width:65%;margin:0 auto 17px;aspect-ratio:2/3}#app .locked-card .sealed-back{height:100%}#app .locked-page h1{font-size:28px}#app .locked-page>p{font-size:12px;margin:10px 0 16px}#app .locked-page .permanent-attributes{margin-top:23px}#app .locked-page>.related-entry{text-align:left}

/* Bonds are visual pairs, with progress and the next action before prose. */
#app .compact-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px;text-align:left}#app .compact-heading h1{margin:5px 0 0}#app .bond-total{display:flex;align-items:center;gap:7px;font:13px var(--sans);color:#7f7252}.bond-total .icon{color:#a57840}
#app .bond-detail>.page-heading{margin:0 0 22px;text-align:center}#app .bond-detail>.page-heading h1{font-size:26px;margin:6px 0 8px}#app .bond-detail>.page-heading p{font-size:12px;line-height:1.8}#app .bond-pair{margin:0 auto;gap:10px;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);max-width:390px}#app .pair-connector{width:32px}#app .pair-connector .icon{width:28px}#app .member-tile{min-width:0}#app .member-tile>img{border-radius:7px;box-shadow:0 4px 10px #4e4f2633}#app .member-tile>span{font-size:20px}#app .member-status{font-size:9px;line-height:1.4}#app .relation-name{font-size:12px;margin:18px 0}#app .bond-status-panel{border-radius:10px 3px;background:#d7dbb9;border:1px solid #b8c095;padding:13px}#app .bond-status-panel strong{font-size:13px}#app .bond-status-panel p{font-size:11px;line-height:1.8}#app .bond-status-panel .button{margin-top:10px;width:100%}
#app .event-section{margin-top:23px}#app .event-timeline{margin-top:16px}#app .event-timeline li{gap:13px}#app .event-timeline h2{font:20px/1.6 var(--serif);margin:0 0 10px}#app .event-timeline p{font:14px/2 var(--serif)}

/* Opening is a stage, with one obvious button. Existing complete/gentle timings remain intact. */
#app .packs-page{position:relative;padding-top:16px;background:radial-gradient(ellipse at 50% 28%,#f4e8bd,#d4d3ab 42%,#eee4cc 75%)}
#app .packs-page>.page-heading{margin:0;text-align:center}#app .packs-page>.page-heading h1{font-size:28px;line-height:1.35;margin:5px 0}#app .packs-page>.page-heading p{font-size:10px;color:#7a7c5d}#app .packs-page .pack-layout{display:flex;flex-direction:column;gap:0;margin-top:3px}#app .pack-stage{--ritual-card-width:clamp(155px,24svh,212px);--ritual-card-height:calc(var(--ritual-card-width)*1.5);min-height:365px;height:auto;padding:14px 10px 0;border:0;border-radius:20px;background:radial-gradient(ellipse at 50% 40%,#e8deb444,transparent 60%);box-shadow:none}
#app .pack-stage:before{content:'';position:absolute;left:15%;right:15%;bottom:31px;height:30px;border:1px solid #a6976444;border-radius:50%;box-shadow:0 5px #a6976417;z-index:-1}#app .ritual-caption{font-size:9px;letter-spacing:3px;color:#6f815d;margin-bottom:12px}#app .ritual-foot{min-height:53px}#app .ritual-foot .opening-status{font:13px var(--serif);margin-top:16px}#app .pack-stage .draw-result{max-width:none}#app .pack-stage .draw-result h2{font-size:25px;margin:8px 0 5px}#app .pack-stage .result-label{font-size:10px;letter-spacing:2px;margin:0 0 10px}#app .pack-stage .draw-result>p{display:none}#app .pack-stage .result-meta{font-size:10px;gap:10px;margin-bottom:12px}#app .pack-stage .result-meta .rarity-badge{font-size:10px}
#app .pack-controls{max-width:none;width:100%;padding:0 8px}#app .pack-action-copy{display:none}#app .open-box{min-height:52px;width:100%;font-size:16px}#app .free-demo{font-size:9px;margin:0 0 12px;color:#777354}#app .result-actions{gap:8px;margin-bottom:12px}#app .result-actions .button{font-size:11px;min-height:44px}
#app .pack-shop-entry{margin:5px 0 12px;padding:12px;border:1px solid #b7aa7c;border-radius:10px 3px;background:#e3d8b7;gap:6px}#app .pack-shop-entry>span{font:15px var(--serif)}#app .pack-shop-entry small{font-size:9px;line-height:1.6}#app .probability-panel,#app .demo-options{background:transparent;border:0;border-top:1px solid #cbbd96;border-radius:0;padding:0;margin:0}#app .probability-panel>summary,#app .demo-options>summary{font-size:11px;min-height:44px;padding:13px 2px}#app .test-pool-note{font-size:10px}

/* A compact encounter board keeps both five-slot rows near the challenge button. */
#app .boss-page{padding:13px 12px calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));background:linear-gradient(#294d3b 0,#3e6046 35%,#ede2c8 74%)}
#app .boss-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 10px;color:#f2dfad}#app .boss-title h1{font-size:23px}#app .boss-preview-badge{font:9px var(--sans);color:#d8c99e;background:#1b352c40;border:1px solid #a69e6466;border-radius:4px;padding:4px 6px;text-align:center;max-width:155px;line-height:1.4}
#app .boss-layout{display:flex;flex-direction:column;align-items:stretch;gap:0}#app .boss-encounter{display:block;padding:10px 10px 0;overflow:hidden;border:1px solid #c4ad6c;border-radius:15px 4px;background:#bec39c;box-shadow:0 6px 14px #13342838;margin:0 0 12px}
#app .boss-health{position:relative;z-index:2;grid-column:auto;padding:0;margin:0;color:#324c33}#app .boss-health>div{display:flex;justify-content:space-between;font-size:9px;margin-bottom:5px;gap:6px}#app .boss-health strong{font:10px var(--sans);font-variant-numeric:tabular-nums;white-space:nowrap}#app .boss-health progress{height:9px;border-radius:4px;background:#899372;border:1px solid #647759;display:block;width:100%;overflow:hidden}#app .boss-health progress::-webkit-progress-bar{background:#738462}#app .boss-health progress::-webkit-progress-value{background:linear-gradient(90deg,#a74e34,#d7924d)}
.boss-battlefield{position:relative;min-height:205px;display:grid;grid-template-columns:minmax(0,1fr) 115px minmax(0,1fr);align-items:center;gap:8px;margin:0 -10px;padding:10px 13px 12px;isolation:isolate;overflow:hidden}.boss-battlefield .game-landscape{opacity:.74;object-position:bottom}#app .boss-intro{position:relative;z-index:1;align-self:center;padding:0;color:#253e2b}#app .boss-intro h2{font-size:32px;margin:5px 0 10px;line-height:1.2}#app .boss-intro .eyebrow{font-size:8px;letter-spacing:1px;color:#536447}#app .boss-traits{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0}#app .boss-traits>span{font:9px var(--sans);padding:3px 5px;border:1px solid #8f9e7466;border-radius:5px;background:#ded9b38a;display:flex;gap:4px;align-items:center}#app .boss-traits .icon{width:14px;height:14px}#app .boss-traits>span:first-child{color:#954d30}#app .boss-portrait{position:relative;width:115px;max-width:none;grid-column:auto;height:auto;aspect-ratio:2/3;border-radius:8px;transform:rotate(3deg);box-shadow:0 8px 12px #263e2c77;overflow:hidden;z-index:2}#app .boss-portrait img{width:100%;height:100%;object-fit:contain}
.boss-weakness{position:relative;z-index:2;text-align:center;display:flex;flex-direction:column;align-items:center;color:#e6ebce;align-self:center;min-width:0}.boss-weakness>.icon{width:33px;height:33px;color:#d7e7c9;background:#426954bd;border:1px solid #bbca9a;border-radius:50%;padding:6px;box-sizing:content-box}.boss-weakness>small{font-size:8px;line-height:1.5;margin:6px 0 2px;text-shadow:0 1px #2f553f}.boss-weakness>strong{font:23px var(--serif);color:#ffdf94;text-shadow:0 2px #47623e}.boss-weakness>span{font-size:8px;line-height:1.5;color:#e4dcae;background:#32563fab;padding:3px 5px;border-radius:4px;margin-top:5px}
#app .boss-formation-column{display:flex;flex-direction:column;gap:0;min-width:0}#app .boss-lineup{padding:8px 8px 10px;margin:0 0 8px;border:1px solid #b5ae7b;background:#e5dcbddd;border-radius:10px 3px}#app .boss-row-heading{margin:0 0 7px;min-height:20px;gap:6px;display:flex;justify-content:space-between;align-items:center}#app .boss-row-heading h2{font:600 12px var(--sans);margin:0;min-width:0;display:flex;align-items:center;gap:7px}#app .boss-row-heading h2 small{font:9px var(--sans);color:#7d8062;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#app .boss-row-heading>span{font:10px var(--sans);color:#818064;white-space:nowrap}#app .boss-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#app .boss-slot{height:auto;aspect-ratio:2/3;min-height:66px;min-width:0;padding:0;position:relative;overflow:hidden;border:1px dashed #899170;border-radius:5px;background:#cec8a94d;box-shadow:inset 0 0 0 2px #e9dfbd55;display:flex;flex-direction:column;align-items:center;justify-content:center}#app .boss-slot.filled{border:1px solid #b59e61;box-shadow:0 3px 4px #36503b33}#app .boss-slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#app .boss-slot.filled .boss-slot-name{position:absolute;bottom:0;left:0;right:0;background:#244231e8;color:#f4e2ac;font:9px/1.4 var(--sans);padding:4px 1px;text-align:center;white-space:normal;overflow-wrap:anywhere}#app .boss-slot>small{position:absolute;right:2px;top:2px;background:#f1ddb1e8;color:#784f2d;font:9px var(--sans);padding:1px 3px;border-radius:3px}#app .boss-slot-empty{font:24px var(--serif);color:#899474}#app .boss-slot-name{font-size:9px;color:#778669}#app .boss-slot.vacant{border-color:#a3ac873b;background:#bdc4a555;opacity:.7}
#app .boss-cooperation{margin:1px 0 8px;padding:0 3px;background:transparent;border:0;border-radius:0}#app .boss-team-toggle{display:flex;align-items:center;justify-content:space-between;gap:7px}#app .boss-team-toggle button{font-size:11px;padding:4px 9px;min-height:44px;border:1px solid #a2aa80;border-radius:7px;background:#e2dfbf}#app .boss-team-toggle small{font-size:9px;color:#6e7c5c}#app .boss-active-effects{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0 0}#app .boss-active-effects>*{font-size:9px;padding:3px 5px;background:#dce1b9;border:1px solid #a5b881;border-radius:4px}#app .boss-coop-gain{font-size:10px;margin-top:8px}#app .boss-coop-gain strong{font-size:16px}#app .boss-coop-gain small{font-size:9px}
#app .boss-launch{display:grid;grid-template-columns:1fr minmax(138px,1.1fr);align-items:center;gap:4px 10px;margin:0 0 10px;padding:11px 12px 7px;background:linear-gradient(120deg,#274b38,#456148);border:1px solid #bbaa72;border-radius:11px 3px;box-shadow:0 4px 8px #30472c25;color:#f3e2b4}#app .boss-attack-preview{display:flex;align-items:flex-start;flex-direction:column;gap:1px;padding:0;min-width:0}#app .boss-attack-preview>span{font-size:9px;display:flex;align-items:center;gap:5px;color:#c7ccaa}.boss-attack-preview .icon{width:14px;height:14px}#app .boss-attack-preview>strong{font:600 29px/1.1 var(--serif);color:#f5dc9e}#app .boss-attack-preview>small{font-size:8px;color:#bac5a3;margin:2px 0 0}#app .boss-launch>.button{min-height:50px;font-size:13px;white-space:normal;width:100%;grid-column:auto}#app .boss-launch .boss-feedback{grid-column:1/-1;min-height:0;font-size:9px;line-height:1.6;color:#d1c7a4;padding:4px 0 0;text-align:center;margin:0}
.boss-preparation{border-top:1px solid #c3b98d;margin:2px 4px}.boss-preparation>summary{display:flex;gap:7px;align-items:center;font-size:11px;color:#6b7856;min-height:44px;cursor:pointer}.boss-preparation>summary .icon{width:17px;height:17px}#app .boss-affinity{padding:9px 0;gap:10px;background:transparent;border:0}#app .boss-affinity strong{font-size:12px}#app .boss-affinity small{font-size:9px}#app .boss-affinity .text-button{font-size:11px}
#app .boss-result{padding:18px 13px;margin:7px 0 12px;background:#faf0d4;border:1px solid #baa575;border-radius:10px 3px;animation:game-result .35s ease-out}#app .boss-result h2{font-size:15px;display:flex;flex-wrap:wrap;gap:5px;align-items:baseline}#app .boss-result h2 strong{font:600 33px var(--serif);color:#a05b3d}#app .boss-result-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}#app .boss-stat dt{font-size:10px}#app .boss-stat dd{font:19px var(--serif);margin:3px 0}#app .boss-hint{font-size:9px}#app .boss-details{margin-top:8px;padding:10px;border-radius:6px;font-size:11px}#app .boss-details>summary{font-size:11px;min-height:44px;display:flex;align-items:center}#app .boss-details p{font-size:11px;line-height:1.8}#app .boss-breakdown h3{font-size:15px}#app .boss-breakdown dl{grid-template-columns:repeat(3,minmax(0,1fr))}#app .boss-breakdown .boss-stat dd{font-size:15px}#app .boss-breakdown .boss-stat dt{font-size:9px}
.damage-float{position:absolute;z-index:4;top:39%;left:50%;transform:translateX(-50%);font:700 33px var(--sans);color:#fff0be;text-shadow:0 2px 0 #a54524,2px 0 0 #a54524,0 3px 12px #682c22;pointer-events:none;animation:damage-rise 1.3s ease-out both}.battle-resolved .boss-portrait{animation:card-hit .5s ease-out}
@keyframes damage-rise{0%{opacity:0;transform:translate(-50%,15px) scale(.8)}18%{opacity:1;transform:translate(-50%,0) scale(1.12)}65%{opacity:1}100%{opacity:0;transform:translate(-50%,-48px)}}
@keyframes card-hit{20%,60%{transform:translateX(-4px) rotate(0)}40%,80%{transform:translateX(4px) rotate(5deg)}}
@keyframes game-result{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Affinity becomes a personal talisman; calculations and optional disclosures remain intact. */
#app .fortune-page{padding-top:22px;background:radial-gradient(circle at 80% 0,#d6d9b0,transparent 45%)}#app .fortune-intro{margin-bottom:16px;padding:0}#app .fortune-intro h1{font-size:26px}#app .fortune-intro>p{font:12px var(--serif);color:#8b7d58;margin-top:8px}#app .fortune-panel{padding:16px;border:1px solid #c6b68b;border-radius:12px 3px;box-shadow:0 3px #c4b48a22;background:#f4ead1;margin-bottom:13px}
#app .daily-action{position:relative;background:linear-gradient(135deg,#315941,#72805b);border:1px solid #a6a171;min-height:185px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:29px 20px 14px;margin-bottom:17px;overflow:hidden}#app .daily-action:before{content:'✧';font:120px Georgia,serif;position:absolute;top:-28px;right:0;color:#d1ca9438;pointer-events:none}#app .daily-action>.button{z-index:1;min-width:210px;border-radius:20px 4px;min-height:58px;font-size:17px}#app .daily-action:after{content:'';position:absolute;inset:14px;border:1px solid #d3d2a344;border-radius:8px 3px;pointer-events:none}#app .daily-action .fortune-feedback{color:#efdfb8;font-size:11px;margin:12px 0 0}#app .daily-action>.fortune-muted{font-size:10px;color:#f0dbab;margin-bottom:12px}#app .fortune-muted{font-size:11px;line-height:1.8}#app .fortune-feedback{font-size:11px}
#app .fortune-panel h2{font-size:21px;margin-bottom:12px}#app #fortune-form{gap:13px}#app #fortune-form label{font-size:12px}#app #fortune-form input,#app #fortune-form select{background:#fffaed;border:1px solid #c9b991;border-radius:7px;font-size:16px;min-height:46px;padding:10px;min-width:0}#app #fortune-form .button{width:100%;margin-top:6px}
#app .fortune-fold{border:1px solid #cbbb93;border-radius:8px 3px;background:#f1e8d1;margin:10px 0;padding:0 13px}#app .fortune-fold>summary{min-height:52px;padding:12px 0;font-size:12px;gap:10px}#app .fortune-fold>summary small{font-size:10px}#app .fortune-fold .fold-content{padding:3px 0 15px;font-size:12px}#app .fortune-picks{gap:8px}#app .fortune-pick{min-width:0;padding:11px;border-radius:9px 3px;background:#e2dec0;border:1px solid #b3b991}#app .fortune-pick strong{font-size:18px}#app .fortune-pick b{font-size:25px}#app .fortune-pick span,#app .fortune-pick small{font-size:10px}#app .daily-result>h2{font-size:23px;margin:7px 0}#app .daily-result>.fortune-muted{margin-bottom:12px}
#app .pillar-grid{gap:5px}#app .pillar-grid>div{padding:10px 3px}#app .pillar-grid strong{font-size:25px}#app .pillar-grid small{font-size:10px}#app .pillar-grid span{font-size:10px}#app .element-counts{font-size:11px;gap:8px;flex-wrap:wrap}#app .profile-result>h2{font-size:32px}#app .profile-result>h2 small{font-size:12px}

/* Shop inventory and all dialogs use the same compact game panels. */
#app .shop-title{margin:0 0 17px}#app .shop-title h1{font-size:28px;margin:4px 0 0}#app .shop-title>p{display:none}#app .shard-wallet{padding:14px 16px;background:linear-gradient(110deg,#345a43,#607850);border:1px solid #a9a876;border-radius:11px 3px;gap:12px;margin:0 0 14px;color:#f1e2b9}#app .shard-wallet .shard-symbol{font-size:33px;color:#d8c084}#app .shard-wallet div>span{color:#d2d0a6;font-size:10px}#app [data-shard-balance]{font:29px var(--serif);color:#f1dfa8}#app .shard-wallet>a{font-size:10px;min-height:44px;display:flex;align-items:center;color:#e6dab2}#app .shop-tabs{margin:0 0 16px;gap:4px;border:1px solid #bbad83;border-radius:8px;background:#e3d6b6;padding:3px}#app .shop-tabs>a{padding:9px 7px;min-height:44px;font-size:12px;border:0;border-radius:5px}#app .shop-tabs>a[aria-current]{background:#335d45;color:#f0e2b5}
#app .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}#app .shop-card{padding:10px;border:1px solid #c0af83;border-radius:9px 3px;background:#f2e6c9}#app .shop-card-art{max-width:125px;width:100%;margin:0 auto;aspect-ratio:2/3;border-radius:6px;overflow:hidden;box-shadow:0 4px 7px #43512d22}#app .shop-card-art .sealed-back{height:100%;padding:10px 7px}#app .shop-card-art .sealed-emblem{width:43px;height:43px;font-size:28px}#app .shop-card-art .sealed-brand{font-size:12px}#app .shop-card-art .sealed-footer{font-size:7px}#app .shop-card-art .sealed-footer small{font-size:6px}#app .shop-card-heading{display:flex;align-items:center;justify-content:space-between;margin:9px 0 4px;gap:4px;flex-wrap:wrap}#app .shop-card-heading h2{font-size:18px;line-height:1.3}#app .shop-card-heading>span{font-size:9px}#app .shop-card>p{font-size:9px}#app .shop-price{font:21px var(--serif);margin:7px 0 9px}#app .shop-price small{font-size:9px}#app .shop-card>.button{font-size:11px;min-height:44px;padding:9px 6px;width:100%}#app .shop-rates{font-size:11px;padding:12px;border:0;background:#e5d9ba;margin-top:20px;border-radius:8px}#app .shop-rates>summary{font-size:11px;min-height:44px}#app .shop-rate-row{font-size:11px}
#app .duplicate-card{padding:12px;gap:14px;border:1px solid #bcad80;border-radius:10px 3px;background:#f3e7ca}#app .duplicate-art{width:89px}#app .duplicate-copy h2{font-size:22px}#app .duplicate-copy p,#app .duplicate-copy strong{font-size:11px}#app .duplicate-copy .button{font-size:11px;margin-top:10px}#app .shop-keep-note{font-size:10px;margin:0 0 14px}#app .shop-empty{padding:40px 14px}#app .shop-empty h2{font-size:23px}#app .shop-empty p{font-size:12px;line-height:1.8}
dialog{max-width:480px;width:calc(100% - 24px);border:1px solid #b69b5e;border-radius:16px 4px;background:#f0e4c7;color:#2a4635;box-shadow:0 20px 100px #0b281aaa;padding:18px;max-height:84svh;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#0d2e257a;backdrop-filter:blur(4px)}dialog h2{font-size:22px}dialog .button{min-height:46px;border-radius:7px 2px;font-size:13px}dialog .primary{background:#975137;color:#ffebbf}dialog .secondary{border:1px solid #a9a47a}dialog .text-button{min-height:44px}.boss-dialog-head{position:sticky;top:-18px;z-index:2;background:#f0e4c7;padding:8px 0;gap:10px}.boss-dialog-head h2{font-size:20px}.boss-dialog-head button{min-width:44px;min-height:44px;font-size:26px}.boss-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px}.boss-pick{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #b7ac80;border-radius:8px 3px;padding:10px;min-width:0;background:#e5d9b8}.boss-pick img{width:80px;height:auto;max-width:100%;aspect-ratio:2/3;object-fit:contain;border-radius:5px}.boss-pick>span{font-size:11px;text-align:center}.boss-pick strong{display:block;font:18px var(--serif)}.boss-pick small{display:block;font-size:9px;line-height:1.7}.boss-pick>span:last-child{position:absolute;top:4px;right:7px;background:#315a43;color:#ebddb5;width:22px;height:22px;border-radius:50%;display:grid;place-items:center}.boss-pick:disabled{opacity:.38}.boss-remove{margin-top:15px;width:100%}.shop-modal-body{padding:4px}.shop-modal-actions{gap:8px}.shop-modal-body p{font-size:12px;line-height:1.8}.shop-modal-body input{font-size:16px;min-height:44px}.shop-modal-actions .button{padding:10px}.toast{max-width:min(460px,calc(100% - 28px));bottom:calc(92px + env(safe-area-inset-bottom));z-index:40;background:#1e4238;color:#fff0c7;border:1px solid #b9aa72;border-radius:8px;font-size:12px}
/* A quiet printed-paper finish for game dialogs; the animated reveal keeps its own stage. */
body dialog:not(.chain-processing-dialog){isolation:isolate;background-image:radial-gradient(#9d81491b .65px,transparent .75px),linear-gradient(145deg,#fff8e744,#d9bd8540);background-size:5px 5px,100% 100%}
body dialog:not(.chain-processing-dialog)::before{content:"";position:absolute;inset:6px;z-index:-1;pointer-events:none;border:1px solid #ae925766;border-radius:10px 2px;background:radial-gradient(circle at 14px 14px,transparent 9px,#b1986255 9.5px,transparent 10px) left top/28px 28px no-repeat,radial-gradient(circle at 14px 14px,transparent 9px,#b1986255 9.5px,transparent 10px) right bottom/28px 28px no-repeat}

/* Narrow, short, translated and reduced-motion screens keep the same usable controls. */
html[lang=en] #app h1{font-size:25px;letter-spacing:0}html[lang=en] #app .lobby-title h1{font-size:45px;letter-spacing:10px}html[lang=en] #app .lobby-title p{font-size:11px;letter-spacing:0}html[lang=en] #app .lobby-portal strong{font:600 12px var(--sans);white-space:normal}html[lang=en] #app .lobby-portal small{font-size:8px}html[lang=en] #app .album-choice strong{font:11px/1.4 var(--serif)}html[lang=en] #app .album-choice small{font-size:8px}html[lang=en] #app .album-choice{flex-basis:116px}html[lang=en] #app .card-name{align-items:flex-start;flex-wrap:wrap}html[lang=en] #app .card-name h3{font:600 12px/1.4 var(--sans);flex-basis:100%;min-height:17px}html[lang=en] #app .tile-attack{font-size:9px}html[lang=en] #app .permanent-attributes dd{font-size:10px;gap:4px}html[lang=en] #app .permanent-attributes .icon{width:15px;display:inline-block}html[lang=en] #app .bond-names{font:600 12px/1.5 var(--sans)}html[lang=en] #app .bond-summary-copy h2{font-size:11px}html[lang=en] #app .boss-intro h2{font-size:24px}html[lang=en] #app .shop-card-heading h2{font:600 14px/1.4 var(--sans)}html[lang=en] #app .boss-slot.filled .boss-slot-name{font-size:7px}html[lang=en] #app .boss-slot-name{font-size:8px}html[lang=en] #app .lobby-open{font-size:15px}html[lang=en] #app .detail-brand{font-size:18px}html[lang=en] #app .fortune-pick strong{font-size:14px}
@media(max-width:359px){#app .header-inner{padding:0 8px;gap:4px}.player-chip{gap:6px!important}.player-avatar{width:30px;height:35px;font-size:22px}.player-name strong{font-size:10px}.player-name small{font-size:8px}.hud-resources{gap:3px}.hud-resources a{padding:0 4px;gap:3px;font-size:11px}.hud-resources .icon{width:14px;height:16px}#app .page{padding-left:13px;padding-right:13px}#app .home-page{padding-left:0;padding-right:0}.lobby-world{padding-left:17px;padding-right:17px}.lobby-card-fan{min-height:192px}.lobby-card{width:133px}.lobby-dock{padding-left:12px;padding-right:12px}.lobby-portal{padding:8px 7px;gap:6px}.portal-icon{width:29px;height:34px}.lobby-portal strong{font-size:12px}.lobby-portal small{font-size:8px}#app .card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}#app .card-name h3{font-size:18px}#app .boss-page{padding-left:9px;padding-right:9px}.boss-battlefield{grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr);gap:6px;min-height:184px;padding:8px 10px}#app .boss-portrait{width:100px}#app .boss-intro h2{font-size:27px}#app .boss-slots{gap:4px}#app .boss-row-heading h2 small{max-width:100px}.boss-weakness>.icon{width:26px;height:26px}#app .boss-launch{grid-template-columns:minmax(0,1fr) 136px;padding:10px 9px 7px}#app .boss-launch .button{font-size:12px}#app .boss-title h1{font-size:22px}#app .boss-preview-badge{font-size:8px;max-width:125px}.boss-picker{gap:6px}#app .shop-grid{gap:8px}#app .shop-card{padding:8px}#app .fortune-pick{padding:8px}#app .fortune-picks{gap:6px}}
@media(max-height:740px){.lobby-world{height:405px}.lobby-title .edition-label{font-size:8px}#app .lobby-title h1{font-size:39px;margin-top:4px}.lobby-title p{font-size:11px}.lobby-card{width:135px}.lobby-card-fan{min-height:190px;margin:0 0 5px}.lobby-world{padding-top:12px;padding-bottom:15px}.lobby-prompt{font-size:11px;margin-bottom:9px}.lobby-dock{padding-top:10px}.lobby-portal{min-height:61px}#app .pack-stage{--ritual-card-width:147px;min-height:321px;padding-top:12px}#app .packs-page{padding-top:12px}#app .packs-page>.page-heading h1{font-size:25px}#app .packs-page>.page-heading .eyebrow{display:none}#app .pack-stage .draw-result h2{font-size:23px}.boss-battlefield{min-height:176px}#app .boss-portrait{width:100px}.boss-battlefield{grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr)}#app .boss-lineup{padding-top:6px;padding-bottom:7px}#app .boss-row-heading{margin-bottom:5px}#app .boss-slot{max-height:87px;aspect-ratio:auto;min-height:78px}#app .boss-title{margin-bottom:8px}#app .boss-encounter{margin-bottom:9px}#app .boss-cooperation{margin-bottom:6px}}
@media(min-width:700px){#app{border-inline:1px solid #a6956144}.site-header{border-radius:0}#app .page{padding-left:22px;padding-right:22px}#app .home-page{padding-left:0;padding-right:0}#app .boss-page{padding-left:14px;padding-right:14px}.lobby-card{width:178px}}
@media(prefers-reduced-motion:reduce){.damage-float{display:none}.battle-resolved .boss-portrait,#app .boss-result{animation:none}#app .button{transition:none}#app .button.primary:active:not(:disabled){transform:none}}

/* Shared detail-card fixes retained from the first pocket layout. */
#app .card-stage{position:relative}
#app .art-column{max-width:none}
#app .card-stage{max-width:78%}
#app .back-quote{font-size:12px;line-height:1.7}
#app .back-emblem{margin:5px 0;padding:3px 0}
@media(max-height:740px){#app .daily-action{min-height:153px;padding-top:19px;padding-bottom:10px;margin-bottom:13px}}
.boss-battlefield{min-height:160px;grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr);padding-top:7px;padding-bottom:9px}
#app .boss-portrait{width:92px}
#app .boss-lineup{padding:6px 7px 8px}
#app .boss-slot{height:clamp(72px,10.8svh,100px);aspect-ratio:auto;min-height:72px}
#app .boss-row-heading{margin-bottom:5px}
#app .boss-row-heading [data-boss=demo]{min-height:44px;padding:4px 8px;border:1px solid #a6aa7b;border-radius:6px;background:#f0e5c8;font:10px var(--sans);text-decoration:none;white-space:nowrap;flex-shrink:0}
#app .boss-cooperation{padding:0;margin:0 0 10px}
#app .boss-attack-preview{margin:0}
#app .boss-active-effects a{display:flex;align-items:center;min-height:44px}
@media(max-height:740px){.boss-battlefield{min-height:135px;grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr)}#app .boss-portrait{width:78px}#app .boss-intro h2{font-size:25px}#app .boss-encounter{margin-bottom:7px}#app .boss-lineup{margin-bottom:6px}#app .boss-launch{padding-top:8px;padding-bottom:5px}#app .boss-page{padding-top:9px}}
@media(max-height:740px){.boss-battlefield{min-height:112px;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)}#app .boss-portrait{width:64px}#app .boss-intro h2{font-size:22px;margin:3px 0 5px}#app .boss-traits{gap:3px}#app .boss-encounter{padding-top:6px;margin-bottom:5px}#app .boss-lineup{margin-bottom:4px}#app .boss-title{margin-bottom:6px}.boss-weakness>.icon{width:24px;height:24px}}
@media(max-height:740px){#app .boss-lineup{padding:3px 7px}#app .boss-row-heading{margin-bottom:3px}.boss-weakness>strong{line-height:1.1}.boss-weakness>small{margin-top:3px}.boss-weakness>span{margin-top:3px}}
/* Boss v2: scene takes the first screen; formations follow it. */
#app .lobby-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#app .lobby-portal{min-height:65px;display:flex;gap:9px;padding:10px}
#app .lobby-portal>strong{font:600 14px var(--sans);flex:1;min-width:0}
#app .lobby-portal>.icon{width:16px;flex-shrink:0}
#app .boss-stage-v2{position:relative;isolation:isolate;height:clamp(400px,65svh,650px);padding:0;overflow:hidden;border:1px solid #9d8955;border-radius:15px 4px;margin:0 0 17px;background:#eee0b8;box-shadow:inset 0 0 0 5px #ebe0bd,0 8px 22px #38533722}
#app .boss-stage-v2>.game-landscape{width:100%;height:100%;inset:0;position:absolute;opacity:.28;z-index:-2}
#app .boss-stage-v2:after{content:'';position:absolute;inset:6px;border:1px solid #a3915b66;border-radius:10px 2px;pointer-events:none}
.boss-stage-heading{position:absolute;top:21px;left:20px;z-index:2}
.boss-stage-heading>.eyebrow{font-size:9px;letter-spacing:2px;color:#72805d}
#app .boss-stage-heading h2{font:600 35px/1.2 var(--serif);letter-spacing:7px;margin:7px 0;color:#3b4c31}
#app .boss-stage-heading .boss-traits{font-size:10px;gap:9px;display:flex;color:#687956}
#app .boss-stage-heading .boss-traits .icon{width:13px;height:13px}
.boss-sprite-wrap{position:absolute;width:78%;aspect-ratio:1;top:34%;left:11%;transform:translateY(-50%);mix-blend-mode:multiply;pointer-events:none}
.boss-ground{position:absolute;left:14%;right:14%;top:62%;height:4%;background:#63806433;border-radius:50%;filter:blur(6px)}
.boss-wind{position:absolute;left:10%;top:49%;width:65%;height:17%;border-top:3px solid #f4e4bc;border-radius:50%;transform:rotate(-14deg);opacity:0;animation:qiongqi-wind 4.8s ease-out infinite;pointer-events:none}
#app .boss-stage-hud{position:absolute;bottom:90px;left:21px;right:21px;display:grid;grid-template-columns:1fr 1fr;gap:20px;z-index:2;padding-top:12px;border-top:1px solid #75826055}
#app .boss-stage-hud .boss-attack-preview>span,#app .boss-stage-hud .boss-health span{color:#596947;font-size:10px}
#app .boss-stage-hud .boss-attack-preview>strong{color:#384e31;font-size:29px}
#app .boss-stage-hud .boss-attack-preview>small{color:#6e7958;font-size:9px}
#app .boss-stage-hud .boss-health{padding:0;margin:0;text-align:right;border:0;background:none}
#app .boss-stage-hud .boss-health>div{display:flex;flex-direction:column;align-items:flex-end;gap:1px}
#app .boss-stage-hud .boss-health strong{font:600 29px/1.2 var(--serif);color:#994e36}
#app .boss-stage-hud progress{width:100%;height:5px;display:block;margin:4px 0 1px;border:0;background:#cbb88d;border-radius:4px;overflow:hidden;accent-color:#985439}
#app .boss-stage-hud progress::-webkit-progress-bar{background:#cbb88d}
#app .boss-stage-hud progress::-webkit-progress-value{background:#985439}
#app .boss-stage-hud .boss-health>small{font-size:8px;color:#8c805f}
#app .boss-stage-v2 .boss-launch{position:absolute;bottom:22px;left:14%;right:14%;z-index:3;display:flex;flex-direction:column;padding:0;margin:0;background:none;border:0;box-shadow:none;gap:3px}
#app .boss-stage-v2 .boss-launch>.button{width:100%;min-height:53px;font-size:16px;border:1px solid #c29551;box-shadow:0 4px 0 #6b3d2b,0 9px 16px #4a3e2c33;letter-spacing:2px}
#app .boss-stage-v2 .boss-feedback{background:#f3e6c7;color:#873f2b;font-size:11px;line-height:1.5;position:absolute;bottom:calc(100% + 8px);left:-12%;right:-12%;border:1px solid #b88761;border-radius:4px;padding:8px;margin:0;z-index:4}
#app .boss-stage-v2 .damage-float{left:42%;top:40%;font:600 36px var(--serif);color:#b84924;z-index:4;text-shadow:0 2px #fff4cd}
#app .boss-lineup{padding:10px;margin-bottom:11px}
#app .boss-row-heading{margin-bottom:8px}
#app .boss-slot{height:auto;min-height:74px;max-height:none;aspect-ratio:2/3}
#app .boss-row-heading h2{font-size:14px}
#app .boss-row-heading [data-boss=demo]{min-height:44px}
@keyframes qiongqi-wind{0%,51%{opacity:0;transform:translateX(20px) rotate(-14deg)}58%{opacity:.65}70%,100%{opacity:0;transform:translateX(-45px) rotate(-18deg)}}
/* Creature motion uses the shared anchored renderer; decorative wind stays optional. */
.game-hidden .boss-wind,.boss-scene-paused .boss-wind{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.boss-wind{animation:none;display:none}}
@media(max-width:359px){#app .boss-stage-heading h2{font-size:29px}.boss-stage-heading{top:15px;left:17px}#app .boss-stage-hud{left:17px;right:17px;bottom:88px}#app .boss-stage-v2 .boss-launch{left:12%;right:12%}#app .boss-row-heading h2 small{max-width:70px}#app .lobby-portal>strong{font-size:12px}}
html[lang=en] #app .boss-stage-heading h2{font-size:28px;letter-spacing:1px}

/* Trait groups may contain more than two members; do not hide the third or fifth card. */
#app .bond-members{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 9px;margin:0 0 20px}
#app .bond-members .member-tile{width:100%;display:flex;flex-direction:column;text-align:center;gap:7px}
#app .bond-members[data-members="2"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:390px;margin-inline:auto}
#app .bond-members .member-tile>img,#app .bond-members .sealed-back{width:100%;height:auto;aspect-ratio:2/3;object-fit:contain}
#app .bond-members .member-tile>span{font-size:16px;overflow-wrap:anywhere}
#app .bond-members .sealed-brand{font-size:10px}#app .bond-members .sealed-emblem{font-size:28px}
#app .bond-members .sealed-footer{font-size:7px}#app .bond-members .member-status{font-size:10px}
/* Keep effects full-width at every viewport; legacy status rows used a horizontal flex layout. */
#app .bond-effect{display:block;border:1px solid #b8c095;border-radius:10px 3px;background:#d7dbb9;padding:14px 16px;min-width:0}
#app .bond-effect-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:5px 12px}
#app .bond-effect-heading h2{font:14px var(--sans);margin:0;color:var(--jade)}
#app .bond-effect-heading>span{font-size:11px;color:var(--muted)}
#app .bond-effect .bond-rule{font-size:16px;line-height:1.7;margin:8px 0 0;overflow-wrap:anywhere}
#app .bond-notes{margin-top:16px;border-top:1px solid var(--line);min-width:0}
#app .bond-notes>summary{cursor:pointer;min-height:44px;padding:12px 2px;font-size:13px;line-height:1.6;color:var(--jade)}
#app .bond-notes-content{padding:2px 2px 12px}
#app .bond-notes-content p{font-size:13px;line-height:1.9;overflow-wrap:anywhere;color:var(--muted)}
#app .trait-story{margin:22px 0 0;padding:0;border:0}
#app .trait-story p{margin:0;font-size:14px;line-height:1.95;text-align:left;color:var(--ink)}
#app .story-source{font-size:12px;line-height:1.7;margin-top:18px}#app .story-source summary{min-height:44px;cursor:pointer}
#app .boss-acquisition-note{color:var(--muted)}html[lang=en] #app .bond-members .member-tile>span{font-size:12px}
#app .shop-filters{display:flex;gap:9px;margin:16px 0;align-items:center}
#app .shop-filters input,#app .shop-filters select{min-height:44px;border:1px solid #b6a780;background:#eee3c5;border-radius:6px;color:var(--ink);font:13px var(--sans);padding:7px;min-width:0}
#app .shop-filters input{flex:1;width:50%}#app .shop-filters select{max-width:45%}

#app .shop-card[hidden],#app .shop-no-match[hidden]{display:none}

/* UI scale v1 — shared type roles and touch sizes. See docs/45.
   Keep the established scenes and card ratios; these tokens size their interface.
   CSS pixels are logical units, not bitmap pixels. rem follows browser text size. */
:root{
  --ui-meta:.75rem;--ui-label:.875rem;--ui-body:.9375rem;--ui-subtitle:1rem;
  --ui-section:1.125rem;--ui-page:1.375rem;--ui-metric:1.75rem;--ui-scene:1.875rem;
  --ui-touch:44px;--ui-control:44px;--ui-primary:48px;
  --ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-5:24px;
  --muted:#69634f;
}
#app .page{padding-inline:var(--ui-space-4)}
#app .home-page{padding-inline:0}
#app .boss-page{padding-inline:var(--ui-space-3)}
#app h1,
#app .collection-intro h1,
#app .character-title h1,
#app .locked-page h1,
#app .fortune-intro h1,
#app .shop-title h1,
#app .bond-detail h1,
#app .packs-page h1{font-size:var(--ui-page);line-height:1.3}
#app .boss-title h1{font-size:1.5rem}
#app .lobby-title h1{font-size:2.75rem}
#app .section-heading h2,
#app .story-panel h2,
#app .fortune-panel h2,
#app .shop-receipt h2{font-size:var(--ui-section);line-height:1.4}
#app .eyebrow,
#app .player-name small,
#app .hud-resources small,
#app .language-button,
#app .collection-total,
#app .album-choice small,
#app #result-count,
#app .tile-attack,
#app .tile-copies,
#app .rarity-badge,
#app .card-tile .missing-label,
#app .character-title .rarity-badge,
#app .character-title .pinyin,
#app .ownership,
#app .permanent-attributes dt,
#app .base-attack small,
#app .related-entry small,
#app .bond-count,
#app .bond-members .member-status,
#app .bond-effect-heading>span,
#app .shop-card-heading>span,
#app .shop-card>p,
#app .shop-price small,
#app .shop-keep-note,
#app .shop-balance small,
#app .boss-preview-badge,
#app .boss-row-heading h2 small,
#app .boss-row-heading>span,
#app .boss-traits>span,
#app .boss-stage-hud .boss-attack-preview>span,
#app .boss-stage-hud .boss-attack-preview>small,
#app .boss-stage-hud .boss-health span,
#app .boss-stage-hud .boss-health>small,
#app .boss-active-effects>*,
#app .boss-coop-gain small,
#app .boss-affinity small,
#app .boss-stat dt,
#app .boss-hint,
#app .fortune-fold>summary small,
#app .fortune-pick span,
#app .fortune-pick small,
#app .fortune-muted,
#app .fortune-feedback,
#app .daily-action>.fortune-muted,
#app .daily-action .fortune-feedback,
#app .ritual-foot small,
#app .card-tabs small{font-size:var(--ui-meta);line-height:1.5}
#app .eyebrow,
#app .album-choice small,
#app .card-tile .missing-label,
#app .permanent-attributes dt,
#app .ownership,
#app .base-attack small,
#app .bond-summary-copy h2,
#app .boss-row-heading h2 small,
#app .boss-row-heading>span,
#app .boss-stage-hud .boss-attack-preview>span,
#app .boss-stage-hud .boss-attack-preview>small,
#app .boss-stage-hud .boss-health span,
#app .boss-stage-hud .boss-health>small{color:var(--muted)}
#app .player-name strong{font-size:var(--ui-label);line-height:1.4}
#app .player-name small{color:#d3c8a8;letter-spacing:0}
#app .hud-resources a{min-width:var(--ui-touch);font-size:var(--ui-label);padding-inline:6px}
#app .hud-resources small{color:#d3c8a8}
#app .nav-inner>a{font-size:var(--ui-meta);line-height:1.4;letter-spacing:0;gap:4px}
#app .button,dialog .button{min-height:var(--ui-control);font-size:var(--ui-label);line-height:1.5;padding:9px 14px;letter-spacing:0;white-space:normal}
#app .button.primary{background:linear-gradient(145deg,#9e5339,#8b422f)}
#app .lobby-open,
#app .open-box,
#app .daily-action .button,
#app .boss-stage-v2 .boss-launch>.button,
#app .detail-deploy{min-height:var(--ui-primary);font-size:var(--ui-body);letter-spacing:.5px}
#app .text-button,
#app .flip-button,
#app .bond-summary .inline-link,
#app .related-entry em,
#app .album-filters>summary,
#app .probability-panel>summary,
#app .boss-preparation>summary,
#app .boss-details>summary,
#app .bond-notes>summary,
#app .story-source summary,
#app .shop-rates>summary{font-size:var(--ui-label);min-height:var(--ui-touch);line-height:1.5}
#app .card-tabs button,
#app .game-segments button,
#app .shop-tabs>a{font-size:var(--ui-label);min-height:var(--ui-touch);line-height:1.4;white-space:normal}
#app .text-filters button,
#app .chip{font-size:var(--ui-label);min-height:var(--ui-touch);padding:8px 10px}
#app .search-field input,
#app .shop-filters input,
#app .shop-filters select,
#app #fortune-form input,
#app #fortune-form select{font-size:max(1rem,var(--ui-body));min-height:var(--ui-control);height:auto}
#app .lobby-portal strong,
#app .lobby-portal>strong{font-size:var(--ui-body);line-height:1.4;white-space:normal}
#app .lobby-shortcuts{gap:var(--ui-space-2)}
#app .lobby-portal{padding:12px;min-height:68px}
#app .album-choice{flex-basis:144px;max-width:168px;padding:10px;gap:8px}
#app .album-choice strong{font-size:var(--ui-body)}
#app .album-choice small{margin-top:4px}
#app .collection-toolbar{flex-wrap:wrap;gap:4px 8px}
#app .album-progress{margin-bottom:var(--ui-space-2)}
#app .card-name{flex-wrap:wrap;column-gap:4px}
#app .card-name h3{font-size:var(--ui-body);line-height:1.4}
#app .card-name .tile-attack{margin-left:auto}
#app .card-grid{row-gap:var(--ui-space-5)}
#app .rarity-badge{padding:3px 5px}
#app .card-caption{padding-top:var(--ui-space-2)}
#app .permanent-attributes dd{font-size:var(--ui-label);line-height:1.5;flex-wrap:wrap}
#app .base-attack{font-size:var(--ui-label);flex-wrap:wrap}
#app .base-attack strong{font-size:var(--ui-metric)}
#app .story-prose,#app .trait-story p{font-size:var(--ui-body);line-height:1.875;letter-spacing:0}
#app .story-prose p{margin-bottom:var(--ui-space-5)}
#app .trait-story{margin-top:var(--ui-space-5)}
#app .bond-notes-content p,
#app .story-source,
#app .character-subtitle,
#app .locked-page>p,
#app .boss-details p{font-size:var(--ui-label);line-height:1.75}
#app .bond-effect{padding:var(--ui-space-4)}
#app .bond-effect-heading h2{font-size:var(--ui-label)}
#app .bond-effect .bond-rule{font-size:var(--ui-body);line-height:1.65}
#app .bond-members .member-tile>span{font-size:var(--ui-body);line-height:1.5;letter-spacing:.5px}
#app .fortune-fold>summary{font-size:var(--ui-label);min-height:52px;line-height:1.5;flex-wrap:wrap;gap:4px 8px}
#app .fortune-fold .fold-content{font-size:var(--ui-label);line-height:1.75}
#app .fortune-pick>span{font-size:var(--ui-body);line-height:1.4}
#app .fortune-pick>strong{font-size:1.5rem}
#app #fortune-form label{font-size:var(--ui-label)}
#app .shop-card-heading{flex-wrap:wrap;gap:4px 8px}
#app .shop-card-heading h2{font-size:var(--ui-subtitle);line-height:1.4}
#app .shop-card>.button{font-size:var(--ui-label);min-height:var(--ui-control);padding:10px 6px}
#app .shop-rates,
#app .shop-rate-row,
#app .shop-rate-head,
#app .shop-balance>a{font-size:var(--ui-meta);line-height:1.5}
#app .boss-stage-heading h2{font-size:var(--ui-scene)}
#app .boss-stage-heading{right:20px}
#app .boss-stage-heading .boss-traits{gap:6px;flex-direction:row;flex-wrap:wrap}
#app .boss-stage-heading .boss-traits .icon{width:16px;height:16px}
#app .boss-stage-hud{gap:var(--ui-space-4)}
#app .boss-stage-hud .boss-attack-preview>strong,#app .boss-stage-hud .boss-health strong{font-size:var(--ui-metric);line-height:1.2;font-variant-numeric:tabular-nums}
#app .boss-stage-hud .boss-health>small{margin-top:4px}
#app .boss-stage-hud progress{height:6px}
#app .boss-row-heading h2{font-size:var(--ui-body);flex-wrap:wrap;gap:4px 8px}
#app .boss-row-heading [data-boss=demo]{font-size:var(--ui-meta);padding:8px;min-height:var(--ui-touch)}
#app .boss-slot-name,#app .boss-slot.filled .boss-slot-name{font:500 var(--ui-meta)/1.4 var(--sans)}
#app .boss-slot.filled .boss-slot-name{padding:4px 2px;white-space:normal;overflow-wrap:anywhere;max-height:none}
#app .boss-slot>small{font-size:var(--ui-meta);line-height:1.4}
#app .boss-coop-gain{font-size:var(--ui-label);line-height:1.65}
#app .boss-stage-v2 .boss-feedback{font-size:var(--ui-label);line-height:1.5}
.boss-pick small,.boss-pick>span,.shop-modal-body p{font-size:var(--ui-label);line-height:1.65}
.boss-dialog-head h2,.shop-modal-body h2{font-size:var(--ui-section);line-height:1.4}
.boss-pick strong{font-size:var(--ui-subtitle)}
.shop-modal-body input{font-size:max(1rem,var(--ui-body));min-height:var(--ui-control)}
#app .pack-shop-entry small,
#app .ritual-caption,
#app .result-label,
#app .result-meta,
#app .draw-result>p,
#app .shard-wallet div>span{font-size:var(--ui-meta);line-height:1.5}
#app .shard-wallet>a,
#app .result-actions .button{font-size:var(--ui-label);line-height:1.5}
/* English names wrap into the available space instead of shrinking to 7–11px. */
html[lang=en] #app .boss-slot.filled .boss-slot-name,
html[lang=en] #app .boss-slot-name{font-size:var(--ui-meta)}
html[lang=en] #app .bond-summary-copy h2,
html[lang=en] #app .bond-members .member-tile>span,
html[lang=en] #app .shop-card-heading h2{font-size:var(--ui-label);line-height:1.5}
html[lang=en] #app .fortune-pick strong{font-size:1.5rem}
html[lang=en] #app .boss-stage-heading h2{font-size:1.75rem}
html[lang=en] #app .story-prose,html[lang=en] #app .trait-story p{font-size:var(--ui-body);line-height:1.75}
@media(max-width:359px){
  #app .collection-intro h1,
#app .fortune-intro h1{font-size:1.5rem}
  #app .header-inner{gap:4px}
  #app .hud-resources a{padding-inline:4px;font-size:var(--ui-meta)}
  #app .detail-brand{font-size:var(--ui-subtitle);letter-spacing:1px}
  #app .lobby-portal{padding:10px 8px;gap:6px}
  #app .lobby-portal strong{font-size:var(--ui-label)}
  #app .boss-stage-hud{gap:12px}
}

html[lang=en] #app .album-choice strong{font-size:var(--ui-label);line-height:1.5}
html[lang=en] #app .permanent-attributes dd{font-size:var(--ui-label);line-height:1.5}
html[lang=en] #app .album-choice small,html[lang=en] #app .tile-attack{font-size:var(--ui-meta);line-height:1.5}

/* Text can grow independently of artwork. Size queries use rem thresholds so
   large browser text can release dense HUDs without changing the default layout. */
:root{--nav-height:max(64px,4rem)}
#app .site-header{height:auto;min-height:calc(56px + env(safe-area-inset-top))}
#app .header-inner{height:auto;min-height:56px;flex-wrap:wrap;row-gap:4px;padding-block:4px}
#app .player-chip{flex:1 0 5rem}
#app .player-name small{white-space:nowrap}
#app .bottom-nav{height:calc(var(--nav-height) + env(safe-area-inset-bottom))}
#app .nav-inner{height:var(--nav-height)}
#app .page-heading h1,#app .bond-detail .page-heading h1,#app .packs-page>.page-heading h1{font-size:var(--ui-page);line-height:1.3}
#app .card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,6rem),1fr))}
#app .boss-stage-v2{container-type:inline-size;height:auto;min-height:clamp(400px,65svh,650px)}
#app .boss-lineup{container-type:inline-size}
@container (width < 16rem){
  #app .boss-stage-heading{position:relative;inset:auto;margin:20px 20px 12px}
  #app .boss-sprite-wrap{position:relative;top:auto;left:auto;transform:none;margin:0 auto;width:78%}
  #app .boss-stage-hud{position:relative;inset:auto;margin:16px 20px;grid-template-columns:1fr}
  #app .boss-stage-hud .boss-health>div{align-items:flex-start}
  #app .boss-stage-hud .boss-health{text-align:left}
  #app .boss-stage-v2 .boss-launch{position:relative;inset:auto;margin:16px 20px 24px;width:auto}
  #app .boss-row-heading{flex-wrap:wrap}
  #app .boss-slots{grid-template-columns:repeat(auto-fit,minmax(min(100%,4.75rem),1fr))}
}

#app .boss-slot.filled .boss-slot-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#app .back-top,#app .back-top span,#app .back-bottom small{font-size:var(--ui-meta);line-height:1.5}
#app .back-quote{font-size:var(--ui-label);line-height:1.75}
#app .boss-stage-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:start}
#app .boss-stage-heading>.eyebrow{grid-column:1/-1;letter-spacing:1px}
#app .boss-stage-heading .boss-traits{grid-column:2;grid-row:2;flex-direction:column;align-items:flex-end;gap:4px;margin-top:6px}
#app .boss-stage-heading h2{grid-column:1;grid-row:2}
#app .card-passive{margin:16px 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#faf3df80}#app .card-passive h3{font-size:var(--ui-body);margin:0 0 6px;color:#285447}#app .card-passive p{font-size:var(--ui-label);line-height:1.65;margin:0;overflow-wrap:anywhere}#app .boss-skill-detail{font-size:var(--ui-label);line-height:1.6;margin:8px 0 0}#app .boss-pick-skill{color:#285447}

/* One or ten boxes share a single ceremony. The ten-card receipt stays readable
   at phone width; opening controls remain above a long receipt in DOM order. */
#app .pack-open-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#app .pack-open-actions .button{width:100%;min-width:0;min-height:var(--ui-primary);padding:10px 8px;font-size:var(--ui-body);line-height:1.4;letter-spacing:0;white-space:normal}
#app .pack-open-actions .button:disabled{opacity:.6;cursor:wait}
#app .pack-extras{width:100%;padding:0 8px}
#app .pack-stage{scroll-margin-top:90px}
#app .pack-stage.has-batch{width:100%;min-height:0;padding:8px;margin:16px 0 20px;background:none}
#app .pack-stage.has-batch:before{display:none}
#app .draw-batch{width:100%;text-align:left}
#app .batch-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}
#app .batch-heading h2{font-size:var(--ui-section);line-height:1.4;margin:0}
#app .batch-heading>span{color:var(--muted);font-size:var(--ui-label);white-space:nowrap}
#app .batch-cards{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
#app .batch-card{min-width:0}
#app .batch-art{position:relative;box-shadow:0 4px 9px #2d3a2920;border-radius:5px}
#app .batch-new{position:absolute;z-index:2;top:8px;left:8px;padding:3px 6px;background:var(--red);color:#fff4d6;border:1px solid #f2dc9b;border-radius:3px;font-size:var(--ui-meta);line-height:1.4}
#app .batch-card h3{font:500 var(--ui-body)/1.5 var(--serif);margin:8px 0 4px;overflow-wrap:anywhere}
#app .batch-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:var(--ui-meta);line-height:1.5;color:var(--muted)}
#app .is-revealed[data-opening-motion="full"] .batch-card{animation:ritual-result .32s ease-out calc(var(--reveal-order)*40ms) both!important}

#app .daily-action { min-height: 112px; padding: 24px 20px; }
#app .daily-action .fortune-feedback:empty { margin: 0; }

/* One asset-send entry in the album, with the existing mobile control scale. */
.album-asset-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:0 0 1rem}
.chain-transfers .back-button{display:inline-flex;align-items:center;min-height:44px;color:#25473e;font-size:.875rem}
.chain-transfers .transfer-panel{display:grid;gap:.75rem;padding:1rem;margin:1rem 0;background:#faf4e6;border:1px solid #c5b68e;border-radius:12px;min-width:0}
.chain-transfers [hidden]{display:none!important}
.chain-transfers input:not([type=checkbox]),.chain-transfers select{width:100%;min-width:0;min-height:48px;padding:.65rem;font:inherit;font-size:1rem;border:1px solid #b39c6b;border-radius:6px;background:#fff9ec;color:#25473e;box-sizing:border-box}
.chain-transfers button{min-height:48px;padding:.65rem .9rem;font:inherit;font-size:1rem;border:1px solid #b39c6b;border-radius:8px;background:#f5edda;color:#25473e;cursor:pointer}
.chain-transfers button:disabled{opacity:.5;cursor:default}
.chain-transfers label{font-size:.875rem;line-height:1.6}
.chain-transfers #transfer-review-button{min-height:56px;margin-top:.5rem}
.chain-transfers #transfer-status:empty{display:none}
.chain-transfers p,.chain-transfers dd{overflow-wrap:anywhere;line-height:1.7}
.chain-transfers .transfer-preview{display:flex;gap:1rem;align-items:center;min-width:0;padding:.5rem 0}
.chain-transfers .transfer-preview>div:last-child{min-width:0}
.chain-transfers .transfer-preview h2{font-size:1.25rem;overflow-wrap:anywhere;margin:0}
.chain-transfers .transfer-preview p{font-size:.875rem;margin:.25rem 0;color:#70634e}
.chain-transfers .transfer-art{flex:none;width:80px}
.chain-transfers .transfer-art img{display:block;width:100%;height:auto}
.chain-transfers .transfer-art svg{width:76px;height:76px;fill:currentColor}
.chain-transfers .transfer-art .cut{fill:none;stroke:#faf4e6;stroke-width:3;stroke-linejoin:round}
.chain-transfers .transfer-help{margin-top:1.5rem;font-size:.875rem}
.chain-transfers summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.chain-transfers dialog{max-width:440px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:1.25rem;box-sizing:border-box;border:1px solid #b39c6b;border-radius:12px;background:#faf4e6;color:#25473e}
.chain-transfers dialog::backdrop{background:#142d28a8}
.chain-transfers dialog h2{font-size:1.25rem;margin:0 0 1rem}
.chain-transfers dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.75rem 1rem;font-size:1rem}
.chain-transfers dt{color:#70634e}.chain-transfers dd{margin:0;min-width:0}
.chain-transfers .material-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.chain-transfers .transfer-check{display:flex;align-items:center;gap:.5rem;min-height:48px}
.collection-intro > div { min-width: 0; }
.collection-intro h1 { overflow-wrap: anywhere; }

/* Keep the mobile album's cards visible above the fixed navigation. The same
   controls remain, while the filter disclosure shares the toolbar row. */
@media(max-width:600px){
  #app .v02-album{padding-top:10px}
  #app .v02-album .collection-intro{margin-bottom:6px}
  #app .v02-album .album-asset-actions{margin-bottom:6px}
  #app .v02-album .album-shelf{margin-bottom:5px;padding-bottom:4px}
  #app .v02-album .album-choice{min-height:58px}
  #app .v02-album .album-progress{margin:0 0 4px}
  #app .v02-album .collection-toolbar{padding-right:70px}
  #app .v02-album #result-count{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  #app .v02-album .album-filters{position:relative;height:0;margin:0 0 4px}
  #app .v02-album .album-filters>summary{position:absolute;right:0;top:-44px;min-width:62px;z-index:1}
  #app .v02-album .album-filters[open]{height:auto}
}

/* Quiet paper finish and book edges; no image or animated overlay. */
#app{box-shadow:0 0 100px #041b2680,inset 1px 0 #fff8e080,inset -1px 0 #78623f30}
#app:before{background-image:radial-gradient(#9d81493d .6px,transparent .6px),linear-gradient(90deg,#fff9e017,transparent 40%,#81674512);background-size:4px 4px,100% 100%}
#app .album-page{box-shadow:inset 2px 0 #8c74452b,inset -2px 0 #8c74452b}
#app .album-page .collection-intro{background:linear-gradient(#b7a17870,#b7a17870) left bottom/100% 1px no-repeat}
#app .album-page .album-choice:not(.chosen){background:linear-gradient(145deg,#f3e8ce,#e6d9b8 70%);box-shadow:inset 0 0 0 1px #fff8dd70,0 2px #c5b38a33}
#app .album-page .card-art{box-shadow:0 4px 7px #5d633326,inset 0 0 0 1px #fff0c451}

/* The wallet readout belongs to the page header; the nickname is a label, not a second route. */
#app .player-chip{cursor:default}
#app .player-name strong{font-size:.875rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere}

/* Title, count and 44px asset tools share one compact album row. */
#app .v02-album{padding-top:6px}
#app .v02-album .collection-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:44px;gap:6px;margin-bottom:4px;padding:0 0 4px}
#app .v02-album .collection-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 6px;min-width:0}
#app .v02-album .collection-intro h1{font-size:1.375rem;line-height:1.18;margin:0;min-width:0;overflow-wrap:anywhere}
#app .v02-album .collection-total{font-size:.75rem;line-height:1.3}
#app .v02-album .collection-total strong{font-size:1.25rem}
#app .v02-album .album-asset-actions{display:flex;flex-wrap:nowrap;gap:4px;margin:0;align-self:start}
#app .v02-album .album-asset-action{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #b5a479;border-radius:8px 2px;background:#f3e8cd;color:#315a46}
#app .v02-album .album-asset-action .icon{width:20px;height:20px}
#app .v02-album .album-shelf{margin-bottom:5px}
@media(max-width:359px){#app .v02-album .collection-intro h1{font-size:1.25rem}}
#app :is(.button,.album-choice,.lobby-portal,.card-link):focus-visible{outline:3px solid #a85f37;outline-offset:3px}
#app :is(.button.secondary,.album-choice,.card-link):active:not(:disabled),#app .lobby-portal:not([aria-disabled=true]):active{transform:translateY(1px)}

/* Pocket composition v2: the artwork owns the space; controls keep a 44px hit area. */
#app .nav-inner>a{min-height:64px;gap:2px;padding:5px 0;font-weight:500}
#app .nav-inner>a .icon{width:22px;height:22px}
#app .nav-medallion{width:36px;height:28px;border-radius:9px 3px}
#app .nav-packs .nav-medallion{width:44px;height:44px;margin-top:-12px;margin-bottom:0;border-radius:13px 3px;border-width:1px}
#app .nav-packs .icon{width:25px;height:25px}
#app .home-page{padding-bottom:calc(var(--nav-height) + 16px + env(safe-area-inset-bottom));background:var(--paper)}
#app .lobby-world{
  --fan-card:clamp(128px,36vw,172px);
  height:auto;min-height:0;padding:16px 20px 20px;gap:10px;
}
#app .lobby-title{flex:none;max-width:100%;padding-inline:8px}
#app .lobby-title .edition-label{font-size:.625rem;letter-spacing:3px;line-height:1.5;margin:0}
#app .lobby-title h1{font-size:2.25rem;line-height:1.25;letter-spacing:8px;margin:6px 0 0 8px}
#app .lobby-title p{font-size:.75rem;line-height:1.6;letter-spacing:1.5px;margin:7px 0 0;color:#4e654e}
#app .lobby-card-fan{flex:none;width:min(100%,360px);height:calc(var(--fan-card)*1.7);min-height:0;margin:0}
#app .lobby-card{width:var(--fan-card);border-radius:6px;box-shadow:2px 9px 14px #173b3545}
#app .lobby-summon{max-width:320px;flex:none}
#app .lobby-prompt{font-size:.75rem;line-height:1.5;letter-spacing:1px;margin-bottom:10px}
#app .lobby-open{min-height:48px;font-size:.9375rem;padding:10px 14px;border-radius:9px 3px}
#app .lobby-open>.icon{width:18px;height:18px}
#app .lobby-dock{padding:10px 16px 0;border-top:1px solid #b9a271;background:linear-gradient(#f2e8cc,var(--paper))}
#app .lobby-shortcuts{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0}
.home-info-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid #c8bc9366;margin-top:3px;padding-top:5px}
.home-info-links>a,.home-info-links>button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:7px 4px;border:0;background:transparent;color:var(--ink,#244a3c);font:12px var(--serif,serif);text-decoration:none;cursor:pointer;text-align:center}
.home-info-links svg{width:18px;height:18px;flex-shrink:0}.home-info-links span{overflow-wrap:anywhere}
.home-updates-dialog{padding:0;width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 64px);background:var(--paper-light,#faf3df);color:var(--ink,#233f35)}
.home-updates-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:1;padding:10px 14px 10px 20px;border-bottom:1px solid #c8bc9380;background:var(--paper-light,#faf3df)}
.home-updates-heading h2{margin:0;font:600 20px var(--serif,serif)}.home-updates-heading button{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:0;background:transparent;color:inherit;cursor:pointer}.home-updates-heading svg{width:22px;height:22px}
.home-updates-body{padding:18px 20px 20px}.home-update-entry time{display:block;color:#73765b;font:12px var(--sans,sans-serif);letter-spacing:.03em}.home-update-entry h3{font:600 16px/1.5 var(--serif,serif);margin:18px 0 8px}.home-updates-body p{font:14px/1.85 var(--sans,sans-serif);margin:0 0 12px;overflow-wrap:anywhere}.home-update-entry+.home-update-entry{border-top:1px solid #c8bc9380;margin-top:20px;padding-top:20px}.home-updates-body .home-updates-footer{font-size:12px;color:#73765b;margin:18px 0 0;padding-top:14px;border-top:1px solid #c8bc9380}
#app .lobby-portal{position:relative;flex-direction:column;justify-content:center;gap:6px;min-width:0;min-height:76px;padding:8px 6px;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:center}
#app .lobby-portal+ .lobby-portal::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:1px;background:linear-gradient(transparent,#b6a37888,transparent)}
#app .lobby-portal .portal-icon{width:30px;height:30px;border-radius:9px 3px;background:#d8d8b755;border-color:#9aa58080}
#app .lobby-portal .portal-icon .icon{width:20px;height:20px}
#app .lobby-portal>strong{flex:0;font:500 .875rem/1.45 var(--sans);letter-spacing:.5px;white-space:normal}
#app .lobby-portal>.icon{display:none}
html[lang=en] #app .lobby-title h1{font-size:2rem;letter-spacing:6px}
html[lang=en] #app .lobby-title p{font-size:.75rem;letter-spacing:0}
html[lang=en] #app .lobby-portal>strong{font-size:.8125rem;letter-spacing:0}
@media(max-height:740px){#app .lobby-world{--fan-card:clamp(124px,34vw,150px);padding-block:14px 18px;gap:8px}}
/* Focus moves to dialog headings for screen readers, without painting a native
   WebKit ring around static text. Interactive controls retain keyboard focus. */
body dialog :is(h1,h2,h3)[tabindex="-1"]:focus{outline:none}
body dialog :is(button,a,input,select,summary):focus-visible{outline:2px solid #a85f37;outline-offset:3px}

/* Companion pages share the home's light paper, quiet edges and object-first layout. */
#app :is(.bonds-page,.bond-detail){padding-top:12px}
#app .bonds-page .compact-heading{min-height:44px;margin-bottom:10px}
#app .bonds-page .compact-heading h1{margin:0;font:600 20px/1.4 var(--serif)}
#app .bonds-page .bond-total{font-size:13px;font-variant-numeric:tabular-nums}
#app .bonds-page .game-segments{gap:6px;padding:0;border:0;background:transparent;margin-bottom:16px}
#app .bonds-page .game-segments button{border:1px solid var(--folio-line);border-radius:12px 3px;background:#fff7e34d;color:var(--jade);font-size:14px}
#app .bonds-page .game-segments button[aria-pressed=true]{background:var(--jade);border-color:var(--jade);color:var(--paper-light);box-shadow:none}
#app .bond-list{display:grid;gap:16px}
#app .bond-summary.bond-composition{display:block;padding:0;min-height:0;border:0;border-bottom:1px solid var(--folio-line);border-radius:var(--folio-radius);background:var(--folio-wash);box-shadow:none}
.bond-composition-link{display:block;min-width:0;padding:14px 12px 12px;border-radius:inherit}
.bond-composition-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
#app .bond-composition-heading h2{display:flex;align-items:center;gap:7px;min-width:0;margin:0;font:600 17px/1.5 var(--serif);overflow-wrap:anywhere}
.bond-composition-heading h2 .icon{width:19px;height:19px;color:#9d7942}
#app .bond-composition .bond-count{flex:none;padding:3px 6px;border-radius:8px 2px;font-size:11px;background:#ddd7ba66;color:#6b7058}
#app .bond-composition .bond-count.complete{background:#285745;color:#fff1ca}
.bond-member-row{position:relative;isolation:isolate;display:flex;justify-content:center;align-items:start;gap:clamp(6px,2vw,12px);padding:18px 0 12px}
.bond-member-row:before{content:'';position:absolute;z-index:-1;left:5%;right:5%;top:42%;height:1px;background:linear-gradient(90deg,transparent,#b7a06b70,transparent);pointer-events:none}
.bond-member-mini{flex:0 1 70px;min-width:0;text-align:center}
.bond-mini-art{position:relative;aspect-ratio:2/3;border-radius:5px;box-shadow:0 4px 8px #324d3224;background:#365846}
.bond-mini-art>img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
.bond-mini-status{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;display:grid;place-items:center;background:#f5ead1;border:1px solid #b6a476;border-radius:50%;color:#736c54;font:12px var(--sans)}
.bond-mini-status .icon{width:12px;height:12px}
.bond-member-mini.owned .bond-mini-status{background:#285745;color:#f8e9bd}
.bond-mini-name{display:block;margin-top:8px;font:13px/1.5 var(--serif);overflow-wrap:anywhere}
#app .bond-composition-effect{margin:3px 0 0;font:14px/1.7 var(--serif);color:var(--jade)}
.bond-composition-condition{display:block;margin-top:4px;font-size:11px;color:#7a7057}
#app .bond-detail>.page-heading{margin:0 0 18px;text-align:left;padding:4px 0 12px;border-bottom:1px solid var(--folio-line)}
#app .bond-detail>.page-heading h1{font-size:22px;margin:3px 0 0}
#app .bond-detail .bond-members{padding:12px 0;background:radial-gradient(ellipse at 50% 65%,#d6dab760,transparent 75%)}
#app .bond-detail .bond-effect{border:0;border-left:2px solid #8c9f705c;border-radius:0 12px 3px 0;background:var(--folio-wash);padding:14px 16px}
#app .bond-detail .trait-story{padding:0 2px;color:#656d55}
#app .bond-detail .bond-notes{border-color:var(--folio-line)}

/* Album tabs feel like folio leaves; card art keeps its original size and frame. */
#app .v02-album{box-shadow:none}
#app .v02-album .collection-intro{background:none}
#app .v02-album .album-choice{border-radius:12px 3px;border-color:var(--folio-line);box-shadow:none}
#app .v02-album .album-choice:not(.chosen){background:var(--folio-wash);box-shadow:none}
#app .v02-album .album-choice.chosen{background:#315944;border-color:#789065;box-shadow:inset 3px 0 #cfbd81}
#app .v02-album .text-filters button{border-radius:10px 3px}
#app .v02-album .text-filters button[aria-pressed=true]:after{display:none}
#app .v02-album .album-filters[open] .filter-toolbar{padding:8px;background:#fff7e34d;border-radius:12px 3px;border-bottom:1px solid var(--folio-line)}
#app .v02-album .chip{border-radius:10px 3px}
#app .v02-album .card-art{box-shadow:var(--folio-shadow)}
#app .v02-album .card-caption{padding-top:8px}
#app .v02-album .rarity-badge{background:transparent;border:0;padding-left:0}
#app .detail-page .card-tabs{background:transparent;border:0;padding:0;gap:6px}
#app .detail-page .card-tabs button{border:1px solid var(--folio-line);border-radius:12px 3px;background:#fff7e34d}
#app .detail-page .card-tabs button[aria-pressed=true]{background:var(--jade);color:var(--paper-light);border-color:var(--jade);box-shadow:none}
#app :is(.detail-page,.locked-page) .permanent-attributes>div{border:0;border-radius:12px 3px;background:var(--folio-wash)}
#app :is(.detail-page,.locked-page) .related-entry{border:0;border-bottom:1px solid var(--folio-line);border-radius:12px 3px;background:var(--folio-wash)}
html[lang=en] .bond-mini-name{font-size:12px;line-height:1.4}
@media(max-width:359px){.bond-composition-link{padding-inline:8px}#app .bond-composition-heading h2{font-size:16px}.bond-composition-heading{gap:6px}.bond-member-row{gap:6px}.bond-mini-name{font-size:12px}}

/* Small collection slots scale the album back as a whole. Base artwork and
   pack/reveal backs keep their existing rules; only marked mini hosts opt in. */
.card-back-mini{container-type:inline-size}
.card-back-mini>.sealed-back{padding:9.091cqw 6.364cqw;border-width:4.545cqw;border-radius:4.545cqw}
.card-back-mini>.sealed-back::before{inset:5.455cqw}
.card-back-mini>.sealed-back::after{inset:11.818cqw}
.card-back-mini .sealed-brand{font-size:10cqw;letter-spacing:.909cqw;padding-left:3.636cqw}
.card-back-mini .sealed-emblem{width:36.364cqw;height:39.091cqw;font-size:24.545cqw;border-width:1.818cqw;outline-offset:3.636cqw}
.card-back-mini>.sealed-back .sealed-footer{font-size:6.364cqw;letter-spacing:.455cqw;gap:3.636cqw}
.card-back-mini>.sealed-back .sealed-footer small{font-size:5.455cqw;letter-spacing:.909cqw}
.card-back-mini .sealed-cloud{border-width:.909cqw}
.card-back-mini .cloud-top{box-shadow:0 9.091cqw 0 #bcaa7710,0 20.909cqw 0 #bcaa7710}
.card-back-mini .cloud-bottom{box-shadow:0 -9.091cqw 0 #bcaa7710,0 -20.909cqw 0 #bcaa7710}
