/* PokeDrop identity. Shared by the website, player app and owner tools. */
:root {
  --accent: #26734a;
  --accent-dark: #1b5839;
  --accent-soft: #e2efc7;
  --paper: #fcfcf8;
  --surface: #ffffff;
  --ink: #18372d;
  --muted: #52665a;
  --line: #d4dfd5;
  --surface-warm: #f0f4eb;
  --display: 'Space Grotesk', sans-serif;
  --body: 'DM Sans', sans-serif;
  --card-shadow: 0 8px 24px #23212608, 0 2px 0 #2321260d;
}

body { font-family: var(--body); font-size: 1rem; line-height: 1.5; }
::selection { background: var(--accent-soft); color: var(--ink); }
button, input, select, textarea { font-family: inherit; }
button, summary, input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]), select { min-height: 44px; }
input, select, textarea { accent-color: var(--accent); }
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -.05em; }
.eyebrow { font-size: .8125rem; letter-spacing: .085em; }
.wordmark, .brand { font-size: 2rem; line-height: .86; letter-spacing: -.055em; }
.wordmark span, .brand span { color: var(--accent); }
.notice, .practice-banner { background: var(--ink); font-size: .8125rem; }
.notice strong, .practice-banner strong { color: var(--accent-soft); }
.token-tag, .ticker-tag {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-family: var(--display);
  letter-spacing: -.025em;
  transform: rotate(-3deg);
}
.primary, .button.accent, .actions button:first-child {
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 9px;
  box-shadow: 0 3px 0 var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}
