:root {
  color-scheme: light;
  --paper: #faf8f1;
  --surface: #fffdf8;
  --ink: #192d26;
  --body: #34453e;
  --muted: #526158;
  --line: #dedfd3;
  --pine: #123b31;
  --hero: #112923;
  --hero-ink: #fcf7e9;
  --hero-muted: #c4d3c9;
  --orange: #ffb16a;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; font: 1.0625rem/1.66 var(--sans); color: var(--ink); }
a { color: #075643; text-decoration-thickness: .075em; text-underline-offset: .2em; }
a:hover { color: #71350f; }
:focus-visible { outline: .18rem solid #9a4508; outline-offset: .2rem; }
:is(.hero, .topbar) :focus-visible { outline-color: var(--orange); }
:target { scroll-margin-top: 1.4rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.14; text-wrap: balance; }
h1, h2 { letter-spacing: -.042em; }
h3 { font-size: 1.16rem; margin: 1.55em 0 .55em; }
code { font: .88em/1.5 var(--mono); overflow-wrap: anywhere; }
.shell { width: min(71rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset: .45rem auto auto .65rem; padding: .6rem 1rem; background: var(--surface); transform: translateY(-180%); }
.skip:focus { transform: none; }

.topbar { background: #0e211c; color: var(--hero-ink); border-bottom: 1px solid #355047; }
.topbar-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1.1rem; }
.topbar-inner { min-height: 4.4rem; padding-block: .45rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-size: 1.27rem; font-weight: 780; letter-spacing: -.045em; text-decoration: none; color: inherit; white-space: nowrap; }
.brand img { display: block; flex: none; }
.topnav { display: flex; flex-wrap: wrap; gap: .25rem .55rem; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .89rem; font-weight: 690; color: #e1eade; padding: .3rem .7rem; border: 1px solid transparent; border-radius: .35rem; text-decoration: none; }
.topnav a[aria-current="page"] { background: #234237; border-color: #416255; color: #fff6de; }
.topnav a:hover, .topbar .brand:hover { color: var(--orange); }

.hero { overflow: clip; background: var(--hero); color: var(--hero-ink); border-bottom: 4px solid #f8a258; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .78fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3.4rem, 7.4vw, 6.75rem); }
.kicker, .chapter-no, .score-top, .rail-heading { font: 680 .77rem/1.4 var(--mono); letter-spacing: .075em; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; margin-bottom: 1.1rem; color: var(--orange); }
.kicker span + span { color: var(--hero-muted); padding-inline-start: .85rem; border-inline-start: 1px solid #527064; }
.hero h1 { max-width: 15ch; font-size: clamp(3.1rem, 6.6vw, 5.75rem); font-weight: 780; line-height: .99; margin: 0 0 .34em; }
.dream-guide h1 { font-size: clamp(2.85rem, 5.6vw, 5rem); max-width: 17ch; }
.lede { max-width: 48ch; font-size: clamp(1.0625rem, 1.85vw, 1.23rem); line-height: 1.58; color: #edf0e5; margin-bottom: 1.25rem; }
.lede strong { color: #fff9e9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .45rem .7rem; }
.hero-actions a { display: inline-flex; align-items: center; gap: .6rem; justify-content: center; min-height: 46px; border-radius: .32rem; padding: .59rem .82rem; font-size: .93rem; line-height: 1.2; font-weight: 710; text-decoration: none; }
.jump-primary { background: var(--orange); color: #232918; border: 1px solid var(--orange); }
.jump-primary:hover { background: #ffd09d; color: #232918; }
.jump-secondary { color: #eff3e8; border: 1px solid #547164; }
.jump-secondary:hover { color: #ffca94; border-color: #ffca94; }
.byline { margin: 1.15rem 0 0; color: var(--hero-muted); font-size: .825rem; }
.byline span { margin-inline: .35rem; }

.scorecard { isolation: isolate; position: relative; min-width: 0; background: #17362c; border: 1px solid #547568; border-radius: .7rem; padding: clamp(1rem, 3.4vw, 2rem); box-shadow: .5rem .5rem 0 #0c211a; }
.scorecard::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 0 0 auto 48%; height: 61%; border-radius: inherit; background: repeating-linear-gradient(90deg, transparent 0 19px, #53726544 19px 20px), repeating-linear-gradient(0deg, transparent 0 19px, #5372653a 19px 20px); mask-image: linear-gradient(143deg, transparent 20%, #000 100%); }
.score-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .8rem; color: #e3ebdd; }
.board-label { color: #e0ecdf; border: 1px solid #668578; background: #234236; padding: .24rem .44rem; border-radius: .19rem; font-size: .67rem; }
.score-main { display: grid; justify-items: start; line-height: 1.24; padding: 1rem 0 1.03rem; font-size: .91rem; font-weight: 720; }
.score-value { color: var(--orange); font: 730 clamp(3.7rem, 7.1vw, 6.15rem)/1.03 var(--mono); letter-spacing: -.11em; margin-left: -.07em; margin-bottom: .18em; }
.score-stats { display: grid; grid-template-columns: 1.15fr .92fr 1fr; gap: .55rem; border-top: 1px solid #537265; padding-top: .9rem; margin: 0; }
.score-pair { grid-template-columns: 1fr 1fr; }
.score-stats div { min-width: 0; }
.score-stats dt { font: 630 .64rem/1.3 var(--mono); color: var(--hero-muted); }
.score-stats dd { margin: .33rem 0 0; font-size: clamp(.88rem, 1.45vw, 1rem); line-height: 1.25; font-weight: 730; }
.score-note { color: #d0ded4; font-size: .77rem; line-height: 1.46; margin: .95rem 0 0; }

.reading-grid { display: grid; grid-template-columns: 13rem minmax(0, 48rem); gap: clamp(2rem, 5vw, 4.85rem); justify-content: center; align-items: start; padding-block: 3rem 4rem; }
.rail { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; border: 1px solid var(--line); border-radius: .57rem; background: #f1f0e6; padding: .85rem .6rem .57rem; }
.rail-heading { text-transform: uppercase; color: var(--pine); margin: .1rem .58rem .45rem; }
.rail ul { margin: 0; padding: 0; list-style: none; }
.rail a { display: flex; align-items: center; min-height: 44px; padding: .27rem .57rem; border-radius: .27rem; font-size: .86rem; line-height: 1.3; text-decoration: none; font-weight: 660; }
.rail a:hover { background: #e1e9df; text-decoration: underline; }
.rail a:focus-visible { outline-offset: -.1rem; }
.editorial { min-width: 0; }
.chapter { background: var(--surface); border: 1px solid var(--line); border-radius: .61rem; padding: clamp(1rem, 3.7vw, 2.45rem); color: var(--body); }
.chapter + .chapter { margin-top: 1.4rem; }
.chapter:target { border-color: #729183; box-shadow: inset .2rem 0 #2d6e57; }
.chapter .chapter-no { color: #235b48; margin: 0 0 .55rem; }
.chapter h2 { font-size: clamp(1.78rem, 3.9vw, 2.7rem); color: var(--ink); margin: 0 0 .54em; }
.chapter h3 { color: var(--ink); }
.answer { font-size: clamp(1.075rem, 2vw, 1.2rem); line-height: 1.58; color: #19372d; }
.chapter > :last-child, .platform > :last-child, .note > :last-child { margin-bottom: 0; }
.account-jumps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  margin-block: 1.1rem;
}
.account-jumps a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .6rem;
  border: 1px solid #d4dfd4;
  border-radius: .32rem;
  background: #eff4ec;
  font-size: .9rem;
  line-height: 1.3;
}
.account-jumps a:hover { background: #e1eee5; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 0; border: 1px solid #d4dfd4; background: #d4dfd4; border-radius: .4rem; overflow: hidden; }
.spec-wide { grid-column: 1 / -1; }
.specs div, .platform { background: #eff4ec; padding: .7rem .85rem; }
.specs dt, .platform dt { color: #405c4c; font-size: .79rem; font-weight: 690; line-height: 1.35; }
.specs dd, .platform dd { color: #18392e; margin: .17rem 0 0; font-weight: 650; }
.steps { list-style: none; counter-reset: steps; padding: 0; margin: 1.25rem 0; }
.steps li { position: relative; min-height: 2rem; padding-left: 2.7rem; counter-increment: steps; }
.steps li + li { margin-top: 1rem; }
.steps li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: .03rem; display: grid; place-items: center; width: 1.95rem; height: 1.95rem; border-radius: .33rem; background: #e1eee5; color: #1f5c48; font: 720 .79rem/1 var(--mono); }
.steps h3, .platform h3 { margin-top: 0; }
.steps p { margin: 0; }
.steps #check-apk ~ p + p { margin-top: .55em; }
.apk-checker { margin-block: .7rem; padding: .7rem; border: 1px solid #d4dfd4; border-radius: .4rem; background: #eff4ec; }
.apk-checker label { display: block; font-weight: 700; }
.apk-checker input { display: block; width: 100%; min-height: 44px; margin-block: .2rem .35rem; font: inherit; }
.apk-checker input::file-selector-button { min-height: 44px; max-width: 100%; font: inherit; }
.apk-checker code:not([hidden]) { display: block; margin-top: .25em; }
.decisions { margin: 1.15rem 0; border-top: 1px solid var(--line); }
.decisions div { padding-block: .8rem; border-bottom: 1px solid var(--line); }
.decisions dt { color: #1a3e31; font-weight: 730; }
.decisions dd { margin: .15rem 0 0; }
.note { margin: 1.1rem 0; padding: .8rem 1rem; border-left: .23rem solid #a65924; background: #fff1e2; color: #443529; border-radius: 0 .3rem .3rem 0; }
.checks { padding-inline-start: 1.35rem; }
.checks li + li { margin-top: .55rem; }
.checks li::marker { color: #1e624a; }
.language-note { border-top: 1px dashed #ced8cc; padding-top: .85rem; font-size: .98rem; }
.source-chapter { background: #f0f3e9; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; margin-block: 1.25rem; }
.platform { padding: .9rem; border: 1px solid #d4dfd4; border-radius: .43rem; font-size: .97rem; }
.platform dl { margin: .6rem 0 .8rem; }
.platform dl div + div { margin-top: .48rem; }
.platform:target { outline: .12rem solid #356b56; outline-offset: .12rem; }
.crumbs { font-size: .82rem; color: #40564a; margin: 0 0 .7rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-right: .35rem; }
.crumbs span { margin-left: .35rem; }

.utility { max-width: 49rem; min-height: 53vh; padding-block: clamp(2rem, 7vw, 4.5rem); }
.utility h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); margin: .2em 0 .5em; }
.utility ul { list-style: none; padding: 0; }
.utility li + li { margin-top: .55rem; }
.utility li { border: 1px solid var(--line); padding: .44rem .8rem .55rem; border-radius: .4rem; background: var(--surface); }
.utility a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.utility li p { margin-bottom: .25rem; color: var(--body); }
.site-footer { background: #e9ede3; border-top: 1px solid #cfd7cc; padding-block: 1.45rem; }
.footer-inner { align-items: start; }
.footer-inner p { font-size: .875rem; line-height: 1.5; color: var(--muted); margin: .1rem 0 .3rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .89rem; }

@media (max-width: 56rem) {
  .hero-grid { gap: 1.6rem; }
  .reading-grid { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.15rem; }
}
@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 1.85rem 2.05rem; gap: 1.35rem; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4.3rem); }
  .dream-guide h1 { font-size: clamp(2.35rem, 7.7vw, 3.8rem); }
  .scorecard { max-width: 32rem; box-shadow: .3rem .3rem 0 #0c211a; }
  .score-main { padding: .72rem 0 .8rem; }
  .score-value { font-size: clamp(3.05rem, 11vw, 4.8rem); }
  .reading-grid { display: block; padding-block: 1.35rem 2.55rem; }
  .rail { position: static; max-height: none; margin-bottom: .9rem; }
  .rail ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .12rem .35rem; }
  .chapter + .chapter { margin-top: .8rem; }
  .platforms { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 24rem) {
  .shell { width: calc(100% - 1.5rem); }
  .topbar-inner { gap: .12rem .65rem; min-height: 3.6rem; }
  .brand { font-size: 1.16rem; gap: .45rem; }
  .brand img { width: 28px; height: 28px; }
  .topnav { gap: .18rem; }
  .topnav a { padding-inline: .33rem; font-size: .8rem; }
  .hero-actions a { padding-inline: .55rem; font-size: .85rem; }
  .score-stats { gap: .25rem; }
}
