:root {
  --shop: #101417;
  --bezel: #2c353b;
  --panel: #171d21;
  --slot: #0b0f12;
  --line: #314047;
  --text: #e8f0f1;
  --muted: #8fa3a6;
  --cyan: #8ee8dc;
  --mint: #d9fff8;
  --plate: #1a4f4c;
  --wine: #6e3140;
  --leaf: #2f5a2c;
  --warn: #e7b2ac;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --mono: Galmuri11, "Malgun Gothic", sans-serif;
  --ui: Galmuri14, "Malgun Gothic", sans-serif;
  font-family: "Malgun Gothic", Pretendard, "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body {
  margin: 0;
  position: relative;
  z-index: 0;
  background-color: var(--shop);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
img.px {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex-shrink: 0;
  object-fit: contain;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("game/shop-bg.webp") center / cover no-repeat;
  opacity: 0.2;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
button, a, input, select { touch-action: manipulation; scroll-margin-top: 72px; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::selection { background: var(--plate); color: var(--mint); }

header, nav.tabs, main, footer { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 22px; }

.topbar {
  max-width: 1040px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, #0d1113 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line);
  transition: border-color 160ms var(--ease), transform 120ms var(--ease);
}
.brand-mark:hover { border-color: var(--cyan); }
.brand-mark-img { width: 28px; height: 28px; object-fit: contain; image-rendering: auto; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav button,
nav.tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); border-radius: 0;
  min-height: 40px; padding: 6px 12px;
  font-family: var(--ui); font-size: 14px; font-weight: 400;
  -webkit-font-smoothing: none;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease), transform 120ms var(--ease);
}
.nav-ico, .tab-ico { width: 18px; height: 18px; }
.tab-ico { width: 28px; height: 28px; }
.site-nav button:hover,
nav.tabs button:hover { color: var(--mint); border-color: var(--cyan); }
.site-nav button:active,
nav.tabs button:active,
.seg:active,
.home-link:active,
.reset:active { transform: scale(0.97); }
.site-nav button.active,
nav.tabs button.active { background: var(--plate); color: var(--mint); border-color: var(--cyan); }
.topbar .lang { margin-left: auto; }

.home-page { max-width: none; margin: 0; padding: 0; }
/* Faint in-game sprites only. No drawn texture. */
.page:not(.home-page) { position: relative; z-index: 0; }
.page:not(.home-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-position:
    left 1% top 16%,
    right 2% top 20%,
    right 6% bottom 8%,
    left 3% bottom 6%;
  background-size: 192px auto, 128px auto, 160px auto, 112px auto;
}
.page-chem::before {
  background-image:
    url("game/chemist.png"),
    url("game/vial-dream.png"),
    url("game/chem-lab.png"),
    url("game/vial-nightmare.png");
}
.page-brew::before {
  background-image:
    url("game/wine-berry.png"),
    url("game/yeast.png"),
    url("game/brew-berry.png"),
    url("game/alcohol.png");
}
.page-grow::before {
  background-image:
    url("game/hydroponic.png"),
    url("game/dream-cap.png"),
    url("game/coffee.png"),
    url("game/grow-kotton.png");
}
.page-junk::before {
  background-image:
    url("game/junk.png"),
    url("game/furnace.png"),
    url("game/junk-scrap.png"),
    url("game/junk-ingot.png");
}
.page-aqua::before {
  background-image:
    url("game/aqua.png"),
    url("game/fish-tilapia.png"),
    url("game/fish-eel.png"),
    url("game/fish-sturgeon.png");
}
.page-rat::before {
  background-image:
    url("game/rat.png"),
    url("game/rat-adult.png"),
    url("game/rat-feed.png"),
    url("game/rat-feed-cheese.png");
}
.page-gun::before {
  background-image:
    url("game/gun.png"),
    url("game/gun-printer.png"),
    url("game/gun-liberator.png"),
    url("game/gun-parts.png");
}
.home-hero {
  position: relative; min-height: min(92vh, 920px);
  display: grid; align-items: end;
  overflow: hidden; border-bottom: 1px solid var(--line);
  /* header's 1040px column would leave black gutters around the mural */
  max-width: none; width: 100%; margin: 0; padding: 0;
}
.home-hero-media { position: absolute; inset: 0; }
.home-hero-media picture {
  display: block; width: 100%; height: 100%;
}
.home-hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 32% 42%;
  transform: scale(1.02);
  animation: hero-drift 18s var(--ease) infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-img, .home-logo, .home-hero .sub, .home-links { animation: none; }
}
.home-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 14, 0.92) 0%, rgba(8, 12, 14, 0.72) 42%, rgba(8, 12, 14, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 12, 14, 0.88) 0%, transparent 42%);
}
.home-hero-copy {
  position: relative; z-index: 1;
  max-width: 1040px; width: 100%; margin: 0 auto;
  padding: 48px 20px 36px;
}
h1.home-logo-wrap { margin: 0 0 14px; font-size: 0; line-height: 0; }
.home-logo {
  display: block; width: min(220px, 42vw); height: auto; margin: 0;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.55));
  animation: logo-in 700ms var(--ease) both;
}
.home-hero .sub {
  max-width: 40rem; color: #c7d5d7;
  animation: copy-in 800ms var(--ease) 80ms both;
}
.home-links {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 22px; max-width: 42rem;
  animation: copy-in 900ms var(--ease) 140ms both;
}
.home-link {
  text-align: left; display: grid;
  grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 14px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--text);
  border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; font: inherit;
  backdrop-filter: blur(6px);
  transition: border-color 160ms var(--ease), transform 120ms var(--ease), background 160ms var(--ease);
}
.home-link:hover { border-color: var(--cyan); background: color-mix(in srgb, var(--panel) 96%, transparent); }
.home-ico { width: 40px; height: 40px; }
.home-ico.wide { width: 56px; height: 40px; }
.home-ico.berry { width: 48px; height: 48px; image-rendering: auto; }
.home-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home-title {
  font-family: var(--ui); font-size: 18px; font-weight: 400; color: var(--mint);
  -webkit-font-smoothing: none;
}
.home-link.brew .home-title { color: #f0c4cc; }
.home-link.grow .home-title { color: #c6e6c2; }
.home-link.junk .home-title { color: #e0c89a; }
.home-link.aqua .home-title { color: #9fd6ef; }
.home-link.rat .home-title { color: #d7c2ef; }
.home-link.gun .home-title { color: #c8d4e0; }

.fish-roster { margin-bottom: 14px; }
.page > .fish-roster {
  max-width: calc(1040px - 40px);
  margin-left: auto;
  margin-right: auto;
}
.fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.fish-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 96px; padding: 10px 8px 12px; width: 100%;
  background: var(--slot); color: inherit; border: 1px solid var(--line);
  font: inherit; cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.fish-item:hover,
.fish-item:focus-visible,
.fish-item.on {
  border-color: var(--cyan); background: #102624;
}
.fish-ico {
  width: 88px; height: 50px;
  object-fit: contain; object-position: center;
  image-rendering: pixelated;
}
.fish-name {
  font-family: var(--ui); font-size: 13px; color: var(--mint);
  -webkit-font-smoothing: none; text-align: center;
}
.fish-diet { font-size: 12px; color: var(--muted); }
.fish-detail {
  margin-top: 12px; padding: 14px 16px;
  background: #0d1416; border: 1px solid var(--cyan);
}
.fish-detail-inner { max-width: 42rem; }
.fish-pop-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.fish-pop-head b {
  display: block; font-family: var(--ui); font-size: 18px; font-weight: 400;
  color: var(--mint); -webkit-font-smoothing: none;
}
.fish-pop-head span { color: var(--cyan); font-size: 13px; }
.fish-pop-line { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.fish-feeds-lab {
  display: block; margin-bottom: 6px;
  font-family: var(--ui); font-size: 12px; color: var(--cyan);
  -webkit-font-smoothing: none;
}
.fish-feed-row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.fish-feed {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 140px; font-size: 14px; color: var(--text);
}
.fish-pop-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.fish-pop-sub {
  display: block; margin-top: 4px;
  color: var(--muted); font-size: 13px; line-height: 1.35;
}
.grow-unified .grow-metrics { margin: 12px 0 4px; }
.grow-notes { margin-top: 8px; }
.grow-notes p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.grow-notes .fish-pop-note { margin-top: 0; }
.home-copy { color: var(--muted); font-size: 15px; }
.home-thumbs { display: flex; gap: 4px; align-items: center; }
.home-side { opacity: 0.9; }
@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.6%, 0); }
}
@keyframes logo-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes copy-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

h1 {
  margin: 0 0 8px; font-family: var(--ui); font-size: 28px; font-weight: 400; line-height: 1.3;
  color: var(--mint); -webkit-font-smoothing: none;
}
.sub { margin: 0 0 8px; color: var(--muted); max-width: 68ch; }
.brew h2, .board-head h2 {
  font-family: var(--ui); font-size: 22px; font-weight: 400; margin: 0;
  color: var(--mint); -webkit-font-smoothing: none;
}

.equip-info, .equip-bar {
  color: var(--cyan); font-family: var(--ui); font-size: 14px; font-weight: 400;
  -webkit-font-smoothing: none;
}
.equip-bar {
  max-width: 1040px; margin: 10px auto 0; padding: 0 20px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px 14px;
  margin: 8px 0 4px;
}
.field {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0; padding: 10px 12px;
  background: var(--slot); border: 1px solid var(--line);
}
.field-lab {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.field .lbl {
  font-family: var(--ui); font-size: 13px; font-weight: 400; color: var(--muted);
  -webkit-font-smoothing: none;
}
.field .unit { font-size: 12px; color: #6f8185; }
.field input {
  width: 100%; border: 0; padding: 0; background: transparent; color: var(--cyan);
  text-align: left; font-family: "Malgun Gothic", sans-serif; font-size: 22px; font-weight: 700; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.field.bad input { color: var(--warn); }
.field:focus-within { border-color: var(--cyan); }
.field .hint {
  display: none; margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4;
}
.field:focus-within .hint { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 40px; padding: 6px 10px; cursor: pointer;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 0;
  font-family: var(--ui); font-size: 14px; font-weight: 400; -webkit-font-smoothing: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}
.chip:hover { border-color: var(--cyan); }
.chip.on { background: var(--plate); color: var(--mint); border-color: var(--cyan); }

details.fold { margin: 10px 0 14px; }
details.fold summary {
  cursor: pointer; color: var(--cyan); min-height: 40px;
  display: flex; align-items: center; width: fit-content;
  font-family: var(--ui); font-size: 14px; -webkit-font-smoothing: none;
}
details.fold summary:hover { color: var(--mint); }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; max-width: 68ch; }
label.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan); }

nav.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
nav.tabs button.help-tab { margin-left: auto; }

.product { padding: 14px 0 28px; }
.product-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--plate); border: 1px solid var(--cyan);
}
.product-ico { width: 48px; height: 48px; }
.product-head h2 {
  margin: 0; font-family: var(--ui); font-size: 16px; font-weight: 400; color: var(--mint);
  -webkit-font-smoothing: none;
}
.title-ico { width: 48px; height: 48px; }
.title-ico.wide { width: 72px; height: 48px; }
.title-scan {
  margin-left: auto; width: 72px; height: 120px; opacity: 0.9;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}
.board-title { display: flex; align-items: center; gap: 10px; }
.board-ico { width: 28px; height: auto; }
.board-ico.tall { width: 28px; height: 36px; }
.board-ico.berry { width: 48px; height: 48px; image-rendering: auto; }
.reset {
  margin-left: auto; background: transparent; border: 1px solid var(--cyan); color: var(--mint);
  border-radius: 0; min-height: 32px; padding: 4px 8px;
  font-family: var(--ui); font-size: 14px; font-weight: 400; -webkit-font-smoothing: none;
  transition: background 160ms var(--ease), transform 120ms var(--ease);
}
.reset:hover { background: #113633; }

.sheet { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.goal { display: flex; flex-wrap: wrap; gap: 8px; }
.goal-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--slot); border: 1px solid var(--cyan); padding: 2px 8px;
}
.goal-chip b.live {
  background: transparent; color: var(--cyan); font-size: 22px; padding: 0;
}
.goal-chip span {
  font-family: var(--ui); font-size: 14px; font-weight: 400; color: var(--mint);
  -webkit-font-smoothing: none;
}
b.live {
  color: #102624; background: var(--cyan);
  font-family: "Malgun Gothic", sans-serif; font-weight: 700;
  padding: 0 4px; -webkit-font-smoothing: auto;
  font-variant-numeric: tabular-nums;
}

.prep {
  border: 1px solid var(--cyan); background: var(--panel); padding: 14px 16px;
}
.kicker, .now-tag {
  display: inline-block; margin: 0 8px 6px 0; padding: 2px 8px;
  background: var(--cyan); color: #102624;
  font-family: var(--ui); font-size: 14px; font-weight: 400; -webkit-font-smoothing: none;
}
.prep h3 {
  margin: 0 0 6px; font-family: var(--ui); font-size: 20px; font-weight: 400;
  color: var(--mint); -webkit-font-smoothing: none;
}
.say, .panel-help { margin: 0 0 12px; max-width: 68ch; color: var(--muted); font-size: 14px; }
.asks { display: flex; flex-direction: column; gap: 8px; }

.board, .panel {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  padding: 16px;
  margin-bottom: 12px;
}
.board { border-color: color-mix(in srgb, var(--cyan) 55%, var(--line)); }
.board-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.board-note { margin: 0; color: var(--muted); font-size: 14px; }
.panel h3 {
  margin: 0 0 10px; font-family: var(--ui); font-size: 14px; font-weight: 400; color: var(--cyan);
  -webkit-font-smoothing: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px 16px;
  margin: 0;
}
.metrics > div {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding-top: 8px; border-top: 1px solid #273237;
}
.metrics dt {
  margin: 0; font-family: var(--ui); font-size: 12px; color: var(--muted);
  -webkit-font-smoothing: none;
}
.metrics dd {
  margin: 0; color: var(--text); font-size: 16px; font-weight: 700;
  font-family: "Malgun Gothic", sans-serif; font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.metrics.compact { gap: 8px 14px; }
.metrics.compact > div { padding-top: 6px; }

.segment {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.seg {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 120px; min-height: 56px; padding: 8px 10px;
  background: var(--slot); color: var(--text); border: 1px solid var(--line);
  font: inherit; text-align: left;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.seg:hover { border-color: var(--cyan); }
.seg.on { background: var(--plate); border-color: var(--cyan); color: var(--mint); }
.seg-name {
  font-family: var(--ui); font-size: 14px; -webkit-font-smoothing: none;
}
.seg-meta { font-size: 12px; color: var(--muted); }
.seg.on .seg-meta { color: color-mix(in srgb, var(--mint) 70%, var(--muted)); }
.seg-val {
  margin-top: 2px; color: var(--cyan); font-family: "Malgun Gothic", sans-serif;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.seg.on .seg-val { color: var(--mint); }
.segment.water .seg { min-width: 0; min-height: 40px; }

.notes { display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.notes p { margin: 0; color: var(--muted); font-size: 14px; }

.receipts { display: flex; flex-direction: column; gap: 12px; }
.receipts > div { background: var(--panel); border: 1px solid var(--line); padding: 8px 12px 12px; }
h3 {
  font-family: var(--ui); font-size: 14px; font-weight: 400; color: var(--cyan);
  margin: 4px 0 8px; -webkit-font-smoothing: none;
}

.lang select, .term-input {
  background: var(--slot); color: var(--text);
  font-family: "Malgun Gothic", sans-serif; font-size: 16px;
  border: 1px solid var(--line); border-radius: 0; padding: 6px 8px;
}
.lang select { width: auto; max-width: 100%; }
.term-input { width: 100%; }
.term-input::placeholder { color: #6e8084; }
.term-row { padding: 8px 0; border-bottom: 1px solid #2c383d; }
.term-row span { display: block; margin-bottom: 4px; color: var(--mint); }

ul.warn {
  margin: 10px 0 0; padding: 8px 12px 8px 28px;
  background: #3a1e22; border: 1px solid #8a3d46; color: var(--warn); font-size: 14px;
}

.steps-hint { margin-top: 10px; }

ol.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ol.steps li.station {
  border: 1px solid var(--line); background: var(--panel); margin: 0;
  user-select: none;
  -webkit-user-select: none;
}
ol.steps li.station.now { border-color: var(--cyan); background: #102624; }
.station-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.station-tick { display: grid; place-items: center; flex: 0 0 auto; }
.station-tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--cyan); }
ol.steps .num {
  flex: 0 0 36px; height: 36px; background: var(--plate); color: var(--mint);
  border: 1px solid var(--cyan);
  font-family: var(--mono); font-size: 18px; font-weight: 400;
  display: grid; place-items: center; -webkit-font-smoothing: none;
}
.station-face {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  padding: 0; background: transparent; border: 0; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.station-face:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.bench {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  min-width: 0;
}
.well {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px;
  min-width: 0;
}
.slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 84px; flex: 0 0 auto;
  background: var(--slot); border: 1px solid var(--line);
  padding: 4px 4px 3px;
}
.slot.machine { border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); }
.slot img { width: 64px; height: 40px; object-fit: contain; }
.slot-name {
  width: 100%; max-height: 2.4em; overflow: hidden;
  font-family: var(--ui); font-size: 11px; line-height: 1.2; color: var(--muted);
  text-align: center; white-space: normal;
  -webkit-font-smoothing: none;
}
.bench-arrow {
  flex: 0 0 auto; color: var(--cyan);
  font-family: var(--ui); font-size: 18px; -webkit-font-smoothing: none;
}
.station-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-width: 0; }
.station-copy b {
  display: inline; font-family: var(--ui); font-size: 18px; font-weight: 400;
  color: var(--mint); -webkit-font-smoothing: none;
}
ol.steps li.station.now .station-copy b { font-size: 20px; }
.station-detail {
  display: grid; grid-template-rows: 0fr; opacity: 0;
}
.detail-inner { overflow: hidden; }
.station:hover > .station-detail,
.station:focus-within > .station-detail,
.station.open > .station-detail,
.station.now > .station-detail {
  grid-template-rows: 1fr; opacity: 1;
}
ol.steps .detail {
  margin: 0; padding: 0 16px 12px 64px;
  color: var(--text); font-size: 15px; white-space: pre-line; max-width: 72ch;
}
ol.steps .detail b.live {
  display: inline; color: #102624; background: var(--cyan);
  font-family: "Malgun Gothic", sans-serif; font-size: 16px; font-weight: 700;
  padding: 0 4px; -webkit-font-smoothing: auto;
}
ol.steps ol.sub { margin: 0 8px 8px 46px; gap: 6px; }
ol.steps ol.sub .station-copy b { font-size: 16px; }
ol.steps ol.sub .slot { width: 84px; }
ol.steps ol.sub .slot img { width: 56px; height: 36px; }
ol.steps li.station.done .num { background: #2a3338; color: var(--muted); border-color: var(--line); }
ol.steps li.station.done .slot { opacity: 0.45; }
ol.steps li.station.done .station-copy b,
ol.steps li.station.done .detail { color: var(--muted); }
ol.steps li.station.done .detail { text-decoration: line-through; }
ol.steps li.station.done .detail b.live { background: #3c4a50; color: var(--muted); font-size: 15px; }

.temp { display: inline; margin-left: 8px; color: #f0d78c; font-family: var(--ui); font-size: 14px; font-weight: 400; background: transparent; border: 0; padding: 0; -webkit-font-smoothing: none; }
.temp.big { margin-left: 0; }

footer { color: var(--muted); font-size: 13px; padding-top: 16px; padding-bottom: 36px; }
.site-foot {
  max-width: none;
  margin: 0;
  padding: 28px max(20px, 4vw) 40px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, #0c1012 94%, transparent);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.site-foot-name {
  margin: 0 0 8px;
  font-family: var(--ui);
  font-size: 18px;
  font-weight: 400;
  color: var(--mint);
  -webkit-font-smoothing: none;
}
.site-foot p { margin: 0; max-width: 46rem; }
.site-foot-copy { margin-top: 14px; }
.site-foot a { color: var(--cyan); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.ad-slot { max-width: 1040px; margin: 8px auto 0; padding: 0 20px 8px; }
.ad-lab { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.04em; margin-bottom: 4px; }
.ad-slot .adsbygoogle { min-height: 90px; }
.title-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.title-row h1 { flex: 1 1 auto; }
.lang { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.page > details.fold { max-width: 1040px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.page > .product { max-width: 1040px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

.help .help-sec { margin-top: 20px; }
.help .help-sec ul { margin: 0; padding-left: 20px; }
.help .help-sec li { margin-bottom: 8px; }
.help .note { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.help .reset { margin: 0 0 10px; }
ol.recipe, ul.recipe { margin: 0; padding-left: 22px; max-width: 72ch; }
ol.recipe li, ul.recipe li { margin-bottom: 8px; }

.scroll { overflow-x: auto; max-width: 100%; }

/* Wide window: menu is a left counter, the shop mural keeps the rest of the frame. */
@media (min-width: 1200px) {
  .topbar {
    max-width: none;
    padding-inline: max(28px, 4vw);
  }
  .home-hero {
    min-height: calc(100svh - 72px);
    align-items: center;
  }
  .home-hero-copy {
    /* padding stays outside the measure, or a wider window squeezes the rows and the list grows past the fold */
    max-width: 42rem;
    margin: 0 0 0 max(28px, 4vw);
    padding: 28px 0 32px;
  }
  .home-links { max-width: none; }
  .home-hero-veil {
    background:
      linear-gradient(90deg,
        rgba(8, 12, 14, 0.92) 0,
        rgba(8, 12, 14, 0.88) 26rem,
        rgba(8, 12, 14, 0.8) 40rem,
        rgba(8, 12, 14, 0.32) 52rem,
        rgba(8, 12, 14, 0.06) 64rem,
        transparent 76rem),
      linear-gradient(180deg,
        rgba(8, 12, 14, 0.4) 0,
        transparent 14%,
        transparent 76%,
        rgba(8, 12, 14, 0.5) 100%);
  }
}

@media (max-width: 720px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { min-width: calc(50% - 4px); }
  .slot { width: 72px; }
  ol.steps .detail { padding-left: 16px; }
  .home-hero { min-height: 100svh; }
  .page:not(.home-page)::before {
    opacity: 0.14;
    background-size: 96px auto, 72px auto, 84px auto, 64px auto;
    background-position:
      left -20px top 88px,
      right -24px top 120px,
      right -16px bottom 16px,
      left -28px bottom 24px;
  }
  .home-link { grid-template-columns: auto 1fr; }
  .home-thumbs, .home-side { display: none; }
  .home-hero-veil {
    background:
      linear-gradient(90deg, rgba(8, 12, 14, 0.94) 0%, rgba(8, 12, 14, 0.78) 70%, rgba(8, 12, 14, 0.55) 100%),
      linear-gradient(0deg, rgba(8, 12, 14, 0.92) 0%, transparent 48%);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
