:root {
  --bg: #eef4ea;
  --bg2: #e4ecdf;
  --card: #fbfaf4;
  --ink: #243028;
  --soft: #5a6758;
  --line: #cfd9c4;
  --accent: #3d8f6a;
  --accent-ink: #fff;
  --accent-dark: #2a5f48;
  --warm: #c4a06a;
  --warm-soft: #e8d4ae;
  --sky1: #b8d4ea;
  --sky2: #eef4ea;
  --khaki: #c4a574;
  --scout-blue: #5a9ec8;
  --passport: #2a5f48;
  --common: #6b9e78;
  --uncommon: #4a8fc7;
  --rare: #9b6bc9;
  --legendary: #d4a017;
  --shadow: 0 8px 24px rgba(60, 80, 50, 0.08);
  --radius: 18px;
  --tap: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky1) 0%, var(--bg) 28%, var(--bg2) 100%);
  min-height: 100vh;
  position: relative;
}
.sky {
  position: fixed; inset: 0 0 auto 0; height: 180px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(255,255,255,.55), transparent 70%);
}
.top, .tabs, main, .foot { position: relative; z-index: 1; }

.top {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px 6px;
}
.crest {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(145deg, #eef5ea, #d5e4c8);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.top h1 { margin: 0; font-size: 1.35rem; letter-spacing: .01em; color: var(--accent-dark); }
.tag { margin: 2px 0 0; color: var(--soft); font-size: .88rem; }

.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; min-height: 40px; padding: 8px 14px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: rgba(255,255,255,.7); color: var(--ink);
  font: 600 13px/1 system-ui; cursor: pointer;
}
.tabs button.on {
  background: var(--accent); color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(90,154,106,.35);
}

main { padding: 0 14px 48px; max-width: 720px; margin: 0 auto; }
.view { display: none; animation: fade .25s ease; }
.view.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

h2 { margin: 4px 0 6px; font-size: 1.25rem; color: var(--accent-dark); }
.hint, .fine { color: var(--soft); font-size: .9rem; }
.fine { font-size: .8rem; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.card.soft { background: linear-gradient(160deg, #fffdf8, #eef6ea); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--soft); }
.tip h3 { color: var(--warm); }

.how { margin: 12px 0 8px; padding-left: 1.2rem; color: var(--soft); }
.how li { margin: .4em 0; }
.how strong { color: var(--ink); }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 8px; text-align: center; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 1.35rem; color: var(--accent-dark); }
.stat span { font-size: .75rem; color: var(--soft); }

.scan-panel { text-align: center; }
.photo-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.photo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 10px 16px; border-radius: 999px;
  background: var(--warm-soft); border: 1.5px dashed #d4a86a; cursor: pointer;
  font-weight: 600; color: #7a5520;
}
.photo-preview {
  width: 100%; max-height: 160px; border-radius: 14px; overflow: hidden;
  margin-bottom: 12px; background: #eee;
}
.photo-preview img { width: 100%; height: 160px; object-fit: cover; display: block; }

button.big {
  width: 100%; min-height: 56px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; font: 700 1.05rem system-ui; cursor: pointer;
  box-shadow: 0 8px 20px rgba(61,111,74,.3);
}
button.big:active { transform: scale(.98); }
.ghost {
  background: transparent; border: 1.5px solid var(--line); color: var(--soft);
  border-radius: 999px; padding: 10px 14px; font: 600 13px system-ui; cursor: pointer;
  min-height: 44px;
}
.ghost.small { min-height: 36px; padding: 6px 12px; font-size: 12px; }

.encounter {
  margin-top: 14px; text-align: center;
  animation: pop .45s cubic-bezier(.2,1.2,.4,1);
}
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.encounter .bird-art {
  width: 120px; height: 120px; margin: 0 auto 10px; border-radius: 28px;
  display: grid; place-items: center; font-size: 64px;
  border: 3px solid var(--line); background: #fff;
}
.encounter.new .bird-art {
  border-color: var(--legendary);
  box-shadow: 0 0 0 6px rgba(212,160,23,.25), var(--shadow);
}
.encounter h3 { margin: 0 0 4px; font-size: 1.3rem; }
.encounter .banner {
  display: inline-block; margin: 8px 0 12px; padding: 6px 14px;
  border-radius: 999px; font-weight: 700; font-size: .85rem;
}
.banner.new { background: #fff3cd; color: #8a6d00; }
.banner.again { background: #e8f0e4; color: var(--accent-dark); }
.spot-again {
  margin-top: 8px; width: 100%; min-height: var(--tap);
  border: 0; border-radius: 999px; background: var(--warm); color: #3d2a08;
  font: 700 14px system-ui; cursor: pointer;
}

.rarity-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.pill {
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: #fff;
}
.pill.common { background: var(--common); }
.pill.uncommon { background: var(--uncommon); }
.pill.rare { background: var(--rare); }
.pill.legendary { background: linear-gradient(135deg, #f0c14b, #d4a017); color: #3d2a08; }

.collect-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 520px) { .collect-grid { grid-template-columns: repeat(3, 1fr); } }
.slot {
  aspect-ratio: 1 / 1.05; border-radius: 16px; border: 2px dashed var(--line);
  background: rgba(255,255,255,.45); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 10px; text-align: center;
  color: var(--soft); position: relative;
}
.slot.owned {
  border-style: solid; background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); cursor: pointer;
}
.slot.owned.common { border-color: var(--common); }
.slot.owned.uncommon { border-color: var(--uncommon); }
.slot.owned.rare { border-color: var(--rare); }
.slot.owned.legendary {
  border-color: var(--legendary);
  background: linear-gradient(160deg, #fffdf8, #fff6d6);
}
.slot .emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 6px; }
.slot.locked .emoji { filter: grayscale(1); opacity: .35; font-size: 1.8rem; }
.slot .name { font-size: .82rem; font-weight: 700; line-height: 1.2; }
.slot .meta { font-size: .7rem; color: var(--soft); margin-top: 4px; }
.slot .badge {
  position: absolute; top: 8px; right: 8px;
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  padding: 2px 6px; border-radius: 6px; color: #fff;
}
.slot .badge.common { background: var(--common); }
.slot .badge.uncommon { background: var(--uncommon); }
.slot .badge.rare { background: var(--rare); }
.slot .badge.legendary { background: var(--legendary); color: #3d2a08; }

.quiz { text-align: center; }
.play-call {
  width: 100%; min-height: 56px; margin: 8px 0 14px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #6aa8d8, #3d7eb0); color: #fff;
  font: 700 1rem system-ui; cursor: pointer;
}
.choices { display: grid; gap: 8px; }
.choices button {
  min-height: var(--tap); border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; font: 600 15px system-ui; cursor: pointer; color: var(--ink);
  padding: 10px 12px;
}
.choices button.correct { background: #d8f0dc; border-color: var(--accent); }
.choices button.wrong { background: #fde8e4; border-color: #e08a7a; }
.practice-note {
  display: inline-block; margin-top: 4px; font-size: .75rem; color: #8a6d00;
  background: #fff3cd; padding: 2px 8px; border-radius: 6px;
}

.map-wrap { padding: 10px; }
#ausMap { width: 100%; height: auto; display: block; }
#ausMap .land { fill: #d7e6c8; stroke: #8aaa78; stroke-width: 2; }
#ausMap .land.tas { fill: #d7e6c8; }
#ausMap .map-title { fill: var(--soft); font: 600 14px system-ui; }
#ausMap .region {
  fill: rgba(90,154,106,.15); stroke: var(--accent); stroke-width: 1.5;
  opacity: 0; transition: opacity .3s;
}
#ausMap .region.on { opacity: 1; }
.map-pick {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center;
}
.map-pick button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 10px; font: 600 12px system-ui; cursor: pointer; color: var(--ink);
}
.map-pick button.on { background: var(--accent); color: #fff; border-color: transparent; }
.map-detail p { margin: .35em 0; }

.cards { display: grid; gap: 10px; }
.cards.tight { margin-top: 12px; }
.bird-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow);
}
.bird-card .art {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-size: 32px; background: #eef6ea; border: 1px solid var(--line);
}
.bird-card h3 { margin: 0 0 4px; font-size: 1rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bird-card .body { color: var(--soft); font-size: .9rem; }
.bird-card .body b { color: var(--ink); font-weight: 600; }
.filter-row { margin-bottom: 10px; color: var(--soft); font-size: .9rem; }
.filter-row select {
  min-height: 40px; border-radius: 10px; border: 1px solid var(--line);
  padding: 6px 10px; font: 600 14px system-ui; background: #fff;
}

.board { padding-left: 0; list-style: none; margin: 0 0 14px; }
.board li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.board .rank {
  width: 28px; height: 28px; border-radius: 50%; background: var(--warm-soft);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #7a5520;
}
.board .who { flex: 1; font-weight: 700; }
.board .pts { color: var(--soft); font-size: .85rem; text-align: right; }

.foot {
  text-align: center; padding: 8px 14px 28px; color: var(--soft); font-size: .8rem;
  display: flex; justify-content: center; gap: 10px;
}

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(40,50,35,.45); z-index: 20;
  display: grid; place-items: end center; padding: 16px;
}
.modal {
  width: min(480px, 100%); max-height: 80vh; overflow: auto;
  background: var(--card); border-radius: 22px 22px 18px 18px;
  padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.modal .close {
  float: right; border: 0; background: var(--line); width: 36px; height: 36px;
  border-radius: 50%; font-size: 18px; cursor: pointer;
}

/* --- player photo scan / collection --- */
.photo-btn.primary-photo {
  width: 100%;
  min-height: 56px;
  background: linear-gradient(135deg, #6aa8d8, #3d7eb0);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
}
.warn { color: #a05a20; font-weight: 600; }
.species-pick { margin-top: 14px; text-align: left; }
.species-pick h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--accent-dark); }
.species-list { display: grid; gap: 8px; margin: 10px 0; max-height: 280px; overflow: auto; }
.species-btn {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center;
  min-height: 48px; padding: 8px 10px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left;
  font: 600 14px system-ui; color: var(--ink);
}
.species-btn .sb-emoji { font-size: 1.4rem; text-align: center; }
.species-btn .sb-name { font-size: .9rem; }
.hero-wrap {
  width: 100%; max-width: 280px; margin: 0 auto 12px; border-radius: 20px; overflow: hidden;
  border: 3px solid var(--line); background: #eee; aspect-ratio: 1;
}
.hero-wrap.new { border-color: var(--legendary); box-shadow: 0 0 0 6px rgba(212,160,23,.25); }
.hero-photo, .modal-hero {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.modal-hero {
  width: 100%; height: 220px; border-radius: 16px; margin-bottom: 10px; object-fit: cover;
}
.slot.owned { overflow: hidden; padding: 0; justify-content: flex-end; }
.slot .slot-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.slot.owned .badge { z-index: 2; }
.slot.owned .name, .slot.owned .meta {
  position: relative; z-index: 1; width: 100%; padding: 4px 8px;
  background: linear-gradient(transparent, rgba(20,30,18,.78));
  color: #fff; margin: 0;
}
.slot.owned .name { padding-top: 28px; font-size: .8rem; }
.slot.owned .meta { padding-bottom: 8px; color: rgba(255,255,255,.85); }
.slot .sil { font-size: 1.6rem; opacity: .4; margin-bottom: 6px; }
.slot .need-photo { display: block; font-size: .65rem; color: #a05a20; }

/* --- vicinity hunt map --- */
.hunt-panel { text-align: left; }
.hunt-status {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px;
}
.hunt-status .pill-demo {
  background: #fff3cd; color: #7a5520; font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.hunt-map {
  position: relative; width: 100%; aspect-ratio: 1.1; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, #b8d9a0 0 18%, transparent 19%),
    radial-gradient(circle at 70% 55%, #a8cfe8 0 22%, transparent 23%),
    radial-gradient(circle at 55% 25%, #c5e0b0 0 12%, transparent 13%),
    linear-gradient(160deg, #dcecc8 0%, #c8dfb0 40%, #b5d4a0 100%);
  border: 1.5px solid var(--line);
}
.hunt-map .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(60,80,50,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,80,50,.06) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.hunt-map .you {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #3d7eb0; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transform: translate(-50%, -50%); z-index: 3;
}
.hunt-map .you::after {
  content: 'YOU'; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  font: 800 9px system-ui; color: #1a3a55; white-space: nowrap;
}
.hunt-pin {
  position: absolute; transform: translate(-50%, -100%); z-index: 2; cursor: pointer;
  border: 0; background: transparent; padding: 0; text-align: center;
}
.hunt-pin .pin-bubble {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2);
  font-size: 20px;
}
.hunt-pin .pin-bubble > span { transform: rotate(45deg); display: block; }
.hunt-pin.common .pin-bubble { background: var(--common); }
.hunt-pin.uncommon .pin-bubble { background: var(--uncommon); }
.hunt-pin.rare .pin-bubble { background: var(--rare); }
.hunt-pin.legendary .pin-bubble { background: var(--legendary); }
.hunt-pin .pin-label {
  margin-top: 4px; font: 700 10px system-ui; color: var(--ink);
  background: rgba(255,253,248,.92); padding: 2px 6px; border-radius: 6px;
  max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mission-list { display: grid; gap: 8px; margin-top: 12px; }
.mission {
  display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.mission .m-art {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; background: #eef6ea;
}
.mission.rare .m-art, .mission.legendary .m-art {
  box-shadow: 0 0 0 2px var(--legendary);
}
.privacy-note {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: #eef4f8; color: var(--soft); font-size: .8rem;
}

/* --- real species photos --- */
.sb-photo, .map-chip, .art-photo, .hunt-detail-photo, .map-detail-photo {
  object-fit: cover; background: #ddd;
}
.sb-photo {
  width: 40px; height: 40px; border-radius: 10px; display: block;
}
.species-btn { grid-template-columns: 40px 1fr auto; }
.map-chip {
  width: 22px; height: 22px; border-radius: 6px; vertical-align: middle;
  display: inline-block; margin-right: 2px;
}
.art-photo {
  width: 64px; height: 64px; border-radius: 16px; display: block;
  border: 1px solid var(--line);
}
.bird-card { grid-template-columns: 64px 1fr; }
.locked-art {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: #e8ebe4; border: 1px dashed var(--line); font-size: 1.4rem; color: var(--soft);
}
.pin-bubble img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  transform: rotate(45deg); display: block;
}
.pin-bubble > span { transform: none !important; display: grid; place-items: center; }
.pin-bubble { overflow: hidden; }
.m-art { overflow: hidden; padding: 0 !important; }
.m-art img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.hunt-detail-photo, .map-detail-photo {
  width: 100%; height: 160px; border-radius: 14px; object-fit: cover; margin-bottom: 10px;
  display: block; border: 1px solid var(--line);
}
.slot-mystery {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; flex: 1; color: var(--soft);
}
.ref-photo { filter: saturate(.85); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }


/* --- Ari brand: explorer / Mission HQ --- */
.crest-ari {
  width: 56px; height: 56px; border-radius: 16px; object-fit: cover;
  border: 2.5px solid var(--khaki); box-shadow: var(--shadow);
  background: linear-gradient(145deg, #dff0ff, #f5efe3);
}
.ari-hero {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center;
  background:
    linear-gradient(145deg, rgba(90,158,200,.12), transparent 50%),
    linear-gradient(160deg, #fbfaf4, #e8f2e4);
  border: 2px solid var(--khaki);
}
@media (max-width: 420px) {
  .ari-hero { grid-template-columns: 1fr; text-align: center; }
  .ari-mascot-wrap { margin: 0 auto; }
}
.ari-mascot-wrap { position: relative; width: 120px; }
.ari-mascot {
  width: 120px; height: auto; display: block;
  filter: drop-shadow(0 6px 12px rgba(40,60,40,.18));
}
.field-badge {
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  background: var(--passport); color: #fff; font: 800 10px/1 system-ui;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  border: 2px solid var(--khaki);
}
.ari-strip {
  display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center;
  border: 2px dashed var(--khaki); background: linear-gradient(90deg, #e8f4fc, #fbfaf4);
  margin-bottom: 12px;
}
.ari-strip img {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  border: 2px solid var(--scout-blue);
}
.ari-strip b { color: var(--accent-dark); }

/* Field-log / passport frames around REAL photos */
.species-btn {
  border: 1.5px solid var(--khaki) !important;
  background: linear-gradient(180deg, #fff, #f4efe4) !important;
}
.sb-photo {
  border: 2px solid var(--passport); box-shadow: inset 0 0 0 1px #fff;
}
.hero-wrap {
  border: 4px solid var(--passport) !important;
  box-shadow: 0 0 0 3px var(--khaki), var(--shadow) !important;
  border-radius: 12px !important;
  position: relative;
}
.hero-wrap::after {
  content: "FIELD LOG";
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(42,95,72,.9); color: #fff;
  font: 800 9px/1 system-ui; letter-spacing: .06em;
  padding: 4px 6px; border-radius: 4px;
}
.slot.owned {
  border-width: 3px !important;
  border-color: var(--passport) !important;
}
.slot.owned::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(196,165,116,.55);
}
.art-photo {
  border: 2px solid var(--passport) !important;
  box-shadow: 0 0 0 2px var(--khaki);
}
.m-art {
  border: 2px solid var(--passport);
  box-shadow: 0 0 0 2px var(--khaki);
}
.hunt-detail-photo, .map-detail-photo, .modal-hero {
  border: 3px solid var(--passport) !important;
  box-shadow: 0 0 0 3px var(--khaki);
}
.pin-bubble {
  border-width: 3px !important;
  border-color: var(--khaki) !important;
}
.tabs button.on {
  background: var(--passport) !important;
  box-shadow: 0 4px 12px rgba(42,95,72,.35);
}
button.big {
  background: linear-gradient(135deg, var(--scout-blue), #2f6f96) !important;
  box-shadow: 0 8px 20px rgba(47,111,150,.3) !important;
}
.spot-again {
  background: var(--khaki) !important;
  color: #2a2418 !important;
}
.stat {
  border-color: var(--khaki);
  background: linear-gradient(180deg, #fff, #f3eee0);
}

/* ---------- v1.0 shop / about / gate ---------- */
.shop-pill { margin-top: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0;
  background: #d9792b; color: #fff; font: 700 14px/1 system-ui; cursor: pointer; box-shadow: 0 4px 12px rgba(217,121,43,.35); }
.shop-hero img { width: 100%; border-radius: 14px; display: block; margin-bottom: 10px; }
.shop-hero p { margin-bottom: 12px; }
.shop-hero button[disabled] { opacity: .6; cursor: default; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.shop-item { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.shop-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.shop-item.soon { flex-direction: row; align-items: center; margin-bottom: 10px; }
.shop-item.soon img { width: 45%; }
.about-hero { display: flex; gap: 14px; align-items: center; }
.about-hero img { border-radius: 16px; }
#aboutBody .card { margin-bottom: 10px; }
#aboutBody .card p + p { margin-top: 8px; }
.credits ul { margin: 6px 0 8px; padding-left: 18px; font-size: .85rem; color: var(--soft); }
.credits li { margin: 3px 0; }
.credits a { color: var(--accent-dark); }
.modal.gate { text-align: center; max-width: 340px; }
.gate-q { font-size: 1.15rem; font-weight: 700; color: var(--accent-dark); margin: 10px 0; }
#gateIn { width: 120px; font-size: 1.5rem; text-align: center; padding: 8px; border-radius: 12px; border: 2px solid var(--line); margin-bottom: 12px; }
