:root {
	--grass: #4f8f45;
	--grass-dark: #285d36;
	--grass-light: #9fc66b;
	--brick: #b94d3f;
	--brick-dark: #74342f;
	--sky: #77b8d8;
	--sky-light: #cce9ef;
	--cream: #fff1bf;
	--cream-light: #fffaf0;
	--soil: #9b6849;
	--wood: #6c4933;
	--ink: #243b35;
	--ink-soft: #56695f;
	--sun: #f2c84b;
	--white: #fffef8;
	--container: 1240px;
	--ease: cubic-bezier(0.22, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; overflow-x: hidden; background: var(--cream-light); color: var(--ink); font-family: "Noto Sans TC", sans-serif; font-size: 17px; line-height: 1.8; }
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

button { color: inherit; font: inherit; }

img { display: block; max-width: 100%; }

figure { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

p { margin: 0; }

h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: 0.02em; }
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.15; }
h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.28; }
h3 { font-size: clamp(21px, 2.2vw, 30px); line-height: 1.35; }

.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--brick-dark); font-size: 14px; font-weight: 800; letter-spacing: 0.14em; }
.eyebrow::before { width: 28px; height: 8px; background: var(--sun); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); content: ""; }

.section-intro { max-width: 680px; margin-top: 20px; color: var(--ink-soft); }

.pixel-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border: 3px solid var(--ink); background: var(--sun); box-shadow: 5px 5px 0 var(--ink); font-weight: 900; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease); }
.pixel-button:hover, .pixel-button:focus-visible { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); background: var(--cream); }
.pixel-button.secondary { background: var(--white); }
.pixel-button.dark { background: var(--ink); color: var(--cream-light); box-shadow: 5px 5px 0 var(--brick); }
.pixel-button.dark:hover, .pixel-button.dark:focus-visible { box-shadow: 2px 2px 0 var(--brick); }
.pixel-button:focus-visible, .nav-link:focus-visible, .season-tab:focus-visible, .atlas-tab:focus-visible, .menu-toggle:focus-visible { outline: 4px solid var(--sky); outline-offset: 4px; }
.pixel-image { image-rendering: pixelated; image-rendering: crisp-edges; }

