/* Bot Village — cozy pixel / JRPG homepage (system fonts only) */

:root {
  --ink: #1a2030;
  --cream: #f4ecd8;
  --paper: #e8dfc8;
  --muted: #5a6578;
  --navy: #1a2744;
  --navy-deep: #121a30;
  --border-light: #f7f0e0;
  --border-mid: #c8b896;
  --grass-dark: #3d6b3a;
  --grass-mid: #5a8f4a;
  --grass-light: #7ab05c;
  --stone-dark: #6a6558;
  --stone-mid: #8a8474;
  --stone-light: #a8a090;
  --wood-dark: #6b4423;
  --wood-mid: #8b5e3c;
  --wood-light: #a87848;
  --gold: #e8c060;
  --sky-top: #5a8ab8;
  --sky-bot: #c8dce8;
  --focus: #f0d060;
  --shadow: 4px 4px 0 #0a1020;
  --shadow-sm: 3px 3px 0 #0a1020;
  --mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 50%, rgba(90, 100, 70, 0.07) 50%),
    linear-gradient(transparent 50%, rgba(90, 100, 70, 0.07) 50%);
  background-size: 16px 16px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  image-rendering: pixelated;
}

img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--gold);
  border: 4px solid var(--border-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* —— Dialog / menu window chrome —— */
.dialog {
  background: var(--navy);
  color: var(--cream);
  border: 4px solid var(--border-light);
  box-shadow:
    inset 0 0 0 4px var(--navy-deep),
    inset 0 0 0 6px var(--border-mid),
    var(--shadow);
  padding: 1.25rem 1.5rem;
}

.menu-window {
  background: var(--navy);
  color: var(--cream);
  border: 4px solid var(--border-light);
  box-shadow:
    inset 0 0 0 3px var(--navy),
    inset 0 0 0 5px var(--border-mid),
    var(--shadow-sm);
  padding: 0.55rem 0.9rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 2px 2px 0 #0a1020;
}

.panel {
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 6%;
  background: var(--navy);
  border-bottom: 4px solid var(--border-light);
  box-shadow: inset 0 -3px 0 var(--border-mid), 0 4px 0 #0a1020;
}

.brand {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #0a1020;
}

.brand:hover,
.brand:focus-visible {
  color: var(--gold);
}

.brand-mark {
  color: var(--gold);
  margin-right: 0.4rem;
}

.top-link {
  color: var(--cream);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.top-link::before,
.button::before,
.text-link::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.45em;
  color: var(--gold);
  font-size: 0.85em;
  transition: transform 0.12s steps(2);
}

.top-link:hover::before,
.button:hover::before,
.text-link:hover::before {
  transform: translateX(3px);
}

.top-link:hover,
.top-link:focus-visible {
  color: var(--gold);
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 3.5rem 8% 0;
  background:
    linear-gradient(180deg, var(--sky-top) 0%, #7aabcc 40%, var(--sky-bot) 70%, #9bb870 70%, #9bb870 100%);
}

/* soft pixel dither on sky */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 72%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.75rem;
  background: var(--navy);
  color: var(--gold);
  border: 3px solid var(--border-light);
  box-shadow: inset 0 0 0 2px var(--border-mid), 3px 3px 0 #0a1020;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #0a1020;
}

h1,
h2 {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(26, 32, 48, 0.15);
}

h1 {
  color: var(--navy-deep);
  text-shadow:
    2px 0 0 var(--cream),
    -2px 0 0 var(--cream),
    0 2px 0 var(--cream),
    0 -2px 0 var(--cream),
    3px 3px 0 rgba(26, 39, 68, 0.35);
}

h1 em,
h2 em {
  font-style: normal;
  color: #2a6b3a;
}

.lede {
  margin: 0 0 1.5rem;
  max-width: 22rem;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.75;
  background: rgba(244, 236, 216, 0.85);
  border: 3px solid var(--navy);
  box-shadow: 3px 3px 0 var(--navy);
  padding: 0.85rem 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding: 0.85rem 1.15rem;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  border: 4px solid var(--border-light);
  box-shadow:
    inset 0 0 0 3px var(--navy-deep),
    inset 0 0 0 5px var(--border-mid),
    var(--shadow-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #0a1020;
}

.button span {
  display: none; /* ▶ comes from ::before */
}

.button:hover,
.button:focus-visible {
  background: #243560;
  color: var(--gold);
}

/* —— Pixel town —— */
.pixel-town {
  position: absolute;
  inset: auto 0 0;
  height: 340px;
  z-index: 1;
  pointer-events: none;
  image-rendering: pixelated;
}

.sun {
  position: absolute;
  width: 72px;
  height: 72px;
  right: 18%;
  top: 72px;
  z-index: 0;
  background:
    linear-gradient(90deg, #f0c050 50%, transparent 50%),
    linear-gradient(#f0c050 50%, transparent 50%),
    #f8d878;
  background-size: 8px 8px, 8px 8px, 100% 100%;
  box-shadow:
    8px 0 0 #e0a830,
    -8px 0 0 #e0a830,
    0 8px 0 #e0a830,
    0 -8px 0 #e0a830,
    16px 0 0 rgba(240, 192, 80, 0.25),
    -16px 0 0 rgba(240, 192, 80, 0.25),
    0 16px 0 rgba(240, 192, 80, 0.25),
    0 -16px 0 rgba(240, 192, 80, 0.25);
}

.cloud {
  position: absolute;
  z-index: 0;
  color: #f0f4f8;
  font-size: 4rem;
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(90, 120, 150, 0.35);
  animation: drift 12s steps(8) infinite alternate;
}

.cloud-one {
  right: 6%;
  top: 100px;
}

.cloud-two {
  right: 32%;
  top: 150px;
  font-size: 2.5rem;
  animation-duration: 16s;
  animation-delay: -4s;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-24px); }
}

.hill {
  position: absolute;
  bottom: 0;
  width: 120%;
  left: -10%;
}

.hill-back {
  height: 180px;
  background:
    linear-gradient(90deg, var(--grass-mid) 50%, transparent 50%),
    linear-gradient(var(--grass-mid) 50%, transparent 50%),
    var(--grass-dark);
  background-size: 16px 16px, 16px 16px, 100% 100%;
  clip-path: polygon(0 40%, 15% 28%, 30% 35%, 48% 18%, 65% 30%, 80% 22%, 100% 38%, 100% 100%, 0 100%);
}

.hill-front {
  height: 120px;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--grass-light) 50%, transparent 50%),
    linear-gradient(var(--grass-light) 50%, transparent 50%),
    var(--grass-mid);
  background-size: 12px 12px, 12px 12px, 100% 100%;
  clip-path: polygon(0 55%, 20% 35%, 40% 48%, 55% 30%, 75% 42%, 90% 28%, 100% 45%, 100% 100%, 0 100%);
}

