@font-face{font-family:KongSans;src:url('./assets/fonts/NotoSansKR.ttf') format('truetype');font-weight:100 900;font-display:swap}
#game.lighting-enabled:after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse at 78% 10%,#fff0ad44,transparent 58%),radial-gradient(ellipse at 30% 64%,#ffd898,transparent 75%);mix-blend-mode:screen;opacity:calc(.08 + var(--combat-light,0)*.55)}
:root{--font:KongSans,'Malgun Gothic',sans-serif;--ink:#203f2b}
html,body,button,input{font-family:var(--font);font-weight:700}b,strong{font-weight:800}small{font-weight:600}.primary,.opening-start,.view-heading h1,.character-info h2,.result-banner h1{font-family:Jua,var(--font);font-weight:400}
.icon{flex-shrink:0}button:disabled{opacity:.78;filter:saturate(.7)}.subtle{color:#4d6245;font-size:14px}.rank-season,.journey-status>span,.placement-coach,.stage-whisper,.vs-caption>span{color:#fff9df;background:#153f30ed;border:1px solid #cbbd78;border-radius:12px;padding:8px 12px;text-shadow:none;line-height:1.4;font-size:14px;box-shadow:0 3px 8px #12332640}
#topbar{padding-left:14px;padding-right:14px;gap:8px}.player-badge b{font-size:14px}.player-badge small{font-size:11px}.hud-seal{width:87px;min-width:0;color:#fff8d4;font-size:12px;text-shadow:0 2px 2px #123628}.hud-seal span{background:#184333df;padding:2px 7px;border-radius:8px;white-space:nowrap}.resource-pill{font-size:15px}.wallet{gap:5px}
.opening-subtitle{left:17%;width:66%;top:29.5%;min-height:0;padding:11px 15px;border:1px solid #ddd39a;border-radius:14px;background:#1e503aee;color:#fff3bb;box-shadow:0 4px 0 #0a342ac4,0 0 0 4px #e5c97a66;font-family:Jua,var(--font);font-weight:400;font-size:clamp(14px,3.6vw,19px);letter-spacing:0;line-height:1.35}.opening-subtitle:before,.opening-subtitle:after{display:none}.opening-note{font-size:13px;background:#174132c9;border-radius:10px;padding:5px 8px;bottom:3.3%;right:30%}
.journey-status{margin:0 5px}.journey-status>span{display:inline-block;margin:2px 0 0;padding:5px 13px;font-size:13px}.journey-map{padding:9px 7px;min-height:270px;gap:7px;justify-content:space-around}.level-node{margin-left:calc(var(--side)*16px);margin-right:calc((1 - var(--side))*16px);background:none;border:16px solid transparent;border-image:url('./assets/ui-v2/panel.png') 70 70 90 70 fill / 16px 16px 20px 16px stretch;padding:2px 8px 5px;gap:8px;min-height:78px}.level-node.current{background:none;filter:drop-shadow(0 0 6px #ffe98a)}.level-node.current:after{content:'';position:absolute;inset:-5px;border:2px solid #a98332;border-radius:14px;pointer-events:none}.level-number{width:36px;height:36px;font-size:20px;margin:0}.node-reward{gap:6px}.node-reward>.icon{width:33px;height:33px}.node-reward b{font-size:14px;line-height:1.3;white-space:normal}.node-reward small{font-size:12px;line-height:1.4;color:#526044;white-space:normal}.level-node>.small{width:56px;flex:0 0 56px;background:#2b6947;border:1px solid #315a37;border-radius:10px;box-shadow:inset 0 1px #8ab272,0 2px #bdb479;color:#fff7d3;text-shadow:none;padding:6px 4px!important;font-family:var(--font);font-size:13px!important;min-height:36px!important;margin:0}.level-node>.small:disabled{color:#3b5140;background:#e8e4bf;border-color:#a4ad81;opacity:1;box-shadow:none}.node-check{width:45px;flex:0 0 45px;display:grid;place-items:center}.node-check>.icon{width:29px;height:29px}.level-node.locked{opacity:.94}.reward-ready{animation:none}.page-controls{font-size:14px;line-height:1.3;text-shadow:0 1px 2px #123e2f}.page-controls .secondary{font-size:14px!important}.page-controls>span{background:#184433e6;padding:6px 12px;border-radius:10px;white-space:nowrap}
.rank-season{align-self:center;margin:3px 0 8px;font-size:14px;padding:6px 12px}.rank-season .icon{width:24px;height:24px}.podium{min-height:205px;max-height:285px;margin:0 3px 8px}.podium-name{bottom:0;width:28%;font-size:13px;color:#fff8d2;text-shadow:none;background:#194a36f5;border:1px solid #e1c47f;border-radius:12px;padding:7px 5px;line-height:1.4;box-shadow:0 3px #123a2b}.podium-name b{font-size:13px;max-width:100%}.podium-name small{font-size:12px;color:#ffe5a0}.podium-0{bottom:15%;left:36%}.podium-1{left:3%}.podium-2{right:3%}.ranking-list{gap:7px;margin:4px 7px;overflow:visible}.ranking-row{background:none;border:15px solid transparent;border-image:url('./assets/ui-v2/panel.png') 70 70 90 70 fill / 15px 15px 19px 15px stretch;padding:1px 8px 5px;gap:7px;min-height:69px;flex-shrink:0}.ranking-row.self{background:none}.ranking-row .position{width:25px;font-size:21px;text-align:center}.rank-avatar{height:37px;width:37px}.ranking-row b{font-size:14px;line-height:1.4}.ranking-row small{font-size:12px;color:#4e6146;line-height:1.35}.ranking-row strong{font-size:17px;min-width:48px;justify-content:flex-end;margin-left:0}.ranking-row strong .icon{width:24px;height:24px}.rank-my{padding:10px 14px;font-size:14px;gap:10px}.rank-my span{white-space:nowrap}
#game[data-route=placement] #screen,#game[data-route=battle] #screen,#game[data-route=conclusion] #screen,#game[data-route=tutorial] #screen{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:5px;padding:0 10px 8px}
#game[data-route=conclusion]{background-image:url('./assets/opening-jungle.png')}.board-wrap{height:100%;width:100%;flex:none;align-items:center;min-height:0;overflow:hidden;filter:drop-shadow(0 5px 5px #17372780)}.board-wrap canvas{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}.board-top{margin:0 4px;min-height:57px;gap:8px}.opponent-hud{height:54px;padding-right:25px}.opponent-hud>div:last-child{min-width:0}.opponent-hud b{font-size:15px;line-height:1.3}.opponent-hud small{font-size:12px;color:#465b3a;line-height:1.4}.game-clock{height:53px;width:103px;font-family:Jua,var(--font);font-size:24px}.game-clock.danger{background-image:none;background:#612f2c;color:#fff3c7;border:2px solid #eab26e;border-radius:15px;box-shadow:0 0 12px #ff74434d}.placement-bottom,.battle-footer{margin:0;min-width:0}.placement-coach{margin:2px 10px 6px;text-align:center;font-size:14px;padding:7px 10px}.layout-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin:0 4px}.layout-buttons>button{gap:3px;padding:8px 6px 11px!important;font-family:var(--font);font-weight:800;font-size:13px!important;min-height:45px!important}.layout-buttons .icon{width:23px;height:23px}.placement-bottom>.primary{min-height:63px;font-size:25px;margin:2px auto 0}.turn-badge{height:65px;margin:1px 10px 3px;padding:8px 14px 20px 42px;font-size:20px;overflow:hidden}.turn-badge img{position:absolute;left:8px;top:3px;width:49px;height:49px;margin:0}.turn-badge b{font-family:Jua,var(--font);font-weight:400;line-height:1.2}.turn-badge small{bottom:10px;font-size:11px;line-height:1.3}.turn-badge:after{content:'';position:absolute;bottom:6px;left:18%;width:calc(var(--turn-progress,100%) * .65);height:3px;background:#4e854d;border-radius:5px;transition:width .15s linear}.in-combat .turn-badge{animation:none}.board-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 6px}.board-controls .secondary{min-height:51px;font-size:13px;gap:2px;padding:7px 7px 11px}.board-controls .icon{width:24px;height:24px;margin:0}.bluffs{margin:0 6px 6px}.bluffs button{font-size:12px;min-height:40px}
.versus-view{background:radial-gradient(ellipse at 75% 25%,#246c63bb,transparent 42%),linear-gradient(160deg,#243f3cee 0 49%,#104837ee 51%),url('./assets/opening-jungle.png') center/cover}.versus-view:before{content:'';position:absolute;inset:0;background:linear-gradient(155deg,transparent 38%,#f4db8d33 39%,transparent 40% 63%,#e4d58a22 64%,transparent 65%);z-index:1}.vs-half{inset:0;transform:none}.vs-green{clip-path:polygon(0 54%,100% 43%,100% 100%,0 100%);background:radial-gradient(ellipse at 33% 70%,#61c99290,transparent 55%)}.vs-coral{clip-path:polygon(0 0,100% 0,100% 43%,0 54%);background:radial-gradient(ellipse at 70% 27%,#cf795b8c,transparent 57%)}.vs-brand{width:42%;left:29%;top:3%}.vs-slash{top:48%;height:5px;transform:rotate(-11deg);background:#eac96f;box-shadow:0 0 14px #f4d99e,0 0 0 1px #4b381e}.vs-emblem{left:32%;width:36%;top:41%;height:16%;animation:vsSmash .65s .5s both;filter:drop-shadow(0 5px 1px #17382bcc) drop-shadow(0 0 15px #f4c95a88)}.vs-name{background:none;background-color:#173e34f5;border:1px solid #b4ca84;box-shadow:0 4px 0 #0b2a25,0 0 0 4px #173c3499;border-radius:14px;width:73%;min-height:78px;padding:9px 16px;text-align:left;filter:none}.vs-name.enemy{top:13%;right:8%;border-color:#d69d7e;background-color:#4b3932f2}.vs-name.own{left:8%;bottom:9%}.vs-name small{display:block;font-size:12px;color:#e2d79b;line-height:1.4}.vs-name b{font-family:Jua,var(--font);font-size:25px;color:#fff8dc;font-weight:400;margin:3px 0;line-height:1.3}.vs-name span{color:#f2dba1;font-size:12px;justify-content:flex-start;font-weight:600}.vs-name .icon{width:21px;height:21px}.vs-caption{bottom:2.1%;font-size:15px}.vs-caption>span{display:inline-block;padding:6px 15px;font-size:14px}.versus-dots{margin-top:8px;gap:8px}.versus-dots i{width:5px;height:5px}
.result-banner{height:135px;margin:5px 0}.result-loss .result-banner{height:120px}.result-reason,.result-loss .result-reason{background:#173f30f5;color:#fff6d9;border:1px solid #cdb979;border-radius:14px;box-shadow:0 3px #0e3328;margin:0 12px 4px;padding:10px 18px;font-size:17px;max-width:calc(100% - 24px);line-height:1.4}.result-reason b{display:block;font-size:17px}.result-reason span{display:block;font-size:13px;margin-top:4px;color:#f6dfa7}.result-reason button{display:block;margin:6px auto 0;padding:0 3px 2px;background:none;color:#fff4be;border-bottom:1px solid #d8bd76;font-size:12px}.result-stage{min-height:140px}.result-summary{min-height:153px;margin:0 10px;padding:2px 5px 9px}.result-player{padding:0 3px 6px;margin-top:0;gap:5px}.result-player>span{min-width:0}.result-player b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-player small{font-size:11px}.result-player strong{font-size:18px}.result-player i{font-size:12px}.rewards{gap:5px;margin:6px 0 0}.reward{padding:8px 3px;grid-template-columns:30px 1fr;gap:1px;min-width:0}.reward img{width:30px;height:37px}.reward span{font-size:11px;color:#555c36;white-space:normal;line-height:1.2;text-align:center}.reward b{font-size:20px;color:#b14825}.level-marker{font-size:10px;right:2px;top:-8px;padding:3px 5px;animation:none}.result-actions{margin:3px 12px 5px}.result-actions .play-cta{min-height:72px;font-size:30px}.result-actions .row{gap:5px}.result-actions .secondary{min-height:48px;font-family:var(--font);font-size:13px;padding:8px 15px 12px;gap:3px}.result-actions .secondary .icon{width:22px;height:22px}
.end-card{border:1px solid #d3bd78;background:linear-gradient(#fff6d9,#e9d5a0);border-radius:17px;padding:11px 15px 10px;margin:0 8px;box-shadow:0 3px #624b2f,0 0 0 4px #194936c9;color:#243f2d;text-align:center}.end-kicker{display:inline-block;background:#29563e;color:#fff1b8;padding:3px 12px;border-radius:8px;font-size:12px}.end-card h2{font-family:Jua,var(--font);font-weight:400;margin:7px 0 4px;font-size:24px;line-height:1.25}.end-card p{font-size:13px;margin:4px 0;line-height:1.6}.end-score{display:flex;align-items:center;justify-content:center;gap:18px;margin:3px 0}.end-score span{font-size:13px}.end-score b{font-family:Jua,var(--font);font-size:26px;margin-left:8px}.end-score i{font-style:normal;color:#907348}.end-card .primary,.end-card .secondary{min-height:47px;font-size:18px;padding:8px 14px 12px}.end-card .secondary{font-family:var(--font);font-size:14px}.end-explanation{background:#1c4b36;color:#fff3c5;padding:12px;border-radius:13px}.end-explanation h3{margin:0 0 6px;font-size:18px}.end-explanation p{font-size:14px;line-height:1.65;color:inherit;margin:5px 0}.score-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.score-breakdown section{border:1px solid #b1ac77;border-radius:12px;padding:9px;background:#fff5d7}.score-breakdown h3{display:flex;justify-content:space-between;font-size:15px;margin:0 0 7px}.score-breakdown h3 strong{font-size:22px}.score-breakdown section>div{display:flex;align-items:center;gap:4px;font-size:13px}.score-breakdown img{width:31px;height:31px;object-fit:contain}.score-breakdown span{flex:1}.score-breakdown small{display:block;font-size:10px;line-height:1.4;margin-top:6px;color:#526445}
@media(max-height:790px){#game{height:100dvh}.rank-season{font-size:12px;padding:5px 10px;margin:2px 0 4px}.podium{min-height:150px;max-height:195px;margin-bottom:4px}.podium-name{font-size:11px;padding:5px 3px;border-radius:9px}.podium-name b{font-size:11px}.podium-name small{font-size:10px}.ranking-row{min-height:55px;border-width:12px;border-image-width:12px 12px 16px;padding:0 4px 3px;gap:5px}.rank-avatar{width:30px;height:30px}.ranking-row b{font-size:12px}.ranking-row small{font-size:10px}.ranking-row strong{font-size:15px;min-width:42px}.ranking-row .position{width:20px;font-size:17px}.ranking-row strong .icon{width:20px;height:20px}.ranking-list{gap:4px;margin:3px 6px}.rank-my{font-size:12px;margin:3px 6px;padding:8px 11px}.journey-status>span{font-size:11px;padding:4px 10px}.journey-map{min-height:235px;gap:4px;padding:5px 7px}.level-node{min-height:59px;border-width:12px;border-image-width:12px 12px 16px;padding:0 5px 3px;gap:5px;margin-left:calc(var(--side)*12px);margin-right:calc((1 - var(--side))*12px)}.level-number{height:30px;width:30px;font-size:17px}.node-reward>.icon{width:25px;height:25px}.node-reward b{font-size:11px}.node-reward small{font-size:10px}.level-node>.small{width:46px;flex-basis:46px;min-height:29px!important;padding:4px 3px!important;font-size:11px!important}.node-check{width:36px;flex-basis:36px}.node-check>.icon{width:25px;height:25px}.page-controls{font-size:12px;margin:4px 5px}.page-controls>.small{font-size:12px!important}.board-top{min-height:48px}.opponent-hud{height:46px;padding-right:20px}.opponent-hud b{font-size:13px}.opponent-hud small{font-size:10px}.game-clock{width:87px;height:46px;font-size:21px}.hud-seal{font-size:10px;width:75px}.placement-coach{font-size:12px;padding:6px 9px;margin:1px 8px 3px}.layout-buttons>button{font-size:11px!important;min-height:37px!important;padding:5px 4px 8px!important}.layout-buttons .icon{width:20px;height:20px}.placement-bottom>.primary{font-size:21px;min-height:52px}.turn-badge{height:57px;font-size:18px}.turn-badge img{width:44px;height:44px}.turn-badge small{font-size:10px;bottom:9px}.board-controls .secondary{font-size:11px;min-height:44px;padding:6px 6px 10px}.board-controls .icon{width:21px;height:21px}.result-banner{height:100px}.result-loss .result-banner{height:95px}.result-reason,.result-loss .result-reason{padding:8px 13px}.result-reason b{font-size:15px}.result-reason span{font-size:11px}.result-reason button{font-size:11px;margin-top:4px}.result-stage{min-height:110px}.result-summary{min-height:125px;border-width:15px;border-image-width:15px 15px 20px;padding:0 3px 5px}.result-player b{font-size:12px}.result-player small{font-size:10px}.result-player strong{font-size:15px}.result-player i{font-size:10px;padding:3px}.result-player>img{width:33px;height:33px}.reward{grid-template-columns:25px 1fr;padding:6px 2px}.reward img{width:25px;height:31px}.reward span{font-size:9px}.reward b{font-size:17px}.result-actions .play-cta{min-height:56px;font-size:27px}.result-actions .secondary{min-height:42px;font-size:11px;padding:6px 11px 10px}.result-actions .secondary .icon{width:19px;height:19px}.vs-name{min-height:68px;padding:7px 13px}.vs-name b{font-size:22px}.vs-name span{font-size:11px}.vs-name small{font-size:10px}.end-card{padding:8px 11px}.end-card h2{font-size:21px;margin:5px 0 3px}.end-card p{font-size:11px;margin:3px 0}.end-score b{font-size:22px}.end-score{margin:0}.end-card .primary,.end-card .secondary{min-height:41px;font-size:16px}.end-card .secondary{font-size:12px}}
