/* DOWON: REWRITE · pastel landscape prototype UI (references supplied by the creator).
   All character SVGs are replaceable temporary artwork. No fake economy/stage persistence. */
.dw-app{--dw-ink:#36446c;--dw-muted:#6e7ca6;--dw-lav:#8a84e6;--dw-line:#bfc6e8;--dw-white:#fffaff;--dw-glass:rgba(255,255,255,.81);position:relative;min-height:100dvh;width:100%;isolation:isolate;overflow:hidden;color:var(--dw-ink);color-scheme:light;font-family:"Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}
.dw-app *, .dw-app *::before, .dw-app *::after{box-sizing:border-box}
.dw-app p{color:#66759c}
.dw-app button,.dw-app a{font-family:inherit}
.dw-app button{cursor:pointer}
.dw-app button:disabled{cursor:not-allowed;opacity:.52}
.dw-app a{text-decoration:none;color:inherit}
.dw-app button:focus-visible,.dw-app a:focus-visible{outline:3px solid #735ee2;outline-offset:2px}
.dw-overline{color:#7785b9;font-size:10px;font-weight:800;letter-spacing:.18em}
.dw-cta{border:1px solid #857ae4;border-radius:20px;background:linear-gradient(130deg,#a79cf4,#8076df);box-shadow:0 4px 0 #7068ba,0 12px 25px #6f68b933;color:#fff!important;text-align:center;padding:14px 25px;font-weight:900;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:9px}
.dw-cta:hover:enabled{filter:brightness(1.045);transform:translateY(-1px)}
.dw-lock-screen{display:flex;align-items:center;justify-content:center;gap:17px;flex-direction:column;background:linear-gradient(140deg,#dce7ff,#f2d9f3)}
.dw-lock-screen h1{font-size:28px}
.dw-lock-screen p{margin:0 0 12px}
/* title */
.dw-title-screen{min-height:100dvh;background:linear-gradient(180deg,rgba(114,126,198,.07),rgba(246,225,245,.12)),url("art/title-sky.svg") center/cover no-repeat}
.dw-title-top{position:absolute;inset:16px 22px auto;display:flex;align-items:flex-start;justify-content:space-between;z-index:2}
.dw-corner-label{font-size:11px;letter-spacing:.16em;background:#6779b88c;color:#fff;border-radius:18px;padding:7px 14px;font-weight:700}
.dw-title-tools{display:flex;gap:9px;flex-direction:column}
.dw-title-tools button,.dw-icon-btn{border:1px solid #d9d5f4;background:#ffffffdf;border-radius:13px;width:40px;height:40px;color:#6572a4;font-size:25px;box-shadow:0 3px 7px #7483b32b;display:grid;place-items:center}
.dw-title-logo{position:absolute;left:50%;top:40%;width:min(740px,87vw);transform:translate(-50%,-50%);text-align:center;color:#fff;text-shadow:0 3px 12px #747cb291}
.dw-logo-flower{font-size:42px;line-height:1.1;letter-spacing:.05em;color:#f9faff}
.dw-title-logo h1{font-size:clamp(36px,6vw,76px);font-weight:650;letter-spacing:.12em;line-height:1.22;margin:0 0 7px;text-shadow:0 4px 8px #7783b385,-2px -2px 0 #fff8}
.dw-logo-english{display:flex;align-items:center;justify-content:center;gap:18px;letter-spacing:.52em;font-size:clamp(10px,1.35vw,15px);font-weight:700}
.dw-logo-english span{width:62px;height:1px;background:#fff}
.dw-tap-start{margin-top:52px;background:#fff7;border:1px solid #fff8;padding:14px 32px;border-radius:40px;color:#3b4f7f;font-size:15px;font-weight:800;box-shadow:0 10px 34px #e8d1fa66;animation:dw-pulse 2.5s ease-in-out infinite}
.dw-title-hint{margin:14px auto 0;max-width:350px;border-radius:20px;padding:8px 13px;background:#fffdf0e5;color:#52618a;text-shadow:none;font-size:12px}
.dw-title-footer{position:absolute;bottom:14px;left:20px;right:20px;display:flex;justify-content:space-between;font-size:10px;color:#fff;letter-spacing:.08em;text-shadow:0 1px 3px #6976ad}
@keyframes dw-pulse{50%{transform:scale(1.025);box-shadow:0 10px 35px #fff8}}
/* common UI chrome */
.dw-hud-top{position:absolute;z-index:5;top:0;left:0;right:0;display:flex;align-items:flex-start;justify-content:space-between;padding:12px 19px;gap:12px;background:linear-gradient(#697bb65a,transparent)}
.dw-profile{display:flex;align-items:center;gap:9px;text-align:left;background:#5768a59a;border:1px solid #f4efffac;color:#fff;border-radius:48px;padding:5px 14px 5px 5px;min-width:155px;max-width:32vw}
.dw-profile-avatar{display:block;width:44px;height:44px;flex:none;border:2px solid white;border-radius:50%;overflow:hidden;background:#e3e3ff}
.dw-profile-avatar img{width:100%;height:100%;object-fit:cover;object-position:top}
.dw-profile-text{display:grid;gap:2px;min-width:0}
.dw-profile-text strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dw-profile-text small{font-size:9px;color:#edf2ff}
.dw-resource-group{display:flex;align-items:center;gap:10px}
.dw-resource,.dw-character-wallet span{border-radius:30px;background:#596da29c;border:1px solid #eff1ff7a;color:#fff;min-width:93px;padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;font-weight:800}
.dw-resource b{color:#e2ddff;font-size:18px}
.dw-resource-group .dw-icon-btn{height:33px;width:36px;font-size:21px}
/* lobby */
.dw-lobby-screen{min-height:100dvh;background:linear-gradient(90deg,#c0d3f155 0%,transparent 48%,#acc3e64f 100%),url("art/bridge.svg") center/cover no-repeat}
.dw-lobby-screen:after{content:"";position:absolute;inset:auto 0 0;height:38%;z-index:-1;background:linear-gradient(transparent,#c6cbed80)}
.dw-lobby-character{position:absolute;left:5%;bottom:-5%;height:103%;width:57%;z-index:1;pointer-events:none;display:flex;align-items:flex-end;justify-content:center;filter:drop-shadow(0 16px 15px #6872af55)}
.dw-lobby-character img{max-width:100%;width:100%;height:100%;object-fit:contain;object-position:bottom}
.dw-lobby-sidecopy{position:absolute;z-index:3;left:3%;top:22%;display:grid;justify-items:start;gap:10px}
.dw-lobby-bubble{background:#ffffffd9;border:1px solid #e7e4fb;padding:10px 14px;border-radius:18px 18px 18px 4px;box-shadow:0 5px 15px #869cc533;font-size:12px;font-weight:700;max-width:215px}
.dw-leader-chooser{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.dw-leader-dot{border:2px solid #ffffffc7;border-radius:10px;background:#f3f4ffbc;width:44px;height:44px;padding:0;overflow:hidden;box-shadow:0 3px 7px #7777b344}
.dw-leader-dot.is-active{outline:3px solid #a49bf1}
.dw-leader-dot img{width:100%;height:100%;object-fit:cover;object-position:top}
.dw-leader-name{font-size:15px;font-weight:900;color:#3c4782;text-shadow:0 2px 7px white}
.dw-leader-name small{font-size:11px;display:block;color:#6275aa}
.dw-lobby-actions{position:absolute;right:4.5%;top:25%;width:clamp(152px,22vw,260px);display:grid;gap:12px;z-index:4}
.dw-action{border-radius:40px;border:2px solid #ffffffd9;box-shadow:0 5px 15px #8599c34f;background:linear-gradient(135deg,#fefeffef,#eff1ffdc);color:#4a5b85;font-size:clamp(13px,1.8vw,20px);font-weight:900;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:47px}
.dw-action span{font-size:22px;color:#7b81bb}.dw-action b{font-size:20px}.dw-action-main{background:linear-gradient(135deg,#d5c7fb,#a894e9);color:#fff;font-size:clamp(18px,2.2vw,27px);min-height:71px;text-shadow:0 2px 8px #8275c2}
.dw-action-main span{color:#fff}
.dw-lobby-notice{position:absolute;bottom:18px;left:17px;width:clamp(190px,23vw,290px);display:flex;align-items:center;gap:6px;background:#f7f9ffeb;border:1px solid #e1dff5;border-radius:20px;padding:9px 12px;box-shadow:0 5px 18px #677ab836;font-size:11px;z-index:5}
.dw-notice-tag{background:#8c83dc;color:#fff;border-radius:8px;padding:4px 8px;flex:none}
.dw-lobby-notice span:nth-child(2){flex:1}
.dw-bottom-nav{position:absolute;z-index:4;bottom:15px;left:27%;width:51%;display:flex;justify-content:space-around;background:#fffefaed;border:1px solid #fff;box-shadow:0 5px 24px #8a90c83d;border-radius:30px 30px 15px 15px;padding:11px 9px}
.dw-bottom-nav button{display:grid;gap:3px;place-items:center;background:none;border:0;font-size:11px;color:#43547c;font-weight:800}
.dw-bottom-nav button span{font-size:24px;color:#7b83c4}
.dw-bottom-nav button.is-selected span{color:#8776da}
.dw-demo-caption{position:absolute;right:10px;bottom:2px;z-index:5;font-size:8px;color:#6577a2;pointer-events:none}
/* subhead */
.dw-subheader{height:80px;padding:15px 25px;display:flex;align-items:center;gap:12px;position:relative;z-index:2}
.dw-back,.dw-small-home{display:grid;place-items:center;background:#fff9;border:1px solid #fff;border-radius:14px;min-width:43px;height:43px;font-size:30px;color:#56668e;box-shadow:0 4px 8px #6a6fa626}
.dw-small-home{font-size:15px;padding:0 14px;white-space:nowrap}
.dw-subtitle h1{font-size:clamp(18px,2vw,26px);margin:0;color:#3d4d79}
.dw-subtitle small{font-size:10px;letter-spacing:.22em;color:#7280ab}
.dw-inline-message{font-size:12px;font-weight:650;color:#615895;background:#f3edffd9;border:1px solid #cfbef5;border-radius:13px;padding:9px 12px}
/* stages */
.dw-stage-screen{background:linear-gradient(135deg,#dce4fa,#f5eafb);display:flex;flex-direction:column}
.dw-stage-layout{display:grid;grid-template-columns:minmax(165px,23%) minmax(280px,1fr) minmax(225px,27%);gap:14px;padding:4px 20px 22px;flex:1;min-height:0}
.dw-chapter-list,.dw-stage-center,.dw-stage-detail{border:1px solid #d5d6ee;border-radius:22px;background:#fafaffbd;box-shadow:0 10px 23px #7d8db21f;min-height:0}
.dw-chapter-list{padding:18px 11px;display:flex;flex-direction:column;gap:8px}
.dw-side-caption{font-size:11px;font-weight:800;letter-spacing:.14em;color:#8795ba;padding:3px 8px 12px}
.dw-chapter-list button{border:0;border-radius:11px;text-align:left;background:#f0f2fd;color:#7080a9;padding:12px 11px;font-size:clamp(11px,1.2vw,14px);font-weight:700;display:flex;justify-content:space-between;gap:5px}
.dw-chapter-list button.is-current{background:linear-gradient(130deg,#a99ded,#8185dd);color:white;box-shadow:0 4px 10px #aaa3e055}
.dw-stage-center{padding:20px;display:flex;flex-direction:column}
.dw-stage-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;border-bottom:1px solid #dde0f3;padding-bottom:17px}
.dw-stage-head h2{font-size:clamp(19px,2.1vw,30px);margin:7px 0}
.dw-stage-head p{font-size:12px;line-height:1.5;margin:0}
.dw-mode-switch{display:flex;gap:5px;background:#edf0fc;border:1px solid #d7d9ef;border-radius:25px;padding:3px;white-space:nowrap}
.dw-mode-switch button{background:transparent;border:0;border-radius:23px;color:#777d9e;padding:9px 16px;font-size:12px;font-weight:800}
.dw-mode-switch .active{background:linear-gradient(130deg,#a9a1f2,#8483db);color:#fff;box-shadow:0 3px 8px #8880c555}
.dw-stage-scroll{display:grid;gap:10px;overflow:auto;margin-top:16px;padding:1px 3px 4px}
.dw-stage-row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #d8deee;border-radius:15px;padding:12px;min-height:62px;color:#41517d;text-align:left;box-shadow:0 2px 5px #b8c2dc26}
.dw-stage-row.selected{border-color:#978ae7;background:#f3efff;box-shadow:0 0 0 2px #a89ef333}
.dw-stage-number{color:#8880ca;font-size:14px;font-weight:900;width:39px;flex:none}
.dw-stage-name{font-size:14px;font-weight:800;flex:1}
.dw-stage-stars{color:#d4b05c;font-size:18px}
.dw-stage-play{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;border:1px solid #d5d9ed;color:#8d85cf;font-size:12px}
.dw-stage-helper{font-size:11px;color:#8996b3;padding-top:12px}
.dw-stage-detail{display:flex;flex-direction:column;overflow:hidden}
.dw-stage-poster{height:33%;min-height:150px;background:linear-gradient(#b3aff35e,#9aa3df50),url("art/ruins.svg") center/cover;display:flex;flex-direction:column;justify-content:space-between;padding:16px;color:#fff;text-shadow:0 3px 7px #6571a0}
.dw-stage-poster span{font-size:11px;letter-spacing:.17em;font-weight:800}
.dw-stage-poster b{font-size:clamp(24px,3.2vw,48px);letter-spacing:.2em;align-self:end;opacity:.88}
.dw-stage-details{padding:20px;display:flex;flex:1;flex-direction:column;gap:10px}
.dw-stage-details h2{font-size:clamp(16px,1.7vw,23px);line-height:1.3;margin:0}
.dw-stage-details p{font-size:12px;line-height:1.5;margin:0}
.dw-stage-rewards{margin-top:auto;border-top:1px solid #dce0f1;padding-top:12px}
.dw-stage-rewards strong{font-size:12px}
.dw-stage-rewards div{display:flex;gap:10px;margin-top:8px}
.dw-stage-rewards span{width:40px;height:40px;border-radius:11px;background:#f1eafd;color:#a08bd4;display:grid;place-items:center;font-size:25px}
.dw-stage-details .dw-dev-note{font-size:10px;color:#8891ad}
.dw-stage-sortie{width:100%;border-radius:28px;margin-top:3px}
/* character screen */
.dw-character-screen{background:linear-gradient(90deg,#d5ddf5aa,#d6d5f573),url("art/bridge.svg") center/cover;display:flex;min-height:100dvh}
.dw-character-header{position:absolute;left:0;top:0;right:0;z-index:4;background:linear-gradient(#7180b59a,transparent);color:#fff}
.dw-character-header .dw-subtitle{display:flex;align-items:center;gap:16px}
.dw-character-header .dw-subtitle h1{color:#fff;text-shadow:0 2px 4px #7085bd}
.dw-character-header .dw-subtitle small{color:#fff}
.dw-character-wallet{display:flex;gap:9px;margin-left:auto}
.dw-character-wallet span{min-width:80px}
.dw-character-left{position:relative;width:54%;min-height:100dvh;overflow:hidden}
.dw-portrait-rail{position:absolute;z-index:3;top:100px;left:10px;bottom:24px;display:flex;flex-direction:column;gap:9px;overflow:auto;max-width:76px;padding:4px}
.dw-portrait-tile{position:relative;display:block;flex:none;width:64px;height:64px;overflow:hidden;border-radius:15px;border:3px solid #f7f6ff;background:#eeeafb;box-shadow:0 4px 10px #8f9dcd55;padding:0}
.dw-portrait-tile.active{outline:3px solid #8d7de8}
.dw-portrait-tile img{width:100%;height:100%;object-fit:cover;object-position:center 23%}
.dw-portrait-tile span{position:absolute;bottom:0;left:0;right:0;background:#605f91a3;color:#fff;font-size:9px}
.dw-figure-wrap{position:absolute;inset:65px 0 -4% 42px;display:flex;align-items:flex-end;justify-content:center;filter:drop-shadow(0 8px 16px #788cb54f)}
.dw-figure-wrap img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;object-position:bottom}
.dw-character-nameplate{position:absolute;z-index:2;bottom:28px;left:105px;padding:10px 22px;border-radius:12px;background:linear-gradient(90deg,#fffefad4,#f7f7ff25);border-left:5px solid #9286f0;box-shadow:0 5px 18px #9fa9d735}
.dw-character-nameplate .dw-rarity{color:#ae93e4;font-size:25px;letter-spacing:.15em}
.dw-character-nameplate h2{font-size:clamp(27px,4vw,49px);margin:0;color:#344371;text-shadow:0 1px 2px #fff}
.dw-character-nameplate div:not(.dw-rarity){font-size:14px;font-weight:900;color:#546691}
.dw-character-nameplate small{font-size:10px;color:#7685a5}
.dw-character-panel{width:46%;display:flex;flex-direction:column;gap:13px;padding:100px 20px 22px 4px;min-height:0;position:relative;z-index:2}
.dw-character-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;background:#fff7;border:1px solid #c7cde9;padding:6px;border-radius:20px}
.dw-character-tabs button{border:1px solid #cbd0ec;background:#eef0fb;color:#4c5684;border-radius:13px;padding:14px 4px;font-size:clamp(12px,1.7vw,20px);font-weight:900}
.dw-character-tabs button.active{background:linear-gradient(135deg,#ada0f6,#857de6);border-color:#8c84de;color:white}
.dw-character-stats,.dw-card-container{background:#fdfdffec;border:1px solid #d1d4ec;border-radius:21px;padding:20px;box-shadow:0 5px 13px #7d8fc51a}
.dw-character-stats{min-height:130px}
.dw-character-level{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dw-character-level strong{font-size:clamp(24px,3vw,36px);color:#334476}
.dw-character-level small{font-size:18px;font-weight:500;color:#8e97b3}
.dw-character-level span,.dw-preview-label{font-size:11px;color:#7784a8;max-width:45%;text-align:right}
.dw-exp-track{height:12px;background:#e0e3f4;border-radius:10px;overflow:hidden;margin:10px 0 14px}
.dw-exp-track span{display:block;height:100%;background:#b8adeb;width:12%}
.dw-preview-label{max-width:100%;text-align:left;line-height:1.5}
.dw-empty-slots{display:flex;gap:14px}
.dw-empty-slots div{display:grid;place-items:center;background:#f0f0fc;color:#8c8ad7;border:1px solid #c7d1ec;border-radius:14px;width:85px;height:70px;font-size:23px}
.dw-empty-slots small{font-size:10px}
.dw-character-stats h2{margin:0 0 12px}.dw-character-stats p{font-size:12px}
.dw-card-container{flex:1;display:flex;flex-direction:column;min-height:0}
.dw-card-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px}
.dw-card-heading h3{font-size:17px;margin:0}
.dw-card-heading small{display:block;font-size:10px;color:#8c96ae;font-weight:500}
.dw-card-heading button{border:1px solid #cbd0eb;border-radius:20px;background:#f7f7ff;color:#67739c;padding:7px 12px;font-weight:800;font-size:11px;white-space:nowrap}
.dw-card-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;flex:1}
.dw-gallery-card{min-height:145px;position:relative;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;gap:5px;border:2px solid #bac3f0;border-radius:12px;background:linear-gradient(135deg,#a2a5e6,#8aadd3);color:#fff;text-align:center;padding:18px 5px 9px;box-shadow:0 3px 6px #8190be3b}
.dw-gallery-card:nth-child(3n){background:linear-gradient(135deg,#8ecbc6,#9bb9dd)}.dw-gallery-card:nth-child(3n+1){background:linear-gradient(135deg,#b1a0ea,#959ddd)}
.dw-card-cost,.dw-mana{position:absolute;top:-8px;left:-7px;width:28px;height:28px;display:grid;place-items:center;background:#9b9bef;border:2px solid #fff;color:#fff;border-radius:9px;transform:rotate(-7deg);font-size:15px;font-weight:900}
.dw-card-symbol{font-size:clamp(23px,4vw,46px);margin:8px 0;color:#fff;text-shadow:0 2px 3px #555da077}
.dw-gallery-card strong{font-size:clamp(10px,1vw,14px);line-height:1.25}
.dw-gallery-card small{font-size:9px;line-height:1.2;color:#fffef0}
.dw-character-cta{width:100%;border-radius:19px;flex:none}
/* battle */
.dw-battle-screen{min-height:100dvh;background:linear-gradient(#abb8e420,#e7d1e88c),url("art/ruins.svg") center/cover;display:flex;flex-direction:column}
.dw-battle-top{height:64px;position:relative;z-index:3;padding:12px 20px;display:flex;gap:9px;align-items:center}
.dw-battle-pause,.dw-battle-chip{display:grid;place-items:center;border:1px solid #fff7;background:#4f628ba6;color:white;border-radius:11px;padding:7px 12px;font-size:13px;font-weight:900;box-shadow:0 3px 5px #6a78a035}
.dw-battle-pause{font-size:18px}
.dw-battle-mode{margin-left:auto}
.dw-battle-zone{flex:1;display:flex;min-height:150px;position:relative;z-index:1;padding:12px 4% 0;justify-content:space-between;align-items:flex-end}
.dw-battle-squad{display:flex;align-items:flex-end;width:55%;height:100%;gap:0;justify-content:space-around}
.dw-battle-hero{position:relative;flex:1;max-width:155px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
.dw-battle-hero img{height:87%;max-height:250px;width:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 7px 6px #657aa17a)}
.dw-battle-hero>span{color:#3f507a;font-size:11px;font-weight:800;text-shadow:0 1px #fff;position:absolute;bottom:0}
.dw-sd-bar{width:73%;height:7px;background:#8b9cbd;position:absolute;top:4%;border:1px solid #f7f7ff;border-radius:5px;overflow:hidden}
.dw-sd-bar span{display:block;width:100%;height:100%;background:#7cbb93}
.dw-battle-glitch{position:relative;align-self:center;width:36%;max-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.dw-battle-glitch img{height:min(29vh,206px);max-width:100%;object-fit:contain;filter:drop-shadow(0 8px 9px #806fa76a)}
.dw-enemy-head{width:95%;max-width:260px;display:flex;align-items:center;gap:6px;font-size:10px;font-weight:900;color:#5d5581}
.dw-enemy-head>span{color:#a99de4;font-size:17px}
.dw-enemy-health{flex:1;height:10px;border:2px solid #f9f6ff;border-radius:20px;background:#615778;overflow:hidden}
.dw-enemy-health span{display:block;height:100%;background:#ca7fa5}
.dw-enemy-intent{font-size:12px;font-weight:900;background:#f7ecffd9;color:#83679d;border:1px solid #fff;border-radius:18px;padding:7px 11px}
.dw-enemy-status{display:flex;gap:4px;margin-top:5px;flex-wrap:wrap;justify-content:center}
.dw-enemy-status span{background:#e8d5ef;color:#895389;padding:4px 8px;border-radius:12px;font-size:11px}
.dw-battle-bottom{display:grid;grid-template-columns:minmax(100px,15%) 1fr minmax(120px,17%);gap:10px;align-items:end;padding:9px 15px 8px;z-index:2;background:linear-gradient(transparent,#d9d6edbd 17%,#d9d7edec 100%)}
.dw-battle-party{display:grid;align-content:end;gap:8px;padding:0 5px 6px}
.dw-hp-label{font-size:11px;font-weight:800;color:#3e5c70}
.dw-hp-label b{display:block;color:#3b617d;font-size:14px}
.dw-hp-track{height:9px;border-radius:10px;background:#b7c7d0;overflow:hidden;border:1px solid #fff}
.dw-hp-track span{display:block;background:#7cc6a4;height:100%}
.dw-energy-dial{width:78px;height:78px;border-radius:50%;border:5px double #f1ebff;background:#718fbe;box-shadow:0 3px 13px #607aa777;display:flex;align-items:center;justify-content:center;flex-direction:column;color:white}
.dw-energy-dial strong{font-size:29px}.dw-energy-dial small{font-size:10px;letter-spacing:.05em}
.dw-shield-stat{font-size:11px;color:#60769e}
.dw-battle-hand{display:flex;align-items:stretch;justify-content:center;gap:7px;min-width:0}
.dw-combat-card{flex:1;max-width:150px;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;border:2px solid #f8f7ff;border-radius:15px;background:linear-gradient(140deg,var(--card-tone),#899fc9);box-shadow:0 5px 9px #667cb655;color:white;padding:16px 6px 7px;text-align:center;min-height:163px;gap:3px}
.dw-combat-card-head{width:100%;display:flex;justify-content:flex-end;font-size:10px}
.dw-combat-card-head small{color:#fff;font-size:10px;font-weight:800}
.dw-combat-card .dw-mana{top:-11px;left:-6px;z-index:2}
.dw-combat-card-icon{font-size:clamp(23px,3vw,42px);text-shadow:0 3px 6px #5a6e9d;line-height:1.2}
.dw-combat-card strong{font-size:clamp(10px,1.15vw,15px);line-height:1.15}
.dw-card-description{font-size:clamp(9px,.85vw,11px);line-height:1.25;flex:1;max-height:44px;overflow:auto;color:#f9faff}
.dw-card-use{background:#fffdf0;border:1px solid white;border-radius:10px;color:#5b6096;font-weight:900;font-size:11px;padding:6px 2px;width:100%}
.dw-card-utilities{width:100%;display:flex;justify-content:center;gap:3px}
.dw-card-utilities button{flex:1;border:1px solid #f7f7ff77;border-radius:8px;background:#ffffff35;color:white;font-size:10px;padding:4px 2px}
.dw-card-utilities button.active{background:#e5f5e8;color:#4d8a68}
.dw-battle-end-actions{display:grid;gap:10px;align-self:center}
.dw-battle-piles{font-size:10px;color:#5d6f99;text-align:center}
.dw-end-turn{border:2px solid #f5efff;background:linear-gradient(125deg,#8494d7,#6e79b8);color:white;font-weight:900;border-radius:33px;min-height:57px;box-shadow:0 5px 11px #757cab5c;font-size:clamp(13px,1.4vw,18px);padding:8px}
.dw-battle-message{grid-column:1/-1;color:#6378a5;font-size:11px;text-align:center;min-height:15px}
.dw-battle-result{grid-column:2;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;background:#f9f8ffe8;border-radius:16px;padding:17px}
.dw-battle-result h2{margin:0}.dw-battle-result p{margin:0;font-size:12px}
.dw-soft-button{display:inline-grid;place-items:center;border:1px solid #c0c5e6;border-radius:15px;padding:10px 16px;background:#f7f7ffdd;color:#52628e!important;font-weight:800;font-size:12px}
.dw-battle-log{position:absolute;z-index:3;left:12px;top:72px;background:#fffd;border-radius:12px;padding:5px 10px;max-width:210px;font-size:11px;color:#51638b}
.dw-battle-log summary{cursor:pointer;font-weight:800}.dw-battle-log ol{max-height:130px;overflow:auto;padding-left:20px}
.dw-modal-scrim{position:absolute;z-index:20;inset:0;background:#25305299;display:grid;place-items:center}
.dw-modal-card{background:#fcfaff;border:2px solid #fff;border-radius:22px;padding:22px;box-shadow:0 12px 32px #3b467055;display:grid;gap:12px;width:min(340px,88vw);text-align:center}
.dw-modal-card h2{margin:0}.dw-modal-card p{font-size:12px;margin:0}
/* adapt narrow landscape / tall screens */
@media(max-width:1040px){
 .dw-lobby-character{left:4%;width:57%}.dw-lobby-sidecopy{top:19%}
 .dw-resource{min-width:65px}.dw-hud-top{padding:8px 12px}
 .dw-stage-layout{grid-template-columns:180px minmax(260px,1fr) minmax(205px,27%);gap:9px;padding:4px 11px 12px}
 .dw-stage-center{padding:13px}.dw-stage-details{padding:13px}.dw-stage-row{padding:8px;min-height:48px}
 .dw-character-panel{padding-right:11px;gap:8px}.dw-character-stats,.dw-card-container{padding:12px}
 .dw-portrait-rail{max-width:62px}.dw-portrait-tile{width:54px;height:54px}
 .dw-card-gallery{gap:4px}.dw-gallery-card{padding:16px 3px 5px;min-height:112px}
 .dw-combat-card{min-height:139px}
}
@media(max-height:590px) and (orientation:landscape){
 .dw-hud-top{padding:5px 13px}.dw-profile-avatar{width:37px;height:37px}.dw-title-logo{top:39%}.dw-title-logo h1{font-size:44px}.dw-tap-start{margin-top:25px}
 .dw-lobby-actions{top:19%;gap:7px}.dw-action{min-height:36px;padding:5px 11px}.dw-action-main{min-height:52px}
 .dw-bottom-nav{bottom:7px;padding:6px}.dw-bottom-nav button span{font-size:19px}.dw-lobby-notice{bottom:9px}
 .dw-subheader{height:55px;padding:8px 15px}.dw-stage-detail .dw-stage-poster{min-height:95px}.dw-stage-details{gap:5px}
 .dw-stage-scroll{gap:5px;margin-top:7px}.dw-stage-row{min-height:38px;padding:6px}
 .dw-stage-head{padding-bottom:8px}.dw-stage-head p{display:none}
 .dw-character-header{height:58px}.dw-character-panel{padding-top:66px;padding-bottom:10px}.dw-figure-wrap{top:48px}
 .dw-character-tabs button{padding:9px 4px}.dw-character-level strong{font-size:25px}.dw-character-stats{min-height:88px}.dw-card-container{min-height:0}
 .dw-gallery-card{min-height:100px}.dw-card-symbol{margin:1px}.dw-gallery-card small{display:none}
 .dw-battle-top{height:47px;padding:6px 12px}.dw-battle-zone{min-height:110px;padding:0 4%}.dw-battle-glitch img{height:min(27vh,138px)}
 .dw-battle-bottom{padding:6px 10px 3px}.dw-combat-card{min-height:125px;padding:13px 3px 4px;gap:1px}.dw-card-description{max-height:28px}.dw-card-use{padding:3px}
 .dw-energy-dial{width:60px;height:60px}.dw-energy-dial strong{font-size:24px}
}
@media(max-width:690px) and (orientation:portrait){
 .dw-title-logo{top:42%}.dw-title-logo h1{font-size:37px}.dw-logo-flower{font-size:32px}.dw-title-footer{font-size:7px}
 .dw-lobby-screen{min-height:850px}.dw-lobby-character{height:55%;width:100%;left:0;bottom:130px}.dw-lobby-sidecopy{left:4%;top:14%;}.dw-lobby-actions{top:auto;bottom:101px;width:92%;right:4%;grid-template-columns:repeat(2,1fr)}
 .dw-action-main{min-height:55px}.dw-bottom-nav{left:3%;width:94%;bottom:20px}.dw-lobby-notice{bottom:190px;left:5%}
 .dw-resource-group{gap:4px}.dw-resource{display:none}.dw-demo-caption{display:none}
 .dw-stage-screen{min-height:100dvh;overflow:auto}.dw-stage-layout{grid-template-columns:1fr;overflow:auto}.dw-chapter-list{display:none}.dw-stage-detail{min-height:310px}.dw-stage-center{min-height:480px}
 .dw-character-screen{min-height:1050px;display:block;overflow:auto}.dw-character-left{width:100%;min-height:540px}.dw-figure-wrap{inset:90px 0 0 35px}.dw-character-panel{width:100%;padding:12px 12px 30px}.dw-character-wallet{display:none}
 .dw-battle-screen{min-height:900px}.dw-battle-zone{height:300px;flex:none}.dw-battle-bottom{grid-template-columns:1fr;gap:8px}.dw-battle-party{display:flex;align-items:center}.dw-battle-hand{flex-wrap:wrap}.dw-combat-card{flex:0 0 30%;max-width:none}.dw-battle-message{grid-column:1}.dw-battle-end-actions{width:100%}
}
@media(prefers-reduced-motion:reduce){.dw-tap-start{animation:none}.dw-cta:hover{transform:none}}

/* Keep the existing working login flow, align its look to the pastel game. */
.account-page{background:linear-gradient(135deg,#91a5d488,#f5dfefad),url("art/title-sky.svg") center/cover;color:#36446c}
.account-page .return-link{color:#fff;font-weight:900;text-shadow:0 2px 5px #647baa}
.account-page .account-story h1{color:#fff;text-shadow:0 3px 12px #7985be}
.account-page .account-story p,.account-page .story-quote{color:#f8f7ff;text-shadow:0 1px 5px #6986ad}
.account-page .auth-card{background:#fdfaffeb;color:#3f507e;border:2px solid #fff;box-shadow:0 18px 45px #6473a755}
.account-page .auth-card h2{color:#3d4c7a}
.account-page .auth-card p{color:#697ba5}
.account-page .auth-card label{color:#51638f}
.account-page .auth-card input{background:#fff;color:#374b70;border:1px solid #c7cce6}
.account-page .auth-primary{background:linear-gradient(120deg,#a89df2,#837add)!important;color:#fff!important}
.account-page .auth-guest{color:#6775a6!important;border-color:#bbbde8!important}
.account-page .text-button{color:#7464bc}
.account-page .guest-note{color:#8593b0!important}
.account-page .auth-divider{color:#8490af}
.account-page .auth-divider::before,.account-page .auth-divider::after{background:#cfd2e5}
.account-page .auth-error{background:#ffe9ef;color:#a24f6c!important}
