/* ==========================================================================
   pocketpetal.com: "Field Guide"
   A field journal crossed with the game. Warm paper, deep ink, the app's
   leaf green, and rarity drawn as rubber stamps.
   Type: Rubik (the app's font) for UI and body, Fraunces for display.
   Shared by every page; the page kit at the end is for the inner pages.
   ========================================================================== */

/* Fonts, self-hosted (SIL Open Font License): Rubik is the app's font; Fraunces for display,
   with only the axes the site uses (opsz, wght 400-600, SOFT 100, WONK). */
@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/rubik-normal-latin-ext.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/rubik-normal-latin.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  font-weight: 400 600; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  font-weight: 400 600; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-normal-latin.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* paper and ink */
  --paper: #FBF8F1;
  --paper-hi: #FFFDF8;          /* specimen cards and labels */
  --sand: #E8DCC8;              /* the app's badgeNeutral, used sparingly */
  --sand-lo: #F2EADC;
  --ink: #1A1A2E;               /* the app's dark background, used as ink */
  --ink-2: #4A4A58;             /* secondary text, 8:1 on paper */
  --rule: #D8CDB9;
  --rule-ink: rgba(26, 26, 46, 0.85);

  /* brand */
  --leaf: #58CC02;
  --leaf-dk: #3D8F01;
  --forest: #2E7D32;
  --evergreen: #173426;

  /* rarity, the app's own colours (bars, pills) */
  --r-common: #9E9E9E;
  --r-uncommon: #4CAF50;
  --r-rare: #2196F3;
  --r-epic: #9C27B0;
  --r-legendary: #FF9800;
  --r-mythic: #F44336;

  /* rarity as stamp ink: the same hues, deepened so the words pass AA on paper */
  --st-common: #6E6E6E;
  --st-uncommon: #2E7D32;
  --st-rare: #1565C0;
  --st-epic: #7B1FA2;
  --st-legendary: #A65200;
  --st-mythic: #C62828;

  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 0 0 0 7'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --ui: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ink grain for stamps: mostly solid, with the odd gap where the rubber missed */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -7 0 0 0 4.9'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: normal;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1304px; margin: 0 auto; padding: 0 32px; }

/* ---------- type ---------- */
h1, h2 {
  font-family: var(--display);
  font-weight: 560;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
  letter-spacing: -0.018em;
  color: var(--ink);
}
h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; }
h3 { font-family: var(--ui); font-weight: 600; font-size: 20px; line-height: 1.3; }

.fig {
  font-family: var(--ui); font-style: normal; font-weight: 600;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); margin-right: 6px;
}
.margin-note {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-variation-settings: 'opsz' 14, 'SOFT' 100;
  font-size: 16px; line-height: 1.4; color: var(--ink-2);
}

/* ---------- buttons: the app's chunky button, darker bottom edge ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px;
  border: 0; border-radius: 14px;
  background: var(--leaf); color: var(--ink);
  font: 700 17px/1 var(--ui); letter-spacing: 0.01em; text-decoration: none;
  box-shadow: 0 4px 0 0 var(--leaf-dk);
  cursor: pointer; transition: transform .08s ease, box-shadow .08s ease;
}
.button:hover { background: #62D60C; }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--leaf-dk); }
.cta-short, .per-short { display: none; }
.button-small { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; box-shadow: 0 3px 0 0 var(--leaf-dk); }

/* ---------- stamps ---------- */
.stamp {
  --c: var(--st-common);
  display: inline-block; justify-self: start;
  color: var(--c);
  font: 700 11px/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 7px 5px 9px;
  border: 2px solid currentColor; border-radius: 4px;
  transform: rotate(var(--r, -3deg));
  -webkit-mask-image: var(--grain); mask-image: var(--grain);
  -webkit-mask-size: 180px 180px; mask-size: 180px 180px;
  white-space: nowrap;
}
.s-common    { --c: var(--st-common); }
.s-uncommon  { --c: var(--st-uncommon); }
.s-rare      { --c: var(--st-rare); }
.s-epic      { --c: var(--st-epic); }
.s-legendary { --c: var(--st-legendary); }
.s-mythic    { --c: var(--st-mythic); }

