/* The Drop — page styles on top of /css/jord.css (tournament design system). */
:root { --drop-ink-on-dark: #FBF9F4; }
body.drop { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.drop main { flex: 1; }

/* Top bar */
.drop-topbar .brand-name { font-size: 20px; }
.drop-nav { display: flex; gap: var(--s-2); align-items: center; }
.drop-nav a { padding: 8px 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 0; }
.drop-nav a:hover, .drop-nav a.active { background: var(--surface-2); color: var(--ink); }
@media (max-width: 640px) { .drop-nav a.hide-sm { display: none; } }

/* Hero */
.drop-hero { position: relative; overflow: hidden; padding: var(--s-7) 0 var(--s-6); }
.drop-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-6); align-items: center; }
@media (max-width: 820px) { .drop-hero-grid { grid-template-columns: 1fr; text-align: center; } .drop-hero-grid .btn-row { justify-content: center; } }
.drop-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 0.98; }
.drop-hero h1 em { font-style: italic; color: var(--accent); }
.drop-hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin: var(--s-4) auto 0; }
.btn-row { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); }
#ball3d { width: min(540px, 92vw); aspect-ratio: 1; margin: 0 auto; cursor: grab; touch-action: pan-y; overflow: visible; }
#ball3d canvas { width: 100% !important; height: 100% !important; display: block; }

/* Stats strip */
.drop-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-3); margin: var(--s-6) 0; }
.drop-stats .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); text-align: center; }
.drop-stats .stat-value { font-size: clamp(26px, 4vw, 40px); }

/* Sections */
.drop-section { padding: var(--s-6) 0; }
.drop-section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.drop-section-head h2 { font-size: clamp(24px, 3.4vw, 36px); }
.drop-section-head a { font-weight: 600; white-space: nowrap; }

