:root {
  --bg: #07040f;
  --panel: #120c22;
  --panel-2: #1a1230;
  --line: #2d2150;
  --text: #ece6ff;
  --muted: #9a8fbf;
  --void: #a855f7;
  --void-2: #7c3aed;
  --green: #22c55e;
  --green-2: #16a34a;
  --gold: #f4c84a;
  --up: #4ade80;
  --down: #f87171;
  --horde: #e0453a;
  --alliance: #3b82f6;
  --r: 14px;
  --f-ui: Marcellus, Georgia, serif;          /* close to the Friz Quadrata look of the WoW UI */
  --f-quest: Metamorphous, Georgia, serif;     /* close to the Morpheus look of WoW quest titles */
  --f-caps: "Marcellus SC", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--f-ui);
  min-height: 100vh;
  overflow-x: hidden;
}
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.up { color: var(--up); }
.down { color: var(--down); }
.g { color: var(--gold); font-weight: 700; margin-left: 1px; }
.realm { color: var(--muted); font-weight: 400; }
.fac.Horde { color: var(--horde); }
.fac.Alliance { color: var(--alliance); }

/* background */
.void-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, #4c1d9566, transparent 70%),
    radial-gradient(ellipse 30% 25% at 50% 38%, #a855f733, transparent 70%),
    radial-gradient(circle at 15% 85%, #1e3a8a33, transparent 40%),
    var(--bg);
}
.void-bg::after {
  content: ''; position: absolute; left: 50%; top: 38%; width: 520px; height: 520px; max-width: 90vw; max-height: 90vw;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, #a855f722, transparent 30%, #7c3aed22, transparent 60%, #a855f722, transparent);
  filter: blur(18px); animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.demo-banner {
  background: #3b2a06; color: #fde68a; text-align: center; padding: 6px 16px; font-size: 13px;
  border-bottom: 1px solid #78560f;
}
.demo-banner[hidden] { display: none; }
.link { background: none; border: 0; color: var(--void); padding: 0; text-decoration: underline; }
.demo-banner .link { color: #fde68a; }

.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.mini-logo { font: 900 18px Cinzel, serif; letter-spacing: .12em; }
.mini-logo span, .logo span { color: var(--void); }
#topbar-right { display: flex; align-items: center; gap: 12px; }
.email { font-size: 13px; }
.btn-google {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1f1f1f;
  border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 600;
}
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 16px; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--void); }
.btn-primary {
  background: var(--void-2); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700;
}
.btn-primary:hover { background: var(--void); }

/* hero */
main { padding: 0 16px 60px; }
.hero { text-align: center; max-width: 820px; margin: 7vh auto 0; }
.logo {
  font: 900 clamp(48px, 12vw, 116px)/1 Cinzel, serif; letter-spacing: .06em; margin: 0;
  background: linear-gradient(180deg, #fff 10%, #d8b4fe 55%, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px #a855f777);
}
.logo span { -webkit-text-fill-color: #c084fc; }
.tag { color: var(--muted); font-size: 18px; margin: 10px 0 26px; }
.lead { font-size: 16px; }
.me { margin: 0 auto 8px; }
.me-name { font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.me-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; }
.btn-order, .btn-summoner {
  position: relative; border: 0; color: #fff; font-weight: 800; letter-spacing: .08em; border-radius: 18px;
  transition: transform .12s, box-shadow .2s;
}
.btn-order {
  width: min(520px, 100%); padding: 28px 24px; font-size: clamp(22px, 5vw, 30px);
  background: linear-gradient(180deg, #34d36c, var(--green-2));
  box-shadow: 0 10px 0 #0f6b30, 0 0 48px #22c55e55;
}
.btn-order:hover { transform: translateY(-2px); box-shadow: 0 12px 0 #0f6b30, 0 0 70px #22c55e88; }
.btn-order:active { transform: translateY(6px); box-shadow: 0 4px 0 #0f6b30, 0 0 40px #22c55e55; }
.btn-summoner {
  width: min(520px, 100%); padding: 28px 24px; font-size: clamp(22px, 5vw, 30px);
  background: linear-gradient(180deg, #a855f7, #6d28d9);
  box-shadow: 0 10px 0 #3b1580, 0 0 48px #a855f755;
}
.btn-summoner:hover { transform: translateY(-2px); box-shadow: 0 12px 0 #3b1580, 0 0 70px #a855f788; }
.btn-summoner:active { transform: translateY(6px); box-shadow: 0 4px 0 #3b1580, 0 0 40px #a855f755; }
.btn-order.small, .btn-summoner.small { width: auto; padding: 12px 18px; font-size: 15px; letter-spacing: .04em; border-radius: 12px; box-shadow: 0 4px 0 #0f6b30; }
.btn-summoner.small { box-shadow: 0 4px 0 #3b1580; }
.ico { opacity: .85; margin-right: 6px; }
.pill {
  position: absolute; top: -8px; right: -8px; background: var(--down); color: #fff; font-size: 12px;
  min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; letter-spacing: 0;
}

/* cards / forms */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.setup { max-width: 560px; margin: 8vh auto 0; }
.setup h2 { margin: 0 0 4px; }
.form { display: grid; gap: 14px; margin-top: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.form .row { display: grid; grid-template-columns: auto 1fr 90px; gap: 12px; align-items: end; }
input, select {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  padding: 10px 12px; font: inherit; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--void); outline-offset: 1px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg input { display: none; }
.seg label { padding: 9px 14px; color: var(--muted); cursor: pointer; font-size: 14px; }
.seg input:checked + label.Horde { background: #e0453a33; color: #ff9a92; }
.seg input:checked + label.Alliance { background: #3b82f633; color: #9cc3ff; }

/* badges & rank */
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); padding: 2px 8px 2px 5px; border-radius: 999px;
  white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; fill: var(--rc); filter: drop-shadow(0 0 4px var(--rg)); }
.badge-md { font-size: 12px; padding: 4px 10px 4px 6px; }
.badge-md svg { width: 16px; height: 16px; }

.rankbar {
  display: flex; gap: 18px; align-items: center; background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 10%, var(--panel-2)), var(--panel-2));
  border: 1px solid color-mix(in srgb, var(--rc) 35%, var(--line)); border-radius: 12px; padding: 10px 14px;
}
.rank-left { display: flex; gap: 10px; align-items: center; min-width: 150px; }
.rank-gem svg { width: 40px; height: 40px; fill: var(--rc); filter: drop-shadow(0 0 10px var(--rg)); }
.rank-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rank-name { font: 400 19px var(--f-quest); color: var(--rc); line-height: 1.1; }
.rank-votes { font-size: 12px; font-weight: 700; }
.rank-right { flex: 1; min-width: 0; }
.tiers { display: flex; justify-content: space-between; gap: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tier { color: #ffffff40; }
.tier.past { color: color-mix(in srgb, var(--rc) 55%, transparent); }
.tier.on { color: var(--rc); }
.prog { height: 7px; background: #ffffff12; border-radius: 4px; margin: 5px 0 3px; overflow: hidden; }
.prog div { height: 100%; background: linear-gradient(90deg, var(--rg), var(--rc)); border-radius: 4px; transition: width .6s; }
.prog-txt { font-size: 11px; color: var(--muted); }

/* modal */
.modal {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--panel); color: var(--text);
  width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 30px 80px #000a, 0 0 0 1px #ffffff08;
}
.modal-summoner, .modal-profile { width: min(620px, calc(100vw - 32px)); }
.modal-order { border-top: 3px solid var(--green); }
.modal-summoner { border-top: 3px solid var(--void); }
.modal::backdrop { background: #04020acc; backdrop-filter: blur(4px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.close {
  position: sticky; top: 0; float: right; z-index: 2; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); width: 34px; height: 34px; border-radius: 10px;
}
.mhead { display: grid; gap: 12px; margin-bottom: 14px; }
.mhead h2 { margin: 0; font: 400 26px var(--f-quest); letter-spacing: .03em; text-shadow: 0 2px 0 #000, 0 0 18px currentColor; }
.t-order { color: #4ade80; }
.t-summoner { color: #c084fc; }
h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 0 10px; }
.hint { margin: 0 0 10px; font-size: 13px; }
.warn { background: #3b2a0655; border: 1px solid #78560f; color: #fde68a; padding: 8px 12px; border-radius: 10px; font-size: 13px; }

/* map */
.map-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
.map { width: 100%; height: auto; border-radius: 12px; border: 3px solid #4a3010; display: block; box-shadow: 0 0 0 1px #000, inset 0 0 60px #2a1a05; }
.land { fill: url(#landg); }
.coast { fill: none; stroke: #4a3010; stroke-width: 2.6; stroke-linejoin: round; pointer-events: none; }
.lake { fill: #7f8f7c; stroke: #4a3010; stroke-width: 2; pointer-events: none; }
.hatch path { fill: none; stroke: url(#hatch); stroke-width: 26; stroke-linejoin: round; pointer-events: none; }
.region { stroke: #7a5418; stroke-width: 1.1; stroke-dasharray: 4 3; stroke-opacity: .7; fill-opacity: .25; transition: fill-opacity .15s, fill .15s; }
.region.t0 { fill: #ffe68a; } .region.t1 { fill: #c88a22; } .region.t2 { fill: #f2c95a; } .region.t3 { fill: #b77a1c; }
.region:hover { fill: #fff6c4; fill-opacity: .55; }
.region-name { fill: #ffd100; font: 400 28px var(--f-quest); text-anchor: middle; paint-order: stroke; stroke: #000; stroke-width: 5px; pointer-events: none; }
.zone, .cont-label, .sea-label { pointer-events: none; }
.map-frame { fill: none; stroke: #2a1a05aa; stroke-width: 6; }
.cont-label { fill: #3b2608; font: 400 19px var(--f-caps); letter-spacing: .3em; text-anchor: middle; text-transform: uppercase; paint-order: stroke; stroke: #f3d77a; stroke-width: 3px; opacity: .9; }
.sea-label { fill: #3e3a22aa; font: italic 400 15px var(--f-ui); letter-spacing: .25em; text-anchor: middle; }
.zone circle { fill: #4a3010aa; }
.zone.city circle { fill: #2a1a05; stroke: #fff2c0; stroke-width: 1.2; }
.zone text { fill: #2a1a05; font: 400 12px var(--f-ui); text-anchor: middle; paint-order: stroke; stroke: #f3d77a; stroke-width: 3px; }
.pin { cursor: pointer; outline: none; }
.pin .core { fill: #7c3aed; stroke: var(--rc); stroke-width: 2.5; transition: r .15s; }
.pin .pulse { fill: #a855f7; opacity: .5; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
.pin text { fill: #fff; font: 700 12px Inter, sans-serif; text-anchor: middle; pointer-events: none; }
.pin .pin-label { font-size: 12px; font-weight: 700; paint-order: stroke; stroke: #0b0716; stroke-width: 4px; opacity: 0; transition: opacity .15s; }
.pin:hover .pin-label, .pin:focus .pin-label, .pin.sel .pin-label { opacity: 1; }
.pin:hover .core, .pin.sel .core { fill: #a855f7; }
.pin.sel .core { stroke: #fff; }
@keyframes pulse { from { transform: scale(.8); opacity: .6; } to { transform: scale(2.2); opacity: 0; } }

#side { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; overflow: auto; max-height: 520px; }
.side-head { font-weight: 700; font-size: 13px; padding: 4px 6px 10px; display: flex; justify-content: space-between; gap: 8px; }
.srow {
  display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: 1px solid transparent;
  color: var(--text); border-radius: 10px; padding: 9px 8px; text-align: left;
}
.srow:hover { background: #ffffff08; border-color: var(--line); }
.srow-name { flex: 1; font-weight: 700; display: grid; line-height: 1.2; }
.srow-name small { color: var(--muted); font-weight: 400; }
.price { font-weight: 800; white-space: nowrap; }
.empty { padding: 10px; font-size: 13px; }
.pick { display: grid; gap: 8px; padding: 6px; }
.pick .badge { justify-self: start; }
.big { font-size: 20px; font-weight: 800; }
.pick-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 14px; }
.pick-row span { color: var(--muted); }
.note { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.back { font-size: 13px; }

/* status */
.status-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.status-card.ok { border-color: #22c55e66; }
.status-who { display: flex; gap: 14px; align-items: center; text-align: left; }
.step { font-weight: 700; margin: 0; }
.steps { text-align: left; margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #ffffff15; border-top-color: var(--green); animation: spin2 .9s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.rate { display: flex; gap: 8px; }
.rate button { border-radius: 10px; padding: 9px 16px; font-weight: 800; border: 1px solid; background: transparent; }
.rate .like { color: var(--up); border-color: #4ade8066; }
.rate .like:hover { background: #4ade801a; }
.rate .dislike { color: var(--down); border-color: #f8717166; }
.rate .dislike:hover { background: #f871711a; }

/* summoner */
.s-form { grid-template-columns: 1fr 120px auto auto; align-items: end; }
.go-off { color: var(--up); border-color: #4ade8066; }
.req { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; animation: pop .2s ease-out; }
.req-pending { border-left: 3px solid var(--gold); }
.req-accepted { border-left: 3px solid var(--green); }
.req-completed { border-left: 3px solid var(--void); }
.req-top { display: flex; align-items: center; gap: 10px; }
.req-who { flex: 1; font-weight: 700; display: grid; line-height: 1.25; }
.req-who small { color: var(--muted); font-weight: 400; }
.req-top .price { font-size: 18px; }
.req-note { color: var(--muted); font-style: italic; font-size: 13px; margin: 6px 0 0; }
.req-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.btn-accept { background: var(--green-2); color: #fff; border: 0; border-radius: 10px; padding: 9px 18px; font-weight: 800; }
.btn-accept:hover { background: var(--green); }
.empty-box { border: 1px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.empty-box p { margin: 0; }
.radar { width: 54px; height: 54px; border-radius: 50%; border: 2px solid #a855f755; position: relative; }
.radar::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--void); animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* toasts */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(420px, calc(100vw - 32px)); }
.toast { background: #1f1638; border: 1px solid var(--void-2); padding: 11px 16px; border-radius: 12px; box-shadow: 0 10px 30px #0008; animation: pop .2s; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* mobile */
@media (max-width: 760px) {
  .topbar { padding: 12px 16px; }
  .email { display: none; }
  .map-wrap { grid-template-columns: 1fr; }
  #side { max-height: none; }
  .form .row { grid-template-columns: 1fr 1fr; }
  .form .row > label:first-child { grid-column: 1 / -1; }
  .s-form { grid-template-columns: 1fr 100px; }
  .s-form button { grid-column: span 1; }
  .rankbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .modal { padding: 16px; }
  .tiers { font-size: 9px; }
}

/* ===================== WoW-style typography & trim ===================== */
:root {
  --wow-gold: #ffd100;          /* the classic WoW UI header yellow */
  --wow-gold-dk: #b07a10;
  --trim: #8a6a28;              /* gold frame trim */
  --text: #f3ecd8;
}
body { letter-spacing: .01em; }
.wow-gold, .mhead h2, h3, .side-head, .rank-label, .setup h2, .modal h2 {
  color: var(--wow-gold); text-shadow: 0 1px 0 #000, 0 0 2px #000;
}

/* Logo: metal letters, purple "SHARD" + gold "TAXI".
   No -webkit-text-stroke: Cinzel's letters are built from overlapping pieces, and a stroke draws
   a black line around every piece (lines inside the letters). The dark edge comes from shadows instead. */
.logo, .mini-logo {
  font-family: Cinzel, serif; font-weight: 900;
  background: linear-gradient(180deg, #f8efff 0%, #e2c6ff 28%, #a35cf0 50%, #4c1d95 54%, #c89bff 78%, #f1e2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
}
.logo span, .mini-logo span {
  background: linear-gradient(180deg, #fff8d6 0%, #ffe07a 28%, #e0a21c 50%, #8f5507 54%, #ffd86a 78%, #fff2b0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.logo {
  filter: drop-shadow(1.5px 0 0 #140820) drop-shadow(-1.5px 0 0 #140820) drop-shadow(0 1.5px 0 #140820)
          drop-shadow(0 -1.5px 0 #140820) drop-shadow(0 4px 0 #0a0412) drop-shadow(0 0 30px #a855f766);
}
.mini-logo { filter: drop-shadow(0 0 .6px #140820) drop-shadow(0 1px 0 #0a0412); }
.tag { font-family: var(--f-quest); color: #e6d6a6; font-size: clamp(22px, 4vw, 30px); text-shadow: 0 2px 0 #000; }

/* Quest-title font for headers */
.mhead h2, .setup h2, .modal h2 { font-family: var(--f-quest); font-weight: 400; }
.mhead h2 { font-size: 28px; }
.t-order { text-shadow: 0 2px 0 #000, 0 0 16px #22c55e99; }
.t-summoner { text-shadow: 0 2px 0 #000, 0 0 16px #a855f7aa; }
h3, .side-head, .rank-label { font-family: var(--f-caps); letter-spacing: .12em; font-weight: 400; }
.form label, .note { color: #e8cf86; font-weight: 400; }
.pick-row span { color: #cdb985; }

/* Big buttons: game-style bevel with a gold frame and quest-font label */
.btn-order, .btn-summoner {
  font-family: var(--f-quest); font-weight: 400; letter-spacing: .06em;
  border: 2px solid #f0cd6a; outline: 1px solid #000; outline-offset: 0;
  text-shadow: 0 2px 0 #000a, 0 0 1px #000;
}
.btn-order { background: linear-gradient(180deg, #4be07f 0%, #1fae55 48%, #148a41 52%, #1c9e4c 100%); }
.btn-summoner { background: linear-gradient(180deg, #b77bff 0%, #8b3ff0 48%, #6a22c8 52%, #7d33dd 100%); }
.btn-primary, .btn-accept, .btn-ghost, .rate button { font-family: var(--f-caps); font-weight: 400; letter-spacing: .05em; }
.btn-primary, .btn-accept { border: 1px solid #f0cd6a99; text-shadow: 0 1px 0 #000; }
.badge, .tiers { font-family: var(--f-caps); font-weight: 400; }
.rank-name { text-shadow: 0 2px 0 #000; }

/* Gold-trimmed frames */
.modal, .card { border: 2px solid var(--trim); box-shadow: 0 30px 80px #000a, inset 0 0 0 1px #000, inset 0 0 40px #0008; }
.modal-order { border-top: 3px solid var(--green); }
.modal-summoner { border-top: 3px solid var(--void); }
.rankbar, #side, .req, .status-card { box-shadow: inset 0 0 0 1px #0008; }

/* Gold coin, like the money display in game */
.coin {
  display: inline-block; width: .78em; height: .78em; margin-left: 3px; vertical-align: -.06em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c0 0 18%, #ffd34a 35%, #c48a12 75%, #7a4f06 100%);
  box-shadow: 0 0 0 1px #3b2500, inset 0 -1px 1px #0006;
}
.coin.silver {   /* silver coin: 100 silver = 1 gold */
  background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #d9dde3 35%, #8e96a1 75%, #4b525c 100%);
  box-shadow: 0 0 0 1px #23272d, inset 0 -1px 1px #0006;
}

/* Toasts styled like the yellow in-game message text */
.toast { font-family: var(--f-ui); color: var(--wow-gold); background: #0b0716ee; border-color: var(--trim); text-shadow: 0 1px 0 #000; }

#s-list, #side, #order-main, .modal { scrollbar-width: thin; scrollbar-color: var(--trim) #0b0716; }

/* Sound toggle next to the popup title */
.mtitle { display: flex; align-items: center; gap: 12px; }
.sound-btn {
  margin-left: auto; margin-right: 0; width: 34px; height: 34px; border-radius: 10px; font-size: 16px; line-height: 1;
  background: var(--panel-2); border: 1px solid var(--trim); color: var(--text);
}
.sound-btn:hover { border-color: var(--wow-gold); }

/* "Pay with" row under the big buttons */
.pay-with { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; }
.pay-label { font-family: 'Marcellus SC', serif; color: #c9b88a; font-size: 20px; letter-spacing: .08em; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 11px;
  font-family: 'Marcellus SC', serif; font-size: 20px; color: #f3e6c0;
  background: #1a1030cc; border: 1px solid #8a6a2899; border-radius: 999px;
}
.pay-ico {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font: 700 17px/1 Inter, sans-serif; color: #fff;
}
.pay-ico.btc { background: #f7931a; }
.pay-ico.eth { background: #627eea; }
.pay-chip .coin { width: 22px; height: 22px; }

/* Both big buttons the same size; "I'M READY TO SUMMON" stays on one line on normal screens */
.btn-order, .btn-summoner { width: min(600px, 100%); }
@media (min-width: 640px) { .btn-order, .btn-summoner { white-space: nowrap; } }
.pay-ico.usdt { background: #26a17b; }
.pay-ico.sol { background: linear-gradient(135deg, #9945ff, #14f195); font-size: 15px; }
.pay-label { flex-basis: 100%; text-align: center; margin-bottom: -2px; }
.pay-ico.usdc { background: #2775ca; }
/* badges in two rows of three (two columns on phones) */
.pay-with { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; }
.pay-with .pay-chip { justify-content: center; }
.pay-label { grid-column: 1 / -1; }
@media (max-width: 520px) { .pay-with { grid-template-columns: repeat(2, auto); } }

/* ---------- crypto payments ---------- */
.wallets { border: 1px solid #8a6a2866; border-radius: 12px; padding: 12px 14px 14px; margin: 14px 0; display: grid; gap: 10px; }
.wallets legend { font-family: 'Marcellus SC', serif; color: var(--wow-gold, #ffd100); padding: 0 6px; }
.wallets legend small { color: var(--muted); font-family: Inter, sans-serif; font-size: 12px; }
.wallets label small { font-weight: 400; margin-left: 4px; }
.wallets input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.wallets input:invalid:not(:placeholder-shown) { outline: 2px solid var(--down, #ef4444); }
.tiny { font-size: 12.5px; }
.s-crypto-hint { margin: -4px 0 10px; }
.pay-icos { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.pay-icos .pay-ico { width: 18px; height: 18px; font-size: 11px; }
.price small { display: block; font-size: 12px; color: var(--muted); text-align: right; }

.pay-panel { text-align: left; background: #120a24cc; border: 1px solid #8a6a2866; border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.pay-head { font-family: 'Marcellus SC', serif; color: var(--wow-gold, #ffd100); margin-bottom: 8px; }
.pay-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pay-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 7px; border-radius: 999px;
  background: #1f1638; border: 1px solid #ffffff22; color: #eee; font: 600 13px Inter, sans-serif; cursor: pointer;
}
.pay-tab small { color: var(--muted); font-weight: 400; font-size: 11px; }
.pay-tab .pay-ico { width: 20px; height: 20px; font-size: 12px; }
.pay-tab .coin { width: 16px; height: 16px; }
.pay-tab.on { border-color: #f0cd6a; background: #2c1f4d; box-shadow: 0 0 0 1px #f0cd6a55; }
.pay-gold { margin: 4px 0; }
.pay-leg { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #0c0718; border: 1px solid #ffffff14; margin-top: 8px; }
.qr { flex: none; width: 124px; height: 124px; padding: 4px; background: #fff; border-radius: 8px; }
.qr img, .qr canvas { display: block; width: 116px !important; height: 116px !important; }
.pay-leg-info { min-width: 0; display: grid; gap: 4px; }
.pay-leg-title { font-weight: 700; }
.pay-amt { font: 700 18px ui-monospace, Consolas, monospace; color: #fff; }
.pay-addr { display: flex; gap: 6px; align-items: center; min-width: 0; }
.pay-addr code { font-size: 12px; overflow-wrap: anywhere; color: #d8c8ff; }
.tiny-btn { padding: 3px 9px !important; font-size: 12px !important; flex: none; }
.wallet-link { font-size: 13px; color: #c4a2ff; }
.pay-tx { display: grid; gap: 8px; margin-top: 10px; }
.pay-tx input { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.pay-done, .req-pay.paid { background: #0f2a1a; border: 1px solid #22c55e66; border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.pay-done a, .req-pay a { color: #86efac; }
.req-pay { margin-top: 6px; }
.req-pay.paid { margin: 8px 0 4px; font-size: 13.5px; }
@media (max-width: 520px) { .pay-leg { flex-direction: column; align-items: flex-start; } }

/* on-chain check + one-click Solana */
.vstate { margin-top: 6px; font-size: 13px; font-weight: 600; }
.v-ok { color: #4ade80; }
.v-pending, .v-checking { color: #fcd34d; }
.v-bad, .v-error { color: #f87171; }
.v-demo { color: #a5b4fc; }
.one-click { margin: 10px 0 6px; display: grid; gap: 6px; justify-items: start; }
.one-click .btn-order.small { white-space: normal; text-align: left; }
.manual { margin-top: 8px; }
.manual summary { cursor: pointer; color: #c4a2ff; font-size: 13.5px; }

/* map details: shallow-water halo, shaded coast band, rivers, mountain sketches */
.shore path { fill: none; stroke: #b8b7a0; stroke-opacity: .75; stroke-width: 9; stroke-linejoin: round; pointer-events: none; }
.inner-shade { fill: none; stroke: #7a4508; stroke-opacity: .32; stroke-width: 9; stroke-linejoin: round; pointer-events: none; }
.coast { stroke: #3d2508; stroke-width: 1.7; }
.lake { fill: #a3a891; stroke: #3d2508; stroke-width: 1.5; }
/* rivers: a dark outline drawn first (only on land), then the water on top, so a thin dark bank shows */
.river-banks path { fill: none; stroke: #3d2508; stroke-width: .7; stroke-linejoin: round; stroke-opacity: .85; pointer-events: none; }
.river-water path { fill: #a3a891; stroke: none; pointer-events: none; }
.mtns { pointer-events: none; }
.mtn-ridge { fill: none; stroke: #4a2c06; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; stroke-opacity: .85; }
.mtn-shade { fill: #6b3f08; fill-opacity: .28; }

/* ---------- zooming into a zone ---------- */
.map-wrap { position: relative; }
.map-back { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 12px; font-size: 13px; background: #120a24e6; }
.map .region { cursor: pointer; }
.map .region, .map .coast, .map .lake, .map .mtn-ridge, .map .river-banks path { vector-effect: non-scaling-stroke; }   /* lines stay thin when zoomed */
.map.zoomed .region:not(.focus) { fill-opacity: .08; filter: saturate(.5) brightness(.85); }
.map.zoomed .region.focus { fill-opacity: .42; stroke-opacity: 1; }
.map.zoomed .region:not(.focus):hover { fill: #fff6c4; fill-opacity: .55; filter: none; }   /* zoomed in: other zones still light up on hover */
.cont-label, .sea-label { transition: opacity .3s; }
.map.zoomed .cont-label, .map.zoomed .sea-label { opacity: 0; }
.map .zone { transition: opacity .3s; }
.map .cont-label.near, .map .zone.near { opacity: 0; }   /* the cursor is close: fade out (js/app.js) */
/* labels keep the same size on screen at any zoom (--z = zoom factor, set by the script) */
.map .zone text { font-size: calc(12px * (1 + (var(--z, 1) - 1) * .1) / var(--z, 1)); stroke-width: calc(3px / var(--z, 1)); }
.map .zone circle { transform-box: fill-box; transform-origin: center; transform: scale(calc(1.5 / (var(--z, 1) + .5))); }
.map .region-name { font-size: calc(28px / var(--z, 1)); stroke-width: calc(5px / var(--z, 1)); }
.unscale { transform: scale(calc((1 + (var(--z, 1) - 1) * .15) / var(--z, 1))); }   /* pins grow a little when zoomed */
/* one pin per summoner when zoomed in */
.ipin { cursor: pointer; outline: none; }
.ipin .ring { fill: #7c3aed; stroke: var(--rc); stroke-width: 2.5; }
.ipin:hover .ring, .ipin:focus .ring, .ipin.sel .ring { fill: #a855f7; stroke: #fff; }
.ipin .ini { fill: #fff; font: 700 11px Inter, sans-serif; text-anchor: middle; pointer-events: none; }
.ipin .nm { fill: #fff; font: 700 11px Inter, sans-serif; text-anchor: middle; paint-order: stroke; stroke: #0b0716; stroke-width: 3.5px; pointer-events: none; }
.ipin .nm.sub { fill: #ffd76a; font-size: 10px; }

/* ---------- one-page layout: map on the front page, summoner page at #summoner ---------- */
.hero-compact { margin: 3vh auto 0; }
.hero-compact .logo { font-size: clamp(40px, 8vw, 84px); }
.hero-compact .tag { margin: 6px 0 10px; }
.page { max-width: 1240px; margin: 22px auto 0; }
.page-order { background: var(--panel, #160f29); border: 1px solid var(--trim, #8a6a28); border-radius: 18px; padding: 18px; box-shadow: 0 20px 60px #0008; }
.page-order .map-wrap { grid-template-columns: 1fr 290px; }
.page-order #side { max-height: none; }
.page-order .map { max-height: 72vh; }
.side-cta { display: grid; gap: 12px; padding: 10px 6px; text-align: left; }
.side-cta p { margin: 0; color: var(--muted); }
.below { max-width: 820px; margin: 34px auto 0; text-align: center; display: grid; justify-items: center; gap: 10px; }
.below .btn-summoner { display: inline-block; text-decoration: none; }
.below-note { margin: 0; }
/* Become a summoner page */
.page-summoner { max-width: 860px; display: grid; gap: 18px; }
.join { text-align: left; }
.join .back { display: inline-block; margin-bottom: 8px; text-decoration: none; }
.join h2 { margin: 4px 0 8px; }
.join .lead { color: #e9dfc4; }
.join-steps { margin: 14px 0 18px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; }
.join-steps b { color: var(--wow-gold, #ffd100); font-weight: 600; }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dl-btn { width: auto !important; padding: 16px 26px !important; font-size: 20px !important; text-decoration: none; white-space: nowrap; }
.dl-btn[disabled] { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.join-cta { display: grid; gap: 10px; justify-items: start; }
.join-cta p { margin: 0; }
.dash .mhead { margin-top: 0; }
@media (max-width: 760px) {
  .page-order { padding: 10px; border-radius: 12px; }
  .page-order .map-wrap { grid-template-columns: 1fr; }
}

/* ---------- front page fits the screen (wide screens) ----------
   left: logo, you, Become a summoner, pay options | middle: the map | right: summoner list */
.map-cell { min-width: 0; min-height: 0; display: flex; justify-content: center; align-items: flex-start; }
.map-box { position: relative; max-width: 100%; }
.map { box-sizing: border-box; }
@media (min-width: 1000px) {
  [data-page="order"] body { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
  [data-page="order"] main {
    flex: 1; min-height: 0; padding: 10px 16px 12px;
    display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "app view" "below view"; column-gap: 16px;
  }
  [data-page="order"] #app { grid-area: app; }
  [data-page="order"] #below { grid-area: below; min-height: 0; overflow-y: auto; }
  [data-page="order"] #view { grid-area: view; margin: 0; max-width: none; min-height: 0; display: flex; flex-direction: column; padding: 12px 14px; }
  [data-page="order"] .hero-compact { margin: 4px 0 0; max-width: none; }
  [data-page="order"] .hero-compact .logo { font-size: 44px; }
  [data-page="order"] .hero-compact .tag { font-size: 16px; margin: 4px 0 10px; }
  [data-page="order"] .hero-compact .lead { font-size: 14px; }
  [data-page="order"] .setup { padding: 14px; }
  [data-page="order"] .below { margin: 14px 0 0; gap: 8px; }
  [data-page="order"] .below .btn-summoner { width: 100%; padding: 14px 8px; font-size: 18px; white-space: normal; }
  [data-page="order"] .below-note { font-size: 13px; }
  [data-page="order"] .pay-with { width: 100%; left: auto; transform: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  [data-page="order"] .pay-label { font-size: 14px; }
  [data-page="order"] .pay-chip { font-size: 13px; padding: 5px 8px 5px 5px; gap: 6px; }
  [data-page="order"] .pay-chip .pay-ico { width: 20px; height: 20px; font-size: 12px; }
  [data-page="order"] .pay-chip .coin { width: 16px; height: 16px; }
  /* the order panel: title + rank in one row, then the map area takes the rest */
  [data-page="order"] #view .mhead { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 8px; }
  [data-page="order"] #view .mhead h2 { font-size: 24px; }
  [data-page="order"] #order-main { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
  [data-page="order"] #order-main .hint { flex: none; margin: 0 0 8px; }
  [data-page="order"] .map-wrap { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  [data-page="order"] .map { max-height: none; }
  [data-page="order"] #side { min-height: 0; overflow-y: auto; }
}
@media (max-width: 999px) { .map-box { width: 100%; } }
@media (min-width: 1000px) {
  [data-page="order"] main { grid-template-columns: 230px minmax(0, 1fr); }
  [data-page="order"] #app, [data-page="order"] #below { overflow-x: hidden; }
  [data-page="order"] .hero-compact .logo { font-size: 34px; letter-spacing: .02em; }
  [data-page="order"] .page-order .map-wrap { grid-template-columns: minmax(0, 1fr) 230px; gap: 12px; }
}
@media (min-width: 1500px) {
  [data-page="order"] main { grid-template-columns: 260px minmax(0, 1fr); }
  [data-page="order"] .hero-compact .logo { font-size: 40px; }
  [data-page="order"] .page-order .map-wrap { grid-template-columns: minmax(0, 1fr) 280px; }
}

/* bigger summoner list on the front page */
#side .side-head { font-size: 16px; padding: 6px 8px 12px; }
#side .srow { padding: 12px 10px; gap: 12px; margin-bottom: 4px; background: #ffffff05; border-color: #ffffff0d; }
#side .srow:hover { background: #ffffff10; border-color: var(--line); }
#side .srow-name { font-size: 17px; gap: 2px; }
#side .srow-name small { font-size: 13.5px; }
#side .srow .price { font-size: 18px; }
#side .srow .badge { font-size: 12px; }
#side .pick .big { font-size: 22px; }
#side .pick-row { font-size: 15px; }
@media (min-width: 1000px) {
  [data-page="order"] .page-order .map-wrap { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (min-width: 1500px) {
  [data-page="order"] .page-order .map-wrap { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* "Order a ride" + rank + hint sit in the right column, above the summoner list */
.side-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.side-col .mhead { display: grid; grid-template-columns: 1fr !important; gap: 10px !important; margin: 0 !important; }
.side-col .mhead h2 { font-size: 24px; }
.side-col .rankbar { flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; }
.side-col .rank-right { flex-basis: 100%; }
.side-col .hint { margin: 0; font-size: 12.5px; line-height: 1.4; }
.side-col #side { flex: 1; min-height: 0; }
@media (min-width: 1000px) {
  [data-page="order"] .side-col #side { overflow-y: auto; }
}
/* the map fills its whole area on wide screens; the old inner frame line isn't needed there */
@media (min-width: 1000px) { [data-page="order"] .map-frame { display: none; } [data-page="order"] .map-cell { align-items: stretch; } }
@media (max-width: 999px) { .map { aspect-ratio: 1000 / 668; height: auto; } }

/* ---------- sign-in choices ---------- */
.modal-login { width: min(420px, calc(100vw - 32px)); }
.login-list { display: grid; gap: 10px; margin: 16px 0 8px; }
.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 12px 16px;
  border-radius: 12px; border: 1px solid #ffffff22; background: var(--bg); color: var(--fg);
  font: 600 15px Inter, sans-serif; cursor: pointer; transition: transform .1s, filter .15s;
}
.login-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.login-btn img { width: 20px; height: 20px; }
.login-btn img.inv { filter: invert(1); }

/* ---------- order form: character + how to pay ---------- */
.order-form { display: grid; gap: 12px; margin-top: 6px; }
.order-form label { display: grid; gap: 6px; font-size: 14px; }
.pick-label { font-size: 14px; color: var(--muted); }
.pay-choose { display: grid; gap: 8px; }
.paychoice {
  display: grid !important; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px !important;
  padding: 10px 12px; border-radius: 12px; border: 1px solid #ffffff1a; background: #ffffff06; cursor: pointer;
}
.paychoice:has(input:checked) { border-color: #f0cd6a; background: #2c1f4d; box-shadow: 0 0 0 1px #f0cd6a55; }
.paychoice input { accent-color: #f0cd6a; margin: 0; }
.pc-ico { display: inline-grid; place-items: center; }
.pc-ico .pay-ico { width: 24px; height: 24px; font-size: 14px; }
.pc-ico .coin { width: 18px; height: 18px; }
.pc-name { display: grid; font-weight: 700; line-height: 1.2; }
.pc-name small { font-weight: 400; color: var(--muted); font-size: 12px; }
.paychoice b { white-space: nowrap; }

/* Horde / Alliance switch above the list (for customers without a profile) */
.fac-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.fac-switch button { padding: 8px; border-radius: 10px; border: 1px solid #ffffff22; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.fac-switch button.on.Horde { background: #5a1414; border-color: #c43a3a; color: #ffd6d6; }
.fac-switch button.on.Alliance { background: #142a5a; border-color: #3a6ac4; color: #d6e4ff; }

/* ---------- escrow status ---------- */
.escrow { margin: 10px 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: left; border: 1px solid #ffffff1a; background: #ffffff08; }
.escrow-held { border-color: #f0cd6a66; background: #2a2210; }
.escrow-released { border-color: #22c55e66; background: #0f2a1a; }
.escrow-refunded, .escrow-unpaid { border-color: #94a3b866; background: #1a1d26; }
.testwallet-link { display: inline-block; margin-top: 10px; font-size: 13px; color: #c4a2ff; text-decoration: none; border: 1px dashed #c4a2ff66; border-radius: 10px; padding: 6px 10px; }
.chain-line { margin-top: 6px; font-size: 12.5px; color: var(--muted); } .chain-line a { color: #c4a2ff; }

/* Lightning hold invoice (order card) */
.ln-inv { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 8px 0; padding: 10px; border: 1px solid #f0cd6a44; border-radius: 10px; background: #1b1710; }
.ln-qr { background: #fff; padding: 6px; border-radius: 6px; flex: none; line-height: 0; }
.ln-txt { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ln-bolt { display: block; font-size: 11px; max-height: 3.6em; overflow: hidden; overflow-wrap: anywhere; color: var(--muted); }
.ln-wait { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; margin: 0; display: inline-block; }
@media (max-width: 520px) { .ln-inv { flex-direction: column; align-items: center; } }
.paychoice.off { opacity: .5; cursor: not-allowed; }

/* "Fake wallet app" launcher (local testing only) */
.fake-wallet-btn {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  background: linear-gradient(180deg, #ef4444, #b91c1c); color: #fff; border: 0; border-radius: 12px;
  padding: 12px 18px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 4px 0 #7f1d1d, 0 0 28px #ef444466; transition: transform .12s;
}
.fake-wallet-btn:hover { transform: translateY(-2px); }
.fake-wallet-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7f1d1d; }
.fake-wallet-btn[hidden] { display: none; }

/* anonymous summoners (names show once a ride is accepted), summon countdown, refund claims */
.anon-ico {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: #2a1846; color: #d8b4fe; font-size: 20px; border: 1px solid #7c3aed;
}
.anon-ico.sm { width: 28px; height: 28px; font-size: 14px; }
.pick .anon-ico { margin: 0 auto 6px; }
.countdown { font-variant-numeric: tabular-nums; color: var(--green); }
.countdown.low { color: #f87171; }
.status-card.claim { border-color: #b45309; }
.claim-form { display: grid; gap: 8px; text-align: left; margin: 10px 0; }
.claim-form input { width: 100%; font-family: ui-monospace, monospace; }
.claim-remind {
  width: 100%; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; text-align: left; font-weight: 600;
  background: #3b2a06; color: #fde68a; border: 1px solid #b45309;
}
.claim-remind:hover { border-color: #fde68a; }
/* Summoner app key (profile page) */
.app-key { margin-top: 18px; }
.app-key .row { align-items: center; }
.app-key input[readonly] { font-family: ui-monospace, monospace; font-size: 12px; }

/* Confirmed summoner characters + app state (summoner panel), arrival coordinates */
.coords { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.ok-txt { color: var(--up); }
.app-state { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2); margin: 6px 0 10px; }
.app-state .muted { display: block; font-size: 13px; }
.app-state.on { border-color: #1f5f3a; background: #0d2318; }
.off-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-top: 6px; flex: none; }
.app-state .online-dot { margin-top: 6px; flex: none; }
.chars { display: grid; gap: 8px; margin-bottom: 12px; }
.char-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.req-spot { margin: 4px 0; }
.char-why { margin: -4px 0 4px; padding: 0 12px; font-size: 12px; color: var(--gold); }

/* Your own warlocks on the map (not bookable by you) */
.ipin.mine .ring { stroke: var(--gold, #f4c84a); stroke-width: 2.5; }
.ipin.mine .nm.sub { fill: var(--gold, #f4c84a); }
.srow.mine { border-color: #f4c84a55 !important; }
.you-tag { font-size: 11px; font-weight: 700; color: #1a1230; background: var(--gold, #f4c84a); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
.you-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #f4c84a55; background: #2a210b; font-size: 14px; }

/* The 3D shard in front of the logo (img/, rendered in Blender: see img/README.md) */
.logo-shard {
  height: 1em; width: auto; vertical-align: -0.1em; margin-right: .1em;
  filter: drop-shadow(0 0 .18em #e040d0aa);
}

/* ===================== Night map style =====================
   A dark navy cartographer's chart: faint gold grid lines, gold ink, engraved Cinzel capitals and Garamond text.
   Not the main style any more: themes/supabase.css goes on top of it. Other variations are in git history: themes/ in commit 049d70f. */
:root {
  --ink-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .7 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --bg: #0a1322; --panel: #111e35; --panel-2: #15253f; --line: #2a3d63;
  --text: #ece2c6; --muted: #9eaac2; --trim: #c9a24a; --wow-gold: #f0c96a; --void: #8b9dff;
}
body { background: var(--bg); color: var(--text); }
.void-bg {
  background:
    radial-gradient(ellipse 65% 50% at 50% 35%, #1d3358aa, transparent 70%),
    repeating-linear-gradient(0deg, #c9a24a10 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, #c9a24a10 0 1px, transparent 1px 80px),
    var(--bg);
}
.void-bg::before { content: ''; position: absolute; inset: 0; background-image: var(--ink-noise); }
.void-bg::after {   /* a faint compass rose instead of the purple swirl */
  background: repeating-conic-gradient(from 0deg, #c9a24a22 0 2deg, transparent 2deg 45deg);
  filter: none; opacity: .7; animation: spin 240s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 70%); mask: radial-gradient(circle, #000 0 30%, transparent 70%);
}

/* double gold rule around panels, like a printed chart border */
.card, .page-order, .modal {
  background: var(--panel) var(--ink-noise); border: 1px solid var(--trim);
  box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px #c9a24a88, 0 24px 60px #000b;
}
#side, .status-card, .req, .rankbar, .app-state, .char-row { background: var(--panel-2); border: 1px solid var(--line); }
.wow-gold, .mhead h2, h3, .side-head, .rank-label, .setup h2, .modal h2 { color: var(--wow-gold); text-shadow: 0 1px 0 #000; }
.tag { color: #e9d9a8; }
.link { color: #f0c96a; }
#side .srow { background: #ffffff06; border-color: #2a3d63; }
#side .srow:hover { background: #c9a24a14; border-color: var(--trim); }
.paychoice:has(input:checked) { background: #1d3358; }
.pay-chip { background: #111e35dd; border-color: #c9a24a88; }
.toast { background: #0d1830ee; }
.map { border-color: #c9a24a; box-shadow: 0 0 0 1px #000, 0 0 0 4px #111e35, 0 0 0 5px #c9a24a66; }

/* fonts: engraved capitals for headings, classic Garamond for text */
:root { --f-ui: 'EB Garamond', Georgia, serif; --f-quest: Cinzel, Georgia, serif; --f-caps: Cinzel, Georgia, serif; }
body { font-size: 16.5px; }
.mhead h2 { font-size: 24px; letter-spacing: .12em; text-transform: uppercase; }
h3, .side-head, .rank-label { letter-spacing: .2em; font-size: .9em; }
.tag { font-family: 'EB Garamond', serif; font-style: italic; letter-spacing: .02em; }
/* big buttons: navy plates with a gold rim */
.btn-order, .btn-summoner { font-family: Cinzel, serif; font-weight: 700; letter-spacing: .14em; color: #f3dfa4; border: 1px solid #c9a24a; outline: 1px solid #000; outline-offset: 0; text-shadow: 0 1px 0 #000; }
.btn-order { background: linear-gradient(180deg, #1f4a3a, #12302a); box-shadow: 0 0 0 4px #0a1322, 0 0 0 5px #c9a24a88, 0 16px 34px #000a; }
.btn-summoner { background: linear-gradient(180deg, #2a3a78, #1a2550); box-shadow: 0 0 0 4px #0a1322, 0 0 0 5px #c9a24a88, 0 16px 34px #000a; }
.btn-primary { background: linear-gradient(180deg, #c9a24a, #9a7426); color: #0a1322; border-color: #f0d590; text-shadow: none; }
.btn-primary:hover { background: linear-gradient(180deg, #e0b95c, #b08630); }

/* title: widely spaced engraved gold capitals between thin gold rules */
.logo { font-family: Cinzel, Georgia, serif; font-weight: 700; letter-spacing: .22em; padding: .12em 0;
  background: linear-gradient(180deg, #fff4cf 0%, #f0c96a 45%, #a87a22 55%, #f3d68a 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 18px #c9a24a44); }
.logo span { background: linear-gradient(180deg, #e8eeff 0%, #aab9e8 45%, #5d6fa8 55%, #c8d3f5 100%); -webkit-background-clip: text; background-clip: text; }
.hero-compact .logo { font-size: clamp(32px, 6.4vw, 70px); }
.hero .logo { border-top: 1px solid #c9a24a99; border-bottom: 1px solid #c9a24a99; display: inline-block;
  box-shadow: 0 -4px 0 -3px #c9a24a55, 0 4px 0 -3px #c9a24a55; }
.ln-inv, .pay-leg, .pay-panel { background: #0d1830; border-color: #c9a24a55; }
.escrow-held { background: #1f2a3a; border-color: #c9a24a66; }
.escrow-released { background: #10302a; } .escrow-refunded, .escrow-unpaid { background: #182238; }
.t-order, .t-summoner { color: var(--wow-gold); }
.t-order { text-shadow: 0 1px 0 #000, 0 0 16px #22c55e44; } .t-summoner { text-shadow: 0 1px 0 #000, 0 0 16px #8b9dff55; }
/* the shard in the front-page title: bigger than the letters, without pushing the title taller */
.logo-shard { height: 1.6em; vertical-align: -0.42em; margin: -0.3em .14em -0.3em 0; }
.logo { white-space: nowrap; }
/* phones: tighter letters so the spaced-out title fits the screen */
@media (max-width: 760px) {
  .hero-compact .logo { font-size: clamp(24px, 7.6vw, 40px); letter-spacing: .1em; }
}
/* wide screens: the title sits in the narrow left column */
@media (min-width: 1000px) {
  [data-page="order"] .hero-compact .logo { font-size: 27px; letter-spacing: .06em; }
  [data-page="order"] .logo-shard { height: 1.7em; vertical-align: -0.5em; }
}
@media (min-width: 1500px) {
  [data-page="order"] .hero-compact .logo { font-size: 31px; }
}
/* Title between the gold rules: the shard is laid out beside the text without stretching the box, and the
   padding is uneven on purpose (Cinzel has no descenders, so the capitals need more room below the baseline
   cut away) so the letters sit centred between the two rules. */
.hero .logo { display: inline-flex; align-items: center; line-height: 1; padding: .3em 0 .22em; }
.hero .logo .logo-shard { height: 1.85em; margin: -.5em .14em -.5em 0; vertical-align: 0; transform: translateY(-.05em); }
@media (min-width: 1000px) {
  [data-page="order"] .hero .logo .logo-shard { height: 1.95em; }
}

/* Ride simulator (local testing only): button above the fake wallet button + its list */
.sim-btn {
  position: fixed; left: 16px; bottom: 76px; z-index: 50; padding: 10px 16px; border-radius: 12px; font-weight: 800;
  background: linear-gradient(180deg, #2563eb, #1d4ed8); color: #fff; border: 0; box-shadow: 0 4px 0 #1e3a8a, 0 0 24px #2563eb55;
}
.sim-btn:hover { transform: translateY(-2px); }
.sim-panel {
  position: fixed; left: 16px; bottom: 128px; z-index: 51; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 160px); overflow: auto;
  background: #0d1830; color: #ece2c6; border: 1px solid #c9a24a; border-radius: 14px; padding: 12px; box-shadow: 0 20px 50px #000c;
  font: 14px/1.35 'EB Garamond', Georgia, serif;
}
.sim-panel[hidden] { display: none; }
.sim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 16px; }
.sim-x { background: none; border: 0; color: #9eaac2; font-size: 16px; }
.sim-note { margin: 0 0 8px; color: #9eaac2; font-size: 13px; }
.sim-group { margin: 10px 0 4px; color: #f0c96a; font: 600 12px Cinzel, serif; letter-spacing: .14em; text-transform: uppercase; }
.sim-item { display: block; width: 100%; text-align: left; margin: 4px 0; padding: 8px 10px; border-radius: 10px;
  background: #15253f; color: #ece2c6; border: 1px solid #2a3d63; font: inherit; }
.sim-item:hover { border-color: #c9a24a; background: #1d3358; }
.sim-foot { display: flex; gap: 14px; margin-top: 10px; }
.sim-link { background: none; border: 0; padding: 0; color: #f0c96a; text-decoration: underline; font: inherit; }

/* live ride simulation: a summoner that just came online glows gold for a few seconds */
.pin.fresh .core { fill: #c9a24a; }
.pin.fresh .pulse { fill: #f0c96a; animation-duration: .9s; }
.ipin.fresh .ring { fill: #c9a24a; stroke: #fff2c0; animation: fresh-glow 1s ease-in-out infinite alternate; }
@keyframes fresh-glow { from { filter: drop-shadow(0 0 2px #f0c96a); } to { filter: drop-shadow(0 0 10px #f0c96a); } }
.sim-start { width: 100%; margin: 4px 0 6px; padding: 10px; border-radius: 10px; border: 1px solid #f0d590; font: 600 15px Cinzel, serif;
  background: linear-gradient(180deg, #c9a24a, #9a7426); color: #0a1322; cursor: pointer; }
.sim-start.stop { background: #15253f; color: #f0c96a; border-color: #c9a24a; }
.sim-btn.on { background: linear-gradient(180deg, #c9a24a, #9a7426); color: #0a1322; box-shadow: 0 4px 0 #6b5014, 0 0 24px #f0c96a66; }
