.hand-icon{width:26px;height:26px;object-fit:contain;vertical-align:middle;display:inline-block;flex-shrink:0}
.loadout-panel{margin:24px 0;border:3px solid #243f4c;border-radius:24px;background:#fff9e9;overflow:hidden;box-shadow:0 7px #15394433}
.loadout-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:center;min-height:310px;gap:12px;padding:23px 26px;color:#f6f6df;background:radial-gradient(ellipse at 48% 66%,#3f7785 0,transparent 60%),linear-gradient(125deg,#123844,#203746 70%,#0e2939);border-bottom:4px solid #e3b969}
.loadout-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(120deg,transparent 0 65px,#ffffff04 65px 66px)}
.loadout-identity .kicker{color:#b9d6d8;font:700 10px Arial;letter-spacing:2px}.loadout-identity h2{font-size:clamp(23px,2.5vw,32px);line-height:1.4;margin:10px 0 12px;color:#fff6cf;letter-spacing:.03em}
.partner-type{display:inline-block;padding:5px 13px;border:1px solid #b8d3d699;border-radius:4px;font-size:12px;background:#ffffff0c}
.partner-strength{display:flex;align-items:baseline;gap:13px;margin:20px 0 7px}.partner-strength small{font-size:13px;color:#b5d4d4}.partner-strength b{font:900 58px/.95 Arial;color:#ffdb81;letter-spacing:-2px;text-shadow:0 3px #072839}
.loadout-identity>p{display:flex;align-items:center;gap:9px;font-size:12px}.loadout-identity>p .hand-icon{width:35px;height:35px}.loadout-identity>p strong{font-size:17px}
.loadout-companion{position:relative;display:grid;place-items:center;width:100%;min-width:0;isolation:isolate}.loadout-companion .sprite{width:115%;max-width:350px;filter:drop-shadow(0 16px 6px #091d3999);z-index:1;animation:partner-float 4s ease-in-out infinite}
.partner-halo{position:absolute;width:90%;aspect-ratio:1;border:2px solid #dfb46466;border-radius:50%;background:radial-gradient(ellipse,color-mix(in srgb,var(--companion-accent),transparent 40%),transparent 65%);box-shadow:0 0 0 12px #e4c6700a,0 0 0 14px #d6c47b22}
.partner-halo:before{content:'';position:absolute;inset:-20px;border:1px dashed #d6c47b66;border-radius:50%}
.loadout-chart{width:100%;min-width:0}.ability-chart{display:block;width:100%;max-width:310px;margin:auto;overflow:visible}.chart-grid{fill:#7dbec508;stroke:#8fbcb640;stroke-width:1}.chart-axis{stroke:#a0c3c04d}.chart-value{fill:#73eac057;stroke:#a6f5c0;stroke-width:2}.chart-dot{fill:#fff0ad;stroke:#fafcf0;stroke-width:1}.ability-chart text{font:700 12px sans-serif;fill:#dcefeb}.ability-chart .chart-number{font:900 16px Arial;fill:#fff0ae}.ability-chart .chart-caption{font-size:9px;font-weight:400;fill:#a0bdbc}
.loadout-editor{padding:26px}.loadout-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.loadout-heading h2{font-size:25px;color:#214e54;line-height:1.5;margin:6px 0}.loadout-heading .kicker{font:700 9px Arial;letter-spacing:2px;color:#758684}
.loadout-guide{font-size:12px;line-height:1.8;color:#57706a;margin:8px 0}.tech-count{display:block;flex-shrink:0;font-size:13px;font-weight:900;padding:9px 15px;border:1px solid #c6c3a5;background:#f0eddb;border-radius:8px;color:#335453;text-decoration:none}.tech-count span{display:block;font-size:10px;text-align:right;margin-top:3px}
.loadout-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:24px 0 18px}.loadout-slot{min-width:0}.slot-heading{display:flex;align-items:center;gap:6px;font-size:18px;font-weight:900;margin-bottom:12px}.slot-heading .hand-icon{width:35px;height:35px}.slot-heading>small{font-size:10px;font-weight:500;color:#6f827b}.slot-heading>b{margin-left:auto;font-size:10px;padding:4px 6px;background:#f9ce66;color:#704212;border-radius:4px;white-space:nowrap}
.tech-card{--card-ink:#a0dcd0;position:relative;isolation:isolate;overflow:hidden;border:2px solid #8f9b93;border-radius:17px;padding:12px;color:#fff9e5;text-align:left;background:linear-gradient(125deg,#f5f7e9 0%,#afbab1 5%,#f8fbeb 14%,#cad8d0 18%,#728990 50%,#edf2db 72%,#acbdba 95%,#fcfbea);box-shadow:0 5px #566768,0 10px 20px #1a393526;transition:transform .2s,box-shadow .2s}
.tech-card:before{content:'';position:absolute;inset:10px;border:1px solid #e6cf8d;border-radius:6px;background:linear-gradient(165deg,color-mix(in srgb,var(--card-ink) 30%,#102938),#112d35);z-index:-2}
.tech-card:after{content:'';position:absolute;inset:3px;pointer-events:none;border:1px solid #fff9;border-radius:13px;z-index:5}
.tech-foil{position:absolute;inset:0;pointer-events:none;z-index:4;opacity:.19;background:linear-gradient(125deg,transparent 30%,#ffffff5a 40%,#bffaff77 42%,transparent 44%,transparent 75%,#fff6 76%,transparent 77%)}
.rare-card{border-color:#b39c64;background:linear-gradient(125deg,#fff5cb,#b68b45 6%,#eeecc4 14%,#b8e0d3 19%,#ab9271 50%,#fff5be 72%,#af9060 95%,#ffebad)}
.tech-card header{position:relative;min-height:91px;padding:31px 3px 6px 59px}.tech-number{position:absolute;right:0;top:1px;letter-spacing:1.3px;font:700 8px/1.5 Arial;color:#e1e8d2}.tech-category{display:block;font-size:9px;letter-spacing:1px;color:var(--card-ink);margin-bottom:4px}
.tech-hand{position:absolute;left:2px;top:16px;background:radial-gradient(#254352,#101f31);border:2px solid #d7c089;border-radius:50%;width:51px;height:51px;display:grid;place-items:center;box-shadow:0 0 0 3px #081e2e66,inset 0 0 12px #fff2;z-index:6}.tech-hand .hand-icon{width:43px;height:43px;filter:drop-shadow(0 3px 2px #0006)}
.tech-card h3{font-size:18px;line-height:1.35;margin:0;color:#fff4c6;text-shadow:1px 2px #102b34;overflow-wrap:anywhere}
.tech-art{position:relative;height:240px;overflow:hidden;margin:0;border-top:1px solid #fff3;border-bottom:1px solid #d9bd6b;isolation:isolate;background:#1e393b}
.tech-illustration{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.tech-art-title{background:linear-gradient(transparent,#102634b3);padding:14px 4px 6px;position:absolute;bottom:6px;left:0;right:0;text-align:center;font:700 8px/1 Arial;letter-spacing:3px;color:#fffad6;z-index:3;text-shadow:0 2px 3px #000}
.tech-rarity{display:flex;justify-content:space-between;gap:4px;font-size:8px;letter-spacing:.06em;color:var(--card-ink);padding:7px 5px 4px}.tech-rarity span:last-child{color:#dfc883;font-size:7px;white-space:nowrap}
.tech-description{font-size:11px;line-height:1.75;min-height:57px;margin:0;padding:5px 6px 8px;color:#e1eae1}.tech-trigger{text-align:center;font-weight:900;font-size:12px;color:#ffdc82;padding:9px 2px;background:#0a222eb3;border-block:1px solid #bca97955}
.tech-bottom{display:flex;align-items:center;gap:7px;padding:8px 4px 4px}.tech-compatibility{flex:1;min-width:0}.tech-compatibility>small{font-size:8px;color:#d7ddcc}.tech-compatibility>div{display:grid;grid-template-columns:repeat(6,1fr);gap:2px;margin-top:5px}.tech-compatibility span{background:#eee0af;border:1px solid #c5a25e;color:#39484a;text-align:center;border-radius:2px}.tech-compatibility span small{display:block;font:8px/1.4 Arial;border-bottom:1px solid #90785744}.tech-compatibility span b{display:block;font-size:14px;line-height:1.5}
.tech-value{flex-shrink:0;display:flex;flex-direction:column;justify-content:center;align-items:center;width:62px;height:62px;background:radial-gradient(#285968,#0a3547);border:3px double #efdba0;border-radius:50%;color:#ffdf90;box-shadow:0 3px 8px #0005}.tech-value small{font-size:7px;font-weight:900;color:#d7e2d4}.tech-value b{font:900 30px/1.2 Arial}
.tech-lock-label,.tech-owned{text-align:center;margin:8px -2px -1px;padding:5px;font-size:10px;font-weight:900;border-top:1px solid #d8c28255;color:#e1d4ad}.tech-lock-label{background:#102b33;color:#e9dfc0}.tech-locked .tech-art{filter:saturate(.25);opacity:.7}.tech-locked .tech-foil{opacity:.05}
.loadout-power{display:flex;align-items:center;justify-content:center;gap:10px;margin:11px 0 1px;font-size:12px;color:#57716c}.loadout-power i{font-style:normal;color:#a79c7f}.loadout-power b{font:900 26px Arial;color:#b3612c}.loadout-effect{font-size:11px;color:#367864;line-height:1.6;text-align:center;min-height:19px}.loadout-effect.unusable{color:#a2463c}.tech-empty{min-height:493px;background:#e6ecdf;border:3px dashed #9aa991;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#53674f;gap:12px}.tech-empty small{font-size:13px}
.tech-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;max-width:1010px;margin:26px auto}.collection-intro{padding:24px 26px;border-radius:15px;background:#fff9e8;border:2px solid #abb9a1}.collection-intro h2{font-size:24px;margin:5px 0 10px}.collection-intro p{font-size:13px;line-height:1.8}
.prototype-rules{border:2px solid #a7baa0;border-radius:12px;padding:16px;margin:20px 0;background:#fffbed;line-height:1.8}.prototype-rules summary{cursor:pointer;font-weight:900}.prototype-rules p{font-size:13px;margin:9px 0}
.duel-choose-tip{font-size:15px;margin-bottom:16px;text-align:center}.simple-duel .duel-hand-options button{display:flex;flex-direction:column;align-items:center;padding:9px 3px 12px;min-width:0}.simple-duel .duel-hand-options .hand-icon{width:62px;height:62px}.simple-duel .duel-hand-options em{font-size:18px;font-style:normal;color:#8d451a;margin:4px 0}.simple-duel .duel-hand-options .hand-tech-name{font-size:11px;line-height:1.4;overflow-wrap:anywhere}.simple-duel .duel-hand-options button:disabled{filter:grayscale(1);opacity:.5;background:#b8c5c7;cursor:not-allowed;box-shadow:none}
.duel-learning-note{text-align:center;line-height:1.6;font-size:12px;margin:10px 0}.math-feedback{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;padding:14px;background:#fff4d7;border:2px solid #d7a969;border-radius:10px}.math-feedback.correct{background:#ebffe2;border-color:#88b574}.math-feedback span{font-size:25px;font-weight:900}.duel-next{text-align:center;margin-top:14px}.duel-next button{min-width:200px}.simple-duel .duel-round-result{font-size:19px;white-space:normal;width:max-content;max-width:95%;text-align:center}.simple-duel .duel-round-result small{margin-top:3px}
.hand-stock-row{display:flex;justify-content:space-between;padding:3px 20px 10px;background:#173448;border-bottom:1px solid #cbdcad33}.hand-stock-row>div{display:flex;align-items:center;gap:6px}.hand-stock-row small{font-size:10px;color:#bdd5d5;margin-right:4px}.stock-hand{position:relative;background:#e9ddbb22;border:1px solid #c9dcd166;border-radius:7px;display:inline-flex;padding:3px}.stock-hand .hand-icon{width:26px;height:26px}.stock-hand.used .hand-icon{opacity:.2;filter:grayscale(1)}.stock-hand b{position:absolute;inset:0;display:grid;place-items:center;color:#dcc8a0;font-size:12px}
@keyframes partner-float{50%{transform:translateY(-7px)}}
@media(hover:hover){.tech-card:hover{transform:translateY(-5px) rotate(-.4deg);box-shadow:0 8px #566768,0 15px 22px #1a39352b}}
@media(max-width:900px){.loadout-editor{padding:18px}.loadout-grid{gap:13px}.loadout-hero{padding:18px;gap:0;grid-template-columns:1fr 1fr 1fr}.loadout-identity h2{font-size:23px}.partner-strength b{font-size:48px}.loadout-heading h2{font-size:21px}.tech-card{padding:10px}.tech-card header{padding-left:47px;min-height:91px}.tech-hand{width:41px;height:41px;top:24px}.tech-hand .hand-icon{width:36px;height:36px}.tech-card h3{font-size:16px}.tech-art{height:195px}.tech-art .sprite{width:195px;height:195px}.tech-value{width:52px;height:52px}.tech-value b{font-size:27px}.tech-bottom{gap:4px;padding-inline:1px}.slot-heading{font-size:15px;gap:3px}.slot-heading>small{display:none}.tech-library-grid{gap:16px}.tech-description{font-size:10px}.tech-count{font-size:11px;padding:8px}}
@media(max-width:620px){.loadout-hero{grid-template-columns:1fr 1fr;padding:22px 15px 10px;min-height:0}.loadout-identity h2{font-size:24px}.loadout-identity{align-self:center;z-index:2}.loadout-companion .sprite{width:125%;max-width:260px}.loadout-chart{grid-column:1/-1;width:240px;margin:0 auto}.loadout-chart .ability-chart{margin-top:-5px}.partner-strength{margin:16px 0 4px}.partner-strength b{font-size:46px}.loadout-identity>p{gap:4px;font-size:10px}.loadout-identity>p .hand-icon{width:29px;height:29px}.loadout-heading{align-items:start;gap:8px}.loadout-heading h2{font-size:18px;max-width:220px}.tech-count{font-size:10px;padding:7px;min-width:80px}.loadout-guide{font-size:11px}.loadout-grid{grid-template-columns:1fr;gap:25px;max-width:320px;margin:20px auto}.slot-heading{font-size:20px}.slot-heading>small{display:block}.slot-heading>b{font-size:12px}.tech-card{padding:12px}.tech-card header{padding-left:61px;min-height:89px}.tech-hand{width:51px;height:51px;top:16px}.tech-hand .hand-icon{width:45px;height:45px}.tech-card h3{font-size:21px}.tech-category{font-size:10px}.tech-number{font-size:9px}.tech-art{height:250px}.tech-art .sprite{width:235px;height:235px}.tech-description{font-size:12px;min-height:57px}.tech-trigger{font-size:13px}.tech-value{width:65px;height:65px}.tech-value b{font-size:32px}.tech-value small{font-size:8px}.tech-compatibility span small{font-size:9px}.tech-compatibility span b{font-size:18px}.tech-rarity{font-size:9px}.tech-library-grid{grid-template-columns:1fr;max-width:320px;gap:25px}.collection-intro{padding:18px}.collection-intro h2{font-size:20px}.simple-duel .duel-hand-options .hand-tech-name{font-size:10px}.simple-duel .duel-hand-options .hand-icon{width:49px;height:49px}.simple-duel .duel-turn-warning{font-size:11px}.simple-duel .duel-hud small{font-size:9px}.simple-duel .duel-hud .hand-icon{width:19px;height:19px}.simple-duel .duel-round-result{font-size:15px}.simple-duel .duel-actor{bottom:42px}.simple-duel .duel-arena{height:280px}.hand-stock-row{padding:2px 10px 10px}.hand-stock-row>div{gap:3px;flex-wrap:wrap;max-width:48%}.hand-stock-row small{width:100%;margin:0 0 3px}.stock-hand .hand-icon{width:22px;height:22px}.duel-choose-tip{font-size:12px}.duel-choose-tip b{display:block;margin-top:4px}}
.deck-check{display:flex;gap:14px;align-items:baseline;padding:12px 15px;border:1px solid #c8b876;border-radius:9px;background:#fff1ba;color:#475349;font-size:13px;line-height:1.7}.deck-check b{white-space:nowrap;color:#83572b}.enemy-rank{font-size:12px;font-weight:900;color:#6a4779}.battle-strategy{border-left:4px solid #d1a454;background:#fff0c5;padding:12px 16px;margin:12px 0}.battle-strategy p{font-size:13px}.battle-strategy .hand-icon{width:25px;height:25px;vertical-align:middle}.battle-strategy strong{color:#a44427}@media(max-width:620px){.deck-check{display:block;font-size:12px}.deck-check b{display:block}.battle-strategy{padding:9px}.battle-strategy p{font-size:12px}}
