:root{color-scheme:dark;font-family:system-ui,-apple-system,"Segoe UI","Noto Sans KR",sans-serif;color:#f3efd8;--gold:#e9c877;--ink:#102329;--blue:#7cced8;--red:#ec8974;--safe:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}body{margin:0;background:#182d31;overflow:hidden;touch-action:manipulation;-webkit-user-select:none;user-select:none}button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #fcdf85;outline-offset:3px}button:active{transform:translateY(2px)}button:disabled{cursor:default;opacity:.5;transform:none}.hidden{display:none!important}#battle{position:fixed;inset:0;width:100%;height:100%;image-rendering:pixelated}#hud{position:fixed;top:max(12px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));display:grid;grid-template-columns:1fr 150px 1fr;align-items:start;gap:26px;pointer-events:none}.team{display:flex;gap:12px;align-items:center;max-width:380px;padding:9px 13px;background:linear-gradient(90deg,#112a30f2,#172e329c);border:1px solid #afd4c236;border-radius:4px;box-shadow:0 4px 0 #0f202433}.team>div{flex:1}.team small{font-size:11px;letter-spacing:.04em}.team strong{font:700 18px ui-monospace,monospace}.team-mark{display:grid;place-items:center;width:29px;height:33px;background:#214959;border:1px solid #86ccd377;color:#a5dce1;font-family:Georgia,serif;font-size:20px;clip-path:polygon(0 0,100% 0,100% 80%,50% 100%,0 80%)}.enemy{justify-self:end;width:100%;text-align:right;background:linear-gradient(90deg,#32282a9c,#332123f2)}.enemy .team-mark{background:#633c3c;color:#f5b6a0;border-color:#e2936977}.health{height:5px;margin-top:6px;background:#071d27;border-radius:2px;overflow:hidden}.health i{display:block;height:100%;background:#72c3d7;transition:width .25s}.enemy .health i{background:#e38470}.clock{text-align:center;background:#112930f0;border:1px solid #c7d2ad40;border-radius:0 0 14px 14px;padding:6px 12px 9px;box-shadow:0 4px 0 #071f2633}.clock small{display:block;font-size:9px;letter-spacing:.11em;color:#adc6bd}.clock b{display:block;font-size:26px;line-height:1.12;font-variant-numeric:tabular-nums;letter-spacing:.03em}.clock span{font-size:10px;color:var(--gold)}#cornerControls{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(15px,var(--safe));display:flex;gap:7px;z-index:9}.small-icon{position:relative;display:grid;place-items:center;width:39px;height:39px;background:#132c32de;border:1px solid #a9c7b947;border-radius:9px;font-size:22px;box-shadow:0 3px 0 #10202655}.small-icon svg{width:21px;height:21px}.small-icon span{font-size:10px;display:block}.small-icon #soundDot{position:absolute;right:5px;top:2px;font-size:12px;color:#fda48c}#controls{position:fixed;inset:0;pointer-events:none}#controls button{pointer-events:auto}.skill-controls{position:absolute;left:max(20px,env(safe-area-inset-left));bottom:max(30px,var(--safe));display:flex;gap:14px}.round{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;box-shadow:0 5px 0 #102128a6,0 0 0 4px #152a32a3,0 12px 24px #09232d65}.skill{height:68px;width:68px;background:radial-gradient(circle at 38% 30%,#426572,#142d3c 75%);border:2px solid #9cbcaf}.skill svg{width:40px;height:40px}.button-name{position:absolute;bottom:-18px;font-size:11px;font-weight:700;text-shadow:0 2px 2px #000}.cooldown{position:absolute;inset:0;display:grid;place-items:center;background:#10232fbd;border-radius:50%;font-size:23px;backdrop-filter:grayscale(.7)}.summon{position:absolute;right:max(29px,env(safe-area-inset-right));bottom:max(72px,var(--safe));width:99px;height:99px;border:3px solid #f5d995;background:radial-gradient(circle at 34% 25%,#e3b765,#926230 73%);box-shadow:0 5px 0 #694a2e,0 0 0 5px #1327319c,0 0 26px #e9b75a4d}.summon canvas{width:76px;height:67px;position:absolute;top:-4px;image-rendering:pixelated;pointer-events:none}.summon .plus{position:absolute;top:19px;right:13px;font-size:23px;color:#fff9d7;text-shadow:0 2px 2px #775531}.summon strong{position:absolute;bottom:19px;font-size:17px;text-shadow:0 2px 2px #47361f}.tickets{position:absolute;bottom:-17px;background:#142c33;border:1px solid #edce87;border-radius:10px;padding:2px 12px;font-size:13px;min-width:58px}.tickets small{font-size:9px;color:#c8cdb2}.recharge{position:absolute;bottom:-24px;width:62px;height:3px;background:#091e27}.recharge i{display:block;height:100%;background:#edc86c}.roster-button{position:absolute;right:max(24px,env(safe-area-inset-right));top:92px;height:48px;width:46px;gap:0;padding:5px}.menu-button{position:absolute;left:max(20px,env(safe-area-inset-left));top:92px;font-size:17px}.combo-badge{position:absolute;right:30px;bottom:196px;background:#183f45;border:1px solid #ecc36e;color:#fae7b2;border-radius:20px;padding:7px 12px;font-size:11px;box-shadow:0 2px 5px #10242e55}.combo-badge b{color:white}.combo{position:fixed;top:100px;left:50%;transform:translateX(-50%);width:365px;background:#142b31f5;border:1px solid #d8bd7c99;border-radius:9px;box-shadow:0 5px 0 #091e2740,0 10px 35px #061e274d;z-index:5;padding:8px 10px 5px}.combo header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px;font-size:11px;color:#e8d4a0}.combo-tools{display:flex;align-items:center}.combo-tools button{background:transparent;min-height:32px;min-width:32px;font-size:11px;color:#aec5ba}.choices{display:flex;gap:8px}.choice{flex:1;min-width:0;position:relative;border-radius:5px;padding:5px 7px 7px;background:linear-gradient(140deg,#27464d,#142e37);border:1px solid #83b9b582;display:grid;grid-template-columns:70px 1fr;align-items:center;text-align:left;min-height:84px}.choice:hover{border-color:var(--gold);background:linear-gradient(140deg,#36595b,#1e3940)}.choice img{width:70px;height:70px;image-rendering:pixelated;object-fit:contain;grid-row:1/4}.choice strong{font-size:12px;line-height:1.35}.choice small{font-size:9px;color:#b9c8b3}.choice .tier{font-size:8px;letter-spacing:.06em;color:var(--gold)}.combo-foot{display:block;text-align:center;color:#95b0a4;font-size:9px;margin-top:6px}.drawer{position:fixed;top:78px;bottom:18px;right:max(15px,env(safe-area-inset-right));width:min(390px,calc(100vw - 32px));background:#10292ff5;z-index:15;border:1px solid #829e8766;border-radius:12px;box-shadow:0 12px 50px #06151e85;display:flex;flex-direction:column}.drawer header,.net-card header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px}.drawer header small,.net-card header small{font-size:9px;letter-spacing:.15em;color:#bac79e}.drawer h2,.net-card h2{margin:5px 0 0;font-size:21px}.close{width:40px;height:40px;background:#294148;border-radius:8px;font-size:25px}.drawer nav{display:flex;padding:0 12px;border-bottom:1px solid #7d9e8533}.drawer nav button{flex:1;padding:11px 3px;background:transparent;font-size:12px;color:#9aafa7}.drawer nav .active{color:var(--gold);border-bottom:2px solid var(--gold)}.drawer-content{overflow-y:auto;overscroll-behavior:contain;padding:12px;touch-action:pan-y}.role-title{font-size:11px;color:#abbba4;margin:13px 0 6px;display:flex;justify-content:space-between}.unit-row{display:flex;align-items:center;gap:9px;background:#203a3f80;border:1px solid #9ab8941f;border-radius:7px;padding:3px 9px;margin-bottom:5px}.unit-row img{width:50px;height:48px;object-fit:contain;image-rendering:pixelated}.unit-row>div{flex:1}.unit-row strong{font-size:12px}.unit-row small{display:block;font-size:10px;color:#a9bdae;margin-top:4px}.unit-row b{font-size:16px;color:#efce86}.recipe-row{padding:10px 8px;margin:5px 0;background:#26404580;border-radius:6px;font-size:11px;line-height:1.8}.recipe-row small{display:block;color:#b5c3ac}.recipe-row.ready{border-left:2px solid #e5c470}.toast{position:fixed;left:50%;bottom:max(25px,var(--safe));transform:translateX(-50%);background:#102831e8;border:1px solid #c2c39866;border-radius:20px;padding:9px 18px;font-size:12px;max-width:65vw;text-align:center;pointer-events:none;z-index:25}.wave-banner{position:fixed;left:50%;top:44%;transform:translate(-50%,-50%);font-size:19px;letter-spacing:.1em;color:#ffe3a7;background:linear-gradient(90deg,transparent,#102e3ad9 15%,#102e3ad9 85%,transparent);padding:13px 55px;text-shadow:0 2px 0 #163c40;pointer-events:none;white-space:nowrap;z-index:2}.veil{position:fixed;inset:0;background:#061c2770;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:20;padding:14px;overflow:auto}.home-card{width:410px;max-width:90vw;padding:26px 32px 17px;background:linear-gradient(155deg,#17343af5,#0d222beF);border:1px solid #d4bd8170;border-radius:12px;box-shadow:0 24px 100px #061c2999;text-align:center}.eyebrow{font-size:9px;letter-spacing:.18em;color:#adbea7}.eyebrow span{padding:0 8px;color:#d9b966}.mini-crest{color:#efd390;font-size:26px;margin:18px 0 5px}.home-card h1{font-size:53px;letter-spacing:-.06em;margin:0;font-weight:850;color:#f2e6bd;text-shadow:0 4px 0 #091f28}.subtitle{color:#e4c98c;font-size:15px;margin:8px 0 18px}.intro{font-size:12px;line-height:1.9;color:#a9c0b3;margin:0 0 22px}.home-actions{display:grid;gap:9px}.primary,.secondary{min-height:45px;padding:11px 17px;border-radius:6px;font-weight:700;font-size:14px;width:100%}.primary{background:linear-gradient(135deg,#edcc87,#cda569);color:#182e31;border:1px solid #ffe6a7;box-shadow:0 3px 0 #877049}.primary span{float:right}.secondary{background:#213e46;border:1px solid #adc0a953;color:#d5dfc9}.secondary small{font-size:9px;color:#adbfa7;margin-left:9px}.home-footer{border-top:1px solid #a4b99326;margin-top:21px;padding-top:13px;font-size:9px;color:#8ba697;text-align:left}.home-footer span{float:right}.text-button{background:transparent;color:#dfcd9d;font-size:11px;padding:12px 8px 0}.net-card{width:480px;max-width:94vw;background:#132d35;border:1px solid #adbd9066;border-radius:12px;padding:0 20px 17px;max-height:94vh;overflow:auto;touch-action:pan-y}.net-card header{padding:17px 0 8px}.net-card p{font-size:12px;line-height:1.7;color:#bbcebc}.net-actions{display:flex;gap:10px;margin-bottom:15px}.net-actions button{font-size:12px}.net-card label{display:block;font-size:11px;color:#d3c795;margin:10px 0 5px}.net-card textarea{font:11px monospace;width:100%;min-height:61px;height:61px;resize:vertical;border:1px solid #6c91817a;border-radius:5px;background:#09202b;color:#dfdec0;padding:8px;user-select:text;touch-action:pan-y}.net-card .secondary{min-height:36px;font-size:12px;margin-top:5px}.net-card .net-status{color:#f1d69a;background:#243e40;border-radius:5px;padding:8px}.net-note{font-size:10px;color:#a0b4a5;line-height:1.7;display:block}.result-card,.pause-card{width:360px;max-width:90vw;background:#122d35f5;border:1px solid #c8b97b99;border-radius:12px;padding:27px;text-align:center;box-shadow:0 20px 60px #081b2588}.result-card>small{font-size:10px;letter-spacing:.15em;color:#b6c3a6}.result-card h1{font-size:54px;margin:13px 0 4px;color:#edd598}.result-card p,.pause-card p{font-size:12px;color:#aebfaf;line-height:1.7}.result-stats{display:flex;gap:8px;margin:21px 0}.result-stats div{flex:1;background:#264247;border-radius:6px;padding:10px 5px}.result-stats b{display:block;font-size:22px}.result-stats small{font-size:10px;color:#b2c6b6}.result-card .secondary,.pause-card .secondary{margin-top:10px}#rotate{display:none;position:fixed;inset:0;z-index:100;background:#112b32;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px}#rotate h2{font-size:24px;margin-top:27px}#rotate p{font-size:13px;color:#adbea9;line-height:1.8}#rotate button{max-width:250px;margin-top:15px}.rotate-phone{width:100px;height:58px;border:3px solid #e2c77f;border-radius:10px;transform:rotate(-12deg);box-shadow:inset 0 0 0 6px #203f47;position:relative}.rotate-phone:after{content:'↻';position:absolute;right:-36px;top:-17px;color:#9bd4d3;font-size:35px}
@media(max-height:500px) and (orientation:landscape){#hud{top:8px;left:12px;right:12px;grid-template-columns:1fr 108px 1fr;gap:18px}.team{padding:6px 10px;gap:7px;max-width:280px}.team strong{font-size:14px}.team small{font-size:9px}.team-mark{height:27px;width:22px;font-size:16px}.clock{padding:4px 6px 6px}.clock b{font-size:21px}.clock span{font-size:9px}.clock small{font-size:8px}.combo{top:65px;width:330px;padding:4px 8px}.combo header{margin:0;font-size:10px}.choice{min-height:71px;grid-template-columns:56px 1fr;padding:3px 5px}.choice img{width:56px;height:58px}.choice strong{font-size:11px}.choice small{font-size:8px}.combo-foot{font-size:8px;margin-top:4px}.summon{width:76px;height:76px;right:23px;bottom:53px}.summon canvas{width:64px;height:57px;top:-6px}.summon strong{font-size:14px;bottom:14px}.summon .plus{right:8px;top:13px}.skill{width:57px;height:57px}.skill svg{width:35px;height:35px}.skill-controls{left:20px;bottom:29px;gap:13px}.roster-button{top:64px;width:39px;height:44px;right:15px}.menu-button{top:65px;left:14px;width:34px;height:34px}#cornerControls{right:20px;bottom:8px;gap:5px}#cornerControls button{width:29px;height:29px;font-size:18px}.combo-badge{bottom:153px;right:18px;padding:5px 9px;font-size:10px;min-height:33px}.home-card{padding:15px 29px 12px;width:360px}.mini-crest{margin:7px 0 0;font-size:20px}.home-card h1{font-size:40px}.subtitle{font-size:12px;margin:3px 0 9px}.intro{font-size:10px;margin:0 0 12px}.primary,.secondary{min-height:38px;padding:9px 14px;font-size:12px}.home-actions{gap:7px}.home-footer{margin-top:11px;padding-top:9px;font-size:8px}.drawer{top:61px;bottom:8px;width:350px}.drawer header{padding:8px 12px}.drawer h2{font-size:16px}.drawer nav button{padding:8px}.drawer-content{padding:8px 11px}.result-card{padding:18px 27px}.result-card h1{font-size:42px}.result-stats{margin:15px 0}.wave-banner{font-size:15px;padding:9px 35px}.toast{font-size:10px;padding:7px 14px;bottom:11px}.net-card{max-height:96vh}.net-card header{padding:11px 0 3px}.net-card h2{font-size:17px}.net-card p{margin:7px 0;font-size:10px}.net-card textarea{height:43px;min-height:43px}.net-actions{margin-bottom:5px}}
@media(orientation:portrait){#rotate{display:flex}}
@media(prefers-reduced-motion:reduce){.health i{transition:none}.veil{backdrop-filter:none}}
