/* Wildseek public home page at https://wildseek.app/ (G3d, board 36: docs/design/v2/g3d/README.md).
   Static HTML/CSS, no framework. Dark by default, light with prefers-color-scheme (no toggle).
   Phone < 600, tablet 600–899, desktop ≥ 900; content max 1100 + gutters.
   The app CSP applies: no inline styles or scripts, every image is a file (README "Static page and the app CSP").
   home.js removes this stylesheet before it boots the Flutter app for a signed-in visitor. */

@font-face { font-family: Cinzel; src: url(fonts/cinzel-latin.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(fonts/barlow-semi-condensed-600-latin.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(fonts/barlow-semi-condensed-700-latin.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(fonts/barlow-semi-condensed-800-latin.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: Barlow; src: url(fonts/barlow-400-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Barlow; src: url(fonts/barlow-500-latin.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Barlow; src: url(fonts/barlow-700-latin.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ===== tokens (v2 hall theme) ===== */
:root {
  color-scheme: dark;
  --fd: Cinzel, serif;
  --fh: "Barlow Semi Condensed", sans-serif;
  --fb: Barlow, sans-serif;
  --ink: #F4EBD8;
  --ink2: #C9BDA4;
  --ink3: #9D927C;
  --line: rgba(233, 205, 140, .16);
  --line2: rgba(233, 205, 140, .32);
  --gold: #E9B949;
  --goldt: #F3CF6E;
  --panel: linear-gradient(180deg, #1A3025 0%, #12231B 100%);
  --panelB: #0A1410;
  --slot: linear-gradient(180deg, #1E3529, #132219);
  --trk: #0A1410;
  --shadow: 0 10px 24px rgba(0, 0, 0, .5);
  --txs: 0 1px 0 rgba(0, 0, 0, .6);
  --band: rgba(255, 255, 255, .028);
  --focus: #FFF1BE;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink: #22170B;
    --ink2: #4D4030;
    --ink3: #6E604A;
    --line: rgba(110, 76, 30, .2);
    --line2: rgba(150, 104, 34, .45);
    --gold: #A87422;
    --goldt: #8A5C14;
    --panel: linear-gradient(180deg, #FFFBF1 0%, #F6EDDA 100%);
    --panelB: #C9B48C;
    --slot: linear-gradient(180deg, #FFFDF6, #F1E6CF);
    --trk: #E2D5BA;
    --shadow: 0 8px 18px rgba(80, 52, 16, .18);
    --txs: none;
    /* Bands are lighter than the page, never darker. */
    --band: rgba(255, 253, 246, .66);
    --focus: #C98A10;
  }
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html:not(.ws-app) { background: #0A150F; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.ws-app .pg { display: none; }
/* Dark: the hall gradient. Light: the page ends on bg-1 #F2E9D6, never on bg-0 (gold-text is 4.22:1 there). */
.pg {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(540px 400px at 50% 0%, #1C3528 0%, rgba(28, 53, 40, 0) 100%), linear-gradient(180deg, #0F1D17 0%, #0A150F 100%);
}
@media (prefers-color-scheme: light) {
  html:not(.ws-app) { background: #F2E9D6; }
  .pg { background: radial-gradient(540px 400px at 50% 0%, #FFFBF1 0%, rgba(255, 251, 241, 0) 100%), #F2E9D6; }
}
.pg a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pg a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.pg ol, .pg ul { list-style: none; }
.pg img { display: block; }
.ico { display: inline-flex; flex: none; }
.ico svg { width: 100%; height: 100%; }
.s14 { width: 14px; height: 14px; }
.s16 { width: 16px; height: 16px; }
.s18 { width: 18px; height: 18px; }
.s20 { width: 20px; height: 20px; }
.s22 { width: 22px; height: 22px; }
.s24 { width: 24px; height: 24px; }
.s46 { width: 46px; height: 46px; }
.s64 { width: 64px; height: 64px; }
.in { width: 100%; margin: 0 auto; padding: 0 20px; }
.lk { width: auto; }

/* ===== components ===== */
/* riveted panel */
.pnl { position: relative; background: var(--panel); border-radius: 16px; border: 1.5px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px var(--panelB), var(--shadow); }
.pnl::before, .pnl::after { content: ""; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF1BE, #B5841F 60%, #5A3A08); box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.pnl::before { left: 6px; }
.pnl::after { right: 6px; }

/* chunky buttons: pressed = a 3 dp drop onto a 1 dp ledge; no hover style */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 14px; font: 800 17px/1 var(--fh); letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; position: relative; }
.pg a.btn:focus-visible { border-radius: 14px; }
.b-amber { color: #2B1804; background: linear-gradient(180deg, #FFD877 0%, #F7B637 45%, #E8901A 100%); border: 2px solid #7A4708; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -4px 0 rgba(140, 70, 0, .35), 0 4px 0 #6A3C06, 0 8px 16px rgba(0, 0, 0, .35); text-shadow: 0 1px 0 rgba(255, 240, 200, .55); }
.b-amber:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(140, 70, 0, .3), 0 1px 0 #6A3C06, 0 3px 6px rgba(0, 0, 0, .3); }
.b-stone { color: var(--ink); background: linear-gradient(180deg, #3A5446 0%, #253B30 50%, #1A2C23 100%); border: 2px solid #0A140F; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 rgba(0, 0, 0, .3), 0 4px 0 #08100C, 0 8px 16px rgba(0, 0, 0, .3); }
.b-stone:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 1px 0 #08100C, 0 3px 6px rgba(0, 0, 0, .3); }
@media (prefers-color-scheme: light) {
  .b-stone { color: #22170B; background: linear-gradient(180deg, #FFFDF6 0%, #F1E6CF 55%, #E1D1AE 100%); border-color: #9A7A48; box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(120, 80, 20, .15), 0 4px 0 #8A6A38, 0 6px 12px rgba(80, 52, 16, .18); }
  .b-stone:active { box-shadow: inset 0 2px 0 #fff, inset 0 -2px 0 rgba(120, 80, 20, .15), 0 1px 0 #8A6A38, 0 3px 6px rgba(80, 52, 16, .18); }
}
.b-md { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; letter-spacing: .7px; }
.pg a.b-md:focus-visible { border-radius: 12px; }

/* divider ornament */
.dvd { display: flex; align-items: center; gap: 8px; width: 180px; margin: 6px 0 2px; }
.dvd i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.dvd b { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }

/* level hex */
.lvh { flex: none; display: grid; place-items: center; font-family: var(--fh); font-weight: 800; line-height: 1; color: #2B1804; clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); background: linear-gradient(180deg, #FFF1BE, #E9B949 50%, #9A6A1C); position: relative; isolation: isolate; }
.lvh::before { content: ""; position: absolute; inset: 2px; clip-path: inherit; background: linear-gradient(180deg, #FFE08A, #F2B53B 60%, #C98A10); z-index: -1; }
.lvh.glow { filter: drop-shadow(0 0 8px rgba(255, 201, 61, .85)); }
.lvh.n38 { width: 38px; height: 41px; font-size: 17px; }
.lvh.n64 { width: 64px; height: 69px; font-size: 28px; }

/* progress bars */
.pbar { position: relative; height: 12px; border-radius: 6px; background: var(--trk); border: 1px solid var(--line2); overflow: hidden; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35); }
.pbar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(180deg, #FFE08A 0%, #F5A623 55%, #C9770C 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.xpb { position: relative; height: 18px; border-radius: 9px; background: #06100C; border: 1px solid rgba(233, 185, 73, .5); overflow: hidden; }
.xpb i { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: linear-gradient(180deg, #7FDDAA 0%, #1B8556 45%, #126A43 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.xpb b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 11px/1 var(--fh); letter-spacing: .6px; color: #fff; text-shadow: 0 1px 2px #000; }
@media (prefers-color-scheme: light) {
  .pbar { box-shadow: inset 0 2px 3px rgba(80, 52, 16, .18); }
  .xpb { background: #E2D5BA; border-color: rgba(168, 116, 34, .6); }
}
.p27 { width: 26.667%; }
.p33 { width: 33.333%; }
.p61 { width: 61.224%; }

/* rarity metals (cards and map medallions) */
.r-common { --metal: linear-gradient(140deg, #E4E0D8 0%, #A9A397 22%, #6D685E 48%, #A9A397 66%, #E4E0D8 78%, #3B3833 100%); --m1: #A9A397; --m2: #6D685E; --m3: #3B3833; --rg: #CFC8BA; --ft: #F0ECE4; --fd2: #57524A; --fl: #D3CBBC; }
.r-uncommon { --metal: linear-gradient(140deg, #C2F0CF 0%, #4CC27A 22%, #1F7444 48%, #4CC27A 66%, #C2F0CF 78%, #0E3B22 100%); --m1: #4CC27A; --m2: #1F7444; --m3: #0E3B22; --rg: #5BE08E; --ft: #E2F3E7; --fd2: #1C6B3D; --fl: #A8D7B7; }
.r-rare { --metal: linear-gradient(140deg, #CBE6FF 0%, #4A9DF2 22%, #1C5DAB 48%, #4A9DF2 66%, #CBE6FF 78%, #0B2C5A 100%); --m1: #4A9DF2; --m2: #1C5DAB; --m3: #0B2C5A; --rg: #5AAEFF; --ft: #E1EDFB; --fd2: #1B5596; --fl: #A8C9EE; }
.r-epic { --metal: linear-gradient(140deg, #EEDBFF 0%, #AE72FF 22%, #6A33C4 48%, #AE72FF 66%, #EEDBFF 78%, #341565 100%); --m1: #AE72FF; --m2: #6A33C4; --m3: #341565; --rg: #B57CFF; --ft: #EFE4FD; --fd2: #5A2CA8; --fl: #CDB3F2; }
.r-legendary { --metal: linear-gradient(140deg, #FFF4C4 0%, #FFCB45 22%, #C98A10 48%, #FFCB45 66%, #FFF4C4 78%, #6E4505 100%); --m1: #FFCB45; --m2: #C98A10; --m3: #6E4505; --rg: #FFC93D; --ft: #FFEFC9; --fd2: #855405; --fl: #E8C574; }

/* ===== shared page type ===== */
.h-eb { font: 800 12.5px/1 var(--fh); letter-spacing: 2px; text-transform: uppercase; color: var(--goldt); }
.ld { font: 400 15px/1.45 var(--fb); color: var(--ink2); }
.wn { font: 400 13.5px/1.4 var(--fb); color: var(--ink2); }
.age { font: 600 14px/1.3 var(--fh); letter-spacing: .3px; color: var(--ink2); }
.soon { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font: 700 14px/18px var(--fh); letter-spacing: .3px; color: var(--ink2); }
.sn2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.b-row { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.ti { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--goldt); background: radial-gradient(circle at 50% 35%, #2B4A3A, #12231B); border: 1.5px solid var(--line2); }
@media (prefers-color-scheme: light) {
  .ti { background: radial-gradient(circle at 50% 35%, #FFFBF1, #EFE4CC); }
}
.pg .mlk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 16px/1 var(--fh); letter-spacing: .3px; color: var(--goldt); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.h-fn { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin: 28px auto 0; max-width: 640px; text-align: left; font: 500 14px/1.45 var(--fb); color: var(--ink2); }
.h-fn .ico { color: var(--goldt); margin-top: 1px; }

/* ===== header ===== */
.h-hd .in { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; }
.lk-hd { height: 24px; }

/* ===== hero ===== */
.h-hero { overflow-x: clip; }
.h-hero .in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 6px; padding-bottom: 44px; }
.h-art { position: relative; display: flex; justify-content: center; order: -1; }
.h-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 420px; margin: -210px 0 0 -280px; background: radial-gradient(closest-side, rgba(255, 201, 61, .22), transparent); pointer-events: none; }
/* The fan art is @2x with 44 dp of glow room on every side: phone 350 × 214 (+88). Scales down below 366 wide. */
.h-fan { position: relative; flex: none; width: min(350px, 100vw - 16px); aspect-ratio: 350 / 214; }
.h-fan img { position: absolute; left: -12.5714%; top: -20.5607%; width: 125.1429%; height: auto; max-width: none; }
.h-copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 22px; max-width: 440px; }
.h-copy h1 { font: 900 30px/1.1 var(--fd); color: var(--ink); text-wrap: balance; text-shadow: var(--txs); }
.h-copy .ld { margin-bottom: 6px; text-wrap: balance; }
.h-act { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.h-act .btn { width: 100%; }
.h-act .wn { text-align: center; max-width: 320px; }
.h-copy .age { margin-top: 2px; }
@media (prefers-color-scheme: light) {
  .h-art::before { background: radial-gradient(closest-side, rgba(201, 138, 16, .2), transparent); }
}

/* ===== sections ===== */
.h-sec { padding: 52px 0; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.h-sh { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; text-align: center; }
.h-sh h2, .h-gt h2 { font: 900 25px/1.15 var(--fd); color: var(--ink); text-wrap: balance; text-shadow: var(--txs); }
.h-sh p:not(.h-eb) { font: 400 15px/1.5 var(--fb); color: var(--ink2); }
.h-slot { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--slot); border: 1.5px solid var(--line); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); overflow: hidden; }
@media (prefers-color-scheme: light) {
  .h-slot { box-shadow: inset 0 2px 5px rgba(80, 52, 16, .14); }
}
.h-slot.flat { background: none; border: 0; box-shadow: none; overflow: visible; align-items: stretch; justify-content: flex-start; }
.h-slot.nopad { align-items: stretch; }

/* how it works */
.h-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 44px; }
.h-step { padding: 34px 16px 22px; text-align: center; }
.h-num { position: absolute; left: 50%; top: -20px; margin-left: -19px; z-index: 2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.h-step .h-slot { height: 144px; }
.h-step h3, .h-card h3, .h-row h3, .h-parents h3 { font: 800 18px/1.2 var(--fd); color: var(--ink); }
.h-step h3 { margin-top: 18px; }
.h-step p { margin-top: 8px; font: 400 14.5px/1.45 var(--fb); color: var(--ink2); }
/* The badges shrink when the slot is narrower than the row (phones under 360, desktop under 1120). */
.v1 { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: calc(100% - 16px); }
.v1 img { flex: 0 1 46px; min-width: 0; width: 46px; height: auto; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
.v1 img:nth-child(odd) { margin-top: -10px; }
.v1 img:nth-child(even) { margin-top: 14px; }
.v2 { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vf { position: relative; width: 176px; height: 84px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #2A4A3A, #0B1510); color: var(--goldt); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 0 rgba(0, 0, 0, .3); }
.vf .ico { filter: drop-shadow(0 0 8px rgba(255, 201, 61, .5)); }
.cn { position: absolute; width: 16px; height: 16px; border: 3px solid #F3CF6E; border-radius: 4px; }
.cn.tl { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.cn.tr { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.cn.bl { left: 8px; bottom: 8px; border-right: 0; border-top: 0; }
.cn.br { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.shut { position: absolute; right: 30px; bottom: 12px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #F3CF6E; box-shadow: inset 0 0 0 2px rgba(243, 207, 110, .35); }
.baits { display: flex; gap: 8px; }
.bt { width: 40px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--slot); border: 1.5px solid var(--line2); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.v3 { display: flex; align-items: center; gap: 22px; }
/* The card art is @2x with 44 dp of glow room on every side: a 96 × 134 card. */
.v3c { flex: none; width: 96px; height: 134px; transform: rotate(-5deg); }
.v3c img { width: 184px; height: auto; max-width: none; margin: -44px; }
.v3 ul { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.v3 li { display: flex; align-items: center; gap: 8px; font: 700 13.5px/18px var(--fh); letter-spacing: .3px; color: var(--ink2); }
@media (prefers-color-scheme: light) {
  .vf { background: radial-gradient(circle at 50% 45%, #2F5A44, #10241A); color: #F3CF6E; }
  .bt { background: linear-gradient(180deg, #FFFDF6, #F1E6CF); }
}

/* what you can do */
.h-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
.h-card { display: flex; flex-direction: column; padding: 16px 16px 20px; }
.h-card .h-slot { flex: 1; min-height: 150px; margin-bottom: 18px; }
.h-card h3 { font-size: 19px; }
.h-card p { margin-top: 8px; font: 400 15px/1.45 var(--fb); color: var(--ink2); }
/* album: v2 thumbnails (160 × 224 scaled by --ts); the strip is centred and clipped like the board */
.h-th { --ts: .45; display: flex; gap: 8px; justify-content: center; align-items: center; padding: 16px 8px; }
.tw { position: relative; flex: none; width: calc(160px * var(--ts)); height: calc(224px * var(--ts)); }
.t2 { position: absolute; left: 0; top: 0; width: 160px; height: 224px; transform: scale(var(--ts)); transform-origin: 0 0; border-radius: 14px; background: var(--metal); box-shadow: 0 0 0 1.5px #3A2A12, inset 0 0 0 1px rgba(255, 255, 255, .45), 0 8px 16px rgba(0, 0, 0, .35); }
.t2-in { position: absolute; inset: 6px; border-radius: 9px; overflow: hidden; background: linear-gradient(180deg, var(--ft), #FFFBF2 75%); box-shadow: inset 0 0 0 1px var(--m2); }
.t2-ph { position: absolute; left: 0; right: 0; top: 0; height: 150px; border-bottom: 2px solid var(--m1); box-shadow: 0 1px 0 var(--m3); }
.pg .t2-ph img { width: 100%; height: 100%; object-fit: cover; }
.t2-nm { position: absolute; left: 10px; right: 36px; top: 160px; font: 800 15px/19px var(--fd); color: #22170B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2-sp { position: absolute; left: 10px; right: 34px; top: 181px; font: 700 10.5px/14px var(--fh); letter-spacing: .8px; text-transform: uppercase; color: var(--fd2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2-gem { position: absolute; right: 6px; top: 164px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; box-shadow: 0 0 0 1px var(--fl), 0 0 8px var(--rg); }
.t2-gem img { width: 21px; height: 21px; }
.t2-lv { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; display: grid; place-items: center; font: 800 15px/1 var(--fh); color: #2B1804; clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); background: linear-gradient(180deg, #FFF1BE, #E9B949 50%, #9A6A1C); }
.tb-fl { position: absolute; left: 6px; top: 120px; height: 22px; padding: 0 8px; border-radius: 5px; display: flex; align-items: center; gap: 4px; font: 800 11px/1 var(--fh); letter-spacing: 1px; text-transform: uppercase; }
.tb-fl.new { color: #2B1804; background: linear-gradient(180deg, #FFE08A, #F2B53B); border: 1px solid #7A4708; }
.t2-lk { background: linear-gradient(140deg, #8E9692, #5E6663); box-shadow: 0 0 0 1.5px #3E4441, 0 6px 12px rgba(0, 0, 0, .3); }
.t2-lk .t2-in { background: #E9E6DF; box-shadow: inset 0 0 0 1px #8E9692; }
.t2-lk .t2-ph { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #F2EFE8, #D6D1C6); color: #A39C8E; border-bottom: 2px solid #A2A9A6; box-shadow: none; }
.t2-lk .t2-nm { color: #6E675B; }
.t2-lk .t2-sp { color: #5E584D; right: 10px; }
@media (max-width: 599.98px) {
  /* Phone shows four thumbnails: Hazel, Clover (new), Whiskers and the locked fox. */
  .h-th .tw:nth-child(-n+2) { display: none; }
}
/* quests */
.h-qs { display: flex; flex-direction: column; gap: 8px; width: 100%; justify-content: center; }
.h-qh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px 2px; font: 700 12.5px/1 var(--fh); letter-spacing: .3px; color: var(--ink2); }
.h-qh b { font: 800 15px/1 var(--fd); color: var(--ink); letter-spacing: 0; }
.q2 { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px 11px 10px; border-radius: 14px; background: var(--slot); border: 1.5px solid var(--line); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.q-ic { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle at 50% 35%, #2B4A3A, #12231B); border: 1.5px solid var(--line2); }
.q-ic .ico { color: #F3CF6E; }
.q-b { flex: 1; min-width: 0; }
.q-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.q-t b { font: 700 16px/1.2 var(--fh); color: var(--ink); }
.q-t span { font: 700 13px/1 var(--fh); color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-s { font: 500 12.5px/1.3 var(--fb); color: var(--ink3); margin: -3px 0 6px; }
.q2-r { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rwp { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--fh); color: var(--ink2); }
.rwp > b { font: 800 12.5px/1 var(--fh); color: var(--goldt); }
.rwp > span { display: inline-flex; align-items: center; gap: 3px; }
.rwp .fav .ico { color: var(--goldt); }
@media (prefers-color-scheme: light) {
  .q2 { box-shadow: 0 3px 0 rgba(120, 80, 20, .14); }
  .q-ic { background: radial-gradient(circle at 50% 35%, #FFFDF6, #EADCBF); }
  .q-ic .ico { color: #8A5C14; }
}
/* level, XP, streak */
.h-lv { display: flex; flex-direction: column; justify-content: center; gap: 16px; width: 100%; padding: 6px 4px; }
.lvr { display: flex; align-items: center; gap: 14px; }
.lvi { flex: 1; min-width: 0; }
.lvi > b { display: block; font: 800 19px/1.1 var(--fd); color: var(--ink); margin-bottom: 8px; }
.skr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 140, 40, .14), rgba(255, 140, 40, .03)); border: 1.5px solid rgba(255, 160, 70, .4); }
.skr > b { font: 800 17px/1 var(--fh); color: #FFD9A0; flex: 1; }
.flm { flex: none; filter: drop-shadow(0 0 6px rgba(255, 140, 40, .55)); }
.gpill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 5px; border-radius: 15px; font: 700 12.5px/1 var(--fh); letter-spacing: .3px; color: var(--ink); background: var(--slot); border: 1.5px solid var(--line2); }
.grc { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: #2B1804; background: linear-gradient(180deg, #FFE08A, #E9A72B); box-shadow: 0 0 0 1px #6A3C06; }
@media (prefers-color-scheme: light) {
  .skr { background: #FCE6CF; border-color: #E3A46B; }
  .skr > b { color: #9A3A0E; }
}
/* community map: drawn stand-in (no tiles, no place names) */
.h-map { position: relative; width: 100%; min-height: 200px; flex: 1; }
.pg .h-map .map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.area { position: absolute; z-index: 2; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ag) 30%, transparent) 0%, color-mix(in srgb, var(--ag) 12%, transparent) 55%, transparent 72%); border: 1.5px dashed color-mix(in srgb, var(--ag) 55%, transparent); }
.area.a1 { left: 30%; top: 52%; width: 118px; height: 118px; margin: -59px 0 0 -59px; --ag: #5AAEFF; }
.area.a2 { left: 70%; top: 46%; width: 150px; height: 150px; margin: -75px 0 0 -75px; --ag: #B57CFF; }
.mk2 { position: absolute; z-index: 5; border-radius: 50%; padding: 4px; background: var(--metal); box-shadow: 0 0 0 1.5px #050806, 0 6px 12px rgba(0, 0, 0, .55), 0 0 18px color-mix(in srgb, var(--ag) 70%, transparent); }
.mk2.m1 { left: 30%; top: 52%; width: 56px; height: 56px; margin: -28px 0 0 -28px; --ag: #5AAEFF; --metal: linear-gradient(150deg, #CBE6FF 0%, #4A9DF2 22%, #1C5DAB 48%, #4A9DF2 66%, #CBE6FF 78%, #0B2C5A 100%); }
.mk2.m2 { left: 70%; top: 46%; width: 60px; height: 60px; margin: -30px 0 0 -30px; --ag: #B57CFF; --metal: linear-gradient(150deg, #EEDBFF 0%, #AE72FF 22%, #6A33C4 48%, #AE72FF 66%, #EEDBFF 78%, #341565 100%); }
.pg .mk2 .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
.mk-g { position: absolute; left: 50%; bottom: -12%; transform: translateX(-50%); padding: 2px; border-radius: 50%; background: radial-gradient(circle, #1A120A 60%, #050806); box-shadow: 0 0 0 1.5px var(--ag), 0 2px 4px rgba(0, 0, 0, .6); display: grid; }
.mk-n { position: absolute; right: -8px; top: -6px; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 7px; display: grid; place-items: center; font: 800 13px/1 var(--fh); color: #2B1804; background: linear-gradient(180deg, #FFE08A, #F2B53B); border: 1.5px solid #6A3C06; }
.me2 { position: absolute; left: 48%; top: 72%; width: 22px; height: 22px; margin: -11px 0 0 -11px; z-index: 4; }
.me2 i { position: absolute; inset: -38px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .35) 0%, rgba(255, 214, 120, .12) 35%, transparent 65%); }
.me2 b { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF6D2, #F5A623 60%, #B86A06); border: 3px solid #FFF8E6; box-shadow: 0 0 0 1.5px #3A2004, 0 0 14px #FFC93D; }
.h-chip { position: absolute; left: 10px; bottom: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border-radius: 16px; font: 700 12.5px/1 var(--fh); letter-spacing: .4px; color: var(--ink); background: rgba(9, 19, 15, .8); border: 1px solid var(--line2); }
.h-chip .ico { color: var(--goldt); }
@media (prefers-color-scheme: light) {
  .h-chip { background: rgba(255, 251, 241, .9); }
}
/* Find My Pet: the calm room (own harbor-blue palette; no gold, rivets, ledge or glow) */
.h-calm { --cs: #1B2732; --cs2: #22313D; --clab: #9FC1DC; --cink: #E6EEF4; --cink2: #B3C3D0; --cline: #2E3E4C; --cart: #22313D; display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; border-radius: 16px; background: var(--cs); border: 1px solid var(--cline); color: var(--cink); }
.cal-art { flex: none; width: 100%; height: 150px; border-radius: 12px; background: var(--cart); display: grid; place-items: center; }
.pg .cal-art img { width: 180px; height: auto; }
.h-calm h3 { font: 700 22px/1.2 var(--fb); color: var(--cink); }
.h-calm p { margin-top: 8px; font: 400 15.5px/1.5 var(--fb); color: var(--cink2); }
.h-calm .cal-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--cs2); font: 400 13.5px/1.4 var(--fb); color: var(--cink2); }
.cal-note .ico { color: var(--clab); margin-top: 1px; }
@media (prefers-color-scheme: light) {
  .h-calm { --cs: #EEF2F5; --cs2: #E3EAF0; --clab: #3D5D78; --cink: #14222E; --cink2: #3F4F5C; --cline: #C5D2DD; --cart: #DCE7F0; }
}

/* safe and private */
.h-list { margin-top: 36px; padding: 6px 0; overflow: hidden; }
.h-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.h-row + .h-row { border-top: 1px solid var(--line); }
.h-row h3, .h-parents h3 { font-size: 17px; }
.h-row p, .h-parents p { margin-top: 5px; font: 400 14.5px/1.45 var(--fb); color: var(--ink2); }
.h-parents { display: flex; gap: 14px; align-items: flex-start; padding: 18px 16px; border-top: 1.5px solid var(--line2); background: linear-gradient(180deg, rgba(255, 201, 61, .07), rgba(255, 201, 61, .02)); }
.h-parents .pq { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; margin-top: 6px; font: 500 14px/1.3 var(--fb); }
@media (prefers-color-scheme: light) {
  .h-parents { background: linear-gradient(180deg, rgba(201, 138, 16, .08), rgba(201, 138, 16, .03)); }
}

/* get the app */
.h-gp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 34px 20px 30px; text-align: center; overflow: hidden; background: radial-gradient(420px 320px at 50% 0%, rgba(255, 201, 61, .2), transparent 70%), var(--panel); }
.h-gt { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.h-gh, .h-gh > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pg .h-appic { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 0 0 1.5px #050806, 0 10px 22px rgba(0, 0, 0, .5); margin-bottom: 6px; }
.h-btns { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; margin-top: 6px; }
.h-btns .btn { width: 100%; }
.h-qr { display: none; flex-direction: column; align-items: center; gap: 12px; flex: none; font: 600 14px/1.3 var(--fh); letter-spacing: .3px; color: var(--ink2); }
.plate { width: 148px; height: 148px; display: grid; place-items: center; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1.5px var(--line2), 0 8px 18px rgba(0, 0, 0, .3); }
.pg .plate img { width: 100px; height: 100px; image-rendering: pixelated; }
@media (prefers-color-scheme: light) {
  .h-gp { background: radial-gradient(420px 320px at 50% 0%, rgba(201, 138, 16, .2), transparent 70%), var(--panel); }
  .pg .h-appic { box-shadow: 0 0 0 1.5px #3A2A12, 0 8px 18px rgba(80, 52, 16, .35); }
}

/* footer */
.h-ft { padding: 20px 0 40px; }
.h-ft .in { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.h-ft .fb, .h-ft .fc { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.h-ft .fc { gap: 2px; }
.h-ft .fc .h-eb { display: none; margin-bottom: 6px; }
.lk-ft { height: 28px; }
.ftl { font: 700 13px/1 var(--fh); letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink2); margin-top: 4px; }
.fq { font: 400 14px/1.4 var(--fb); color: var(--ink2); }
.pg .tl { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font: 700 15px/1 var(--fh); letter-spacing: .3px; color: var(--goldt); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.fls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
@media (max-width: 599.98px) {
  .h-ft .in { border-top: 1px solid var(--line); padding-top: 26px; margin: 0 20px; width: auto; }
}

/* ===== tablet and desktop (≥ 600) ===== */
@media (min-width: 600px) {
  .pg { background: radial-gradient(900px 560px at 64% 0%, #1C3528 0%, rgba(28, 53, 40, 0) 100%), linear-gradient(180deg, #0F1D17 0%, #0A150F 100%); }
  .in { padding: 0 24px; }
  .h-hd .in { height: 88px; padding: 0 24px; }
  .lk-hd { height: 32px; }
  .h-act .btn { width: auto; }
  .h-sec { padding: 72px 0; }
  .h-sh h2, .h-gt h2 { font-size: 30px; }
  .h-sh p:not(.h-eb) { font-size: 17px; }
  .v1 { gap: 6px; }
  .v1 img { flex-basis: 52px; width: 52px; }
  .h-th { --ts: .6; }
  .h-gt .ld { font-size: 17px; }
}
@media (min-width: 600px) and (prefers-color-scheme: light) {
  .pg { background: radial-gradient(900px 560px at 64% 0%, #FFFBF1 0%, rgba(255, 251, 241, 0) 100%), #F2E9D6; }
}

/* ===== tablet only (600–899) ===== */
@media (min-width: 600px) and (max-width: 899.98px) {
  .in { max-width: 768px; }
  .h-copy { max-width: 560px; padding-top: 28px; }
  .h-copy h1 { font-size: 42px; }
  .h-copy .ld { font-size: 17px; }
  .h-hero .in { padding-bottom: 56px; }
  .h-act .b-row { flex-direction: row; justify-content: center; width: auto; }
  /* fan 470 × 330 (+88) */
  .h-fan { width: 470px; aspect-ratio: 470 / 330; }
  .h-fan img { left: -9.3617%; top: -13.3333%; width: 118.7234%; }
  .h-steps { max-width: 500px; margin: 48px auto 0; }
  .h-step .h-slot { height: 150px; }
  .h-grid { max-width: 560px; margin: 44px auto 0; }
  .h-card .h-slot { min-height: 180px; }
  .h-list { max-width: 560px; margin: 40px auto 0; }
  .h-btns { flex-direction: row; justify-content: center; width: auto; }
  .h-btns .btn { width: auto; }
  .h-gp { padding: 44px 40px 40px; }
  .h-gt .ld { max-width: 520px; }
  .h-ft .in { border-top: 1px solid var(--line); padding-top: 32px; max-width: 720px; }
}

/* ===== narrow desktop (900–1119): the step slots are about 210 wide ===== */
@media (min-width: 900px) and (max-width: 1119.98px) {
  .v3 { gap: 12px; }
}

/* ===== desktop (≥ 900) ===== */
@media (min-width: 900px) {
  .in { max-width: 1180px; padding: 0 40px; }
  .h-hd .in { padding: 0 40px; }
  /* Text (max 520) beside the fan (564 × 396 + 88); below 1180 wide the fan gives way first. */
  .h-hero .in { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; gap: 24px; padding-top: 16px; padding-bottom: 72px; min-height: 560px; }
  .h-art { order: 0; flex: 0 1 564px; min-width: 0; }
  .h-art::before { width: 760px; height: 560px; margin: -280px 0 0 -380px; }
  .h-fan { width: 100%; aspect-ratio: 564 / 396; }
  .h-fan img { left: -7.8014%; top: -11.1111%; width: 115.6028%; }
  .h-copy { flex: 1 1 0; min-width: 400px; max-width: 520px; align-items: flex-start; padding-top: 0; gap: 16px; }
  .h-copy h1 { font-size: clamp(44px, 18px + 3vw, 54px); line-height: 1.05; }
  .h-copy .ld { font-size: 18px; line-height: 1.5; margin-bottom: 4px; }
  .h-act { align-items: flex-start; gap: 14px; margin-top: 8px; }
  .h-act .wn { text-align: left; max-width: 440px; }
  .h-act .sn2 { justify-content: flex-start; }
  .h-act .b-row { flex-direction: row; align-items: center; gap: 18px; width: auto; }
  .h-sec { padding: 88px 0; }
  .h-sh h2, .h-gt h2 { font-size: 36px; }
  .h-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 60px; }
  .h-step { padding: 38px 22px 26px; }
  .h-step .h-slot { height: 150px; }
  .h-step h3 { font-size: 20px; }
  .h-step p { font-size: 15px; }
  .h-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 60px; }
  .gA, .gC { grid-column: span 7; }
  .gB, .gD { grid-column: span 5; }
  .gE { grid-column: span 12; }
  .h-card { padding: 18px 18px 26px; }
  .h-card .h-slot { min-height: 180px; }
  .h-card h3 { font-size: 22px; }
  .h-card p { font-size: 15.5px; }
  .h-th { --ts: .5375; gap: 10px; }
  .h-calm { flex-direction: row; align-items: center; gap: 40px; padding: 28px 40px 28px 28px; }
  .cal-art { width: 300px; height: 190px; }
  .pg .cal-art img { width: 250px; }
  .h-calm h3 { font-size: 26px; }
  .h-calm p, .h-calm .cal-note { font-size: 16.5px; max-width: 560px; }
  .cal-tx { flex: 1; }
  .h-list { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0 0; margin-top: 56px; }
  .h-row { padding: 26px 32px; }
  .h-row + .h-row { border-top: 0; }
  .h-row:nth-child(n+3) { border-top: 1px solid var(--line); }
  .h-row:nth-child(even) { border-left: 1px solid var(--line); }
  .h-row h3, .h-parents h3 { font-size: 19px; }
  .h-row p, .h-parents p { font-size: 15.5px; }
  .h-parents { grid-column: 1 / -1; padding: 28px 32px 26px; }
  .h-parents p { max-width: 760px; }
  .h-gp { flex-direction: row; justify-content: space-between; align-items: center; gap: 56px; padding: 56px 72px; text-align: left; }
  .h-gt { align-items: flex-start; max-width: 620px; gap: 16px; }
  .h-gh { flex-direction: row; align-items: center; gap: 22px; }
  .h-gh > div { align-items: flex-start; gap: 12px; }
  .h-gt .ld { font-size: 17px; line-height: 1.5; }
  .h-btns { flex-direction: row; align-items: center; width: auto; margin-top: 8px; }
  .h-btns .btn { width: auto; }
  .h-gt .sn2 { justify-content: flex-start; }
  .h-qr { display: flex; }
  .pg .h-appic { width: 96px; height: 96px; border-radius: 23px; }
  .h-ft { padding: 48px 0 64px; border-top: 1px solid var(--line); }
  .h-ft .in { flex-direction: row; justify-content: space-between; align-items: flex-start; text-align: left; }
  .h-ft .fb, .h-ft .fc { align-items: flex-start; }
  .h-ft .fc .h-eb { display: block; }
  .fls { flex-direction: column; align-items: flex-start; gap: 0; }
}
