:root {
  --game-paper: #fff5d7;
  --game-gold: #ffd342;
  --game-deep: #091713;
  --game-soft: #c0d0c3;
  --game-line: #3f5748;
  --game-display: LilitaOne, 'Arial Rounded MT Bold', sans-serif;
}

body { background: var(--game-deep); color: var(--game-paper); }
.game-wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.game-header { border-bottom: 1px solid var(--game-line); background: var(--game-deep); }
.game-nav, .game-nav nav, .game-actions, .game-jump { display: flex; align-items: center; flex-wrap: wrap; }
.game-nav { min-height: 72px; justify-content: space-between; gap: 4px; }
.game-mark img { display: block; width: 76px; height: 58px; object-fit: contain; mix-blend-mode: screen; }
.game-nav nav { gap: clamp(7px, 2.2vw, 22px); font-size: clamp(.8rem, 2.3vw, 1rem); }
.game-nav nav a, .game-jump a, .game-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-underline-offset: .25em;
}
.game-nav nav a, .game-jump a { text-decoration: none; }
.game-nav nav a:hover, .game-jump a:hover, .game-link:hover { color: var(--game-gold); }
.game-nav .game-login { padding-inline: .65em; border: 1px solid #a3955d; border-radius: 8px; color: var(--game-gold); }
#landing a:focus-visible, #landing summary:focus-visible { outline: 2px solid var(--game-gold); outline-offset: 3px; }
#landing figure { margin: 0; }

.game-opening { border-bottom: 1px solid var(--game-line); background: #10241c; }
.game-hero {
  display: grid;
  gap: clamp(20px, 4.3vw, 62px);
  align-items: center;
  padding-block: clamp(24px, 4.5vw, 60px);
}
.game-hero-copy { min-width: 0; }
.game-hero h1 {
  margin: 0;
  font: clamp(2.48rem, 5vw, 4.9rem)/1.01 var(--game-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.game-hero h1 em { color: var(--game-gold); font-style: normal; }
.game-hero p {
  max-width: 46ch;
  margin: 16px 0 18px;
  color: var(--game-soft);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}
.game-hero strong { color: var(--game-paper); }
.game-actions { gap: 2px 18px; }
.game-actions .primary, .game-plan .primary { border-radius: 10px; }
.game-preview { min-width: 0; }
.game-preview-art {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  aspect-ratio: 11 / 8;
  background: #1c3026;
  border-radius: 14px;
}
.game-memory {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 44% center;
}
.game-device {
  width: min(81%, 188px);
  overflow: hidden;
  border: 4px solid #617667;
  border-radius: 17px;
  background: #102b1a;
  box-shadow: 0 12px 25px #0008;
}
.game-preview figcaption { margin-top: 7px; color: var(--game-soft); font-size: .8rem; text-align: center; }
.game-device img, .game-mode-screen { display: block; width: 100%; height: auto; }
.game-jump { gap: 0 clamp(12px, 4vw, 26px); padding-block: 7px; border-bottom: 1px solid var(--game-line); }
.game-jump a { font-size: .9rem; }
.game-section { padding-block: clamp(36px, 6vw, 70px); border-bottom: 1px solid var(--game-line); scroll-margin-top: 12px; }
.game-section h2 {
  margin: 0 0 clamp(14px, 3vw, 26px);
  font: clamp(2rem, 4vw, 3.15rem)/1.05 var(--game-display);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.game-section h3 { margin: 0; font: clamp(1.4rem, 2.5vw, 2.1rem)/1.1 var(--game-display); }
.game-section p { margin: 8px 0 0; max-width: 54ch; color: var(--game-soft); line-height: 1.55; }

.game-section .game-coach-intro { margin: -4px 0 22px; max-width: 66ch; }
.game-coach-grid { display: grid; gap: 21px; }
.game-coach-grid article { min-width: 0; border-bottom: 1px solid var(--game-line); padding-bottom: 16px; }
.game-coach-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 11px;
}
.game-coach-grid h3 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); }

.game-modes { display: grid; gap: 20px; }
.game-mode { min-width: 0; overflow: hidden; background: #163228; border-radius: 14px; }
.game-mode.player { background: #1c2e28; }
.game-mode-copy { padding: 16px 18px 21px; }
.game-mode .game-reference { margin-top: 4px; color: var(--game-gold); font-weight: 750; font-size: .9rem; }
.game-mode-art {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  justify-items: end;
  overflow: hidden;
  aspect-ratio: 10 / 7;
  background: #193d2b;
}
.player .game-mode-art { background: #313a27; }
.game-mode-character {
  position: absolute;
  inset: 0 auto 0 4%;
  width: 55%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  z-index: -1;
}
.game-mode-screen {
  width: 31%;
  margin-right: 9%;
  border: 3px solid #637460;
  border-radius: 12px;
  background: #10251a;
  box-shadow: 0 7px 16px #0009;
}
.game-guide-link { margin-top: 12px; color: var(--game-gold); }

.game-steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: game-step;
}
.game-steps li { min-width: 0; counter-increment: game-step; }
.game-steps img, .game-plan > img, .game-faq-layout > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}
.game-step-copy { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: start; gap: 4px 10px; margin-top: 12px; }
.game-step-copy::before {
  content: counter(game-step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #b89d46;
  border-radius: 50%;
  color: var(--game-gold);
  font-weight: 800;
}
.game-step-copy h3 { padding-top: 3px; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.game-step-copy p { grid-column: 2; margin: 0; }
.game-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 16px 18px;
  background: #132a20;
  border-radius: 12px;
}
.game-aside h3 { font-size: 1.35rem; }
.game-aside p { margin-top: 4px; }
.game-aside .game-link { color: var(--game-gold); }

.game-plan { display: grid; align-items: center; gap: 20px; background: #19372a; padding: clamp(16px, 3.5vw, 38px); border-radius: 14px; }
.game-plan h2 { margin: 0; }
.game-section .game-price {
  margin: 12px 0;
  color: var(--game-gold);
  font: clamp(2.7rem, 6vw, 4.4rem)/1 var(--game-display);
}
.game-price span { display: block; margin-top: 6px; color: var(--game-paper); font: 750 1rem/1.35 system-ui, sans-serif; }
.game-plan .primary { margin-top: 16px; }

.game-faq-layout { display: grid; align-items: start; gap: 12px 28px; }
.game-faq-layout > img { max-height: 235px; object-position: center 55%; }
.game-faq details { border-bottom: 1px solid var(--game-line); }
.game-faq summary { min-height: 48px; padding-block: 13px; cursor: pointer; font-weight: 730; }
.game-faq details[open] summary { color: var(--game-gold); }
.game-faq details p { margin: 0 0 14px; }
.game-faq details:last-child { border-bottom: 0; }

#sticky-buy.game-bottom { display: none; }
@media (max-width: 720px) {
  #sticky-buy.game-bottom { display: flex; }
}
@media (min-width: 580px) {
  .game-wrap { width: min(1160px, calc(100% - 48px)); }
  .game-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-mode-copy { padding: 19px 24px 24px; }
  .game-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.2vw, 28px); }
  .game-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 760px) {
  .game-nav { min-height: 84px; }
  .game-mark img { width: 104px; height: 76px; }
  .game-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
  .game-preview-art { aspect-ratio: 1.2; }
  .game-coach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); }
  .game-faq-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); }
  .game-plan { gap: clamp(24px, 5vw, 58px); }
}
