:root {
  --bg: #f8f3ee;
  --bg-deep: #f1e5dd;
  --panel: #fffdfb;
  --panel-strong: #f8efe9;
  --rose: #d98f8f;
  --rose-deep: #b86767;
  --sage: #a8b8a1;
  --gold: #c79f63;
  --ink: #2f2827;
  --muted: #62575a;
  --line: rgba(95, 80, 74, 0.18);
  --shadow: 0 20px 45px rgba(83, 65, 57, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(217, 143, 143, 0.18), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--ink);
  font: 16px/1.7 "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p, li {
  color: var(--muted);
}

.site-header,
.page-shell,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0 18px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(95, 80, 74, 0.28);
}

.nav-toggle-icon {
  width: 18px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 6px; }
.nav-toggle-icon span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(184, 103, 103, 0.1);
  color: var(--ink);
}

.page-shell {
  padding-bottom: 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.38));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(24px, 4vw, 52px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--rose-deep);
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -.05em;
  margin-bottom: 16px;
}

.hero-subtitle {
  max-width: 48ch;
  font-size: 1.08rem;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button.primary,
button {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: white;
  box-shadow: 0 14px 30px rgba(184, 103, 103, 0.25);
}

.button.secondary {
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border-color: var(--line);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.placeholder-photo {
  width: min(100%, 440px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(167, 184, 161, 0.45), rgba(220, 198, 177, 0.55));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
  color: rgba(47, 40, 39, 0.75);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.detail-list,
.travel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.detail-list li,
.travel-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.detail-list li::before,
.travel-list li::before {
  content: "✦";
  color: var(--gold);
  font-size: .9rem;
  line-height: 1.8;
}

.motd-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(246, 236, 230, 0.9));
}

#motd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.game-panel,
.schedule {
  margin-top: 26px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 18px;
}

.game-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(246, 237, 231, 0.82));
  border: 1px solid var(--line);
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.game-score {
  font-weight: 700;
  color: var(--ink);
}

.game-button {
  margin-top: 0;
  padding: 10px 18px;
  font-size: 0.95rem;
}

.high-score-form {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.high-score-form label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.high-score-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.high-score-input-row input {
  margin-bottom: 0;
}

.high-score-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.leaderboard {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.leaderboard h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(95, 80, 74, 0.12);
  color: var(--ink);
}

.leaderboard-name {
  font-weight: 700;
}

.leaderboard-score {
  color: var(--rose-deep);
  font-weight: 700;
}

.game-surface {
  position: relative;
  width: 100%;
  height: clamp(420px, 72svh, 780px);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(176, 182, 164, 0.08)),
    linear-gradient(180deg, #f8d9b4 0%, #f2b48a 20%, #db9a7f 42%, #93afc2 70%, #5b6d76 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
  touch-action: manipulation;
  user-select: none;
}

@media (max-width: 700px) {
  .game-surface {
    height: clamp(560px, 82svh, 860px);
    min-height: 560px;
  }
}

.game-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent 45%);
  pointer-events: none;
}

.game-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,0.85) 0 2px, transparent 2px),
    radial-gradient(circle at 22% 12%, rgba(255,255,255,0.7) 0 2px, transparent 2px),
    radial-gradient(circle at 48% 16%, rgba(255,255,255,0.7) 0 2px, transparent 2px),
    radial-gradient(circle at 65% 20%, rgba(255,255,255,0.8) 0 2px, transparent 2px),
    radial-gradient(circle at 86% 14%, rgba(255,255,255,0.8) 0 2px, transparent 2px);
  opacity: 0.9;
  pointer-events: none;
}

.sunset-glow {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 242, 191, 0.9) 0%, rgba(255, 191, 143, 0.52) 30%, rgba(255, 191, 143, 0.08) 70%, transparent 100%);
}

