:root { --bg: #000; --bar: #0b0f1c; --line: #222a40; --text: #eef1f8; --muted: #94a0bd; --acc: #22e3a5; --acc2: #3bb6ff; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body { margin: 0; height: 100%; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 12px;
  background: rgba(11, 15, 28, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; flex: none; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.tld { color: var(--acc); }
.tools { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
#q { width: 260px; max-width: 100%; background: #141b30; color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 10px; font: inherit; font-size: 13px; outline: 0; }
#q:focus { border-color: var(--acc); }
#q::placeholder { color: var(--muted); opacity: 1; }
#q:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
#lang { flex: none; background: #141b30; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font: inherit; font-size: 12px; }
.contact-btn { flex: none; margin-left: auto; border: 0; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 700;
  color: #06101c; background: linear-gradient(135deg, var(--acc), var(--acc2)); cursor: pointer; }
.contact-btn:hover { filter: brightness(1.1); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* search dropdown */
.qres { position: absolute; top: calc(100% + 6px); left: 0; width: min(380px, calc(100vw - 24px)); max-height: min(60vh, 520px); overflow-y: auto;
  margin: 0; padding: 4px; list-style: none; background: #10172b; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); z-index: 40; }
.qres li { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.qres li b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qres li small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qres li small:empty { display: none; }
.qres li:hover, .qres li.on { background: #1b2542; }
.qres li.msg { cursor: default; color: var(--muted); font-size: 13px; }
.qres li.msg:hover { background: none; }

/* contacts dialog */
.contact { border: 1px solid var(--line); border-radius: 18px; background: #10172b; color: var(--text); padding: 26px 24px 22px;
  width: min(360px, calc(100vw - 32px)); text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
.contact::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.contact img { border-radius: 16px; }
.contact h2 { margin: 12px 0 6px; font-size: 19px; }
.contact p { margin: 0 0 16px; color: #c9d1e6; font-size: 14px; }
.contact .mail { display: block; text-decoration: none; font-weight: 800; font-size: 16px; color: #06101c; border-radius: 10px; padding: 11px;
  background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.contact .x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }

/* the map */
.wall { position: relative; flex: 1; min-height: 0; background: #0a0e1a; overflow: hidden; }
#map { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: 0; }
#map:focus-visible { outline: 3px solid var(--acc); outline-offset: -3px; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.loading span { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--acc); animation: spin .9s linear infinite; }
.wall.ready .loading { display: none; }
.wall.failed .loading span { animation: none; border-color: #c0392b; }
@keyframes spin { to { transform: rotate(360deg); } }

/* zoom controls */
.ctl { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: flex; flex-direction: column; gap: 1px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.ctl button { width: 40px; height: 40px; border: 0; background: rgba(16, 23, 43, .95); color: var(--text); font: 600 20px/1 Inter, system-ui, sans-serif;
  cursor: pointer; display: grid; place-items: center; }
.ctl button:hover { background: #1b2542; color: var(--acc); }
.ctl svg { width: 18px; height: 18px; }

/* hover card */
.tip { position: fixed; z-index: 50; width: 300px; max-width: calc(100vw - 16px); background: #10172b; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); pointer-events: none; }
.tip-h { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tip-h > div { min-width: 0; }
.tip-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; background: #1d2440; }
.tip-ic canvas { width: 44px; height: 44px; display: block; }
.tip b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip small { display: block; color: var(--acc2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip p { margin: 8px 0 0; color: #c9d1e6; font-size: 13.5px; }
.tip-go { display: none; }
.tip.pin { pointer-events: auto; }
.tip.pin .tip-go, .tip.sheet .tip-go { display: block; margin-top: 10px; text-align: center; text-decoration: none; font-weight: 700; color: #06101c;
  background: linear-gradient(135deg, var(--acc), var(--acc2)); border-radius: 10px; padding: 9px; }
.tip-go[hidden] { display: none !important; }
/* touch: the card is a bottom sheet with an "Open site" button */
.tip.sheet { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; max-width: none; pointer-events: auto; }
.tip.sheet .tip-go { padding: 12px; font-size: 16px; }
body.sheet-open .ctl { display: none; }

.foot { flex: none; padding: 5px 12px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.35; border-top: 1px solid var(--line); background: var(--bar); }
.foot p { max-width: 1100px; margin: 0 auto; }
.foot a { color: var(--acc2); text-decoration: none; }

@media (max-width: 700px) {
  .bar { gap: 8px; padding: 6px 8px; }
  .logo { font-size: 0; gap: 0; }
  .logo img { width: 30px; height: 30px; }
  #q { width: 100%; font-size: 16px; padding: 6px 10px; }
  .contact-btn { margin-left: 0; padding: 6px 10px; }
  #lang { font-size: 14px; padding: 5px 4px; }
  .ctl button { width: 48px; height: 48px; font-size: 24px; }
  .foot { font-size: 9.5px; padding: 4px 8px; }
  .foot p + p { display: none; }
}
@media (prefers-reduced-motion: reduce) { .loading span { animation: none; } }
.nojs { max-height: 40vh; overflow: auto; margin: 0; }

/* advertise button + dialog */
.adv-btn { background: linear-gradient(135deg, #ffc43d, #ff8a3d); }
.contact-btn + .contact-btn { margin-left: 0; }
.adv { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; text-align: left; }
.adv h2 { margin-top: 0; padding-right: 24px; }
.adv h3 { margin: 4px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.prices { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; }
.prices li { display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto auto; column-gap: 8px; align-items: center;
  background: #141b30; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; font-size: 13px; }
.prices .pv { grid-row: 1 / 4; display: grid; place-items: center; height: 58px; }
.prices .pv i { display: block; max-width: 56px; max-height: 56px; border: 2px solid #ffc43d; border-radius: 3px; background: rgba(255, 196, 61, .18); }
.prices small { color: var(--muted); font-size: 11px; }
.prices em { font-style: normal; font-weight: 800; color: var(--acc); }
#advF { display: grid; gap: 9px; }
#advF label { display: grid; gap: 3px; font-size: 12.5px; color: #c9d1e6; }
#advF input, #advF select, #advF textarea { width: 100%; background: #141b30; color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 14px; }
#advF textarea { resize: vertical; min-height: 64px; }
#advF input:focus, #advF select:focus, #advF textarea:focus { border-color: var(--acc); outline: 0; }
#advF input:focus-visible, #advF select:focus-visible, #advF textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
#advF .bad { border-color: #ff5d5d; }
#advF button { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
#advF button:disabled { opacity: .6; cursor: wait; }
#advF .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.adv-msg { margin: 0; min-height: 1.2em; font-size: 13.5px; color: var(--acc); }
.adv-msg.bad { color: #ff7a7a; }
.tip-ad { display: inline-block; margin-bottom: 2px; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; color: #1a1200; background: #ffc43d; }
.tip-ad[hidden] { display: none; }
.foot .take { white-space: nowrap; }
.adv-btn .sm { display: none; }
@media (max-width: 700px) {
  .adv-btn .lg { display: none; }
  .adv-btn .sm { display: inline; }
  .adv-btn { white-space: nowrap; }
  #contactBtn { display: none; } /* phones: the e-mail stays in the footer line and in the advertise dialog */
  .foot .take { white-space: normal; }
}
.adv .adv-mail { margin: 10px 0 0; text-align: center; font-size: 13px; }
.adv .adv-mail a { color: var(--acc2); text-decoration: none; }
.prices em, .prices b { white-space: nowrap; }
@media (max-width: 420px) { .prices li { grid-template-columns: 44px 1fr; padding: 6px; } .prices .pv { height: 44px; } .prices .pv i { max-width: 42px; max-height: 42px; } }
/* advertise dialog: wide, compact, fits the screen without side scroll */
.adv { width: min(720px, calc(100vw - 24px)); padding: 20px 22px 16px; overflow-x: hidden; }
.adv p { margin-bottom: 12px; font-size: 13.5px; }
.adv h2 { margin-bottom: 4px; }
.prices { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.prices li { min-width: 0; grid-template-columns: 46px minmax(0, 1fr); padding: 6px 8px; }
.prices .pv { height: 46px; }
.prices .pv i { max-width: 44px; max-height: 44px; }
.prices b, .prices small, .prices em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#advF { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
#advF label:has(textarea), #advF button, #advF .adv-msg { grid-column: 1 / -1; }
#advF textarea { min-height: 46px; }
#advF button.mail { padding: 10px; }
.adv .adv-mail { margin-top: 4px; }
@media (max-width: 560px) {
  .adv { padding: 18px 14px 14px; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #advF { grid-template-columns: 1fr; }
}
@media (max-height: 760px) {
  .adv { padding: 14px 20px 10px; max-height: calc(100dvh - 12px); }
  .adv h2 { font-size: 17px; }
  .adv p { margin-bottom: 8px; font-size: 13px; line-height: 1.35; }
  .adv h3 { margin: 0 0 6px; }
  .prices { gap: 5px; margin-bottom: 8px; }
  .prices li { padding: 4px 8px; }
  .prices .pv { height: 40px; }
  .prices .pv i { max-width: 38px; max-height: 38px; }
  #advF { gap: 6px 12px; }
  #advF input, #advF select, #advF textarea { padding: 6px 10px; }
  #advF textarea { min-height: 38px; }
  .adv .adv-mail { margin-top: 0; }
}
@media (max-width: 560px) {
  .adv p { font-size: 13px; line-height: 1.35; margin-bottom: 8px; }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .prices li { grid-template-columns: minmax(0, 1fr); padding: 5px 6px; text-align: center; font-size: 12.5px; }
  .prices .pv { display: none; }
  .prices small { font-size: 10px; }
  #advF { gap: 6px; }
  #advF input, #advF select, #advF textarea { padding: 7px 10px; }
  #advF textarea { min-height: 40px; }
}

/* ===== accessibility + mobile (a11y.js) ===== */
:root { --field: #56627f; } /* form-field borders: >= 3:1 against the dark bars (WCAG 1.4.11) */
.sr { white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip { position: fixed; left: 8px; top: -200px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--acc); color: #06101c;
  font-weight: 800; text-decoration: none; }
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }
#q, #lang, #advF input, #advF select, #advF textarea { border-color: var(--field); }
.bar { padding-top: max(6px, env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
footer.foot { padding-bottom: calc(5px + env(safe-area-inset-bottom)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }

/* close buttons: 44px targets */
.contact .x, .tip-x { top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; line-height: 1; padding: 0; }
.contact .x:hover, .tip-x:hover { color: var(--text); background: #1b2542; }
.adv h2, .inview h2 { padding-right: 32px; } /* clears the × glyph; a wider pad wraps the title on 320px phones */
.tip-x { position: absolute; display: none; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.tip.pin .tip-x, .tip.sheet .tip-x { display: grid; }
.tip.pin .tip-h, .tip.sheet .tip-h { padding-right: 40px; }
.tip.sheet { left: calc(8px + env(safe-area-inset-left)) !important; right: calc(8px + env(safe-area-inset-right)); max-width: 560px; margin: 0 auto;
  max-height: min(70dvh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; }
.tip.sheet b { font-size: 17px; white-space: normal; }
.tip.sheet small { font-size: 14px; }
.tip.sheet p { font-size: 15px; line-height: 1.45; }

/* zoom controls + "brands on screen" */
.ctl { right: calc(12px + env(safe-area-inset-right)); }
.ctl button { width: 44px; height: 44px; }
.inview-btn { position: absolute; left: calc(12px + env(safe-area-inset-left)); bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 7px;
  min-height: 44px; max-width: calc(100% - 96px); padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(16, 23, 43, .95);
  color: var(--text); font: 600 13px/1.2 Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.inview-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inview-btn:hover { background: #1b2542; color: var(--acc); }
.inview-btn svg { width: 18px; height: 18px; flex: none; }
.inview-btn[hidden], body.sheet-open .inview-btn { display: none; }

/* "brands on screen" dialog */
.inview { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 18px 16px 12px; text-align: left; flex-direction: column; }
.inview[open] { display: flex; }
.inview h2 { margin: 0 0 8px; font-size: 18px; }
.inview .inview-none { margin: 4px 0 8px; }
.inview-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.inview-list li { position: relative; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 2px 0; } /* relative: keeps the .sr hints inside the list's scroll box (else the dialog gets a 2nd scrollbar) */
.inview-list a { flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; padding: 4px 6px; border-radius: 8px;
  color: var(--text); text-decoration: none; }
.inview-list a:hover { background: #1b2542; }
.inview-list b, .inview-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inview-list b { font-size: 14.5px; font-weight: 600; }
.inview-list small { color: var(--acc2); font-size: 12.5px; }
.inview-list .tag { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  color: #1a1200; background: #ffc43d; vertical-align: 1px; }
.inview-list button { flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; background: #141b30; color: var(--text);
  font: 600 13px/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.inview-list button:hover { border-color: var(--acc); color: var(--acc); }

/* touch screens and phones: 44px header targets, 16px inputs (no iOS focus zoom) */
@media (pointer: coarse), (max-width: 700px) {
  #q, #lang, .contact-btn { min-height: 44px; }
  .logo { min-height: 44px; min-width: 44px; justify-content: center; }
  #q, #lang { font-size: 16px; }
  .contact-btn { font-size: 13px; }
}
@media (max-width: 700px) {
  .bar { gap: 6px; padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .ctl { right: calc(10px + env(safe-area-inset-right)); bottom: 10px; }
  .inview-btn { left: calc(10px + env(safe-area-inset-left)); bottom: 10px; }
}
@media (max-width: 360px) {
  .contact-btn { padding: 6px 8px; font-size: 12.5px; }
  #lang { padding: 5px 2px; }
  .inview-btn { padding: 0 12px; }
}
/* phones (portrait and landscape): the footer is one line, tap (or Tab to its link) to read it all */
@media (max-width: 700px), (max-height: 500px) {
  footer.foot { font-size: 11px; padding-top: 3px; padding-bottom: calc(3px + env(safe-area-inset-bottom)); cursor: pointer; }
  footer.foot p:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  footer.foot .take { white-space: inherit; }
  footer.foot p + p { display: none; }
  footer.foot.open p:first-child, footer.foot:focus-within p:first-child { white-space: normal; }
}
/* landscape phones: short screen, put the zoom buttons in a row */
@media (max-height: 500px) {
  .bar { padding-top: max(3px, env(safe-area-inset-top)); padding-bottom: 3px; }
  .ctl { flex-direction: row; bottom: 8px; }
  .inview-btn { bottom: 8px; }
  .contact { max-height: calc(100dvh - 12px); overflow-y: auto; }
}

/* user preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --line: #8a96b4; --muted: #cdd4e6; --field: #b4bdd3; }
  .contact-btn, .ctl, .inview-btn, .tip, .contact, .qres { border: 1px solid #fff; }
  :focus-visible { outline-width: 3px; }
}
@media (forced-colors: active) {
  .ctl button, .contact-btn, .inview-btn, .inview-list button, .contact .x, .tip-x { border: 1px solid ButtonText; }
  #map:focus-visible { outline-color: Highlight; }
}

/* ---------- search: paid sponsors listed first (map-search.js marks them li.sp with a .qtag label) ---------- */
.qres li.sp { border-left: 3px solid #ffc43d; padding-left: 7px; background: rgba(255, 196, 61, .06); }
.qres li.sp:hover, .qres li.sp.on { background: rgba(255, 196, 61, .14); }
.qres li.sp b { color: #ffe3a0; }
.qres .qtag { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; color: #1a1200; background: #ffc43d; vertical-align: 1px; }
@media (forced-colors: active) {
  .qres li.sp { border-left-color: Highlight; }
  .qres .qtag { border: 1px solid CanvasText; }
}