.reveal-block { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal-block.is-visible { opacity: 1; transform: none; }

/* header */
header { position: relative; overflow: hidden; background: var(--sky-light); border-bottom: 4px solid var(--ink); }
header .top-rail { position: relative; z-index: 30; background: var(--ink); color: var(--cream-light); border-bottom: 3px solid var(--cream); }
header .top-rail-inner { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px; font-weight: 700; }
header .top-rail-note { color: var(--cream); }
header .resource-list { display: flex; align-items: center; gap: 22px; }
header .resource-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
header .resource-pixel { width: 13px; height: 13px; border: 2px solid var(--cream-light); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3); }
header .resource-food { background: var(--sun); }
header .resource-wood { background: var(--soil); }
header .resource-water { background: var(--sky); }
header .resource-heart { background: var(--brick); }
header .site-nav { position: relative; z-index: 30; background: rgba(255, 250, 240, 0.96); border-bottom: 3px solid var(--ink); transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease); }
header .site-nav.is-scrolled { position: fixed; top: 0; right: 0; left: 0; background: var(--cream-light); box-shadow: 0 5px 0 rgba(36, 59, 53, 0.18); }
header .nav-inner { display: grid; min-height: 86px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
header .nav-list { display: flex; align-items: center; gap: 26px; }
header .nav-list.right { justify-content: flex-end; }
header .nav-link { position: relative; padding: 9px 0; font-size: 15px; font-weight: 800; }
header .nav-link::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 4px; background: var(--brick); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 0.2s var(--ease); }
header .nav-link:hover::after, header .nav-link:focus-visible::after { transform: scaleX(1); }
header .brand-mark { display: grid; min-width: 250px; grid-template-columns: 48px auto; align-items: center; gap: 12px; }
header .brand-emblem { position: relative; width: 48px; height: 48px; }
header .brand-name { display: block; font-size: 18px; font-weight: 900; line-height: 1.2; }
header .brand-en { display: block; margin-top: 3px; color: var(--brick-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
header .menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 3px solid var(--ink); background: var(--sun); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
header .menu-toggle-line { display: block; width: 23px; height: 3px; margin: 5px auto; background: var(--ink); transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
header .menu-toggle.is-active .menu-toggle-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
header .menu-toggle.is-active .menu-toggle-line:nth-child(2) { opacity: 0; }
header .menu-toggle.is-active .menu-toggle-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
header .mobile-nav { display: none; }
header .hero { position: relative; padding: 58px 0 70px; }
header .hero::before { position: absolute; top: 0; right: 0; left: 0; height: 18px; background: repeating-linear-gradient( 90deg, var(--cream) 0 28px, var(--brick) 28px 56px ); border-bottom: 3px solid var(--ink); content: ""; }
header .hero-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr); align-items: end; gap: 54px; margin-bottom: 36px; }
header .hero-copy { padding-top: 30px; }
header .hero-copy h1 { max-width: 820px; text-wrap: balance; }
header .hero-copy h1 span { display: block; color: var(--brick); }
header .hero-summary { max-width: 500px; padding: 24px 0 4px 28px; border-left: 5px solid var(--grass); color: var(--ink-soft); }
header .hero-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 25px; }
header .hero-stage { position: relative; border: 4px solid var(--ink); background: var(--sky); box-shadow: 10px 10px 0 var(--ink); }
header .hero-stage::before { position: absolute; z-index: 3; top: -14px; left: 6%; width: 88%; height: 14px; background: repeating-linear-gradient( 90deg, var(--brick) 0 24px, var(--cream) 24px 48px ); border: 3px solid var(--ink); border-bottom: 0; content: ""; }
header .hero-figure { overflow: hidden; aspect-ratio: 21/9; background: var(--sky); }
header .hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
header .hero-caption { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; background: var(--cream); border-top: 4px solid var(--ink); }
header .hero-caption-item { min-height: 86px; padding: 15px 20px; border-right: 3px solid var(--ink); }
header .hero-caption-item:last-child { border-right: 0; }
header .hero-caption-label { display: block; color: var(--brick-dark); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }
header .hero-caption-value { display: block; margin-top: 5px; font-weight: 800; line-height: 1.45; }
header .hero-flag { position: absolute; z-index: 4; top: 28px; right: 30px; width: 150px; padding: 12px 14px; border: 3px solid var(--ink); background: var(--white); box-shadow: 5px 5px 0 var(--brick); font-size: 13px; font-weight: 800; line-height: 1.5; }
header .hero-flag::before { position: absolute; top: 0; left: -12px; width: 9px; height: 100%; background: var(--sun); border-right: 3px solid var(--ink); content: ""; }