/* ---------- specimen card ---------- */
.spec {
  width: var(--w, 260px);
  background: var(--paper-hi);
  border: 1px solid #E4DACA;
  padding: 10px 10px 0;
  box-shadow: 0 1px 0 rgba(26, 26, 46, 0.04), 0 18px 34px -16px rgba(70, 52, 20, 0.35);
}
.spec-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #ddd; }
.spec-photo img { width: 100%; height: 100%; object-fit: cover; }
.spec-label {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 10px;
  padding: 12px 4px 14px;
}
.spec-name {
  font-family: var(--display); font-weight: 560;
  font-variation-settings: 'opsz' 36, 'SOFT' 100;
  font-size: 21px; line-height: 1.15; letter-spacing: -0.01em;
}
.spec-no {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-2);
  font-variant-numeric: tabular-nums; justify-self: end;
}
.spec-match {
  grid-column: 1; margin-top: 10px; padding-top: 10px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.spec-match svg { color: #0B7FB5; flex: none; }
.spec-label .stamp { grid-column: 2; justify-self: end; margin-top: 10px; }
.spec-label::before {          /* the ruled line across the label */
  content: ''; grid-column: 1 / -1; grid-row: 2; align-self: start;
  border-top: 1px solid var(--rule); margin-top: 0;
}
.spec-name, .spec-no { grid-row: 1; }
.spec-match, .spec-label .stamp { grid-row: 2; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.head-row { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font: 700 21px/1 var(--ui); letter-spacing: -0.01em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 30px; }
.nav a { font-weight: 500; font-size: 16px; text-decoration: none; color: var(--ink); padding: 6px 0; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 56px 0 32px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.0;
  max-width: 12.5em;
}
.hero h1 em {
  font-style: italic; font-weight: 520;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
/* a pen line under the genre, drawn once per line of text */
.scribble {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 50 4, 95 11, 150 7 S 250 3, 297 8' fill='none' stroke='%2358CC02' stroke-width='5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% 0.2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 0.04em 0.06em;
}
.nowrap { white-space: nowrap; }
.lede { margin-top: 28px; font-size: 21px; line-height: 1.5; max-width: 30em; color: var(--ink-2); }
.hero-cta { margin-top: 36px; display: flex; align-items: center; gap: 22px; }
.store { display: inline-block; padding: 2px; border-radius: 10px; }
.store img { height: 52px; width: auto; }
.cta-note { display: flex; flex-direction: column; font-size: 15px; line-height: 1.35; color: var(--ink-2); padding-left: 22px; border-left: 1px solid var(--rule); }
.cta-note strong { color: var(--ink); font-weight: 600; font-size: 16px; }

.hero-art { position: relative; height: 700px; }

/* phone */
.device {
  position: absolute; right: 8px; top: 0;
  width: 302px; padding: 8px; border-radius: 48px;
  background: #16161F;
  box-shadow:
    inset 0 0 0 1.5px #3a3a46,
    inset 0 0 0 3.5px #0c0c12,
    0 40px 60px -28px rgba(60, 44, 16, 0.55),
    0 12px 22px -10px rgba(60, 44, 16, 0.25);
  transform: rotate(2deg);
}
.screen { position: relative; width: 286px; height: 637px; border-radius: 40px; overflow: hidden; background: #fff; }
.screen .ui { zoom: 0.66512; }      /* 286 px screen / 430 pt */
.island { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 82px; height: 24px; background: #000; border-radius: 14px; z-index: 30; }

/* status bar, in iOS points */
.phone-status {
  position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 8;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 34px 0 50px; color: #fff; font: 600 17px/1 var(--ui);
}
.ps-icons { display: flex; gap: 6px; align-items: center; }

/* CollectionScreen (from app-store/src-bright/02-collect.html) */
.ui .appbar .actions .btn { color: #fff; }
.ui .strip { position:absolute; left:0; right:0; top:115px; padding:16px; background:rgba(88,204,2,0.1); display:flex; align-items:center; }
.ui .strip .c { flex:1; }
.ui .strip .n { font-size:28px; font-weight:700; line-height:1.2; }
.ui .strip .d { width:1px; height:40px; background:var(--border); }
.ui .chiprow { position:absolute; left:0; right:0; top:201px; }
.ui .grid { position:absolute; left:16px; right:16px; top:277px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ui .pc { height:254.67px; border-radius:16px; background:var(--tile); box-shadow:0 4px 8px var(--tileshadow); display:flex; flex-direction:column; position:relative; }
.ui .pc.perfect { box-shadow:0 0 0 3px #FFD700, 0 4px 12px rgba(255,215,0,0.3); }
.ui .pc .img { flex:3; position:relative; border-radius:16px 16px 0 0; overflow:hidden; }
.ui .pc .img img { width:100%; height:100%; object-fit:cover; display:block; }
.ui .rp { position:absolute; top:8px; left:8px; padding:4px 8px; border-radius:12px; color:#fff; font-size:10px; font-weight:700; letter-spacing:0.5px; line-height:12px; }
.ui .pc .info { flex:2; padding:12px; display:flex; flex-direction:column; }
.ui .pc .nm { font-size:14px; font-weight:700; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ui .pc .sc { margin-top:2px; font-size:12px; letter-spacing:0.4px; font-style:italic; color:var(--sm); opacity:0.7; line-height:1.33; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ui .pc .meta { margin-top:auto; display:flex; align-items:center; font-size:12px; letter-spacing:0.4px; color:var(--sm); }
.ui .pc .meta .ct { margin-left:4px; }
.ui .pc .meta .st { margin-left:12px; display:flex; gap:1px; color:#FFD54F; }
.ui .pc.perfect .meta .st { color:#FFD700; }
.ui .pc .meta .st svg { width:12px; height:12px; }
.ui .bnav .it .ic { width:24px; height:24px; }
.ui .bfab svg { color:#fff; }

/* the specimen card laid over the phone */
.spec-hero {
  --w: 268px;
  position: absolute; left: -36px; top: 150px; z-index: 3;
  transform: rotate(-4deg);
}
.hero-note {
  position: absolute; left: -22px; top: 606px; width: 196px; z-index: 4;
  transform: rotate(-4deg); transform-origin: 0 0;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.sec { padding: 80px 0; }
.plate {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 44px;
}
.plate span { color: var(--forest); }
.plate span::after { content: '·'; margin-left: 14px; color: var(--ink-2); }
.plate::after { content: ''; flex: 1; border-top: 1px solid var(--rule-ink); opacity: .9; }

.sec-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.sec-intro p { font-size: 19px; color: var(--ink-2); max-width: 24em; padding-bottom: 6px; }

/* ---------- How it plays ---------- */
.steps {
  margin-top: 64px;
  display: grid; grid-template-columns: 5fr 4fr 4fr; gap: 56px;
  align-items: start;
  counter-reset: step;
}
.step { position: relative; }
.step-n {
  display: block;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: 64px; line-height: 1; color: var(--forest);
  margin: 28px 0 6px;
}
.step h3 { font-family: var(--display); font-weight: 600; font-variation-settings: 'opsz' 36, 'SOFT' 100; font-size: 26px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); }
.step p { color: var(--ink-2); max-width: 26em; }
.step-2 { margin-top: 72px; }
.step-3 { margin-top: 24px; }

.viewfinder { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 6px; background: #0d1a0d; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); transform-origin: 38% 42%; }
.vf-corners { position: absolute; inset: 0; width: 100%; height: 100%; }
.vf-shutter {
  position: absolute; left: 50%; bottom: 18px; width: 46px; height: 46px; margin-left: -23px;
  border-radius: 50%; border: 3px solid #fff; background: rgba(255,255,255,0.18);
}

.stamp-pad {
  position: relative; height: 300px;
  background: var(--paper-hi); border: 1px solid #E4DACA;
  box-shadow: 0 18px 34px -18px rgba(70, 52, 20, 0.3);
}
.stamp-pad .stamp { position: absolute; font-size: 13px; }
.stamp-pad .ghost { opacity: 0.26; }
.stamp-pad .s-common    { left: 9%;  top: 11%; }
.stamp-pad .s-uncommon  { left: 50%; top: 16%; }
.stamp-pad .s-rare      { left: 14%; top: 36%; }
.stamp-pad .s-legendary { left: 47%; top: 64%; }
.stamp-pad .s-mythic    { left: 10%; top: 78%; }
.stamp-pad .hit {
  left: 40%; top: 37%;
  -webkit-mask-image: var(--grain-light); mask-image: var(--grain-light);
  -webkit-mask-size: 240px 240px; mask-size: 240px 240px;
  font-size: 26px; letter-spacing: 0.14em; padding: 10px 12px 8px 16px; border-width: 3px; border-radius: 6px;
}
.pad-note {
  position: absolute; right: 16px; bottom: 14px;
  font-family: var(--display); font-style: italic; font-variation-settings: 'opsz' 14, 'SOFT' 100;
  font-size: 15px; color: var(--ink-2);
}

.spec-step { --w: 100%; max-width: 330px; transform: rotate(1.5deg); }
.spec-step .spec-photo { aspect-ratio: 5 / 4; }

/* ---------- Rarity ---------- */
.rarity { background: var(--paper); border-top: 1px solid transparent; }
.rarity-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.rarity-copy p { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 28em; }
.pair { position: relative; margin-top: 44px; height: 430px; }
.spec-sm { --w: 214px; position: absolute; }
.spec-sm .spec-name { font-size: 18px; }
.spec-sm .spec-label { padding: 10px 2px 12px; }
.spec-a { left: 0; top: 0; transform: rotate(-3deg); }
.spec-b { left: 236px; top: 34px; transform: rotate(3deg); z-index: 2; }
.pair-note { position: absolute; left: 8px; top: 378px; width: 210px; font-size: 15px; }

.odds-wrap { padding-top: 6px; }
.odds-card {
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--sand);
}
.odds {
  width: 100%; border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.odds caption {
  caption-side: top; text-align: left;
  padding: 20px 24px 16px;
}
.odds-title {
  display: block;
  font-family: var(--display); font-weight: 600; font-variation-settings: 'opsz' 72, 'SOFT' 100;
  font-size: 28px; line-height: 1.1;
}
.odds-sub { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.odds th, .odds td { padding: 15px 24px; text-align: left; border-top: 1px solid var(--rule); vertical-align: middle; }
.odds thead th {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding-top: 11px; padding-bottom: 11px;
}
.odds tbody th { font-weight: 400; width: 30%; }
.odds .stamp { font-size: 12px; }
.odds .num { text-align: right; white-space: nowrap; }
.odds td.num { font-family: var(--display); font-variation-settings: 'opsz' 36, 'SOFT' 100; font-size: 20px; font-weight: 500; }
.odds td.num + td.num { font-family: var(--ui); font-size: 15px; color: var(--ink-2); }
.odds .per { width: 36%; padding-left: 36px; }
.per-in { display: flex; align-items: center; gap: 12px; }
.bar { display: block; flex: none; height: 10px; width: calc(var(--n) * 0.26px); min-width: 2px; background: var(--c); border-radius: 1px; }
.per-in .n { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.odds-foot { margin-top: 26px; font-size: 14px; color: var(--ink-2); max-width: 40em; padding-left: 14px; border-left: 2px solid var(--leaf); }

/* ---------- Progress ---------- */
.progress-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.glossary { margin-top: 30px; border-top: 1.5px solid var(--ink); }
.glossary > div { display: grid; grid-template-columns: 138px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.glossary dt { font-weight: 600; font-size: 16px; }
.glossary dd { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.glossary i { font-family: var(--display); font-style: italic; font-variation-settings: 'opsz' 14, 'SOFT' 100; color: var(--ink); }

.progress-art { position: relative; padding-top: 8px; }
.badge-plate {
  background: var(--sand-lo);
  border: 1px solid #E2D6C1;
  padding: 32px 22px 22px 22px;
}
.badge-plate figcaption { text-align: right; }
.badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 8px; }
.badges li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badges img { width: 80px; height: 80px; }
.badges span { margin-top: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.badge-plate figcaption {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid #D6C8AF;
  font-family: var(--display); font-style: italic; font-variation-settings: 'opsz' 14, 'SOFT' 100;
  font-size: 15px; color: var(--ink-2);
}
.quest-card {
  position: relative; width: 340px; z-index: 2;
  margin: -56px 0 0 -52px;
  background: var(--paper-hi);
  border: 1px solid #E4DACA;
  padding: 26px 22px 18px;
  box-shadow: 0 22px 40px -18px rgba(70, 52, 20, 0.45);
  transform: rotate(-2.5deg);
}
.quest-card::before {        /* a strip of tape */
  content: ''; position: absolute; left: 50%; top: -12px; width: 96px; height: 26px; margin-left: -48px;
  background: rgba(232, 220, 200, 0.85);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transform: rotate(3deg);
}
.qc-head { font-family: var(--display); font-weight: 600; font-variation-settings: 'opsz' 36, 'SOFT' 100; font-size: 20px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1.5px solid rgba(198, 40, 40, 0.45); }
.quest-card li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; }
.box { width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 4px; margin-top: 2px; display: grid; place-items: center; background: var(--paper-hi); }
.done .box { background: var(--leaf); border-color: var(--leaf-dk); color: var(--ink); }
.q { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.q b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.done .q b { text-decoration: line-through; text-decoration-color: var(--leaf-dk); text-decoration-thickness: 2px; }
.q em { font-style: normal; font-weight: 600; color: var(--forest); margin-left: 4px; }
.xp { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; padding-top: 2px; }
.qc-level { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lvl-bar { flex: 1; height: 8px; border-radius: 4px; background: #E5E5E5; overflow: hidden; }
.lvl-bar i { display: block; height: 100%; background: var(--leaf); border-radius: 4px; }

/* ---------- Event ---------- */
.event { background: var(--evergreen); color: var(--paper); margin: 32px 0 0; padding: 88px 0 96px; }
.plate-light { color: rgba(251, 248, 241, 0.75); }
.plate-light span { color: var(--leaf); }
.plate-light span::after { color: rgba(251, 248, 241, 0.75); }
.plate-light::after { border-top-color: rgba(251, 248, 241, 0.45); }
.event-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.event-art { position: relative; }
.mount { background: var(--paper-hi); padding: 12px; transform: rotate(-1.5deg); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.6); }
.mount img { width: 100%; height: auto; }
.date-stamp {
  position: absolute; right: -14px; bottom: -22px;
  font-size: 20px; letter-spacing: 0.12em; padding: 10px 12px 8px 15px; border-width: 3px; border-radius: 6px;
  background: var(--paper-hi);
  -webkit-mask-image: var(--grain-light); mask-image: var(--grain-light);
  -webkit-mask-size: 240px 240px; mask-size: 240px 240px;
}
.event h2 { color: var(--paper); font-size: clamp(38px, 4.2vw, 60px); }
.event-dates {
  margin-top: 10px;
  font-family: var(--display); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1;
  font-size: 24px; color: var(--leaf);
}
.event-copy > p:not(.event-dates):not(.event-note) { margin-top: 20px; font-size: 18px; max-width: 30em; color: rgba(251, 248, 241, 0.92); }
.event-quests { margin-top: 28px; width: 100%; border-collapse: collapse; font-size: 15px; }
.event-quests th, .event-quests td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid rgba(251, 248, 241, 0.22); vertical-align: top; }
.event-quests thead th { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251, 248, 241, 0.75); border-bottom-color: rgba(251, 248, 241, 0.6); padding-top: 0; }
.event-quests tbody th { font-weight: 600; white-space: nowrap; }
.event-quests td { color: rgba(251, 248, 241, 0.88); }
.event-quests td:last-child { white-space: nowrap; padding-right: 0; }
.event-note { margin-top: 18px; font-size: 15px; color: rgba(251, 248, 241, 0.8); }

/* ---------- Friends + families ---------- */
.together-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.friends { padding-top: 4px; }
.friends-badge { width: 110px; height: 110px; margin-bottom: 18px; }
.friends h2, .families h2 { font-size: clamp(30px, 3vw, 42px); }
.friends p, .families > p { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 30em; }
.families { background: var(--sand); padding: 44px 48px 40px; position: relative; }
.families > p { color: #3E3E4A; }
.pull { margin: 28px 0 26px; padding: 4px 0 4px 22px; border-left: 3px solid var(--forest); }
.pull p {
  font-family: var(--display); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 72, 'SOFT' 100;
  font-size: 25px; line-height: 1.3; color: var(--ink);
}
.pull footer { margin-top: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: #3E3E4A; }
.link-arrow { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--forest); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link-arrow::after { content: ' \2192'; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; }
.faq-head p { margin-top: 16px; color: var(--ink-2); max-width: 20em; }
.faq-head a { color: var(--ink); text-decoration-color: var(--forest); text-underline-offset: 3px; }
.faq-list { border-top: 1.5px solid var(--ink); }
.qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.qa h3 { font-family: var(--display); font-weight: 560; font-variation-settings: 'opsz' 36, 'SOFT' 100; font-size: 22px; line-height: 1.25; }
.qa p { color: var(--ink-2); font-size: 16px; }
.qa a { color: var(--ink); text-decoration-color: var(--forest); text-underline-offset: 3px; }

/* ---------- Android slip ---------- */
.android { padding-top: 16px; padding-bottom: 32px; }
.slip {
  position: relative;
  max-width: 980px; margin-left: auto; margin-right: 6%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center;
  background: var(--paper-hi);
  border: 1px solid #E4DACA;
  padding: 40px 48px 40px 64px;
  box-shadow: 0 18px 34px -20px rgba(70, 52, 20, 0.35);
}
.slip::before {               /* perforated tear-off edge */
  content: ''; position: absolute; left: 22px; top: 14px; bottom: 14px; width: 10px;
  background: radial-gradient(circle, var(--paper) 3.5px, transparent 4px) 0 0 / 10px 16px repeat-y;
  border-right: 1px dashed var(--rule);
}
.slip h2 { font-size: clamp(30px, 3vw, 40px); }
.slip-copy p { margin-top: 8px; color: var(--ink-2); }
.slip-form { display: flex; gap: 12px; }
.slip-form input[type="email"] {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px;
  font: 400 17px var(--ui); color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 12px;
}
.slip-form input::placeholder { color: #6E6E78; }

/* ---------- Footer ---------- */
.site-foot { margin-top: 64px; border-top: 1.5px solid var(--ink); padding: 48px 0 56px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2.2fr) minmax(0, 2.2fr) minmax(0, 2.6fr); gap: 40px 48px; align-items: start; }
.foot-h { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.foot-brand .brand span { font-size: 19px; }
.foot-brand .brand img { width: 36px; height: 36px; border-radius: 9px; }
.disclaimer { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 34em; padding-left: 14px; border-left: 2px solid var(--leaf); }
.foot-links ul, .foot-explore ul, .foot-social ul { display: grid; gap: 8px; }
.foot-explore a { font-size: 15px; color: var(--ink); text-decoration: none; }
.foot-explore a:hover { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot-social ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.foot-links a, .foot-social a { font-size: 15px; color: var(--ink); text-decoration: none; }
.foot-links a:hover, .foot-social a:hover { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.copy { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); padding-top: 20px; border-top: 1px solid var(--rule); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav ul { gap: 22px; }
  .head-row { gap: 24px; }
  .hero-note { left: -110px; }
}

@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .head-row { flex-wrap: wrap; height: auto; padding-top: 14px; gap: 10px 16px; }
  .nav { order: 3; margin-left: 0; width: 100%; border-top: 1px solid var(--rule); }
  .nav ul { gap: 0; justify-content: space-between; overflow-x: auto; }
  .nav a { display: block; padding: 12px 0; font-size: 15px; }
  .head-cta { margin-left: auto; }

  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { height: 670px; max-width: 440px; width: 100%; margin: 0 auto; }
  .device { right: 0; }
  .spec-hero { left: 0; top: 160px; }
  .hero-note { left: 2px; top: 612px; width: 280px; transform: none; }

  .sec { padding: 72px 0; }
  .plate { margin-bottom: 30px; }
  .sec-intro, .rarity-grid, .progress-grid, .event-grid, .together-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 56px; margin-top: 40px; }
  .step-2, .step-3 { margin-top: 0; }
  .progress-art { padding-bottom: 0; }
  .quest-card { margin: 20px 0 0 12px; }
  .slip { grid-template-columns: 1fr; margin: 0; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .brand span { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .head-cta { height: 38px; padding: 0 14px; font-size: 14px; }
  .cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cta-short { display: inline; }
  .nav a { font-size: 14px; }

  .hero h1 { font-size: 44px; line-height: 1.02; }
  .lede { font-size: 18px; margin-top: 20px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
  .cta-note { padding-left: 0; border-left: 0; }
  .hero-art { height: 650px; }
  .device { transform: rotate(2deg) scale(0.88); transform-origin: 100% 0; }
  .spec-hero { --w: 206px; top: 236px; left: -2px; }
  .spec-hero .spec-name { font-size: 18px; }
  .spec-hero .spec-label, .spec-sm .spec-label { column-gap: 6px; }
  .spec-hero .spec-match, .spec-sm .spec-match { font-size: 12px; gap: 4px; }
  .spec-hero .stamp, .spec-sm .stamp { font-size: 10px; letter-spacing: 0.1em; padding: 5px 5px 4px 6px; }
  .hero-note { top: 598px; width: 250px; font-size: 14px; }

  h2 { font-size: 34px; }
  .sec-intro p { font-size: 17px; }
  .step-n { font-size: 52px; margin-top: 20px; }
  .stamp-pad { height: 250px; }
  .stamp-pad .hit { font-size: 22px; left: 34%; }

  .pair { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .spec-sm { --w: auto; position: relative; padding: 7px 7px 0; }
  .spec-sm .spec-name { font-size: 16px; }
  .spec-sm .spec-no { font-size: 10px; letter-spacing: 0.04em; }
  .spec-sm .spec-label { padding: 8px 1px 10px; }
  .spec-a { left: auto; top: auto; transform: rotate(-2deg); }
  .spec-b { left: auto; top: 22px; transform: rotate(2.5deg); }
  .spec-sm .spec-match { grid-column: 1 / -1; }
  .spec-sm .spec-label .stamp { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 8px; }
  .pair-note { position: static; grid-column: 1 / -1; width: auto; margin-top: 18px; font-size: 14px; }

  .odds caption { padding: 14px 14px 12px; }
  .odds-title { font-size: 24px; }
  .odds th, .odds td { padding: 12px 10px; }
  .odds thead th { font-size: 10px; letter-spacing: 0.1em; }
  .odds .stamp { font-size: 10px; letter-spacing: 0.12em; padding: 5px 5px 4px 7px; }
  .odds td.num { font-size: 17px; }
  .odds td.num + td.num { font-size: 13px; }
  .odds .per { width: auto; padding-left: 10px; }
  .per-in .bar { display: none; }
  .per-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .per-short { display: inline; }

  .glossary > div { grid-template-columns: 1fr; gap: 4px; }
  .badge-plate { padding: 22px 16px 16px; }
  .badges { grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
  .badges img { width: 72px; height: 72px; }
  .badges span { font-size: 12px; }
  .quest-card { width: auto; margin: 24px 6px 0 10px; }

  .event { margin-top: 20px; }
  .date-stamp { font-size: 15px; right: -4px; bottom: -18px; }
  .event-quests thead { display: none; }
  .event-quests tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid rgba(251, 248, 241, 0.22); }
  .event-quests th, .event-quests td { border: 0; padding: 0; }
  .event-quests td:nth-of-type(1) { grid-column: 1 / -1; grid-row: 2; }
  .event-quests td:last-child { grid-column: 2; grid-row: 1; font-size: 13px; text-align: right; white-space: normal; }
  .event-quests tbody tr:first-child { border-top: 1px solid rgba(251, 248, 241, 0.6); }

  .families { padding: 32px 22px 30px; margin: 0 -4px; }
  .pull p { font-size: 21px; }
  .qa { grid-template-columns: 1fr; gap: 8px; }
  .qa h3 { font-size: 20px; }

  .slip { padding: 32px 22px 28px 44px; }
  .slip::before { left: 14px; }
  .slip-form { flex-direction: column; }
  .slip-form .button { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Page kit: the inner pages (How to play, Rarity, Badges, Events, guides, Press)
   ========================================================================== */
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* the page's own header: breadcrumbs, the plate label, h1, lede */
.page-head { padding: 52px 0 44px; border-bottom: 1px solid var(--rule); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head .plate { margin: 26px 0 0; }
.page-head h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; margin-top: 14px; max-width: 15em; }
.page-head .lede { margin-top: 20px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }

.page-body { padding: 56px 0 8px; }

/* long-form text */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.05em; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.prose ol { list-style: decimal; }
.prose ol li::marker { font-weight: 700; color: var(--forest); }
.prose li + li { margin-top: 0.45em; }
.prose a { text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose thead th { font-weight: 600; background: var(--sand-lo); }

/* text with a side column */
.layout-aside { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.aside-card { position: sticky; top: 24px; background: var(--paper-hi); border: 1px solid var(--rule); padding: 24px; }
.aside-card h2 { font-size: 24px; }

/* the safety line, or any boxed note */
.notice { border-left: 3px solid var(--leaf); padding: 14px 18px; background: var(--paper-hi); font-size: 15px; line-height: 1.55; }

/* link cards to other pages (guides, events) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.tile { display: block; background: var(--paper-hi); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(26, 26, 46, 0.08); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-body { padding: 16px 18px 20px; }
.tile .kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--forest); }
.tile h3 { font-family: var(--display); font-weight: 600; font-variation-settings: 'opsz' 36, 'SOFT' 100; font-size: 23px; line-height: 1.15; margin-top: 6px; }
.tile p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* the closing App Store band on every inner page */
.cta-band { margin: 80px 0 0; padding: 36px 40px; border: 1.5px solid var(--ink); background: var(--paper-hi); display: flex; gap: 24px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 2.4vw, 34px); }
.cta-band p { color: var(--ink-2); margin-top: 6px; }
.cta-band .store img { height: 52px; width: auto; }

@media (max-width: 980px) {
  .layout-aside { grid-template-columns: 1fr; gap: 40px; }
  .aside-card { position: static; }
}
@media (max-width: 560px) {
  .page-head { padding: 36px 0 28px; }
  .page-head h1 { font-size: 38px; }
  .page-head .lede { font-size: 18px; }
  .page-body { padding: 40px 0 0; }
  .cta-band { padding: 28px 22px; margin-top: 56px; }
}

/* homepage: the link from each section to its full page, and the Android list's status line */
.more { margin-top: 28px; }
.slip-form { flex-wrap: wrap; }
.slip-status { flex-basis: 100%; margin-top: 10px; font-size: 15px; color: var(--ink-2); min-height: 1.4em; }
.slip-status:empty { display: none; }

/* links inside the dark event band */
.event .link-arrow { color: var(--paper); text-decoration-color: var(--leaf); }
