.screen.world { background: #cfe0b8; }
.region { display: flex; align-items: center; gap: 0.8rem; width: 88% !important; padding: 0.7rem 0.9rem; border: 2px solid var(--panel-line); border-radius: 1rem; background: var(--panel); box-shadow: 0 2px 0 rgb(58 38 22 / 0.25); text-align: left; transition: transform 120ms; }
.region.left { margin-left: 0; margin-right: auto; }
.region.right { margin-left: auto; margin-right: 0; }
@media (min-width: 40rem) { .region { width: 100% !important; margin-inline: auto !important; } }
.region-name { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
.region-sub { display: block; font-size: 0.9rem; line-height: 1.3; }
.region.is-current { border-color: var(--green); box-shadow: 0 0 0 3px rgb(77 124 58 / 0.35), 0 2px 0 rgb(58 38 22 / 0.25); }
.region.is-locked { opacity: 0.6; background: #e1e5cd; border-color: #a9a283; filter: grayscale(0.4); }
.region:active { transform: scale(0.98); }
.region-boss { flex: none; width: 4.6rem; height: 4.6rem; border-radius: 0.9rem; border: 2px dashed var(--panel-line); background: #d9c8a4; overflow: hidden; }
.region-boss img { width: 100%; height: 100%; object-fit: cover; }
.deck-chip { max-width: 11rem; }
.screen.world .pill-select { max-width: 12rem; }

.deck-options { max-height: 50vh; overflow-y: auto; margin: 0.6rem 0 0.9rem; }
.deck-option { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; width: 100%; min-height: 2.75rem; text-align: left; border: 2px solid var(--panel-line); }
.deck-option.is-chosen { border-color: var(--green); box-shadow: 0 0 0 3px rgb(77 124 58 / 0.35); }

.screen.region-screen { background: var(--bg, #c9b48a); }
.region-map { position: relative; width: 100%; max-width: 28rem; aspect-ratio: 9 / 15; max-height: 60vh; margin-inline: auto; border: 2px dashed var(--panel-line); border-radius: 1.1rem; overflow: hidden; background: color-mix(in srgb, var(--bg) 70%, #fff 30%); }
.map-paper { position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgb(255 255 255 / 0.35), transparent 40%), radial-gradient(circle at 80% 85%, rgb(0 0 0 / 0.1), transparent 45%); }
.map-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-path path { fill: none; stroke: var(--accent, #8d6a43); stroke-width: 5; stroke-dasharray: 2 14; stroke-linecap: round; opacity: 0.7; }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-width: 3rem; min-height: 3rem; }
.node-disc { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border: 3px solid #3a2616; border-radius: 50%; background: #8d6a43; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; overflow: hidden; box-shadow: 0 3px 0 rgb(58 38 22 / 0.4); }
.node.boss .node-disc { width: 4.6rem; height: 4.6rem; background: #a83e28; }
.node.open .node-disc { background: #d99a2b; }
.node.cleared .node-disc { background: var(--green); }
.node.locked { opacity: 0.85; }
.node-disc img { width: 100%; height: 100%; object-fit: cover; }
.node-label { padding: 0 0.4rem; border-radius: 0.5rem; background: rgb(255 246 224 / 0.9); font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; line-height: 1.4; white-space: nowrap; }
.node.is-selected .node-disc { box-shadow: 0 0 0 4px #ffe27a, 0 0 0 7px #3a2616; animation: sel-pulse 1.2s ease-in-out infinite; }
@keyframes sel-pulse { 50% { transform: scale(1.06); } }
.node-info .row { align-items: flex-start; margin-bottom: 0.6rem; }
.node-title { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
.node-info .muted { display: block; line-height: 1.3; }
.bot-face { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; overflow: hidden; border: 2px dashed var(--panel-line); background: #d9c8a4; display: grid; place-items: center; }
.bot-face img { width: 100%; height: 100%; object-fit: cover; }
.special-reward { width: 6rem; margin: 0 0 0.5rem; }

/* Nút Chọn màn + hộp chọn màn */
.level-btn { min-height: 2.75rem; padding-inline: 1rem; font-family: var(--font-display); font-weight: 800; }
.level-box { width: min(100%, 30rem); }
.level-box .stack { max-height: 62vh; overflow-y: auto; margin-top: 0.6rem; padding: 0.2rem; }
.level-row { flex: none; display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 3.5rem; padding: 0.55rem 0.8rem; border: 2px solid var(--panel-line); border-radius: 0.9rem; background: #fffaf0; color: var(--ink); text-align: left; text-decoration: none; }
.level-row b { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.level-row .muted { display: block; font-size: 0.9rem; }
.level-row .region-boss { width: 3rem; height: 3rem; }
.level-row.is-locked { opacity: 0.55; filter: grayscale(0.5); }
.level-tutorial { flex-direction: column; align-items: flex-start; gap: 0.2rem; border-color: var(--green); background: #eaf5dd; cursor: pointer; }
.level-tutorial.is-must { box-shadow: 0 0 0 3px rgb(77 124 58 / 0.4); }
.welcome-box { text-align: center; }
.welcome-box .btn { margin-top: 0.6rem; }
.end-tips { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; line-height: 1.3; }
@media (max-height: 26rem) { .end-tips { font-size: 0.82rem; gap: 0.25rem; } }