/* kingdom-loop */
#kingdom-loop { padding: 120px 0; background: var(--cream-light); }
#kingdom-loop .loop-layout { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: 72px; align-items: start; }
#kingdom-loop .loop-sticky { position: sticky; top: 130px; }
#kingdom-loop .loop-sticky h2 { max-width: 430px; }
#kingdom-loop .loop-note { margin-top: 28px; padding: 20px 22px; border: 3px solid var(--ink); background: var(--sky-light); box-shadow: 6px 6px 0 var(--grass); }
#kingdom-loop .loop-note strong { display: block; margin-bottom: 5px; color: var(--grass-dark); }
#kingdom-loop .loop-list { border-top: 4px solid var(--ink); }
#kingdom-loop .loop-item { display: grid; grid-template-columns: 86px minmax(0, 1fr) 120px; align-items: center; gap: 24px; min-height: 166px; padding: 28px 0; border-bottom: 3px solid var(--ink); }
#kingdom-loop .loop-icon { display: grid; width: 76px; height: 76px; place-items: center; border: 3px solid var(--ink); background: var(--cream); box-shadow: 6px 6px 0 var(--ink); color: var(--grass-dark); font-size: 32px; font-weight: 900; }
#kingdom-loop .loop-item:nth-child(2) .loop-icon { background: var(--sun); color: var(--brick-dark); }
#kingdom-loop .loop-item:nth-child(3) .loop-icon { background: var(--sky); color: var(--ink); }
#kingdom-loop .loop-item:nth-child(4) .loop-icon { background: #e9a79a; color: var(--brick-dark); }
#kingdom-loop .loop-text h3 { margin-bottom: 8px; font-size: clamp(21px, 2vw, 28px); }
#kingdom-loop .loop-text p { max-width: 580px; color: var(--ink-soft); }
#kingdom-loop .loop-result { justify-self: end; color: var(--brick-dark); font-size: 14px; font-weight: 900; text-align: right; }
#kingdom-loop .loop-result span { display: block; margin-top: 4px; color: var(--ink); font-size: 16px; }

/* building-system */
#building-system { position: relative; overflow: hidden; padding: 110px 0 124px; background: var(--grass-dark); color: var(--cream-light); }
#building-system::before { position: absolute; top: 0; right: 0; left: 0; height: 22px; background: repeating-linear-gradient( 90deg, var(--cream) 0 32px, var(--brick) 32px 64px ); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); content: ""; }
#building-system .building-head { display: grid; grid-template-columns: 1fr 0.72fr; gap: 70px; align-items: end; margin-bottom: 50px; }
#building-system .eyebrow { color: var(--cream); }
#building-system .building-head p { color: #d6e8cc; }
#building-system .building-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 4px solid var(--ink); background: var(--ink); gap: 3px; box-shadow: 10px 10px 0 var(--brick); }
#building-system .building-item { position: relative; min-height: 310px; padding: 0 18px 22px; overflow: hidden; background: var(--cream); color: var(--ink); }
#building-system .building-item:nth-child(2n) { background: var(--sky-light); }
#building-system .building-item:nth-child(3n) { background: #f8d6ad; }
#building-system .building-visual { height: 148px; margin: 0 -18px 20px; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--white); }
#building-system .building-image { width: 100%; height: 100%; padding: 14px; object-fit: contain; }
#building-system .building-item h3 { font-size: 20px; }
#building-system .building-item p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
#building-system .building-tag { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 3px 7px; border: 2px solid var(--ink); background: var(--sun); font-size: 11px; font-weight: 900; }

/* residents */
#residents { padding: 118px 0; background: var(--cream); }
#residents .residents-head { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 46px; }
#residents .residents-head p { max-width: 520px; color: var(--ink-soft); }
#residents .career-street { border-top: 4px solid var(--ink); }
#residents .career-row { display: grid; grid-template-columns: 170px minmax(220px, 0.72fr) minmax( 330px, 1.28fr ) 72px; align-items: center; gap: 28px; min-height: 162px; border-bottom: 3px solid var(--ink); transition: background-color 0.2s var(--ease), padding 0.2s var(--ease); }
#residents .career-row:hover { padding-right: 18px; padding-left: 18px; background: var(--white); }
#residents .career-portrait { display: grid; width: 122px; height: 122px; place-items: center; overflow: hidden; border: 3px solid var(--ink); background: var(--sky-light); box-shadow: 5px 5px 0 var(--ink); }
#residents .career-image { width: 100%; height: 100%; object-fit: contain; }
#residents .career-image-sheet { object-fit: cover; object-position: center; }
#residents .career-title span { display: block; margin-bottom: 5px; color: var(--brick-dark); font-size: 13px; font-weight: 900; letter-spacing: 0.12em; }
#residents .career-title h3 { font-size: 24px; }
#residents .career-description { color: var(--ink-soft); }
#residents .career-arrow { display: grid; width: 52px; height: 52px; place-items: center; justify-self: end; border: 3px solid var(--ink); background: var(--sun); font-size: 26px; font-weight: 900; }

