@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: #233b35;
  background: #edf4ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #23876e;
  --green-dark: #176f59;
  --muted: #82928b;
  --line: #e8eee9;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #edf4ef; }
button, a { font: inherit; }
button { color: inherit; }
.game-shell { max-width: 1720px; min-height: 100vh; margin: auto; padding: 22px 30px 28px; }
.topbar { height: 66px; display: flex; align-items: center; gap: 25px; padding: 0 7px 17px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 244px; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: #47ae8c; font: 800 29px/1 "Outfit", sans-serif; transform: rotate(-5deg); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font: 700 20px/1 "Outfit", sans-serif; letter-spacing: -.5px; }
.brand-copy small { color: #91a099; font-size: 8px; font-weight: 700; letter-spacing: 1.65px; }
.season-pill { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #e5ece6; border-radius: 30px; background: #f7faf7; color: #647a70; font-size: 11px; font-weight: 600; }
.sun-icon { color: #edae4d; font-size: 16px; }
.pill-dot { width: 4px; height: 4px; border-radius: 50%; background: #bac8be; margin: 0 1px; }
.resources { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.resource { min-width: 92px; height: 39px; padding: 3px 11px 3px 8px; display: grid; grid-template-columns: 22px auto; grid-template-rows: 18px 12px; align-items: center; column-gap: 5px; border: 1px solid #e5ece6; border-radius: 12px; background: #fbfdfb; }
.resource-icon { grid-row: 1 / 3; width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; }
.coin-icon { color: #d99822; background: #fff2d6; }.wood-icon { color: #a76d44; background: #f7e9dd; }.heart-icon { color: #d97981; background: #fae7e9; }
.resource>span:nth-child(2) { align-self: end; color: #344840; font-size: 12px; font-weight: 700; line-height: 14px; }
.resource small { align-self: start; color: #93a098; font-size: 8px; line-height: 10px; }
.profile-button { width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #83bba7; box-shadow: 0 1px 5px #3b805e30; font-size: 12px; font-weight: 700; }
.game-layout { display: grid; grid-template-columns: 54px minmax(0, 1fr) 336px; gap: 17px; min-height: calc(100vh - 116px); }
.tool-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; border: 1px solid #e6ede7; border-radius: 19px; background: #f9fbf8; }
.rail-button { width: 39px; height: 39px; display: grid; place-items: center; border: 0; border-radius: 13px; color: #87958d; background: transparent; cursor: pointer; font-size: 20px; transition: .18s ease; }
.rail-button:hover { color: var(--green); background: #edf5f0; }.rail-button.active { color: #fff; background: #329679; box-shadow: 0 5px 11px #32967935; }
.rail-spacer { flex: 1; }
.world-panel, .quest-panel { min-width: 0; border: 1px solid #e6ede7; border-radius: 20px; background: #fbfdfb; box-shadow: 0 10px 35px #506f5a08; }
.world-panel { display: flex; flex-direction: column; overflow: hidden; }
.world-heading { min-height: 79px; padding: 17px 23px 13px; display: flex; align-items: center; justify-content: space-between; }
.eyebrow { color: #9aa8a0; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
h1, h2, p { margin: 0; }
.world-heading h1 { margin-top: 4px; color: #273f36; font: 700 22px/1.1 "Outfit", sans-serif; letter-spacing: -.45px; }
.edit-mark { color: #aebcb3; font: 12px "DM Sans", sans-serif; vertical-align: 3px; }
.map-button { border: 1px solid #e8eee9; border-radius: 10px; padding: 7px 10px; color: #6f8378; background: #fff; font-size: 16px; cursor: pointer; }
.map-button span { font-size: 10px; font-weight: 600; }
.world-stage { position: relative; flex: 1; min-height: 475px; overflow: hidden; isolation: isolate; background: linear-gradient(164deg, #d8eee5 0%, #cde8d9 35%, #c2e0cc 100%); }
.world-stage::before { position: absolute; z-index: -1; right: -14%; bottom: -34%; left: -12%; height: 84%; border-radius: 50% 50% 0 0; background: linear-gradient(135deg,#abd6a7,#baddaa 60%,#a7d1a5); content: ""; }
.world-stage::after { position: absolute; z-index: -1; right: -12%; bottom: -38%; left: -20%; height: 62%; border-radius: 50%; background: #9dce9e; opacity: .44; content: ""; }
.cloud { position: absolute; z-index: 0; width: 76px; height: 20px; border-radius: 20px; background: #fff; opacity: .48; filter: blur(.5px); }
.cloud::before, .cloud::after { position: absolute; bottom: 5px; border-radius: 50%; background: #fff; content: ""; }
.cloud::before { left: 13px; width: 24px; height: 24px; }.cloud::after { left: 35px; width: 33px; height: 32px; }
.cloud-one { top: 10%; left: 17%; transform: scale(.8); }.cloud-two { top: 18%; right: 12%; transform: scale(.55); opacity: .36; }
.village-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: transform .25s ease; }
.map-tile { stroke: #91c58e; stroke-width: 1.1; cursor: pointer; transition: filter .16s ease; }
.map-tile:hover { filter: brightness(1.08); stroke: #f4d276; stroke-width: 3; }
.map-prop { pointer-events: none; }
.map-label { position: absolute; z-index: 2; padding: 5px 9px; border: 1px solid #ffffff9e; border-radius: 20px; color: #648775; background: #f7fff0bd; box-shadow: 0 3px 10px #51885b10; font-size: 9px; font-weight: 700; backdrop-filter: blur(5px); }
.label-meadow { top: 24%; left: 12%; }.label-meadow span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #78ba6c; }
.label-water { top: 43%; right: 9%; color: #559999; background: #eafafaC9; }
.map-legend { position: absolute; z-index: 2; bottom: 15px; left: 17px; display: flex; align-items: center; gap: 6px; color: #668271; font-size: 9px; font-weight: 600; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #f3bb52; box-shadow: 0 0 0 3px #f3bb5240; }
.map-controls { position: absolute; right: 15px; bottom: 13px; z-index: 2; display: flex; overflow: hidden; border: 1px solid #e4eee6; border-radius: 10px; background: #ffffffdc; box-shadow: 0 3px 8px #47745616; }
.map-controls button { width: 31px; height: 29px; border: 0; color: #628071; background: transparent; cursor: pointer; font-size: 18px; }.map-controls button+button { border-left: 1px solid #e4eee6; }.map-controls button:hover { color: var(--green); background: #f2f8f2; }
.map-toast { position: absolute; z-index: 4; left: 50%; top: 15px; padding: 8px 13px; border: 1px solid #e6eee6; border-radius: 24px; color: #527060; background: #fff; box-shadow: 0 6px 18px #3e604317; font-size: 10px; opacity: 0; transform: translate(-50%,-6px); transition: .2s ease; pointer-events: none; }
.map-toast.show { opacity: 1; transform: translate(-50%,0); }
.world-footer { min-height: 73px; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 12px; padding: 10px 18px; }
.weather { display: flex; align-items: center; gap: 8px; }.weather>span { color: #edae4d; font-size: 20px; }.weather div,.progress-label { display: grid; gap: 3px; }.weather strong { color: #60766a; font-size: 9px; }.weather small,.visitors small { color: #98a69d; font-size: 8px; }
.progress-label { grid-template-columns: 1fr auto; align-items: center; color: #94a39a; font-size: 8px; }.progress-label strong { color: #5a7867; font-size: 9px; }
.progress-track { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 5px; background: #e9f0e9; }.progress-track span { display: block; width: 12%; height: 100%; border-radius: 5px; background: #61bb91; transition: width .4s ease; }
.visitors { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }.visitor-bubbles { display: flex; padding-left: 3px; }.visitor-bubbles span { width: 23px; height: 23px; display: grid; place-items: center; margin-left: -3px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #87c6ab; font-size: 8px; font-weight: 700; }.visitor-bubbles span+span { color: #69937d; background: #e5f1e7; font-size: 13px; }
.quest-panel { display: flex; flex-direction: column; overflow: hidden; padding: 0 19px 13px; }
.quest-topline { min-height: 38px; display: flex; align-items: center; justify-content: space-between; }
.quest-tag { display: flex; align-items: center; gap: 6px; color: #8d9e93; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }.quest-tag>span { width: 6px; height: 6px; border-radius: 50%; background: #5fbc91; }
.more-button { border: 0; color: #9eaca4; background: none; font-size: 19px; cursor: pointer; line-height: 1; }
.character-card { position: relative; height: 211px; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; border-radius: 15px; background: radial-gradient(ellipse at 50% 67%,#f8eaca 0%,#f7edd6 33%,#f2ebdd 67%,#eee9df 100%); }
.character-card::before { position: absolute; top: 20px; left: 18px; width: 38px; height: 38px; border: 1px solid #ffffff8a; border-radius: 50%; background: #ffffff47; content: ""; }.character-card::after { position: absolute; right: 21px; bottom: 32px; width: 23px; height: 23px; border: 1px solid #ffffffa1; border-radius: 8px; background: #ffffff4a; content: ""; transform: rotate(15deg); }
.character { position: relative; z-index: 1; height: 188px; width: auto; margin-bottom: 4px; filter: drop-shadow(0 6px 5px #5d8c6b1a); animation: character-bob 3s ease-in-out infinite; }
.character-caption { position: absolute; z-index: 2; right: 9px; bottom: 9px; display: grid; gap: 1px; padding: 6px 9px; border: 1px solid #fff; border-radius: 10px; background: #fffdf5e8; }.character-caption strong { color: #455f50; font: 700 10px "Outfit",sans-serif; }.character-caption span { color: #91a095; font-size: 7px; }.character-caption i { display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: #60bc8f; }
.character-sparkle { position: absolute; z-index: 2; color: #e6b753; }.sparkle-a { top: 47px; right: 20%; font-size: 14px; }.sparkle-b { top: 94px; left: 18%; color: #79bba0; font-size: 12px; }
@keyframes character-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.quest-copy { padding-top: 15px; }.quest-copy h2 { margin-top: 4px; color: #30453b; font: 700 20px/1.1 "Outfit",sans-serif; letter-spacing: -.35px; }.quest-copy>p { margin-top: 7px; color: #7e8d84; font-size: 10px; line-height: 1.55; }
.quest-objective { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 9px; border: 1px solid #ecf0ea; border-radius: 11px; background: #f8faf6; }.objective-icon { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #64a983; background: #e7f2e7; font-size: 17px; }.quest-objective>div { display: grid; gap: 3px; flex: 1; }.quest-objective strong { color: #51685b; font-size: 9px; }.quest-objective small { color: #9aa69e; font-size: 8px; }.objective-check { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #dfe8df; border-radius: 50%; color: transparent; background: #fff; font-size: 10px; }.objective-check.done { color: white; border-color: #54aa80; background: #54aa80; }
.cost-row { display: flex; align-items: center; gap: 7px; margin-top: 11px; }.cost-row>span:first-child { margin-right: auto; color: #a2aea6; font-size: 7px; font-weight: 700; letter-spacing: 1px; }.cost { display: flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 7px; color: #63796b; background: #f4f7f1; font-size: 9px; font-weight: 700; }.cost b { font-size: 10px; }.wood-cost b { color: #af7648; }.coin-cost b { color: #d59b32; }
.build-button { width: 100%; height: 38px; display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding: 0 13px; border: 0; border-radius: 10px; color: #fff; background: #329879; box-shadow: 0 4px 9px #32987927; cursor: pointer; font-size: 10px; font-weight: 700; transition: .18s ease; }.build-button:hover:not(:disabled) { background: #267d65; transform: translateY(-1px); }.build-button:disabled { cursor: not-allowed; opacity: .52; }.build-button>span:last-child { font-size: 16px; font-weight: 400; }
.collect-button { width: 100%; height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 5px; border: 1px solid #e8efe8; border-radius: 9px; color: #688274; background: #fbfdfb; cursor: pointer; font-size: 9px; font-weight: 600; transition: .15s ease; }.collect-button:hover:not(:disabled) { border-color: #b7d9c4; background: #f3faf4; }.collect-button>span { color: #d5a74a; font-size: 14px; }.collect-button small { padding: 2px 4px; border-radius: 5px; color: #658f75; background: #eaf3e9; font-size: 8px; }.collect-button:disabled { cursor: not-allowed; opacity: .6; }
.quest-note { min-height: 21px; padding: 7px 1px 2px; color: #8b9b8f; font-size: 8px; line-height: 1.35; }
.next-hint { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 9px; border: 1px solid #edf0e9; border-radius: 11px; background: #fafbf7; }.next-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #c79748; background: #f7f0dc; font-size: 16px; }.next-hint>span:nth-child(2) { display: grid; gap: 3px; flex: 1; }.next-hint strong { color: #64776a; font-size: 8px; }.next-hint small { color: #a0aca3; font-size: 7px; }.next-arrow { color: #9ca99e; font-size: 18px; }
.toast { position: fixed; right: 25px; bottom: 22px; z-index: 10; padding: 10px 15px; border: 1px solid #dcebe0; border-radius: 12px; color: #3e6e52; background: #fff; box-shadow: 0 9px 25px #355e431a; font-size: 11px; opacity: 0; transform: translateY(8px); transition: .2s ease; pointer-events: none; }.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 1500px) { .game-layout { grid-template-columns: 58px minmax(0, 1fr) 365px; gap: 20px; }.quest-panel { padding-right: 21px; padding-left: 21px; }.character-card { height: 230px; }.character { height: 204px; }.quest-copy h2 { font-size: 22px; }.quest-copy>p { font-size: 11px; } }
@media (max-width: 1050px) { .game-shell { padding: 16px; }.game-layout { grid-template-columns: 48px minmax(0,1fr); }.quest-panel { grid-column: 2; display: grid; grid-template-columns: minmax(180px,.8fr) minmax(230px,1.2fr); align-items: center; gap: 0 16px; padding: 12px; }.quest-topline { grid-column: 1/-1; }.character-card { height: 190px; }.character { height: 170px; }.quest-copy { padding-top: 0; }.next-hint { grid-column: 1/-1; margin-top: 9px; }.game-layout { min-height: auto; }.world-stage { min-height: 440px; } }
@media (max-width: 650px) { .game-shell { padding: 10px; }.topbar { height: auto; min-height: 59px; gap: 8px; padding: 0 2px 10px; flex-wrap: wrap; }.brand { min-width: 0; margin-right: auto; }.brand-mark { width: 34px; height: 34px; font-size: 25px; }.brand-copy strong { font-size: 17px; }.season-pill { order: 3; padding: 6px 9px; font-size: 9px; }.resources { order: 2; gap: 4px; margin-left: 0; }.resource { min-width: 58px; height: 34px; padding: 2px 5px; grid-template-columns: 17px auto; column-gap: 3px; }.resource-icon { width: 18px; height: 18px; font-size: 10px; }.resource small { font-size: 7px; }.profile-button { width: 30px; height: 30px; }.game-layout { grid-template-columns: 1fr; gap: 9px; }.tool-rail { grid-row: 2; flex-direction: row; justify-content: space-around; min-height: 46px; padding: 3px 6px; }.rail-spacer { display: none; }.rail-button { width: 36px; height: 36px; }.world-panel { grid-row: 1; }.world-heading { min-height: 65px; padding: 12px 15px; }.world-heading h1 { font-size: 19px; }.world-stage { min-height: 380px; }.world-footer { min-height: 62px; grid-template-columns: 1fr 1fr; padding: 8px 11px; }.visitors { display: none; }.quest-panel { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; padding: 11px; }.quest-topline { grid-column: 1; }.character-card { height: 205px; }.character { height: 182px; }.quest-copy { padding-top: 14px; }.next-hint { grid-column: 1; }.label-meadow { left: 5%; top: 16%; }.label-water { right: 3%; top: 39%; }.map-legend { bottom: 11px; left: 11px; }.map-controls { right: 9px; bottom: 9px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
