/* The site's style, "Supabase": a flat developer-dashboard look. Near-black greys, thin 1px borders, small radii,
   one emerald accent, Inter for text and a monospace face for small uppercase labels. No glows, no gold.
   Loaded after style.css, on top of the night map style (fonts are loaded in index.html). */
:root {
  --bg: #121212; --panel: #1c1c1c; --panel-2: #232323; --line: #2e2e2e;
  --text: #ededed; --muted: #8f8f8f; --trim: #2e2e2e; --wow-gold: #ededed; --void: #3ecf8e;
  --brand: #3ecf8e; --brand-dim: #006239; --brand-line: #3ecf8e4d;
  --f-ui: Inter, system-ui, sans-serif; --f-quest: Inter, system-ui, sans-serif; --f-caps: 'JetBrains Mono', ui-monospace, monospace;
  --r: 8px;
}
body { background: var(--bg); color: var(--text); font-size: 14.5px; letter-spacing: -.005em; }
::selection { background: #3ecf8e55; }

/* background: plain dark with a faint dot grid fading out from the top, like supabase.com */
.void-bg {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, #3ecf8e14, transparent 70%),
    radial-gradient(circle, #ffffff12 1px, transparent 1.2px) 0 0 / 24px 24px,
    var(--bg);
  -webkit-mask: none; mask: none;
}
.void-bg::before { display: none; }
.void-bg::after { display: none; }

/* panels: flat, one thin border, small radius */
.card, .page-order, .modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px #0006;
}
#side, .status-card, .req, .rankbar, .app-state, .char-row {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: none;
}
.wow-gold, .mhead h2, h3, .side-head, .rank-label, .setup h2, .modal h2 { color: var(--text); text-shadow: none; }
.mhead h2, .setup h2, .modal h2 { font-family: Inter, sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -.01em; text-transform: none; }
h3, .side-head, .rank-label, .sim-group {
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.t-order, .t-summoner { color: var(--text); text-shadow: none; }
.tag { font-family: Inter, sans-serif; font-style: normal; color: var(--muted); letter-spacing: 0; }
.lead, .me-meta, .below-note, .note, .form label, .pick-row span { color: var(--muted); }
.link, .demo-banner .link { color: var(--brand); }
.demo-banner { background: #1c1c1c; color: #f5a524; border-bottom: 1px solid #3a2e12; font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* lists */
#side .srow { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
#side .srow:hover { background: #2a2a2a; border-color: #3e3e3e; }
.srow-name small, .pc-name small { color: var(--muted); }
.price, #side .srow .price { font-family: 'JetBrains Mono', monospace; }
.g { color: #f5c451; }

/* form controls */
input, select, textarea {
  background: #1a1a1a !important; color: var(--text) !important; border: 1px solid #363636 !important; border-radius: 6px !important;
  font-family: Inter, sans-serif !important;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px #3ecf8e26 !important; outline: none; }
.paychoice { background: #1a1a1a; border: 1px solid var(--line); border-radius: 6px; }
.paychoice:has(input:checked) { background: #3ecf8e12; border-color: var(--brand); box-shadow: none; }
.fac-switch button { border-radius: 6px; border-color: var(--line); color: var(--muted); font-family: Inter, sans-serif; }

/* buttons: Supabase's green primary, grey secondary */
.btn-primary, .btn-accept, .sim-start {
  background: var(--brand-dim); color: #fff; border: 1px solid var(--brand); border-radius: 6px; box-shadow: none; text-shadow: none;
  font-family: Inter, sans-serif; font-weight: 500; letter-spacing: 0;
}
.btn-primary:hover, .btn-accept:hover, .sim-start:hover { background: #007a47; }
.btn-ghost, .sound-btn, .tiny-btn, .sim-start.stop {
  background: #2a2a2a; color: var(--text); border: 1px solid #3e3e3e; border-radius: 6px; box-shadow: none; font-family: Inter, sans-serif;
}
.btn-ghost:hover, .sound-btn:hover { background: #333; border-color: #4a4a4a; }
.btn-order, .btn-summoner {
  font-family: Inter, sans-serif; font-weight: 600; letter-spacing: -.005em; text-transform: none; text-shadow: none;
  border-radius: 8px; outline: none; transform: none;
}
.btn-order { background: var(--brand-dim); color: #fff; border: 1px solid var(--brand); box-shadow: 0 0 0 1px #000, 0 10px 30px #3ecf8e1f; }
.btn-order:hover { background: #007a47; box-shadow: 0 0 0 1px #000, 0 10px 34px #3ecf8e33; }
.btn-summoner { background: #2a2a2a; color: var(--text); border: 1px solid #3e3e3e; box-shadow: 0 0 0 1px #000; }
.btn-summoner:hover { background: #333; border-color: #555; box-shadow: 0 0 0 1px #000; transform: none; }   /* no glow */
.btn-order:active, .btn-summoner:active { transform: translateY(1px); }
.btn-summoner:active { box-shadow: 0 0 0 1px #000; }
/* "Become a summoner" and what's under it sit a little lower */
.below { margin-top: 52px; }
@media (min-width: 1000px) { [data-page="order"] .below { margin-top: 30px; } }

/* payment and status boxes */
.pay-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.pay-chip { background: #1c1c1c; color: var(--text); border: 1px solid var(--line); border-radius: 999px; font-family: Inter, sans-serif; }
.pay-panel, .pay-leg, .ln-inv, .escrow { background: #171717; color: var(--text); border: 1px solid var(--line); border-radius: 8px; }
.escrow-held { background: #3ecf8e0f; border-color: #3ecf8e40; }
.escrow-released { background: #3ecf8e1a; } .escrow-refunded, .escrow-unpaid { background: #1c1c1c; }
.pay-addr code, .app-key input[readonly], .coords { font-family: 'JetBrains Mono', monospace !important; }
.warn { background: #2a2110; color: #f5c451; border: 1px solid #5a4313; border-radius: 6px; }
.toast { background: #1c1c1c; color: var(--text); border: 1px solid #3e3e3e; border-radius: 8px; text-shadow: none; box-shadow: 0 8px 24px #0008; }
.modal::backdrop { background: #000b; backdrop-filter: blur(2px); }
.countdown { font-family: 'JetBrains Mono', monospace; }

/* map: the land is the painted map as on the night map style; only the sea is dark Supabase grey, with no sea names */
.map { border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.map rect[data-act="map-out"] { fill: #151515; filter: none; }
.lake, .river-water path { fill: #151515; }          /* water matches the sea */
.shore { display: none; }                           /* no outline around the continents */
.map-frame { stroke: none; }
.sea-label { display: none; }
/* the theme swaps the site fonts, so the map labels keep the night map's lettering */
.cont-label { font-family: Cinzel, Georgia, serif; }
.zone text { font-family: 'EB Garamond', Georgia, serif; }
/* the zone name over the map: lettered like the city names (Thunder Bluff, Stormwind), a little bigger than them.
   It pops up above the zone under the cursor: fades in while sliding up (the .pop class, set in js/app.js). */
.region-name { fill: #2a1a05; font-family: 'EB Garamond', Georgia, serif; font-weight: 400; letter-spacing: .01em;
  paint-order: stroke; stroke: #f3d77a; stroke-linejoin: round; }
.map .region-name { font-size: calc(20px / var(--z, 1)); stroke-width: calc(3.5px / var(--z, 1)); }
/* zoomed in: the hover name for the other zones grows too (about 1.6x at full zoom), less than the zoomed zone's title */
.map.zoomed #region-name { font-size: calc(20px * (1 + (var(--z, 1) - 1) * .12) / var(--z, 1)); stroke-width: calc(3.5px * (1 + (var(--z, 1) - 1) * .12) / var(--z, 1)); }
/* the zone you zoomed into: its name grows with the zoom (about 2.25x at full zoom) */
.map .region-title { font-size: calc(20px * (1 + (var(--z, 1) - 1) * .25) / var(--z, 1)); stroke-width: calc(3.5px * (1 + (var(--z, 1) - 1) * .25) / var(--z, 1)); }
.region-name.pop { animation: region-pop .35s ease-out both; }
@keyframes region-pop { from { opacity: 0; transform: translateY(calc(10px / var(--z, 1))); } to { opacity: 1; transform: none; } }
/* clicking a zone: its hover name fades out while its big title fades in (js/app.js markRegion) */
.region-title.show { animation: region-show .5s ease-out both; }
#region-name.leave { animation: region-leave .45s ease-out both; }
@keyframes region-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes region-leave { from { opacity: 1; } to { opacity: 0; } }
.map-back { background: #1c1c1ce6; }
/* summoner pins: the purple sparkle from the summoner list. On the world view they're only markers (no clicks). */
.pin { pointer-events: none; cursor: default; }
/* pins take the summoner's rank colour (--rc, WoW rarity: white, green, blue, purple, orange) */
.pin .core, .ipin .ring { fill: color-mix(in srgb, var(--rc) 22%, #141414); stroke: var(--rc); stroke-width: 1.2; }
.pin .pulse { fill: var(--rc); }   /* the ripple around a world-view pin */
.pin text, .ipin .ini { fill: color-mix(in srgb, var(--rc) 70%, #fff); font: 400 8px Inter, sans-serif; text-anchor: middle; }
.ipin:hover .ring, .ipin:focus .ring, .ipin.sel .ring { fill: color-mix(in srgb, var(--rc) 38%, #141414); stroke: color-mix(in srgb, var(--rc) 70%, #fff); }
.ipin .nm { stroke: #121212; font-family: Inter, sans-serif; }
/* the price: a small dark box above a summoner's dot, fading in on hover */
.ipin .tip { opacity: 0; transition: opacity .2s; pointer-events: none; }
.ipin:hover .tip, .ipin:focus .tip, .ipin.sel .tip { opacity: 1; }
.ipin .tip-bg { fill: #1c1c1cf2; stroke: #3e3e3e; stroke-width: 1; }
.ipin .tip .nm { stroke: none; }
.ipin .tip .gold { fill: #f5c451; } .ipin .tip .silver { fill: #c7ccd4; } .ipin .tip .sep { fill: #8f8f8f; } .ipin .tip .usd { fill: #d8b4fe; }
.ipin .nm.sub { fill: #d8b4fe; }
.pin.fresh .core, .ipin.fresh .ring { fill: #5b3a00; stroke: #f5c451; }

/* title: clean white wordmark, TAXI in emerald; no gold rules */
.logo, .mini-logo {
  font-family: Inter, sans-serif; font-weight: 700; letter-spacing: -.035em; text-transform: none;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ededed; -webkit-text-fill-color: #ededed;
  filter: none;
}
.logo span, .mini-logo span { background: none; color: #ededed; -webkit-text-fill-color: #ededed; }   /* the whole name in white */
.hero .logo { border: 0; box-shadow: none; padding: .5em 0 .1em; }   /* room at the top: the shard is taller than the letters */
.hero .logo .logo-shard, .logo-shard { filter: none; }
@media (max-width: 760px) { .hero-compact .logo { letter-spacing: -.03em; } }
@media (min-width: 1000px) { [data-page="order"] .hero-compact .logo { letter-spacing: -.03em; } }

/* local testing panels */
.sim-panel { background: #1c1c1c; color: var(--text); border: 1px solid #3e3e3e; border-radius: 10px; font: 13.5px/1.4 Inter, sans-serif; }
.sim-item { background: #232323; color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.sim-item:hover { background: #2a2a2a; border-color: var(--brand); }
.sim-link { color: var(--brand); } .sim-x, .sim-note { color: var(--muted); }
.sim-btn { background: #2a2a2a; color: #ededed; border: 1px solid #3e3e3e; border-radius: 8px; box-shadow: none; font-family: Inter, sans-serif; font-weight: 600; }
.sim-btn.on { background: var(--brand-dim); border-color: var(--brand); color: #fff; box-shadow: none; }

/* region + ruleset picker above the summoner list */
.realm-pick { display: grid; gap: 6px; margin-bottom: 12px; }
.realm-pick .pick-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.realm-switch { margin-bottom: 4px; }
.realm-switch.rules { grid-template-columns: 1fr 1fr; }
.realm-switch button { font-weight: 500; font-size: 13px; padding: 7px 6px; }
.realm-switch button.on { background: var(--brand-dim); border-color: var(--brand); color: #fff; }

/* rank icon: a sparkle in a ring, in the rank colour */
.rank-icon .ri-bg { fill: color-mix(in srgb, var(--rc) 20%, #141414); stroke: var(--rc); stroke-width: 1.6; }
.rank-icon .ri-star { fill: color-mix(in srgb, var(--rc) 75%, #fff); }
.badge svg.rank-icon { fill: none; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--rc) 55%, transparent)); }
.rank-gem svg.rank-icon { fill: none; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--rc) 50%, transparent)); }
/* the summoner list and pick panel: the sparkle takes the summoner's rank colour */
.anon-ico { background: color-mix(in srgb, var(--rc, #a855f7) 22%, #141414); color: color-mix(in srgb, var(--rc, #a855f7) 70%, #fff); border-color: var(--rc, #7c3aed); }

/* how driver ranks work: under the ways to pay */
.rank-info { margin-top: 18px; text-align: left; }
.rank-info .pay-label { display: block; text-align: center; margin-bottom: 6px; }
.rank-info p { font-size: 12px; line-height: 1.45; margin: 0 0 8px; }
.rank-info p b { color: var(--text); font-weight: 600; }
.rank-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank-info li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 8px;
  background: #1c1c1c; border: 1px solid var(--line); border-radius: 8px; }
.rank-info li .rank-icon { width: 18px; height: 18px; flex: none; }
.rank-info li .ri-name { color: var(--rc); font-weight: 600; flex: 1; }
.rank-info li .muted { font-size: 12px; }

/* after the ride: tip the driver (QR for the coin you paid with, or a gold hint) */
.tip-box { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 14px;
  background: #1c1c1c; border: 1px solid #a855c766; border-radius: 10px; text-align: left; }
.tip-box p { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.tip-box p b { color: var(--text); }
.tip-qr { flex: none; padding: 6px; background: #fff; border-radius: 8px; line-height: 0; }
.tip-qr img, .tip-qr canvas { width: 112px; height: 112px; }
.tip-txt { min-width: 0; }
.tip-addr { display: block; font: 11px 'JetBrains Mono', monospace; color: var(--text); word-break: break-all; margin-bottom: 8px; }
.tip-box.gold-tip { border-color: #b8913a66; }
.tip-box.gold-tip .coin { width: 18px; height: 18px; margin: 0; flex: none; }
.tip-box.gold-tip p { margin: 0; }

/* Report: a third button next to Like / Dislike, and its window */
.rate .report { color: #f59e0b; border-color: #f59e0b66; }
.rate .report:hover { background: #f59e0b1a; }
.modal-report { width: min(520px, calc(100vw - 32px)); }
.modal-report textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 130px; margin-top: 4px;
  font: 14px/1.5 Inter, sans-serif; padding: 10px 12px; border-radius: 8px; }
.report-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.report-foot .btns { display: flex; gap: 8px; }
.btn-danger { background: #7f1d1d; color: #fff; border: 1px solid #b91c1c; border-radius: 8px; padding: 9px 16px;
  font: 600 14px Inter, sans-serif; cursor: pointer; }
.btn-danger:hover { background: #991b1b; }
.btn-danger:disabled { opacity: .6; cursor: default; }