/* season-system */
#season-system { --season-shadow: #285d36; padding: 112px 0 124px; background: var(--sky-light); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transition: background-color 0.35s var(--ease); }
#season-system.is-spring { --season-shadow: #4f8f45; background: #dceec9; }
#season-system.is-summer { --season-shadow: #1e5962; background: #b9e3eb; }
#season-system.is-autumn { --season-shadow: #74342f; background: #f2c57c; }
#season-system.is-winter { --season-shadow: #405c6d; background: #e2edf1; }
#season-system .season-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 50px; align-items: stretch; }
#season-system .season-controls { display: flex; flex-direction: column; border: 4px solid var(--ink); background: var(--cream-light); box-shadow: 8px 8px 0 var(--ink); }
#season-system .season-tab { display: grid; min-height: 92px; grid-template-columns: 38px 1fr; align-items: center; gap: 14px; padding: 15px 18px; border: 0; border-bottom: 3px solid var(--ink); background: transparent; text-align: left; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
#season-system .season-tab:last-child { border-bottom: 0; }
#season-system .season-tab:hover, #season-system .season-tab.is-active { background: var(--sun); }
#season-system .season-tab-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--ink); background: var(--white); font-size: 17px; font-weight: 900; }
#season-system .season-tab strong { display: block; }
#season-system .season-tab small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; }
#season-system .season-stage { display: grid; grid-template-rows: auto 1fr; border: 4px solid var(--ink); background: var(--cream-light); box-shadow: 10px 10px 0 var(--season-shadow); transition: box-shadow 0.35s var(--ease); }
#season-system .season-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 28px 32px; border-bottom: 4px solid var(--ink); }
#season-system .season-copy p { color: var(--ink-soft); }
#season-system .season-scene { min-height: 390px; overflow: hidden; background: var(--sky); }
#season-system .season-image { width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center; transition: opacity 0.2s var(--ease); }
#season-system .season-image.is-changing { opacity: 0.2; }

/* atlas */
#atlas { padding: 120px 0; background: var(--white); }
#atlas .atlas-head { display: grid; grid-template-columns: 1fr 0.8fr; gap: 80px; align-items: end; margin-bottom: 48px; }
#atlas .atlas-head p { color: var(--ink-soft); }
#atlas .atlas-board { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--grass); }
#atlas .atlas-index { background: var(--ink); color: var(--cream-light); }
#atlas .atlas-index-title { padding: 22px 24px; border-bottom: 3px solid var(--cream); color: var(--cream); font-size: 14px; font-weight: 900; letter-spacing: 0.12em; }
#atlas .atlas-tab { display: grid; width: 100%; min-height: 88px; grid-template-columns: 48px 1fr; align-items: center; gap: 15px; padding: 14px 22px; border: 0; border-bottom: 2px solid rgba(255, 241, 191, 0.32); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
#atlas .atlas-tab:hover, #atlas .atlas-tab.is-active { background: var(--sun); color: var(--ink); }
#atlas .atlas-tab-number { color: var(--sky); font-size: 13px; font-weight: 900; }
#atlas .atlas-tab.is-active .atlas-tab-number { color: var(--brick-dark); }
#atlas .atlas-tab strong { display: block; }
#atlas .atlas-tab small { display: block; margin-top: 2px; color: inherit; font-size: 13px; opacity: 0.78; }
#atlas .atlas-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 520px; background: var(--cream); }
#atlas .atlas-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
#atlas .atlas-category { color: var(--brick-dark); font-size: 13px; font-weight: 900; letter-spacing: 0.13em; }
#atlas .atlas-copy h3 { margin-top: 12px; font-size: clamp(26px, 3vw, 40px); }
#atlas .atlas-description { max-width: 590px; margin-top: 18px; color: var(--ink-soft); }
#atlas .atlas-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; margin-top: 34px; border: 3px solid var(--ink); background: var(--ink); }
#atlas .atlas-fact { padding: 14px 16px; background: var(--white); }
#atlas .atlas-fact span { display: block; color: var(--brick-dark); font-size: 12px; font-weight: 900; }
#atlas .atlas-fact strong { display: block; margin-top: 3px; font-size: 15px; }
#atlas .atlas-illustration { position: relative; overflow: hidden; border-left: 4px solid var(--ink); background: var(--sky); }
#atlas .atlas-image { width: 100%; height: 100%; padding: 22px; object-fit: contain; background: var(--sky-light); transition: opacity 0.2s var(--ease); }
#atlas .atlas-image.is-changing { opacity: 0.2; }
#atlas .atlas-stamp { position: absolute; right: 18px; bottom: 18px; padding: 8px 11px; border: 3px solid var(--ink); background: var(--sun); box-shadow: 4px 4px 0 var(--ink); font-size: 12px; font-weight: 900; transform: rotate(-2deg); }