.primary:hover:enabled, a.primary:hover, .button.accent:hover:not(:disabled), .actions button:first-child:hover:enabled {
  background: var(--accent-dark);
}
.primary:disabled, .button.accent:disabled { box-shadow: none; }
.subtle, .text-button, .secondary-link { color: var(--accent-dark); text-underline-offset: 4px; }
.subtle:hover, .secondary-link:hover { text-decoration: underline; }
dialog { border-radius: 20px; box-shadow: 0 24px 80px #23212633; }
dialog::backdrop { background: #232126bf; }
.close, .close-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; }
.close { background: var(--surface-warm); border-radius: 50%; }
.hunt-mascot { width: 100%; height: auto; object-fit: contain; padding: 6px; }

/* Website: retain the map-first layout, with a compact character introduction. */
.home-shell .header { padding-top: 25px; padding-bottom: 25px; }
.home-shell nav a { min-height: 44px; display: inline-flex; align-items: center; }
.home-shell nav a:last-child { color: var(--accent-dark); }
.collection-button { background: white; border-color: var(--line); border-radius: 9px; }
.collection-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.home-shell .hunt-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(240px, 300px);
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.home-shell .hunt-heading h1 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); }
.home-shell .hunt-heading > p { font-size: .9375rem; line-height: 1.65; padding: 0; margin: 0; }
.city-switch { border-radius: 11px; }
.city-switch button { border-radius: 7px; }
.city-switch button[aria-pressed="true"] { background: var(--accent); color: white; }
.hunt-workspace { border-radius: 18px; box-shadow: var(--card-shadow); }
.drop-card { border-radius: 10px; padding-top: 17px; padding-bottom: 17px; }
.drop-number { border-radius: 5px; box-shadow: 2px 2px 0 #2321261a; }
.drop-card-copy small, .sidebar-note p { font-size: .8125rem; }
.claim-panel { padding: 25px; }
.claim-panel .button { min-width: 215px; }
.claim-panel :focus-visible { outline-color: var(--accent-soft); }
.map-topline span { border-radius: 6px; padding: 7px 10px; }
.map-key { border-radius: 8px; }
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
.ticker { background: var(--accent); color: white; border-color: var(--accent-dark); letter-spacing: -.025em; }
.story-art {
  position: relative;
  background: var(--accent-soft);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-2deg);
}
.story-art img { object-fit: contain; padding: 26px 22px 14px; }
.art-caption { background: var(--ink); border-color: var(--ink); padding: 18px 22px; }
.art-caption strong { color: var(--accent-soft); }
.steps { gap: 26px; }
.steps li > span { background: var(--accent); color: white; border-color: var(--accent-dark); width: 34px; height: 34px; }
.funding-section { background: var(--surface-warm); }
.calculator, .ledger { border-radius: 16px; box-shadow: var(--card-shadow); }
.calc-result { background: var(--ink); color: white; border-radius: 10px; }
.calc-result strong { color: var(--accent-soft); }
.calc-fields input { background: var(--paper); border-radius: 7px; }
.allocation strong { color: var(--accent-dark); }
.ledger-head span { color: var(--accent-dark); background: var(--accent-soft); border: 0; border-radius: 5px; }
.home-shell footer { background: var(--ink); }
.home-shell .footer-brand span { color: var(--accent-soft); }
.home-shell footer p { color: #d4c8c3; }
.collection-item, .empty-collection { border-radius: 10px; }

/* Player app: a shared visual rhythm for maps, claims and reward choices. */
.app-shell > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; }
.app-shell > header nav { justify-self: center; max-width: 100%; }
.app-shell nav button.selected { background: var(--accent); color: white; }
.app-shell nav button.selected span { color: white; }
.app-shell .account-nav { text-decoration: none; border: 1px solid var(--line); border-radius: 9px; background: white; }
.app-shell .hunt-intro { display: grid; grid-template-columns: minmax(0, 1fr) 175px minmax(230px, 310px); align-items: center; gap: 26px; padding: 32px 0 26px; }
.app-shell .hunt-intro h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); }
.app-shell .hunt-intro .eyebrow { margin-bottom: 12px; }
.app-shell .heading-side { text-align: left; justify-self: end; }
.hunt-layout { border-radius: 18px; box-shadow: var(--card-shadow); }
.drop-button { border-radius: 11px; background: var(--paper); }
.drop-button.active { background: #edf5e6; }
.drop-button:hover { border-color: var(--accent); }
.panel-label span, .map-label, .map-bottom { font-size: .8125rem; }
.map-bottom { color: var(--muted); }
.step-number { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-soft); font-weight: 700; }
.collection-card, .live-claim, .wallet-card { border-radius: 16px; box-shadow: var(--card-shadow); }
.collection-card .badge { color: var(--accent-dark); }
.wallet-explainer { background: var(--accent-soft); border-radius: 20px; padding: 30px; align-self: start; }
.wallet-explainer img { width: 160px; height: 160px; margin: 0 -4px 14px 14px; padding: 6px; }
.wallet-explainer h2 { font-size: 1.8rem; padding-top: 8px; }
.wallet-explainer p { clear: both; color: var(--ink); }
.reward-choice { border-radius: 13px; }
.reward-choice:hover { border-color: var(--accent); }
.token-choice { background: #edf5e6; }
.app-shell .detail { padding-top: 28px; }
.under-hunt { gap: 28px; }

/* Account and owner tools use the same controls and quieter surfaces. */
.account-shell > header > a:not(.brand) { text-underline-offset: 4px; }
.account-layout { gap: 52px; }
.recovery-guide { border-color: var(--line); padding-left: 32px; }
.account-mascot { width: 145px; height: 145px; object-fit: contain; float: right; margin: -12px -4px 12px 16px; padding: 6px; }
.recovery-guide ol { clear: both; }
.signout-box { background: var(--surface-warm); border-color: var(--line); border-radius: 13px; }
.sessions-list li { background: white; border-radius: 12px; }
.sessions-list .current-session { background: #edf5e6; }
.ops-config, .record, .ops-forms details, .device-card { border-radius: 14px; }
.actions button { min-height: 44px; }

@media (max-width: 1100px) {
  .home-shell .hunt-heading { grid-template-columns: minmax(0, 1fr) 140px; gap: 10px 24px; }
  .home-shell .hunt-heading > p { grid-column: 1 / -1; max-width: none; }
  .home-shell .hunt-heading > p br { display: none; }
  .home-shell .hunt-heading > p span { margin-left: 5px; }
  .app-shell > header { gap: 16px; }
  .app-shell > header nav button { padding: 12px; }
  .app-shell .hunt-intro { grid-template-columns: minmax(0, 1fr) 135px minmax(210px, 260px); gap: 18px; }
}
@media (max-width: 900px) {
  .app-shell > header { grid-template-columns: 1fr auto auto; padding: 20px 0 0; }
  .app-shell > header nav { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; padding: 0 0 14px; }
  .app-shell .hunt-intro { grid-template-columns: minmax(0, 1fr) 150px; gap: 14px 22px; }
  .app-shell .hunt-intro .heading-side { grid-column: 1 / -1; justify-self: start; }
  .app-shell .heading-side br { display: none; }
  .wallet-explainer { padding: 24px; }
}
@media (max-width: 760px) {
  .account-layout { gap: 34px; }
  .recovery-guide { padding: 30px 0 0; }
}
@media (max-width: 560px) {
  .wordmark, .brand { font-size: 1.75rem; }
  .home-shell .header { padding-top: 20px; padding-bottom: 20px; }
  .home-shell .hunt-heading { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px 10px; }
  .home-shell .hunt-heading h1 { font-size: clamp(2rem, 8.8vw, 3.2rem); }
  .home-shell .hunt-heading > p { font-size: .9375rem; }
  .home-shell .hunt-heading > p span { display: block; margin: 0; }
  .eyebrow { font-size: .75rem; letter-spacing: .065em; }
  .hunt-workspace, .hunt-layout { border-radius: 14px; }
  .drop-card { padding: 12px 8px; }
  .claim-panel { padding: 20px; }
  .claim-panel .button { min-width: 0; }
  .story-art { border-radius: 17px; box-shadow: 5px 5px 0 var(--ink); max-width: calc(100% - 8px); }
  .story-art img { padding: 20px 18px 12px; }
  .art-caption { padding: 16px; }
  .app-shell .hunt-intro { grid-template-columns: minmax(0, 1fr) 105px; gap: 12px; padding-top: 26px; }
  .app-shell .hunt-intro h1 { font-size: clamp(2rem, 8vw, 2.9rem); }
  .app-shell > header nav { gap: 5px; }
  .app-shell > header nav button { padding: 11px 12px; font-size: .875rem; }
  .app-shell .ticker-tag { padding: 8px 12px; font-size: .9375rem; }
  .app-shell .account-nav { padding: 10px; }
  .app-shell .map-label { flex-wrap: wrap; gap: 4px 12px; }
  .wallet-explainer img { width: 125px; height: 125px; }
  .wallet-explainer h2 { font-size: 1.65rem; }
  .account-mascot { width: 115px; height: 115px; margin-left: 12px; }
  .recovery-guide h2 { font-size: 1.7rem; }
  .map-topline { right: 62px; }
}
@media (max-width: 380px) {
  .home-shell .hunt-heading { grid-template-columns: minmax(0, 1fr) 80px; }
  .app-shell .hunt-intro { grid-template-columns: minmax(0, 1fr) 85px; }
  .drop-card { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The original world concept carries into the compact player/account surfaces. */
.app-shell .hunt-mascot{height:135px;object-fit:cover;object-position:34% 65%;border-radius:14px;padding:0;border:1px solid var(--line)}
.wallet-explainer img{width:100%;height:150px;object-fit:cover;object-position:40% 60%;padding:0;margin:0 0 20px;border-radius:12px;float:none}
.account-mascot{width:160px;height:125px;object-fit:cover;object-position:35% 65%;padding:0;border-radius:12px}
@media(max-width:560px){.app-shell .hunt-mascot{height:110px}.account-mascot{width:125px;height:110px}.wallet-explainer img{width:100%;height:160px}}
