:root {
  color-scheme: light;
  --paper: #f4f0e9;
  --surface: #fffbf4;
  --ink: #242022;
  --subtle: #625858;
  --line: #dcd1c8;
  --dark: #22191c;
  --red: #a4263d;
  --red-deep: #812032;
  --pink: #f4e2e2;
  --gold: #ecc289;
  --wrap: 1160px;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { max-width: 100%; display: block; }
svg { width: 1.15rem; height: 1.15rem; flex: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
a { color: var(--red-deep); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #c1512d; outline-offset: 4px; }
button { font: inherit; }
[id] { scroll-margin-top: 24px; }
.wrap { width: min(var(--wrap), calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: absolute; left: .8rem; top: .8rem; transform: translateY(-180%); padding: .5rem 1rem; z-index: 9; background: var(--surface); }
.skip-link:focus { transform: none; }
.eyebrow { display: flex; align-items: center; gap: .62rem; font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: .42rem; height: .42rem; flex: none; background: var(--red); transform: rotate(45deg); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.52; max-width: 56ch; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: .52rem; padding: .56rem 1.05rem; border: 1px solid transparent; border-radius: 5px; font-weight: 750; font-size: .88rem; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; }
.button-primary { color: #fffaf5; background: var(--red); }
.button-primary:hover { background: var(--red-deep); }
.button-quiet { border-color: #907b7c; color: #fff7ec; background: #23191c80; }
.button-quiet:hover { background: #3a272b; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.masthead { background: var(--dark); color: #fff5eb; border-bottom: 1px solid #57373d; }
.masthead-inner { display: grid; min-height: 73px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.brand b, .brand small { display: block; line-height: 1.15; white-space: nowrap; }
.brand b { font-size: 1.03rem; font-weight: 900; letter-spacing: .1em; }
.brand small { color: #dfb9ae; margin-top: .27rem; font-size: .57rem; font-weight: 800; letter-spacing: .18em; }
.primary-nav { display: flex; align-self: stretch; align-items: stretch; gap: 1.55rem; }
.primary-nav a { display: inline-flex; align-items: center; color: #e4d6d2; font-weight: 650; font-size: .88rem; border-bottom: 2px solid transparent; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: #fff9f1; }
.primary-nav a[aria-current] { border-color: #e25b72; }
.header-play { justify-self: end; border-color: #725056; color: #fff5ed; }
.header-play:hover { background: #463137; }

.hero { overflow: hidden; position: relative; isolation: isolate; background: #26171d; color: #fff7ed; border-bottom: 3px solid var(--red); }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 69%; height: 100%; object-fit: cover; object-position: center 44%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #21181c 0%, #21181c 27%, #21181cf0 38%, #21181c28 65%, transparent 87%), linear-gradient(0deg, #21181cb5, transparent 38%); }
.hero-inner { position: relative; min-height: 496px; padding: 66px 0 65px; }
.hero .eyebrow { color: #f0c2b6; }
.hero .eyebrow > span { background: #e26876; }
.hero h1 { max-width: 7ch; margin: .72rem 0 .9rem; font-family: Impact, Haettenschweiler, "Arial Narrow", sans-serif; font-stretch: condensed; font-size: clamp(5.1rem, 9.1vw, 8.55rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.012em; line-height: .9; }
.hero h1 span { display: block; }
.hero .lede { max-width: 37ch; color: #f2e4dd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hero .button { min-height: 48px; padding-inline: 1.25rem; }
.hero-credit { position: absolute; right: 0; bottom: 1.1rem; color: #fff1e6; background: #26191bd9; padding: .28rem .55rem; font-size: .65rem; letter-spacing: .04em; }
.game-strip { background: #eae0d6; border-bottom: 1px solid #d7c9be; }
.game-strip-inner { min-height: 53px; display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; color: #4e4242; font-size: .78rem; }
.game-strip-inner strong { letter-spacing: .07em; color: var(--red-deep); }
.game-strip-inner span + span::before { content: "·"; margin-right: 1rem; font-weight: 900; }
.game-strip-inner a { margin-left: auto; }

.task-section { padding-block: 3rem 3.4rem; }
.section-heading { margin-bottom: 1.4rem; }
.section-heading .eyebrow { color: var(--red-deep); margin-bottom: .48rem; }
.section-heading h2, .event-detail h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); font-weight: 850; letter-spacing: -.048em; }
.section-heading p:last-child { color: var(--subtle); margin-top: .65rem; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.task-card { min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.task-card:hover { border-color: #ac6671; box-shadow: 0 4px 12px #32191c12; }
.task-image { aspect-ratio: 2.38; width: 100%; object-fit: cover; object-position: center 38%; border-bottom: 1px solid var(--line); }
.task-content { display: flex; flex: 1; flex-direction: column; padding: 1.05rem 1.2rem 1.15rem; }
.task-index { display: flex; align-items: center; justify-content: space-between; color: var(--red-deep); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.task-index svg { width: 1.45rem; height: 1.45rem; }
.task-content h3 { font-size: 1.4rem; letter-spacing: -.035em; margin: .4rem 0 .45rem; }
.task-content p { color: var(--subtle); font-size: .91rem; }
.task-content .text-link { color: var(--red-deep); padding-top: .85rem; margin-top: auto; font-size: .84rem; }
.home-brief { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem; padding: 1.5rem 1.7rem; margin-bottom: 3.5rem; border: 1px solid var(--line); border-left: 4px solid var(--red); background: #eaded6; border-radius: 5px; }
.home-brief h2 { font-size: 1.45rem; margin: .3rem 0; }
.home-brief p:last-child { max-width: 64ch; }
.home-brief .eyebrow { color: var(--red-deep); }

.guide-heading { background: #ebdfd7; border-bottom: 1px solid #d8c9bf; padding: 1.35rem 0 2rem; }
.crumbs { display: flex; align-items: center; gap: .5rem; color: var(--subtle); font-size: .78rem; margin-bottom: 1.5rem; }
.crumbs a { color: inherit; }
.guide-heading .eyebrow { color: var(--red-deep); }
.guide-heading h1 { margin: .38rem 0 .66rem; font-size: clamp(2.65rem, 6vw, 4.5rem); letter-spacing: -.049em; font-weight: 870; }
.guide-heading .lede { color: #504446; }
.jump-links { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1.05rem; }
.jump-links a { display: inline-flex; min-height: 40px; align-items: center; gap: .35rem; padding: .45rem .68rem; border: 1px solid #cdbab1; border-radius: 5px; background: #f4ece4; font-size: .8rem; font-weight: 700; text-decoration: none; }
.jump-links a:hover { background: var(--surface); }
.jump-links svg { width: .82rem; height: .82rem; }
.guide-body { padding-block: 2rem 3.5rem; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 2.2rem; align-items: start; }
.guide-section { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: .8rem; padding-block: 1.55rem; border-top: 1px solid var(--line); }
.section-label { align-self: start; display: flex; align-items: center; gap: .4rem; color: var(--red-deep); font-size: .77rem; font-weight: 850; letter-spacing: .05em; margin-top: .32rem; }
.section-label i { height: 1px; width: .7rem; background: #b77b81; }
.section-content { min-width: 0; }
.section-content h2 { font-size: clamp(1.55rem, 3.8vw, 2.35rem); font-weight: 850; letter-spacing: -.035em; margin-bottom: .72rem; }
.section-content h3 { font-size: 1.1rem; margin: 1rem 0 .5rem; }
.section-content p + p { margin-top: .65rem; }
.section-content > p, .steps, .section-content > ul { max-width: 72ch; }
.section-content ul, .steps { padding-inline-start: 1.4rem; margin: .7rem 0 0; }
.steps li, .section-content li { padding-inline-start: .2rem; margin-bottom: .55rem; }
.steps li::marker { font-weight: 800; color: var(--red-deep); }
.side-note { padding: 1.1rem 1.15rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 6px; }
.side-note .eyebrow { color: var(--red-deep); }
.side-note h2 { font-size: 1.4rem; margin: .4rem 0 .7rem; letter-spacing: -.04em; }
.side-note .button { width: 100%; margin-top: .75rem; }
.side-note p:not(.eyebrow) { color: var(--subtle); font-size: .91rem; }
.check-list { margin: .6rem 0 .8rem; list-style: none; padding: 0; font-size: .89rem; }
.check-list li { display: flex; align-items: baseline; gap: .55rem; margin: .35rem 0; }
.check-list li::before { content: "✓"; color: var(--red-deep); font-weight: 900; }

.code-list-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem .85rem; margin-bottom: .6rem; color: var(--red-deep); }
.code-list-label time { color: var(--subtle); font-size: .79rem; font-weight: 650; }
.code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.code-card { min-width: 0; padding: 1rem 1.02rem .8rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.code-card .eyebrow { color: var(--red-deep); font-size: .65rem; margin-bottom: .65rem; }
.code-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .6rem; }
.code-action h2 { font-size: clamp(1.03rem, 2.5vw, 1.4rem); }
.code-action code { user-select: text; }
.button-copy { color: var(--red-deep); border: 1px solid #dfbec1; background: var(--pink); padding: .45rem .65rem; min-height: 43px; }
.button-copy:hover { background: #ead0d3; }
.button-copy svg { width: .95rem; height: .95rem; }
.reward { margin: .45rem 0 .2rem; color: var(--subtle); font-size: .86rem; font-weight: 650; }
.copy-feedback { min-height: 1.15rem; color: #355a42; font-size: .75rem; font-weight: 650; }
.fineprint { margin: .65rem 0 1.3rem; color: var(--subtle); font-size: .84rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .55rem .25rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: .1rem 1.5rem .8rem .25rem; color: var(--subtle); }
.event-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: center; margin-top: 1.6rem; padding: 1.25rem; border: 1px solid #75525a; border-radius: 8px; background: var(--dark); color: #fbf0e8; }
.event-detail .eyebrow { color: var(--gold); margin-bottom: .5rem; }
.event-detail .eyebrow > span { background: var(--gold); }
.event-detail h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin-bottom: .65rem; }
.event-detail p:not(.eyebrow) { color: #ead9d4; font-size: .92rem; margin-bottom: .48rem; }
.event-detail a { color: #ffd7a6; }
.event-detail img { border: 1px solid #976b70; border-radius: 5px; height: auto; }

.key-table { border-collapse: collapse; width: 100%; background: var(--surface); margin: .8rem 0; font-size: .94rem; }
.key-table th, .key-table td { padding: .65rem .73rem; border-bottom: 1px solid var(--line); text-align: left; }
.key-table thead { background: #e8ddd3; }
.key-table tbody th { font-weight: 750; }
.key-table td:first-child { min-width: 110px; }
kbd { display: inline-block; min-width: 1.4rem; padding: .12rem .3rem; margin-right: .1rem; text-align: center; font: 750 .8rem/1.3 ui-monospace, monospace; background: #f0e5dd; border: 1px solid #c9b9ae; border-bottom: 2px solid #c9b9ae; border-radius: 4px; }
.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: .85rem 0; }
.decision-grid > div, .callout { padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.decision-grid h3 { margin-top: 0; }
.callout { margin-top: 1rem; border-left: 3px solid var(--red); }
.exam-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, .63fr); gap: 1.2rem; align-items: start; }
.exam-case figure { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.exam-case img { width: 100%; height: auto; }
.exam-case figcaption { padding: .5rem .65rem; color: var(--subtle); font-size: .73rem; }
.exam-case figcaption a { color: inherit; }
.page-missing { min-height: 100vh; display: flex; flex-direction: column; }
.page-missing main { flex: 1; }

.footer { background: var(--dark); color: #f4e5de; border-top: 2px solid #753541; }
.footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
.footer-wordmark { font-weight: 900; letter-spacing: .09em; }
.footer-wordmark span { color: #eab9a9; font-size: .68rem; font-weight: 750; }
.footer p { color: #d4bab6; font-size: .83rem; margin-top: .35rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; align-items: center; }
.footer nav a { color: #f4e5de; font-size: .82rem; font-weight: 650; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer-roblox { display: inline-flex; align-items: center; gap: .25rem; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .guide-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 1rem; }
  .hero-inner { min-height: 450px; }
  .hero::before { background: linear-gradient(90deg, #21181c 0%, #21181c 24%, #21181ce8 39%, #21181c24 77%), linear-gradient(0deg, #21181cb5, transparent 37%); }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { min-height: auto; grid-template-columns: minmax(0, 1fr) auto; gap: 0; padding-top: .62rem; }
  .brand img { width: 32px; height: 32px; }
  .brand { gap: .38rem; }
  .brand b { font-size: .85rem; }
  .brand small { font-size: .48rem; }
  .header-play { grid-column: 2; grid-row: 1; min-height: 40px; padding: .4rem .57rem; font-size: .74rem; }
  .header-play svg { width: .82rem; height: .82rem; }
  .primary-nav { grid-column: 1 / -1; justify-content: space-between; gap: .25rem; margin-top: .35rem; }
  .primary-nav a { justify-content: center; min-height: 44px; padding: 0 .38rem; font-size: .84rem; }
  .hero-inner { min-height: auto; padding-block: 155px 1.8rem; }
  .hero-art { width: 100%; height: 285px; object-position: center 38%; }
  .hero::before { background: linear-gradient(0deg, #21181c 0%, #21181c 30%, #21181cf0 49%, #21181c40 74%, #21181c0a); }
  .hero h1 { max-width: none; margin: .52rem 0 .65rem; font-size: clamp(2.85rem, 12.8vw, 5rem); }
  .hero h1 span { display: inline; }
  .hero .lede { font-size: 1rem; }
  .hero-credit { display: none; }
  .hero-actions { gap: .5rem; margin-top: 1.05rem; }
  .hero .button { min-height: 43px; padding-inline: .75rem; }
  .game-strip-inner { padding-block: .57rem; min-height: 44px; column-gap: .55rem; }
  .game-strip-inner span + span::before { margin-right: .55rem; }
  .game-strip-inner a { margin-left: 0; }
  .task-section { padding-block: 2rem 2.35rem; }
  .task-grid, .guide-grid, .event-detail, .exam-case { grid-template-columns: 1fr; }
  .task-card { display: grid; grid-template-columns: minmax(90px, 33%) minmax(0, 1fr); }
  .task-image { width: 100%; height: 100%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); object-position: 58% center; }
  .task-content { padding: .75rem .8rem; }
  .task-content h3 { font-size: 1.12rem; }
  .task-content p { font-size: .83rem; }
  .task-content .text-link { padding-top: .55rem; }
  .home-brief { grid-template-columns: 1fr; padding: .9rem 1rem; margin-bottom: 2rem; }
  .guide-heading { padding-block: .9rem 1.35rem; }
  .guide-heading .lede { font-size: 1rem; }
  .guide-heading h1 { font-size: clamp(2.25rem, 10.2vw, 3.6rem); }
  .crumbs { margin-bottom: 1rem; }
  .guide-body { padding-block: 1.2rem 2.15rem; }
  .guide-section { grid-template-columns: 27px minmax(0, 1fr); gap: .35rem; padding-block: 1.15rem; }
  .section-label { gap: .2rem; font-size: .68rem; }
  .section-label i { width: .38rem; }
  .side-note { display: none; }
  .code-list { grid-template-columns: 1fr; }
  .event-detail { padding: .95rem; }
  .exam-case figure { max-width: 400px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1.2rem; }
}

@media (max-width: 410px) {
  .decision-grid { grid-template-columns: 1fr; }
  .key-table th, .key-table td { padding-inline: .32rem; }
  .key-table td:first-child { min-width: 84px; }
  kbd { padding-inline: .15rem; margin-right: .04rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.exam-note { max-width: 72ch; color: var(--subtle); margin-bottom: 1rem; }
.next-brief { margin: .7rem 0 1rem; }
