:root {
  color-scheme: dark;
  --ink: #14251f;
  --cream: #f5ebd7;
  --quiet: #c1c8b4;
  --gold: #e8bc79;
  --rule: #4b5d50;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 0;
  color: var(--cream);
  background: radial-gradient(ellipse at 58% 0%, #263e2d, transparent 67%), var(--ink);
  font: 16px/1.55 system-ui, sans-serif;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(1096px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.site-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
  font: 700 clamp(20px, 4.3vw, 25px)/1 var(--serif);
}
.brand span span { color: #efcca0; font-weight: 400; }
.language {
  min-width: 52px;
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid #8d7958;
  border-radius: 7px;
  color: var(--cream);
  background: #263b2d;
  font-size: 13px;
  font-weight: 650;
}
.showcase {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding-block: clamp(36px, 6vw, 76px) clamp(29px, 4.8vw, 57px);
}
.game-count {
  color: var(--gold);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 {
  max-width: 12ch;
  margin-top: 9px;
  font: 400 clamp(48px, 7.1vw, 92px)/.98 var(--serif);
  letter-spacing: -.054em;
  text-wrap: balance;
}
:lang(zh-CN) h1 { letter-spacing: -.025em; line-height: 1.04; }
.lede { max-width: 35ch; margin-top: 17px; color: var(--quiet); }
.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 47px;
  padding: 9px 17px;
  border-radius: 7px;
  background: var(--gold);
  color: #24261c;
  text-decoration: none;
  font-weight: 750;
}
.game-intro .play { margin-top: 22px; }
.play span[aria-hidden] { font-size: 20px; line-height: 1; }
@media (hover: hover) {
  .play:hover { background: #f4d195; }
  .language:hover { border-color: #e0bb78; }
}
.game-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  aspect-ratio: 1.48;
  min-height: 180px;
  border: 1px solid #70846c;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #24392d08 16%, #12291c38 72%),
    url("/tripeaks/assets/valley.svg") center 53% / cover,
    #52674b;
  box-shadow: 0 17px 35px #0c1d164d;
}
.game-art::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #e6d9a747;
  border-radius: 6px;
  pointer-events: none;
}
.specimen {
  position: absolute;
  left: 50%;
  top: 65%;
  width: clamp(59px, 20cqw, 116px);
  aspect-ratio: 7 / 10;
  border: 1px solid #d6c3a0;
  border-radius: clamp(6px, 1.55cqw, 11px);
  color: #183328;
  background: linear-gradient(145deg, #f9f0dd, #e8ddc1);
  box-shadow: 0 5px 12px #11231989;
  font-family: var(--serif);
}
.specimen::before {
  content: "";
  position: absolute;
  inset: 4%;
  border: 1px solid #ad936d54;
  border-radius: 4px;
}
.specimen.red { color: #9a3833; }
.specimen.king { transform: translate(-138%, -52%) rotate(-13deg); }
.specimen.two { transform: translate(37%, -51%) rotate(14deg); }
.specimen.ace { transform: translate(-50%, -55%) rotate(-3deg); }
.specimen-rank, .specimen-suit, .emblem-suit { position: absolute; line-height: 1; }
.specimen-rank { top: 8%; left: 11%; font-size: clamp(20px, 5.5cqw, 31px); font-weight: 800; }
.specimen-suit { top: 29%; left: 12%; font-size: clamp(12px, 3.4cqw, 18px); }
.specimen-emblem { position: absolute; right: 7%; bottom: 7%; width: 64%; height: 71%; }
.emblem-suit {
  top: 57.5%;
  left: 61%;
  transform: translate(-50%, -50%);
  font-size: clamp(14px, 3.9cqw, 23px);
}
.specimen-pips {
  position: absolute;
  inset: 36% 14% 14% 34%;
  display: grid;
  justify-items: center;
  align-content: space-between;
  font-size: clamp(13px, 4cqw, 23px);
  line-height: 1;
}
.specimen-pips span + span { transform: rotate(180deg); }
.details {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(18px, 4vw, 56px);
  padding-block: 23px 25px;
  border-top: 1px solid var(--rule);
}
h2 { font: 600 clamp(26px, 4vw, 34px)/1.13 var(--serif); }
h3 { color: #f0ca96; font: 600 20px/1.18 var(--serif); }
.details p { margin-top: 7px; color: var(--quiet); font-size: 14px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.site-footer { border-top: 1px solid var(--rule); padding: 16px 0 26px; color: var(--quiet); font-size: 13px; }
.missing { padding-block: clamp(48px, 13vh, 130px); }
.missing h1 { max-width: none; }
.missing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 21px; }
.text-link { font-weight: 650; color: var(--cream); text-underline-offset: 4px; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 30px); }
  .site-header-inner { min-height: 60px; }
  .brand img { width: 33px; height: 33px; }
  .showcase { grid-template-columns: 1fr; gap: 20px; padding-block: 27px 23px; }
  h1 { max-width: 16ch; font-size: clamp(46px, 9.8vw, 66px); }
  .lede { margin-top: 12px; }
  .game-intro .play { margin-top: 15px; }
  .game-art { max-height: 340px; }
  .details { grid-template-columns: 1fr; gap: 16px; padding-block: 18px; }
}
@media (max-width: 390px) {
  .rules { gap: 13px; }
}
