:root{--bg:#22372f;--panel:#29443b;--panel2:#315046;--line:#6d8a65;--text:#fff8dc;--muted:#d5d6b5;--gold:#f2c75b;--green:#a9d57c;--red:#ef8f79;--serif:Pretendard,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;--armory-ink:#fff0c4;--armory-muted:#d8d6b4;--armory-gold:#f4ce6b}
html,body{background:#172a24}
body{color:var(--text)}
button:hover:not(:disabled){background:#4c6e55;border-color:#e5c765}
.window-backdrop,.blessing-overlay,.forge-overlay{background:#10251fb8}
.location-hud,.field-objective,.camp-hint,.hud-messages p{background:#193128df}
.world-asset-status{background:#244c3ee8;color:#fff0ba}
.world-caption{background:#1c3a31df;border-color:#91af7355;color:#f6e9c8}
.target-health{background:#3e4030;border-color:#d2a95a}.target-health span{background:#e27d56}
.hud-meter{background:#403c2b;border-color:#b88a49}.hud-meter>span{background:linear-gradient(#f08b69,#cd5f47)}.hud-meter.xp>span{background:#f3cd61}
.hero-avatar{background-image:var(--hero-atlas);background-position:0 0;background-size:512px 512px}
.armory-portrait,.knight-portrait{background-image:var(--hero-atlas);background-position:0 0;background-size:1024px 1024px}
.origin-dialog,.game-window,.forge-dialog{color:#fff4cf}
.origin-dialog .origin-card,.game-window .panel{background:#29443bd4}
.origin-dialog .origin-card:hover{background:#3a5b47}
.game-window .map-destination{color:#f7edcf}
.game-window .primary{color:#fff0b5}
.item-effect{background:#4a3e2466;border-color:#c99b4f;color:#ffdc81}

.cute-origin{width:min(1260px,calc(var(--game-width) - 48px));max-width:none;height:min(850px,calc(var(--game-height) - 36px));max-height:none;text-align:center}
.cute-origin .dialog-inner{padding:24px 32px 20px}
.cute-origin h1{font-size:28px;margin:4px 0 6px}.cute-origin>div>p{font-size:14px}
.character-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:18px 0 14px}
.character-choice{display:flex;min-width:0;min-height:164px;flex-direction:column;align-items:center;padding:8px 6px 10px;border:2px solid #76906a;background:#244038;color:#f9edcc;border-radius:2px;transition:transform .15s,filter .15s,border-color .15s}
.character-choice:hover{transform:translateY(-2px);filter:brightness(1.08);border-color:var(--choice-color)}
.character-choice.selected{border-color:var(--choice-color);background:#3a5847;box-shadow:0 0 0 3px color-mix(in srgb,var(--choice-color) 30%,transparent)}
.character-choice:focus-visible{outline:3px solid #ffe18b;outline-offset:2px}
.character-choice-art{display:block;width:96px;height:96px;background-image:var(--choice-atlas);background-size:768px 768px;background-position:0 0;image-rendering:pixelated}
.character-choice strong{font-size:15px;line-height:1.4;color:#fff1b7}.character-choice small{font-size:13px;line-height:1.4;color:#d2d8bd;margin-top:3px;word-break:keep-all}
.creator-summary{display:grid;grid-template-columns:96px minmax(220px,1fr) minmax(360px,1.4fr);align-items:center;gap:18px;max-width:980px;margin:0 auto 15px;padding:10px 16px;border:1px solid #78906b;background:#203b32;border-radius:2px;text-align:left}
.creator-avatar{display:block;width:96px;height:96px;background-image:var(--choice-atlas);background-size:768px 768px;background-position:0 0;image-rendering:pixelated}
.creator-summary>div b{display:block;font-size:18px;color:#ffe193}.creator-summary>div span{display:block;font-size:13px;color:#d4d9be;margin-top:4px}
.cute-origin .name-label{display:grid;grid-template-columns:auto minmax(180px,1fr);align-items:center;justify-content:stretch;gap:4px 12px;margin:0;text-align:left;color:#f2e4c1}
.cute-origin .name-label>span{font-size:14px;font-weight:600}.cute-origin .name-label input{width:100%;font-size:15px;padding:9px 11px;border:1px solid #8da275;background:#172f28;color:#fff6d9}
.cute-origin .name-label small,.cute-origin .name-label em{grid-column:2;font-size:13px;line-height:1.45;font-style:normal;min-height:17px}
.cute-origin .name-label small{color:#bfcbae}.cute-origin .name-label em{color:#ffae93}
.cute-origin .name-label input[aria-invalid=true]{border-color:#ff9a7c;box-shadow:0 0 0 2px #ff9a7c33}
.origin-section-heading{display:flex;align-items:baseline;justify-content:center;gap:14px;margin:8px 0}.origin-section-heading h2{font-size:18px;color:#ffe193}.origin-section-heading p{font-size:13px;color:#cbd3b7}
.cute-origin .origin-options{gap:12px}.cute-origin .origin-card{min-height:205px;padding:12px 16px}.cute-origin .origin-mark{font-size:30px;margin:2px auto}.cute-origin .origin-card h2{font-size:17px;margin:3px 0 9px}.cute-origin .origin-card>div{padding:6px 0}.cute-origin .origin-card>div b{font-size:13px}.cute-origin .origin-card>div span{font-size:13px}.cute-origin .origin-choose{font-size:13px;margin-top:auto;padding-top:8px}
.cute-origin .dialog-footer{margin-top:12px}

@media(prefers-reduced-motion:reduce){.character-choice{transition:none}.character-choice:hover{transform:none}}

/* Lacquered wood, ink-green cloth and brass: one restrained village-game palette. */
:root{--bg:#1e302d;--panel:#243c36;--panel2:#304b40;--line:#8e7850;--text:#f8ebcd;--muted:#d0c8af;--gold:#eac879;--green:#b6d58a;--red:#efa38d}
#game-shell{background:#131e1c}
.cute-origin{height:auto;max-height:calc(var(--game-height) - 36px)}
.cute-origin .dialog-inner{padding:18px 26px}
.cute-origin>.dialog-inner>.eyebrow{display:block;font-size:14px;letter-spacing:.12em;color:#eac879}
.cute-origin h1{font-size:30px;margin:5px 0 8px}
.cute-origin .character-picker{margin:16px 0;gap:10px}
.character-choice{position:relative;background:#20362f;border-color:#7a7854;border-bottom-width:4px;padding:10px 6px}
.character-choice.selected{background:#3c503b;box-shadow:inset 0 0 0 2px #192e25;border-color:#eac879}
.character-choice.selected:after{content:'선택';position:absolute;right:6px;top:6px;color:#f3d798;font-size:12px;line-height:20px}
.character-choice strong{font-size:16px}.character-choice small{max-width:160px;color:#dfd9bf}
.creator-summary{border-color:#847450;background:#1b302b;border-left:3px solid #b99a5a}
.cute-origin .origin-options{gap:12px}
.cute-origin .origin-card{position:relative;min-height:208px;text-align:left;padding:12px 18px;border:1px solid #927950;border-bottom:4px solid #6e5838;background:#283d32}
.cute-origin .origin-card:hover{background:#3c503b;border-color:#edce8a}
.cute-origin .origin-mark{position:absolute;right:16px;top:8px;margin:0;color:#bda878;font-size:28px}
.cute-origin .origin-card h2{margin:4px 0 8px;color:#f3d798;font-size:18px}
.cute-origin .origin-card>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-color:#89795144}
.cute-origin .origin-card>div b{font-size:14px}.cute-origin .origin-card>div span{font-size:13px}
.cute-origin .origin-choose{display:block;padding-top:12px;color:#f3d798;font-size:14px}
.cute-origin .origin-section-heading{margin:12px 0 10px;justify-content:space-between}
.cute-origin .origin-section-heading p{font-size:14px}
.cute-origin .dialog-footer{justify-content:space-between;margin-top:12px;color:#d0c8af}
.cute-origin .name-label input{border-radius:2px;border-color:#a18b60;min-height:44px}
button:focus-visible,input:focus-visible{outline:2px solid #ffe0a0;outline-offset:3px}

.knight-portrait{background-size:512px 512px}

/* One atlas pixel remains discrete through the outer desktop fit transform. */
#world-canvas{image-rendering:pixelated}
.character-choice-art{width:128px;height:128px;background-size:1024px 1024px}
.creator-avatar{width:64px;height:64px;background-size:512px 512px}
.creator-summary{grid-template-columns:64px minmax(220px,1fr) minmax(360px,1.4fr)}
.character-choice{min-height:202px}
.cute-origin .origin-card{min-height:188px}