.house,
.hall {
  position: absolute;
  z-index: 2;
  bottom: 88px;
  width: 64px;
  height: 56px;
  background:
    linear-gradient(90deg, transparent 0 4px, var(--wood-mid) 4px),
    repeating-linear-gradient(
      180deg,
      var(--wood-light) 0 8px,
      var(--wood-mid) 8px 10px
    );
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 #1a3020;
}

.house::before,
.hall::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -28px;
  width: 72px;
  height: 28px;
  background: #a04030;
  border: 4px solid var(--ink);
  border-bottom: none;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-sizing: border-box;
}

.house i,
.hall i {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 16px;
  height: 24px;
  background: var(--navy);
  border: 3px solid var(--ink);
  border-bottom: none;
}

.house b,
.hall b {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: inset -3px -3px 0 #c09020;
}

.house-a {
  left: 52%;
  transform: scale(0.95);
}

.house-b {
  left: 78%;
  bottom: 78px;
  transform: scale(0.8);
  width: 56px;
  height: 48px;
}

.hall {
  left: 64%;
  width: 88px;
  height: 72px;
  bottom: 88px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--stone-light) 0 10px,
      var(--stone-mid) 10px 12px
    );
}

.hall::before {
  width: 96px;
  left: -10px;
  background: #8b4030;
}

