/* Screen polish (2026-10-11): colour, hierarchy and state cues only.
   Board padding, border widths and SVG sizes are left alone so shape scale never changes. */

/* ── Title: calmer hierarchy and readable small text over the village art ── */
.title-top span{padding:7px 13px;border:1px solid #e6d79c55;border-radius:12px;background:#153e34b8;text-shadow:none}
.title-prologue,.title-subtitle{text-shadow:0 1px 2px #0b2a20,0 0 12px #0b2a20d9}
.title-menu .device-orientation-guide{margin:12px 0 2px;padding:4px 8px;border:0;background:#0000001f;color:#d9e2cf}
.title-other{margin-top:8px;padding-top:4px;border-top:1px solid #e9d89b33}
.title-other button{color:#e8e3c9}
.title-footer>p{display:inline-block;padding:4px 14px;border-radius:999px;background:#0d302fb3;color:#f1ecd2}

/* ── Village HUD: who to visit, where, and today's five repairs ── */
.rpg-mission{background:linear-gradient(#fffaea,#fbf2da);border-bottom:1px solid #e6dbb8}
.quest-portrait{flex:none;display:grid}
.quest-portrait .avatar{width:46px;height:46px;border-color:#f3cf7a;box-shadow:0 0 0 2px #fff9e9,0 3px 8px #3c442b26}
.rpg-mission>.quest-text{flex:1;min-width:0}
.quest-meta{display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px}
.quest-place{letter-spacing:.3px}
.quest-today{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#7a6a3f;white-space:nowrap}
.quest-pips{display:inline-flex;gap:3px}
.quest-pips i{width:11px;height:7px;border-radius:4px;background:#e6dcc0;box-shadow:inset 0 0 0 1px #d3c59f}
.quest-pips i.done{background:#e9b656;box-shadow:inset 0 0 0 1px #c18e2f}
.quest-today b{color:#5d4a1c}

/* ── Map frame and controls ── */
.rpg-viewport::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,transparent 60%,#10261d47 100%);box-shadow:inset 0 0 0 1px #ffffff14,inset 0 12px 16px -12px #0c1f18a6}
.map-control[aria-pressed="true"]{background:#234f44;border-color:#f5cf75;color:#fff8e6}
.direction-pad{background:radial-gradient(closest-side,#16332a5c 97%,transparent)}
.direction-pad button[data-walk]{background:#fffaeaf2;border-color:#b9c3a0;box-shadow:0 2px 0 #4f61468c}
.direction-pad button[data-walk]:active{background:#ffdb7d;box-shadow:none}
.talk-button:disabled{background:#223f32d1;border-color:#fff3cf59;color:#fff3cf;opacity:1}

/* ── Seven-day track: finished, in progress, still ahead ── */
.rpg-day-track{background:linear-gradient(#fbf3de,#f5ecd5);border-top:1px solid #e6dbb8}
.rpg-day-track em{font-style:normal;font-size:12px;font-weight:700;color:#4c5f4c;white-space:nowrap}
.rpg-day-track span:not(.done):not(.current){opacity:.72}
.rpg-day-track .current b{background:radial-gradient(#fff6da 55%,transparent 58%),conic-gradient(#d28a1e var(--p,0%),#ecdcae 0);box-shadow:0 0 0 2px #efbd58}
.rpg-day-track .current small{color:#7a5a16;font-weight:700}
.rpg-day-track .done small,.rpg-day-track .done em{color:#37694f}
@media(max-width:760px){
 .quest-portrait .avatar{width:40px;height:40px}
 .quest-place,.quest-today-label,.rpg-day-track em{display:none}
}
@media(max-width:370px){.quest-portrait{display:none}}
@media (min-width:740px) and (orientation:landscape){
 .quest-meta{grid-row:1/3;flex-direction:column;align-items:flex-start;gap:2px;padding-right:13px;border-right:1px solid #e6dbb8}
 .quest-portrait .avatar{width:40px;height:40px}
 .rpg-day-track em{display:none}
}
@media (min-width:1000px) and (orientation:landscape){
 .rpg-day-track{gap:12px}
 .rpg-day-track span{min-width:0}
 .rpg-day-track em{display:inline}
 .rpg-day-track .done small{display:none}
}
@media (min-width:740px) and (orientation:landscape) and (max-height:560px){.quest-portrait .avatar{width:32px;height:32px}}

/* ── Workbench: order slip, materials, board and tools read as separate things ── */
.is-order .task-card{border-color:#cfbf97}
.is-order .task-ribbon{background:repeating-linear-gradient(90deg,#d9a765 0 14px,#f6e2b8 14px 28px) top left/100% 4px no-repeat,linear-gradient(#fbf3dc,#f6ebcd);border-bottom:1px solid #e0d0a4}
.is-order .activity .workbench{border-color:#cdb480;box-shadow:0 3px 0 #dccb9f}
.is-order .step-label.step-flow{display:flex;flex-wrap:wrap;align-items:center;gap:5px 6px;padding:0;background:none}
.step-flow span{padding:3px 9px;border-radius:999px;background:#efe8d2;color:#8c7a55}
.step-flow .past{background:#e3ecd9;color:#47755b}
.step-flow .now{background:#234f44;color:#fff6d6}
.material-tray::before{content:"재료 상자";grid-column:1/-1;font-size:11px;font-weight:800;letter-spacing:.5px;color:#8a6a35}
.is-order .activity .choice{box-shadow:0 2px 0 #dcd0ad}
.is-order .activity .choice.selected{background:#e6f0dc;box-shadow:inset 0 0 0 1px var(--forest),0 2px 0 #9fb592}
.is-order .activity .tools button{background:#eef3e4;border-color:#b7c6a3;color:#2c5546;box-shadow:0 2px 0 #c3d0b0}
.is-order .activity .tools button.selected{background:var(--forest);border-color:var(--forest);color:#fff;box-shadow:0 2px 0 #163b33}
.is-order .activity .tools button.suggest{background:#ffe9ad;border-color:#d9a441;color:#4a361e;box-shadow:0 2px 0 #c99235}
.fit-board.await-place .shape-reference{stroke:#c9862a;fill:#f9e7b455;animation:slot-breathe 1.5s ease-in-out infinite alternate}
@keyframes slot-breathe{from{opacity:.6}to{opacity:1}}

/* ── Fixed footer: help reads as a button, feedback as a message strip ── */
.is-order .hint-button{justify-self:start;padding:5px 14px 5px 6px;border:1px solid #d9cfb2;border-radius:16px;background:#fffdf5;box-shadow:0 2px 0 #e3d9bd}
.is-order .activity-footer .feedback{padding:7px 12px;border-left:4px solid #5c8a6b;border-radius:10px;background:#e8efdf;color:#2f5a45;font-weight:600}
.is-order .activity-footer .feedback.error{border-left-color:#c2573a;background:#fbe5da;color:#8f3a22;animation:feedback-nudge .32s ease-out}
@keyframes feedback-nudge{0%{transform:translateX(0)}30%{transform:translateX(-5px)}65%{transform:translateX(4px)}100%{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.fit-board.await-place .shape-reference,.is-order .activity-footer .feedback.error{animation:none}}
.reduce-motion .fit-board.await-place .shape-reference,.reduce-motion .is-order .activity-footer .feedback.error{animation:none}
