/* how-to-play.css — Keno Quest guide. Scoped to body.guide-page.
   Mirrors the adventure masthead (plum enamel sign, brass bezel, gold/teal wordmark)
   and treasure-paper surfaces from adventure-equipment.css. */
@font-face {
  font-family: "Fredoka FX"; src: url("./fonts/fredoka-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fredoka FX"; src: url("./fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fredoka FX"; src: url("./fonts/fredoka-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
.guide-page {
  --g-plum-hi: #ff7fc8; --g-plum: #d6338f; --g-plum-deep: #8a1667; --g-ink: #3a0631;
  --g-teal-hi: #7ff3e4; --g-teal: #19b9b0; --g-teal-deep: #0a6f78; --g-teal-ink: #053a42;
  --g-brass-hi: #fff2b0; --g-brass: #f7c23c; --g-brass-deep: #b97a10; --g-brass-ink: #5a3300;
  --g-paper: #fff4e6; --g-paper-deep: #f6d49c; --g-text: #3a1a06;
  --g-font: "Fredoka FX", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --g-press: cubic-bezier(.3,1.6,.5,1);
  user-select: text;
}
.guide-page .app-container { max-width: 760px; gap: 20px; padding-bottom: 40px; }
.guide-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.guide-header .brand { text-align: center; padding: 12px 22px 14px 82px; flex: 1 1 260px; }
.guide-header .brand h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.05; margin: 2px 0; }
.guide-header .brand :is(.brand-kicker, .brand-subtitle) { display: block; font-weight: 700; letter-spacing: .12em; font-size: .78rem; }
.guide-content { display: grid; gap: 22px; }
.guide-content section { margin: 0; position: relative; }
.guide-intro h2 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; margin: 10px 0 12px; }
.guide-card h3 { font-size: 1.45rem; line-height: 1.2; margin: 10px 0 10px; }
.guide-content p { line-height: 1.6; font-size: 1rem; max-width: 64ch; }
.guide-content p + p { margin-top: 12px; }
.guide-eyebrow, .guide-step { font-weight: 800; letter-spacing: .1em; font-size: .75rem; }
.guide-note { border-radius: 14px; padding: 10px 14px; border: 2px solid; }
.guide-intro-art { float: right; width: clamp(84px, 22vw, 140px); height: auto; margin: -6px -4px 4px 12px; shape-outside: circle(50%); }
.guide-back, .guide-start, .guide-table-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 18px; border: 3px solid;
  font-weight: 800; text-decoration: none; line-height: 1.3;
}
.guide-start { margin-top: 18px; }
.guide-table-link { margin-top: 14px; }
.guide-footer { text-align: center; }
.guide-page a:focus-visible { outline: 4px solid #10305a; outline-offset: 4px; box-shadow: 0 0 0 8px #fff4e6; }

@media (forced-colors: none) {
  body.guide-page {
    color: var(--g-text); font-family: var(--g-font);
    background-color: #5b1a74;
    background-image:
      linear-gradient(180deg, #5b1a74cc 0, #8a2e9a88 220px, #fff4e6f2 560px, #fff4e6 100%),
      url("./adventure-assets/scenery-landscape.webp");
    background-repeat: no-repeat; background-size: 100% auto, 100% auto; background-position: top, top;
  }
  .guide-page .brand {
    background: url("./adventure-assets/emblem.webp") 12px center / 58px 58px no-repeat,
      radial-gradient(110% 55% at 50% 0%, #ffffff60 0 40%, transparent 42%), linear-gradient(180deg, #e35bb0, var(--g-plum) 50%, var(--g-plum-deep));
    border: 4px solid var(--g-brass); border-radius: 26px 26px 18px 18px;
    box-shadow: 0 0 0 3px var(--g-ink), inset 0 -6px 0 #3a063155, 0 7px 0 var(--g-ink), 0 16px 22px #2a083866;
  }
  .guide-page .brand h1 { color: var(--g-brass-hi); -webkit-text-stroke: 1.5px var(--g-ink); paint-order: stroke fill; text-shadow: 0 3px 0 #4e2108, 0 6px 0 #3a1a0655; background: none; font-family: var(--g-font); font-weight: 700; }
  .guide-page .brand h1 > span { color: inherit; }
  .guide-page .brand h1 span span { color: var(--g-teal-hi); }
  .guide-page .brand :is(.brand-kicker, .brand-subtitle) { color: #fff6e0; text-shadow: 0 1px 0 var(--g-ink); }

  .guide-intro, .guide-card {
    background: radial-gradient(120% 14% at 50% 0%, #fff 0 40%, transparent 42%), linear-gradient(180deg, var(--g-paper), #fbe0c0);
    border: 4px solid var(--g-brass); border-radius: 26px; color: var(--g-text);
    box-shadow: 0 0 0 3px #2a0838, inset 0 -5px 0 #f0b45a55, 0 8px 0 #2a0838, 0 18px 24px #2a083840;
  }
  .guide-intro { background: radial-gradient(120% 30% at 50% 0%, #fffbe0 0 40%, transparent 42%), linear-gradient(180deg, var(--g-brass-hi), #fbe0c0 70%); }
  .guide-intro h2, .guide-card h3 { color: var(--g-plum-deep); }
  .guide-step, .guide-eyebrow {
    display: inline-block; padding: 4px 14px; border-radius: 99px; color: #fff;
    background: linear-gradient(180deg, #ffffff55 0 2px, transparent 2px), linear-gradient(180deg, var(--g-teal), var(--g-teal-deep));
    box-shadow: 0 0 0 2px var(--g-teal-ink), 0 3px 0 var(--g-teal-ink); text-shadow: 0 1px 0 var(--g-teal-ink);
  }
  .guide-results .guide-step, .guide-coins .guide-step { background: linear-gradient(180deg, #ffffff88 0 2px, transparent 2px), linear-gradient(180deg, var(--g-brass-hi), var(--g-brass)); color: var(--g-brass-ink); text-shadow: none; box-shadow: 0 0 0 2px var(--g-brass-deep), 0 3px 0 var(--g-brass-ink); }
  .guide-bricks .guide-step { background: linear-gradient(180deg, #ffffff55 0 2px, transparent 2px), linear-gradient(180deg, #e35bb0, var(--g-plum-deep)); box-shadow: 0 0 0 2px var(--g-ink), 0 3px 0 var(--g-ink); text-shadow: 0 1px 0 var(--g-ink); }
  .guide-content strong { color: #5a0f4a; }
  .guide-results::after, .guide-bricks::after, .guide-coins::after {
    content: ""; position: absolute; top: 14px; right: 16px; width: 52px; height: 52px; pointer-events: none;
    background: center / contain no-repeat; filter: drop-shadow(0 3px 0 #2a083855);
  }
  .guide-results::after { background-image: url("./adventure-assets/coins.webp"); }
  .guide-bricks::after { background-image: url("./adventure-assets/bricks.webp"); }
  .guide-coins::after { background-image: url("./adventure-assets/daily-chest.webp"); }
  .guide-note { background: #e3fbf6; border-color: var(--g-teal); color: var(--g-teal-ink); }

  .guide-start, .guide-back, .guide-table-link {
    font-family: var(--g-font); color: #fff8ef;
    transition: transform .14s var(--g-press), box-shadow .14s ease;
  }
  .guide-start {
    font-size: 1.1rem; padding: 12px 24px; border-color: #eaffcf; letter-spacing: .03em;
    background: radial-gradient(90% 40% at 50% 6%, #ffffffb0 0 40%, transparent 42%), linear-gradient(180deg, #99ed6a, #398c30 30%, #237b28 55%, #155d22);
    text-shadow: 0 2px 0 #145c12; box-shadow: 0 0 0 3px #145c12, 0 0 0 6px var(--g-brass), 0 0 0 8px #4e2108, 0 6px 0 8px #4e2108;
    margin-inline: 8px;
  }
  .guide-back {
    border-color: #ffe0f1; text-shadow: 0 1px 0 var(--g-ink);
    background: linear-gradient(180deg, #ffffff55 0 3px, transparent 3px), linear-gradient(180deg, var(--g-plum-hi), var(--g-plum) 45%, var(--g-plum-deep));
    box-shadow: 0 0 0 2px var(--g-ink), 0 4px 0 var(--g-ink), 0 7px 8px #3a063140;
  }
  .guide-table-link {
    border-color: #e0fffb; color: #073b46; text-shadow: 0 1px 0 #ffffff88;
    background: radial-gradient(90% 44% at 50% 8%, #ffffff80 0 40%, transparent 42%), linear-gradient(180deg, var(--g-teal-hi), var(--g-teal) 55%, var(--g-teal-deep));
    box-shadow: 0 0 0 2px #023339, 0 5px 0 #023339;
  }
  .guide-page :is(.guide-start, .guide-back, .guide-table-link):hover { transform: translateY(-2px); }
  .guide-page :is(.guide-start, .guide-back, .guide-table-link):active { transform: translateY(3px); }
}

@media (forced-colors: active) {
  .guide-header .brand { padding-inline: 12px; }
  .guide-intro-art, .guide-page :is(.guide-results, .guide-bricks, .guide-coins)::after { display: none; }
  .guide-back, .guide-start, .guide-table-link { border-color: LinkText; }
  .guide-page a:focus-visible { outline-color: Highlight; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-page :is(.guide-start, .guide-back, .guide-table-link) { transition: none; }
  .guide-page :is(.guide-start, .guide-back, .guide-table-link):is(:hover, :active) { transform: none; }
}
@media (max-width: 480px) {
  .guide-header { justify-content: center; }
  .guide-header .brand { width: 100%; padding-inline: 68px 12px; }
  .guide-header .guide-back { width: 100%; }
  .guide-content section { padding: 16px; }
  .guide-start, .guide-table-link { width: calc(100% - 16px); text-align: center; }
  .guide-table-link { width: 100%; }
  .guide-page :is(.guide-results, .guide-bricks, .guide-coins)::after { width: 38px; height: 38px; top: 10px; right: 10px; }
  .guide-intro-art { width: 76px; }
}
@media (max-width: 340px) {
  .guide-header .brand h1 { font-size: 2rem; }
  .guide-intro-art { display: none; }
}
@media (max-width: 480px) and (forced-colors: active) {
  .guide-header .brand { padding-inline: 12px; }
}

/* Versioned prize + odds tables rendered from round-policy.js */
.guide-odds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 12px; }
.guide-odds-block { min-width: 0; overflow-x: auto; }
.guide-odds-table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; background: #fff8ec; border: 2px solid #c99b17; border-radius: 10px; }
.guide-odds-table caption { text-align: left; font-weight: 900; padding: 4px 2px; color: #5b2a12; }
.guide-odds-table th, .guide-odds-table td { padding: 4px 6px; text-align: right; border-bottom: 1px solid #ead7a6; color: #3b1f12; }
.guide-odds-table th[scope="row"], .guide-odds-table thead th:first-child { text-align: center; }
.guide-odds-table tr.is-paying td:nth-child(2) { font-weight: 800; color: #6b2c0c; }
.guide-odds-table tfoot td { text-align: left; font-weight: 700; background: #f6e1a8; }
.guide-facts { margin: 8px 0; padding-left: 1.2em; }
.guide-facts li { margin: 4px 0; }
@media (forced-colors: active) { .guide-odds-table, .guide-odds-table tfoot td { background: Canvas; color: CanvasText; border-color: CanvasText; } }