/* Find cards (wall) */
.find-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-4); }
.find-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.find-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.find-card-link { display: block; color: inherit; text-decoration: none; border-bottom: 0; }
.trail-toggle { background: none; border: 0; border-top: 1px solid var(--border); width: 100%; text-align: left; padding: 10px var(--s-4); font: 600 12px var(--font-body); color: var(--ink-2); cursor: pointer; letter-spacing: .04em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.trail-toggle:hover, .trail-toggle.on { color: var(--ink); background: var(--surface-2); }
.trail-caret { transition: transform var(--t-fast); } .trail-toggle.on .trail-caret { transform: rotate(180deg); }
.trail { padding: var(--s-2) var(--s-4) var(--s-4); background: var(--surface-2); font-size: 13px; }
.trail-stats { font-weight: 700; color: var(--ink); margin-bottom: var(--s-2); }
.trail-hop { display: grid; grid-template-columns: 22px auto 1fr; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px dashed var(--border); }
.trail-n { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.trail-hop:first-of-type .trail-n { background: var(--accent); }
.trail-who { font-weight: 600; white-space: nowrap; }
.trail-where { color: var(--ink-2); font-size: 12px; }
.trail-link { display: inline-block; margin-top: var(--s-2); font-weight: 700; font-size: 12px; }
.find-photo { aspect-ratio: 4/3; background: var(--surface-2) center/cover no-repeat; position: relative; }
.find-photo.empty { display: grid; place-items: center; color: var(--ink-3); font-family: var(--font-display); font-size: 42px; }
.find-photo.art { background-size: cover; background-position: center; }
.find-art-text { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #FBF9F4; display: flex; flex-direction: column; gap: 2px; }
.find-photo.ball .find-art-text { right: 40%; }
.find-art-course { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.15; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.find-art-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: rgba(251,249,244,.78); }
.find-chip { position: absolute; left: 10px; top: 10px; background: rgba(26,26,26,0.82); color: #FBF9F4; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--r-pill); }
.find-body { padding: var(--s-3) var(--s-4) var(--s-4); }
.find-name { font-family: var(--font-display); font-size: 18px; }
.find-meta { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.find-msg { font-size: 14px; margin-top: var(--s-2); color: var(--ink); font-style: italic; }

/* Code entry (start) */
.code-boxes { display: flex; gap: 8px; justify-content: center; margin: var(--s-4) 0; }
.code-box { width: 46px; height: 58px; border: 2px solid var(--border-2); border-radius: var(--r-md); background: var(--surface); display: grid; place-items: center; font-family: var(--font-mono); font-size: 26px; font-weight: 700; }
.code-box.filled { border-color: var(--ink); }
.code-box.cursor { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,136,77,0.18); }
.code-real { position: absolute; opacity: 0; width: 1px; height: 1px; }
@media (max-width: 380px) { .code-box { width: 40px; height: 52px; font-size: 22px; } }

/* Journey viewer */
.journey-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-5); align-items: start; }
@media (max-width: 900px) { .journey-layout { grid-template-columns: 1fr; } }
#journey-map { height: 480px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: #0b1526; }
@media (max-width: 640px) { #journey-map { height: 360px; } }
.hop-list { display: flex; flex-direction: column; gap: 0; position: relative; }
.hop { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.hop:hover { background: var(--surface-2); margin: 0 calc(-1 * var(--s-3)); padding-left: var(--s-3); padding-right: var(--s-3); border-radius: var(--r-md); }
.hop-n { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.hop.start .hop-n { background: var(--accent); }
.hop-who { font-weight: 700; }
.hop-where { color: var(--ink-2); font-size: 13px; }
.hop-leg { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.hop-photo { width: 100%; max-width: 260px; border-radius: var(--r-md); margin-top: var(--s-2); display: block; }
.journey-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-bottom: var(--s-4); }
.journey-stats .stat { padding: var(--s-3); text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.journey-stats .stat-value { font-size: 26px; }
.marker-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #FBF9F4; border: 2px solid #FBF9F4; display: grid; place-items: center; font: 700 13px var(--font-body); box-shadow: 0 2px 8px rgba(0,0,0,0.35); cursor: pointer; }
.marker-n.last { background: var(--primary); }

/* Globe */
#globe { position: fixed; inset: 0; top: 61px; }
.globe-panel { position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 5; max-width: 340px; }
.globe-legend { position: absolute; right: var(--s-4); top: var(--s-4); z-index: 5; display: flex; gap: var(--s-2); }
.mapboxgl-popup-content { font-family: var(--font-body); border-radius: var(--r-md); padding: 12px 14px; }
.pop-name { font-family: var(--font-display); font-size: 16px; }
.pop-meta { font-size: 12px; color: #5C5852; }
.pop-link { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 13px; }

/* Footer */
.drop-footer { border-top: 1px solid var(--border); padding: var(--s-5) 0; color: var(--ink-3); font-size: 13px; }
.drop-footer .row { justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); }
.drop-footer a { color: var(--ink-2); }
.empty-note { color: var(--ink-3); text-align: center; padding: var(--s-6) 0; }

/* Home: steps, rewards, globe teaser */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); }
.step .hop-n { margin-bottom: var(--s-3); }
.step h3 { font-size: 22px; margin-bottom: var(--s-2); }
.step p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0; }
.rewards { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.reward-grid.reverse .reward-media { order: 2; }
@media (max-width: 760px) { .reward-grid { grid-template-columns: 1fr; } .reward-grid.reverse .reward-media { order: 0; } }
.reward-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 6/7; background: var(--surface); box-shadow: var(--shadow-md); }
.reward-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel img { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.carousel img.on { opacity: 1; }
.reward-list { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-3); }
.reward-list li { display: grid; gap: 2px; padding-left: 28px; position: relative; }
.reward-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #FBF9F4; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.reward-list strong { font-size: 16px; }
.reward-list span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.globe-teaser { display: grid; grid-template-columns: 320px 1fr; gap: var(--s-6); align-items: center; background: #0b1526; color: #FBF9F4; border-radius: var(--r-xl); padding: var(--s-6); overflow: hidden; }
.globe-teaser h2, .globe-teaser .eyebrow { color: #FBF9F4; } .globe-teaser .eyebrow { color: rgba(251,249,244,.7); } .globe-teaser .find-meta { color: rgba(251,249,244,.75); }
.globe-art { width: 100%; max-width: 320px; mix-blend-mode: screen; animation: spin 90s linear infinite; }   /* image has a black square background — screen blend hides it on the dark panel */
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .globe-teaser { grid-template-columns: 1fr; text-align: center; } .globe-art { margin: 0 auto; max-width: 220px; } }

/* ── The Drop dark theme (on top of jord.css .theme-dark tokens) ───────────── */
html.drop-dark { --bg: #121513; --surface: #1B1F1C; --surface-2: #252A26; --border: rgba(245,242,235,.09); --border-2: rgba(245,242,235,.18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35); --shadow-md: 0 8px 24px rgba(0,0,0,.45); --shadow-lg: 0 20px 48px rgba(0,0,0,.55); }
html.drop-dark body.drop { background: radial-gradient(1200px 600px at 70% -10%, rgba(201,154,94,.10), transparent 60%), var(--bg); }
html.drop-dark .drop-topbar { background: rgba(18,21,19,.86); border-bottom-color: var(--border); }
html.drop-dark .drop-nav a { color: var(--ink-2); } html.drop-dark .drop-nav a:hover, html.drop-dark .drop-nav a.active { background: var(--surface-2); color: var(--ink); }
html.drop-dark .drop-hero h1 em { color: var(--accent); }
html.drop-dark .drop-hero p.lead { color: var(--ink-2); }
html.drop-dark .btn-ghost { color: var(--ink); border-color: var(--border-2); } html.drop-dark .btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-2); }
html.drop-dark .btn-primary { background: var(--accent); color: #141312; } html.drop-dark .btn-primary:hover { background: var(--accent-2); color: #141312; }
html.drop-dark .drop-stats .stat, html.drop-dark .journey-stats .stat, html.drop-dark .step, html.drop-dark .card { background: var(--surface); border-color: var(--border); }
html.drop-dark .find-card { background: var(--surface); border-color: var(--border); }
html.drop-dark .find-photo { background-color: var(--surface-2); }
html.drop-dark .find-photo.typo { background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%); }
html.drop-dark .find-chip { background: rgba(245,242,235,.92); color: #141312; }
html.drop-dark .find-msg { color: var(--ink-2); }
html.drop-dark .trail { background: var(--surface-2); } html.drop-dark .trail-toggle:hover, html.drop-dark .trail-toggle.on { background: var(--surface-2); }
html.drop-dark .trail-n { background: var(--ink); color: #141312; } html.drop-dark .trail-hop:first-of-type .trail-n { background: var(--accent); }
html.drop-dark .hop-n { background: var(--ink); color: #141312; } html.drop-dark .hop.start .hop-n { background: var(--accent); }
html.drop-dark .hop:hover { background: var(--surface-2); }
html.drop-dark .rewards { background: #0E100F; border-color: var(--border); }
html.drop-dark .reward-media { background: var(--surface); }
html.drop-dark .reward-list li::before { background: var(--accent); color: #141312; }
html.drop-dark .globe-teaser { background: #000; border: 1px solid var(--border); }
html.drop-dark .code-box { background: var(--surface); border-color: var(--border-2); color: var(--ink); } html.drop-dark .code-box.filled { border-color: var(--ink); } html.drop-dark .code-box.cursor { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,154,94,.22); }
html.drop-dark .input, html.drop-dark textarea.input, html.drop-dark .select { background: var(--surface-2); color: var(--ink); border-color: var(--border-2); }
html.drop-dark .input::placeholder { color: var(--ink-3); }
html.drop-dark .badge { background: var(--surface-2); color: var(--ink); border-color: var(--border-2); }
html.drop-dark .badge-primary { background: var(--ink); color: #141312; border-color: var(--ink); }
html.drop-dark .badge-success { background: #3F6B49; border-color: #3F6B49; }
html.drop-dark .marker-n { border-color: #141312; } html.drop-dark .marker-n.last { background: var(--ink); color: #141312; }
html.drop-dark .mapboxgl-popup-content { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-md); }
html.drop-dark .mapboxgl-popup-tip { border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; }
html.drop-dark .pop-meta { color: var(--ink-2); } html.drop-dark .pop-link { color: var(--accent); }
html.drop-dark .globe-panel.card { background: rgba(27,31,28,.92); }
html.drop-dark #journey-map { border-color: var(--border); }
html.drop-dark .drop-footer { border-top-color: var(--border); color: var(--ink-3); } html.drop-dark .drop-footer a { color: var(--ink-2); }
html.drop-dark .eyebrow { color: var(--accent); }
html.drop-dark .stat-label { color: var(--ink-3); }
html.drop-dark .empty-note, html.drop-dark .find-meta { color: var(--ink-3); }
html.drop-dark hr { border-top-color: var(--border) !important; }
html.drop-dark .pe { background: var(--surface); } html.drop-dark .pe-hint { color: var(--ink-3); }
html.drop-dark #ball3d img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
html.drop-dark .text-danger { color: #E07B7B; }

/* Ideas card */
.ideas { text-align: left; }
.idea { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); align-items: start; }
.idea:first-of-type { border-top: 0; }
.idea-ico { font-size: 22px; line-height: 1.2; }
.idea-t { font-weight: 700; }
.idea-d { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.ideas.compact .idea-d { font-size: 13px; }

/* Tournament drop cards */
.event-card { border-color: rgba(201,154,94,.45); }
.event-chip { position: static; display: inline-block; background: var(--accent); color: #141312; }
.event-logo { background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #FBF9F4; }
.event-stats { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2); font-size: 12px; color: var(--ink-2); }
.event-stats b { font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-right: 3px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