.lake-reflection {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 72px;
  background: linear-gradient(180deg, rgba(60, 98, 114, 0.2), rgba(25, 57, 69, 0.75));
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 10px 30px rgba(255,255,255,0.08);
}

.lake-reflection::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), transparent 20%, rgba(255,255,255,0.06) 100%);
}

.sky-bird {
  position: absolute;
  top: 26px;
  width: 18px;
  height: 10px;
  border-top: 2px solid rgba(77, 92, 84, 0.8);
  border-radius: 50% 50% 0 0;
  transform: scaleX(1.2);
  opacity: 0.7;
  animation: bird-fly linear infinite;
}

.sky-bird::before,
.sky-bird::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 10px;
  height: 9px;
  border-top: 2px solid rgba(77, 92, 84, 0.8);
  border-radius: 50% 50% 0 0;
}

.sky-bird::before {
  left: -4px;
  transform: rotate(-12deg);
}

.sky-bird::after {
  right: -4px;
  transform: rotate(12deg);
}

.dino {
  position: absolute;
  left: 64px;
  bottom: 20px;
  width: 94px;
  height: 64px;
  z-index: 2;
  transition: transform 0.08s linear;
  transform-origin: center bottom;
  animation: husky-run 0.45s ease-in-out infinite alternate;
}


.dino.is-jumping {
  transform: rotate(-12deg) scale(1.02);
  animation: husky-jump 0.38s ease-in-out infinite alternate;
}