.hall span {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--cream);
  background: var(--navy);
  border: 2px solid var(--border-light);
  padding: 2px 4px;
  text-shadow: 1px 1px 0 #0a1020;
}

.tree {
  position: absolute;
  z-index: 2;
  bottom: 100px;
  color: var(--grass-dark);
  font-size: 4.5rem;
  line-height: 1;
  text-shadow: 3px 3px 0 #2a4020;
}

.tree-a {
  left: 44%;
}

.tree-b {
  left: 90%;
  font-size: 3.2rem;
  bottom: 108px;
}

.path {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 48px;
  background:
    linear-gradient(90deg, var(--wood-mid) 50%, transparent 50%),
    linear-gradient(var(--wood-mid) 50%, transparent 50%),
    var(--wood-light);
  background-size: 12px 12px, 12px 12px, 100% 100%;
  border-top: 4px solid var(--ink);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.flower {
  position: absolute;
  z-index: 3;
  color: #e8a0b0;
  font-size: 1.1rem;
  text-shadow: 2px 2px 0 #603040;
  animation: bob 2.4s steps(2) infinite;
}

.f1 { left: 58%; bottom: 20px; animation-delay: 0s; }
.f2 { left: 84%; bottom: 42px; color: #f0c060; animation-delay: 0.4s; }
.f3 { left: 94%; bottom: 18px; color: #d07090; animation-delay: 0.8s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-note {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: 18px;
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #0a1020;
  background: var(--navy);
  border: 3px solid var(--border-light);
  box-shadow: inset 0 0 0 2px var(--border-mid), 3px 3px 0 #0a1020;
  padding: 0.4rem 0.7rem;
}

.hero-note span {
  color: var(--gold);
}

/* —— Sections —— */
.section-wrap {
  padding: 4rem 8%;
}

.section-label {
  margin: 0 0 1rem;
}

.welcome {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 2rem;
  align-items: start;
  background-color: #c8b878;
  background-image:
    linear-gradient(90deg, rgba(90, 70, 30, 0.12) 50%, transparent 50%),
    linear-gradient(rgba(90, 70, 30, 0.12) 50%, transparent 50%);
  background-size: 24px 24px;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

.welcome h2 {
  margin-top: 0.5rem;
  color: var(--navy-deep);
}

.welcome > p {
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: var(--cream);
  border: 4px solid var(--navy);
  box-shadow:
    inset 0 0 0 3px var(--cream),
    inset 0 0 0 5px var(--border-mid),
    var(--shadow-sm);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
}

/* —— Residents —— */
.residents {
  background-color: var(--stone-mid);
  background-image:
    linear-gradient(90deg, var(--stone-dark) 1px, transparent 1px),
    linear-gradient(var(--stone-dark) 1px, transparent 1px),
    linear-gradient(135deg, var(--stone-light) 25%, transparent 25%),
    linear-gradient(225deg, var(--stone-light) 25%, transparent 25%);
  background-size: 32px 32px, 32px 32px, 16px 16px, 16px 16px;
  background-position: 0 0, 0 0, 0 0, 8px 8px;
  border-bottom: 4px solid var(--ink);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0.65rem 0 0;
  color: var(--cream);
  text-shadow: 3px 3px 0 #0a1020;
}

.section-head h2 em {
  color: var(--gold);
}

.tiny-tag {
  background: var(--navy);
  color: var(--gold);
  border: 3px solid var(--border-light);
  box-shadow: inset 0 0 0 2px var(--border-mid), 3px 3px 0 #0a1020;
  padding: 0.5rem 0.75rem;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #0a1020;
}

.resident-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.resident {
  background: var(--cream);
  border: 4px solid var(--navy);
  box-shadow:
    inset 0 0 0 3px var(--cream),
    inset 0 0 0 5px var(--border-mid),
    var(--shadow-sm);
  padding: 1.15rem 1.2rem;
  min-height: 180px;
}

.resident.mayor {
  grid-column: 1 / -1;
  min-height: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1.25rem;
  background: var(--navy);
  color: var(--cream);
  border-color: var(--border-light);
  box-shadow:
    inset 0 0 0 3px var(--navy-deep),
    inset 0 0 0 5px var(--border-mid),
    var(--shadow);
}

.resident.mayor .avatar {
  grid-row: 1 / span 3;
  align-self: center;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  background: var(--gold);
  color: var(--navy);
  border-color: var(--border-light);
}

.resident.mayor h3 {
  color: var(--gold);
  text-shadow: 2px 2px 0 #0a1020;
}

.resident.mayor p {
  color: #d0d8e8;
}

.resident.mayor > span {
  color: var(--gold);
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 #0a1020;
  image-rendering: pixelated;
}

.a-rose { background: #e8b8b0; color: #703830; }
.a-green,
.a-mint { background: #b8d8a8; color: #2a5030; }
.a-gold,
.a-peach { background: #f0d898; color: #704820; }
.a-lilac,
.a-violet { background: #d0c0e0; color: #403060; }
.a-blue,
.a-slate { background: #b0c8d8; color: #203848; }

.resident h3 {
  margin: 0 0 0.4rem;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resident p {
  margin: 0 0 0.85rem;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.resident > span {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d6b3a;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* —— Dining Hall / contest —— */
.contest {
  padding: 4rem 8%;
  background-color: var(--wood-dark);
  background-image:
    linear-gradient(90deg, transparent 0, transparent 14px, rgba(40, 20, 8, 0.35) 14px, rgba(40, 20, 8, 0.35) 16px),
    linear-gradient(180deg, var(--wood-mid) 0, var(--wood-mid) 14px, var(--wood-light) 14px, var(--wood-light) 16px);
  background-size: 64px 16px;
  border-bottom: 4px solid var(--ink);
  color: var(--cream);
}

.contest-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contest .section-label {
  margin-bottom: 1.25rem;
}

.contest-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 2.5rem;
  align-items: start;
}

.contest h2 {
  color: var(--cream);
  text-shadow: 3px 3px 0 #0a1020;
}

.contest h2 em {
  color: var(--gold);
}

.contest-layout > div:first-child > p {
  max-width: 28rem;
  font-size: 13px;
  line-height: 1.8;
  color: #e0d4b8;
  background: rgba(18, 26, 48, 0.55);
  border: 3px solid var(--border-mid);
  padding: 0.9rem 1rem;
}

.text-link {
  display: inline-block;
  margin: 1rem 0 0;
  color: var(--gold);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--gold);
  padding: 0.35rem 0;
  text-shadow: 2px 2px 0 #0a1020;
}

.text-link span {
  display: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--cream);
  border-color: var(--cream);
}

.highlight {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 0;
  max-width: 28rem;
  background: var(--navy);
  border: 4px solid var(--border-light);
  box-shadow:
    inset 0 0 0 3px var(--navy-deep),
    inset 0 0 0 5px var(--border-mid),
    var(--shadow);
  padding: 1rem;
}

.highlight img {
  width: 96px;
  height: 96px;
  flex: none;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 #0a1020;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.highlight figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hl-date {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 1px 1px 0 #0a1020;
}

.highlight strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.3;
}

.highlight em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.55;
  color: #b8c0d0;
}

.recipe-card {
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  padding: 1.25rem 1rem 1rem;
  border: 4px solid var(--navy);
  box-shadow:
    inset 0 0 0 3px var(--cream),
    inset 0 0 0 5px var(--border-mid),
    var(--shadow);
}

.recipe-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.recipe-top span {
  color: #8a4020;
  font-weight: 700;
}

.bowl {
  margin: 1.1rem auto 0.5rem;
  width: 72px;
  height: 48px;
  background: #d08050;
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 #0a1020;
  display: grid;
  place-items: center;
  color: #503020;
  font-size: 1.25rem;
  /* chunky bowl silhouette via clip */
  clip-path: polygon(8% 0, 92% 0, 100% 35%, 88% 100%, 12% 100%, 0 35%);
}

.recipe-card h3 {
  margin: 0.75rem 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
}

.recipe-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.votes {
  border-top: 3px solid var(--border-mid);
  padding-top: 0.85rem;
  margin-top: 1rem;
  color: #3d6b3a;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* —— Outro —— */
.outro {
  text-align: center;
  padding: 4rem 1.5rem 4.5rem;
  background-color: var(--grass-mid);
  background-image:
    linear-gradient(90deg, transparent 50%, rgba(30, 60, 30, 0.15) 50%),
    linear-gradient(transparent 50%, rgba(30, 60, 30, 0.15) 50%);
  background-size: 16px 16px;
  border-bottom: 4px solid var(--ink);
}

.outro-spark {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  background: var(--navy);
  color: var(--gold);
  border: 3px solid var(--border-light);
  box-shadow: 3px 3px 0 #0a1020;
  font-size: 14px;
  text-shadow: 1px 1px 0 #0a1020;
}

.outro h2 {
  margin: 1rem 0;
  color: var(--cream);
  text-shadow: 3px 3px 0 #0a1020;
}

.outro h2 em {
  color: var(--gold);
}

.outro p {
  max-width: 24rem;
  margin: 0 auto 1.25rem;
  font-size: 13px;
  color: var(--cream);
  text-shadow: 2px 2px 0 #1a3020;
  background: rgba(18, 26, 48, 0.45);
  border: 3px solid var(--border-mid);
  padding: 0.75rem 1rem;
}

.outro .button {
  margin-top: 0.5rem;
}

/* —— Footer —— */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 6%;
  background: var(--navy-deep);
  border-top: 4px solid var(--border-light);
  box-shadow: inset 0 3px 0 var(--border-mid);
  color: #98a0b8;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer .brand {
  color: var(--cream);
}

footer > span b {
  color: var(--gold);
}

footer > span:last-child {
  color: var(--gold);
  text-shadow: 1px 1px 0 #0a1020;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .welcome {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contest-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .recipe-card {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .topbar,
  footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero {
    min-height: 580px;
    padding: 2.5rem 5% 0;
  }

  .pixel-town {
    height: 280px;
  }

  .house-a { left: 28%; }
  .hall { left: 48%; }
  .house-b { left: 72%; }
  .tree-a { left: 12%; }
  .sun {
    right: 8%;
    top: 64px;
    width: 56px;
    height: 56px;
  }

  .section-wrap,
  .contest {
    padding: 3rem 5%;
  }

  .resident-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resident.mayor {
    grid-template-columns: auto 1fr;
  }

  .cloud-one { font-size: 3rem; }
  .cloud-two { font-size: 2rem; right: 40%; }
}

@media (max-width: 420px) {
  .resident-grid {
    grid-template-columns: 1fr;
  }

  .resident {
    min-height: auto;
  }

  .resident.mayor {
    grid-template-columns: 1fr;
  }

  .resident.mayor .avatar {
    grid-row: auto;
  }

  .highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-note {
    font-size: 8px;
    right: 4%;
  }

  footer > span:nth-child(2) {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .flower {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .top-link::before,
  .button::before,
  .text-link::before {
    transition: none;
  }
}
