:root {
  --ink: #20221f;
  --muted: #6e716c;
  --paper: #f3f1ea;
  --line: rgba(32, 34, 31, 0.18);
  --white: #fffefa;
  --blue: #9fc3d5;
  --green: #9ebc9a;
  --coral: #e99373;
  --yellow: #e6c86b;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.5;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--max-width));
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.wordmark {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.wordmark-dot {
  width: 11px;
  height: 11px;
  background: var(--coral);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 17px;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.header-action svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  min-height: min(760px, 82vh);
  padding: 160px max(24px, calc((100% - var(--max-width)) / 2)) 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: center;
  gap: 64px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 86px;
  right: max(24px, calc((100% - var(--max-width)) / 2));
  bottom: 0;
  width: 38%;
  content: "";
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(32, 34, 31, 0.13) 50%, transparent 50.5%),
    linear-gradient(rgba(32, 34, 31, 0.13) 49.5%, transparent 50%, transparent 50.5%);
  background-size: 74px 74px;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to left, black, transparent 88%);
  mask-image: linear-gradient(to left, black, transparent 88%);
  pointer-events: none;
}

.hero-content,
.hero-side,
.scroll-cue {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(96px, 15vw, 230px);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 520px;
  margin: 48px 0 0;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.55;
}

.hero-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding-left: clamp(32px, 4vw, 72px);
}

.date-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.date-block span {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.date-block strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 400;
  line-height: 1;
}

.date-block small {
  font-size: 13px;
}