.dino-body {
  position: absolute;
  left: 18px;
  bottom: 12px;
  width: 54px;
  height: 30px;
  border-radius: 22px 18px 18px 16px;
  background: linear-gradient(180deg, #d69a5f 0%, #c9884a 35%, #f6f2ef 100%);
  box-shadow: inset -8px -6px 0 rgba(117, 93, 79, 0.12), 0 4px 12px rgba(87, 58, 53, 0.12);
  animation: body-bob 0.45s ease-in-out infinite alternate;
}

.dino-head {
  position: absolute;
  right: 4px;
  top: 10px;
  width: 48px;
  height: 32px;
  border-radius: 32px 26px 22px 18px;
  background: linear-gradient(180deg, #efb279 0%, #d88d52 38%, #f5efe7 100%);
  box-shadow: inset -8px -6px 0 rgba(117, 93, 79, 0.12), 0 4px 10px rgba(87, 58, 53, 0.1);
  animation: head-bob 0.45s ease-in-out infinite alternate;
}

.dino-face {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 28px;
  height: 18px;
  background: linear-gradient(135deg, #fffdfc 0%, #f3efe9 100%);
  border-radius: 14px 16px 14px 12px;
  box-shadow: inset 0 0 0 1px rgba(140, 116, 104, 0.08);
}

.dino-cheek {
  position: absolute;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(169, 128, 108, 0.55);
}

.dino-cheek.cheek-left {
  left: 4px;
}

.dino-cheek.cheek-right {
  right: 4px;
}

.dino-eye {
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2d2f46;
}

.eye-left {
  left: 7px;
}

.eye-right {
  right: 8px;
}

.dino-nose {
  position: absolute;
  left: 11px;
  bottom: 2px;
  width: 8px;
  height: 7px;
  border-radius: 60% 60% 70% 70%;
  background: #2d2f46;
  box-shadow: inset 0 -1px 0 rgba(96, 66, 60, 0.25);
}

.dino-paws {
  position: absolute;
  left: 14px;
  right: 20px;
  bottom: 1px;
  display: flex;
  justify-content: space-between;
  animation: paws-sway 0.45s ease-in-out infinite alternate;
}

.dino-paw {
  width: 10px;
  height: 14px;
  background: linear-gradient(180deg, #f7f1ee 0%, #d7cabd 100%);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(98, 74, 65, 0.08);
  transform-origin: center top;
}

.dino-paw.paw-left {
  animation: paw-left-sprint 0.45s ease-in-out infinite alternate;
}

.dino-paw.paw-right {
  animation: paw-right-sprint 0.45s ease-in-out infinite alternate;
}

.dino-tail {
  position: absolute;
  left: 0px;
  top: 24px;
  width: 26px;
  height: 8px;
  background: linear-gradient(90deg, #d9c7b6 0%, #ad8662 100%);
  border-radius: 999px;
  transform-origin: right center;
  animation: tail-wag 0.2s ease-in-out infinite alternate;
}

.dino.is-jumping .dino-tail {
  transform: rotate(18deg) translateX(-2px);
}

.dino-ear {
  position: absolute;
  top: -10px;
  width: 12px;
  height: 14px;
  background: linear-gradient(180deg, #dca26a 0%, #b8743f 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform-origin: bottom center;
}

.dino-ear::after {
  content: "";
  position: absolute;
  inset: 4px 4px 3px 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246, 228, 202, 0.78));
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.8;
}

.dino-ear.ear-left {
  left: 9px;
  transform: rotate(-22deg);
  animation: ear-left-flick 0.45s ease-in-out infinite alternate;
}

.dino-ear.ear-right {
  right: 10px;
  transform: rotate(22deg);
  animation: ear-right-flick 0.45s ease-in-out infinite alternate;
}


@keyframes husky-run {
  0% {
    transform: translateY(0) scaleY(1) rotate(-3deg);
  }
  100% {
    transform: translateY(-2px) scaleY(1.04) rotate(3deg);
  }
}

@keyframes head-bob {
  0% {
    transform: translateY(0) rotate(-2deg);
  }
  100% {
    transform: translateY(-2px) rotate(2deg);
  }
}

@keyframes body-bob {
  0% {
    transform: translateY(0) scaleX(1);
  }
  100% {
    transform: translateY(-1px) scaleX(1.04);
  }
}

@keyframes paws-sway {
  0% {
    transform: translateY(0) translateX(-1px);
  }
  100% {
    transform: translateY(1px) translateX(1px);
  }
}

@keyframes paw-left-sprint {
  0% {
    transform: rotate(18deg) translateY(0);
  }
  100% {
    transform: rotate(-24deg) translateY(1px);
  }
}

@keyframes paw-right-sprint {
  0% {
    transform: rotate(-24deg) translateY(1px);
  }
  100% {
    transform: rotate(18deg) translateY(0);
  }
}

@keyframes ear-left-flick {
  0% {
    transform: rotate(-18deg) translateY(0);
  }
  100% {
    transform: rotate(-28deg) translateY(-1px);
  }
}

@keyframes ear-right-flick {
  0% {
    transform: rotate(18deg) translateY(0);
  }
  100% {
    transform: rotate(28deg) translateY(-1px);
  }
}

@keyframes bird-fly {
  0% {
    transform: translateX(-20px) translateY(0) scale(0.9);
  }
  50% {
    transform: translateX(100px) translateY(-8px) scale(1);
  }
  100% {
    transform: translateX(240px) translateY(8px) scale(0.9);
  }
}

@keyframes husky-jump {
  0% {
    transform: rotate(-12deg) scale(1.02) translateY(0);
  }
  100% {
    transform: rotate(-18deg) scale(1.04) translateY(-4px);
  }
}

@keyframes tail-wag {
  0% {
    transform: rotate(-24deg) translateX(0);
  }
  100% {
    transform: rotate(28deg) translateX(-4px);
  }
}

@keyframes face-bob {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-1px);
  }
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: linear-gradient(180deg, rgba(131, 114, 105, 0.32), rgba(91, 79, 70, 0.48));
}

.ground::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.35) 0,
    rgba(255,255,255,0.35) 12px,
    transparent 12px,
    transparent 22px
  );
}

.obstacle {
  --pipe-width: 62px;
  position: absolute;
  top: 0;
  width: var(--pipe-width);
  height: 100%;
  pointer-events: none;
}

