:root {
  color-scheme: dark;
  --ink: #21043e;
  --violet: #7b1caf;
  --pink: #f20c91;
  --lavender: #e5c9ff;
  --cyan: #30d2ff;
  --blue: #0873df;
  --gold: #ffc41a;
  --cream: #fff9ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  color: white;
  background: var(--ink) url("/assets/menu-background.png") center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(25, 0, 55, .45), rgba(121, 15, 152, .28) 48%, rgba(20, 0, 54, .72));
}

button, a { font: inherit; }

.screen {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.eyebrow {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.page-title {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  font-weight: 900;
  line-height: .98;
  text-shadow: 0 4px 12px rgba(242, 12, 145, .5);
}

.ornate-panel {
  color: #53106f;
  background: linear-gradient(150deg, #fff, #fbf0ff);
  border: 7px solid var(--lavender);
  border-radius: 30px;
  box-shadow: inset 0 0 0 2px rgba(123,28,175,.58), inset 0 0 0 12px white, 0 15px 34px rgba(18,0,40,.52);
}

.glossy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 0 20px;
  border: 4px solid white;
  border-radius: 21px;
  color: white;
  background: linear-gradient(#32dbff, #0873df);
  box-shadow: inset 0 0 0 3px rgba(9,53,140,.35), 0 7px 0 rgba(31,4,67,.6);
  font-weight: 1000;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.glossy-button:active { transform: translateY(3px); box-shadow: inset 0 0 0 3px rgba(9,53,140,.35), 0 3px 0 rgba(31,4,67,.6); }

.ghost-button {
  min-height: 56px;
  padding: 0 18px;
  border: 3px solid white;
  border-radius: 19px;
  color: var(--violet);
  background: rgba(255,255,255,.94);
  font-weight: 950;
  white-space: nowrap;
}

.guide-screen { display: flex; flex-direction: column; gap: 14px; }

.guide-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }

.step-dots { display: flex; gap: 7px; padding-bottom: 5px; }
.step-dot { width: 9px; height: 9px; border-radius: 99px; background: rgba(255,255,255,.26); transition: .2s; }
.step-dot.active { width: 28px; background: var(--gold); }

.guide-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.guide-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(245px, 43svh, 390px);
  padding: 24px;
  overflow: hidden;
}

.guide-art::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(123,28,175,.35);
  border-radius: 19px;
  pointer-events: none;
}

.guide-copy { padding: 21px 18px 10px; text-align: center; }
.guide-icon { color: var(--gold); font-size: 2.4rem; line-height: 1; }
.guide-copy h2 { margin: 8px 0 4px; color: white; font: 900 clamp(1.6rem, 7vw, 2.15rem)/1 Georgia, serif; }
.guide-copy .subtitle { color: var(--lavender); font-size: .78rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.guide-copy p { margin: 13px auto 0; max-width: 390px; color: rgba(255,255,255,.9); font-size: clamp(1rem, 4vw, 1.13rem); font-weight: 760; line-height: 1.45; }

.guide-actions { display: flex; gap: 12px; }
.guide-actions > * { flex: 1; }
.guide-actions .primary { flex: 1.6; }

.playing-card {
  display: grid;
  place-items: center;
  width: 74px;
  height: 104px;
  border: 3px solid #7b0c45;
  border-radius: 10px;
  color: #7c159e;
  background: white;
  box-shadow: 0 7px 12px rgba(40,0,65,.32);
  font: 900 2.3rem/1 Georgia, serif;
}
.playing-card.red { color: #f01855; }
.playing-card.back { color: white; background: linear-gradient(145deg,#0d2c6f,#0b66d4); border-color: #54103d; }

.pyramid { display: grid; grid-template-columns: repeat(4, 54px); grid-template-rows: repeat(3, 74px); align-items: center; justify-items: center; }
.pyramid .playing-card { width: 58px; height: 81px; font-size: 1.55rem; }
.pyramid .c1 { grid-column: 2 / 4; grid-row: 1; }
.pyramid .c2 { grid-column: 2; grid-row: 2; }
.pyramid .c3 { grid-column: 3; grid-row: 2; }
.pyramid .c4 { grid-column: 1; grid-row: 3; }
.pyramid .c5 { grid-column: 2; grid-row: 3; }
.pyramid .c6 { grid-column: 3; grid-row: 3; }
.pyramid .c7 { grid-column: 4; grid-row: 3; }

.rank-chain { display: flex; align-items: center; gap: 12px; }
.rank-chain .playing-card:nth-child(2) { transform: translateY(-18px) scale(1.08); box-shadow: 0 0 0 5px var(--gold), 0 10px 20px rgba(40,0,65,.34); }
.rank-arrow { color: var(--gold); font-size: 1.7rem; font-weight: 1000; }

.tool-grid, .reward-grid { display: grid; grid-template-columns: repeat(2, minmax(112px, 1fr)); gap: 14px; width: min(100%, 330px); }
.tool, .reward {
  display: grid;
  place-items: center;
  min-height: 114px;
  padding: 12px;
  border-radius: 20px;
  color: var(--violet);
  background: rgba(229,201,255,.52);
  text-align: center;
  font-weight: 950;
}
.tool span:first-child, .reward span:first-child { font-size: 2rem; }
.reward strong { font-size: 1.65rem; }
.tool small, .reward small { font-size: .72rem; letter-spacing: .08em; }

.privacy-screen { padding-left: 14px; padding-right: 14px; }
.privacy-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.privacy-header .hand { font-size: 2rem; }
.privacy-title-wrap { min-width: 0; flex: 1; }
.privacy-title-wrap .page-title { font-size: clamp(1.65rem, 7vw, 2.3rem); white-space: nowrap; }
.close-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 4px solid white;
  border-radius: 50%;
  color: white;
  background: var(--violet);
  font-size: 1.55rem;
  font-weight: 1000;
  line-height: 1;
  text-decoration: none;
}

.privacy-panel { padding: 22px clamp(18px, 5vw, 30px) 28px; }
.privacy-intro { padding: 18px; border-radius: 20px; background: rgba(229,201,255,.38); }
.privacy-intro h2 { margin: 0 0 8px; color: #6c108c; font: 900 1.45rem/1.08 Georgia, serif; }
.privacy-intro p, .policy-section p { margin: 0; color: #4a2560; font-size: 1rem; font-weight: 650; line-height: 1.48; }
.policy-section { margin-top: 22px; }
.policy-section h3 { margin: 0 0 7px; color: var(--pink); font-size: 1rem; font-weight: 1000; letter-spacing: .02em; }
.privacy-ack { margin: 26px 0 0; color: #a44bc0; font-weight: 850; text-align: center; }

.landing { display: grid; place-items: center; text-align: center; }
.landing-card { width: min(100%, 450px); padding: 30px 24px; }
.landing-logo { width: min(100%, 360px); }
.landing-links { display: grid; gap: 14px; margin-top: 22px; }

@media (max-height: 720px) {
  .guide-art { min-height: 230px; }
  .guide-copy { padding-top: 10px; }
  .guide-copy p { margin-top: 8px; }
  .tool, .reward { min-height: 96px; }
}

