@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --card: #fffdfa;
  --ink: #201f1c;
  --muted: #615c53;
  --line: #ded7cb;
  --brand: #ff7948;
  --brand-dark: #a03315;
  --coal: #1a1917;
  --radius: 22px;
  --shadow: 0 12px 30px #47270f0b;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
p, figcaption { margin: 0; text-align: justify; text-align-last: start; overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.68rem, 3.4vw, 2.55rem); font-weight: 850; }
h3 { font-size: 1.22rem; font-weight: 800; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--brand-dark); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #a13009; outline-offset: 4px; }
.shell { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.icon { display: inline-block; flex: 0 0 auto; width: 19px; height: 19px; vertical-align: middle; }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; padding: .7rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.topbar { position: relative; z-index: 2; background: #fbf9f4; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; white-space: nowrap; line-height: 1.12; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; background: #24211d; border: 1px solid #39312b; border-radius: 12px; }
.brand-mark img { width: 44px; height: 44px; object-fit: contain; }
.brand strong { display: block; font-size: 1.04rem; font-weight: 850; letter-spacing: -.035em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .008em; }
#main-nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 26px); }
#main-nav a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding-inline: 3px; color: #4c4841; text-decoration: none; font-size: .9rem; font-weight: 700; }
#main-nav a:hover { color: var(--brand-dark); }
#main-nav .icon { width: 16px; height: 16px; }
.menu-button { border: 1px solid var(--line); border-radius: 10px; background: var(--card); width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; min-width: 0; padding: 8px 14px; border: 1px solid transparent; border-radius: 10px; font-size: .89rem; font-weight: 800; line-height: 1.22; text-decoration: none; text-align: center; cursor: pointer; transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.button span { overflow-wrap: anywhere; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .54; cursor: default; }
.button-orange { background: var(--brand); color: #231812; border-color: #e96638; }
.button-orange:hover { background: #ff926b; color: #231812; }
.button-dark { background: var(--coal); color: #fff8ef; }
.button-dark:hover { background: #3c3027; color: #fff8ef; }
.button-outline { background: var(--card); color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: #f6eee0; color: var(--ink); border-color: #c19e85; }
.button-ghost { background: #25221f; color: #fff6e8; border-color: #655242; }
.button-ghost:hover { background: #3a3026; color: #fff6e8; }
.hero { display: grid; position: relative; overflow: hidden; isolation: isolate; align-items: center; min-height: 328px; margin-top: 26px; border-radius: 25px; background: #151311; color: #fff9ed; box-shadow: 0 12px 33px #170d0820; }
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 75%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#141310 19%,#141310fa 30%,#141310bd 43%,#14131027 70%); }
.hero-copy { padding: clamp(24px, 3.6vw, 48px) clamp(26px, 5vw, 62px); width: min(100%, 580px); }
.hero-context { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; color: #ffc3a1; font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero-context .icon { width: 17px; height: 17px; }
.hero h1 { font-size: clamp(2.25rem, 5.7vw, 4.85rem); font-weight: 950; letter-spacing: -.075em; line-height: .99; text-wrap: initial; }
.hero h1 em { display: block; font-style: normal; color: #ff824d; }
.hero-copy > p:not(.hero-context) { color: #e9ddd0; margin-top: 18px; font-size: clamp(.95rem, 1.5vw, 1.07rem); }
.hero-actions, .code-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; align-items: stretch; }
.hero-actions { width: min(100%, 330px); margin-top: 22px; }
.section { scroll-margin-top: 18px; margin-top: clamp(40px, 6vw, 76px); }
.codes-section { margin-top: 34px; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-heading p { margin-top: 7px; color: var(--muted); }
.section > .section-heading { margin-bottom: 18px; }
.section-title-row > a { flex: 0 0 auto; }
.review-date { display: inline-flex; gap: 6px; align-items: center; flex: 0 0 auto; color: var(--muted); font-size: .8rem; font-weight: 650; padding-bottom: 2px; }
.review-date .icon { width: 16px; height: 16px; color: var(--brand-dark); }
.code-grid, .video-grid, .topics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: stretch; }
.code-card { display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: 8px; padding: 18px 20px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.reward-icon, .topic-icon { display: grid; place-items: center; color: var(--brand-dark); background: #ffe9d9; border: 1px solid #f5d7c4; border-radius: 11px; width: 40px; height: 40px; flex: 0 0 40px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; min-width: 0; border-radius: 999px; font-size: .73rem; font-weight: 760; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.status-reported, .status-review { background: #fbead2; color: #67400e; }
.status-historical, .status-verified { background: #e6efe2; color: #2e582c; }
.status-expired { background: #f5e5e2; color: #78352d; }
.code-card h3 { margin-top: 2px; font-size: clamp(1.13rem, 2.5vw, 1.65rem); }
.code-card code { font: 800 1em/1.2 ui-monospace, Consolas,monospace; letter-spacing: -.06em; overflow-wrap: anywhere; user-select: all; }
.reward { font-size: .97rem; font-weight: 800; }
.code-note { color: var(--muted); font-size: .9rem; }
.code-actions { margin-top: 6px; }
.code-actions > :only-child { grid-column: 1/-1; }
.code-actions .is-copied { background: #d8eacf; border-color: #a2c498; }
.code-date { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .77rem; }
.code-date .icon { width: 15px; height: 15px; }
.code-explainer { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .88rem; margin-top: 13px; }
.code-explainer .icon { color: var(--brand-dark); }
.copy-feedback:not(:empty) { padding: 10px 14px; margin-top: 9px; background: #ffebd9; border-radius: 10px; color: #442818; }
.no-script, .empty { margin-top: 10px; color: var(--muted); }
.step-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; align-items: stretch; }
.step-card { display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.step-card figure { display: grid; grid-template-rows: auto 1fr; margin: 0; }
.step-card img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: var(--coal); }
.step-card figcaption { padding: 9px 13px 8px; color: var(--muted); font-size: .74rem; border-bottom: 1px solid #ede5d9; }
.step-body { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto 1fr; gap: 9px 7px; align-items: start; padding: 13px; }
.step-number { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #ffebe0; color: var(--brand-dark); font: 800 .76rem ui-monospace,monospace; }
.step-body h3 { align-self: center; }
.step-body p { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.checklist { display: grid; grid-template-columns: 1fr 1.75fr auto; gap: 16px; align-items: center; margin-top: 17px; padding: 16px; background: #efe9dc; border: 1px solid var(--line); border-radius: 16px; }
.checklist p { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.checklist progress { width: 100%; height: 9px; accent-color: var(--brand-dark); }
.check-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.check-options label { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 44px; border-radius: 8px; padding: 4px 7px; font-weight: 650; font-size: .82rem; cursor: pointer; }
.check-options label:hover { background: #f9f4e9; }
.check-options input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--brand-dark); }
.checklist [data-reset] { min-width: 85px; }
.video-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.video-image { display: grid; place-items: center; isolation: isolate; position: relative; aspect-ratio: 16/7; background: var(--coal); color: #fff8ed; }
.video-image img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.video-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #12090340; }
.play-disc { display: grid; place-items: center; width: 56px; height: 56px; padding-left: 2px; border: 1px solid #ff9c74; border-radius: 50%; background: var(--brand); color: #211613; transition: transform .16s ease; }
.video-image:hover .play-disc { transform: scale(1.07); }
.video-platform { display: flex; gap: 5px; align-items: center; position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; font-size: .73rem; color: #fff8ed; border-radius: 7px; background: #161412dd; }
.video-platform .icon { width: 15px; height: 15px; }
.video-body { display: grid; grid-template-rows: auto auto 1fr auto; gap: 7px; padding: 17px; }
.video-body .button { justify-self: start; margin-top: 4px; }
.video-body p { color: var(--muted); font-size: .92rem; }
.video-body .credit { color: var(--brand-dark); font-size: .75rem; font-weight: 800; }
.topics-grid { gap: 12px; }
.topic { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 9px 11px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 15px; }
.topic-icon { width: 33px; height: 33px; }
.topic h3 { align-self: center; }
.topic p { grid-column: 1/-1; color: var(--muted); font-size: .92rem; }
.history-panel { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.history-list { list-style: none; margin: 0; padding: 8px 17px; }
.history-list li { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history-list li:last-child { border: 0; }
.history-list li > span { color: var(--brand-dark); font-size: .82rem; font-weight: 800; }
.history-list strong { overflow-wrap: anywhere; }
.history-list p, .history-status p { color: var(--muted); margin-top: 4px; font-size: .9rem; }
.history-status { border-left: 1px solid var(--line); padding: 20px; }
.history-status a { font-weight: 660; color: #8d2d16; }
.history-status p + p { margin-top: 10px; }
.faq-list { display: grid; gap: 7px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.faq-list summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 50px; list-style: none; padding: 10px 15px; cursor: pointer; font-weight: 760; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { overflow-wrap: anywhere; }
.faq-list summary .icon { color: var(--brand-dark); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { padding: 2px 15px 16px; color: var(--muted); }
.info-page { padding-block: 40px; min-height: min(70vh,700px); }
.back-link { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; margin-bottom: 8px; font-weight: 720; }
.info-panel { padding: clamp(17px,5vw,48px); border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); }
.info-panel h1 { font-size: clamp(2rem,6vw,4rem); }
.info-panel h2 { font-size: 1.6rem; }
.info-panel p { color: var(--muted); margin-top: 8px; }
.info-panel section, .info-panel .button { margin-top: 21px; }
.site-footer { margin-top: 50px; padding: 35px 0 14px; background: #201d19; color: #f6eee1; border-top: 1px solid #40372e; }
.footer-main { display: grid; grid-template-columns: minmax(220px,1fr) minmax(0,2.2fr); gap: clamp(26px,5vw,66px); }
.footer-brand .brand small { color: #d2c3b1; }
.footer-brand p { margin-top: 11px; color: #d2c3b1; font-size: .87rem; }
.footer-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.footer-groups h2 { font-size: .86rem; min-height: 38px; color: #ffb08e; letter-spacing: .01em; }
.footer-groups ul { list-style: none; margin: 0; padding: 0; }
.footer-groups a { display: flex; align-items: center; min-height: 44px; color: #eee1d1; text-decoration: none; font-size: .88rem; overflow-wrap: anywhere; }
.site-footer a:hover { color: #ffb08e; }
.site-footer :focus-visible, .hero :focus-visible { outline-color: #ffb08e; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 9px; border-top: 1px solid #493e34; color: #d2c3b1; font-size: .81rem; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 44px); }
  .topbar-inner { gap: 10px; }
  #main-nav a .icon { display: none; }
  .step-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1fr; }
}
@media (min-width: 741px) { .menu-button { display: none; } }
@media (max-width: 740px) {
  .topbar-inner { flex-wrap: wrap; padding-block: 7px; min-height: 64px; }
  .topbar-inner .game-header { margin-left: auto; }
  .js-nav .menu-button { order: 2; }
  #main-nav { order: 3; width: 100%; flex-wrap: wrap; }
  .js-nav .menu-button[aria-expanded="false"] + #main-nav { display: none; }
  .hero { min-height: 325px; }
  .hero-art { width: 100%; opacity: .7; }
  .hero::after { background: linear-gradient(90deg,#141310f7 10%,#141310ca 47%,#14131045 100%); }
  .section-title-row { align-items: start; flex-direction: column; gap: 10px; }
  .history-panel { grid-template-columns: 1fr; }
  .history-status { border-left: 0; border-top: 1px solid var(--line); }
  .checklist { grid-template-columns: minmax(0,1fr) auto; }
  .check-options { grid-row: 2; grid-column: 1/-1; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { gap: 6px; }
  .brand { gap: 6px; }
  .brand strong { font-size: .91rem; }
  .brand small { font-size: .65rem; }
  .brand-mark { width: 39px; height: 39px; flex-basis: 39px; }
  .brand-mark img { width: 37px; height: 37px; }
  .game-header { padding-inline: 8px; }
  .topbar .game-header .icon { display: none; }
  .hero { margin-top: 15px; border-radius: 17px; min-height: 306px; }
  .hero-copy { padding: 24px 17px; }
  .hero-art { object-position: 64% center; }
  .hero-actions { margin-top: 17px; }
  .hero-context { margin-bottom: 10px; }
  .hero-copy > p:not(.hero-context) { margin-top: 11px; }
  .code-grid, .video-grid, .topics-grid, .step-grid { grid-template-columns: 1fr; }
  .step-card { grid-template-rows: auto auto; grid-row: auto; }
  .code-card { padding: 14px; }
  .history-list li { grid-template-columns: minmax(0,1fr); gap: 2px; }
  .footer-groups { grid-template-columns: 1fr; gap: 15px; }
  .footer-groups h2 { min-height: auto; }
}
@media (max-width: 365px) {
  .game-header span { max-width: 64px; }
  .button { padding-inline: 8px; }
  .review-date { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
