:root{--bg:#100c1d;--panel:#1b152a;--panel-light:#251c37;--line:#342545;--purple:#a747ff;--lavender:#dfbbff;--muted:#a79ab9;--serif:Arial,Helvetica,sans-serif}body{background:radial-gradient(ellipse at 55% 0,#39115a55,transparent 60%),var(--bg);font-size:13px}h1,h2,h3{font-family:Arial,Helvetica,sans-serif;font-weight:800;letter-spacing:-.5px}h2{font-size:20px}h1{font-size:42px}em{font-style:normal;font-weight:900;color:#e6baff}.left-rail{position:fixed;left:0;top:0;bottom:0;width:180px;background:#161022;border-right:1px solid var(--line);z-index:20;padding:16px 12px;display:flex;flex-direction:column}.brand,.brand img{width:156px;height:72px;object-fit:contain}.rail-label{font-size:9px;letter-spacing:1.5px;color:#9b88ae;margin:23px 10px 12px}.left-rail nav{display:flex;flex-direction:column;gap:6px}.nav-item{text-align:left;display:flex;align-items:center;gap:12px;padding:12px;font-size:12px}.nav-item i{font-style:normal;font-size:18px;width:20px;color:#9f7aba}.nav-item.active{background:linear-gradient(100deg,#7628d1,#402060);box-shadow:inset 3px 0 #d5a1ff;color:white}.nav-item.active i{color:white}.rail-promo{margin-top:30px;border:1px solid #713a97;background:radial-gradient(at top,#6f1d9b,#211230);border-radius:12px;text-align:center;padding:12px 6px}.rail-promo img{height:105px;object-fit:contain}.rail-promo b{display:block}.rail-promo p{font-size:10px;margin:5px 0 12px}.rail-bottom{margin-top:auto;padding:25px 8px 0;font-size:10px;font-weight:800;letter-spacing:1px}.rail-bottom small{font-size:9px;font-weight:400;letter-spacing:0}.topbar{height:65px;margin-left:180px;padding:0 24px;gap:16px;background:#181124;border-color:#382448;position:relative}.top-title{font-weight:900;font-size:12px;letter-spacing:1px}.top-tag{font-size:9px;color:#a58cb8;margin-right:auto;letter-spacing:1px}.wallet{background:#0c0914;border:1px solid #443053;border-radius:7px;padding:6px 12px}.wallet strong{font-size:14px}.app-layout{margin-left:180px;display:grid;grid-template-columns:minmax(0,1fr) 224px}main{width:100%;max-width:none;min-width:0;margin:0;padding:22px 24px 45px}.right-rail{padding:20px 15px;border-left:1px solid var(--line);background:#15101f}.right-rail section{margin:25px 0}.right-rail h3{font-size:13px;letter-spacing:0}.reward-box{background:radial-gradient(at top,#802fc0,#32143e 70%);border:1px solid #ac4aff;border-radius:12px;text-align:center;padding:15px 10px;overflow:hidden}.reward-box .eyebrow{font-size:8px;letter-spacing:1px;color:#fff}.reward-box img{height:120px;width:100%;object-fit:contain;filter:drop-shadow(0 4px 14px #ef2eff66)}.reward-box h3{font-size:19px;margin:10px 0 4px}.reward-box p{font-size:10px;color:#e2cbed}.reward-box .button{width:100%;font-size:12px}.goal{padding:12px 0;border-bottom:1px solid #33223f}.goal b{font-size:11px;display:block;margin-bottom:4px}.goal small{display:block;font-size:10px}.goal strong{float:right;color:#d0a0ff}progress{appearance:none;width:100%;height:5px;border:0;border-radius:10px;margin:10px 0;background:#30213d}progress::-webkit-progress-bar{background:#30213d;border-radius:10px}progress::-webkit-progress-value{background:linear-gradient(90deg,#9724fa,#eabbff);border-radius:10px}.find-row{display:flex;align-items:center;gap:10px;background:none;border:0;border-bottom:1px solid #2d2039;width:100%;text-align:left;padding:10px 0}.find-row img{width:40px;height:40px;border:1px solid #7a5293;border-radius:7px;object-fit:cover}.find-row b{font-size:10px;display:block}.find-row small{font-size:9px}.button{border-radius:7px;font-weight:800;background:#332043;border-color:#624076;gap:8px}.button.primary{background:linear-gradient(135deg,#be42ff,#7624ed);border:1px solid #d47cff;color:#fff;box-shadow:0 4px 15px #8f20ff33,inset 0 1px #ffffff45}.button.primary:hover:not(:disabled){background:linear-gradient(135deg,#ce70ff,#9845ff)}.desk-hero{display:flex;min-height:300px;padding:32px;border:1px solid #794598;border-radius:14px;background:linear-gradient(90deg,#180c36dd 0%,#170b3040 60%,transparent),url('assets/hub.webp') center/cover;overflow:hidden;box-shadow:inset 0 1px #fff2,0 8px 25px #0003}.hero-copy{width:65%}.hero-copy h1{font-size:clamp(30px,3.4vw,49px);line-height:1.03;letter-spacing:-1.6px;text-shadow:0 3px 8px #16082b}.hero-copy p{font-size:12px;color:#dacde6;line-height:1.7;margin-bottom:23px}.hero-copy .eyebrow{font-size:8px;color:#e4c9ff;letter-spacing:1.6px}.hero-copy .button{font-size:12px}.hub-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:19px 0;border-bottom:1px solid var(--line);font-size:10px;color:#ac9bbc}.hub-stats b{font-size:19px;margin-right:6px}.hub-section{margin-top:28px}.section-heading{align-items:center;margin-bottom:14px}.section-heading h2{font-size:17px;margin:0;letter-spacing:-.3px}.section-heading small{font-size:10px}.world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.world-tile{min-width:0;position:relative;text-align:left;min-height:172px;border:1px solid #694285;border-radius:10px;padding:12px;background-position:center;background-size:cover;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;box-shadow:inset 0 0 25px #25123e50}.world-tile:hover{border-color:#e19aff;transform:translateY(-3px);box-shadow:0 5px 20px #932dff44}.world-number{align-self:start;background:#160d28c9;border:1px solid #b77bdd70;padding:3px 6px;border-radius:4px;font-size:8px;font-weight:800;letter-spacing:1px}.world-tile b{display:block;font-size:15px;line-height:1.1;text-shadow:0 2px 5px #000}.world-tile small{display:block;font-size:9px;color:#ded0ec;margin-top:4px}.world-play{font-size:9px;color:#dfafff;display:block;margin-top:8px;font-weight:900}.featured-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.preview-label{display:block;text-align:center;font-size:8px;color:#9d8cac;padding-top:9px}.family-grid{grid-template-columns:repeat(3,1fr);gap:9px}.family-tile{border-radius:8px;padding:15px;min-height:95px;text-align:left;display:grid;grid-template-columns:35px 1fr;background:linear-gradient(110deg,#322140,#1b1528);border-color:#513267;column-gap:8px}.family-tile>span{font-size:27px;grid-row:span 2;color:var(--family)}.family-tile b{font-size:12px}.family-tile small{font-size:9px}.challenge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.challenge-tile{padding:18px;border:1px solid #513066;border-radius:10px;background:linear-gradient(145deg,#2d1a41,#191222)}.challenge-tile h3{font-size:15px}.challenge-tile p{font-size:11px;min-height:55px}.challenge-tile .eyebrow{font-size:8px;letter-spacing:1px}.challenge-tile .button{font-size:10px}.page-heading{padding:20px 0}.page-heading h1{font-size:36px}.page-heading p{font-size:13px}.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px}.card{--rarity:#b8c2d4;position:relative;isolation:isolate;overflow:hidden;border:3px solid var(--rarity);border-radius:12px;padding:7px;background:linear-gradient(135deg,#fff1,var(--rarity) 0%,#22152d 6%,#100d19 92%,var(--rarity));box-shadow:0 4px 0 #08050f,0 0 0 1px #08050f,inset 0 0 0 1px #f4edff77;transform:perspective(850px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .16s,box-shadow .2s;color:#f9f3ff}.card:hover{box-shadow:0 8px 25px #0008,0 0 16px color-mix(in srgb,var(--rarity),transparent 65%);transform:perspective(850px) translateY(-3px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}.card.edition-0{--rarity:#b8c2d4}.card.edition-1{--rarity:#50d786}.card.edition-2{--rarity:#3aa8ff}.card.edition-3{--rarity:#bc64ff}.card.edition-4{--rarity:#ffb839}.card.edition-5{--rarity:#ff548c}.card-top{position:relative;z-index:3;font-size:8px;font-weight:800;gap:5px;margin-bottom:6px;color:#e0cee9}.cost{border:1px solid #edceff;background:linear-gradient(135deg,#c050ff,#5d12c5);border-radius:7px;color:white;width:24px;height:24px;font-size:14px;box-shadow:0 2px 0 #080312;flex:none}.card-star{color:var(--rarity);font-size:16px}.card-art{position:relative;aspect-ratio:1/1;border:1px solid var(--rarity);border-radius:7px;background:#201032;overflow:hidden;margin:0}.card-art img{width:100%;height:100%;object-fit:cover;display:block}.card-title{font:800 14px/1.13 Arial,sans-serif;letter-spacing:-.3px;min-height:39px;padding:9px 2px 5px;color:white}.card-rule{font:11px/1.4 Arial,sans-serif;min-height:61px;padding:7px;background:#ffffff09;border-top:1px solid #e2caff28;border-radius:4px;color:#e5d9ed}.card-bottom{font-size:8px;text-transform:uppercase;letter-spacing:.6px;padding:7px 1px 2px;margin:0;color:var(--rarity);font-weight:800;display:flex;justify-content:space-between;gap:4px}.featured-row .card{padding:5px;border-width:2px;border-radius:9px}.featured-row .card-top{font-size:6px}.featured-row .cost{width:19px;height:19px;font-size:11px}.featured-row .card-title{font-size:11px;min-height:35px}.featured-row .card-rule{font-size:9px;min-height:63px;padding:5px}.featured-row .card-bottom{font-size:6px;letter-spacing:0}.foil-light{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(115deg,transparent 0%,#6bfaff55 12%,#ff80e955 22%,#ffffff66 28%,#a29bff33 36%,transparent 45%);background-size:250% 250%;background-position:var(--shine-x,50%) var(--shine-y,50%);mix-blend-mode:screen;opacity:.45;animation:foil-drift 7s ease-in-out infinite;transform:none}.card-glare{position:absolute;inset:0;z-index:4;pointer-events:none;background:radial-gradient(ellipse at var(--shine-x,35%) var(--shine-y,20%),#fff9 0%,#b9eaff22 22%,transparent 55%);mix-blend-mode:screen;opacity:.28}.is-foil:hover .foil-light{animation:none;opacity:.75}.is-foil:hover .card-glare{opacity:.55}.edition-4 .foil-light{background-image:repeating-linear-gradient(125deg,transparent,#ffc46655 16%,#fff9 24%,#ff9b3944 30%,transparent 40%)}.edition-5 .foil-light{background-image:repeating-linear-gradient(125deg,#ff468844,transparent 10%,#7effd866 20%,#b781ff77 30%,#fff9 35%,transparent 45%)}@keyframes foil-drift{0%,100%{background-position:0% 15%}50%{background-position:100% 90%}}[data-motion=reduced] .foil-light,.hidden-tab .foil-light{animation:none}[data-motion=reduced] .card{transform:none!important}.is-foil:focus-visible .card-glare{opacity:.6}.filters{flex-wrap:wrap}.filters select{font-size:11px;padding:10px}.search-label{min-width:160px}.filters input{font-size:12px}.setup-layout{margin-top:22px;gap:24px}.panel{background:#20152e;border-color:#533068;border-radius:12px}.inspection-card{width:280px}.inspection-card .card-title{font-size:22px}.inspection-card .card-art{height:auto;aspect-ratio:1}.inspection-card .card-rule{font-size:13px;min-height:75px}.inspection-card .card-bottom{font-size:10px}.inspect-layout{grid-template-columns:280px 1fr}.hand-slot{min-width:160px}.hand .card-title{font-size:13px}.hand .card-rule{font-size:10px}.hand .card{background-color:#130d20}.reveal-grid .card-title{font-size:13px}.reveal-grid .card-rule{font-size:10px}.card-back{border-color:#d28cff;background:radial-gradient(at 25% 20%,#a638e5,#5711a2 45%,#201036);box-shadow:inset 0 0 0 6px #210935,inset 0 0 0 8px #f1dcff8f}.card-back b{color:#ddc8ff}.card-back i{color:#fff}footer{margin-left:180px;font-size:9px;padding:20px 24px}.eyebrow{letter-spacing:1.4px}.settings-grid h2{font-size:22px}.settings-grid p{font-size:12px}
@media(min-width:1550px){.world-grid{grid-template-columns:repeat(6,1fr)}.world-tile{min-height:185px}.collection-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.desk-hero{min-height:330px}.hero-copy{width:55%}}
@media(max-width:1200px){.app-layout{grid-template-columns:minmax(0,1fr)}.right-rail{display:none}.featured-row{gap:10px}.top-tag{display:none}.top-title{margin-right:auto}.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.left-rail{width:76px;padding:10px 6px}.left-rail .brand,.left-rail .brand img{width:64px;height:48px}.nav-item{justify-content:center;padding:13px 5px}.nav-item i{font-size:22px;text-align:center}.nav-item span,.rail-label,.rail-promo,.rail-bottom{display:none}.topbar,.app-layout,footer{margin-left:76px}.topbar{padding:0 18px}.featured-row{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:20px}.featured-row .card-title{font-size:14px}.featured-row .card-rule{font-size:11px}.featured-row .card-top{font-size:8px}.featured-row .card-bottom{font-size:8px}.hero-copy{width:80%}.challenge-grid{grid-template-columns:repeat(2,1fr)}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.world-tile b{font-size:13px}.hero-copy h1{font-size:38px}.hub-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.left-rail{position:relative;width:100%;height:auto;padding:4px 10px;border-right:0;border-bottom:1px solid var(--line)}.left-rail .brand{position:absolute;top:5px;left:10px;width:99px;height:48px}.left-rail .brand img{width:99px;height:48px}.left-rail nav{flex-direction:row;justify-content:space-between;margin-top:49px;gap:3px}.nav-item{flex:1;display:flex;flex-direction:column;gap:2px;padding:7px 2px;border-radius:6px}.nav-item span{display:block;font-size:8px}.nav-item i{font-size:16px}.topbar{position:absolute;top:0;right:0;height:54px;background:transparent;border:0;margin:0;padding:0 10px;gap:7px}.top-title{display:none}.topbar .wallet{font-size:9px;padding:5px 7px;gap:4px}.topbar .wallet strong{font-size:12px}.topbar .button{font-size:10px;padding:6px 8px;min-height:29px}.topbar>.button:last-child{display:none}.app-layout,footer{margin-left:0}main{padding:14px 12px 30px}.desk-hero{padding:23px 17px;min-height:280px;background-position:57% center}.hero-copy{width:100%}.hero-copy h1{font-size:34px;max-width:300px}.hero-copy p{font-size:11px;max-width:260px;text-shadow:0 1px 4px #000}.hero-copy .eyebrow{font-size:7px}.hero-copy .button{font-size:10px;padding:10px 12px}.hub-stats{font-size:9px;gap:10px}.hub-stats b{font-size:16px}.section-heading h2{font-size:14px}.section-heading>small{display:none}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.world-tile{min-height:155px}.world-tile b{font-size:14px}.featured-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.family-grid{grid-template-columns:repeat(2,1fr)}.family-tile{padding:11px;grid-template-columns:25px 1fr;min-height:80px}.family-tile b{font-size:10px}.family-tile small{font-size:8px}.family-tile>span{font-size:22px}.challenge-grid{gap:10px}.challenge-tile{padding:13px}.challenge-tile h3{font-size:13px}.challenge-tile p{font-size:10px;min-height:80px}.challenge-tile .button{padding:7px;font-size:9px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.card-title{font-size:14px}.card-rule{font-size:11px}.card-top{font-size:7px}.card-bottom{font-size:7px}.inspect-layout{grid-template-columns:1fr}.inspection-card{width:240px}.page-heading h1{font-size:30px}.setup-controls{padding:18px}.reveal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{gap:7px}.filters select{max-width:48%}.search-label{flex-basis:100%}.topbar .ink-drop{font-size:14px}}
@media(prefers-reduced-motion:reduce){.foil-light{animation:none!important}.card{transform:none!important;transition:none}}
.card[class*="edition-"]{border:3px solid var(--rarity);background:linear-gradient(135deg,var(--rarity) 0%,#22152d 7%,#100d19 91%,var(--rarity));color:#f9f3ff}.featured-row .card[class*="edition-"]{border-width:2px}.card.is-foil:hover .foil-light{animation:none;transform:none}.signature-card .card-art{height:auto;aspect-ratio:1}.card .card-title{color:#fff}.card .card-rule{color:#e5d9ed}.card .card-bottom{color:var(--rarity)}
/* Odd Squad: a friendlier front door, with the same purple / pearl / foil identity. */
:root{--bg:#191127;--panel:#281a3b;--line:#4a315e;--muted:#c5b6d3}body{background:radial-gradient(ellipse at 60% 0,#66289566,transparent 55%),var(--bg)}.topbar{flex-wrap:nowrap}.left-rail{background:#21142f}.right-rail{background:#20142e}.button{min-height:44px;border-radius:11px}.button.primary{background:linear-gradient(135deg,#f1e3ff,#d2dfff);border-color:#f8f0ff;color:#302041;box-shadow:0 4px 0 #442457,0 7px 20px #0002}.button.primary:hover:not(:disabled){background:#f8edff}.friendly-hero{position:relative;min-height:340px;background:radial-gradient(circle at 85% 35%,#b25bdd66,transparent 46%),linear-gradient(115deg,#40215d,#301742);border:1px solid #ad77cf;border-radius:24px;box-shadow:inset 0 2px #edceff22}.friendly-hero .hero-copy{width:62%;max-width:590px}.friendly-hero h1{font-family:'Trebuchet MS',Arial,sans-serif;font-size:clamp(36px,3.8vw,54px);font-weight:900;line-height:1.02;text-shadow:none;letter-spacing:-1.8px}.friendly-hero em{color:#e8d3ff}.friendly-hero .hero-copy p{font-size:14px;line-height:1.65;color:#eee1f6}.hero-reassurance{display:block;font-size:11px;line-height:1.7;margin-top:19px;color:#e1cfea}.hero-oddities{position:absolute;right:2%;top:15px;bottom:15px;width:34%;pointer-events:none}.hero-mascot{position:absolute;width:80%;height:70%;object-fit:contain;left:10%;top:-2%;filter:drop-shadow(0 8px 12px #0b051e66)}.hero-fax,.hero-brick{position:absolute;bottom:35px;width:37%;aspect-ratio:1;border:4px solid #f3ddff;border-radius:20px;box-shadow:0 5px 0 #120820}.hero-fax{left:2%;transform:rotate(-12deg)}.hero-brick{right:0;transform:rotate(12deg)}.hero-oddities>span{position:absolute;bottom:15px;width:100%;text-align:center;font-size:8px;letter-spacing:.8px;font-weight:900;color:#e2bbf6}.hero-oddities>small{position:absolute;bottom:0;width:100%;text-align:center;font-size:8px}.easy-start{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:17px 0 28px}.easy-start>div{background:#342047;border:1px solid #66427e;border-radius:14px;padding:18px 12px 14px;display:grid;grid-template-columns:33px 1fr;gap:5px 8px}.easy-start span{grid-row:span 2;font-size:26px;color:#e4c5ff}.easy-start b{font-size:12px}.easy-start p{font-size:11px;margin:0}.odd-showcase .section-heading h2{font-size:23px;max-width:540px}.odd-showcase .eyebrow{color:#d2a5ea;font-size:10px;margin-bottom:7px}.odd-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 12px}.odd-tabs button{background:#332044;border:1px solid #68437c;border-radius:20px;padding:10px 15px;min-height:44px;color:#e9dcf2;font-weight:700;font-size:11px}.odd-tabs button.active{background:#e5d0f5;color:#351a45;border-color:#f3e6fc}.set-caption{font-size:13px;margin:0 0 16px;color:#d1b5e4}.fun-card-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;align-items:start}.card-joke{font-size:10px;font-style:italic;line-height:1.45;color:#d9c4e4;border-top:1px dashed #684c7c;padding:9px 4px 2px;min-height:53px}.fun-card-row .card-title{font-size:15px;min-height:47px}.fun-card-row .card-rule{font-size:11px;min-height:66px}.finish-note{margin-top:12px;font-size:10px}.friendly-choice{display:grid;grid-template-columns:1.5fr 1fr;gap:25px;align-items:center;border-radius:22px;border:1px solid #b28bcc;background:#eadbf4;padding:25px;margin-top:25px;overflow:hidden}.friendly-choice h2{color:#382048;font-size:26px}.friendly-choice p{color:#5b436c;font-size:13px}.friendly-choice .eyebrow{color:#78538f;font-size:9px}.friendly-choice img{width:100%;max-height:230px;object-fit:cover;border-radius:20px;transform:rotate(4deg);border:5px solid white;box-shadow:0 6px 0 #c3a0d3}.more-discoveries{padding:20px;background:#281939;border:1px solid #533765;border-radius:14px}.more-discoveries summary{font-size:13px;font-weight:700}.more-discoveries .family-grid{margin-top:20px}.more-discoveries .challenge-grid{margin-top:18px}.world-tile{border-radius:15px}.battle-coach{display:flex;align-items:start;gap:13px;background:#e6daf3;border:2px solid #ccb1df;border-radius:15px;padding:16px;margin:12px 0 20px;color:#342340}.battle-coach>span{font-size:25px;color:#8645b5}.battle-coach>div{flex:1}.battle-coach b{color:#462b56}.battle-coach p{color:#463651;font-size:13px;line-height:1.6;margin:4px 0}.battle-coach small{color:#6e517e;font-size:11px}.battle-coach .button{background:white;color:#482853;border-color:#bd9dce}.enemy-portrait img{width:100%;border-radius:18px;border:2px solid #9868b4}.combat-toolbar{background:#2a193b;border:1px solid #604275;border-radius:12px;padding:12px}.card-top{font-size:9px}.card-bottom{font-size:9px}.card-title{font-size:15px}.card-rule{font-size:12px;min-height:70px}.right-rail h3{font-size:15px}.goal small{font-size:11px}.find-row b{font-size:11px}.find-row small{font-size:10px}.card-back{background-image:url('assets/art/f8490c0f4cbb2e883af2-512-v1.webp'),radial-gradient(at 25% 20%,#a638e5,#5711a2 45%,#201036);background-size:88% auto,cover;background-repeat:no-repeat;background-position:center}.card-back>span,.card-back>i{visibility:hidden}.card-back>small{color:#f5e7ff}.pack-select p{max-width:390px;margin-inline:auto}.pack-select select{font-size:14px;min-height:48px}.pack-reveal .actions{position:sticky;bottom:-1px;background:#20142ff5;padding:13px 0;z-index:5}.pack-reveal{padding-bottom:8px}.play-button{min-height:46px}.hand .card-joke{font-size:9px;min-height:43px}.hero-copy .button{min-height:48px}.collection-grid{row-gap:25px}
@media(max-width:1050px){.fun-card-row{grid-template-columns:repeat(3,minmax(0,1fr))}.fun-card-row>.card:last-child{display:none}.friendly-hero .hero-copy{width:68%}.hero-oddities{width:29%}.easy-start>div{grid-template-columns:1fr}.easy-start span{display:none}}
@media(max-width:700px){.fun-card-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fun-card-row>.card:last-child{display:block}.friendly-hero{padding:25px 20px;min-height:350px}.friendly-hero .hero-copy{width:100%;position:relative;z-index:2}.friendly-hero .hero-copy h1{font-size:38px;max-width:300px}.friendly-hero .hero-copy p{max-width:75%;font-size:13px}.hero-oddities{width:110px;top:20px;right:8px;bottom:auto;height:110px;opacity:.85}.hero-mascot{width:100%;height:100%;left:0;top:0}.hero-fax,.hero-brick,.hero-oddities>span,.hero-oddities>small{display:none}.hero-reassurance{font-size:11px}.easy-start{gap:7px}.easy-start>div{padding:13px 10px}.easy-start b{font-size:11px}.easy-start p{font-size:10px}.friendly-choice{padding:19px;gap:15px;grid-template-columns:1.4fr .7fr}.friendly-choice h2{font-size:22px}.friendly-choice p{font-size:12px}.odd-showcase .section-heading{display:block}.odd-showcase .section-heading .button{margin-top:4px}.odd-showcase .section-heading h2{font-size:23px}.odd-tabs{flex-wrap:nowrap;overflow-x:auto;padding:3px 1px 9px;scrollbar-width:thin}.odd-tabs button{white-space:nowrap;flex:none;font-size:12px}.fun-card-row .card-rule{font-size:12px}.card-joke{font-size:11px;min-height:61px}.fun-card-row .card-title{font-size:16px;min-height:49px}}
@media(max-width:560px){body{font-size:14px}.left-rail{height:66px;padding:0 12px;border:0;position:relative}.left-rail .brand{height:62px;width:120px;top:0;left:10px}.left-rail .brand img{width:120px;height:62px}.left-rail nav{position:fixed;z-index:60;bottom:0;left:0;right:0;margin:0;background:#20132ff5;border-top:1px solid #895cac;box-shadow:0 -4px 20px #0c061b77;padding:7px 5px calc(7px + env(safe-area-inset-bottom));gap:3px;backdrop-filter:blur(12px)}.nav-item{min-height:51px;gap:5px;padding:6px 1px}.nav-item span{font-size:10px}.nav-item i{font-size:20px;line-height:1}.nav-item.active{box-shadow:inset 0 3px #ddacfa;background:#643296}.topbar{height:66px;gap:7px;max-width:calc(100% - 132px)}.topbar .wallet{font-size:10px;gap:4px;padding:6px}.topbar .wallet strong{font-size:13px}.topbar .button{min-height:40px;padding:7px 9px;font-size:11px}.topbar .wallet>span:last-child{display:none}main{padding:10px 12px 30px;min-height:60vh}.app-layout{padding-bottom:80px}footer{padding:10px 12px calc(100px + env(safe-area-inset-bottom));font-size:10px}.friendly-hero{min-height:0;padding:24px 18px;border-radius:20px}.friendly-hero .hero-copy h1{font-size:36px;max-width:235px;margin-bottom:17px}.friendly-hero .hero-copy p{max-width:100%;padding-right:0;font-size:13px;margin-bottom:18px}.hero-oddities{top:8px;width:95px;height:95px;right:6px;opacity:.75}.friendly-hero .hero-copy>.eyebrow{font-size:8px;max-width:205px;letter-spacing:1px;margin-bottom:16px}.friendly-hero .actions{display:grid;grid-template-columns:1fr;width:100%;gap:12px}.friendly-hero .button{width:100%;font-size:14px;min-height:50px}.hero-reassurance{font-size:11px;margin-top:16px}.easy-start{grid-template-columns:1fr;margin:15px 0 25px;gap:0;background:#2e1d40;border-radius:14px;border:1px solid #62417b;padding:6px 14px}.easy-start>div{grid-template-columns:28px 1fr;padding:12px 0;border:0;border-radius:0;background:none;border-bottom:1px solid #57366f;column-gap:12px}.easy-start>div:last-child{border:0}.easy-start span{display:block;grid-row:span 2;font-size:23px}.easy-start b{font-size:13px}.easy-start p{font-size:12px}.friendly-choice{grid-template-columns:1fr;padding:20px}.friendly-choice img{display:none}.friendly-choice h2{font-size:25px}.friendly-choice p{font-size:14px}.friendly-choice .button{width:100%;font-size:14px;min-height:49px}.fun-card-row{gap:14px 11px}.fun-card-row .card-title,.collection-grid .card-title{font-size:15px;min-height:51px}.card-rule,.fun-card-row .card-rule{font-size:12px;min-height:78px;line-height:1.45}.card-joke{font-size:11px;min-height:67px;line-height:1.45}.card-top{font-size:8px}.card-top .cost{min-width:25px;height:25px;font-size:14px}.card-bottom{font-size:8px;letter-spacing:.2px}.ownership{font-size:12px}.ownership button{min-height:44px;min-width:44px;font-size:21px}.filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.filters .search-label{grid-column:1/-1;width:100%;margin:0}.filters select{width:100%;max-width:100%;font-size:13px;min-height:46px}.filters input{font-size:16px;min-height:48px;width:100%}.results-line{font-size:11px;line-height:1.5;gap:5px;flex-wrap:wrap}.pagination .button{min-height:46px;font-size:13px}.world-tile{min-height:170px}.world-tile b{font-size:15px}.world-tile small{font-size:11px;line-height:1.35}.world-play{font-size:11px}.world-number{font-size:9px}.setup-layout{display:block}.setup-controls{padding:18px}.setup-controls select,.setup-controls input{font-size:16px;min-height:48px}.focus-option{min-height:65px}.focus-option b{font-size:10px}.run-top{margin-top:6px}.run-top h2{font-size:21px}.run-counters{font-size:13px;flex-wrap:wrap}.run-counters .button{min-height:43px;font-size:12px}.battle-coach{padding:13px;gap:8px;flex-wrap:wrap}.battle-coach>span{display:none}.battle-coach>div{flex-basis:100%}.battle-coach p{font-size:14px}.battle-coach small{font-size:12px}.battle-coach .button{min-height:42px}.encounter-card{grid-template-columns:68px 1fr;gap:12px;padding:14px;margin-top:12px}.enemy-info h2{font-size:20px}.enemy-info p{font-size:12px;line-height:1.5}.enemy-numbers{font-size:12px}.intention{font-size:12px}.intention>span{font-size:10px;max-width:76px}.intention b{font-size:16px}.intention small{font-size:11px}.combat-toolbar{position:sticky;top:0;z-index:25;box-shadow:0 5px 18px #09040f66;margin-inline:-4px;padding:10px;border-color:#9670af;display:flex;flex-wrap:wrap;gap:9px;background:#281b3af5;backdrop-filter:blur(12px)}.player-status{font-size:12px;gap:12px;flex:1;align-items:center;flex-wrap:wrap}.energy-count{width:42px;height:45px;font-size:23px}.energy-count small{font-size:8px}.combat-toolbar .actions{display:flex;flex-direction:row;align-items:center;gap:7px}.combat-toolbar .button{min-height:44px;font-size:13px;padding:10px 13px}.combat-toolbar .button.small{font-size:10px;padding:6px 7px;min-height:40px}.hand{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 11px;overflow:visible;margin:12px 0;padding:0;scroll-snap-type:none;align-items:start}.hand-slot{width:100%;min-width:0;flex-basis:auto}.hand-slot .card-title{font-size:15px;min-height:51px}.hand-slot .card-rule{font-size:12px;min-height:81px;line-height:1.45}.hand-slot .card-joke{font-size:10px;min-height:52px}.hand-slot .cost{width:25px;height:25px;font-size:14px}.hand-slot .play-button{width:100%;min-height:48px;font-size:13px;padding:10px 5px;margin-top:9px}.combo-preview{font-size:10px;line-height:1.3;min-height:29px;white-space:normal}.borrowed{font-size:10px}.battle-bottom{font-size:11px;line-height:1.5;margin-top:15px}.draft-grid{grid-template-columns:1fr;gap:20px;max-width:300px;margin:20px auto}.draft-grid .card-title{font-size:19px}.draft-grid .card-rule{font-size:14px;min-height:55px}.draft-grid .card-top>span:nth-child(2){display:block}.draft-grid .card-art{aspect-ratio:1.35}.draft-grid .button{font-size:14px;min-height:48px}.draft-grid p{font-size:12px}.route-option{min-height:240px}.route-option h2{font-size:22px}.route-option p{font-size:13px}.route-go{font-size:12px}.route-options{align-items:stretch}.event-stage>p{font-size:19px;line-height:1.6}.choice{min-height:70px;padding:18px}.choice b{font-size:16px}.choice span{font-size:13px;line-height:1.6}.event-choices{grid-template-columns:1fr}.inspect-layout{grid-template-columns:1fr;gap:20px}.inspection-card{width:230px;max-width:100%;margin:auto}.inspection-card .card-art{aspect-ratio:1.2}.inspection-card .card-title{font-size:20px;min-height:0;padding:9px 2px}.inspection-card .card-rule{font-size:14px;min-height:0}.inspection-card .card-joke{font-size:12px;min-height:0}.inspect-layout p{font-size:14px}.inspect-layout .flavor{font-size:17px}.inspect-layout .actions{gap:9px}.edition-buttons button,.craft-list .button{min-height:44px;font-size:12px;padding:9px 12px}.inspect-layout .actions .button{min-height:45px;font-size:13px}dialog{width:calc(100% - 16px);max-height:calc(100dvh - 20px);max-width:none;padding:45px 15px 20px;border-radius:18px;overscroll-behavior:contain}.reveal-grid{gap:18px 11px}.reveal-grid .card-title{font-size:15px;min-height:51px}.reveal-grid .card-rule{font-size:12px;min-height:82px}.reveal-grid .card-joke{font-size:11px;min-height:60px}.pack-reveal h2{font-size:28px}.pack-reveal>p{font-size:14px}.pack-reveal .actions{bottom:-20px;padding:14px 0 calc(14px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:10px}.pack-reveal .actions .button{font-size:13px;min-height:48px;padding:9px}.card-back{min-height:300px}.card-back small{font-size:11px}.pack-select img{height:140px}.pack-select h2{font-size:28px}.pack-select p{font-size:14px}.pack-select .button{min-height:50px;font-size:15px;width:100%}.pack-select label{font-size:13px}.pack-select select{font-size:16px;min-height:49px}.settings-grid .panel{padding:20px}.settings-grid p{font-size:14px}.settings-grid input,.settings-grid select{font-size:16px;min-height:48px}.settings-grid .button,.toggle{min-height:46px}.guide p{font-size:14px}.guide h2{font-size:28px}.notice{font-size:13px}.toast{bottom:calc(84px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}#toast{bottom:calc(84px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}.topbar,.left-rail,main,.app-layout{max-width:100vw}.page-heading h1{font-size:31px}.page-heading p{font-size:14px}}
@media(max-width:360px){.left-rail .brand,.left-rail .brand img{width:100px}.topbar{max-width:calc(100% - 110px)}.friendly-hero h1{font-size:32px!important}.hero-oddities{width:75px;height:75px}.nav-item span{font-size:9px}.hand-slot .card-title{font-size:13px}.hand-slot .card-rule{font-size:11px}}
@media(max-width:560px){#dialog-body{clear:both}.combat-toolbar .player-status>span{white-space:nowrap}}
/* Mobile chrome and the mascot's pocket hangout. */
.mobile-mascot,.mobile-location{display:none}.hero-mascot{padding:0;border:0;background:transparent;pointer-events:auto;cursor:pointer}.hero-mascot img{width:100%;height:100%;object-fit:contain}.hero-mascot:hover img{transform:rotate(-5deg)}.hero-mascot img{transition:transform .2s}.odd-footer{position:relative;flex-wrap:wrap;align-items:center;background:radial-gradient(ellipse at 10% 10%,#73329455,transparent 65%),#21142f;border-top:1px solid #a378ba;padding:24px;gap:16px}.odd-footer:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#c8e8ff,#bb94ff,#ffc5f5,#c7f5ff);opacity:.8}.footer-brand{display:flex;align-items:center;gap:14px;text-align:left}.footer-mascot{width:82px;height:88px;padding:0;background:none;border:0;flex-shrink:0}.footer-mascot img{width:100%;height:100%;object-fit:contain;transition:transform .2s}.footer-mascot:hover img{transform:rotate(-8deg) translateY(-4px)}.footer-brand b{font-size:22px;letter-spacing:-.6px;display:block}.footer-brand span,.footer-brand small{display:block;font-size:11px;line-height:1.8}.footer-brand small{font-size:9px;letter-spacing:1px;color:#d3b1ec;margin-top:5px}.footer-actions{display:flex;flex-wrap:wrap;gap:8px}.footer-actions .button{font-size:11px}.footer-signoff{width:100%;font-size:10px;color:#c4abd5}.mascot-hangout{text-align:center;max-width:500px;margin:auto;padding:8px}.mascot-hangout .eyebrow{font-size:10px}.mascot-stage{position:relative;width:220px;height:230px;max-width:80%;display:block;margin:15px auto 10px;padding:10px;background:radial-gradient(ellipse,#9c46ce55,transparent 68%);border:0}.mascot-stage img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 12px 16px #11061d)}.mascot-stage>span{position:absolute;left:0;top:25%;font-size:35px;color:#dbc9ff}.mascot-stage>span:last-child{left:auto;right:0;top:60%;color:#edb6ff}.mascot-hangout h2{font-size:29px}.mascot-bubble{position:relative;padding:20px;border:1px solid #cda4e9;border-radius:20px;background:#ebdef5;color:#402253;font-size:17px;min-height:92px;line-height:1.5}.mascot-bubble:before{content:"";position:absolute;top:-9px;left:calc(50% - 8px);width:16px;height:16px;background:#ebdef5;border-left:1px solid #cda4e9;border-top:1px solid #cda4e9;transform:rotate(45deg)}.mascot-hangout .actions{justify-content:center;gap:12px}.mascot-hangout>small{display:block;margin-top:18px;font-size:12px}.mascot-wiggle{animation:odd-greeting 4s ease-in-out 2}.mascot-stage.high-five{animation:odd-high-five .65s ease-out}.hidden-tab .mascot-wiggle,.hidden-tab .high-five{animation-play-state:paused}@keyframes odd-greeting{0%,65%,100%{transform:translateY(0) rotate(0)}75%{transform:translateY(-7px) rotate(-4deg)}85%{transform:translateY(-3px) rotate(4deg)}95%{transform:translateY(-2px) rotate(-2deg)}}@keyframes odd-high-five{0%,100%{transform:scale(1) rotate(0)}35%{transform:translateY(-14px) scale(1.08) rotate(-9deg)}65%{transform:translateY(-5px) rotate(6deg)}}
@media(max-width:560px){
.left-rail{height:calc(87px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 0 0;box-sizing:border-box;background:radial-gradient(ellipse at 20% 0,#8637b366,transparent 75%),#29183d;border-bottom:1px solid #9564b6;z-index:20}.left-rail:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#c8e8ff,#c48bff,#ffd1f7,#b6ecff)}.left-rail .brand{top:calc(5px + env(safe-area-inset-top));left:16px;width:174px;height:74px}.left-rail .brand img{width:174px;height:74px}.mobile-mascot{position:absolute;display:flex;right:17px;top:calc(7px + env(safe-area-inset-top));align-items:center;gap:6px;border:1px solid #b183d3;border-radius:18px;padding:5px 10px 5px 5px;height:64px;background:#442558;box-shadow:inset 0 1px #fff2}.mobile-mascot img{width:48px;height:50px;object-fit:contain;animation:odd-greeting 4s ease-in-out 2}.mobile-mascot span{font-size:11px;font-weight:800;color:#f6e4ff}.topbar{position:relative;top:auto;right:auto;width:100%;max-width:100%;height:auto;min-height:60px;margin:0;padding:9px 14px;gap:8px;background:#22152f;border-bottom:1px solid #53336c}.mobile-location{display:block;margin-right:auto;min-width:0;font-size:12px;font-weight:800;color:#e8d5f5;line-height:1.25}.topbar .wallet{padding:8px;min-height:42px;border-radius:12px;background:#170e24;border-color:#634278}.topbar .wallet strong{font-size:12px}.topbar .wallet .ink-drop{font-size:13px}.topbar .button{min-height:44px;border-radius:12px;white-space:nowrap;font-size:11px}.topbar>.button:last-child{display:none}.left-rail nav{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));padding:7px 4px;gap:1px;border:1px solid #aa7fce;border-radius:21px;background:linear-gradient(140deg,#3c2355f5,#251734fa);box-shadow:0 6px 24px #07030ccc,inset 0 1px #f7d5ff44}.nav-item{min-width:0;min-height:55px;border-radius:14px;padding:7px 0;gap:5px;flex:1}.nav-item i{font-size:22px;width:auto;line-height:1.1}.nav-item span{font-size:9px;letter-spacing:0}.nav-item.active{color:#fff;background:linear-gradient(150deg,#9a4cda,#653098);box-shadow:inset 0 1px #f1caffaa,0 3px 8px #10051d55}.nav-item.active i{color:#ecd5ff;filter:drop-shadow(0 0 5px #e2baff66)}.nav-item:active{transform:scale(.93)}.app-layout{padding-bottom:0}.odd-footer{margin:12px 12px calc(103px + env(safe-area-inset-bottom));padding:22px 16px 18px;border:1px solid #795594;border-radius:22px;gap:18px;text-align:left;align-items:stretch;overflow:hidden}.footer-brand{gap:11px}.footer-mascot{width:80px;height:88px}.footer-brand b{font-size:24px}.footer-brand span{font-size:12px}.footer-brand small{font-size:9px}.footer-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.footer-actions .button{min-height:46px;font-size:12px;padding:10px 6px}.footer-actions .button:first-child{grid-column:1/-1;color:#eed9ff;background:#48335f;border-color:#a383be}.footer-signoff{text-align:center;font-size:10px;line-height:1.6}.hero-oddities{z-index:3}.hero-mascot{opacity:1}.friendly-hero .hero-copy h1{max-width:calc(100% - 62px)}.mascot-hangout .actions{display:grid;grid-template-columns:1fr}.mascot-hangout .button{width:100%;min-height:48px}.mascot-hangout h2{font-size:27px}.mascot-stage{height:190px;width:190px}.mascot-bubble{font-size:16px}.mascot-hangout .eyebrow{font-size:9px}
}
@media(max-width:360px){.left-rail .brand,.left-rail .brand img{width:150px}.mobile-mascot{right:12px;padding-right:8px}.mobile-mascot img{width:40px}.topbar{gap:5px;padding-inline:10px}.mobile-location{font-size:11px}.topbar .wallet{padding:6px}.topbar .button{padding:7px}.footer-brand b{font-size:21px}.nav-item span{font-size:8px}}
[data-motion=reduced] .mascot-wiggle,[data-motion=reduced] .mobile-mascot img,[data-motion=reduced] .high-five{animation:none!important}[data-motion=reduced] .hero-mascot img,[data-motion=reduced] .footer-mascot img{transition:none;transform:none}
@media(prefers-reduced-motion:reduce){.mascot-wiggle,.mobile-mascot img,.high-five{animation:none!important}.hero-mascot img,.footer-mascot img,.nav-item{transition:none!important;transform:none!important}}

.hidden-tab .mobile-mascot img{animation-play-state:paused}
/* Keep pack geometry stable: concealed fronts reserve the exact revealed size. */
.pack-slot{display:grid;min-width:0;align-items:stretch;position:relative}.pack-slot>.pack-front,.pack-slot>.card-back{grid-area:1/1;min-width:0}.pack-slot .pack-front{visibility:hidden;pointer-events:none;display:flex;flex-direction:column}.pack-slot .pack-front>.card{width:100%;flex:1}.pack-slot.is-revealed .pack-front{visibility:visible;pointer-events:auto}.pack-slot .card-back{width:100%;height:100%;min-height:0;z-index:1}.pack-slot .card-back[hidden]{display:none}.pack-slot .pull-label{min-height:24px}.pack-slot .revealed{animation:none}.pack-return{margin-bottom:20px}dialog[open]{overflow-anchor:none}body:has(dialog[open]){overflow:hidden}
.celebration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.celebration-tile{display:flex;align-items:center;gap:14px;background:linear-gradient(130deg,#45265e,#291a3b);border:1px solid #86569c;border-radius:17px;padding:13px;min-width:0}.celebration-tile>img{width:85px;height:100px;object-fit:cover;border-radius:12px;border:1px solid #cfade5;flex:none}.celebration-tile h3{font-size:15px;line-height:1.25;margin:5px 0 12px}.celebration-tile small{font-size:9px;letter-spacing:1px;color:#e3c9ff}.celebration-tile .actions{gap:6px;flex-wrap:wrap}.celebration-tile .button{font-size:10px;padding:7px 10px;min-height:42px}.culture-showcase>p,.celebration-shelf>p{max-width:700px;font-size:13px}.culture-showcase .eyebrow,.celebration-shelf .eyebrow{font-size:10px;color:#cfaae7}@media(max-width:700px){.celebration-grid{grid-template-columns:1fr}.celebration-tile>img{width:95px;height:110px}.celebration-tile h3{font-size:17px}.celebration-tile .button{font-size:12px;min-height:44px}.celebration-tile{padding:14px}.celebration-tile>div{min-width:0}.celebration-shelf h2{font-size:23px}}
/* Pearl, lilac, pink and ice-blue foil accents from the approved logo. */
:root{--mint:#e4c8ff;--foil-ink:#332045;--foil-pearl:#f9f1ff;--foil-lilac:#dcc4ff;--foil-pink:#ffd7f5;--foil-ice:#c8e8ff}.button.primary{background:linear-gradient(115deg,#f8f0ff 0%,#ead4ff 28%,#ffd8f4 52%,#cdeaff 78%,#f8f0ff 100%);background-size:140% 100%;color:var(--foil-ink);border-color:#fcf5ff;box-shadow:0 4px 0 #513264,0 8px 20px #a16ac033,inset 0 1px #fff;transition:background-position .3s,transform .2s,box-shadow .2s}.button.primary:hover:not(:disabled){background:linear-gradient(115deg,#f8f0ff 0%,#ead4ff 28%,#ffd8f4 52%,#cdeaff 78%,#f8f0ff 100%);background-size:140% 100%;background-position:100% 0;box-shadow:0 4px 0 #513264,0 8px 24px #cd91ff55,inset 0 1px #fff}.friendly-hero em{color:#f2e5ff;background:linear-gradient(110deg,#fff2fc,#edc5ff,#cceaff,#ffdcf5);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.easy-start span{color:#e1c7ff}.left-rail nav .nav-item.active i{color:#f2d8ff;filter:drop-shadow(0 0 5px #d19cff66)}.footer-actions .button:first-child{color:#f0dfff;border-color:#bba0d7}.mascot-stage>span{color:#d7ccff}.celebration-tile small{color:#e5cfff}.hero-copy .light{border-color:#ba8dcc;color:#f6e7ff;background:#543369}.battle-coach .button{border-color:#b691cb}@media(prefers-reduced-motion:reduce){.button.primary{transition:none}}[data-motion=reduced] .button.primary{transition:none}
.set-directory{margin:14px 0 0;padding:0;border:1px solid #83589b;border-radius:16px;background:#332044;overflow:hidden}.set-directory>summary{padding:17px;font-size:14px;font-weight:800;color:#f2dfff;min-height:52px}.set-directory .celebration-grid{padding:0 12px 12px}.surreal-shelf>p,.anthology-shelf>p{font-size:13px;max-width:700px}.surreal-shelf .eyebrow,.anthology-shelf .eyebrow{font-size:10px;color:#dbb4f2}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline-color:#d6b8ff}
/* Only visible, engaged cards run a foil timeline. Sweeps use a moving layer. */
.foil-light{animation:foil-sweep 7s ease-in-out infinite;animation-play-state:paused;transform-origin:center}.is-foil.is-visible .foil-light{animation-play-state:running}.collection-grid .is-foil.is-visible .foil-light{animation-play-state:paused}.collection-grid .is-foil:is(:hover,:focus-visible).is-visible .foil-light{animation-play-state:running}.pack-front[inert] .foil-light{animation-play-state:paused!important}.hidden-tab .foil-light{animation-play-state:paused!important}@keyframes foil-sweep{0%,100%{transform:translate3d(-12%,0,0) scale(1.4);opacity:.4}50%{transform:translate3d(12%,0,0) scale(1.4);opacity:.62}}.is-foil:hover .foil-light{transform:none;animation:none}.card-art img{opacity:1}.card-art img:not([src]){opacity:0}.card-art:has(img:not([src])){background:linear-gradient(135deg,#48215d,#281736 55%,#735185)}.art-unavailable{opacity:0!important}.world-tile{isolation:isolate}.world-tile>.world-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.world-tile:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#110a25 4%,transparent 95%);pointer-events:none}.world-tile>.world-art:not([src]){background:#43225b}[data-motion=reduced] .foil-light{animation:none!important}@media(prefers-reduced-motion:reduce){.foil-light{animation:none!important}}
@media(max-width:560px){.pack-reveal .actions>.button:last-child{grid-column:1/-1}.pack-reveal .actions{border-top:1px solid #70498a;gap:9px}}
/* Evolution: compact game entrance, readable choices, finite feedback. */
.compact-hero{min-height:0!important;padding:28px!important;display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:20px;align-items:center;background:radial-gradient(ellipse at 85% 30%,#7d27a34a,transparent 60%),#25112f}.compact-hero h1{font-size:clamp(30px,4vw,48px);margin:8px 0 12px}.compact-hero .hero-mascot{position:static!important;transform:none!important;width:240px!important;max-height:270px}.compact-hero .hero-mascot img{width:100%;height:auto}.compact-hero .hero-copy{max-width:620px}.quick-access{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.quick-tile{display:grid;text-align:left;gap:6px;border:1px solid #d1a8fa40;border-radius:15px;padding:16px;background:#251b35;color:#faf3ff;min-height:110px}.quick-tile>span{color:#ecc6fb;font-size:24px}.quick-tile small{color:#c8b9da}.home-summary{display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:16px;border:1px solid #e5c8ff2b;border-radius:14px}.home-summary>div{display:grid;gap:4px}.home-summary span{font-size:12px;color:#c4b4d2}.home-invitation{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px;align-items:center;border-radius:18px;padding:22px;margin:20px 0;background:linear-gradient(115deg,#342342,#20213a)}.invitation-cards{display:flex;gap:8px;justify-content:center;pointer-events:auto}.invitation-cards .shelf-card{width:104px!important;font-size:10px}.home-note{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:13px;color:#cbbddd}.home-note>span{color:#f4c8ec}.home-note p{flex:1;min-width:200px}.experiment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 24px}.experiment-choice,.deck-pick,.museum-set{background:#241a31;border:1px solid #cba8e83a;color:#f7f0fc;border-radius:14px;padding:14px;text-align:left;display:grid;gap:8px}.experiment-choice small,.deck-pick small{color:#c9b8d8;line-height:1.5}.experiment-choice.selected,.deck-pick.selected{border-color:#f4bde9;box-shadow:inset 0 0 0 1px #f4bde9}.world-directory{margin:12px 0}.archive-tabs,.museum-themes,.mode-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.museum-room{padding:20px;border-radius:20px;background:linear-gradient(135deg,#30243d,#201a2f);border:1px solid #e0d1fc33}.museum-room.theme-aurora{background:linear-gradient(125deg,#3e2948,#233b48,#45315b)}.museum-room.theme-midnight{background:linear-gradient(130deg,#19162b,#312044)}.museum-room.theme-starlight{background:radial-gradient(ellipse at top,#4a3b67,#1e1b2a)}.museum-sets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.museum-set progress{width:100%;accent-color:#d7b5ff}.completed-set{box-shadow:inset 0 0 0 1px #cce9ff,0 0 18px #d7b5ff20}.journal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.journal-note{display:flex;gap:12px;background:#251b34;padding:14px;border-radius:12px;border:1px solid #dcc4f72a}.journal-note h3{margin:5px 0}.journal-note>span{color:#efc6f3}.journal-note small{color:#c3afd2}.deck-picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.set-directory-list{display:grid;gap:10px}.set-directory-list article{display:flex;align-items:center;gap:8px;border:1px solid #ddd1f32a;padding:12px;border-radius:12px}.set-directory-list article>div{flex:1}.set-directory-list p{font-size:12px;margin:4px 0}.rare-discovery{animation:rare-emphasis .8s ease-out 1}.combo-flash{animation:combo-emphasis .7s ease-out 1}@keyframes rare-emphasis{0%{filter:brightness(1)}40%{filter:brightness(1.3)}100%{filter:brightness(1)}}@keyframes combo-emphasis{40%{box-shadow:0 0 24px #f0c7ff66}100%{box-shadow:none}}
@media(max-width:850px){.quick-access{grid-template-columns:repeat(2,minmax(0,1fr))}.experiment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-hero{grid-template-columns:minmax(0,1fr) 180px}.compact-hero .hero-mascot{width:180px!important}.museum-sets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.compact-hero{grid-template-columns:minmax(0,1fr) 105px;padding:18px!important;gap:4px}.compact-hero .hero-mascot{width:105px!important}.compact-hero h1{font-size:28px}.compact-hero .hero-copy p{font-size:13px;line-height:1.5}.compact-hero .hero-copy .button{min-height:46px}.home-invitation{grid-template-columns:1fr;padding:18px}.invitation-cards{display:none}.home-summary{gap:12px}.quick-tile{min-height:106px;padding:12px}.quick-tile b{font-size:14px}.quick-tile small{font-size:11px}.experiment-grid{grid-template-columns:1fr}.experiment-choice{min-height:70px}.journal-list{grid-template-columns:1fr}.museum-room{padding:12px}.museum-sets{grid-template-columns:1fr 1fr}.museum-set{padding:10px}.museum-set small{font-size:11px}.archive-tabs .button,.mode-buttons .button{min-height:44px}.deck-picks{grid-template-columns:1fr}.set-directory-list article{flex-wrap:wrap}.set-directory-list article>div{flex-basis:100%}.segmented{flex-wrap:wrap}.combat-toolbar .actions{flex-wrap:wrap}.deck-summary{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.button:disabled{opacity:.65}}
@media(prefers-reduced-motion:reduce){.rare-discovery,.combo-flash{animation:none}}html[data-motion=reduced] .rare-discovery,html[data-motion=reduced] .combo-flash{animation:none}
.at-home .right-rail{display:none}.at-home .app-layout{grid-template-columns:minmax(0,1fr)}.family-rooms{margin:18px 0}.family-rooms .family-grid{margin-top:12px}html.hidden-tab .mascot-wiggle{animation-play-state:paused!important}
/* 0.7.1: let sentences use the available width before asking them to wrap. */
.compact-hero .hero-copy{width:100%;min-width:0}.compact-hero h1{max-width:18ch;line-height:1.1;text-wrap:pretty}.compact-hero .hero-copy p{max-width:58ch;text-wrap:pretty}.hero-mascot{border:0;background:transparent;color:#f5e9ff;padding:0}.compact-hero .hero-mascot{max-height:none}.mascot-invite{display:block;font-size:13px;line-height:1.5;margin-top:2px}.mascot-invite b{display:block;color:#eed2ff;font-size:12px}.mobile-mascot:hover,.mobile-mascot:focus-visible{background:#5d3478;border-color:#e8cbff;box-shadow:0 0 20px #dbafff40}.mobile-mascot span{min-width:0;white-space:normal;line-height:1.35;overflow-wrap:break-word}.hero-mascot:hover .mascot-invite b{color:#fff}.footer-brand b{max-width:24ch;font-size:20px;line-height:1.25}.footer-brand>div{min-width:0}.page-heading p,.guide p,.notice,.home-invitation p,.setting-row p,.footer-brand span{max-width:none;text-wrap:pretty}h1,h2,h3,.quick-tile b,.experiment-choice b{word-break:normal;overflow-wrap:normal;text-wrap:pretty}.button{white-space:normal;text-wrap:pretty}.card-title,.card-rule{overflow-wrap:anywhere}
@media(max-width:560px){
 .compact-hero{grid-template-columns:minmax(0,1fr);padding:22px 18px!important;gap:18px}.compact-hero .hero-copy{width:100%;max-width:none}.compact-hero h1{max-width:none;font-size:clamp(29px,8vw,39px);letter-spacing:-1px}.compact-hero .hero-copy p{max-width:none;font-size:14px;line-height:1.65}.compact-hero .hero-copy .eyebrow{font-size:9px;letter-spacing:1px}.compact-hero .hero-mascot{width:100%!important;display:flex;align-items:center;justify-content:center;gap:10px;text-align:left}.compact-hero .hero-mascot img{width:132px;height:132px;object-fit:contain}.mascot-invite{font-size:14px;max-width:16ch}.mascot-invite b{font-size:13px;margin-top:4px}.hero-reassurance{font-size:12px;line-height:1.6;margin-top:16px}.left-rail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,145px);align-items:center;gap:8px;padding:env(safe-area-inset-top) 12px 0;height:auto;min-height:calc(87px + env(safe-area-inset-top))}.left-rail .brand{position:static;width:100%;min-width:0;height:auto}.left-rail .brand img{width:100%;max-width:174px;height:auto;max-height:74px;object-fit:contain}.mobile-mascot{position:static;width:100%;min-width:0;height:auto;min-height:64px;right:auto;padding:3px 10px 3px 2px;gap:3px;max-width:145px;border-radius:16px;background:linear-gradient(120deg,#5e337b,#362348);border-color:#d0a3ec}.mobile-mascot img{flex:0 0 48px;width:48px;height:54px}.mobile-mascot span{font-size:11px}.home-note{display:block}.home-note p{min-width:0;line-height:1.6}.home-note .button{display:inline-flex;min-height:44px;padding-inline:0;margin-right:12px}.home-summary>div{flex:1 1 130px}.home-summary .button{flex:1 1 130px}.quick-tile small{font-size:12px;line-height:1.45}.page-heading h1{font-size:30px;line-height:1.15}.page-heading p{font-size:14px;line-height:1.6}.footer-brand{align-items:center;width:100%}.footer-mascot{width:75px;height:84px}.footer-brand b{font-size:19px;max-width:none}.footer-brand span{font-size:12px;line-height:1.5;margin-top:6px}.footer-signoff{font-size:11px;line-height:1.5}.guide p,.setting-row p,.home-invitation p{line-height:1.65}.archive-tabs .button{flex:1 1 auto}.mascot-hangout .actions .button{flex:1 1 140px}
}
@media(max-width:360px){.compact-hero{padding:20px 15px!important}.compact-hero .hero-mascot img{width:112px;height:112px}.left-rail{grid-template-columns:minmax(0,1fr) minmax(0,134px);gap:8px}.mobile-mascot{max-width:none}.mobile-mascot img{flex-basis:40px;width:40px;height:50px}.footer-brand{gap:10px}.footer-brand b{font-size:18px}}
/* Verified supporter presentation never changes rarity, energy or card mechanics. */
.rail-support{display:block;margin-top:20px;padding:12px 8px;color:#e3c7fa;font-size:12px;text-decoration:none}.supporter-badge{font-size:10px;border:1px solid #cfa9ec;padding:6px 8px;border-radius:8px;color:#f2defb;background:#452857}#app[data-collection-theme=pearl] #main{background:radial-gradient(at top right,#ba9cc72b,transparent 60%),linear-gradient(140deg,#312039,#1c182c)}#app[data-collection-theme=prism] #main{background:linear-gradient(135deg,#6e42732b,#355d782b,#7658782b),#211b31}#app[data-collection-frame=prism] .collection-slot>.card{outline:2px solid #e8c4f2;outline-offset:3px;box-shadow:0 4px 0 #08050f,0 0 18px #bbdfff33}.supporter-badge{white-space:nowrap}@media(max-width:850px){.rail-support{display:none}}@media(max-width:560px){.topbar{flex-wrap:wrap}.supporter-badge{margin-left:auto}.footer-actions{grid-template-columns:1fr 1fr}.footer-actions>.button:first-child{grid-column:1/-1}}
#app[data-collection-theme=cosmos] #main{background:radial-gradient(ellipse at 15% 15%,#b15faa24,transparent 45%),radial-gradient(ellipse at 80% 0,#7ec9f32b,transparent 55%),linear-gradient(135deg,#302042,#16283a)}#app[data-collection-frame=cosmic] .collection-slot>.card{outline:2px solid #c8eaff;outline-offset:3px;box-shadow:0 4px 0 #08050f,0 0 0 5px #f4c3ed55,0 0 22px #adccff44}.supporter-badge.tier-friend{border-color:#af96bd}.supporter-badge.tier-patron{background:linear-gradient(130deg,#59356d,#34425d);border-color:#d7b7f5}.supporter-badge.tier-architect{background:linear-gradient(130deg,#653d67,#3b365b);border-color:#efc1e6;box-shadow:inset 0 0 0 1px #f3dcff33}.supporter-badge.tier-bender{background:linear-gradient(125deg,#4a3663,#365a6b,#593c61);border-color:#e5efff;box-shadow:0 0 12px #c0d1ff33}
/* Living Collection · original foil packaging and quiet album surfaces */
.pack-object{position:relative;display:block;width:min(280px,75vw);aspect-ratio:3/4;margin:24px auto 30px;padding:0;overflow:hidden;border:2px solid #f8e9ff;border-radius:8px;background:#241039;box-shadow:0 14px 40px #10051c,0 0 24px #b787ec55;transform:rotate(-3deg);cursor:pointer;touch-action:pan-y;transition:transform .2s}.pack-object:hover,.pack-object:focus-visible{transform:rotate(0) translateY(-4px)}.pack-surface{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.pack-logo{position:absolute;left:8%;top:12%;width:84%;filter:drop-shadow(0 3px 3px #19082d)}.pack-caption{position:absolute;bottom:8%;left:5%;width:90%;padding:13px 6px;border:1px solid #ecd6ff77;background:#19082de6;border-radius:8px;color:#fff;text-align:center;display:grid;gap:5px}.pack-caption b{font-size:25px}.pack-caption small,.pack-caption>span{font-size:10px;letter-spacing:1px}.pack-crimp{position:absolute;z-index:2;left:0;width:100%;height:14px;background:repeating-linear-gradient(90deg,#eedfff 0 2px,#8258bd 2px 5px,#c6eaf6 5px 7px)}.pack-crimp.top{top:0}.pack-crimp.bottom{bottom:0}.pack-skins{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pack-skins button{display:flex;align-items:center;gap:6px;padding:6px;background:#251333;border:1px solid #ac80cb55;border-radius:9px;color:#f2e7ff;font:inherit;font-size:12px;cursor:pointer}.pack-skins button[aria-pressed=true]{border-color:#e7b3fb;background:#483054}.pack-skins img{width:36px;height:36px;border-radius:6px;object-fit:cover}.pack-select>img{display:none}.pack-emergence .pack-slot{animation:pack-emerge .45s ease-out both}.pack-emergence .pack-slot:nth-child(2){animation-delay:.04s}.pack-emergence .pack-slot:nth-child(3){animation-delay:.08s}.pack-summary{padding:18px;border:1px solid #dab6f3;background:linear-gradient(120deg,#35244f,#24374b);border-radius:13px;margin:18px 0}.pack-summary[hidden]{display:none}.pack-summary h3{margin:6px 0}.pack-reveal .actions{flex-wrap:wrap}.pull-label{white-space:normal;text-align:center}.album-controls{padding:18px;background:linear-gradient(135deg,#362344,#222e44);border:1px solid #af8acb55;border-radius:16px;margin-bottom:20px}.album-toolbar,.album-themes{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}.album-themes .button{text-transform:capitalize}.album-toolbar button[aria-pressed=true],.album-themes button[aria-pressed=true]{border-color:#ecbbff;background:#67417d}.living-album.layout-album{padding:20px;border:1px solid #c4a7db55;border-radius:16px;background:linear-gradient(90deg,#372844,#211a2e 49.5%,#473655 50%,#2b233c 50.5%);box-shadow:inset 0 0 40px #08041355}.living-album.theme-aurora{background:linear-gradient(125deg,#2c3852,#544265,#3a5262)}.living-album.theme-midnight{background:linear-gradient(130deg,#191128,#353153)}.living-album.theme-starlight{background:radial-gradient(ellipse at top,#524263,#242039)}.layout-grid .card{box-shadow:none}.featured-album>div{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0}.featured-album .card{width:145px}.missing-card{width:100%;aspect-ratio:2/3;border:2px dashed #b59ec366;border-radius:14px;background:linear-gradient(140deg,#392947,#242137);color:#dac6ec;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;cursor:pointer}.missing-card>span{font-size:70px;color:#bd9cd5}.missing-card b{font-size:13px}.missing-card small{font-size:11px}.album-set-goals{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.album-set-goals button,.album-goal{display:grid;gap:7px;text-align:left;padding:12px;background:#18122066;border:1px solid #bb96d344;color:#efddfa;border-radius:10px}.album-goal{margin:12px 0}.album-goal progress,.album-set-goals progress{width:100%;accent-color:#caa5ef}.discovery-feed{border-top:1px solid #a883c744;margin:20px 0;padding:10px 0}.discovery-feed>div{display:flex;align-items:center;gap:10px;margin:8px 0}.discovery-feed button{font:inherit;color:#f0ddff;background:none;border:0;text-align:left;cursor:pointer}.discovery-feed small{color:#c4b3d6;margin-left:8px}.discovery-feed p{margin:0}.art-view{text-align:center}.art-view img{width:min(640px,100%);height:auto;display:block;object-fit:contain;margin:20px auto;border-radius:14px}.journey-scene{position:relative;isolation:isolate;overflow:hidden;border-radius:18px;padding:20px;background:#1e172b}.journey-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;opacity:.38}.journey-scene:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#171021cc,#171725e8)}.experiment-choice{position:relative;overflow:hidden;isolation:isolate;min-height:170px}.experiment-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;opacity:.35}.experiment-choice:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#160d2477,#1d132ce8)}.experiment-difficulty{display:block;font-size:10px;margin-top:10px;color:#d0b7e4}.world-art{object-fit:cover}.route-map{overflow:auto;align-items:stretch;gap:12px;padding-bottom:14px}.route-step{min-width:58px;position:relative}.route-step:after{content:'';position:absolute;width:14px;height:1px;right:-14px;top:20px;background:#b395cd77}.route-step:last-child:after{display:none}.route-branches{display:flex;gap:3px;justify-content:center;margin-top:7px}.route-branches i{font-style:normal;padding:4px;border:1px solid #aa91c155;border-radius:6px}.route-step.current .route-branches i{border-color:#efd5ff;background:#8b5eac55}.checkpoint-reward{display:flex;align-items:center;gap:16px;padding:16px;background:linear-gradient(125deg,#4a2e5d,#283d54);border:1px solid #d5b6f5;border-radius:14px;margin:18px auto;max-width:580px;text-align:left}.checkpoint-reward img{width:72px;height:72px;object-fit:cover;border-radius:8px}.checkpoint-reward p{margin:6px 0}.boss-entrance{display:block;color:#ffd9ef;letter-spacing:2px;font-size:12px;animation:boss-arrive .7s ease-out}.combat-feedback{min-height:22px;color:#e5c5ff;font-weight:700;pointer-events:none}.feedback-pop{animation:feedback-pop .6s ease-out}.pack-select label{margin-top:16px}html[data-speed=fast] .pack-emergence .pack-slot{animation-duration:.12s;animation-delay:0s}html[data-speed=instant] .pack-emergence .pack-slot{animation:none}html[data-motion=reduced] .pack-object{transform:none;transition:none}html[data-motion=reduced] .pack-emergence .pack-slot,html[data-motion=reduced] .boss-entrance,html[data-motion=reduced] .feedback-pop{animation:none}@keyframes pack-emerge{from{opacity:.3;transform:translateY(18px) scale(.95)}to{opacity:1;transform:none}}@keyframes boss-arrive{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}@keyframes feedback-pop{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:none}}@media(max-width:600px){.living-album.layout-album{padding:10px;gap:10px}.album-controls{padding:12px}.album-set-goals{grid-template-columns:1fr}.album-toolbar>b{width:100%}.journey-scene{padding:12px}.pack-skins{gap:5px}.pack-skins button{flex-direction:column;font-size:11px}.checkpoint-reward{gap:10px;padding:12px}.discovery-feed small{display:block;margin:3px 0}.featured-album .card{width:110px}.pack-reveal .actions .button{flex:1 1 140px}}@media(prefers-reduced-motion:reduce){.pack-object{transform:none;transition:none}.pack-emergence .pack-slot,.boss-entrance,.feedback-pop{animation:none}}
.opened-wrapper{height:44px;position:relative;overflow:hidden;max-width:300px;margin:12px auto;clip-path:polygon(0 0,100% 0,100% 75%,90% 95%,80% 75%,70% 95%,60% 75%,50% 95%,40% 75%,30% 95%,20% 75%,10% 95%,0 75%);animation:foil-tear .4s ease-out}.opened-wrapper img{width:100%;height:100%;object-fit:cover;filter:brightness(.7)}.opened-wrapper span{position:absolute;inset:8px;text-align:center;color:#fff}@keyframes foil-tear{from{transform:translateY(-16px) rotate(-8deg);opacity:.2}to{transform:none;opacity:1}}html[data-motion=reduced] .opened-wrapper,html[data-speed=instant] .opened-wrapper{animation:none}html[data-speed=fast] .opened-wrapper{animation-duration:.12s}@media(prefers-reduced-motion:reduce){.opened-wrapper{animation:none}}
/* The World Gets Weirder: illustrated spaces, bounded movement and earned displays. */
.world-space{position:relative;isolation:isolate;overflow:hidden}.world-heading{padding:20px 20px 44px;border:1px solid #9d78bb55;border-radius:18px;background:#21152f;min-height:148px;margin-bottom:20px}.world-space>.room-art,.opening-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-3;opacity:.7;transform:translate(var(--world-x,0px),var(--world-y,0px)) scale(1.015);transition:transform .2s ease-out;pointer-events:none}.world-heading:before,.opening-space:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#171020f5 0%,#1c1428eb 42%,#24193466 100%);pointer-events:none}.world-heading .hero-copy,.world-heading h1,.world-heading p,.world-heading .actions{position:relative;z-index:1}.desk-hero.world-heading{padding:22px 24px 44px;min-height:0}.world-heading .hero-mascot{z-index:2}.world-curiosity{position:absolute;bottom:7px;right:12px;z-index:3;border:1px solid #c8a4df88;border-radius:8px;background:#241631ee;color:#f5dcff;padding:7px 10px;font-size:11px;min-height:30px;cursor:pointer}.world-caption{position:absolute;bottom:42px;right:10px;left:10px;z-index:5;background:#22162df5;border:1px solid #dbb9f2;padding:10px;border-radius:9px;color:#f0defa;line-height:1.5;box-shadow:0 4px 16px #10071ecc}.world-caption[hidden]{display:none}.world-light,.world-paper{position:absolute;pointer-events:none;z-index:-1;opacity:0}.world-light{right:8%;top:4%;width:90px;height:190px;background:linear-gradient(100deg,transparent,#e1c6ff25,transparent);transform:rotate(12deg)}.world-paper{right:16%;top:28%;width:9px;height:13px;background:#c8b4de55;border-radius:1px}.world-visible.world-awake>.world-light{animation:world-light 3s ease-out 1}.world-visible.world-awake>.world-paper{animation:world-paper 3s ease-out 1}.world-souvenirs{display:flex;align-items:center;flex-wrap:wrap;gap:7px;position:relative;margin-top:13px;margin-right:90px}.world-souvenirs>span{display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #c8a4db55;border-radius:7px;background:#21152ce0;color:#dfc5ec}.world-souvenirs i{font-style:normal;font-size:16px;color:#e7c4fa}.world-souvenirs small{font-size:9px}.opening-space{padding:18px;border:1px solid #ac8ac855;border-radius:16px;background:#1d142b}.opening-space:before{background:linear-gradient(#1a1127dc,#1c1425ee)}.opening-space>.opening-art{opacity:.8;object-position:center top}.opening-controls,.collection-decor{padding:10px 0;margin:10px 0;border-top:1px solid #b897ce55;border-bottom:1px solid #b897ce55}.opening-controls>div,.collection-decor>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.opening-controls button[aria-pressed=true],.collection-decor button[aria-pressed=true]{border-color:#e0c0f5;background:#5b3f74}.collection-decor summary,.opening-controls summary{cursor:pointer;font-size:13px;font-weight:700}.wrapper-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.wrapper-gallery-item{padding:12px;background:#221830;border:1px solid #9d7bba66;border-radius:12px;min-width:0;display:flex;flex-direction:column;gap:6px}.wrapper-gallery-item img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:9px}.wrapper-gallery-item h3{font-size:16px;margin:3px 0;line-height:1.2}.wrapper-gallery-item>small{font-size:10px;color:#cbb4dd}.wrapper-gallery-item p{font-size:11px;line-height:1.5;margin:3px 0}.wrapper-gallery-item .button{margin-top:auto;min-height:42px}.wrapper-gallery-item.locked{border-style:dashed}.wrapper-gallery-item.locked img{filter:saturate(.7)}.wrapper-gallery-item progress{margin:5px 0}.pack-object.shape-envelope{aspect-ratio:4/3;transform:rotate(-2deg);border-radius:3px}.shape-envelope .pack-logo{top:9%;width:60%;left:20%}.shape-envelope .pack-caption{padding:5px;bottom:4%}.shape-envelope .pack-caption b{font-size:18px}.pack-object.shape-box{aspect-ratio:4/5;box-shadow:8px 8px 0 #4c336b,10px 10px 0 #d9b2ef,0 15px 40px #10051c}.pack-object.shape-capsule{border-radius:48px 48px 26px 26px;aspect-ratio:3/4}.pack-object.shape-retro{aspect-ratio:3/4;border:6px double #efc7fb;transform:rotate(2deg)}.shape-retro .pack-caption{font-family:monospace}.pack-object.shape-tag{clip-path:polygon(8% 0,92% 0,100% 8%,100% 92%,92% 100%,8% 100%,0 92%,0 8%);aspect-ratio:4/5}.context-mascot{width:100px;height:100px;object-fit:contain;float:right;margin:0 0 8px 10px;pointer-events:none}.summary-mascot{float:right;width:76px;height:76px;object-fit:contain;pointer-events:none}.display-pedestal>div>.card,.shelf.display-pedestal .card{border-bottom:7px solid #decaf2;box-shadow:0 14px 0 -5px #6f4e94,0 25px 18px -10px #080512}.display-cabinet>div,.shelf.display-cabinet>div{padding:15px;border:2px solid #c3b7db99;border-radius:10px;background:linear-gradient(120deg,#c8e4fa15,transparent 30%,#f3d6ff16);box-shadow:inset 0 0 22px #cfc2ec18}.reward-container{display:grid;place-items:center;width:54px;height:64px;flex-shrink:0;background:linear-gradient(130deg,#c3addb,#594072);border:2px solid #e1c3f2;box-shadow:4px 3px 0 #382442;color:#261238;font-size:25px;border-radius:8px}.reward-container.sparkworks{border-radius:24px 24px 8px 8px}.reward-container.backchannel{border:5px double #c9b0ed;background:linear-gradient(#a3b9dc,#745092)}.reward-container.observatory{border-radius:50%;background:radial-gradient(#e4c5fc,#483360)}.art-unavailable{background:#30223d}.world-space .art-unavailable{opacity:0}.world-souvenirs+.world-caption{max-width:100%}html.hidden-tab .world-space *{animation-play-state:paused!important}html[data-motion=reduced] .world-light,html[data-motion=reduced] .world-paper,html[data-speed=instant] .world-light,html[data-speed=instant] .world-paper{animation:none!important;opacity:0!important}html[data-motion=reduced] .room-art,html[data-motion=reduced] .opening-art{transform:none;transition:none}@keyframes world-light{0%{opacity:0;transform:translateX(-12px) rotate(12deg)}30%{opacity:.65}100%{opacity:0;transform:translateX(15px) rotate(12deg)}}@keyframes world-paper{0%{opacity:0;transform:translateY(-6px) rotate(-8deg)}25%{opacity:.5}100%{opacity:0;transform:translateY(18px) rotate(12deg)}}@media(max-width:600px){.world-heading{padding:16px 14px 48px;min-height:130px}.desk-hero.world-heading{padding:19px 16px 48px}.world-heading:before{background:linear-gradient(90deg,#171020f2,#1c1428c9)}.world-curiosity{min-height:40px;bottom:4px;font-size:11px}.world-space>.room-art{object-position:65% center}.world-caption{bottom:48px;font-size:12px}.world-souvenirs{margin-right:0;gap:5px}.world-souvenirs small{display:none}.world-souvenirs>span{padding:5px 8px}.opening-space{padding:10px}.wrapper-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wrapper-gallery-item{padding:8px}.wrapper-gallery-item h3{font-size:14px}.wrapper-gallery-item .button{font-size:12px;padding:8px 4px;min-height:44px}.context-mascot{width:80px;height:80px}.opening-controls .button,.collection-decor .button{min-height:44px;font-size:12px}.reward-container{width:35px;height:48px;font-size:20px}.checkpoint-reward img{width:54px;height:54px}.pack-select .pack-skins img{height:36px}}@media(prefers-reduced-motion:reduce){.world-light,.world-paper{animation:none!important;opacity:0!important}.room-art,.opening-art{transform:none!important;transition:none!important}}
/* Keep responsive image rules scoped; legacy pack selectors must not crop the room or wrapper. */
.opening-space>.opening-art{width:100%;height:100%}.pack-object>.pack-surface{width:100%;height:100%}.pack-object>.pack-logo{height:auto;object-fit:contain}.support-hero .world-souvenirs{grid-column:1/-1}.summary-mascot{animation:mascot-delight .5s ease-out 1}.discovery-moment{display:flex;align-items:center;gap:12px;border:1px solid #d2b3ed;background:linear-gradient(120deg,#47305b,#28334d);border-radius:12px;padding:12px;margin:12px 0}.discovery-moment img{width:64px;height:64px;object-fit:contain}.discovery-moment b{font-size:14px}.discovery-moment small{display:block;color:#d1bddf;margin-top:5px}.discovery-moment{animation:world-discovery .35s ease-out 1}@keyframes mascot-delight{from{transform:rotate(-8deg) scale(.9)}to{transform:none}}@keyframes world-discovery{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}html[data-motion=reduced] .summary-mascot,html[data-motion=reduced] .discovery-moment,html[data-speed=instant] .summary-mascot,html[data-speed=instant] .discovery-moment{animation:none}@media(prefers-reduced-motion:reduce){.summary-mascot,.discovery-moment{animation:none}}
.empty-mascot{display:block;width:80px;height:80px;object-fit:contain;margin:5px auto}.illustrated-notice{display:flex;align-items:center;gap:12px}.illustrated-notice img{object-fit:contain;flex-shrink:0}.catalog-loading{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:100;display:flex;align-items:center;gap:12px;padding:10px 16px;border:1px solid #d6b3ee;border-radius:14px;background:#261831f5;color:#f1defb;box-shadow:0 6px 28px #08050ccc;pointer-events:none}.catalog-loading img{width:64px;height:64px;object-fit:contain}@media(max-width:600px){.catalog-loading{bottom:100px;width:calc(100vw - 30px);max-width:340px;font-size:12px}}
.reward-container{overflow:hidden}.reward-container>img{width:100%;height:100%;object-fit:cover;border-radius:0}.world-space:has(.world-souvenirs) .world-curiosity{right:12px}
/* 0.8.4.1 — portraits retain their ratio at every viewport. */
.enemy-portrait{aspect-ratio:1;align-self:center;overflow:hidden}
.enemy-portrait img,.enemy-portrait svg{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;aspect-ratio:1}
@media(min-width:1100px){
 #app[data-view="expedition"] .app-layout{grid-template-columns:minmax(0,1fr)}
 #app[data-view="expedition"] .right-rail{display:none}
 #app[data-view="expedition"] #main{max-width:1440px;margin-inline:auto;padding:12px 24px 20px;min-height:0}
 #app[data-view="expedition"] .context-hint{padding:8px 12px;margin-bottom:8px;gap:10px}
 #app[data-view="expedition"] .context-hint p{font-size:12px}
 #app[data-view="expedition"] .run-top{padding:4px 0 9px;margin-top:0;gap:12px}
 #app[data-view="expedition"] .run-top h2{font-size:19px}
 #app[data-view="expedition"] .run-top .eyebrow{margin-bottom:3px}
 .battle-stage{padding:10px 14px 12px}
 .battle-stage .battle-coach{padding:9px 12px;margin:0 0 10px;gap:10px}
 .battle-stage .battle-coach p{font-size:12px;line-height:1.4;margin:3px 0}
 .battle-stage .battle-coach small{font-size:10px;line-height:1.35}
 .battle-stage .encounter-card{display:grid;grid-template-columns:96px minmax(0,1fr) 190px;align-items:center;gap:16px;margin:8px 0 10px;padding:10px 14px;min-height:0}
 .battle-stage .enemy-portrait{width:96px;height:96px}
 .battle-stage .enemy-info{min-width:0}
 .battle-stage .enemy-info h2{font-size:22px;line-height:1.2;margin:5px 0 8px}
 .battle-stage .enemy-info p{margin:6px 0 0;font-size:12px;line-height:1.4}
 .battle-stage .health-track{max-width:500px;height:8px}
 .battle-stage .intention{min-width:0;max-width:none;padding-left:16px}
 .battle-stage .intention b{margin:5px 0;font-size:18px}
 .battle-stage .combat-toolbar{padding:7px 10px;gap:12px;margin-bottom:8px}
 .battle-stage .player-status{gap:12px;font-size:12px}
 .battle-stage .energy-count{padding:4px 9px;min-width:46px;font-size:22px}
 .battle-stage .energy-count small{font-size:9px}
 .battle-stage .hand{gap:10px;margin:0;padding:0 3px 8px;justify-content:safe center}
 .battle-stage .hand-slot{flex:0 0 clamp(132px,calc((100dvh - 380px)*.36),170px);width:clamp(132px,calc((100dvh - 380px)*.36),170px)}
 .battle-stage .hand-slot .card{padding:6px;border-radius:10px}
 .battle-stage .hand-slot .card-art{aspect-ratio:1;height:auto}
 .battle-stage .hand-slot .card-title{font-size:12px;line-height:1.25;min-height:29px;margin:5px 0}
 .battle-stage .hand-slot .card-rule{font-size:11px;line-height:1.35;min-height:58px;padding:5px}
 .battle-stage .hand-slot .card-joke{display:none}
 .battle-stage .hand-slot .card-top,.battle-stage .hand-slot .card-bottom{font-size:8px;padding:3px 0}
 .battle-stage .hand-slot .cost{width:21px;height:21px;font-size:12px}
 .battle-stage .hand-slot .combo-preview{font-size:10px;min-height:18px;line-height:1.4}
 .battle-stage .hand-slot .play-button{min-height:32px;margin-top:3px;font-size:11px;padding:5px}
 .battle-stage .battle-bottom{font-size:10px;line-height:1.4;margin-top:3px;gap:10px}
 .battle-stage .combat-log{margin-top:8px;font-size:11px}
 #app[data-view="expedition"] .route-scene{padding:14px 20px}
 #app[data-view="expedition"] .route-map{margin:0 0 14px}
 #app[data-view="expedition"] .center-heading{margin:12px 0}
 #app[data-view="expedition"] .center-heading h1{font-size:28px;margin:7px 0}
 #app[data-view="expedition"] .route-options{margin:18px 0;gap:16px}
 #app[data-view="expedition"] .route-option{min-height:175px;padding:18px;width:300px}
 #app[data-view="expedition"] .route-option .eyebrow{margin-top:20px}
 #app[data-view="expedition"] .route-option h2{font-size:21px;margin:8px 0}
 #app[data-view="expedition"] .boss-preview{padding:10px;margin-top:14px}
 .expedition-setup{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px 20px;align-items:start}
 .expedition-setup>.page-heading{grid-column:1/-1;padding:12px 18px 30px;min-height:0;margin:0}
 .expedition-setup .page-heading h1{font-size:28px;margin:5px 0}
 .expedition-setup .page-heading p{font-size:12px;margin:5px 0}
 .expedition-setup .page-heading .actions{margin-top:8px}
 .expedition-setup .experiment-section{grid-column:1;grid-row:2;margin:0}
 .expedition-setup .experiment-section h2{font-size:18px;margin:0 0 8px}
 .expedition-setup .experiment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
 .expedition-setup .experiment-choice{min-height:106px;padding:10px;gap:5px}
 .expedition-setup .experiment-choice b{font-size:13px}
 .expedition-setup .experiment-choice small{font-size:11px;line-height:1.4}
 .expedition-setup>.world-directory{grid-column:1;margin:0}
 .expedition-setup>.notice{grid-column:1;padding:9px 12px;margin:0;font-size:12px}
 .expedition-setup>.setup-layout{grid-column:2;grid-row:2/5;display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:12px;margin:0}
 .expedition-setup .setup-controls{padding:14px}
 .expedition-setup .setup-controls h3{font-size:16px;margin:0 0 4px}
 .expedition-setup .setup-controls p{font-size:11px;line-height:1.4;margin:6px 0}
 .expedition-setup .focus-grid{gap:5px;margin:8px 0}
 .expedition-setup .focus-option{padding:7px;min-height:32px;font-size:11px}
 .expedition-setup .setup-controls label{margin-top:8px;font-size:11px}
 .expedition-setup select,.expedition-setup input{min-height:34px;padding:7px;font-size:12px}
 .expedition-setup .button{min-height:32px;padding:7px 10px;font-size:11px}
 .expedition-setup .deck-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px;margin:8px 0;font-size:11px}
 .expedition-setup .segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0}
 .expedition-setup .segmented button{font-size:10px;padding:7px 4px;min-height:32px}
 .expedition-setup .advanced-run{padding:8px 0;font-size:11px}
 .expedition-setup .setup-controls>.actions{margin:8px 0;gap:8px}
 .expedition-setup .setup-controls>details:last-child{font-size:11px}
 .expedition-setup .setup-feature{padding-top:0;gap:8px}
 .expedition-setup .signature-card{width:132px}
 .expedition-setup .signature-card .card-art{height:auto;aspect-ratio:1}
 .expedition-setup .signature-card .card-title{font-size:12px}
 .expedition-setup .signature-card .card-rule{font-size:11px;min-height:0;line-height:1.35}
 .expedition-setup .signature-card .card-joke{display:none}
 .expedition-setup .setup-feature .notice{padding:8px;font-size:11px;line-height:1.4}
}
@media(min-width:1100px){
 #app[data-view="expedition"] .context-hint>details{flex:1;font-size:11px}
 #app[data-view="expedition"] .context-hint>details p{margin:7px 0}
 .battle-stage .experiment-rule,.battle-stage>.notice{margin:4px 0 8px;font-size:11px;line-height:1.4;padding:7px 10px}
 .battle-stage .encounter-card .enemy-portrait{width:84px;height:84px}
 .battle-stage .encounter-card{grid-template-columns:84px minmax(0,1fr) 190px}
 .battle-stage .hand-slot .card-rule{min-height:52px}
}
/* Continuous site canvas: no repeated gradient beneath short pages. */
html{min-height:100%;background:var(--bg)}
body{min-height:100vh;min-height:100dvh;background-repeat:no-repeat;background-size:cover;background-attachment:fixed}
#app{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
#app>.app-layout{flex:1}
#app>.odd-footer{margin-top:auto}
@media(min-width:1100px){
 /* Keep the compact controls, while letting the expedition scene fill its page. */
 #app[data-view="expedition"] #main{max-width:none;margin:0;padding:12px 24px 20px}
 #app[data-view="expedition"] #main>.context-hint,
 #app[data-view="expedition"] #main>.run-top,
 #app[data-view="expedition"] #main>.relic-bar,
 #app[data-view="expedition"] .expedition-setup{max-width:1400px;margin-inline:auto}
 #app[data-view="expedition"] .journey-scene{width:100%;max-width:none;border-radius:18px}
 #app[data-view="expedition"] .battle-stage>.battle-coach,
 #app[data-view="expedition"] .battle-stage>.encounter-card,
 #app[data-view="expedition"] .battle-stage>.combat-toolbar,
 #app[data-view="expedition"] .battle-stage>.hand,
 #app[data-view="expedition"] .battle-stage>.battle-bottom,
 #app[data-view="expedition"] .battle-stage>.combat-log,
 #app[data-view="expedition"] .battle-stage>.experiment-rule,
 #app[data-view="expedition"] .battle-stage>.notice{max-width:1400px;margin-inline:auto}
 #app[data-view="expedition"] .route-scene>.route-map,
 #app[data-view="expedition"] .route-scene>.route-options,
 #app[data-view="expedition"] .route-scene>.boss-preview{max-width:1400px;margin-inline:auto}
}
/* Shared scenery controls occupy their own row, rather than overlapping content. */
.world-interaction{position:relative;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:10px;grid-column:1/-1;min-width:0;margin-top:12px}
.world-interaction>.world-curiosity{position:static;inset:auto;flex:0 0 auto;min-height:44px;padding:10px 14px;margin:0;max-width:100%;white-space:normal;line-height:1.35}
.world-interaction>.world-caption{position:static;inset:auto;flex:1 1 240px;min-width:0;max-width:100%;margin:0;box-sizing:border-box;overflow-wrap:break-word;box-shadow:none}
.world-interaction>.world-caption[hidden]{display:none}
.welcome-studio>.welcome-copy{order:1;min-width:0}
.welcome-studio>.welcome-host{order:2;align-self:center;justify-self:center;min-width:0;max-width:100%;gap:8px}
.welcome-studio>.world-interaction{order:3;margin-top:0;align-self:start}
.welcome-host>span{box-sizing:border-box;max-width:100%;white-space:normal;line-height:1.45}
.world-heading{padding-bottom:20px}
.world-heading>.world-souvenirs{grid-column:1/-1;margin-right:0}
.world-heading>.actions{flex-wrap:wrap;gap:10px}
.expedition-window>div,.sample-counter>div,.footer-brand>div{min-width:0}
.setup-controls input,.setup-controls select{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:650px){
 .world-interaction{align-items:stretch;gap:8px;margin-top:12px}
 .world-interaction>.world-curiosity{min-height:44px}
 .world-interaction>.world-caption{flex-basis:100%;width:100%;font-size:12px}
 .world-heading{padding-bottom:16px}
 .welcome-studio{row-gap:18px}
 .welcome-studio>.welcome-host{width:100%;max-width:100%;justify-self:stretch;justify-content:center;gap:12px;text-align:left}
 .welcome-host>img{flex:0 0 auto;width:110px;height:110px;max-width:35%;object-fit:contain}
 .welcome-host>span{flex:0 1 240px;padding:11px 12px}
 .welcome-studio>.world-interaction{justify-content:center;padding-top:2px}
 .welcome-copy .actions,.expedition-window .actions{flex-wrap:wrap;gap:10px}
 .welcome-copy .button,.expedition-window .button,.world-heading .actions .button{min-height:44px;white-space:normal;line-height:1.35}
 .world-heading .actions>small{flex-basis:100%}
 .setup-controls .segmented{display:flex;flex-wrap:wrap;gap:6px}
 .setup-controls .segmented>button{flex:1 1 120px;white-space:normal;min-height:44px}
 .setup-controls .deck-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
 .setup-controls .deck-summary .button{max-width:100%;white-space:normal;min-height:44px}
}
/* Your battle resources: distinct modules, visible energy, no overlapping labels. */
.battle-stage .combat-toolbar{align-items:center;padding:10px 12px;gap:12px;background:linear-gradient(120deg,#38234eea,#251a34f5);border-color:#a38abb;box-shadow:inset 0 1px #e8d4ff20,0 5px 14px #0c051f35}
.battle-stage .player-status{display:grid;grid-template-columns:100px minmax(125px,1.45fr) repeat(2,minmax(100px,1fr));gap:8px;align-items:stretch;flex:1 1 440px;min-width:0;max-width:760px}
.battle-stage .energy-count.energy-module{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;width:auto;height:auto;min-width:0;min-height:86px;margin:0;padding:9px 8px;border:1px solid #d0bbf5;border-radius:13px;background:radial-gradient(at 50% 0,#9d6cce55,transparent 80%),linear-gradient(135deg,#523b6b,#342448);line-height:1;text-align:center;flex-shrink:0}
.battle-stage .energy-module>small{font-size:10px;line-height:1.2;letter-spacing:1px;color:#eee6ff;margin:0;white-space:normal}
.battle-stage .energy-module>strong{font-size:32px;line-height:1;font-weight:800;color:#fff;text-shadow:0 2px 8px #bb9bff44}
.battle-stage .energy-module>span{font-size:9px;line-height:1.3;color:#ded1ed;white-space:normal}
.energy-pips{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;max-width:80px;min-height:8px}
.energy-pips i{width:7px;height:8px;border-radius:2px;border:1px solid #d5c7ec66;background:#281934}
.energy-pips i.available{background:linear-gradient(#f8f0ff,#d0b5f3);border-color:#f1deff;box-shadow:0 0 5px #b29bdf55}
.battle-stage .energy-empty{border-color:#826990;background:#30213e}
.battle-stat{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0;padding:9px 11px;border:1px solid #b298cb44;border-radius:11px;background:#170e2466;box-sizing:border-box;line-height:1.3}
.battle-stat .stat-label{font-size:11px;font-weight:700;letter-spacing:.25px;color:#e9e0f4;white-space:normal}
.battle-stat>strong{font-size:24px;line-height:1.1;color:#fff}
.battle-stat>strong>small{font-size:13px;font-weight:400;color:#c7b4d8}
.battle-stat>small{font-size:10px;line-height:1.35;color:#cfbddf;white-space:normal}
.stat-health progress{width:100%;height:6px;min-height:6px;appearance:none;border:0;border-radius:4px;overflow:hidden;background:#49314f;accent-color:#eab4d2}
.stat-health progress::-webkit-progress-bar{background:#49314f;border-radius:4px}
.stat-health progress::-webkit-progress-value{background:linear-gradient(90deg,#cf91bd,#f5ccdf);border-radius:4px}
.stat-health progress::-moz-progress-bar{background:linear-gradient(90deg,#cf91bd,#f5ccdf);border-radius:4px}
.stat-health.low-health{border-color:#efb0bc99}.stat-health.low-health>small,.stat-block.exposed>small{color:#f1c2cc}
.stat-block{border-color:#aacced55}.stat-block>strong{color:#d7eeff}.stat-charge{border-color:#d4b4ef55}.stat-charge>strong{color:#ecdaff}
.battle-effects{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.battle-effects>span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;line-height:1.35;white-space:normal;font-size:11px;border:1px solid #bc9cc866;border-radius:8px;background:#21162e}
.battle-effects i{font-style:normal;color:#e4caff}.battle-effects b{color:#fff}
.battle-stage .combat-toolbar>.actions{flex:0 1 auto;margin-left:auto;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.battle-stage .combat-toolbar [data-action="end-turn"],.battle-stage .combat-toolbar [data-action="tutorial-end"]{min-height:48px;padding:12px 18px;font-size:14px;white-space:normal}
@media(max-width:700px){
 .battle-stage .combat-toolbar{gap:10px;padding:10px;align-items:stretch}
 .battle-stage .player-status{flex-basis:100%;width:100%;max-width:none;grid-template-columns:86px minmax(0,1fr) minmax(0,1fr);gap:7px}
 .battle-stage .energy-module{grid-column:1;grid-row:1/3}
 .battle-stage .stat-health{grid-column:2/4;grid-row:1}
 .battle-stage .stat-block{grid-column:2;grid-row:2}
 .battle-stage .stat-charge{grid-column:3;grid-row:2}
 .battle-stage .energy-count.energy-module{padding:9px 7px;min-height:0}
 .battle-stage .energy-module>strong{font-size:35px}
 .battle-stat{padding:7px 9px;gap:4px}
 .battle-stat>strong{font-size:21px}.battle-stat>small{font-size:10px}
 .battle-stage .combat-toolbar>.actions{width:100%;flex-basis:100%;margin-left:0}
 .battle-stage .combat-toolbar>.actions>.button{min-height:44px;flex:1 1 100px;white-space:normal}
 .battle-stage .combat-toolbar [data-action="end-turn"],.battle-stage .combat-toolbar [data-action="tutorial-end"]{flex-basis:100%;min-height:48px;font-size:14px}
}
/* Consistent space between related controls in dialogs and settings. */
.inspect-layout .actions,.guide>.actions,.settings-grid .panel>.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}
.inspect-layout>div{min-width:0}
.inspect-layout>div>.button{margin-top:10px;margin-bottom:10px}
.inspect-layout .actions>.button,.guide>.actions>.button,.settings-grid .panel>.actions>.button{margin:0;white-space:normal;line-height:1.4}
.settings-grid .panel>label,.guide>label,.inspect-layout label{gap:9px;margin-top:16px;margin-bottom:16px}
.settings-grid .panel>label input,.settings-grid .panel>label select,.guide>label input,.guide>label select,.inspect-layout label select{min-height:44px;padding:11px 13px}
.settings-grid .panel>label+.button,.guide>label+.button{margin:0 0 16px}
.inspection-card+.button{display:block;margin-inline:auto}
@media(max-width:650px){
 .inspect-layout .actions,.guide>.actions,.settings-grid .panel>.actions{gap:10px;margin:16px 0}
 .inspect-layout .actions>.button,.guide>.actions>.button,.settings-grid .panel>.actions>.button{min-height:44px;padding:11px 14px;flex:1 1 140px;max-width:100%}
 .inspect-layout .actions{align-items:stretch}
}
/* One shared Play-button baseline, independent of card text and borrowed notes. */
.battle-stage .hand{align-items:stretch}
.battle-stage .hand-slot{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.battle-stage .hand-slot>.card{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;align-self:stretch}
.battle-stage .hand-slot>.card>.card-top{flex:0 0 auto}
.battle-stage .hand-slot>.card>.card-art{flex:0 0 auto;width:100%}
.battle-stage .hand-slot>.card>.card-title{flex:0 0 auto}
.battle-stage .hand-slot>.card>.card-rule{flex:1 0 auto}
.battle-stage .hand-slot>.card>.card-bottom{flex:0 0 auto;margin-top:auto}
.battle-stage .hand-slot>.play-button{flex:0 0 auto;min-height:44px;margin-top:6px;line-height:1.3;padding:9px 6px;box-sizing:border-box}
.battle-stage .hand-slot>.borrowed{flex:0 0 auto;display:block;min-height:18px;padding-top:3px;font-size:10px;line-height:1.4;text-align:center}
.battle-stage .hand-slot>.hand-note-empty{visibility:hidden}
/* Worlds of Weird: one mode chooser, compact rules, and touch-safe choices. */
.mode-hub{margin-bottom:20px}.mode-hub h1{font-size:clamp(24px,3vw,36px);margin:6px 0}.mode-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.mode-choice{display:flex;flex-direction:column;gap:7px;text-align:left;min-width:0;min-height:74px;padding:12px;border:1px solid #ffffff26;border-radius:16px;background:#211c31;color:inherit}.mode-choice b{font-size:15px}.mode-choice small{color:#bea2e6}.mode-choice span{font-size:12px;line-height:1.45;color:#d3c9de}.mode-choice.selected{border-color:#bf93ef;background:#3a2751;box-shadow:inset 0 0 0 1px #bf93ef}.mode-start{max-width:760px;margin:18px auto}.mode-start details,.mode-start label{margin:14px 0}.mode-start .actions{margin-top:18px}.collision-directory{margin:18px 0}.collision-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}.collision-grid article{padding:14px;border:1px solid #ffffff24;border-radius:12px}.world-rule,.mode-rule,.collision-notice,.puzzle-rule{position:relative;z-index:1;margin:8px 0;padding:9px 13px;border-radius:10px;background:#231a35ed;font-size:12px;line-height:1.5}.world-rule p{margin:6px 0}.world-rule summary{cursor:pointer;color:#ddc4ff}.puzzle-rule{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}.puzzle-rule details{flex-basis:100%}.phase-label{color:#ffd796;font-size:11px;letter-spacing:.06em}.event-illustration{width:100%;height:100%;object-fit:cover;border-radius:16px}.mode-choice:focus-visible{outline:3px solid #f9d88a;outline-offset:3px}.draft-grid>div{display:flex;flex-direction:column;gap:12px}.draft-grid>div>.card{flex:1}.draft-grid>div>.button{min-height:44px}
@media(max-width:1050px){.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mode-choice{min-height:74px}.collision-grid{grid-template-columns:1fr}.mode-hub .section-heading{gap:12px;flex-wrap:wrap}}
@media(max-width:600px){.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-choice{padding:12px;min-height:74px}.mode-start{padding:16px}.mode-hub .section-heading>.button{width:100%}.world-rule,.mode-rule,.puzzle-rule{font-size:12px}.draft-grid>div>.button{width:100%}}
@media(prefers-reduced-motion:reduce){.phase-label,.collision-notice{animation:none!important}}
.enemy-portrait.phase-shift{animation:world-phase-shift .5s ease-out 1}
@keyframes world-phase-shift{0%{filter:brightness(1);transform:scale(1)}45%{filter:brightness(1.25);transform:scale(1.025)}100%{filter:brightness(1);transform:scale(1)}}
[data-motion=reduced] .enemy-portrait.phase-shift,[data-speed=instant] .enemy-portrait.phase-shift{animation:none!important}
@media(prefers-reduced-motion:reduce){.enemy-portrait.phase-shift{animation:none!important}}
/* Story choices and deep camps use the same responsive spacing as ordinary play. */
.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.25rem 0 2rem}
.case-file{display:flex;flex-direction:column;gap:.65rem;min-width:0}
.case-file h3,.case-file p{margin:0}.case-file .actions{margin-top:auto;padding-top:1rem;gap:.65rem}
.case-file details{padding-top:.75rem}.case-file details button{display:block;margin:.65rem 0;white-space:normal;text-align:left}
.case-speaker{display:flex;align-items:center;gap:1rem;margin:1.25rem 0;text-align:left}
.case-speaker img{flex:0 0 96px;border-radius:1.25rem;object-fit:cover}.case-speaker small{display:block}
.case-event .event-choices,.deep-camp .event-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.5rem}
.case-event .choice,.deep-camp .choice{max-width:none;min-width:0;white-space:normal}
.route-map{justify-content:flex-start}
.case-event .choice small{display:block;margin-top:.65rem;line-height:1.5}
.case-pursuit{display:grid;gap:.75rem}.case-file .button,.case-pursuit .button{white-space:normal}
@media(max-width:640px){.case-grid,.case-event .event-choices,.deep-camp .event-choices{grid-template-columns:1fr}.case-speaker{align-items:flex-start}.case-speaker img{width:72px;height:72px;flex-basis:72px}.case-file .actions{align-items:stretch}.case-file .actions button{flex:1 1 100%}}

/* Put the deck decision ahead of destination/rule disclosures on every screen. */
.expedition-setup>.deck-selection{grid-column:1/-1;grid-row:auto;margin:0;padding:20px;border-color:#ae83df;background:linear-gradient(125deg,#3a2556,#20182f);min-width:0}
.expedition-setup>.setup-layout{grid-column:1/-1;grid-row:auto;grid-template-columns:minmax(0,1fr) 190px;gap:20px}
.expedition-setup>.page-heading{grid-column:1/-1}
.deck-selection-heading{display:flex;gap:14px;align-items:center;margin-bottom:14px}
.deck-selection-heading>span{display:grid;place-items:center;flex:0 0 48px;height:48px;border:1px solid #c29af1;border-radius:12px;font-size:28px;color:#efdfff;background:#64438a}
.deck-selection-heading h3{font-size:22px;margin:0 0 5px}
.deck-selection-heading .eyebrow{margin-bottom:5px}.deck-selection-heading p{margin:0;font-size:13px}
.deck-selection-controls,.signature-choice{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.deck-selection-controls>label,.signature-choice>label{flex:1 1 240px;margin:0}
.deck-selection select{font-size:16px;width:100%;min-height:48px}
.expedition-setup .deck-selection .button,.expedition-launch .button{min-height:48px;font-size:14px;padding:12px 18px;white-space:normal}
.signature-choice{margin:16px 0 10px}.deck-preview{margin:12px 0 0;font-size:12px;color:#e0cdef}
.setup-controls .duration-label{margin-bottom:8px}.expedition-launch{padding:12px 0;gap:10px}.expedition-launch>.primary{flex:1;font-size:16px}
.deck-builder-actions{position:sticky;bottom:0;background:#241a31;padding:12px 0;gap:8px;border-top:1px solid #82609c;z-index:2}
.deck-builder-actions .button,.deck-pick{min-height:48px;white-space:normal}.deck-pick.selected{border-color:#d1a5ff;background:#4c3264}
.deck-pick:disabled{opacity:1;color:#eee2fa}.deck-builder input,.deck-builder select{font-size:16px}
.deck-pick{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;align-items:start;text-align:left}
.deck-pick>b,.deck-pick>.deck-effect{grid-column:1;min-width:0}
.deck-energy{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#eee0ff;color:#322144;border:1px solid #c39ff0;border-radius:9px;padding:7px 9px;white-space:nowrap;font-size:18px;font-weight:800;line-height:1.2}
.deck-energy>small{font-size:10px;font-weight:700;color:#4a315f}
.deck-pick>.deck-energy{grid-column:2;grid-row:1/3;align-self:center}
.deck-list .deck-energy{flex:0 0 auto;font-size:12px;min-width:auto}
.result-stage .result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:660px;margin:26px auto;padding:18px;border:1px solid #7b58a0;border-radius:18px;background:linear-gradient(125deg,#372348,#211a31);align-items:stretch}
.result-actions>.button{min-height:54px;font-size:14px;line-height:1.35;white-space:normal;padding:13px 16px}
.result-actions>.primary{grid-column:1/-1;min-height:60px;font-size:17px;background:linear-gradient(110deg,#d3b1ff,#baa2f1)}
.result-actions>.result-home{background:#c6e4da;color:#162f29;border-color:#e0fff2;font-weight:800}
.result-actions>[data-view=archive]{grid-column:1/-1}
.hand-help{font-size:12px;margin:8px 0;color:#d6c8e6}
.battle-stage .hand-slot>.play-button{min-height:48px;font-size:13px;background:#be9ce9;color:#241632;border-color:#dfc2ff}
.battle-stage .hand-slot>.hand-details{min-height:44px;font-size:12px;margin-top:4px;padding:8px;border-color:#705383;background:#241b30;color:#e5d2f3;flex:0 0 auto}
.battle-stage .hand-slot>.card:disabled{opacity:.7;filter:saturate(.5)}
.battle-stage .hand-slot>.card img,.battle-stage .hand-slot>.card .card-glare{pointer-events:none}
@media(max-width:640px){
 .expedition-setup{display:flex;flex-direction:column;gap:16px}
 .expedition-setup>.page-heading{margin:0;padding:0}.expedition-setup>.page-heading h2{font-size:25px}
 .expedition-setup>.deck-selection{padding:16px}.deck-selection-heading h3{font-size:20px}
 .deck-selection-controls,.signature-choice{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
 .deck-selection-heading>span{flex-basis:40px;height:40px;font-size:24px}
 .expedition-setup>.setup-layout{display:block}.expedition-setup .setup-feature{display:none}
 .expedition-launch{position:sticky;bottom:8px;background:#271c38;border-radius:12px;padding:10px;z-index:3;box-shadow:0 5px 20px #08041166}
 .expedition-launch>.primary{flex-basis:100%}.expedition-launch>[data-action=help]{width:100%}
 .result-stage{padding:24px 0}.result-stage .result-actions{padding:12px;grid-template-columns:minmax(0,1fr)}
 .result-actions>.button{min-height:56px;font-size:15px}.result-actions>.result-home{grid-row:2}
 .result-stats{gap:20px}.result-stats b{font-size:28px}.result-stats span{font-size:11px}
 .deck-builder-actions{display:grid;grid-template-columns:1fr 1fr;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
 .deck-builder-actions>.primary{grid-column:1/-1}
 .run-counters>.button{min-height:44px}
}
.dialog-action-notice{flex:1 1 100%;grid-column:1/-1;width:100%;padding:11px 13px;border:1px solid #a9cfbd;border-radius:10px;background:#352643;color:#f4e6ff;font-size:13px;line-height:1.5;text-align:left;white-space:normal}
#toast.show.confirmed{border:1px solid #a9cfbd;background:#234236;color:#ecfff5;font-size:14px;line-height:1.5;padding:12px 16px}
/* Coarse-pointer hover must never move a target between touch and click. */
@media(hover:none),(pointer:coarse){
 .battle-stage .hand-slot>.card,.battle-stage .hand-slot>.card:hover,.battle-stage .hand-slot>.card:focus{transform:none!important;transition:none!important}
 .battle-stage .hand-slot>.card:hover .illustration,.battle-stage .hand-slot>.card:hover img{transform:none!important}
 .battle-stage .hand-slot>.card:hover .foil-light{animation:none}
 .battle-stage .button:hover{transform:none}
}

.dialog-action-notice.confirmed{background:#234236;color:#ecfff5}
.term-guide{max-width:760px}.term-guide>p{font-size:14px;margin-bottom:15px}
.term-filters{display:grid;grid-template-columns:1.4fr 1fr;gap:12px}.term-filters label{margin-bottom:10px}
.term-list{height:min(430px,48dvh);min-height:220px;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;padding:4px 12px 12px;border:1px solid #72548e;border-radius:12px;background:#21172c}
.term-count{margin:4px 0 12px;font-size:12px;color:#d6c3e8}.term-entry{margin:0;padding:10px 0;border-color:#654d7b}
.term-entry summary{font-size:16px;font-weight:700;min-height:44px;padding:9px 2px;color:#f0d9ff}
.term-entry p{font-size:14px;line-height:1.55;margin:8px 4px 12px;color:#dfd0e9}.term-entry .term-example{padding:10px;border-left:3px solid #bedecd;background:#312a40;border-radius:6px}
.term-actions{margin-top:14px}.term-actions .button{min-height:48px}.term-guide input,.term-guide select{font-size:16px}
@media(max-width:640px){.term-filters{grid-template-columns:minmax(0,1fr);gap:0}.term-list{height:40dvh;min-height:200px}.term-guide h2{font-size:27px}}
html{scrollbar-gutter:stable}
html.dialog-open{overflow:hidden}
html.dialog-open body{position:fixed;top:var(--dialog-page-top,0);left:var(--dialog-page-left,0);width:100%;overflow:hidden}
.deck-filters,.saved-deck-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.saved-deck-controls{padding:14px;border:1px solid #8c64a4;border-radius:12px;background:#342544;margin-bottom:16px}
.saved-deck-controls label{margin:0}.saved-deck-controls .button{min-height:48px}
.saved-deck-actions{display:flex;gap:8px;flex-wrap:wrap}.saved-deck-actions>.button:first-child{flex:1 1 100%}
.deck-summary{padding:13px 15px;border:1px solid #775c95;border-radius:12px;background:#29213a;margin-bottom:16px}
.deck-summary-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;color:#d5c4e7}
.deck-cost-mix,.deck-role-mix{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0;font-size:12px}
.deck-cost-mix>span{border:1px solid #a68bca;border-radius:8px;background:#443254;padding:5px 9px;color:#ebdff7}
.deck-role-mix>span{padding-right:8px;color:#dccce9}.deck-summary small{font-size:11px}
.deck-builder #deck-count,.deck-builder #deck-results{font-variant-numeric:tabular-nums}
.deck-pick>.deck-stats,.deck-pick>.deck-conditional{grid-column:1/-1}
.deck-stats{display:flex;flex-wrap:wrap;gap:5px;font-size:11px}.deck-stats>span{padding:3px 7px;border:1px solid #88669e;border-radius:7px;background:#241a32;color:#ded0ec}
.deck-stats b{color:#fff}.deck-conditional{font-size:10px;color:#f1d7b4}
.deck-builder .deck-pick.selected{box-shadow:inset 4px 0 #dcb9ff}
.quick-play-choice.primary b,.quick-play-choice.primary small{color:#271634}
@media(max-width:640px){.deck-filters,.saved-deck-controls{grid-template-columns:minmax(0,1fr);gap:8px}.deck-filters select,.deck-builder input{font-size:16px}}
.quick-play-panel{padding:20px;border:1px solid #8d69ab;border-radius:18px;background:linear-gradient(120deg,#38274b,#241d35);margin:16px 0 24px}
.quick-play-heading h3{margin:0 0 5px;font-size:23px}.quick-play-heading p{margin:0 0 15px;color:#dccde9;font-size:14px}
.quick-play-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.quick-play-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:112px;padding:16px;text-align:left;white-space:normal}
.quick-play-choice b{font-size:17px;line-height:1.35}.quick-play-choice small{font-size:12px;line-height:1.4;opacity:.92}
.quick-play-badge{font-size:10px;font-weight:800;letter-spacing:.08em;border-radius:20px;padding:3px 8px;background:#322340;color:#fff0ff}
.quick-play-note{display:block;margin-top:12px;color:#dccde9;font-size:12px}.quick-deep-options{margin:14px 0 0}.quick-deep-options summary{padding:8px 0}.quick-deep-options .button{min-height:48px;white-space:normal}
.result-deck-note{grid-column:1/-1;color:#dccde9;line-height:1.45;text-align:left}
.selected-deck-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding:18px 20px;border:2px solid #bc93ed;border-radius:16px;background:linear-gradient(120deg,#43285e,#241a35);box-shadow:0 5px 20px #10091c44}
.selected-deck-copy{min-width:0}.selected-deck-banner h2{margin:5px 0 8px;font-size:22px;overflow-wrap:anywhere}.selected-deck-banner p{margin:5px 0;line-height:1.5}.selected-deck-banner .button{flex-shrink:0;min-height:48px}.selected-deck-banner summary{cursor:pointer;padding:8px 0}.selected-deck-banner ul{display:flex;gap:6px 18px;flex-wrap:wrap;padding-left:20px;margin:8px 0}.selected-deck-banner li{overflow-wrap:anywhere}
.battle-stage .hand-slot>.card[aria-disabled="true"]{opacity:.7;filter:saturate(.5)}.battle-stage .play-button[aria-disabled="true"]{opacity:.65}
@media(max-width:600px){.selected-deck-banner{align-items:stretch;flex-direction:column;padding:16px;gap:10px}.selected-deck-banner .button{width:100%}.selected-deck-banner h2{font-size:20px}}
.expedition-controls{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.expedition-controls .button{min-height:48px;white-space:normal}
.button.end-expedition{background:#573548;color:#ffe7ed;border:1px solid #dba4bb;font-weight:750;min-height:48px}
.button.end-expedition:hover{background:#75465f}.expedition-controls .end-expedition:focus-visible{outline:3px solid #f2d9ff;outline-offset:3px}
@media(max-width:640px){
 .quick-play-panel{padding:15px;margin:0 0 4px}.quick-play-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .quick-play-choice{min-height:104px;padding:15px}.quick-play-choice b{font-size:16px}
 .expedition-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.expedition-controls .button{padding:11px 8px;font-size:13px}
}
/* Pack cards scroll independently; repeated opening never moves the controls. */
dialog[open].pack-flow{display:flex;flex-direction:column;width:min(1080px,calc(100vw - 28px));height:min(850px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);padding:46px 0 0;overflow:hidden;overscroll-behavior:contain}
dialog.pack-flow #dialog-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;clear:none}
dialog.pack-flow .pack-reveal{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;padding:0;margin:0}
.pack-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;padding:8px 24px 20px;scrollbar-width:thin}
.pack-scroll .pack-summary{overflow-anchor:none}.pack-scroll .reveal-grid{overflow-anchor:none}
dialog.pack-flow .pack-actions{position:static;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:0;padding:10px 20px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #b08bcc;background:#241b32;box-shadow:0 -5px 20px #0b071655}
.pack-actions>.pack-status{grid-column:1/-1;height:36px;min-height:36px;margin:0;padding:0;font-size:12px;line-height:18px;color:#dccde9;text-align:left}
dialog.pack-flow .pack-actions>[data-action=reveal-all],dialog.pack-flow .pack-actions>[data-action=pack-next]{grid-column:auto;min-height:52px;height:52px;margin:0;padding:8px 10px;font-size:14px;line-height:1.3;white-space:normal}
.pack-actions .pack-more{grid-column:1/-1;margin:0;padding:0;border:0;text-align:center}
.pack-more>summary{padding:7px;font-size:12px}.pack-more>.actions{position:static;display:flex;gap:8px;padding:8px 0;margin:0;background:none;box-shadow:none;border:0;flex-wrap:wrap}
.pack-more>.actions>.button{flex:1 1 150px;min-height:44px;font-size:12px;white-space:normal;grid-column:auto}
@media(max-width:600px){
 dialog[open].pack-flow{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:16px;padding-top:46px}
 .pack-scroll{padding:5px 12px 18px}.pack-scroll h2{font-size:25px;margin:6px 0}.pack-scroll>p{font-size:12px;line-height:1.45;margin-bottom:10px}
 dialog.pack-flow .pack-actions{padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:7px}
 .pack-scroll .reveal-grid{margin-block:16px}.pack-actions .pack-more>summary{min-height:36px}
}
#signature-picks .deck-pick img{width:72px;height:72px;object-fit:cover;border-radius:7px;float:left;margin:0 10px 8px 0}

/* Printed base effects stay within the card frame and wrap on narrow cards. */
.card-stats{display:flex;flex-wrap:wrap;gap:4px;text-align:left;margin:0 0 7px;min-width:0;flex:0 0 auto}
.card-stats-label{flex-basis:100%;font-size:9px;line-height:1.4;color:#d5bfe5}
.card-stat{display:inline-flex;gap:4px;align-items:baseline;max-width:100%;padding:3px 5px;border:1px solid #b593c56b;border-radius:5px;background:#150f20;color:#e7d9f1;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.card-stat b{color:#fff;font-variant-numeric:tabular-nums}
.deck-tile .card-stat,.battle-stage .hand-slot .card-stat{font-size:10px;padding:2px 4px}
.shelf-card .card-stats{display:none}
