/* The approved entrance is unchanged. The world below uses its own game-native UI. */
:root {
  --world-canopy: #172b20;
  --world-moss: #2e4a2b;
  --world-timber: #39291e;
  --world-frame: #8c6740;
  --world-paper: #f5e4bf;
  --world-cream: #fff6df;
}
body { background: var(--world-canopy); }
.start-section { position: relative; isolation: isolate; padding-bottom: 2rem; background: var(--world-canopy); --start-line: #a59064; --start-muted: #ebdfc4; }
.start-section::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('./assets/village-entrance-user-v1.webp') 50% 55% / cover no-repeat; }
.start-section::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(16 27 17 / .66), rgb(16 27 17 / .48) 40%, var(--world-canopy)); }
.start-topline { border: 0; padding: 0; color: var(--world-cream); font-size: .875rem; }
.arrival-title { text-align: center; padding: .75rem 0 2rem; }
.arrival-title h2, .section-heading h2, .village-heading h2 { font: 400 clamp(2rem, 4vw, 3.5rem)/1.3 var(--font-display); letter-spacing: -.025em; color: var(--world-cream); text-shadow: 0 3px 0 #39291e; }
.arrival-title h2 { margin: 0; }
.arrival-title > p { margin: .75rem 0 0; color: var(--world-cream); font-size: 1rem; }
.start-layout { max-width: 1020px; margin-inline: auto; padding: 0; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; align-items: center; }
.start-welcome { padding: 1.5rem; border: 1px solid #b19261; box-shadow: 0 0 0 5px #39291e, 0 8px 0 5px rgb(0 0 0 / .2); background: rgb(30 30 18 / .94); text-align: center; }
.welcome-seal { display: block; margin: 0 auto .4rem; object-fit: contain; }
.welcome-name { margin: 0 0 1.5rem; color: var(--hero-gold); font: 400 1.65rem var(--font-display); }
.server-address { border-top: 1px solid #766b4e; border-bottom: 0; padding-bottom: .6rem; }
.server-address label { color: #e0d3b6; font-size: .875rem; }
.address-row { flex-direction: column; gap: 1rem; }
.address-row input { text-align: center; font-size: clamp(1.6rem, 2.8vw, 2.3rem); min-height: 44px; }
.copy-address { justify-content: center; min-width: 150px; border: 1px solid #f8dc97; border-radius: 0; box-shadow: 0 4px 0 #775323; font-size: .9375rem; padding: .6rem 1.1rem; }
.copy-address[data-copied] { color: #ffe2a5; border-color: #f8dc97; box-shadow: 0 4px 0 #473920; }
.copy-status { min-height: 3.2em; margin-top: 1rem; font-size: .8125rem; color: #e0d3b6; }
.edition-note { justify-content: center; margin: .4rem 0 0; font-size: .8125rem; }
.village-signpost { display: inline-flex; align-items: center; min-height: 44px; margin-top: .7rem; font-size: .875rem; color: var(--hero-gold); text-decoration: underline; text-underline-offset: 5px; }
.start-guide { position: relative; border-radius: 0; background: var(--world-paper); border: 1px solid #c8a577; box-shadow: 0 0 0 6px var(--world-timber), 0 0 0 8px #9b7448, 0 12px 0 8px rgb(0 0 0 / .18); }
.start-tabs { padding: 0; gap: 2px; background: var(--world-timber); border: 0; }
.start-tabs a { min-height: 62px; padding: .8rem .4rem; margin: 0; border: 0; background: #57422c; color: #f5e4bf; font-size: .9375rem; }
.start-tabs a span { color: #e0c291; font-size: .8125rem; }
.start-tabs a:hover { background: #715638; color: white; }
.start-tabs a[aria-selected="true"] { background: var(--world-paper); color: #39291e; }
.start-tabs a[aria-selected="true"] span { color: #664923; }
.start-tabs a:focus-visible { outline-color: var(--hero-gold); outline-offset: -4px; }
.start-panels { padding: 1.6rem 2rem; }
.start-panel { min-height: 385px; }
.start-panel h3 { font: 400 clamp(1.65rem, 2.5vw, 2.1rem)/1.45 var(--font-display); letter-spacing: -.03em; color: #39291e; }
.step-caption { font-size: .875rem; color: #69532e; }
.step-description { font-size: 1rem; color: #514d3b; }
.step-note { font-size: .8125rem; color: #514d3b; }
.prepare-facts dt, .prepare-facts small { color: #514d3b; }
.prepare-facts small { font-size: .75rem; }
.prepare-facts > div, .step-actions, .connection-settings > div + div { border-color: #c8b589; }
.step-next { border-radius: 0; background: #3f5831; border: 1px solid #607444; box-shadow: 0 3px 0 #273820; font-size: .9375rem; }
.step-actions .icon { display: none; }
.step-actions > span { display: none; }
.connection-settings { border-color: #b79c6c; border-left-color: #84643c; }
.step-description code { background: #e5d2a8; border-color: #b79c6c; }
.first-day-note { border-color: #b79c6c; }
.first-day-links a { font-size: .875rem; }
.start-help { max-width: 1020px; margin: 2rem auto 0; border-color: #8a8868; background: rgb(20 36 23 / .88); padding: 0 1rem; }
.start-help summary { font-size: .875rem; }
.scene-credit { margin: 1rem 0 0; text-align: center; color: #c1c7ac; font-size: .75rem; }

/* Gameplay capture slots are intentionally empty; frames are interface, not artwork. */
.village-view { padding-top: 4.5rem; color: var(--world-cream); }
.village-heading { margin-bottom: 1.5rem; }
.village-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.village-heading a { color: #e8c68b; }
.media-slot { background: #203a29; border: 1px solid #647957; box-shadow: inset 0 0 0 7px #1b2c20; border-radius: 0; }
.hero-media { aspect-ratio: 3.05; border-radius: 0; }
.hero-landscape { border: 5px solid #3f4b2c; box-shadow: 0 0 0 1px #829167, 0 7px 0 rgb(0 0 0 / .2); }
.stories { color: var(--world-cream); padding-block: 5.5rem; }
.section-heading { margin-bottom: 3rem; }
.section-heading-row { display: block; text-align: center; }
.section-heading-row h2 { margin: 0; }
.section-heading-row > p { max-width: none; margin: 1rem 0 0; color: #d4d9bc; font-size: 1rem; }
.story { position: relative; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; border: 1px solid #647957; background: #213c29; }
.story + .story { margin-top: 3rem; }
.story-copy, .story-craft .story-copy { grid-column: 2; grid-row: 1; max-width: none; padding: 2rem 2.5rem; margin: 0; }
.story-figure, .story-craft .story-figure { grid-column: 1; grid-row: 1; padding: 10px; align-self: stretch; display: flex; flex-direction: column; background: #2e422a; }
.story-photo, .story-craft .story-photo { flex: 1; aspect-ratio: 1.55; min-height: 220px; background: #203a29; border-color: #6d8059; }
.story-figure figcaption { margin: 0; padding: .8rem .4rem .2rem; color: #e1e3cd; font-size: .875rem; }
.story-copy h3, .market-note h3 { margin: .65rem 0 .9rem; font: 400 clamp(1.7rem, 2.6vw, 2.25rem)/1.4 var(--font-display); color: #f6dc9d; letter-spacing: -.025em; }
.story-copy > p:not(.story-category), .market-detail > p:not(.content-note) { color: #e1e3cd; margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }
.game-item { display: block; object-fit: contain; image-rendering: pixelated; }
.game-items { display: flex; gap: .65rem; }
.editorial-link { background: #3f5831; color: #fff0c7; border: 1px solid #869364; padding: .6rem 1rem; box-shadow: 0 3px 0 #16291b; gap: 0; font-size: .875rem; }
.editorial-link span, .market-links span, .first-day-links span, .step-detail span { display: none; }
.editorial-link:hover { color: #fff6df; background: #4d673a; }
.market-note { margin-top: 3rem; padding: 1.5rem 2rem; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: 2rem; background: #392e20; border: 1px solid #8c744c; box-shadow: 0 5px 0 rgb(0 0 0 / .2); }
.market-title-group { display: flex; align-items: center; gap: 1rem; }
.market-note h3 { margin: 0; font-size: 1.9rem; }
.market-links { gap: .75rem; }
.market-links a { padding: .3rem .8rem; min-height: 44px; border: 1px solid #aa8b57; background: #493b25; color: #ffe5b2; text-decoration: none; font-size: .875rem; }
.market-links a:hover { background: #5a4a2f; color: #fff6df; }
.content-note { color: #d5ceb7; font-size: .8125rem; }

/* Character selection uses only the exact user-approved illustration, via CSS crops. */
.jobs-section { position: relative; isolation: isolate; color: #fff6df; background: #293e28; border-top: 1px solid #6d7c50; padding-block: 4.5rem; }
.jobs-section::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13; background: url('./assets/village-entrance-user-v1.webp') center / cover no-repeat; }
.job-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; border: 0; margin: 0; }
.job-tabs a { position: relative; display: flex; flex-direction: column; overflow: hidden; justify-content: flex-end; padding: 0; border: 2px solid #8d8758; background: #293e28; margin: 0; min-height: 290px; color: #fff6df; box-shadow: 0 5px 0 #172b20; }
.job-tabs a:hover { border-color: #f5d891; color: #fff6df; }
.job-tabs a[aria-selected="true"] { border-color: #ffdf96; color: #39291e; box-shadow: 0 0 0 2px #ffdf96, 0 6px 0 #172b20; }
.job-portrait { display: block; position: absolute; inset: 0; background-image: url('./assets/village-entrance-user-v1.webp'); background-size: auto 100%; transition: transform 240ms ease; }
.portrait-farmer { background-position: 9% 50%; }
.portrait-miner { background-position: 30% 50%; }
.portrait-processor { background-position: 51% 50%; }
.portrait-technician { background-position: 74% 50%; }
.portrait-wanderer { background-position: 98% 50%; }
.job-tabs a:hover .job-portrait { transform: scale(1.04); }
.job-tab-name { position: relative; z-index: 1; width: 100%; padding: .75rem; background: rgb(39 42 23 / .94); color: #fff6df; text-align: center; font: 400 1.4rem var(--font-display); border-top: 1px solid #9f8b53; }
.job-tabs a[aria-selected="true"] .job-tab-name { background: #e8c68b; color: #39291e; }
.portrait-caption { text-align: right; font-size: .75rem; color: #d4d9bc; margin: 1rem 0 1.75rem; }
.job-panels { padding: 1.75rem; background: rgb(23 43 32 / .95); border: 1px solid #7b8354; box-shadow: 0 6px 0 rgb(0 0 0 / .17); }
.job-panel { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; }
.job-name { color: #f6dc9d; font-size: 1.5rem; margin-bottom: .75rem; font-family: var(--font-display); font-weight: 400; }
.job-name span { display: none; }
.job-copy h3 { font: 500 1.375rem/1.5 var(--font-body); color: #fff6df; letter-spacing: -.025em; }
.job-description { color: #d4d9bc; min-height: 0; line-height: 1.8; }
.job-photo { aspect-ratio: 1.3; }
.job-details { margin-block: 1.1rem; border-color: #687551; }
.job-details > div { border-color: #687551; }
.job-details dt { color: #c8cfb1; }
.job-details dd { color: #fff6df; }
.jobs-footnote { border-color: #798359; }
.jobs-footnote p { color: #d4d9bc; }
.stories a:focus-visible, .jobs-section a:focus-visible, .job-panel:focus-visible, .village-view a:focus-visible { outline-color: #ffdc8e; }
.site-footer { color: #d4d9bc; }
.site-footer a:first-child, .site-footer nav a:first-child { color: #f5dfa8; }

@media (max-width: 940px) {
  .start-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem; }
  .start-welcome { padding: 1.25rem; }
  .start-panels { padding: 1.5rem; }
  .start-tabs a { font-size: .875rem; }
  .start-panel { min-height: 440px; }
  .story-copy, .story-craft .story-copy { padding: 1.5rem; }
  .job-tabs { gap: 8px; }
  .job-tabs a { min-height: 240px; }
  .job-panel { gap: 1.5rem; }
  .job-tab-name { font-size: 1.25rem; padding-inline: .3rem; }
}
@media (max-width: 600px) {
  .start-topline { font-size: .8125rem; }
  .arrival-title { padding-block: 1.5rem; }
  .arrival-title h2 { font-size: 2.5rem; }
  .arrival-title p { font-size: .875rem; }
  .start-layout { grid-template-columns: 1fr; gap: 2rem; }
  .start-welcome { padding: 1.25rem; }
  .welcome-seal { width: 48px; height: 48px; }
  .welcome-name { margin-bottom: .75rem; font-size: 1.4rem; }
  .server-address { padding-top: .85rem; }
  .address-row { flex-direction: row; flex-wrap: nowrap; gap: .6rem; }
  .address-row input { text-align: left; font-size: clamp(1.2rem, 5vw, 1.55rem); }
  .copy-address { min-width: 0; padding: .6rem .7rem; font-size: .8125rem; }
  .copy-address .icon { display: none; }
  .copy-status { font-size: .75rem; min-height: 3.2em; margin-top: .8rem; text-align: left; }
  .start-panels { padding: 1.25rem; }
  .start-panel { min-height: 425px; }
  .start-tabs a { font-size: .8125rem; gap: .35rem; }
  .start-tabs a span { font-size: .75rem; }
  .step-description { font-size: 1rem; }
  .start-help { margin-top: 2rem; padding-inline: .6rem; }
  .start-help summary { font-size: .8125rem; }
  .village-view { padding-top: 3rem; }
  .village-heading { align-items: flex-start; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
  .hero-media { aspect-ratio: 1.45; }
  .stories { padding-block: 3.5rem; }
  .section-heading { margin-bottom: 2rem; }
  .section-heading h2 { font-size: 2rem; }
  .section-heading-row > p { font-size: .9375rem; }
  .story { display: flex; flex-direction: column; gap: 0; }
  .story-copy, .story-craft .story-copy { padding: 1.5rem; }
  .story-figure { width: 100%; }
  .story + .story { margin-top: 1.5rem; }
  .story-copy h3 { font-size: 1.85rem; }
  .story-photo, .story-craft .story-photo { min-height: 0; aspect-ratio: 1.3; }
  .game-item { width: 48px; height: 48px; }
  .market-note { grid-template-columns: 1fr; padding: 1.25rem; gap: 1rem; margin-top: 1.5rem; }
  .market-note h3 { font-size: 1.7rem; }
  .market-links { gap: .5rem; }
  .market-links a { padding: .4rem .7rem; }
  .jobs-section { padding-block: 3.5rem; }
  .job-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .job-tabs a { min-height: 164px; border-width: 1px; }
  .job-tab-name { font-size: 1rem; padding: .65rem .1rem; }
  .job-portrait { background-size: auto 100%; }
  .portrait-farmer { background-position: 14% 50%; }
  .portrait-miner { background-position: 33% 50%; }
  .portrait-processor { background-position: 51% 50%; }
  .portrait-technician { background-position: 71% 50%; }
  .portrait-wanderer { background-position: 91% 50%; }
  .portrait-caption { text-align: center; margin-bottom: 1.5rem; }
  .job-panels { padding: 1.25rem; }
  .job-panel { display: flex; flex-direction: column; gap: 1.5rem; }
  .job-photo { aspect-ratio: 1.3; }
  .job-copy h3 { font-size: 1.25rem; }
  .jobs-footnote { margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .job-tabs a:hover .job-portrait { transform: none; }
}
