/* Original KMS WZ scenery and window frame assets. */
body{background:#77b9df url('/maple/scene-grassySoil-1.png') center top/cover fixed;font-family:Dotum,'돋움',sans-serif;color:#192d4b}
body::before{content:'';position:fixed;inset:0;z-index:-1;background:url('/maple/scene-grassySoil-2.png') center bottom/auto 45vh no-repeat;pointer-events:none}
header{background:#e4effbea;border:2px solid #6485a4;box-shadow:inset 0 0 0 2px #fff;border-radius:7px;margin-top:10px}
main{background:#d7e7f7d6;border:1px solid #7f9eb8;margin-top:10px;border-radius:7px}
.panel{border:6px solid transparent;border-image:url('/maple/ui-Quest-backgrnd.png') 6 stretch;background:#f5f9fff2;border-radius:0;box-shadow:1px 2px 3px #16406255}
.hero{background:transparent;border-color:#6582a3}.hero:before{background:linear-gradient(90deg,#dceeffdd,#dceeff77,transparent),url('/maple/scene-grassySoil-3.png') right bottom/auto 100% no-repeat,url('/maple/scene-grassySoil-1.png') center/cover}.hero h2{font-size:34px;color:#163d6b}.hero-cast{bottom:20px}.stamp{background:#2c5e8b;color:#fff;border-color:#224c78}.hero-content{max-width:80%}.button,.maple-button{border:1px solid #6a3d1b;border-radius:5px;background:linear-gradient(#fff9c5 0%,#ffc662 48%,#ed9826 51%,#ffc24d 100%);box-shadow:inset 0 0 0 1px #fff6c5,0 1px 1px #123a5d66;color:#58320f;text-shadow:0 1px #fff9bd;padding:8px 17px;font-size:12px;font-weight:700;cursor:pointer}.button.light{background:linear-gradient(#fff,#d4e7f8 50%,#b6d0eb 51%,#d6e8fa);border-color:#6183a8;color:#274f7c}.button:active,.maple-button:active{filter:brightness(.9)}.maple-button:disabled{filter:grayscale(.9);opacity:.65;cursor:default}footer{background:#dcebf1db;padding:14px;border-radius:5px;color:#376087}.profile-card,.tip-card{background:#eef6fff0}.chip,.rating-badge{background:#dceafb;color:#315983;border-color:#83a8c8}.empty,.small-note{color:#526c87}.brand,.profile-card h3,.section-title h2,.page-heading h1{color:#193d63}.eyebrow{color:#3c6185}.hero .button{box-shadow:0 2px 0 #65401f}.tip-card small{letter-spacing:0}.game-viewport{position:fixed;inset:0;overflow:hidden;background:url('/maple/scene-grassySoil-3.png') 97% 100%/auto 32% no-repeat,url('/maple/scene-grassySoil-2.png') center bottom/auto 55% no-repeat,url('/maple/scene-grassySoil-1.png') center/cover,#80bddc}
body.in-game{overflow:hidden}body.in-game>header,body.in-game>footer,body.in-game>.topline{display:none}body.in-game main{padding:0;margin:0;border:0;background:none;max-width:none;border-radius:0}
.game-board{transform-origin:top left;padding:10px;display:grid;grid-template-rows:66px 228px minmax(280px,1fr) 24px 38px;gap:8px;position:relative;min-width:960px;min-height:720px;color:#1a3458}
.game-window{border:6px solid transparent;border-image:url('/maple/ui-Quest-backgrnd.png') 6 stretch;background:#eaf3fff0;box-shadow:1px 2px 4px #15314e88;min-width:0}
.game-pool{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:2px 16px;background:#eaf4fff5}.game-pool>div:first-child{display:flex;align-items:center;gap:16px}.game-pool>div:first-child>span{font-size:16px;font-weight:700}.game-pool strong{font-size:36px;color:#173e8b;line-height:1;font-variant-numeric:tabular-nums;text-shadow:0 1px #fff}.pool-detail{font-size:11px;line-height:1.8;color:#577090}.game-session{display:flex;align-items:center;gap:12px;white-space:nowrap}.game-session b{font-size:12px}.game-session>span{font-size:11px;color:#577090}.game-session .maple-button{padding:7px 9px;font-size:10px}
.game-main{display:grid;grid-template-columns:minmax(290px,.42fr) minmax(540px,.75fr);gap:10px;min-height:0}.game-lot{display:grid;grid-template-columns:125px 1fr;grid-template-rows:1fr 29px;gap:0 12px;padding:14px 14px 7px;align-items:center;background:#ecf4fff4}.lot-image{display:grid;place-items:center;width:125px;height:135px;background:radial-gradient(#fff7ae,transparent 68%)}.lot-image img{width:86px;height:86px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 9px 4px #244b6e55);animation:mapleFloat 3s ease-in-out infinite;will-change:transform}.lot-description h2{font-size:19px;color:#182b61;margin:0 0 12px;line-height:1.35;word-break:keep-all}.lot-points{font-size:22px;font-weight:800;color:#274fa1}.lot-points span{display:block;font-size:12px;margin-top:4px}.lot-current{font-size:12px;margin-top:13px}.lot-current b{display:block;font-size:20px;color:#795016;margin-top:4px}.lot-leader{font-size:11px;color:#45627e;margin-top:7px}.game-lot .timer-line{grid-column:1/-1;margin:0;color:#3f5c7c}.timer-fill{background:linear-gradient(#ffea88,#f2ae30);transition:width .12s linear}.timer-track{background:#96acc4;height:7px;border:1px solid #6884a3}.timer-seconds{color:#e25424;font-size:16px;min-width:52px}.game-lot.urgent{background:#fff1dff4;box-shadow:inset 0 0 25px #ffad4f55}
.game-wallet{padding:7px 22px;display:flex;flex-direction:column;background:#eff6fff5}.wallet-top{display:flex;align-items:center;gap:14px;min-height:47px}.wallet-top>span:first-child{font-size:14px;font-weight:700}.wallet-top>strong{font-size:39px;letter-spacing:-1px;color:#966019;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;text-shadow:0 1px #fff}.wallet-top small{font-size:17px}.wallet-initial{margin-left:auto;font-size:11px;color:#63778c}.drag-area{padding-top:66px;flex:1}.game-wallet .budget{height:21px;border:1px solid #4c6d36;border-radius:3px;margin:0 0 8px;background:linear-gradient(#b6df7e,#6fa148);touch-action:none;cursor:ew-resize;user-select:none;isolation:auto;box-shadow:inset 0 1px 2px #fff8;outline-offset:5px}.game-wallet .budget-spent{background:linear-gradient(#f3a18d,#bd4f46)}.game-wallet .budget-bid{background:linear-gradient(#fff09c,#e4b32d)}.game-wallet .leader-face{top:-34px;width:30px;height:30px;border-color:#c6982e;z-index:2}.game-wallet .leader-face .avatar{transform:translate(-36px,-26px)}.drag-label{position:absolute;top:-64px;transform:translateX(-50%);white-space:nowrap;background:#163d6f;color:#fff;padding:5px 9px;border:1px solid #dcefff;border-radius:3px;font-size:15px;font-weight:700;pointer-events:none;z-index:3;box-shadow:1px 1px 2px #0004}.bid-cursor{position:absolute;top:-7px;bottom:-7px;width:5px;border:1px solid #113b70;background:#eff9ff;transform:translateX(-50%);box-shadow:0 1px 2px #0005;pointer-events:none;z-index:2}.game-wallet .legend{color:#53708b;font-size:10px}.wallet-actions{display:flex;align-items:center;justify-content:space-between;margin-top:6px;gap:14px}.wallet-actions>span{font-size:10px;line-height:1.7;color:#58738b}.bid-confirm{min-width:130px;min-height:39px;font-size:18px}.wallet-actions form{margin:0}
.game-players{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));gap:7px 10px;min-height:0;position:relative}.game-player{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative;border:1px solid #5f8ca29c;border-radius:5px;background:linear-gradient(#cce8f177,#f1f6d3c9);padding:3px 6px 6px;box-shadow:inset 0 1px #fff7}.game-player.me{border:2px solid #f6d44e;background:linear-gradient(#e6f4f366,#f7e8acdd)}.game-player.leading{box-shadow:inset 0 0 13px #ffe57e;border-color:#f4bb38}.speech-slot{height:42px;min-height:28px;width:100%;display:flex;justify-content:center;align-items:end;position:relative;flex:1;margin-bottom:2px}.maple-bubble{position:relative;max-width:95%;background:#fff;color:#151515;border:1px solid #292929;border-radius:8px;padding:5px 8px;font-size:11px;line-height:1.35;word-break:break-word;max-height:40px;overflow:hidden;box-shadow:1px 1px 0 #fff;z-index:4}.maple-bubble:after{content:'';position:absolute;bottom:-5px;left:50%;width:7px;height:7px;border-right:1px solid #222;border-bottom:1px solid #222;background:#fff;transform:rotate(45deg)}.maple-bubble[hidden]{display:none}.character-ground{height:62px;width:100%;display:flex;justify-content:center;align-items:end;position:relative;flex-shrink:0;background:url('/maple/ground-enH0.png') center bottom/auto 12px repeat-x}.character-ground>.avatar{transform:scale(.8);transform-origin:bottom center;margin:0 -10px;height:100px!important}.player-marker{position:absolute;left:4px;bottom:3px;font-size:9px;color:#214d70;background:#eaf8ffb8;padding:2px 4px;border-radius:2px}.maple-name{max-width:100%;background:#333d4dde;color:#fff;border:1px solid #dbe8ef;border-radius:3px;padding:2px 10px;font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0 3px}.game-player.me .maple-name{color:#fff78a}.player-money{font-size:16px;font-weight:700;line-height:1.25;color:#51340e;text-shadow:0 1px #fff8}.player-points{font-size:13px;line-height:1.5;font-weight:700;color:#193c83}.player-points small{font-size:10px;font-weight:400}.player-items{display:flex;align-items:center;justify-content:center;min-height:20px;height:20px;max-width:100%;gap:2px;flex-wrap:nowrap}.player-items img{height:18px;width:min(23px,9%);object-fit:contain;image-rendering:pixelated}.game-ticker{display:flex;align-items:center;gap:10px;background:#213951d9;border:1px solid #98bad0;color:#fff;padding:2px 8px;font-size:10px;min-width:0;overflow:hidden}.game-ticker b{white-space:nowrap;color:#ffe593}.game-ticker>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-chat{display:flex;align-items:center;gap:6px;margin:0;padding:4px 6px;background:#e0effaee;border:1px solid #719abb;box-shadow:inset 0 0 0 1px #fff;border-radius:4px;min-width:0}.game-chat label{font-size:12px;padding:3px 10px;color:#263e63;font-weight:700}.game-chat input{background:#fff;border:1px solid #6f98bb;min-width:0;flex:1;padding:5px 8px;color:#173957;font-size:12px;height:27px;border-radius:3px}.game-chat .maple-button{padding:5px 14px;font-size:11px;height:27px}.game-chat>span{font-size:10px;color:#516b86;white-space:nowrap;padding:0 7px}
@keyframes mapleFloat{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-7px,0)}}
@media(max-width:750px){.hero h2{font-size:26px}.game-board{font-size:12px}.hero-content{max-width:90%}}
@media(prefers-reduced-motion:reduce){.lot-image img{animation:none}}
.game-board{min-height:840px}.character-ground{height:48px}.character-ground>.avatar{transform:scale(.65)}.maple-name{font-size:11px}.player-money{font-size:14px}.player-points{font-size:12px}.player-items{min-height:17px;height:17px}.player-items img{height:16px}.speech-slot{min-height:24px}.maple-bubble{border:6px solid transparent;border-image:url('/maple/chat-frame.png') 6 fill stretch;border-radius:0;padding:0 3px;max-height:none;overflow:visible;background:transparent;box-shadow:none}.maple-bubble span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:30px}.maple-bubble:after{width:13px;height:13px;bottom:-14px;left:calc(50% - 6px);background:url('/maple/chat-arrow.png') center/contain no-repeat;border:0;transform:none}.game-pool{background:#eaf4ffef}.game-pool>div:first-child>span{line-height:1.4;max-width:165px}.hero .stamp:empty,.hero-content>p:empty{display:none}.game-chat input:focus{outline:2px solid #eabf4c;outline-offset:1px}


.game-board{min-height:880px;grid-template-rows:66px 228px minmax(280px,1fr) 26px 24px 38px}.game-upcoming{display:flex;align-items:center;justify-content:center;gap:6px;background:#d8ecf5d9;border:1px solid #608fae;border-radius:3px;min-width:0;overflow:hidden}.game-upcoming b{font-size:10px;color:#274d72;margin-right:8px}.game-upcoming>span{display:flex;align-items:center;justify-content:center;width:25px;height:23px;border:1px solid #95b2c6;background:#f0f8ffb0}.game-upcoming img{width:20px;height:20px;object-fit:contain;image-rendering:pixelated}.game-upcoming .sold{opacity:.35}.game-upcoming .active{border:2px solid #e09f24;background:#fff4b3}

.breakeven-rail{height:23px;position:relative;margin-top:5px;border-top:2px solid #c87970;pointer-events:none}.breakeven-safe{position:absolute;top:-2px;height:2px;background:#439448}.breakeven-mark{position:absolute;top:-5px;height:9px;border-left:2px solid #1a638a;transform:translateX(-1px)}.breakeven-mark:before{content:"";position:absolute;left:-4px;top:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid #1a638a}.breakeven-mark.outside{border-color:#67798d}.breakeven-label{position:absolute;top:5px;transform:translateX(-50%);font-size:11px;line-height:14px;font-weight:700;color:#215779;white-space:nowrap;background:#eff6ffdc;padding:0 4px}.game-wallet .drag-area{padding-top:63px}.game-wallet .wallet-actions{margin-top:0}.game-wallet .wallet-top{min-height:41px}.game-wallet .wallet-top>strong{font-size:37px}
.game-wallet{padding-top:4px;padding-bottom:4px}.game-wallet .wallet-top{min-height:39px}.game-wallet .bid-confirm{min-height:31px;padding-top:5px;padding-bottom:5px}.breakeven-rail{border-top-color:#a6b3c3}

.game-upcoming{gap:2px}.game-upcoming>span{flex:0 1 25px;min-width:0}.game-upcoming img{width:100%;max-width:20px}
