:root {
  color-scheme: light;
  --ink: #12202a;
  --muted: #52616b;
  --line: #d7e0dc;
  --paper: #fffaf0;
  --snow: #f7fbfb;
  --green: #277345;
  --green-dark: #143f2b;
  --teal: #0c7d93;
  --blue: #46b9d6;
  --gold: #f6bd55;
  --orange: #df7043;
  --shadow: 0 22px 55px rgba(21, 53, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(247, 251, 251, 0.94), rgba(255, 250, 240, 0.94)),
    repeating-linear-gradient(90deg, rgba(12, 125, 147, 0.05) 0 1px, transparent 1px 88px);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(20, 63, 43, 0.14);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 168px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover {
  color: var(--green-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(20, 63, 43, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 3px;
}

.lang-button {
  min-width: 46px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.lang-button.active {
  color: white;
  background: var(--green-dark);
}

.header-cta,
.button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(39, 115, 69, 0.22);
}

.button.secondary {
  color: var(--green-dark);
  background: white;
  border: 1px solid rgba(20, 63, 43, 0.2);
}

.hero {
  min-height: calc(100vh - 93px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(36px, 7vw, 88px) clamp(18px, 5vw, 72px) 40px;
  overflow: hidden;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6.3vw, 86px);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead {
  max-width: 590px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.quick-facts div,
.intro-grid article,
.product,
.news-list article,
.merch-grid article,
.contact-section {
  border: 1px solid rgba(20, 63, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(21, 53, 61, 0.08);
}

.quick-facts div {
  padding: 14px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 900;
}

.hero-stage {
  position: relative;
  min-height: 590px;
}

.hero-stage .board {
  position: absolute;
  inset: 5% 0 auto;
  width: min(680px, 88%);
  margin: auto;
  border: 12px solid white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.penguin,
.prop {
  position: absolute;
  filter: drop-shadow(0 18px 16px rgba(18, 32, 42, 0.22));
}

.penguin.blue {
  right: 4%;
  bottom: 12%;
  width: 150px;
  transform: rotate(7deg);
}

.penguin.yellow {
  left: 1%;
  bottom: 18%;
  width: 138px;
  transform: rotate(-8deg);
}

.prop.egg {
  right: 24%;
  bottom: 7%;
  width: 70px;
}

.prop.seagull {
  left: 16%;
  top: 7%;
  width: 118px;
  transform: rotate(-10deg);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.shop-note {
  color: rgba(255, 255, 255, 0.74);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intro-grid article {
  padding: 24px;
}

.intro-grid p,
.product p,
.news-list p,
.merch-grid p,
.contact-section p,
footer {
  color: var(--muted);
  line-height: 1.55;
}

.shop-section {
  background: var(--green-dark);
  color: white;
}

.shop-section .eyebrow,
.shop-section .product p,
.shop-section .product-meta,
.shop-section .section-heading {
  color: rgba(255, 255, 255, 0.76);
}

.shop-section h2,
.shop-section h3 {
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.product {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.product img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(70, 185, 214, 0.18), rgba(246, 189, 85, 0.18)),
    rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.product.featured img {
  object-fit: cover;
  padding: 0;
}

.product-body {
  padding: 22px;
}

.tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  border-radius: 999px;
  background: var(--gold);
  color: #38270c;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  font-size: 13px;
}

.product-meta span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-list article {
  padding: 22px;
}

time {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.merch-grid article {
  padding: 22px;
}

.merch-grid img {
  height: 180px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 30px;
  align-items: center;
  margin: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 5vw, 44px);
}

.signup {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    justify-content: flex-end;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 470px;
  }

  .product-grid,
  .intro-grid,
  .merch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 132px;
    height: 52px;
  }

  .header-cta {
    padding-inline: 13px;
  }

  .header-actions {
    gap: 7px;
  }

  .language-switcher {
    min-height: 36px;
  }

  .lang-button {
    min-width: 40px;
    font-size: 12px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 360px;
  }

  .penguin.blue {
    width: 104px;
  }

  .penguin.yellow {
    width: 98px;
  }

  .prop.seagull {
    width: 82px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 10px;
  }
}

/* Compact, expandable links and game notes; the original single page stays intact. */
main [id] { scroll-margin-top: 145px; }
.site-header nav { gap: clamp(10px, 1.5vw, 22px); }
.site-header nav a { flex: 0 0 auto; }
.inline-resource {
  color: var(--green-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.inline-resource:hover { color: var(--teal); }
.hero-actions { align-items: center; }
.shop-section .light-link { color: white; display: block; margin-top: 10px; }
.anniversary-badge {
  min-height: 175px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: linear-gradient(135deg, #fce0e7, #f8bacf);
  color: #692848;
  overflow: hidden;
}
.anniversary-badge span:first-child { font-size: clamp(3.4rem, 8vw, 5.6rem); line-height: 1; font-weight: 900; }
.anniversary-badge span:last-child { font-size: 0.9rem; letter-spacing: 0.16em; font-weight: 800; }
.resource-section { background: #eef7f6; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.info-fold { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.88); overflow: clip; }
.info-fold summary { position: relative; display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 14px 18px; font-size: 1rem; font-weight: 800; color: var(--green-dark); cursor: pointer; list-style: none; }
.info-fold summary::-webkit-details-marker { display: none; }
.info-fold summary::before { content: "+"; flex: 0 0 1.1em; text-align: center; font-weight: 800; }
.info-fold[open] summary::before { content: "−"; }
.info-fold[open] summary { border-bottom: 1px solid var(--line); }
.info-fold summary:hover { background: #f4faf6; }
.info-fold summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.resource-count { margin-left: auto; border-radius: 20px; padding: 4px 8px; color: var(--green-dark); background: #e7f1eb; font-size: .9rem; }
.source-list { padding: 0 18px; margin: 0; list-style: none; }
.source-list li { padding: 12px 0; overflow-wrap: anywhere; }
.source-list li + li { border-top: 1px solid var(--line); }
.source-list a { display: inline-block; padding: 4px 0; color: var(--green-dark); font-weight: 750; text-decoration: underline; text-underline-offset: .18em; }
.source-list a:hover { color: var(--teal); }
.source-list p, .guide-body p { line-height: 1.55; margin: 3px 0 0; color: var(--muted); }
.guide-fold { margin-top: 16px; }
.guide-body { padding: 18px 20px; display: grid; gap: 14px; }
.guide-body h3 { margin: 0 0 3px; font-size: 1.06rem; }
.guide-body .guide-credits { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 750px) { .resource-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
