@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');
:root{--ink:#101a1b;--panel:#25302b;--panel-soft:#334135;--gold:#f5cf78;--paper:#f4ebcf;--ember:#e35a2e;--jade:#71b79b;font-family:'Noto Sans SC','PingFang SC',sans-serif;color:var(--paper);background:#101915}
button{touch-action:manipulation}button:focus-visible{outline:3px solid #fff0a7;outline-offset:2px}
.page-shell{background:radial-gradient(circle at 80% 8%,#c1783a3b,transparent 38%),linear-gradient(145deg,#111b18,#253128 50%,#111916)}
.page-shell:before{opacity:.16;background:repeating-linear-gradient(136deg,#d4bd7330 0 2px,transparent 2px 28px);mask-image:none}
.site-header,.gateway-header{background:linear-gradient(100deg,#17221c,#3c422a 50%,#1c2720);border-bottom:3px solid #c6924b;box-shadow:0 4px 0 #0a130e,0 12px 28px #0008}
.brand-emblem{width:42px;height:42px;border:3px solid #f7c974;border-radius:45% 18% 42% 15%;background:linear-gradient(135deg,#f27b29,#a72d21);transform:rotate(-8deg);box-shadow:2px 3px 0 #211610;color:#ffefcb;font-family:'Ma Shan Zheng',serif;font-size:27px}
.brand strong{font-family:'ZCOOL KuaiLe','Ma Shan Zheng','Noto Sans SC',sans-serif;font-size:23px;letter-spacing:2px;color:#ffe2a4;text-shadow:2px 3px #4b2517}
.brand small{font-size:9px;letter-spacing:1.5px;color:#c6d1aa;font-family:inherit}
.header-tag{font-size:13px;color:#e5e0c4}.header-button,.sound-button{font-size:14px;color:#fff0c8;text-shadow:1px 2px #172017}
.topline h1,.turn-head h2,.skills-heading h2,.gateway-panel h1{font-family:'ZCOOL KuaiLe','Ma Shan Zheng','Noto Sans SC',sans-serif;letter-spacing:1px;color:#ffdd9d;text-shadow:2px 3px 0 #4d2a1f}
.topline h1{font-size:34px}.eyebrow{font-family:'Noto Sans SC',sans-serif;font-weight:900;font-size:11px;color:#8ed9b3;letter-spacing:1px}
.round-stamp{border:2px solid #f1c06f;background:#743c24;clip-path:polygon(12% 0,100% 0,100% 82%,87% 100%,0 100%,0 18%);box-shadow:none}.round-stamp strong{color:#fff1c3}
.arena-frame{border:3px solid #e0af61;background:#17201b;box-shadow:0 0 0 3px #192012,0 10px 28px #0008;clip-path:polygon(1% 0,99% 0,100% 6%,100% 94%,99% 100%,1% 100%,0 94%,0 6%)}
.arena-topbar,.arena-footer{background:linear-gradient(90deg,#2c3527,#495039 50%,#263429);color:#f7dc9b;font-size:12px;border-color:#b28b51}
.arena-scene{background:#657b81 url('/src/assets/arena-shinobi-v3.webp') center 54% / cover no-repeat}
.arena-scene:before{background:linear-gradient(90deg,#08141870,transparent 28%,transparent 72%,#08141870),linear-gradient(0deg,#0d16194d,transparent 55%)}
.arena-scene:after{background:linear-gradient(180deg,#f5d39815,transparent 35%,#0d171630);z-index:10}
.fighter-art{width:115px;height:190px;filter:drop-shadow(0 6px 2px #071615) drop-shadow(0 0 11px #fba43488)}
.fighter-right .fighter-art{filter:drop-shadow(0 6px 2px #071615) drop-shadow(0 0 11px #f2696388)}
.fighter-center .fighter-art{filter:drop-shadow(0 6px 2px #071615) drop-shadow(0 0 11px #51c7ec88)}
.fighter-label{background:#213227e8;border:2px solid #f0bc65;border-radius:8px 0 8px 0;font-size:13px;color:#fff3ca;text-shadow:1px 2px #161b17}
.versus-mark span{font-family:'Ma Shan Zheng',serif;font-size:42px;color:#fff1cf;text-shadow:3px 4px #b43720,0 0 20px #ffad59}.versus-mark small{color:#fff4d0}
.player-card,.battle-log,.turn-panel,.skills-section{background:linear-gradient(155deg,#344139f7,#1a2823f8 62%,#21352c);border:2px solid #b5965d;box-shadow:inset 0 0 0 2px #475944,0 6px 16px #0007;clip-path:polygon(10px 0,calc(100% - 8px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,8px 100%,0 calc(100% - 8px),0 8px)}
.player-card.is-active{background:linear-gradient(145deg,#526e4d,#243b31);border-color:#ffe09d;box-shadow:inset 0 0 0 2px #8ca975,0 0 18px #f6b76455}
.player-card--1.is-active{border-color:#ffad7d}.player-card--2.is-active{border-color:#8fdafa}
.player-name{font-family:'ZCOOL KuaiLe','Noto Sans SC',sans-serif;font-size:20px;color:#ffecbb}.player-no{font-size:12px;background:#d88243;color:#191c16;border-radius:3px}
.player-mark,.player-round-note,.player-foot,.stat-label{font-size:12px;color:#d8dfc6}.stat-row strong{font-size:15px;color:#fff0c3}.stat-row small{font-size:11px}.player-foot b{color:#fff0bd}
.stat-track{height:12px;background:#131f1b;border:1px solid #829f76;border-radius:8px}.stat-fill{border-radius:8px}.hp-fill{background:linear-gradient(90deg,#a92727,#ef7138,#ffae5d)}.chakra-fill{background:linear-gradient(90deg,#347596,#71d6cc)}
.panel-heading,.zone-title span{font-size:14px;color:#ffe4a3}.log-items p{font-size:12px;line-height:1.45}
.turn-head h2{font-size:25px}.turn-phase{font-size:12px;font-weight:900;padding:5px 9px;background:#6c3e28;border:1px solid #e0a966;color:#ffe5af}
.phase-tabs{display:flex;gap:8px;margin:11px 0 8px;padding:3px;background:#101d19;border:1px solid #8d865c}
.phase-tabs button{flex:1;min-height:44px;clip-path:polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%);border:0;background:#344b3d;color:#d6ddc4;font-size:15px;font-weight:900;cursor:pointer}
.phase-tabs button.is-active{background:linear-gradient(100deg,#f89a3c,#b63c28);color:#fff2ca;text-shadow:1px 2px #7e2e1c}.phase-tabs button b{font-size:12px;margin-left:4px}
.phase-brief{margin:9px 0;padding:11px 14px;background:#10241f;border-left:5px solid #f2a655;color:#e0e6ce;font-size:14px}.phase-brief strong{font-size:16px;color:#ffdf91}
.zone-title small,.combo-line,.draw-zone small,.hand-limit,.combo-preview,.action-message,.keyboard-hint{font-size:13px;line-height:1.5;color:#e1dfc2}
.dice-row{gap:13px}.die{width:62px;height:62px;border:3px solid #e6b35f;border-radius:12px;box-shadow:3px 5px 0 #583a23,inset -4px -4px 0 #d1c19b}.pip-grid{transform:scale(1)}
.draw-zone,.combo-builder{background:linear-gradient(105deg,#23362d,#374a34);border:2px solid #a8925f;padding:12px 14px}.draw-zone strong,.budget-line strong,.hand-limit strong{font-size:16px;color:#ffe3a5}
.draw-button,.secondary-button,.primary-button,.join-form button,.room-code-box button{border:2px solid #ffdc91;background:linear-gradient(135deg,#e87e2c,#a93622);color:#fff4cc;font-weight:900;text-shadow:1px 2px #702e20;clip-path:polygon(11px 0,100% 0,calc(100% - 11px) 100%,0 100%);cursor:pointer}
.draw-button{min-height:40px;padding:6px 14px;font-size:13px}.draw-button:disabled{filter:grayscale(.75);opacity:.6}
.roll-button{height:52px;font-size:18px;letter-spacing:1px}.roll-button span{font-size:12px}.main-action{padding-top:11px}.action-message{background:#14251d;border-left:4px solid #e5aa62;min-height:39px}
.offer-grid{gap:12px;margin:12px 0}.offer-card,.skill-card{min-height:125px;border:2px solid #c49c5e;background:linear-gradient(150deg,#f3e1af,#d3c08e);color:#18201c;box-shadow:3px 4px 0 #142319;clip-path:polygon(10px 0,100% 0,100% calc(100% - 11px),calc(100% - 11px) 100%,0 100%,0 10px)}
.skill-card:hover:not(:disabled),.skill-card.is-selected{border-color:#ffd875;background:linear-gradient(150deg,#fff2c8,#e9c884);transform:translateY(-2px)}
.skill-card .skill-body strong,.offer-card .skill-body strong{font-family:'ZCOOL KuaiLe','Noto Sans SC',sans-serif;font-size:18px;color:#242018;line-height:1.2}.skill-card .skill-body small{font-size:12px;color:#4a412e;line-height:1.35;white-space:normal}.skill-icon{width:39px;height:39px;font-size:25px;color:#b33623}.offer-rarity{font-size:17px;color:#a03623}.skill-number{font-size:12px;color:#7b4e31}
.skill-end b{font-size:14px;color:#8f291e}.skill-card .element-tag,.skill-cost{font-size:11px;color:#765028}.skill-card:disabled{opacity:.62}
.hand-grid .skill-card{min-height:116px}.recycle-button{font-size:12px;min-height:30px;color:#ffe0af}.hand-item{gap:5px}
.market-hand-peek{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px 10px;background:#14261d;border:1px solid #667d58;font-size:13px;color:#d9e3c9}.market-hand-peek strong{color:#ffd688}.market-hand-peek span{padding:3px 7px;background:#8f6039;color:#fff0cb;border-radius:7px 1px 7px 1px;font-size:12px}
.budget-line{font-size:13px}.hand-limit{margin:9px 0}.selected-tray{gap:7px}.battle-slot{min-height:54px;padding:7px;background:#e5d6aa;border:1px solid #b78954;color:#1e2c20}.battle-slot strong{font-size:14px;color:#30251b}.battle-slot small{font-size:11px;color:#654b30}.slot-controls button,.target-picks button{min-width:35px;min-height:31px;font-size:12px;background:#5e713e;border:1px solid #e6c477;color:#fff1be}.target-picks button.is-selected{background:#cf7137;color:#fff5ce}.trio-target-hint{font-size:13px;color:#ffdaa0}
.combo-preview span,.combo-preview small{font-size:12px;color:#f7e0b2}.skills-heading h2{font-size:23px}.keyboard-hint{font-size:12px}.empty-hand{min-height:200px}.empty-hand strong{font-size:17px}.empty-hand small{font-size:13px}
.gateway-shell{background:radial-gradient(circle at 46% 45%,#a15c2c60,transparent 43%),#17251b}.gateway-shell:before{background:url('/src/assets/arena-shinobi-v3.webp') center/cover no-repeat;opacity:.46}
.gateway-panel{background:linear-gradient(145deg,#3f4a33f0,#182920f7);border:3px solid #e0b875;clip-path:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px);box-shadow:0 15px 34px #0008}.gateway-panel h1{font-size:39px}.gateway-panel p{font-size:15px;color:#ecdfbd}
.gateway-card{background:linear-gradient(110deg,#d7c38d,#9f9e6d);border:2px solid #f8d994;color:#18251c;clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%);min-height:78px}.gateway-card:hover{background:#f4d387;border-color:#fff5c6}.gateway-card strong{font-size:19px;color:#24251b}.gateway-card small{font-size:12px;color:#35432d}.gateway-card--trio{background:linear-gradient(110deg,#b8c98b,#7fa492)}.gateway-art span{font-family:'Ma Shan Zheng',serif;color:#fff2c9;text-shadow:5px 6px #c54120,0 0 25px #f8be68}
.leaderboard-modes button{font-size:13px;min-height:35px}.leaderboard-modes button.is-active{background:#bb622e;color:#fff2cf}.gateway-note,.join-form label,.room-seats span{font-size:13px;color:#f4dfb8}
.rules-modal,.card-detail-modal,.team-modal{background:#23352bf7;border:3px solid #dfb46e;color:#f4e8c9}.rules-grid p,.trio-rule p,.card-detail-note{font-size:14px;line-height:1.65}.skill-codex .codex-card{background:#decc9d;border:2px solid #b8955b;color:#233024}.skill-codex .codex-card>span{font-size:13px;color:#263222}.skill-codex .codex-card small{font-size:11px;color:#6d593a}.skill-codex.combo-codex span{font-size:13px}.skill-codex.combo-codex span small{font-size:12px}.card-detail-effect strong{font-size:15px}
.fx-layer.fx-fire .combat-fx,.fx-layer.fx-fire .fx-impact,.fx-layer.fx-lightning .combat-fx,.fx-layer.fx-lightning .fx-impact,.fx-layer.fx-meteor .combat-fx,.fx-layer.fx-meteor .fx-impact{display:none}
.cinema-skip{font-size:14px}.combat-pop{font-size:32px;-webkit-text-stroke:1px #101918;text-shadow:2px 3px #101918,0 0 11px currentColor}.fx-cast-title{font-size:20px;text-shadow:2px 3px #16201c,0 0 9px #000}
@media(orientation:landscape) and (max-height:650px){
 .site-header{height:44px}.brand-emblem{width:32px;height:32px;font-size:20px}.brand strong{font-size:17px}.brand small{font-size:7px}.header-button{font-size:12px}
 .topline{display:none}.game-wrap{padding:5px 10px 7px}.arena-topbar,.arena-footer{font-size:10px}.arena-scene{height:112px}
 .player-name{font-size:15px}.player-card,.page-shell--trio .player-card{padding:5px 8px}.stat-label,.player-foot{font-size:9px}.stat-row strong{font-size:12px}.stat-row small{font-size:9px}.stat-track{height:9px}.player-mark,.player-round-note{display:none}.battle-log{height:35px}.panel-heading{font-size:10px}.log-items p{font-size:9px}
 .turn-panel{padding:8px 10px}.turn-head h2{font-size:18px}.turn-phase{font-size:10px}.phase-tabs{margin:5px 0;padding:2px}.phase-tabs button{min-height:33px;font-size:11px}.phase-brief{padding:5px 8px;font-size:10px;margin:5px 0}.phase-brief strong{font-size:11px}
 .die{width:42px;height:42px}.pip-grid{transform:scale(.68)}.dice-row{gap:6px;margin:4px 0}.zone-title span{font-size:12px}.zone-title small,.combo-line,.draw-zone small,.hand-limit,.combo-preview,.action-message{font-size:10px}
 .draw-zone,.combo-builder{padding:6px 8px;margin-top:5px}.draw-zone strong,.budget-line strong,.hand-limit strong{font-size:12px}.draw-button{min-height:32px;padding:3px 8px;font-size:10px}.offer-grid{gap:7px;margin:7px 0}.offer-card,.skill-card{min-height:83px;padding:6px}.skill-card .skill-body strong,.offer-card .skill-body strong{font-size:14px}.skill-card .skill-body small{font-size:10px}.skill-icon{width:27px;height:27px;font-size:18px}.skill-end b{font-size:11px}.skill-card .element-tag,.skill-cost{font-size:9px}.market-hand-peek{padding:4px 7px;font-size:10px}.market-hand-peek span{font-size:9px}
 .battle-slot{min-height:36px;padding:3px}.battle-slot strong{font-size:11px}.battle-slot small{font-size:9px}.slot-controls button,.target-picks button{min-width:23px;min-height:24px;font-size:9px}.trio-target-hint{font-size:10px}.combo-preview span,.combo-preview small{font-size:9px}.action-message{min-height:28px;padding:4px 7px}.roll-button{height:39px;font-size:14px}.roll-button span{font-size:10px}.main-action{padding-top:5px}.skills-heading h2{font-size:18px}.keyboard-hint{font-size:10px}.hand-grid .skill-card{min-height:82px}.recycle-button{min-height:23px;font-size:9px}
 .page-shell--trio .arena-frame{grid-column:1/-1;grid-row:2}.page-shell--trio .left-column{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.page-shell--trio .left-column .battle-log{display:none}.page-shell--trio .turn-panel{grid-column:1/3;grid-row:4}.page-shell--trio .skills-section{grid-column:3;grid-row:4}.page-shell--trio .player-foot{font-size:8px}.page-shell--trio .arena-scene{height:97px}
 .page-shell--trio.page-shell--market .turn-panel{grid-column:1/-1;grid-row:4}.page-shell--trio .target-picks button{font-size:9px;min-height:25px}
 .gateway-panel{padding:10px 15px}.gateway-panel h1{font-size:26px}.gateway-panel p{font-size:11px}.gateway-card{min-height:0;padding:7px 10px}.gateway-card strong{font-size:13px}.gateway-card small{font-size:9px}.leaderboard-modes button{font-size:10px;min-height:27px}
}
.page-shell--market .turn-panel{grid-column:2/4}.page-shell--market .offer-card{min-height:132px}.page-shell--market .arena-scene{height:215px}.page-shell--trio.page-shell--market .arena-scene{height:180px}
@media(orientation:landscape) and (max-height:650px){.page-shell--market .offer-card{min-height:86px}.page-shell--market .arena-scene{height:112px}.page-shell--trio.page-shell--market .arena-scene{height:97px}}
/* A separate composition screen gives the retained hand the same space as the market. */
.page-shell--formation .turn-panel{grid-column:2/4;min-width:0}
.page-shell--formation .turn-panel>.skills-section{margin:8px 0 0;padding:8px 10px;min-height:0;max-height:235px;overflow:auto;box-shadow:inset 0 0 0 2px #4b604a}
.page-shell--formation .skills-heading{margin-bottom:7px}
.page-shell--formation .skills-heading .eyebrow{font-size:9px}
.page-shell--formation .skills-heading h2{font-size:18px;margin:2px 0 0}
.page-shell--formation .hand-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.page-shell--formation .hand-item{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:3px}
.page-shell--formation .hand-item .skill-card{grid-column:1/-1;min-height:76px;max-height:94px;padding:6px 8px}
.page-shell--formation .slot-picks{display:flex;gap:3px}
.page-shell--formation .slot-picks button{min-width:29px;min-height:28px;font-size:12px;background:#f1d39a;color:#263125;border:1px solid #a67f48;font-weight:900;cursor:pointer}
.page-shell--formation .slot-picks button.is-active{background:#e78839;color:#fff6d9}
.page-shell--formation .recycle-button{min-height:28px;width:auto;padding:3px 8px}
.page-shell--formation .hand-item .skill-body small{font-size:12px}
.page-shell--formation .hand-item .skill-body strong{font-size:16px}
.player-card .stat-row{grid-template-columns:34px minmax(0,1fr) 77px}
.player-card .stat-row strong{font-family:'Noto Sans SC','PingFang SC',sans-serif;font-size:18px;letter-spacing:0;white-space:nowrap}
.player-card .stat-row small{font-size:12px}
.offer-card{grid-template-columns:34px minmax(0,1fr)}
.offer-card .skill-body{position:relative;z-index:2;max-width:70%;background:#f0dfb8e8;padding:5px 7px;border-left:3px solid #b27c43}
.offer-card .skill-body small{font-size:13px;line-height:1.28;color:#332a1f}
.offer-card .skill-end{grid-column:1/-1;position:relative;z-index:2;background:#213429dc;padding:3px 5px;align-items:center}
.offer-card .skill-end b{font-size:14px;color:#ffe0a2}
.offer-card .skill-cost{font-size:11px;color:#ffedc5}
.offer-card .skill-icon{width:32px;height:43px;font-size:21px}
.offer-card:before{inset:0 0 0 42%;background-image:linear-gradient(90deg,#e9d3a5 0%,#e9d3a588 24%,transparent 60%),var(--card-art);opacity:.94}
@media(orientation:landscape) and (max-height:650px){
 .page-shell--formation .turn-panel>.skills-section{max-height:162px;margin-top:4px;padding:4px 6px}
 .page-shell--formation .skills-heading{margin-bottom:3px}.page-shell--formation .skills-heading h2{font-size:14px}
 .page-shell--formation .hand-item .skill-card{min-height:49px;max-height:55px;padding:3px 5px}
 .page-shell--formation .hand-item .skill-body strong{font-size:11px}.page-shell--formation .hand-item .skill-body small{font-size:9px}
 .page-shell--formation .slot-picks button{min-width:21px;min-height:20px;font-size:9px}
 .page-shell--formation .recycle-button{min-height:20px;padding:2px 5px;font-size:9px}
 .player-card .stat-row{grid-template-columns:26px minmax(0,1fr) 56px}.player-card .stat-row strong{font-size:12px}.player-card .stat-row small{font-size:9px}
 .offer-card .skill-body{max-width:78%;padding:3px 5px}.offer-card .skill-body small{font-size:10px}.offer-card .skill-end b{font-size:10px}.offer-card .skill-cost{font-size:9px}
 .offer-card .skill-icon{width:25px;height:29px;font-size:17px}
 .page-shell--trio.page-shell--formation .turn-panel{grid-column:1/-1;grid-row:4}
}
.player-card .stat-row{grid-template-columns:46px minmax(0,1fr) 67px}
.player-card .stat-label{white-space:nowrap}
@media(orientation:landscape) and (max-height:650px){.player-card .stat-row{grid-template-columns:31px minmax(0,1fr) 52px}.player-card .stat-label{font-size:9px}}
/* New elemental atlases replace the old CSS silhouettes during settlement. */
.fx-layer.element-wind .combat-fx,.fx-layer.element-wind .fx-impact,
.fx-layer.element-water .combat-fx,.fx-layer.element-water .fx-impact,
.fx-layer.element-earth .combat-fx,.fx-layer.element-earth .fx-impact{display:none}
.combo-howto{margin:15px 0;padding:14px 17px;background:linear-gradient(110deg,#344a34,#203a35);border-left:5px solid #f0b86c;box-shadow:inset 0 0 0 1px #81966e}
.combo-howto h3{margin:0 0 7px;color:#ffe1a3;font-family:'ZCOOL KuaiLe','Noto Sans SC',sans-serif;font-size:21px}
.combo-howto p{margin:0;color:#f0ebd1;font-size:15px;line-height:1.7}
.combo-howto b{color:#ffda91}
.skill-codex.combo-codex .combo-card-link{display:block;width:100%;min-width:0;padding:10px 12px;text-align:left;white-space:normal;overflow-wrap:anywhere;background:#e6d09e;color:#253027;border:2px solid #be965b;cursor:pointer;font-size:14px;font-weight:900;line-height:1.45}
.skill-codex.combo-codex .combo-card-link:hover,.skill-codex.combo-codex .combo-card-link:focus-visible{background:#ffe4a6;border-color:#fff0c5}
.skill-codex.combo-codex .combo-card-link small{display:block;margin-top:4px;color:#554c35;font-size:12px;font-weight:600;line-height:1.4}
@media(orientation:landscape) and (max-height:650px){.combo-howto{padding:8px 10px;margin:8px 0}.combo-howto h3{font-size:16px}.combo-howto p{font-size:11px}.skill-codex.combo-codex .combo-card-link{font-size:11px;padding:6px}.skill-codex.combo-codex .combo-card-link small{font-size:9px}}
