/* DeckToon World / fixed portrait HUD, original six-button crystal rail. */
.play-screen{display:block;position:relative;height:100dvh;min-height:560px;overflow:hidden;background:#275f67}
.play-screen .smooth-arena{position:absolute;inset:0;border:0;height:100%;min-height:0;background-repeat:no-repeat;contain:layout paint}
.play-screen .smooth-arena:after{box-shadow:inset 0 75px 65px -30px #081f45b0,inset 0 -180px 140px -70px #0b2a2d90;pointer-events:none}
.player-hud{position:absolute;top:0;left:0;right:0;z-index:30;height:70px;min-height:0;padding:8px 8px 0;gap:6px;align-items:flex-start;background:linear-gradient(#073055be,transparent);border:0;box-shadow:none}
.player-avatar{width:45px;height:45px;flex:0 0 45px;border-radius:13px 3px 13px 3px;border:2px solid #d6f2ff;overflow:hidden;background:linear-gradient(#86e4ee,#4d82b3)}
.player-info{max-width:105px;min-width:60px;padding-top:2px}.player-info>b{font-size:11px;color:white;text-shadow:0 1px 3px #072633}.player-info>span{font-size:9px}.player-info>span small{display:none}.player-info>em{padding:2px 5px;clip-path:polygon(6% 0,100% 0,92% 100%,0 100%);background:linear-gradient(110deg,#cf5674,#9f417a);font-size:13px;color:white;min-width:69px}.player-info>em .ico{width:12px;height:12px}
.world-wallet{margin-left:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;flex:1;max-width:235px}
.world-wallet button{position:relative;display:grid;grid-template-columns:17px 1fr;grid-template-rows:13px 16px;column-gap:2px;text-align:right;padding:4px 9px 4px 3px;min-width:0;background:linear-gradient(110deg,#063c58ed,#07304dd9);border:1px solid #8edcec72;color:white;clip-path:polygon(7% 0,100% 0,92% 100%,0 100%);border-radius:0}
.world-wallet button>span{grid-row:1/3;display:flex;align-items:center}.world-wallet .ico{width:17px;height:17px;filter:drop-shadow(0 0 4px #46eaff);color:#88efff}.world-wallet button>small{font-size:7px;color:#b9e9f5;text-align:left}.world-wallet button>b{font-size:10px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.world-wallet button>i{position:absolute;top:3px;right:5px;font-size:11px;font-style:normal;color:#94ecff}.world-wallet .currency-cash{background:linear-gradient(110deg,#333b80ed,#2a2557dc)}.world-wallet .currency-cash .ico{color:#d5abff}.world-wallet .currency-dcc .ico{color:#ffe3a6}
.play-screen .play-tools{top:65px;right:8px}.play-tools .button{background:linear-gradient(#226380ed,#143652dc);border:1px solid #bdedff;clip-path:polygon(15% 0,85% 0,100% 15%,100% 85%,85% 100%,15% 100%,0 85%,0 15%);border-radius:0;width:34px;height:34px}
.play-screen .smooth-arena .stage-hud{top:84px;left:43%;width:65%;z-index:20}.smooth-arena .stage-hud>span{font-size:16px;letter-spacing:-.5px;color:#fff3ac;text-shadow:0 2px #19495c,1px 0 #19495c,-1px 0 #19495c}.smooth-arena .stage-hud>small{font-size:7px;color:#e6fbff;letter-spacing:2px}.wave-track{height:5px;background:#194b6cbb;border-color:#74b9db;margin:6px auto}.wave-track i{background:linear-gradient(90deg,#fff3a6,#ffd650);box-shadow:0 0 8px #ffe990}.wave-track:after{content:'◆     ◆     ◆     ◆';position:absolute;inset:-5px 0;font-size:12px;letter-spacing:9px;color:#8bc8df80;white-space:pre}#wave-hud>b{font-size:8px;color:#e5fbff}#wave-live{color:#fff2b5}
.play-screen .arena-bottom{bottom:246px;left:8px;right:10px;z-index:22;pointer-events:none}.play-screen .battle-state{position:absolute;bottom:-93px;left:0;max-width:100%;font-size:8px;background:none!important;border:0!important;color:#e3fff4!important;display:none}.play-screen .auto-button{pointer-events:auto;position:absolute;right:0;bottom:0;width:44px;height:49px;min-height:0;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);border:0;border-radius:0;background:linear-gradient(#26c9ed,#0579a6 55%,#12518a);box-shadow:none;color:white;text-shadow:0 0 7px white;font-size:11px;filter:drop-shadow(0 0 5px #5cecff)}
.control-deck{position:absolute;bottom:calc(78px + var(--safe-bottom));left:0;right:0;z-index:25;padding:0 7px;background:none;border:0;box-shadow:none;pointer-events:none}
.control-deck button{pointer-events:auto}.control-deck .quest-ribbon{width:calc(100% - 61px);min-height:39px;margin:0 0 20px;border:0;border-radius:0;background:linear-gradient(90deg,#244b56e8,#28565dbb 85%,transparent);box-shadow:none;clip-path:polygon(0 10%,90% 10%,90% 0,96% 0,96% 35%,100% 35%,100% 72%,94% 72%,94% 100%,0 100%);padding:4px 14px 4px 5px;color:#fffcdf;text-align:left}.control-deck .quest-ribbon.complete{background:linear-gradient(90deg,#f2ce45ee,#dfd656c9 85%,transparent);color:#373928}.control-deck .quest-ribbon.complete small,.control-deck .quest-ribbon.complete em{color:#535430}.control-deck .quest-medal{border:1px solid #bdf1ff;background:#123a67;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);border-radius:0;flex-shrink:0;width:28px;height:32px}.control-deck .quest-ribbon b{font-size:10px}.control-deck .quest-ribbon small{font-size:7px}.control-deck .quest-ribbon em{font-size:8px}
.formation-dock{height:99px;display:flex;align-items:stretch;gap:4px;pointer-events:auto}.leader-card{position:relative;flex:0 0 68px;isolation:isolate;border:2px solid #b6e8ff;border-radius:18px 4px 14px 3px;background:linear-gradient(145deg,#b0edff,#4a8dba 53%,#4e4092);overflow:hidden;color:white;box-shadow:0 0 0 1px #22597e;outline:0}.leader-card .character-art{position:absolute;width:128px;height:151px;left:50%;transform:translateX(-50%);top:-15px}.leader-card b{position:absolute;bottom:17px;left:3px;font-size:9px;text-shadow:0 1px 2px #071f40}.leader-card small{position:absolute;bottom:0;left:4px;font-size:8px}.leader-card>i{position:absolute;bottom:11px;left:2px;right:2px;height:5px;background:#0d304e;border-radius:3px;overflow:hidden}.leader-card>i>em{display:block;height:100%;background:#ffdf4b}.leader-card.selected{border-color:#fff1a0;box-shadow:0 0 9px #b9f7ff}
.companion-dock{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;flex:1;min-width:0;padding-top:9px}.companion-slot{position:relative;min-width:0;padding:0;color:#e1faff;background:linear-gradient(#8ab8d5,#c9d8d2 40%,#69879d);clip-path:polygon(14% 0,86% 0,100% 12%,100% 38%,94% 44%,94% 60%,100% 66%,100% 88%,86% 100%,14% 100%,0 88%,0 12%);border:0;isolation:isolate;overflow:hidden}.companion-slot:before{content:'';position:absolute;inset:3px;background:repeating-linear-gradient(0deg,#295d7280 0 2px,transparent 2px 4px),linear-gradient(#173c58,#30798b);clip-path:inherit;z-index:-1}.companion-slot .character-art{position:absolute;width:75px;height:85px;top:-1px;left:50%;transform:translateX(-50%)}.companion-slot>b{position:absolute;left:0;right:0;bottom:10px;font-size:8px;text-shadow:0 1px 3px #123}.companion-slot>i{position:absolute;bottom:5px;left:7px;right:7px;height:3px;background:#123}.companion-slot>i>em{height:100%;display:block;background:#78f5df}.companion-slot.selected{background:#fff1ae;filter:drop-shadow(0 0 5px #9eeeff)}.companion-slot.empty>span{display:block;margin:17px auto 0;font-size:35px;line-height:37px;color:#d5f5ff}.companion-slot .ico{width:18px;height:18px}.companion-slot>small{font-size:6px;color:#93c4d6;white-space:nowrap}.companion-slot.fallen{filter:grayscale(1)}
.dock-foot{display:flex;align-items:center;height:29px;margin:4px -7px 0;padding:0 9px;background:#0b343dbb;border-top:1px solid #bbf4fa26;gap:8px}.dock-map{border:0;background:none;color:#d4efe9;font-size:8px;display:flex;align-items:center;gap:4px;padding:3px}.dock-map .ico{height:13px;width:13px}.dock-foot .skill-slot.signature{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:1;height:23px;min-height:0;background:none;border:0;border-radius:0;box-shadow:none;padding:0;float:none;color:#d2f8ff}.dock-foot .skill-slot.signature>.ico{width:16px;height:16px;color:#ffe9a4}.dock-foot .skill-slot.signature>b{margin:0;font-size:8px}.dock-foot .skill-slot.signature>small{display:block;font-size:7px;color:#a8d9e7}.dock-foot .skill-slot:disabled{opacity:.55}
.world-nav{position:absolute;bottom:0;left:0;right:0;height:calc(78px + var(--safe-bottom));min-height:0;z-index:50;padding:4px 5px var(--safe-bottom);gap:1px;border-top:2px solid #d0f7ff;background:linear-gradient(135deg,#e2f9ff 25%,#caedfa 25%,#caedfa 50%,#e1f5ff 50%,#e1f5ff 75%,#c9eaf5 75%);background-size:21px 21px;box-shadow:0 -2px #6bacc0}.world-nav:after{content:'';position:absolute;bottom:0;left:0;right:0;height:calc(18px + var(--safe-bottom));background:#17335c;z-index:-1}.world-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:0;color:#fff;overflow:visible;gap:0;background:none!important}.nav-hex{display:flex;justify-content:center;align-items:center;width:48px;height:53px;background:linear-gradient(135deg,#e2f6ff,#6f8ca5 32%,#dce9ed 57%,#506781);clip-path:polygon(50% 0,95% 23%,95% 77%,50% 100%,5% 77%,5% 23%);position:relative;isolation:isolate;font-style:normal}.nav-hex:before{content:'';position:absolute;inset:4px;background:linear-gradient(145deg,#284762,#182639);clip-path:inherit;z-index:-1}.world-nav button.active .nav-hex:before{background:linear-gradient(135deg,#277ba5,#164d78)}.world-nav .nav-hex .ico{width:28px;height:28px;color:#d8f5ff;stroke-width:1.8}.world-nav .nav-hex .character-art{width:59px;height:65px;position:absolute;top:0}.world-nav .nav-hex .chest-art{width:44px;height:44px}.world-nav button>span{font-size:10px;line-height:15px;font-weight:700;letter-spacing:-.5px;text-shadow:0 1px 2px #0a1833,1px 0 #0a1833,-1px 0 #0a1833}.nav-dot{width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#f8627f;position:absolute;top:1px;right:3px;box-shadow:0 0 0 1px #ed4573}
.bottom-drawer{z-index:42;bottom:calc(78px + var(--safe-bottom));max-height:calc(100% - 150px);background:linear-gradient(155deg,#203f60,#12243d);border-color:#a3dfef}.drawer-backdrop{z-index:40}.bottom-drawer>header,.bottom-drawer>header h2{color:#f1faff}.drawer-scroll{padding-bottom:20px}.screen-overlay.loot-overlay{z-index:80;background:#05162bc4;backdrop-filter:blur(5px)}
.collection-heading{text-align:center;margin:10px 0 17px}.collection-heading>small,.street-banner>small,.circle-intro>small{font-size:8px;letter-spacing:2px;color:#78d9e7}.collection-heading h3{font-size:18px;margin:7px 0;color:#eafaff}.collection-heading p{font-size:10px;color:#a8c6d7}.chest-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:13px}.chest-card{border:1px solid #6ca4c078;border-radius:9px;background:radial-gradient(ellipse at 50% 10%,#345e80,#142a43 70%);text-align:center;padding:7px 7px 10px}.chest-art{display:block;width:110px;height:110px;background-image:url('assets/world/chest-atlas.webp');background-size:200% 200%;background-repeat:no-repeat;margin:auto;filter:drop-shadow(0 5px 5px #0414248c)}.chest-treasure{background-position:0 0}.chest-digital{background-position:100% 0}.chest-equipment{background-position:0 100%}.chest-device{background-position:100% 100%}.chest-card h3{font-size:13px;margin:0 0 3px;color:#e6faff}.owned-count{font-size:9px;color:#a8c6d6;display:block;margin:5px}.owned-count b{color:white;font-size:13px}.chest-card>.button{width:100%;min-height:32px;font-size:11px}.chest-buy{display:block;margin:6px auto 0;font-size:8px;color:#97e9f6;background:transparent;border:0;padding:5px 0}.chest-card details{font-size:8px;color:#a9bed1;text-align:left;border-top:1px solid #5c809544;margin-top:5px;padding-top:7px}.chest-card summary{text-align:center;cursor:pointer}.chest-card details>div{margin:8px 0;line-height:1.5}.chest-card details b{display:block;color:#ffe1a0}.chest-card details small{font-size:7px;line-height:1.5;display:block}
.shop-shortcuts{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0 13px}.shop-shortcuts button{flex:1;padding:8px 5px;background:#2a5374;border:1px solid #77b0c76b;border-radius:5px;color:#cfeefa;font-size:9px;white-space:nowrap}.inventory-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.inventory-card{padding:11px 8px;background:#24476399;border:1px solid #6594ab77;border-radius:8px;text-align:center}.inventory-card.unowned{opacity:.65}.inventory-card h3{font-size:11px;color:#f0faff;margin:5px 0}.inventory-card>small{font-size:8px;color:#91c9d8}.inventory-card p{font-size:9px;color:#aac4d6;min-height:42px;line-height:1.55}.inventory-card strong{display:block;color:#ffe5b4;margin-top:4px}.inventory-card .button{width:100%;font-size:10px;min-height:31px}.inventory-card .equipped{border-color:#80e5ce;color:#a5ffe7;background:#18595b}.item-glyph{display:flex;align-items:center;justify-content:center;width:63px;height:63px;margin:0 auto 6px;border:1px solid var(--item-color);border-radius:15px 4px 15px 4px;background:radial-gradient(#517198,#182e4e);box-shadow:inset 0 0 20px #74c4fc44,0 0 12px #65d1ff20;color:var(--item-color)}.item-glyph .ico{width:35px;height:35px;filter:drop-shadow(0 0 7px var(--item-color))}.item-art{width:63px;height:63px;object-fit:contain;margin:auto}.street-banner{padding:19px 15px;border:1px solid #76a9cf6b;border-radius:10px;background:radial-gradient(at 100% 10%,#5c4f89,#214663 60%,#162f4d);margin-bottom:12px}.street-banner h3{font-size:18px;margin:9px 0}.street-banner p{font-size:10px;color:#c3d5f4}.street-banner .button{font-size:9px;min-height:28px}.shop-card{display:flex;gap:12px;align-items:center;margin:10px 0;padding:12px 10px;background:#213e5c;border:1px solid #618aab60;border-radius:9px}.shop-card>div{flex:1}.shop-card .item-glyph{flex:0 0 63px;margin:0}.shop-card h3{font-size:13px;margin:3px 0}.shop-card small{font-size:8px;color:#b9aaff}.shop-card p{font-size:9px;color:#adc2d8;line-height:1.5;margin:7px 0}.shop-card .button{font-size:9px;min-height:28px;padding:5px 12px}.wardrobe-preview{display:flex;align-items:center;height:140px;background:radial-gradient(at 20% 50%,#437793,#1b334d 65%);border:1px solid #7eafd66b;border-radius:9px;margin:8px 0 13px;overflow:hidden}.wardrobe-preview .character-art{width:120px;height:140px;flex:0 0 120px}.wardrobe-preview small{font-size:8px;letter-spacing:1.5px;color:#a8dae7}.wardrobe-preview h3{margin:5px 0;font-size:19px}.wardrobe-preview p{font-size:9px;color:#a8c6db;max-width:160px}
.quest-list article{display:flex;align-items:center;gap:9px;margin:10px 0;padding:13px 9px;border:1px solid #649bbb6b;border-radius:8px;background:#254c68}.quest-seal{color:#ffe3a3}.quest-seal .ico{width:23px;height:23px}.quest-list article>div{flex:1}.quest-list h3{font-size:11px;margin:0 0 4px;line-height:1.5}.quest-list p{font-size:9px;color:#b3d5de;margin:0 0 6px}.quest-list progress{display:block;width:100%;height:5px;accent-color:#8debd2}.quest-list small{font-size:8px;color:#bcd5df}.quest-list button{font-size:9px;padding:6px;min-height:29px}.circle-intro{padding:40px 10px;text-align:center}.circle-intro>.ico{display:block;margin:0 auto 20px;width:60px;height:60px;color:#b5c8e5}.circle-intro h3{font-size:17px;line-height:1.6}.circle-intro p{font-size:12px;color:#a6c0d1;line-height:1.9}.loot-card{width:85%;max-width:340px;padding:29px 25px 23px;text-align:center;border:1px solid #a3deee;border-radius:14px;background:radial-gradient(at 50% 40%,#315f84,#152b4d 65%);box-shadow:0 0 55px #62c6ed44;color:white}.loot-card>small{font-size:8px;letter-spacing:2px;color:#a6ddf4}.loot-card h2{font-size:23px;margin:10px}.loot-card h3{font-size:16px;color:#ffe6a5;margin:10px}.loot-card p{font-size:11px;line-height:1.7;color:#accbdd}.loot-card>.button{margin-top:22px}.loot-glow{display:flex;align-items:center;justify-content:center;height:130px;background:radial-gradient(#86dff93d,transparent 65%)}.loot-glow>.ico{width:70px;height:70px;color:#9eecff;filter:drop-shadow(0 0 12px #57ceef)}.loot-glow .item-glyph{width:85px;height:85px}.loot-glow .item-glyph .ico{width:50px;height:50px}
@media(max-width:350px){.player-info{max-width:78px}.world-wallet{gap:2px}.world-wallet button{padding-right:7px}.world-wallet button>b{font-size:9px}.nav-hex{width:42px;height:48px}.world-nav button>span{font-size:9px}.leader-card{flex-basis:59px}.companion-dock{gap:3px}.companion-slot>small{font-size:5px}.chest-art{width:93px;height:93px}.chest-grid{gap:6px}}
@media(max-height:700px){.play-screen{min-height:0}.control-deck{bottom:calc(68px + var(--safe-bottom))}.world-nav{height:calc(68px + var(--safe-bottom))}.nav-hex{height:46px;width:42px}.formation-dock{height:82px}.leader-card{flex-basis:59px}.leader-card .character-art{height:131px;top:-14px}.companion-slot .character-art{height:72px}.control-deck .quest-ribbon{margin-bottom:12px;min-height:35px}.play-screen .arena-bottom{bottom:209px}.bottom-drawer{bottom:calc(68px + var(--safe-bottom))}.play-screen .smooth-arena .stage-hud{top:74px}.shop-shortcuts button{font-size:8px}}
@media(prefers-reduced-motion:reduce){.loot-glow,.chest-art{animation:none}}

/* Five region chapters keep fifty destinations readable on a phone. */
.region-chapter{margin:12px 0;border:1px solid #c9b98d;border-radius:12px;overflow:hidden;background:#fff9ee;color:#3b3049}.region-chapter summary{list-style:none;position:relative;min-height:116px;display:flex;align-items:center;padding:18px;cursor:pointer;color:#fff7d8;text-shadow:0 2px 5px #101a22}.region-chapter summary::-webkit-details-marker{display:none}.region-chapter summary:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#151e2cd9,#151e2c33);pointer-events:none}.region-chapter summary img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%}.region-chapter summary span,.region-chapter summary>i{z-index:1;position:relative}.region-chapter summary span{display:grid;gap:5px;flex:1}.region-chapter summary small{font-size:10px;letter-spacing:2px}.region-chapter summary b{font-size:18px}.region-chapter summary em{font-size:11px;font-style:normal}.region-chapter .world-list{padding:8px;margin:0}.region-chapter .world-list button{min-height:61px}.region-chapter .world-list button.current{background:#f5e8bd;border-color:#ac8b46}.region-chapter .world-list button>b{font-size:18px;width:34px}.region-chapter .world-list button>em{font-size:10px;font-style:normal;white-space:nowrap}.region-chapter .world-list button:disabled{opacity:.55}.region-chapter .world-list small{display:block;font-size:10px;margin-top:3px}

.arena-cube-art{display:block;background-image:url('assets/world/arena-cubes.webp?v=0132');background-size:500% 200%;background-repeat:no-repeat;aspect-ratio:1;margin:auto}.chest-art.arena-cube-art{background-image:url('assets/world/arena-cubes.webp?v=0132');background-size:500% 200%}