/* updates */
#updates { padding: 118px 0 128px; background: #f2d99c; }
#updates .updates-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 44px; }
#updates .updates-head p { max-width: 540px; color: var(--ink-soft); }
#updates .updates-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr); gap: 42px; }
#updates .news-board { border: 4px solid var(--ink); background: var(--cream-light); box-shadow: 9px 9px 0 var(--brick); }
#updates .news-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 4px solid var(--ink); background: var(--brick); color: var(--cream-light); }
#updates .news-heading span { font-size: 13px; font-weight: 900; letter-spacing: 0.12em; }
#updates .news-item { display: grid; grid-template-columns: 105px minmax(0, 1fr) 36px; align-items: center; gap: 22px; min-height: 132px; padding: 22px; border-bottom: 3px solid var(--ink); transition: background-color 0.2s var(--ease); }
#updates .news-item:last-child { border-bottom: 0; }
#updates .news-item:hover { background: var(--sky-light); }
#updates .news-type { padding: 7px 8px; border: 3px solid var(--ink); background: var(--sun); font-size: 12px; font-weight: 900; text-align: center; }
#updates .news-text h3 { font-size: 20px; }
#updates .news-text p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
#updates .news-arrow { font-size: 25px; font-weight: 900; }
#updates .community-board { display: grid; grid-template-rows: auto 1fr auto; border: 4px solid var(--ink); background: var(--grass-dark); color: var(--cream-light); box-shadow: 9px 9px 0 var(--ink); }
#updates .community-heading { padding: 20px 22px; border-bottom: 4px solid var(--ink); background: var(--sky); color: var(--ink); }
#updates .community-heading span { display: block; color: var(--brick-dark); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }
#updates .community-heading h3 { margin-top: 4px; font-size: 24px; }
#updates .community-mosaic { display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: 1fr 1fr; min-height: 335px; gap: 3px; background: var(--ink); }
#updates .community-tile { position: relative; overflow: hidden; background: var(--cream); }
#updates .community-tile:first-child { grid-row: 1/3; }
#updates .community-image { width: 100%; height: 100%; padding: 10px; object-fit: contain; background: var(--sky-light); }
#updates .community-tile span { position: absolute; right: 9px; bottom: 9px; left: 9px; padding: 6px 8px; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); font-size: 12px; font-weight: 900; }
#updates .community-note { padding: 20px 22px; color: #d9ead0; font-size: 15px; line-height: 1.7; }
#updates .updates-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 42px; }