.hero-note {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 13px;
  margin-top: 28px;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.hero-note strong {
  color: var(--ink);
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  background: #5a985c;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(90, 152, 92, 0.13);
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: max(24px, calc((100% - var(--max-width)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.scroll-cue svg {
  width: 16px;
  height: 16px;
}

.family-sections,
.latest-daily,
.game-list {
  padding: 108px max(24px, calc((100% - var(--max-width)) / 2));
}

.family-sections {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 360px);
  align-items: end;
  gap: 48px;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-item {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  transition: background-color 180ms ease, color 180ms ease;
}

.section-item:last-child {
  border-right: 0;
}

.section-item > p {
  margin: auto 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.section-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.section-item > span:not(.coming) {
  color: var(--muted);
  font-size: 13px;
}

.section-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.section-icon svg {
  width: 22px;
  height: 22px;
}

.coming {
  position: absolute;
  top: 30px;
  right: 26px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 10px;
}

.section-games {
  background: var(--yellow);
}

.section-daily {
  background: rgba(233, 147, 115, 0.16);
}

.section-daily .coming {
  right: 66px;
}

.section-daily:hover,
.section-daily:focus-visible {
  color: white;
  background: var(--coral);
  outline: 0;
}

.section-daily:hover > span,
.section-daily:focus-visible > span {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.5);
}

.section-games:hover,
.section-games:focus-visible {
  color: white;
  background: var(--ink);
  outline: 0;
}

.section-games:hover > span,
.section-games:focus-visible > span {
  color: rgba(255, 255, 255, 0.68);
}

.latest-daily {
  background: var(--paper);
}

.latest-heading-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.latest-heading-side p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.latest-heading-side a {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
}

.latest-feed {
  border-top: 1px solid var(--line);
}

.latest-item {
  display: grid;
  grid-template-columns: 52px 160px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.latest-order {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.latest-visual {
  position: relative;
  aspect-ratio: 5 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.latest-visual::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(32, 34, 31, 0.3);
}

.latest-visual strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.latest-visual small {
  position: absolute;
  z-index: 1;
  right: 17px;
  bottom: 14px;
  font-size: 9px;
  font-weight: 800;
}

.tone-coral { background: var(--coral); }
.tone-green { background: var(--green); }
.tone-blue { background: var(--blue); }
.tone-yellow { background: var(--yellow); }

.latest-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.latest-copy time {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.latest-copy > strong {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.25;
}

.latest-copy > span {
  max-width: 660px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.latest-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  transition: color 180ms ease, background-color 180ms ease;
}

.latest-item:hover .latest-arrow,
.latest-item:focus-visible .latest-arrow {
  color: var(--white);
  background: var(--ink);
}

.latest-state {
  margin: 0;
  padding: 52px 0;
  color: var(--muted);
  text-align: center;
}

.latest-error {
  color: #9c3c2e;
}

.section-arrow {
  position: absolute;
  top: 30px;
  right: 26px;
  width: 27px;
  height: 27px;
}

.game-list {
  color: var(--white);
  background: var(--ink);
}

.section-heading-light > p {
  color: rgba(255, 254, 250, 0.6);
}

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

.game-card {
  min-width: 0;
  color: var(--white);
  border: 1px solid rgba(255, 254, 250, 0.28);
  border-radius: 6px;
  overflow: hidden;
}

.game-visual {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #171d23;
}

.game-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 0 solid var(--yellow);
  transition: border-width 180ms ease;
  pointer-events: none;
}

.game-card:hover .game-visual::after,
.game-card:focus-visible .game-visual::after {
  border-width: 8px;
}

.game-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
}

.mines-card .game-visual img {
  object-position: center 26%;
}

.game-card:hover .game-visual img,
.game-card:focus-visible .game-visual img {
  transform: scale(1.025);
}

.tent-visual {
  display: grid;
  place-items: center;
  background: #d7e4c8;
}

.tent-visual img {
  width: min(70%, 370px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(26, 54, 40, 0.16));
}

.game-index {
  position: absolute;
  top: 18px;
  left: 18px;
  min-width: 45px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--white);
  border-radius: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  text-align: center;
}

.game-copy {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
}

.game-copy span {
  color: rgba(255, 254, 250, 0.62);
  font-size: 11px;
}

.game-copy h3 {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
}

.open-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 254, 250, 0.38);
  border-radius: 50%;
  transition: color 180ms ease, background-color 180ms ease;
}

.open-icon svg {
  width: 21px;
  height: 21px;
}

.game-card:hover .open-icon,
.game-card:focus-visible .open-icon {
  color: var(--ink);
  background: var(--yellow);
}

.closing {
  min-height: 430px;
  padding: 90px max(24px, calc((100% - var(--max-width)) / 2));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  background: var(--blue);
}

.closing p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6.5vw, 86px);
  line-height: 1.2;
}

.closing span {
  padding-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  min-height: 110px;
  padding: 24px max(24px, calc((100% - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: rgba(255, 254, 250, 0.68);
  background: var(--ink);
  font-size: 12px;
}

.footer-brand {
  width: max-content;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.site-footer p {
  margin: 0;
}

.site-footer > a:last-child {
  justify-self: end;
}

.site-footer > a:last-child:hover,
.site-footer > a:last-child:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 4px;
}

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

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

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

  .section-item:nth-child(2) {
    border-right: 0;
  }

  .section-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .game-visual {
    height: 320px;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 32px);
    height: 72px;
  }

  .wordmark {
    font-size: 22px;
  }

  .header-action {
    min-width: 42px;
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .header-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero {
    min-height: 710px;
    padding-top: 136px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 50px;
  }

  .hero::before {
    top: 72px;
    right: 0;
    width: 78%;
  }

  .hero h1 {
    font-size: clamp(94px, 33vw, 150px);
  }

  .hero-copy {
    margin-top: 34px;
    font-size: 20px;
  }

  .hero-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 22px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 26px 0 0;
  }

  .date-block {
    padding: 0;
    border-bottom: 0;
  }

  .date-block strong {
    font-size: 52px;
  }

  .hero-note {
    margin: 0;
  }

  .family-sections,
  .latest-daily,
  .game-list {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 38px;
  }

  .latest-item {
    grid-template-columns: 38px 108px minmax(0, 1fr) 40px;
    gap: 14px;
  }

  .latest-visual strong {
    font-size: 36px;
  }

  .latest-copy > span {
    display: none;
  }

  .latest-arrow {
    width: 38px;
    height: 38px;
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-item {
    min-height: 245px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-item:nth-child(3) {
    order: -1;
  }

  .section-item:last-child {
    border-bottom: 0;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game-visual {
    height: min(86vw, 370px);
  }

  .game-copy {
    min-height: 108px;
    padding: 20px;
  }

  .closing {
    min-height: 390px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .closing p {
    font-size: 44px;
  }

  .site-footer {
    padding-top: 32px;
    padding-bottom: 32px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .site-footer > a:last-child {
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .latest-item {
    grid-template-columns: 32px 86px minmax(0, 1fr);
    gap: 12px;
  }

  .latest-arrow {
    display: none;
  }

  .latest-copy > strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