.pipe {
  position: absolute;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #a7c892 0%, #7ea469 28%, #5d7a52 100%);
  box-shadow: inset -6px 0 0 rgba(0,0,0,0.08), inset 6px 0 0 rgba(255,255,255,0.12), 0 6px 16px rgba(76, 105, 69, 0.12);
  overflow: visible;
}

.pipe::before,
.pipe::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--pipe-width) * 1.25);
  height: 26px;
  background: linear-gradient(180deg, #b8d9a3 0%, #7ca66d 100%);
  border-radius: 50% 50% 40% 40%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 2px 8px rgba(48, 77, 47, 0.12);
}

.pipe::before {
  top: -14px;
}

.pipe::after {
  bottom: -14px;
}

.pipe::before {
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.08),
    -18px 6px 0 -4px rgba(116, 158, 103, 0.9),
    18px 8px 0 -4px rgba(116, 158, 103, 0.9),
    -8px 14px 0 -6px rgba(97, 135, 88, 0.8),
    8px 16px 0 -6px rgba(97, 135, 88, 0.8);
}

.pipe::after {
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.08),
    -16px -6px 0 -3px rgba(116, 158, 103, 0.9),
    16px -8px 0 -3px rgba(116, 158, 103, 0.9),
    -6px -16px 0 -6px rgba(97, 135, 88, 0.8),
    6px -18px 0 -6px rgba(97, 135, 88, 0.8);
}

.pipe-top {
  top: 0;
  border-radius: 0 0 18px 18px;
}

.pipe-bottom {
  bottom: 0;
  border-radius: 18px 18px 0 0;
}

.game-over {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: min(88%, 420px);
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  z-index: 5;
}

@media (max-width: 820px) {
  .hero,
  .info-grid,
  .two-column,
  .message-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
   flex-direction: row;
   align-items: center;
   justify-content: space-between;
   text-align: left;
   padding-top: 22px;
   gap: 12px;
  }

  .brand {
   width: auto;
   flex: 1;
   text-align: left;
  }

  .nav-toggle {
   display: inline-flex;
   margin-left: auto;
   align-self: center;
  }

  .site-nav {
   display: none;
   width: 100%;
   flex-direction: column;
   align-items: stretch;
   justify-content: center;
   gap: 8px;
   padding: 14px;
   border-radius: 18px;
   background: rgba(255, 255, 255, 0.8);
   border: 1px solid var(--line);
  }

  .site-nav.is-open {
   display: flex;
  }

  .site-nav a {
   width: 100%;
   text-align: center;
   padding: 12px 14px;
  }
}

@media (max-width: 560px) {
  .button,
  .site-nav a {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .game-panel,
  .schedule {
    padding: 18px 16px;
  }

  .game-card {
    padding: 12px;
  }

  .game-meta {
    align-items: stretch;
    font-size: 0.9rem;
  }

  .game-button {
    width: 100%;
  }

  .game-surface {
    height: 180px;
  }

  .high-score-input-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-time {
  font-weight: 700;
  color: var(--rose-deep);
}

.page-banner {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}

.page-banner h1 {
  margin-bottom: 10px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.message-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}

.form-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(95, 80, 74, 0.22);
  background: rgba(248, 243, 238, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  margin-bottom: 12px;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(184, 103, 103, 0.3);
  border-color: rgba(184, 103, 103, 0.5);
}

button {
  margin-top: 16px;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

#status {
  margin-top: 12px;
  min-height: 24px;
  color: var(--muted);
}

.note-box {
  display: grid;
  gap: 18px;
}

.site-footer {
  padding: 8px 0 42px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .hero,
  .info-grid,
  .two-column,
  .message-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding-top: 22px;
    gap: 12px;
  }

  .brand {
    width: auto;
    flex: 1;
    text-align: left;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-self: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
  }
}

@media (max-width: 560px) {
  .button,
  .site-nav a {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