/* footer */
footer { position: relative; overflow: hidden; background: var(--ink); color: var(--cream-light); }
footer .footer-skyline { position: relative; height: 150px; overflow: hidden; border-bottom: 4px solid var(--cream); background: var(--sky); }
footer .footer-skyline-image { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.85) brightness(0.9); }
footer .footer-skyline::after { position: absolute; right: 0; bottom: 0; left: 0; height: 42px; background: repeating-linear-gradient( 90deg, var(--grass-dark) 0 72px, var(--brick-dark) 72px 116px, var(--cream) 116px 164px ); border-top: 4px solid var(--ink); content: ""; opacity: 0.95; }
footer .footer-main { padding: 62px 0 32px; }
footer .footer-brand-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: end; }
footer .footer-title { max-width: 680px; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.16; }
footer .footer-title span { color: var(--sun); }
footer .footer-message { max-width: 480px; color: #cfe0d8; }
footer .footer-nav { display: flex; flex-wrap: wrap; gap: 13px 28px; margin-top: 46px; padding: 22px 0; border-top: 3px solid rgba(255, 241, 191, 0.45); border-bottom: 3px solid rgba(255, 241, 191, 0.45); }
footer .footer-nav a { color: var(--cream); font-weight: 800; }
footer .footer-nav a:hover, footer .footer-nav a:focus-visible { color: var(--sun); }
footer .footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-top: 26px; color: #a9c0b6; font-size: 14px; }
footer .footer-credit { max-width: 650px; font-size: 13px; line-height: 1.7; }
footer .footer-pixels { display: flex; gap: 6px; }
footer .footer-pixels span { width: 12px; height: 12px; border: 2px solid var(--cream); }
footer .footer-pixels span:nth-child(1) { background: var(--grass); }
footer .footer-pixels span:nth-child(2) { background: var(--brick); }
footer .footer-pixels span:nth-child(3) { background: var(--sky); }
footer .footer-pixels span:nth-child(4) { background: var(--sun); }
@media (max-width: 1280px) {
	:root { --container: 1120px; }
	header .nav-list { gap: 18px; }
	header .brand-mark { min-width: 220px; }
	#building-system .building-grid { grid-template-columns: repeat(3, 1fr); }
	#building-system .building-item { min-height: 290px; }
	#atlas .atlas-detail { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 960px) {
	.container { width: min(calc(100% - 36px), var(--container)); }
	header .top-rail-inner { justify-content: center; }
	header .top-rail-note { display: none; }
	header .nav-inner { grid-template-columns: 1fr auto; min-height: 76px; }
	header .brand-mark { min-width: 0; }
	header .nav-list { display: none; }
	header .menu-toggle { display: block; justify-self: end; }
	header .mobile-nav { position: fixed; z-index: 28; top: 0; right: 0; bottom: 0; display: block; width: min(390px, 88vw); padding: 124px 28px 36px; background: var(--cream-light); border-left: 4px solid var(--ink); transform: translateX(105%); transition: transform 0.3s var(--ease); }
	header .mobile-nav.is-active { transform: none; }
	header .mobile-nav .nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	header .mobile-nav .nav-link { display: block; padding: 17px 4px; border-bottom: 3px solid var(--ink); font-size: 18px; }
	header .hero-heading { grid-template-columns: 1fr; gap: 25px; }
	header .hero-summary { max-width: 680px; padding-left: 22px; }
	header .hero-figure { aspect-ratio: 16/9; }
	header .hero-caption { grid-template-columns: 1fr 1fr; }
	header .hero-caption-item:first-child { grid-column: 1/3; border-right: 0; border-bottom: 3px solid var(--ink); }
	header .hero-caption-item:nth-child(2) { border-right: 3px solid var(--ink); }
	#kingdom-loop .loop-layout { grid-template-columns: 1fr; gap: 42px; }
	#kingdom-loop .loop-sticky { position: static; display: grid; grid-template-columns: 1fr 0.8fr; gap: 35px; align-items: end; }
	#kingdom-loop .loop-note { margin-top: 0; }
	#residents .career-row { grid-template-columns: 145px minmax(180px, 0.65fr) minmax( 260px, 1.35fr ) 58px; gap: 18px; }
	#season-system .season-layout { grid-template-columns: 1fr; }
	#season-system .season-controls { display: grid; grid-template-columns: repeat(4, 1fr); }
	#season-system .season-tab { min-height: 84px; grid-template-columns: 34px 1fr; border-right: 3px solid var(--ink); border-bottom: 0; }
	#season-system .season-tab:last-child { border-right: 0; }
	#atlas .atlas-board { grid-template-columns: 240px minmax(0, 1fr); }
	#atlas .atlas-detail { grid-template-columns: 1fr; }
	#atlas .atlas-illustration { min-height: 280px; border-top: 4px solid var(--ink); border-left: 0; }
	#updates .updates-layout { grid-template-columns: 1fr; }
	#updates .community-board { grid-template-columns: 240px 1fr; grid-template-rows: auto auto; }
	#updates .community-heading { grid-row: 1/3; border-right: 4px solid var(--ink); border-bottom: 0; }
	#updates .community-mosaic { min-height: 300px; }
	#updates .community-note { align-self: center; }
}
@media (max-width: 768px) {
	body { font-size: 16px; }
	.container { width: min(calc(100% - 28px), var(--container)); }
	.pixel-button { width: 100%; }
	header .top-rail { display: none; }
	header .hero { padding: 42px 0 54px; }
	header .hero::before { height: 14px; background-size: 42px 14px; }
	header .hero-copy { padding-top: 22px; }
	header .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
	header .hero-stage { box-shadow: 7px 7px 0 var(--ink); }
	header .hero-figure { aspect-ratio: 4/3; }
	header .hero-image { object-position: center; }
	header .hero-caption { grid-template-columns: 1fr; }
	header .hero-caption-item:first-child { grid-column: auto; }
	header .hero-caption-item { min-height: auto; border-right: 0; border-bottom: 3px solid var(--ink); }
	header .hero-caption-item:last-child { border-bottom: 0; }
	header .hero-flag { display: none; }
	#kingdom-loop { padding: 84px 0; }
	#kingdom-loop .loop-sticky { grid-template-columns: 1fr; }
	#kingdom-loop .loop-item { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; min-height: 150px; }
	#kingdom-loop .loop-icon { width: 66px; height: 66px; }
	#kingdom-loop .loop-result { grid-column: 2; justify-self: start; text-align: left; }
	#building-system { padding: 84px 0 92px; }
	#building-system .building-head { grid-template-columns: 1fr; gap: 22px; }
	#building-system .building-grid { grid-template-columns: repeat(2, 1fr); box-shadow: 7px 7px 0 var(--brick); }
	#building-system .building-item { min-height: 275px; }
	#residents { padding: 84px 0; }
	#residents .residents-head { display: block; }
	#residents .residents-head p { margin-top: 18px; }
	#residents .career-row { grid-template-columns: 110px 1fr 50px; padding: 20px 0; }
	#residents .career-portrait { width: 94px; height: 104px; }
	#residents .career-description { grid-column: 2/4; padding-bottom: 5px; }
	#residents .career-arrow { grid-column: 3; grid-row: 1; }
	#season-system { padding: 82px 0 92px; }
	#season-system .season-controls { grid-template-columns: 1fr 1fr; }
	#season-system .season-tab { border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
	#season-system .season-tab:nth-child(2n) { border-right: 0; }
	#season-system .season-tab:nth-child(n + 3) { border-bottom: 0; }
	#season-system .season-copy { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
	#season-system .season-scene, #season-system .season-image { min-height: 310px; }
	#atlas { padding: 84px 0; }
	#atlas .atlas-head { grid-template-columns: 1fr; gap: 20px; }
	#atlas .atlas-board { grid-template-columns: 1fr; }
	#atlas .atlas-index { display: grid; grid-template-columns: 1fr 1fr; }
	#atlas .atlas-index-title { grid-column: 1/3; }
	#atlas .atlas-tab { min-height: 78px; border-right: 2px solid rgba(255, 241, 191, 0.32); }
	#atlas .atlas-tab:nth-child(2n + 1) { border-right: 0; }
	#atlas .atlas-copy { padding: 34px 26px; }
	#atlas .atlas-facts { grid-template-columns: 1fr; }
	#updates { padding: 84px 0 96px; }
	#updates .updates-head { display: block; }
	#updates .updates-head p { margin-top: 18px; }
	#updates .news-item { grid-template-columns: 86px minmax(0, 1fr); }
	#updates .news-arrow { display: none; }
	#updates .community-board { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
	#updates .community-heading { grid-row: auto; border-right: 0; border-bottom: 4px solid var(--ink); }
	#updates .community-mosaic { min-height: 330px; }
	footer .footer-brand-row { grid-template-columns: 1fr; gap: 24px; }
	footer .footer-bottom { flex-direction: column; }
}
@media (max-width: 500px) {
	h1 { font-size: clamp(32px, 10vw, 38px); }
	h2 { font-size: clamp(27px, 8.5vw, 34px); }
	h3 { font-size: 22px; }
	.container { width: min(calc(100% - 22px), var(--container)); }
	.eyebrow { letter-spacing: 0.08em; }
	header .nav-inner { min-height: 70px; }
	header .brand-mark { grid-template-columns: 42px auto; gap: 9px; }
	header .brand-emblem { width: 42px; height: 42px; box-shadow: 3px 3px 0 var(--ink); }
	header .brand-emblem::before { top: 5px; left: 5px; }
	header .brand-name { font-size: 15px; }
	header .brand-en { font-size: 9px; }
	header .menu-toggle { width: 44px; height: 44px; }
	header .hero { padding-top: 35px; }
	header .hero-actions { grid-template-columns: 1fr; }
	header .hero-summary { padding: 18px 0 0 16px; }
	header .hero-figure { aspect-ratio: 1/1; }
	header .hero-image { object-position: 38% center; }
	header .hero-caption-item { padding: 13px 15px; }
	#kingdom-loop .loop-item { grid-template-columns: 60px 1fr; padding: 24px 0; }
	#kingdom-loop .loop-icon { width: 56px; height: 56px; box-shadow: 4px 4px 0 var(--ink); font-size: 25px; }
	#building-system .building-grid { grid-template-columns: 1fr; }
	#building-system .building-item { min-height: 245px; }
	#building-system .building-visual { height: 135px; }
	#residents .career-row { grid-template-columns: 82px 1fr; gap: 14px; }
	#residents .career-portrait { width: 72px; height: 82px; box-shadow: 3px 3px 0 var(--ink); }
	#residents .career-title h3 { font-size: 21px; }
	#residents .career-description { grid-column: 1/3; }
	#residents .career-arrow { display: none; }
	#season-system .season-tab { grid-template-columns: 28px 1fr; min-height: 74px; padding: 10px; }
	#season-system .season-tab-icon { width: 28px; height: 28px; font-size: 14px; }
	#season-system .season-tab small { display: none; }
	#season-system .season-stage { box-shadow: 6px 6px 0 var(--season-shadow); }
	#season-system .season-scene, #season-system .season-image { min-height: 245px; }
	#atlas .atlas-index { grid-template-columns: 1fr; }
	#atlas .atlas-index-title { grid-column: auto; }
	#atlas .atlas-tab { min-height: 68px; border-right: 0; }
	#atlas .atlas-copy { padding: 28px 20px; }
	#atlas .atlas-illustration { min-height: 230px; }
	#updates .news-item { grid-template-columns: 1fr; gap: 12px; }
	#updates .news-type { justify-self: start; }
	#updates .community-mosaic { grid-template-columns: 1fr 1fr; min-height: 280px; }
	#updates .community-tile:first-child { grid-column: 1/3; grid-row: auto; }
	#updates .updates-actions { display: grid; grid-template-columns: 1fr; }
	footer .footer-skyline { height: 110px; }
	footer .footer-main { padding-top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation-duration: 0.01ms; animation-iteration-count: 1; transition-duration: 0.01ms; }
	.reveal-block { opacity: 1; transform: none; }
}
