:root{color-scheme:dark;--bg:#090f19;--surface:#111a29;--surface2:#172233;--outline:#2a3950;--line:#263248;--muted:#8092ab;--white:#edf4ff;--cream:#fff1c8;--gold:#ffce6c;--green:#54e2b0;--blue:#67bafe;--red:#f27779;--shadow:0 8px 28px rgba(0,0,0,.27)}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:system-ui,-apple-system,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;background:#070d15;color:var(--white);-webkit-font-smoothing:antialiased}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.44;cursor:not-allowed}button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}#app{height:100dvh;min-height:730px;display:flex;flex-direction:column;background:radial-gradient(circle at 60% 0,#1e2639,#080e16 60%);overflow:hidden}.topbar{height:70px;min-height:70px;display:flex;align-items:center;padding:0 24px;justify-content:space-between;background:linear-gradient(#142032,#0e1624);border-bottom:1px solid #344258;box-shadow:0 3px 15px #050a13a8;z-index:3;gap:18px}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-icon{height:42px;width:42px;display:grid;place-items:center;background:linear-gradient(145deg,#172e3f,#101827);border:1px solid #304b61;border-radius:12px;box-shadow:inset 0 0 18px #75deac18}.pokeball{width:29px;height:29px;display:block;position:relative;border:2px solid #e7e9eb;border-radius:50%;background:linear-gradient(to bottom,#f37b70 0 45%,#222c3b 46% 55%,#f2f2e8 56%);box-shadow:0 0 0 2px #24354a,0 4px 13px #0005}.pokeball:before{content:"";width:10px;height:10px;background:#f5f7f7;border:3px solid #263345;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%}.brand-text strong{display:block;color:#fcf4e4;letter-spacing:1.9px;font-size:20px;line-height:1.2;font-weight:900}.brand-text strong em{color:#f9ce74;font-style:normal}.brand-text small{display:block;font-size:10px;color:#aebcd1;font-weight:800;letter-spacing:1.5px;margin-top:5px}.brand-demo{color:#72cfad;font-size:9px;margin-left:3px}.header-middle{display:flex;align-items:center;gap:16px;font-size:12px;color:#b7c7d9;white-space:nowrap}.map-badge{padding:8px 12px;border:1px solid #385345;border-radius:7px;background:#23392d;color:#d8f3cd;font-weight:700}.head-sep{height:25px;width:1px;background:#3b4559}.round-text b{font-size:17px;color:var(--gold);margin-left:5px}.phase-pill{display:flex;gap:7px;align-items:center;padding:7px 12px;border:1px solid #35715c;background:#173f33;color:#70ecc2;border-radius:20px;font-size:11px;font-weight:800}.phase-pill i{display:block;background:currentColor;width:7px;height:7px;border-radius:50%;box-shadow:0 0 9px currentColor}.phase-pill.fighting{border-color:#e98959;background:#42291e;color:#ffbb7e}.header-end{display:flex;align-items:center;gap:11px}.top-stat{display:flex;align-items:center;gap:6px;min-width:67px}.top-stat>span{color:#fa898e;font-size:18px}.top-stat:nth-child(2)>span{color:var(--gold)}.top-stat strong{font-size:18px;font-weight:900}.top-stat small{color:#8592ac;font-size:10px;margin-left:-3px}.icon-btn{border:1px solid #37445e;background:#1d2a3e;color:#cfe3ef;width:33px;height:33px;border-radius:8px;font-weight:900;font-size:17px}.icon-btn:hover{background:#263a50}.layout{display:grid;grid-template-columns:232px minmax(330px,1fr) 257px;flex:1;min-height:0;overflow:hidden}.sidebar{background:#0f1725;min-height:0;display:flex;flex-direction:column;gap:10px;padding:12px 10px;overflow:auto;scrollbar-width:thin;scrollbar-color:#324058 #121926}.sidebar-left{border-right:1px solid #304059}.sidebar-right{border-left:1px solid #304059}.side-card{background:linear-gradient(160deg,#192437,#121d2d);border:1px solid #30415b;border-radius:10px;padding:13px;box-shadow:inset 0 1px #ffffff0a}.eyebrow{font-size:9px;font-weight:900;letter-spacing:1.7px;color:#73a9af}.trainer-row{display:flex;gap:10px;align-items:center;margin:10px 0 16px}.trainer-avatar{display:grid;place-items:center;width:45px;height:45px;flex-shrink:0;border-radius:11px;border:1px solid #4c6280;color:#ffdc8b;font-size:24px;background:linear-gradient(145deg,#40516b,#171f30)}h1,h2,h3,p{margin-top:0}.trainer-row h2{font-size:13px;line-height:1.4;margin:0}.trainer-row p{font-size:10px;color:#8299b4;margin:4px 0 0}.section-title,.level-row,.micro-row,.side-title{display:flex;align-items:center;justify-content:space-between}.section-title{font-size:11px;font-weight:600;color:#9aadc6}.section-title b{color:#f3c4c0}.progress{height:7px;background:#090e19;border-radius:10px;overflow:hidden;border:1px solid #2d3b4b;margin-top:6px}.progress i{height:100%;width:100%;display:block;background:linear-gradient(90deg,#ed666b,#ffb19e);border-radius:9px;transition:width .4s}.xp-progress{height:5px}.xp-progress i{background:linear-gradient(90deg,#5cacf1,#8de6f9);width:0}.level-row{font-size:10px;color:#9cbbcc;margin-top:14px}.level-row b{color:#f1e4b3}.compact-btn{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;margin-top:12px;padding:9px 10px;background:linear-gradient(#273e4c,#1a3040);border:1px solid #436576;border-radius:7px;color:#c4edf4;font-size:11px;font-weight:800}.compact-btn:hover{filter:brightness(1.2)}.compact-btn>b{font-size:15px;color:#71daba}.compact-btn>span{margin-left:auto;color:var(--gold)}.coin{color:#ffce69}.side-title{font-size:12px;font-weight:850;padding-bottom:8px;border-bottom:1px solid #344358}.side-title small{color:#8298b5;font-size:9px;font-weight:650}.side-explainer{color:#8196ad;font-size:10px;line-height:1.5;margin:9px 0}.synergy-list{display:flex;flex-direction:column;gap:6px}.empty-note{font-size:11px;color:#6b809c;padding:15px 4px;line-height:1.6;text-align:center}.synergy-entry{display:flex;align-items:center;gap:8px;background:#131c2b;border-radius:7px;border:1px solid #293b50;padding:6px 8px;transition:.2s}.synergy-entry.active{background:#243c32;border-color:#548566}.syn-icon{width:28px;height:28px;border:1px solid #46556a;background:#283346;border-radius:7px;display:grid;place-items:center;font-size:17px}.synergy-entry.active .syn-icon{background:#3a5b47;border-color:#628a67}.syn-data{flex:1;min-width:0}.syn-top{display:flex;justify-content:space-between;gap:5px;font-size:11px}.syn-top span{font-weight:800}.syn-top b{color:#a2b7c9;font-size:10px}.syn-progress{height:3px;background:#314355;overflow:hidden;margin-top:5px;border-radius:8px}.syn-progress i{display:block;background:#79dabb;height:100%}.syn-desc{font-size:9px;color:#8faba0;margin-top:4px}.weather-tag{background:#374458;color:#daebff;border-radius:5px;font-size:9px;padding:4px 6px}.encounter-name{font-size:13px;font-weight:850;margin-top:12px}.info-card p{font-size:10px;color:#9aadc3;line-height:1.6;margin:7px 0}.info-divider{border-top:1px dashed #3b4a63;margin:9px 0}.micro-row{font-size:10px;color:#8e9fba;margin:8px 0}.micro-row b{color:#e2ebf6}.side-footnote{color:#556881;font-size:9px;line-height:1.8;text-align:center;margin:auto 2px 4px}.arena-column{display:flex;flex-direction:column;min-width:0;min-height:0;background:#101a24}.arena-toolbar{height:37px;min-height:37px;padding:0 15px;background:linear-gradient(#24303f,#1c2a33);border-bottom:1px solid #415167;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;position:relative;z-index:1}.live-indicator{color:#87e6b0;font-size:8px;margin-right:5px}.arena-toolbar strong{color:#e3f4e8;margin-right:9px}.arena-toolbar #arena-caption{font-size:10px;color:#a6b8c8}.toolbar-right{display:flex;align-items:center;gap:10px;color:#b9c7d5;font-size:10px}.text-btn{border:1px solid #536673;border-radius:6px;background:#1d303f;color:#d2e9ea;padding:5px 9px;font-size:10px;font-weight:800}.text-btn:hover{filter:brightness(1.2)}.arena-wrap{position:relative;min-height:0;flex:1;overflow:hidden;background:#253626}.arena-wrap canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.arena-side-label{pointer-events:none;position:absolute;left:12px;color:#ffd7c6aa;font-size:9px;letter-spacing:1.2px;font-weight:900;text-shadow:0 1px 3px #000b}.arena-side-label span{display:block;font-size:9px;letter-spacing:0;font-weight:600;margin-top:3px}.enemy-label{top:15px}.ally-label{bottom:15px;color:#bdf5c9b8}.arena-toast{position:absolute;left:50%;top:12%;transform:translateX(-50%) translateY(-10px);background:#182436ec;border:1px solid #86dcb4;color:#ecffec;padding:10px 17px;border-radius:22px;font-size:13px;font-weight:900;box-shadow:0 6px 30px #050d1488;opacity:0;pointer-events:none;transition:opacity .22s,transform .22s;z-index:4;white-space:nowrap}.arena-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.arena-bottom{height:28px;min-height:28px;background:linear-gradient(#1b2a2d,#18242b);border-top:1px solid #3d4f44;display:flex;align-items:center;justify-content:space-between;padding:0 13px}.arena-tip{font-size:10px;color:#c2c4a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tip-orbit{color:#ffd77c;font-size:14px}.stage-dots{display:flex;gap:5px}.stage-dots span{width:6px;height:6px;border-radius:4px;background:#647681}.stage-dots span.active{background:#fbd079;box-shadow:0 0 9px #fbd079}.unit-inspector{padding-top:11px}.empty-inspector{text-align:center;padding:18px 6px;color:#8498b2}.empty-inspector>span{width:53px;height:53px;border:1px dashed #415267;border-radius:50%;display:grid;place-items:center;margin:auto;font-size:28px;color:#7290a8}.empty-inspector strong{display:block;margin-top:12px;font-size:12px;color:#bbcade}.empty-inspector p{font-size:10px;line-height:1.6;margin:7px 0 2px}.unit-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}.unit-portrait{height:64px;width:64px;display:grid;place-items:center;flex-shrink:0;background:radial-gradient(#35455b,#1d293a);border:1px solid #4a5675;border-radius:10px;overflow:hidden}.unit-portrait img{object-fit:contain;max-height:58px;max-width:60px;image-rendering:pixelated}.unit-title h3{font-size:16px;margin:0 0 5px}.unit-meta{font-size:10px;color:#acc0d1}.star-line{letter-spacing:2px;color:#fcd46e;margin-top:5px;font-size:11px}.unit-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.unit-stat{padding:7px;border-radius:6px;border:1px solid #30415a;background:#121b2a}.unit-stat small{display:block;font-size:9px;color:#869eb5}.unit-stat strong{display:block;margin-top:4px;color:#e1eaf7;font-size:13px}.skill-box{margin-top:10px;border:1px solid #365366;border-radius:7px;padding:9px;background:#172a36}.skill-box b{font-size:11px;color:#8cdbf3}.skill-box p{margin:6px 0 0;font-size:10px;color:#b0bac8;line-height:1.5}.equip-list{display:flex;gap:5px;margin-top:8px;min-height:32px}.equip-slot{height:31px;min-width:31px;padding:4px 7px;display:grid;place-items:center;background:#0e1928;border:1px dashed #40516a;border-radius:6px;font-size:17px}.sell-btn{padding:8px;border-radius:6px;border:1px solid #755046;background:#422923;color:#ffa997;font-size:11px;font-weight:850;width:100%;margin-top:11px}.sell-btn:hover{background:#533329}.item-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.item-slot{height:41px;background:#0c1422;border:1px solid #35465e;border-radius:7px;display:grid;place-items:center;font-size:21px;position:relative}.item-slot:hover{background:#253b4f;border-color:#b7d7a4}.item-slot.selected{border-color:#ffd477;box-shadow:0 0 0 2px #ffd4774d,inset 0 0 8px #ffd47733}.item-slot small{position:absolute;right:3px;bottom:2px;color:#a0b3ca;font-size:8px}.recipe-note{font-size:9px;color:#73889f;line-height:1.6;margin-top:8px}.battle-log{font-size:10px;color:#9bacc0;line-height:1.7;display:flex;flex-direction:column;gap:5px;max-height:140px;overflow:auto;scrollbar-width:thin}.log-line{border-left:2px solid #506478;padding-left:7px}.log-line.good{border-color:#7edac0;color:#b8e9d8}.log-line.bad{border-color:#d98181;color:#eab9ac}.log-line.gold{border-color:#d6b269;color:#f4de9d}.game-footer{min-height:266px;height:266px;display:flex;flex-direction:column;background:linear-gradient(180deg,#121c2c,#0b1421);border-top:2px solid #4d6174;box-shadow:0 -6px 22px #02071080;z-index:2;padding:7px 17px 0}.footer-head{height:83px;display:flex;align-items:center;gap:13px;border-bottom:1px solid #344053;padding-bottom:7px}.bench-title{width:151px;flex-shrink:0;display:flex;flex-direction:column;gap:3px}.bench-title b{font-size:13px;letter-spacing:.5px}.bench-title small{font-size:9px;color:#8495a9}.bench-counter{font-size:10px;color:#91d9c2}.bench{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px;flex:1;min-width:0}.bench-slot{height:62px;max-width:76px;width:100%;position:relative;border:1px dashed #41536b;background:linear-gradient(#1a2736,#111b29);border-radius:8px;display:flex;align-items:center;justify-content:center;transition:.15s;cursor:pointer}.bench-slot.occupied{border-style:solid;border-color:#4b6177;background:linear-gradient(#2a3649,#152338)}.bench-slot.occupied:hover,.bench-slot.selected{border-color:#e7cb78;background:#353c44;box-shadow:0 0 0 1px #ffcf7233}.bench-slot img{max-width:66px;max-height:54px;object-fit:contain;image-rendering:pixelated;pointer-events:none}.bench-slot .bench-num{position:absolute;left:4px;top:3px;font-size:9px;color:#6d8098}.bench-slot .bench-stars{position:absolute;bottom:0;right:3px;color:#ffdc89;font-size:10px;font-weight:900;text-shadow:0 1px 3px #0c101a}.bench-slot .bench-cost{position:absolute;top:1px;right:4px;font-size:9px;color:#ffd479}.deploy-button{height:61px;width:148px;min-width:123px;border:1px solid #b6924f;border-radius:10px;color:#312618;font-weight:950;background:linear-gradient(165deg,#ffe1a0,#fbb85c);box-shadow:0 3px 0 #7a5129,inset 0 1px #fff1c9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:16px}.deploy-button:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}.deploy-button small{font-size:9px;color:#775632;letter-spacing:1px}.deploy-triangle{font-size:12px;display:inline}.deploy-button.fighting{color:#e3e7ed;background:linear-gradient(#586575,#364454);border-color:#607284;box-shadow:none}.shop-area{display:flex;gap:13px;align-items:stretch;flex:1;min-height:0;padding-top:8px}.shop-sidebar{width:151px;flex-shrink:0;display:flex;flex-direction:column;gap:5px}.shop-sign{font-size:13px;font-weight:900;white-space:nowrap}.shop-sign span{color:var(--gold)}.shop-odds{font-size:9px;color:#829ab1;margin-bottom:3px}.reroll-btn,.lock-btn{display:flex;align-items:center;gap:5px;padding:7px 9px;border-radius:7px;border:1px solid #47705f;background:#223c34;color:#c1efdb;font-size:11px;font-weight:800;text-align:left;min-height:26px}.reroll-btn span{font-size:16px}.reroll-btn b{margin-left:auto;color:var(--gold)}.reroll-btn small,.lock-btn small{border:1px solid #587163;padding:1px 4px;border-radius:3px;font-size:8px}.reroll-btn:hover,.lock-btn:hover{filter:brightness(1.18)}.lock-btn{padding:5px 9px;background:#1c293b;border-color:#344964;color:#a6bfd6}.lock-btn.locked{border-color:#dab866;color:#f9d790}.lock-btn small{margin-left:auto}.shop-cards{flex:1;min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.shop-card{border:1px solid var(--tier,#465a72);border-radius:9px;overflow:hidden;position:relative;min-width:0;cursor:pointer;display:flex;flex-direction:column;background:linear-gradient(150deg,var(--tier-bg,#213042),#10192a 80%);box-shadow:inset 0 1px #ffffff17}.shop-card:hover:not(.sold):not(.locked){transform:translateY(-3px);border-color:#fff0bd;filter:brightness(1.1);box-shadow:0 8px 24px #0008;transition:transform .12s}.shop-card.sold{cursor:default;opacity:.42}.shop-card.locked{cursor:not-allowed}.shop-top{position:relative;height:78px;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse at 50% 64%,#d2efb229,transparent 65%)}.shop-top img{height:75px;max-width:92px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 6px 2px #050a1380);pointer-events:none}.shop-cost{position:absolute;left:6px;top:6px;background:#101725c2;border:1px solid #ffffff36;border-radius:12px;color:var(--gold);font-size:10px;font-weight:950;padding:2px 6px}.shop-cost:before{content:'✦ ';color:#f8cb6a}.shop-name{font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:850;padding:3px 7px 0;text-align:center}.shop-meta{text-align:center;font-size:9px;color:#aebace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:2px 5px}.shop-price{border-top:1px solid #ffffff18;margin-top:auto;text-align:center;padding:5px 0;font-size:10px;color:#dfe8f0;background:#00000020;font-weight:700}.shop-card.sold:after{content:'구매 완료';position:absolute;inset:0;display:grid;place-items:center;background:#080e1ca8;color:#e5eaf0;font-weight:850;font-size:12px}.footer-status{height:19px;min-height:19px;margin-top:3px;display:flex;align-items:center;justify-content:space-between;color:#576c84;font-size:9px;gap:12px}.footer-status span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overlay{position:fixed;inset:0;z-index:20;background:radial-gradient(ellipse at 50% 36%,#24423aa6,#040a13ea 58%,#03060aeD);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(8px)}.hidden{display:none!important}.start-card{background:radial-gradient(ellipse at 50% 0,#314849,#122231 38%,#0c1523 85%);border:1px solid #6b856e;border-radius:17px;padding:23px 37px 26px;text-align:center;width:min(100%,675px);box-shadow:0 22px 100px #000c,inset 0 1px #ffffff30;max-height:95vh;overflow:auto;position:relative}.start-banner{border:1px solid #516d72;border-radius:20px;padding:6px 17px;font-size:10px;color:#a8e2ca;display:inline-block;letter-spacing:2px;font-weight:850}.start-pokeball{display:grid;place-items:center;margin:18px auto 5px}.start-pokeball .pokeball{width:40px;height:40px}.start-eyebrow{font-size:12px;color:#f4d794;font-weight:800;letter-spacing:2px;margin:11px 0 4px}.start-card h1{font-size:36px;line-height:1.26;margin:0;font-weight:950;color:#fff8e7;text-shadow:0 4px 18px #0005}.start-card h1 span{display:block;color:#f1d18b;font-size:14px;letter-spacing:4px;margin-top:7px}.start-description{font-size:12px;color:#a9bbca;line-height:1.8;margin:15px 0 18px}.start-card h2{font-size:15px;font-weight:850;margin:0 0 11px}.starter-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.starter-choice{position:relative;border:1px solid #4b665f;border-radius:12px;padding:13px 9px 12px;background:linear-gradient(#273d3e,#172739);color:#edf4ff;display:flex;flex-direction:column;align-items:center;gap:5px}.starter-choice:hover{border-color:#efdd9a;transform:translateY(-4px);background:linear-gradient(#385751,#233c41);box-shadow:0 8px 24px #0007}.starter-choice img{height:94px;width:120px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 5px 4px #0006)}.starter-choice strong{font-size:15px}.starter-choice small{font-size:10px;color:#a7c3c3}.starter-choice .starter-tag{position:absolute;top:8px;left:9px;font-size:10px;background:#12251c;border-radius:9px;padding:4px 6px}.start-note{font-size:10px;color:#8298aa;line-height:1.7;margin:19px 0 0}.modal-card{background:#142133;border:1px solid #526582;border-radius:14px;box-shadow:0 25px 100px #000b;padding:26px;position:relative;width:min(650px,95vw)}.modal-close{position:absolute;right:16px;top:16px;border:0;background:#28384c;border-radius:6px;color:white;width:30px;height:30px}.help-card h2{font-size:23px;margin:12px 0 20px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.help-grid>div{padding:12px;border:1px solid #37485d;border-radius:8px;background:#1a2b3d}.help-grid b{font-size:12px;color:#f7d69d}.help-grid p{font-size:11px;line-height:1.7;color:#b3c4d8;margin:6px 0 0}.hotkeys{color:#92b1c1;font-size:11px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:17px 0}.hotkeys kbd{border:1px solid #67778a;padding:3px 5px;background:#2b3d4c;border-radius:4px;color:white}.primary-btn{border:1px solid #b99550;border-radius:9px;background:linear-gradient(155deg,#ffe59e,#edac56);color:#50391e;font-weight:950;font-size:14px;padding:11px 25px;box-shadow:0 3px #9c683a;cursor:pointer}.primary-btn:hover{filter:brightness(1.12)}.combat-result{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;background:radial-gradient(ellipse at 50% 0,#234c42ed,#0e1a2bef 65%);border:1px solid #b7a775;border-radius:13px;padding:22px 36px 26px;width:min(350px,75%);box-shadow:0 12px 80px #000b;animation:result-open .35s ease-out}@keyframes result-open{from{opacity:0;transform:translate(-50%,-43%) scale(.91)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.result-sparkles{color:#ffdb75;letter-spacing:12px;font-size:19px}.combat-result>span{display:block;font-size:10px;letter-spacing:3px;color:#c4e4cf;margin-top:7px}.combat-result h2{font-size:42px;color:#ffdd8b;margin:7px 0;text-shadow:0 3px 10px #0006}.combat-result.lose h2{color:#f5a4a1}.combat-result p{font-size:12px;line-height:1.7;color:#c5d2d6;margin-bottom:12px}.result-rewards{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0 23px;font-size:12px;color:#fcd483;font-weight:850}.result-rewards span{padding:7px 10px;border:1px solid #6b674f;border-radius:7px;background:#202932}.global-toast{position:fixed;bottom:250px;left:50%;transform:translateX(-50%) translateY(12px);padding:10px 18px;background:#222f41;color:#ffe4bd;border:1px solid #b7995c;border-radius:8px;font-size:12px;font-weight:800;z-index:40;opacity:0;pointer-events:none;transition:.2s}.global-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.arena-wrap.drag-over{outline:2px solid #b9ea93;outline-offset:-3px}@media(max-width:1370px){.layout{grid-template-columns:210px minmax(340px,1fr) 225px}.topbar{padding:0 15px}.sidebar{padding:9px 8px;gap:7px}.side-card{padding:10px}.game-footer{padding-left:12px;padding-right:12px}.bench-title,.shop-sidebar{width:125px}.deploy-button{width:121px;min-width:121px}.shop-cards{gap:6px}.brand-text strong{font-size:17px}}@media(max-width:1080px){.layout{grid-template-columns:175px minmax(330px,1fr)}.sidebar-right{display:none}.sidebar-left{padding:8px 6px}.side-card{padding:9px}.header-middle{gap:7px}.map-badge{padding:6px}.brand-demo{display:none}.side-footnote{font-size:8px}.shop-sidebar,.bench-title{width:111px}.shop-cards{gap:4px}.footer-status{font-size:8px}}@media(max-width:720px){#app{min-height:650px}.topbar{height:56px;min-height:56px;padding:0 8px}.brand-icon{display:none}.brand-text strong{font-size:13px}.brand-text small{font-size:8px;letter-spacing:1px}.header-middle .map-badge,.head-sep{display:none}.header-middle{gap:6px}.round-text{font-size:9px}.round-text b{font-size:12px}.phase-pill{font-size:9px;padding:4px 6px}.header-end{gap:4px}.top-stat{min-width:38px;gap:2px}.top-stat strong{font-size:13px}.top-stat small{display:none}.icon-btn{width:28px;height:28px}.layout{display:flex;min-height:0}.sidebar-left{display:none}.arena-column{width:100%}.game-footer{height:236px;min-height:236px;padding:5px 5px 0}.footer-head{height:76px;gap:4px}.bench-title{display:none}.bench{gap:2px}.bench-slot{height:58px}.bench-slot img{max-width:100%;max-height:49px}.deploy-button{min-width:77px;width:77px;font-size:11px}.shop-sidebar{width:79px}.shop-sign{font-size:10px}.shop-odds{font-size:8px}.reroll-btn,.lock-btn{padding:6px 3px;font-size:9px}.reroll-btn small,.lock-btn small{display:none}.shop-cards{gap:3px}.shop-top{height:65px}.shop-top img{height:62px;max-width:100%}.shop-name{font-size:10px;padding:2px}.shop-meta{font-size:8px}.shop-cost{padding:1px 3px;font-size:8px}.shop-price{font-size:9px}.arena-side-label{font-size:7px}.arena-side-label span{display:none}.arena-toolbar{height:32px;min-height:32px;padding:0 6px}.arena-toolbar #arena-caption{display:none}.start-card{padding:18px 12px}.start-card h1{font-size:27px}.starter-options{gap:5px}.starter-choice img{width:100%;height:75px}.starter-choice strong{font-size:12px}.help-grid{grid-template-columns:1fr}.help-card{max-height:85vh;overflow:auto}.footer-status span:first-child{display:none}}
#casino-invitation{z-index:360}.casino-invite-card{width:min(470px,92vw);padding:24px;border:2px solid #d4aa53;border-radius:22px;background:linear-gradient(145deg,#252d4e,#151b32);box-shadow:0 20px 80px #000b;text-align:center}.casino-invite-card>.rocket-logo{font-size:58px;color:#fa5361;display:block}.casino-invite-card small{color:#ffd675}.casino-invite-card h2{font-size:22px}.casino-invite-card p{line-height:1.65;color:#d8e3fc}.casino-invite-card button{margin:4px;padding:10px 14px}#casino-btn{border-color:#d4aa53}
#hall-overlay,#region-confirm{z-index:370}.hall-panel{width:min(1000px,95vw)}.hall-record{padding:16px;margin:12px 0;border:1px solid #cdb76a;border-radius:16px;background:#1d2949}.hall-record header{display:flex;justify-content:space-between;gap:12px}.hall-record time{font-size:12px;color:#b2c4e6}.hall-team{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:6px}.hall-team>div{display:flex;flex-direction:column;align-items:center;background:#101c35;padding:8px;border-radius:12px}.hall-team img{width:70px;height:72px;object-fit:contain;image-rendering:pixelated}.hall-team span img{width:23px;height:23px}.hall-team strong{color:#ffda76}.hall-team small{font-size:10px}.elm-lab #oak-sprite{max-height:220px;width:auto;object-fit:contain;image-rendering:auto}.elm-lab .lab-floor{filter:hue-rotate(16deg)}@media(max-height:500px){.elm-lab #oak-sprite{max-height:112px}.hall-record header{display:block}.hall-team img{height:52px}.hall-team{grid-template-columns:repeat(5,1fr)}}
#mega-panel{z-index:365}.mega-stones{display:flex;flex-wrap:wrap;gap:8px}.mega-stones span{display:flex;align-items:center;background:#203451;border:1px solid #a6bde6;padding:4px 8px;border-radius:24px;font-size:12px}.mega-stones img{width:30px;height:30px;image-rendering:pixelated}.mega-roster{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.mega-roster article{display:flex;flex-direction:column;align-items:center;border:1px solid #a9c9f7;border-radius:12px;padding:10px;max-width:180px}.mega-roster article>img{height:80px;max-width:100px;object-fit:contain;image-rendering:pixelated}.mega-roster button{margin:4px;font-size:12px}.mega-roster small{color:#b7d1ed}#mega-btn{border-color:#b19aff;color:#e6d8ff}#dex-region{max-width:90px}

/* Keep the actual nine-member Hall team together on desktop. */
#hall-overlay .hall-panel{width:min(1200px,95vw)}
.hall-team{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}.hall-team>div{min-width:0}.hall-team>div>b{text-align:center;word-break:keep-all}.hall-team>div>span{display:flex;justify-content:center;flex-wrap:wrap}.hall-team .gear-icon{flex:none}
@media(max-width:700px){.hall-team{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* 명예의 전당 회차 번호(결정 94) */
.hall-round{color:#f3d58b;margin-right:4px;font-variant-numeric:tabular-nums}
/* 명예의 전당 V1 A 금빛 시상식(사용자 결정 105, 05 assets/hall-of-fame, LAYOUT.json A). #hall-overlay에만 적용(트레이너 터미널 안 목록은 그대로). 글자는 G-08(PT Read). */
#hall-overlay .hall-panel{position:relative;box-sizing:border-box;width:1200px;max-width:calc(100vw - 32px);height:811px;max-height:calc(100vh - 16px);display:flex;flex-direction:column;padding:44px 27px 0;overflow:hidden;background:#0d182d url(assets/hall-of-fame/A/A_bg_pc.webp) center/cover no-repeat;image-rendering:pixelated;color:#f0f3f7;border:0}
#hall-overlay .hall-panel>small{color:#acbcd1;letter-spacing:.12em}
#hall-overlay .hall-panel>h2{margin:2px 0 0 17px;font-size:30px;line-height:42px;color:#f0f3f7}
#hall-overlay .hall-panel>p{margin:2px 0 12px 17px;color:#acbcd1;font-size:13px}
#hall-overlay .hall-panel>.modal-close{position:absolute;right:16px;top:16px;width:52px;height:52px;z-index:3}
#hall-overlay .hall-trophy{position:absolute;left:540px;top:25px;width:120px;height:64px;background:url(assets/hall-of-fame/A/A_title_pc.webp) center/contain no-repeat;pointer-events:none}
#hall-overlay .hall-confetti{position:absolute;left:0;top:0;width:1200px;height:112px;background:url(assets/hall-of-fame/effects/A_confetti_pc_atlas.webp) 0 0/2400px 896px no-repeat;pointer-events:none;z-index:2;opacity:0}
#hall-overlay .hall-confetti.play{opacity:1;animation:hall-confetti-pc 533ms steps(1,end) forwards}
@keyframes hall-confetti-pc{0.000%{background-position:0px 0px}6.250%{background-position:-1200px 0px}12.500%{background-position:0px -112px}18.750%{background-position:-1200px -112px}25.000%{background-position:0px -224px}31.250%{background-position:-1200px -224px}37.500%{background-position:0px -336px}43.750%{background-position:-1200px -336px}50.000%{background-position:0px -448px}56.250%{background-position:-1200px -448px}62.500%{background-position:0px -560px}68.750%{background-position:-1200px -560px}75.000%{background-position:0px -672px}81.250%{background-position:-1200px -672px}87.500%{background-position:0px -784px}93.750%{background-position:-1200px -784px}100%{background-position:-1200px -784px}}
#hall-overlay #hall-entries{flex:1;min-height:0;overflow-y:auto;padding:0 6px 12px 0;scrollbar-width:thin;scrollbar-color:#cdb76a transparent}
#hall-overlay .hall-record{box-sizing:border-box;margin:0 0 12px;padding:5px 5px 8px;border-radius:0;border:12px solid transparent;border-image:url(assets/hall-of-fame/A/A_frame_default.webp) 12/12px stretch;background:#15233c padding-box;color:#f0f3f7}
#hall-overlay .hall-record:first-child{border-image-source:url(assets/hall-of-fame/A/A_frame_latest.webp)}
#hall-overlay .hall-record header{display:flex;justify-content:space-between;align-items:center;height:24px;gap:12px;font-size:15px}
#hall-overlay .hall-record time{color:#acbcd1}
#hall-overlay .hall-team{display:flex;justify-content:center;flex-wrap:nowrap;gap:4px;margin:1px 0 10px}
#hall-overlay .hall-team>div{position:relative;flex:0 0 120px;width:120px;height:203px;box-sizing:border-box;padding:0 4px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border-radius:0;background:#0d182d url(assets/hall-of-fame/A/A_podium_pc.webp) 0 66px/120px 24px no-repeat}
#hall-overlay .hall-team>div>img,#hall-overlay .hall-team>div>canvas{width:72px;height:72px;object-fit:contain;image-rendering:pixelated;margin-top:0}
#hall-overlay .hall-team>div>b{margin-top:20px;font-size:15px;line-height:20px;color:#f0f3f7;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hall-overlay .hall-team>div>strong{line-height:16px}
#hall-overlay .hall-team>div>small{font-size:11px;line-height:14px;color:#acbcd1;max-width:100%;text-align:center}
#hall-overlay .hall-team>div>span{display:flex;justify-content:center;gap:4px;min-height:24px;margin:2px 0}
#hall-overlay .hall-team span img{width:22px;height:22px}
#hall-overlay .hall-record>p{margin:0;color:#ead59e;font-size:13px;line-height:24px}
#hall-overlay .hall-composition summary{min-height:24px;line-height:24px;color:#ead59e;cursor:pointer}
@media (max-height:500px){
 #hall-overlay .hall-panel{width:802px;height:351px;padding:16px 16px 0 20px;background-image:url(assets/hall-of-fame/A/A_bg_mobile.webp)}
 #hall-overlay .hall-panel>small,#hall-overlay .hall-panel>p{display:none}
 #hall-overlay .hall-panel>h2{margin:0 0 8px 108px;font-size:20px;line-height:28px}
 #hall-overlay .hall-panel>.modal-close{right:16px;top:8px}
 #hall-overlay .hall-trophy{left:34px;top:18px;width:60px;height:32px;background-image:url(assets/hall-of-fame/A/A_title_mobile.webp)}
 #hall-overlay .hall-confetti{width:802px;height:64px;background-image:url(assets/hall-of-fame/effects/A_confetti_mobile_atlas.webp);background-size:1604px 256px}
 #hall-overlay .hall-confetti.play{animation-name:hall-confetti-m;animation-duration:267ms}
 #hall-overlay .hall-record{margin-bottom:8px;padding:0 5px 4px}
 #hall-overlay .hall-record header{height:20px;font-size:12px}
 #hall-overlay .hall-record time{font-size:10.5px}
 #hall-overlay .hall-team{gap:1px;margin:8px 0 6px}
 #hall-overlay .hall-team>div{flex-basis:80px;width:80px;height:157px;padding:0 4px;background-position:0 46px;background-size:80px 16px}
 #hall-overlay .hall-team>div>img,#hall-overlay .hall-team>div>canvas{width:50px;height:50px}
 #hall-overlay .hall-team>div>b{margin-top:8px;font-size:12px;line-height:16px}
 #hall-overlay .hall-team>div>strong{line-height:12px;font-size:10px}
 #hall-overlay .hall-team>div>small{font-size:10.5px;line-height:12px}
 #hall-overlay .hall-team>div>small:not(.hall-hp):not(.hall-atk){height:24px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:keep-all}
 #hall-overlay .hall-team>div>span{gap:4px;min-height:16px;margin:2px 0}
 #hall-overlay .hall-team span img{width:16px;height:16px}
 #hall-overlay .hall-record>p{font-size:11px;line-height:18px}
 #hall-overlay .hall-composition summary{min-height:32px;line-height:32px;font-size:12px}
}
@keyframes hall-confetti-m{0.000%{background-position:0px 0px}12.500%{background-position:-802px 0px}25.000%{background-position:0px -64px}37.500%{background-position:-802px -64px}50.000%{background-position:0px -128px}62.500%{background-position:-802px -128px}75.000%{background-position:0px -192px}87.500%{background-position:-802px -192px}100%{background-position:-802px -192px}}
@media (prefers-reduced-motion:reduce){#hall-overlay .hall-confetti.play{animation:none;background:url(assets/hall-of-fame/effects/A_confetti_pc_static.webp) center/contain no-repeat}}
@media (prefers-reduced-motion:reduce) and (max-height:500px){#hall-overlay .hall-confetti.play{background-image:url(assets/hall-of-fame/effects/A_confetti_mobile_static.webp)}}
/* 명예의 전당 A: 장비 칸(gear-icon) 크기 고정 — HP 글자와 겹침 방지 */
#hall-overlay .hall-team>div>span{height:26px;align-items:center}
#hall-overlay .hall-team>div>span .gear-icon{position:relative;flex:0 0 24px;width:24px;height:24px;min-width:0;min-height:0;padding:0;margin:0}
#hall-overlay .hall-team>div>span .gear-icon img{width:100%;height:100%}
#hall-overlay .hall-team>div>span .gear-icon small{position:absolute;right:-3px;bottom:-3px;font-size:9px;line-height:9px}
@media (max-height:500px){#hall-overlay .hall-team>div>b{margin-top:13px}#hall-overlay .hall-team>div>span{height:18px;margin:1px 0}#hall-overlay .hall-team>div>span .gear-icon{flex-basis:16px;width:16px;height:16px}#hall-overlay .hall-team>div>span .gear-icon small{font-size:8px;line-height:8px}}
/* 리그 우승 축하 화면 C(결정 105). 기준 무대(1920×1080/844×390)를 화면에 맞춰 scale. 글자 G-08(PT Read). 소개 600ms: 배경 180ms → 배너 180ms·30ms 간격. */
#league-victory{position:fixed;inset:0;z-index:380;overflow:hidden;background:#0b1322 url(assets/hall-of-fame/C/C_bg_pc.webp) center/cover no-repeat;image-rendering:pixelated;color:#f0f3f7;animation:lv-fade 180ms ease-out both}
#league-victory.hidden{display:none}
#league-victory.lv-mobile{background-image:url(assets/hall-of-fame/C/C_bg_mobile.webp)}
#league-victory .lv-stage{position:absolute;left:50%;top:50%;transform-origin:50% 50%}
#league-victory .lv-stage>*{position:absolute;margin:0;box-sizing:border-box}
#league-victory h2{display:flex;align-items:center;justify-content:center;font-size:52px;font-weight:900;color:#ffe08a;text-shadow:0 3px 0 #3a2508,0 0 18px rgba(255,214,120,.45);letter-spacing:.02em}
#league-victory .lv-sub{display:flex;align-items:center;justify-content:center;font-size:22px;color:#ead59e}
#league-victory .lv-banner{background:url(assets/hall-of-fame/C/C_banner_pc.webp) 0 0/100% 100% no-repeat;animation:lv-fade 180ms ease-out both}
#league-victory .lv-sprite{position:absolute;display:flex;align-items:flex-end;justify-content:center}
#league-victory .lv-sprite img,#league-victory .lv-sprite canvas{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
#league-victory .lv-banner b{position:absolute;left:4px;right:4px;height:24px;line-height:24px;text-align:center;font-size:17px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f0f3f7}
#league-victory .lv-banner strong{position:absolute;left:0;right:0;text-align:center;font-size:13px;color:#ffda76}
#league-victory .lv-summary{display:flex;align-items:center;justify-content:center;font-size:22px;color:#ead59e}
#league-victory .lv-continue{font:800 22px var(--font-read);color:#1b1206;background:linear-gradient(#ffe7a3,#d9a940);border:2px solid #fff2c4;border-radius:10px;box-shadow:0 4px 0 #6b4a14;cursor:pointer}
#league-victory.lv-mobile h2{font-size:22px}
#league-victory h2.lv-msg{font-size:46px;white-space:nowrap} /* 리그 흐름 개편: '축하합니다! ○○지방 챔피언이 되셨습니다!' 한 줄 */
#league-victory.lv-mobile h2.lv-msg{font-size:18px}
#league-victory.lv-mobile .lv-banner{background-image:url(assets/hall-of-fame/C/C_banner_mobile.webp)}
#league-victory.lv-mobile .lv-banner b{height:16px;line-height:16px;font-size:11px;left:2px;right:2px}
#league-victory.lv-mobile .lv-banner strong{font-size:9px}
#league-victory.lv-mobile .lv-summary{font-size:13px}
#league-victory.lv-mobile .lv-continue{font-size:15px;border-radius:8px;box-shadow:0 3px 0 #6b4a14}
@keyframes lv-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){#league-victory,#league-victory .lv-banner{animation:none}}
/* 2026-10-21 [UI] 점검: 도감 닫기 버튼 44px(1920에서 31×40이었다) */
#dex-close{min-width:44px;min-height:44px}
/* 게임 중 지역 변경 확인 창: 지역 카드 + 버튼 44px(결정 114, 08 확인). 문구·id·흐름은 그대로 */
#region-confirm .rcf-panel{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:stretch;width:min(980px,94vw);max-height:calc(100vh - 16px);overflow:auto;box-sizing:border-box;padding:20px}
#region-confirm .rcf-card{position:relative;height:386px;border:3px solid #f3d58b;overflow:hidden;background:#102b3f}
#region-confirm .rcf-card>span{position:absolute}
#region-confirm .rcf-art{inset:0;background-size:cover;background-position:center;image-rendering:pixelated}
#region-confirm .rcf-art:after{content:"";position:absolute;inset:0;background:linear-gradient(#0b1d2be6 0,#0b1d2b66 30%,#0b1d2b00 45%,#0b1d2b00 62%,#0b1d2bd9 82%,#0b1d2bf2 100%)}
#region-confirm .rcf-ribbon{left:16px;top:13px;width:248px;height:43px;display:flex;align-items:center;justify-content:center;background:var(--rc);clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%,6% 50%)}
#region-confirm .rcf-ribbon b{font-size:24px;font-weight:800;color:#fff;text-shadow:0 2px 0 #0006}
#region-confirm .rcf-mood{left:16px;right:16px;top:63px;text-align:center;font-size:17px;font-weight:700;color:#f6f7ee;text-shadow:0 2px 3px #000c}
#region-confirm .rcf-starters{left:16px;right:16px;bottom:20px;height:72px;display:flex;justify-content:space-around}
#region-confirm .rcf-starters img{width:72px;height:72px;object-fit:contain;image-rendering:pixelated}
#region-confirm .rcf-body{display:flex;flex-direction:column;justify-content:center;min-width:0}
#region-confirm .rcf-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
#region-confirm .rcf-actions button{min-height:44px;min-width:44px;padding:0 18px;font-size:15px}
@media (max-height:500px){#region-confirm .rcf-panel{grid-template-columns:150px minmax(0,1fr);gap:12px;padding:10px;width:min(800px,96vw)}#region-confirm .rcf-card{height:auto;min-height:200px}#region-confirm .rcf-ribbon{left:8px;top:6px;width:134px;height:30px}#region-confirm .rcf-ribbon b{font-size:17px}#region-confirm .rcf-mood{left:8px;right:8px;top:42px;font-size:11px}#region-confirm .rcf-starters{left:4px;right:4px;bottom:8px;height:40px}#region-confirm .rcf-starters img{width:40px;height:40px}#region-confirm .rcf-body h2{font-size:18px;margin:0 0 4px}#region-confirm .rcf-body p{font-size:12px;margin:0 0 4px}#region-confirm .rcf-actions{margin-top:6px;gap:8px}#region-confirm .rcf-actions button{font-size:13px;padding:0 12px}}
#region-confirm .rcf-card.has-art .rcf-ribbon{clip-path:none;background:none;border-style:solid;border-width:8px 37px;border-image-slice:24 112 fill;border-image-width:8px 37px;box-sizing:border-box}
#region-confirm .rcf-card.has-art .rcf-art:after{background:linear-gradient(#0b1d2b40 0,#0b1d2b00 25%,#0b1d2b00 75%,#0b1d2b80 100%)}
@media (max-height:500px){#region-confirm .rcf-card.has-art .rcf-ribbon{border-width:6px 26px;border-image-width:6px 26px}}
/* 결정 218 후속(관리자 위임, 결정 189): 지역 변경 확인 창을 크림·금 테두리로. 그림 카드·폭(980)·버튼 배치는 그대로 */
#region-confirm .rcf-panel{background:#fff2cc!important;border:2px solid #d9ae55!important;border-radius:16px!important;color:#253e35!important;box-shadow:0 10px 40px #0008!important}
#region-confirm .rcf-body h2{color:#253e35!important;font-family:var(--font-title,'PT Read'),sans-serif!important;font-weight:400!important}
#region-confirm .rcf-body p{color:#253e35!important}
#region-confirm .rcf-actions button{background:#fff8e2!important;border:1px solid #d9ae55!important;border-radius:12px!important;color:#493516!important;font-weight:700!important;box-shadow:0 2px 3px #0003!important}
#region-confirm .rcf-actions button#region-confirm-start{background:#ffe174!important}
#region-confirm .rcf-actions button:hover{filter:brightness(1.05)}#region-confirm .rcf-actions button:focus-visible{outline:3px solid #2c5b3f;outline-offset:2px}
