/* =================================================================
   SALVAGE LINE — shared stylesheet
   Community hub for extraction shooters & hardcore survival games.

   Structure of this file:
   1. Design tokens (custom properties)
   2. Reset & base
   3. Layout primitives
   4. Header / nav / breadcrumb
   5. Buttons & form controls
   6. Footer
   7. Home page
   8. Maps grid page
   9. Game hub page (Arc Raiders)
   10. Spaceport interactive map
   11. Utilities & responsive
   12. Member accounts (header widget, login/register, dashboard)
   ================================================================= */

/* -----------------------------------------------------------------
   1. DESIGN TOKENS
   No external fonts are loaded. Headings use a condensed, tightly
   tracked system-font stack to read as industrial/technical;
   body copy uses a neutral system stack for legibility.
   ----------------------------------------------------------------- */
:root{
  /* surfaces */
  --void:        #0a0a0c;
  --charcoal:    #111114;
  --panel:       #16171a;
  --panel-raised:#1c1d21;
  --line:        #2a2b30;
  --line-bright: #3a3c42;

  /* text */
  --ink-0:  #eef0f1;
  --ink-1:  #b7bac0;
  --ink-2:  #82868d;
  --ink-3:  #55585f;

  /* accents */
  --cyan:        #00f0ff;
  --cyan-dim:    #0aa6b3;
  --cyan-glow:   rgba(0, 240, 255, .35);
  --orange:      #ff6b00;
  --orange-dim:  #b34d05;
  --orange-glow: rgba(255, 107, 0, .35);
  --red:         #ff3b3b;
  --green:       #37e06a;
  --purple:      #b17bff;

  /* type */
  --font-head: "Rajdhani", "Bank Gothic", "Eurostile", "Oswald", ui-sans-serif, "Segoe UI Semibold", system-ui, sans-serif;
  --font-body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  /* rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 2px;
  --radius-md: 4px;
  --header-h: 68px;

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* -----------------------------------------------------------------
   2. RESET & BASE
   ----------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--void);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* faint grain + grid backdrop applied once behind everything */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}
body::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main{ position: relative; z-index: 1; }

h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: var(--ink-0);
}
h1{ font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; }
h2{ font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; }
h3{ font-size: clamp(1.15rem, 2vw, 1.4rem); }
p{ margin: 0 0 1em; color: var(--ink-1); max-width: 62ch; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style: none; }
img{ max-width: 100%; display: block; }
svg{ display:block; }
button{ font: inherit; color: inherit; }

::selection{ background: var(--cyan); color: var(--void); }

/* generic focus ring — accessible, on-brand */
:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* -----------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ----------------------------------------------------------------- */
.wrap{
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section{ padding-block: clamp(3rem, 7vw, 6rem); }
.section-head{
  display:flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.section-head .tag{ margin-bottom:.6rem; }
.section-head p{ margin:0; }
.section-intro{
  margin: -0.75rem 0 1.75rem;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* the small coordinate/index tag used as a structural device on
   section heads and cards — represents HUD readouts, not decoration */
.tag{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--cyan);
}
.tag::before{
  content:"";
  width:6px; height:6px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* clipped-corner industrial panel used across cards/panels */
.panel{
  position:relative;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.panel::before{
  /* corner accent stroke */
  content:"";
  position:absolute; top:0; left:0; right:0; bottom:0;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px transparent;
}

/* -----------------------------------------------------------------
   4. HEADER / NAV / BREADCRUMB
   ----------------------------------------------------------------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  height: var(--header-h);
  display:flex; align-items:center;
  background: rgba(10,10,12,.86);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  width:100%; max-width:1280px; margin-inline:auto;
  padding-inline: var(--gutter);
  display:flex; align-items:center; gap: 2rem;
}
.brand{
  display:flex; align-items:center; gap:.6rem;
  font-family: var(--font-head);
  font-weight:700; font-size: 1.05rem;
  letter-spacing:.03em;
  white-space: nowrap;
}
.brand-mark{
  width: 26px; height: 26px;
  position: relative;
  flex: none;
}
.brand-mark svg{ width:100%; height:100%; }
.brand span.accent{ color: var(--cyan); }

.main-nav{ display:flex; align-items:center; gap: 1.9rem; margin-left: .5rem; }
.main-nav a{
  font-size: .92rem;
  color: var(--ink-1);
  position:relative;
  padding: .3rem 0;
  transition: color .18s var(--ease);
}
.main-nav a:hover, .main-nav a:focus-visible{ color: var(--ink-0); }
.main-nav a.is-active{ color: var(--cyan); }
.main-nav a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-2px; height:1px;
  background: var(--cyan);
  transition: right .22s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after{ right:0; }

.nav-search{
  position: relative;
  display:flex; align-items:center;
  width: 100%; max-width: 260px;
  margin-left: auto;
}
.nav-search .icon{
  position:absolute; left: .75rem;
  width: 14px; height:14px; color: var(--ink-2); pointer-events:none;
}
.nav-search input[type="search"]{
  width:100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: .85rem;
  padding: .55rem .8rem .55rem 2.1rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-search input::placeholder{ color: var(--ink-3); }
.nav-search input:focus{
  outline:none;
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 1px var(--cyan-glow);
}

.header-status{
  margin-left:1.4rem;
  display:flex; align-items:center; gap:.6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-2);
  letter-spacing:.06em;
  white-space:nowrap;
  flex:none;
}
.header-status .dot{
  width:7px;height:7px;border-radius:50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 2.6s ease-in-out infinite;
}
@keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:.35;} }

.nav-toggle{
  display:none;
  margin-left:auto;
  width: 38px; height: 32px;
  background: transparent; border: 1px solid var(--line);
  position: relative;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left: 9px; right:9px; height:1px; background: var(--ink-0);
}
.nav-toggle span{ top:15px; }
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top:6px; }

/* breadcrumb strip beneath header — present on deep pages */
.breadcrumb{
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
}
.breadcrumb-inner{
  max-width:1280px; margin-inline:auto; padding: .65rem var(--gutter);
  display:flex; align-items:center; gap:.5rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-2);
  letter-spacing: .04em;
  overflow-x:auto;
  white-space:nowrap;
}
.breadcrumb-inner a{ color: var(--ink-2); transition: color .15s; }
.breadcrumb-inner a:hover{ color: var(--cyan); }
.breadcrumb-inner .sep{ color: var(--ink-3); }
.breadcrumb-inner .current{ color: var(--cyan); }

/* -----------------------------------------------------------------
   5. BUTTONS & FORM CONTROLS
   ----------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55em;
  padding: .8rem 1.5rem;
  font-family: var(--font-head);
  font-weight:600; font-size: .92rem; letter-spacing:.03em;
  white-space:nowrap;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--ink-0);
  cursor:pointer;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover, .btn:focus-visible{
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-glow), 0 0 22px -6px var(--cyan-glow);
}
.btn-primary{
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--void);
}
.btn-primary:hover, .btn-primary:focus-visible{
  background: #17f5ff;
  color: var(--void);
  box-shadow: 0 0 26px -4px var(--cyan-glow);
}
.btn-ghost{ border-color: transparent; padding-inline: .2rem; }
.btn-ghost:hover{ box-shadow:none; }
.btn-sm{ padding: .55rem 1rem; font-size: .8rem; }
.btn[disabled]{
  opacity:.4; cursor: not-allowed;
}
.btn[disabled]:hover{ border-color: var(--line-bright); color: var(--ink-0); box-shadow:none; }

.field{
  position: relative;
  display:flex; align-items:center;
}
.field input[type="search"], .field input[type="text"]{
  width:100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .85rem 1rem .85rem 2.6rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder{ color: var(--ink-3); }
.field input:focus{
  outline:none;
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 1px var(--cyan-glow);
}
.field .icon{
  position:absolute; left: .9rem;
  width: 16px; height:16px; color: var(--ink-2); pointer-events:none;
}

/* -----------------------------------------------------------------
   6. FOOTER
   ----------------------------------------------------------------- */
.site-footer{
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  padding-block: 3rem 2rem;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-col h4{
  font-size: .78rem; letter-spacing:.1em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1rem; font-family: var(--font-mono); font-weight:500;
}
.footer-col ul{ display:flex; flex-direction:column; gap:.65rem; }
.footer-col a{ color: var(--ink-1); font-size: .92rem; transition: color .15s; }
.footer-col a:hover{ color: var(--cyan); }
.footer-brand p{ font-size: .9rem; color: var(--ink-2); max-width: 34ch; }
.footer-social{ display:flex; gap:.7rem; margin-top:1.2rem; }
.footer-social a{
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--line); color: var(--ink-1);
  transition: all .18s var(--ease);
}
.footer-social a:hover{ border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px -4px var(--cyan-glow); }
.footer-social svg{ width:16px; height:16px; }
.footer-bottom{
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem;
  font-size: .78rem; color: var(--ink-3); font-family: var(--font-mono);
}

/* =====================================================================
   7. HOME PAGE
   ===================================================================== */
.hero{
  position: relative;
  min-height: min(88vh, 820px);
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(ellipse 60% 55% at 78% 18%, rgba(0,240,255,.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 12% 92%, rgba(255,107,0,.10), transparent 60%),
    linear-gradient(180deg, #0a0a0c 0%, #0c0d10 60%, #0a0a0c 100%);
}
.hero-bg .scan{
  position:absolute; inset:0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,.012) 4px);
}
.hero-bg .hero-grid{
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(0,240,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,240,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-frame{
  position:absolute; inset: 24px;
  border: 1px solid var(--line-bright);
  pointer-events:none;
  opacity:.5;
}
.hero-frame span{
  position:absolute; width:18px; height:18px; border: 1px solid var(--cyan);
}
.hero-frame span:nth-child(1){ top:-1px; left:-1px; border-right:0; border-bottom:0; }
.hero-frame span:nth-child(2){ top:-1px; right:-1px; border-left:0; border-bottom:0; }
.hero-frame span:nth-child(3){ bottom:-1px; left:-1px; border-right:0; border-top:0; }
.hero-frame span:nth-child(4){ bottom:-1px; right:-1px; border-left:0; border-top:0; }

.hero-inner{
  position:relative; z-index:1;
  width:100%; max-width:1280px; margin-inline:auto; padding-inline: var(--gutter);
  display:grid; grid-template-columns: 1.4fr .9fr; gap: 3rem; align-items:end;
  padding-block: 6rem 4rem;
}
.hero-eyebrow{
  display:flex; align-items:center; gap:.7rem;
  font-family: var(--font-mono); font-size:.78rem; letter-spacing:.1em; color: var(--orange);
  margin-bottom: 1.4rem;
}
.hero-eyebrow .line{ width: 34px; height:1px; background: var(--orange); }
.hero h1{
  max-width: 14ch;
}
.hero h1 em{
  font-style:normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-0);
}
.hero-lede{
  font-size: 1.08rem;
  color: var(--ink-1);
  max-width: 46ch;
  margin-top: 1.2rem;
}
.hero-actions{ display:flex; gap: 1rem; margin-top: 2.2rem; flex-wrap:wrap; }

.hero-readout{
  align-self:end;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink-2);
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
  display:flex; flex-direction:column; gap: .9rem;
}
.hero-readout .row{ display:flex; justify-content:space-between; gap:1rem; }
.hero-readout .row b{ color: var(--ink-0); font-weight:500; }
.hero-readout .row .v-cyan{ color: var(--cyan); }
.hero-readout .row .v-orange{ color: var(--orange); }

/* news cards */
.news-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.news-card{
  padding: 1.6rem;
  display:flex; flex-direction:column; gap: .9rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.news-loading{ grid-column: 1 / -1; color: var(--ink-3); font-size:.9rem; }
.news-card:hover{ border-color: var(--line-bright); transform: translateY(-3px); }
.news-card .meta{
  display:flex; align-items:center; justify-content:space-between;
  font-family: var(--font-mono); font-size:.7rem; letter-spacing:.06em; color: var(--ink-3);
}
.news-card .meta .kind{ color: var(--cyan); }
.news-card h3{ font-size: 1.08rem; margin-bottom:.3rem; }
.news-card p{ font-size: .89rem; margin:0; }
.news-card .read-more{
  margin-top:auto; font-size:.82rem; color: var(--ink-2);
  display:flex; align-items:center; gap:.4rem;
}
.news-card:hover .read-more{ color: var(--cyan); }

/* trending now strip */
.trending-panel{
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  overflow: hidden;
}
.trending-video{
  padding: 1.6rem;
  border-right: 1px solid var(--line);
  display:flex; flex-direction:column; gap: .9rem;
  background: var(--charcoal);
}
.video-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-embed iframe{
  position:absolute; inset:0;
  width:100%; height:100%; border:0; display:block;
}
.video-caption{
  margin:0;
  font-size: .82rem;
  color: var(--ink-2);
}
.video-caption a{
  color: var(--cyan);
  font-weight:600;
  transition: color .15s var(--ease);
}
.video-caption a:hover{ color: #17f5ff; text-decoration: underline; }

.trending-info{
  padding: 1.8rem 2rem;
  display:flex; flex-direction:column;
  justify-content:center;
  gap: .5rem;
}
.trending-info .tag{ margin-bottom:.4rem; }
.trending-info h3{ font-size: clamp(1.15rem, 2.2vw, 1.55rem); margin-bottom:.4rem; }
.trending-info p{ font-size: .92rem; margin-bottom: 1.2rem; }
.trending-info .btn{ align-self: flex-start; }

@media (max-width: 800px){
  .trending-panel{ grid-template-columns: 1fr; }
  .trending-video{ border-right:0; border-bottom: 1px solid var(--line); }
}

/* active maps strip */
.map-strip{
  display:grid;
  grid-template-columns: repeat(6, 1fr);   /* row 1: the six Arc Raiders maps, row 2: other games */
  gap: 1.25rem;
}
@media (max-width: 1279px){
  .map-strip{ grid-template-columns: repeat(4, 1fr); }
}
.map-tile{
  position:relative;
  aspect-ratio: 4/5;
  overflow:hidden;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding: 1.3rem;
  transition: border-color .2s var(--ease);
}
.map-tile:hover{ border-color: var(--cyan-dim); }
.map-tile .bg{
  position:absolute; inset:0; z-index:0;
  background: linear-gradient(160deg, var(--panel-raised), var(--charcoal));
}
.map-tile .bg.has-image{
  background-size: cover;
  background-position: top center;
}
.map-tile .bg.has-image::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,10,12,.25) 0%, rgba(10,10,12,.55) 55%, rgba(10,10,12,.92) 100%);
}
.map-tile .bg::after{
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity:.5;
}
.map-tile .content{ position:relative; z-index:1; }
.map-tile .game{ font-family: var(--font-mono); font-size:.68rem; color: var(--ink-2); letter-spacing:.08em; margin-bottom:.35rem; }
.map-tile h3{ margin-bottom:.3rem; font-size:1.2rem; }
.map-tile .status{
  font-family: var(--font-mono); font-size:.68rem; letter-spacing:.06em;
  display:inline-flex; align-items:center; gap:.4em; color: var(--green);
}
.map-tile .status .d{ width:5px;height:5px;background:currentColor;border-radius:50%; }
.map-tile.is-soon .status{ color: var(--ink-3); }
.map-tile .arrow{
  position:absolute; top:1.3rem; right:1.3rem; z-index:1;
  width: 30px; height:30px; border:1px solid var(--line-bright);
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-1);
  transition: all .18s var(--ease);
}
.map-tile:hover .arrow{ border-color: var(--cyan); color: var(--cyan); transform: translate(2px,-2px); }

.section-cta{ text-align:center; margin-top: 2.4rem; }

/* =====================================================================
   8. MAPS GRID PAGE
   ===================================================================== */
.page-head{
  padding-block: 3.2rem 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0,240,255,.04), transparent);
}
.page-head .tag{ margin-bottom: 1rem; }
.page-head p{ font-size: 1.02rem; max-width: 56ch; }

.toolbar{
  display:flex; align-items:center; gap: 1rem; flex-wrap:wrap;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.4rem;
}
.toolbar .field{ max-width: 360px; flex: 1 1 260px; }
.toolbar .result-count{
  font-family: var(--font-mono); font-size:.78rem; color: var(--ink-2); letter-spacing:.04em;
  margin-left:auto;
}

.game-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.game-card{
  display:flex; flex-direction:column;
  overflow:hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.game-card:hover{ transform: translateY(-4px); border-color: var(--cyan-dim); }
.game-card .thumb{
  position:relative;
  aspect-ratio: 16/10;
  background: linear-gradient(150deg, var(--panel-raised), var(--charcoal) 70%);
  overflow:hidden;
}
.game-card .thumb::after{
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* game card with a real cover photo (e.g. Arc Raiders on maps.html) */
.game-card .thumb .thumb-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center 40%;
  display:block;
  transition: transform .4s var(--ease);
}
.game-card:hover .thumb .thumb-img{ transform: scale(1.04); }
.game-card .thumb.has-image::after{
  background-image: linear-gradient(180deg, rgba(10,10,12,.35) 0%, rgba(10,10,12,0) 30%, rgba(10,10,12,0) 70%, rgba(10,10,12,.45) 100%);
  background-size:auto;
}
.game-card .thumb .glow{
  position:absolute; width: 180px; height:180px; border-radius:50%;
  filter: blur(50px); opacity:.35;
}
.game-card[data-game="arc-raiders"] .thumb .glow{ background: var(--cyan); top:-40px; right:-40px; }
.game-card[data-game="dayz"] .thumb .glow{ background: var(--orange); bottom:-40px; left:-40px; }
.game-card[data-game="tarkov"] .thumb .glow{ background: var(--red); top:-30px; left:-30px; }
.game-card .thumb .initial{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-head); font-weight:700; font-size: 4.2rem; color: rgba(255,255,255,.06);
  letter-spacing:-.02em;
}
.game-card .badge{
  position:absolute; top: .9rem; left: .9rem; z-index:2;
  font-family: var(--font-mono); font-size:.66rem; letter-spacing:.08em;
  padding: .3rem .6rem;
  background: rgba(10,10,12,.8); border: 1px solid var(--line-bright);
  color: var(--ink-1);
}
.game-card.is-featured .badge{ color: var(--cyan); border-color: var(--cyan-dim); }
.game-card.is-soon .badge{ color: var(--orange); border-color: var(--orange-dim); }
.game-card .body{ padding: 1.4rem; display:flex; flex-direction:column; gap:.6rem; flex:1; }
.game-card h3{ margin-bottom:0; }
.game-card p{ font-size:.9rem; margin:0; }
.game-card .stats{
  display:flex; gap: 1.4rem; margin-top:.4rem;
  font-family: var(--font-mono); font-size:.72rem; color: var(--ink-2);
}
.game-card .stats b{ color: var(--ink-0); font-weight:600; display:block; font-size:.95rem; font-family: var(--font-head); }
.game-card .cta{
  margin-top: auto; padding-top: 1rem;
  display:flex; align-items:center; justify-content:space-between;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-1);
}
.game-card.is-soon{ cursor: default; }
.game-card.is-soon .cta{ color: var(--ink-3); }
.game-card:not(.is-soon):hover .cta{ color: var(--cyan); }

.game-card.is-hidden{ display:none; }
.no-results{
  display:none;
  padding: 3.5rem 1rem;
  text-align:center;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: .88rem;
  border: 1px dashed var(--line);
}
.no-results.is-visible{ display:block; }

/* =====================================================================
   9. GAME HUB PAGE (Arc Raiders)
   ===================================================================== */
.game-hero{
  position:relative;
  padding-block: 4rem 3rem;
  border-bottom: 1px solid var(--line);
  overflow:hidden;
}
.game-hero::before{
  content:""; position:absolute; inset:0; z-index:0;
  background: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(0,240,255,.10), transparent 60%);
}
.game-hero .inner{ position:relative; z-index:1; display:grid; grid-template-columns: 1.3fr .8fr; gap:3rem; align-items:end; }
.game-hero .meta-row{
  display:flex; gap: 2rem; margin-top: 1.6rem; flex-wrap:wrap;
  font-family: var(--font-mono); font-size:.78rem; color: var(--ink-2);
}
.game-hero .meta-row b{ color: var(--ink-0); display:block; font-family: var(--font-head); font-size: 1.4rem; }
.game-hero-panel{ padding: 1.5rem; }
.game-hero-panel h4{ font-family: var(--font-mono); font-size:.72rem; letter-spacing:.08em; color: var(--ink-2); text-transform:uppercase; margin-bottom:.9rem; }
.game-hero-panel ul{ display:flex; flex-direction:column; gap:.6rem; }
.game-hero-panel li{ display:flex; justify-content:space-between; font-size:.86rem; color: var(--ink-1); border-bottom: 1px solid var(--line); padding-bottom:.6rem; }
.game-hero-panel li:last-child{ border-bottom:none; padding-bottom:0; }
.game-hero-panel li span:last-child{ color: var(--ink-0); font-family: var(--font-mono); }

.maps-list{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.map-card{
  display:flex; flex-direction:column;
  overflow:hidden;
}
.map-card .visual{
  aspect-ratio: 16/11; position:relative;
  background: linear-gradient(150deg, var(--panel-raised), var(--charcoal));
}
.map-card .visual svg{ position:absolute; inset:0; width:100%; height:100%; opacity:.9; }
.map-card .visual img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position: top center; display:block; }
.map-card .body{ padding: 1.4rem; display:flex; flex-direction:column; gap:.7rem; }
.map-card .row-top{ display:flex; align-items:center; justify-content:space-between; }
.map-card .difficulty{ display:flex; gap:.25rem; }
.map-card .difficulty i{ width:6px; height:12px; background: var(--line-bright); display:block; }
.map-card .difficulty i.is-on{ background: var(--orange); }
.map-card.is-featured{ border-color: var(--cyan-dim); box-shadow: 0 0 0 1px var(--cyan-glow), 0 20px 50px -30px var(--cyan-glow); }
.map-card.is-featured .badge{ position:absolute; margin:1rem; color: var(--cyan); font-family: var(--font-mono); font-size:.66rem; letter-spacing:.08em; border:1px solid var(--cyan-dim); padding:.3rem .6rem; background: rgba(10,10,12,.7); }
.map-card .cta-row{ margin-top:.3rem; display:flex; align-items:center; justify-content:space-between; }
.map-card.is-locked{ opacity:.65; }
.map-card.is-locked .visual{ filter: grayscale(1); }

/* =====================================================================
   10. SPACEPORT INTERACTIVE MAP
   ===================================================================== */
.map-header{
  padding-block: 2.2rem 1.6rem;
  border-bottom: 1px solid var(--line);
}
.map-header .top-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; }
.map-header .stat-row{
  display:flex; gap: 1.8rem; margin-top: 1rem; flex-wrap:wrap;
  font-family: var(--font-mono); font-size:.76rem; color: var(--ink-2);
}
.map-header .stat-row b{ color: var(--ink-0); font-family:var(--font-head); font-size:1rem; }

.tactical{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  padding-block: 2rem;
  align-items:start;
}
.map-surface-wrap{
  position:relative;
  border: 1px solid var(--line);
  background: var(--charcoal);
}
.map-surface-wrap .corner{
  position:absolute; width:16px; height:16px; border: 1px solid var(--cyan); z-index:3; pointer-events:none;
}
.map-surface-wrap .corner.tl{ top:-1px; left:-1px; border-right:0; border-bottom:0; }
.map-surface-wrap .corner.tr{ top:-1px; right:-1px; border-left:0; border-bottom:0; }
.map-surface-wrap .corner.bl{ bottom:-1px; left:-1px; border-right:0; border-top:0; }
.map-surface-wrap .corner.br{ bottom:-1px; right:-1px; border-left:0; border-top:0; }

/* ---- Filters: one button on the map that opens a small checklist ----
   Sits in the top-right corner of the map (the floor switch of multi-floor
   maps is top-left) and shares its look, so the two read as one control set.
   It is a sibling of .map-viewport, so touches on it never reach pan/zoom. */
.filter-menu{
  position:absolute; top:.8rem; right:.8rem; z-index:7;
  font-family: var(--font-mono);
}
.filter-menu[hidden]{ display:none; }
/* the map card is clipped to cut corners; that would cut off the open filter panel (see map.js) */
.map-surface-wrap.is-menu-open{ clip-path: none; }
.filter-toggle{
  display:flex; align-items:center; gap:.55rem;
  position:relative;
  min-height: 42px; padding: 0 .85rem;
  background: rgba(10,10,12,.82);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line-bright);
  color: var(--ink-1);
  font: inherit; font-size:.74rem; letter-spacing:.06em; text-transform:uppercase;
  cursor:pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.filter-toggle:hover{ color: var(--ink-0); border-color: var(--ink-2); }
.filter-toggle:focus-visible{ outline: 1px solid var(--cyan); outline-offset:2px; }
.filter-toggle .ft-icon{ width:16px; height:16px; flex:none; }
.filter-menu.is-open .filter-toggle,
.filter-toggle.has-filters{ color: var(--cyan); border-color: var(--cyan); }
.filter-toggle.has-filters{ background: rgba(4,34,38,.9); }
.filter-count{
  min-width:1.5em; padding:.1rem .35rem; text-align:center;
  background: var(--cyan); color: var(--void);
  font-size:.66rem; font-weight:700; letter-spacing:0;
}
.filter-count[hidden]{ display:none; }

.filter-panel{
  position:absolute; top: calc(100% + .45rem); right:0;
  display:flex; flex-direction:column;
  width: min(17.5rem, calc(100vw - 3.5rem));
  max-height: min(70vh, 30rem);
  scroll-margin: 12px 0;   /* room left at the screen edge when the page scrolls to reveal the panel */
  background: rgba(12,13,15,.97);
  border: 1px solid var(--cyan-dim);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.85);
  /* closed: invisible AND out of the tab order (visibility), so hidden checkboxes never take focus */
  opacity:0; visibility:hidden; transform: translateY(-6px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .15s;
}
.filter-menu.is-open .filter-panel{
  opacity:1; visibility:visible; transform:none;
  transition-delay: 0s;
}
.fp-head{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
}
.fp-title{ font-size:.72rem; letter-spacing:.04em; color: var(--ink-2); }
.fp-all{
  background:none; border:0; padding:.25rem .1rem;
  font: inherit; font-size:.72rem; color: var(--cyan); cursor:pointer;
}
.fp-all:hover{ text-decoration: underline; }
.fp-all:focus-visible{ outline: 1px solid var(--cyan); outline-offset:2px; }

.fp-list{ overflow-y:auto; overscroll-behavior: contain; padding: .3rem 0; }
.fp-item{
  position:relative;
  display:flex; align-items:center; gap:.7rem;
  min-height: 2.1rem; padding: .3rem .9rem;
  font-size:.78rem; color: var(--ink-1);
  cursor:pointer; user-select:none; -webkit-user-select:none;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.fp-item:hover{ background: rgba(255,255,255,.04); color: var(--ink-0); }
.fp-item input{ position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none; }
/* the checkbox itself carries the category colour, the same colour as its markers on the map */
.fp-box{
  flex:none; position:relative; width:16px; height:16px;
  border: 1.5px solid var(--c, var(--ink-2));
  background: var(--void);
  transition: background .12s var(--ease);
}
.fp-box.is-extract{ border-style: dashed; }   /* extraction zones are dashed rings on the map */
.fp-box::after{
  content:""; position:absolute; left:4px; top:0; width:5px; height:9px;
  border: solid var(--void); border-width:0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .12s var(--ease);
}
.fp-item input:checked + .fp-box{ background: var(--c, var(--cyan)); border-style: solid; }
.fp-item input:checked + .fp-box::after{ transform: rotate(45deg) scale(1); }
.fp-item input:focus-visible + .fp-box{ outline: 1px solid var(--cyan); outline-offset:2px; }
.fp-item input:checked ~ .fp-name{ color: var(--ink-0); }
.fp-name{ flex:1; min-width:0; }
.fp-n{ font-size:.68rem; color: var(--ink-3); }
.fp-item.is-empty .fp-name{ color: var(--ink-2); }   /* listed, but no points of it on this map / floor */
.fp-item.is-empty:hover .fp-name, .fp-item.is-empty input:checked ~ .fp-name{ color: var(--ink-1); }
.fp-foot{
  padding: .6rem .9rem;
  border-top: 1px solid var(--line);
  font-size:.68rem; color: var(--ink-2);
}
@media (pointer: coarse){
  .filter-toggle{ min-height: 46px; }       /* = the floor switch: 44px buttons + border */
  .fp-item{ min-height: 44px; }
}
@media (max-width: 520px){
  .filter-menu{ top:.5rem; right:.5rem; }   /* same inset as the floor switch */
  /* icon-only on phones so it fits next to the floor switch; the label stays for screen readers,
     and the number of ticked filters moves to a badge on the corner */
  .filter-toggle{ padding:0; min-width: 46px; justify-content:center; }
  .ft-label{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .filter-count{ position:absolute; top:-7px; right:-7px; }
}
@media (max-width: 360px){
  .floor-btn .floor-name{ display:none; }   /* very small phones: "L1 / L2" + count is enough */
}
@media (prefers-reduced-motion: reduce){
  .filter-toggle, .filter-panel, .fp-item, .fp-box, .fp-box::after{ transition:none; }
}

.map-viewport{
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 12px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.map-viewport.is-panning{ cursor: grabbing; }
.map-surface{
  position:absolute; inset:0;
  transform-origin: center center;
  transition: transform .18s var(--ease);
  will-change: transform;
}
.map-surface svg{ width:100%; height:100%; display:block; }

.zoom-controls{
  position:absolute; right: 1rem; bottom: 1rem; z-index:5;
  display:flex; flex-direction:column; border: 1px solid var(--line-bright); background: rgba(10,10,12,.75); backdrop-filter: blur(4px);
}
.zoom-controls button{
  width: 34px; height: 34px;
  background:transparent; border:none; border-bottom: 1px solid var(--line-bright);
  color: var(--ink-0); font-size: 1rem; cursor:pointer;
}
.zoom-controls button:last-child{ border-bottom:none; }
.zoom-controls button:hover{ color: var(--cyan); background: rgba(0,240,255,.06); }

.poi{ cursor:pointer; }
.poi .ring{
  fill: none;
  stroke-width: 1.4;
  opacity: .4;
}
.poi .pulse{
  fill: none;
  stroke-width: 1.4;
  opacity: 0;
  transform-origin: center;
  animation: pulse-ring 1.6s ease-out 1;
  animation-fill-mode: forwards;
}
.poi .dot{ transition: r .15s var(--ease); }
/* category switched off in the filter menu: gone from the map, not just faded */
.poi.is-hidden{ display:none; }
.poi:focus{ outline: none; }
.poi:focus-visible{ outline: none; }
.poi:focus-visible .ring{ stroke: var(--cyan); opacity: .8; }
@keyframes pulse-ring{
  0%{ transform: scale(.6); opacity:.55; }
  100%{ transform: scale(2.1); opacity:0; }
}

/* tooltip that follows a hovered POI */
.map-tooltip{
  position:absolute; z-index: 10;
  pointer-events:none;
  background: rgba(12,13,15,.96);
  border: 1px solid var(--cyan-dim);
  padding: 0;
  font-family: var(--font-mono); font-size:.72rem;
  color: var(--ink-0);
  opacity:0; transform: translate(-50%, calc(-100% - 12px));
  transition: opacity .12s var(--ease);
  box-shadow: 0 10px 28px -10px rgba(0,0,0,.7);
  min-width: 140px;
  max-width: 200px;
  overflow: hidden;
}
.map-tooltip.is-visible{ opacity:1; }
.map-tooltip .tip-image{
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0d0e11;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.map-tooltip .tip-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-tooltip .tip-image .tip-no-image{
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.map-tooltip .tip-image.has-image .tip-no-image{ display: none; }
.map-tooltip .tip-body{
  padding: .5rem .7rem .55rem;
}
.map-tooltip .name{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.map-tooltip .rarity{ text-transform:capitalize; margin-top: .15rem; }


/* ---- Area-name index beside every interactive map ---- */
.area-label-panel{
  padding: 1.15rem;
  margin-bottom: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.area-label-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:.8rem;
  padding-bottom:.8rem;
  border-bottom:1px solid var(--line);
}
.area-label-head h2{
  margin:.2rem 0 0;
  font-size:1.05rem;
}
.area-label-count{
  min-width:1.7rem;
  height:1.7rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line-bright);
  color:var(--cyan);
  font-family:var(--font-mono);
  font-size:.68rem;
}
.area-label-list{
  display:flex;
  flex-direction:column;
  max-height:min(44vh, 430px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.area-label-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:.6rem;
  min-height:42px;
  padding:.55rem .2rem;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--line);
  color:var(--ink-1);
  font:inherit;
  text-align:left;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.area-label-item:hover,
.area-label-item:focus-visible{
  color:var(--cyan);
  background:rgba(0,240,255,.05);
  outline:none;
}
.area-label-name{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-family:var(--font-head);
  font-size:.84rem;
  letter-spacing:.02em;
}
.area-label-floor{
  flex:none;
  color:var(--ink-3);
  font-family:var(--font-mono);
  font-size:.62rem;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.area-label-arrow{
  flex:none;
  color:var(--ink-3);
  font-size:.9rem;
}
.area-label-item:hover .area-label-arrow,
.area-label-item:focus-visible .area-label-arrow{ color:var(--cyan); }
.area-label-hint{
  margin:.75rem 0 0;
  color:var(--ink-3);
  font-family:var(--font-mono);
  font-size:.65rem;
}

/* side detail panel */
.detail-panel{
  padding: 1.4rem;
  min-height: 420px;
  display:flex; flex-direction:column;
  position:sticky; top: calc(var(--header-h) + 16px);
}
.detail-panel .placeholder{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; color: var(--ink-3); gap: .8rem;
}
.detail-panel .placeholder svg{ width:40px; height:40px; opacity:.5; }
.detail-panel .placeholder p{ font-family: var(--font-mono); font-size:.78rem; max-width:22ch; }

.detail-panel .dp-image{
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0d0e11;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-panel .dp-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-panel .dp-image .dp-no-image,
.detail-panel .dp-image.no-img .dp-no-image{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* "Photo by <member>" badge, bottom-right of a visitor-submitted photo
   (js/map.js: detailHtml()). Only shown when the image came from an
   approved member photo report — see api/sightings.php's imageBy field. */
.detail-panel .dp-image{ position: relative; }
.detail-panel .dp-photo-credit{
  position:absolute; right:.5rem; bottom:.5rem;
  font-family: var(--font-mono); font-size:.66rem; letter-spacing:.04em;
  background: rgba(9,10,12,.72); color: var(--ink-0);
  padding:.25rem .5rem; border:1px solid var(--line-bright);
}
.detail-panel .dp-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1rem; }
.detail-panel .dp-cat{ font-family: var(--font-mono); font-size:.7rem; letter-spacing:.08em; color: var(--ink-2); text-transform:uppercase; }
.detail-panel h3{ margin: .2rem 0 0; }
.rarity-chip{
  font-family: var(--font-mono); font-size:.68rem; letter-spacing:.06em;
  padding: .3rem .6rem; border: 1px solid currentColor; white-space:nowrap; text-transform:uppercase;
}
.rarity-common{ color: var(--ink-1); }
.rarity-rare{ color: var(--cyan); }
.rarity-epic{ color: var(--purple); }
.rarity-legendary{ color: var(--orange); }

.detail-panel .dp-notes{ font-size:.88rem; color: var(--ink-1); margin-bottom: 1.2rem; }
.detail-panel .dp-loot{ display:flex; flex-direction:column; gap:.5rem; margin-bottom:1.2rem; }
.detail-panel .dp-loot .item{
  display:flex; justify-content:space-between; font-size:.84rem;
  padding: .55rem .7rem; background: var(--panel-raised); border-left: 2px solid var(--line-bright);
}
.detail-panel .dp-loot .item.is-top{ border-left-color: var(--orange); }
.detail-panel .dp-coords{
  margin-top:auto; display:flex; justify-content:space-between;
  font-family: var(--font-mono); font-size:.72rem; color: var(--ink-3);
  border-top: 1px solid var(--line); padding-top: .9rem;
}

/* "Last found on" + visitor report controls (js/map.js: sightingHtml()) */
.dp-lastseen{
  display:flex; justify-content:space-between; align-items:center;
  font-size:.78rem; color: var(--ink-2); margin-top:1rem;
}
.dp-lastseen strong{ font-family: var(--font-mono); font-weight:600; color: var(--ink-0); font-size:.75rem; }
.dp-report{ display:flex; gap:.6rem; margin-top:.7rem; flex-wrap:wrap; }
.dp-btn{
  flex:1 1 auto; min-width:0; font: inherit; font-size:.78rem; font-weight:600;
  padding:.65rem .8rem; border:1px solid var(--line-bright); background: var(--panel-raised);
  color: var(--ink-0); cursor:pointer; transition: border-color .15s var(--ease), color .15s var(--ease);
}
.dp-btn:hover{ border-color: var(--cyan); color: var(--cyan); }
.dp-btn:disabled{ opacity:.6; cursor:default; border-color: var(--line); color: var(--ink-2); }
.dp-confirm-btn:disabled{ color: var(--green); border-color: var(--green); opacity:.85; }
.dp-btn-primary{ background: var(--cyan); border-color: var(--cyan); color:#061014; }
.dp-btn-primary:hover{ color:#061014; }
a.dp-btn{ display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.dp-photo-form{ margin-top:.7rem; padding-top:.7rem; border-top:1px dashed var(--line); }
.dp-photo-form[hidden]{ display:none; }
.dp-photo-form input[type="file"]{
  width:100%; font-size:.76rem; color: var(--ink-1);
  background: var(--panel); border:1px solid var(--line); padding:.5rem; box-sizing:border-box;
}
.dp-photo-actions{ display:flex; gap:.6rem; margin-top:.6rem; }
.dp-photo-status{ font-size:.74rem; color: var(--ink-2); margin:.5rem 0 0; min-height:1em; }

.legend{ padding: 1.2rem 1.4rem; margin-top: 1.5rem; }
.legend h4{ font-family: var(--font-mono); font-size:.72rem; letter-spacing:.08em; color: var(--ink-2); text-transform:uppercase; margin-bottom:.9rem; }
.legend-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: .6rem .8rem; }
.legend-item{ display:flex; align-items:center; gap:.55rem; font-size:.8rem; color: var(--ink-1); }
.legend-item .sw{ width:9px; height:9px; border-radius:50%; flex:none; }

/* tip of the week (spaceport.html) */
.tip-card{
  padding: 1.8rem;
  display:grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items:center;
  margin-top: 1rem;
}
.tip-card .tip-icon{
  width: 56px; height:56px; border: 1px solid var(--orange-dim);
  display:flex; align-items:center; justify-content:center; color: var(--orange); flex:none;
}
.tip-card .tip-icon svg{ width:26px; height:26px; }
.tip-card h3{ margin-bottom:.4rem; }
.tip-card p{ margin:0; max-width: 68ch; }

/* phones: stack the icon above the text so the copy gets the full card width */
@media (max-width: 600px){
  .tip-card{ grid-template-columns: 1fr; gap: 1rem; padding: 1.3rem; align-items:start; }
  .tip-card .tip-icon{ width: 44px; height: 44px; }
  .tip-card .tip-icon svg{ width: 22px; height: 22px; }
}

/* ---- News page (news.html): full archive grid with cover photos ---- */
.news-page{ padding-bottom: 4rem; }
.news-grid--wide{ grid-template-columns: repeat(3, 1fr); }
.news-card.has-cover .cover{
  margin: -1.6rem -1.6rem 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
}
.news-card.has-cover .cover img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ---- Spaceport map with no loot spots yet ---- */
.map-empty{
  position:absolute; inset:0; z-index:2;
  display:none; align-items:center; justify-content:center;
  padding: 2rem; text-align:center;
  background: rgba(10,10,12,.6);
  color: var(--ink-1);
  font-family: var(--font-mono); font-size:.85rem; line-height:1.6;
  pointer-events:none; /* map stays draggable/zoomable underneath */
}
.map-empty.is-visible{ display:flex; }
.map-empty p{ margin:0; max-width: 30ch; }

/* ---- Two-floor maps (Stella Montis): floor switch + floor images ---- */
.map-stage{ position:relative; }

/* every floor is its own <image> in the same SVG; the active one fades in.
   pointer-events are off so the hidden layer never swallows a click. */
.floor-img{ opacity:0; pointer-events:none; transition: opacity .28s var(--ease); }
.floor-img.is-active{ opacity:1; }
.map-viewport.is-floor-loading .map-surface{ opacity:.55; transition: transform .18s var(--ease), opacity .2s var(--ease); }

/* sits on the map itself (a sibling of the viewport, so taps on it never
   reach the pan/zoom code). Top-left is the empty margin of the map. */
.floor-switch{
  position:absolute; top:.8rem; left:.8rem; z-index:6;
  display:flex; align-items:stretch;
  border: 1px solid var(--line-bright);
  background: rgba(10,10,12,.82);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
}
.floor-btn{
  display:flex; align-items:center; gap:.5rem;
  min-height: 40px;
  padding: 0 .85rem;
  background: transparent; border: 0;
  border-right: 1px solid var(--line-bright);
  color: var(--ink-1);
  font: inherit; font-size:.74rem; letter-spacing:.06em; text-transform:uppercase;
  cursor:pointer;
  transition: color .16s var(--ease), background .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.floor-btn:last-child{ border-right:0; }
.floor-btn b{ font-family: var(--font-head); font-size:1.05rem; letter-spacing:.04em; color: var(--ink-0); }
.floor-btn .floor-name{ color: var(--ink-2); }
.floor-btn .floor-count{
  font-style:normal; font-size:.66rem; min-width:1.5em; text-align:center;
  padding: .1rem .35rem; border:1px solid var(--line-bright); color: var(--ink-2);
}
.floor-btn .floor-count:empty{ display:none; }
.floor-btn:hover{ color: var(--ink-0); background: rgba(255,255,255,.04); }
.floor-btn:focus-visible{ outline: 1px solid var(--cyan); outline-offset:-3px; }
.floor-btn.is-active{ background: rgba(0,240,255,.09); color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }
.floor-btn.is-active b, .floor-btn.is-active .floor-name{ color: var(--cyan); }
.floor-btn.is-active .floor-count{ border-color: var(--cyan-dim); color: var(--cyan); }

@media (pointer: coarse){
  .floor-btn{ min-height: 44px; }
}
/* narrow phones: keep the switch compact so it stays inside the map's top margin */
@media (max-width: 520px){
  .floor-switch{ top:.5rem; left:.5rem; }
  .floor-btn{ padding: 0 .6rem; gap:.4rem; font-size:.68rem; }
}
@media (prefers-reduced-motion: reduce){
  .floor-img, .map-viewport.is-floor-loading .map-surface{ transition:none; }
}

/* =====================================================================
   11. UTILITIES & RESPONSIVE
   ===================================================================== */
.mono{ font-family: var(--font-mono); }
.visually-hidden{
  position:absolute; width:1px;height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

@media (max-width: 1180px){
  .header-inner{ gap: 1.1rem; }
  .main-nav{ gap: 1.2rem; margin-left: 0; }
  .nav-search{ max-width: 170px; }
  .header-status{ margin-left: .6rem; gap: .4rem; }
}
@media (max-width: 900px){
  .nav-search{ display:none; }
  .header-inner{ gap: .7rem; }
  .main-nav{ gap: .7rem; margin-left: 0; }
  .main-nav a{ font-size: .85rem; }
  .header-status{ margin-left: .3rem; gap: .35rem; font-size: .68rem; }
  .header-account{ margin-left: .4rem; }
}
@media (max-width: 980px){
  .area-label-panel{ position:static; }
  .area-label-list{ max-height:300px; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-readout{ border-left:none; padding-left:0; border-top:1px solid var(--line); padding-top:1rem; flex-direction:row; flex-wrap:wrap; gap: 1.6rem; }
  .news-grid{ grid-template-columns: repeat(2,1fr); }
  .map-strip{ grid-template-columns: repeat(2,1fr); }
  .game-grid{ grid-template-columns: repeat(2,1fr); }
  .maps-list{ grid-template-columns: repeat(2,1fr); }
  .game-hero .inner{ grid-template-columns: 1fr; }
  .tactical{ grid-template-columns: 1fr; }
  .detail-panel{ position:static; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .area-label-panel{ margin-bottom:1rem; padding:1rem; }
  .area-label-list{ max-height:260px; }
  .area-label-item{ min-height:44px; }
  .main-nav{ 
    position:absolute; top: 100%; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:0;
    background: var(--charcoal); border-bottom: 1px solid var(--line);
    max-height:0; overflow:hidden; opacity:0;
    transition: max-height .25s var(--ease), opacity .2s var(--ease);
  }
  .main-nav.is-open{ max-height: 320px; opacity:1; }
  .main-nav a{ padding: .9rem var(--gutter); width:100%; border-bottom: 1px solid var(--line); }
  .header-status{ display:none; }
  .header-account{ display:none; }
  .nav-toggle{ display:block; }
  .header-inner{ gap: .9rem; }
  .nav-search{ max-width: none; flex: 1 1 auto; margin-left: .4rem; }
  .nav-search input[type="search"]{ font-size: .82rem; padding: .5rem .7rem .5rem 2rem; }
  .news-grid{ grid-template-columns: 1fr; }
  .map-strip{ grid-template-columns: 1fr; }
  .game-grid{ grid-template-columns: 1fr; }
  .maps-list{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 2rem; }
  .toolbar .result-count{ margin-left:0; }
  h1{ max-width: none; }
}

/* -----------------------------------------------------------------
   16. ROOM CHAT WIDGET
   ----------------------------------------------------------------- */
.sl-chat-root{ position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 400; }
/* several chat elements set their own `display` (flex, etc.) for when they're
   shown, which otherwise beats the browser's default [hidden]{display:none}
   rule. Force hidden to always win so toggling the `hidden` attribute is
   enough to show/hide panel, name bar, dev bar, etc. */
.sl-chat-root [hidden]{ display: none !important; }

.sl-chat-fab{
  position: relative;
  width: 52px; height: 52px;
  display:flex; align-items:center; justify-content:center;
  background: var(--panel-raised);
  border: 1px solid var(--line-bright);
  color: var(--cyan);
  cursor: pointer;
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 6px 22px -6px rgba(0,0,0,.6);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.sl-chat-fab svg{ width: 22px; height: 22px; }
.sl-chat-fab:hover, .sl-chat-fab:focus-visible{
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-glow), 0 0 22px -4px var(--cyan-glow);
}
.sl-chat-dot{
  position:absolute; top:6px; right:6px;
  width:9px; height:9px; border-radius:50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange-glow);
}

.sl-chat-panel{
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 2.5rem));
  height: min(460px, calc(100vh - 7rem));
  display: flex; flex-direction: column;
  background: var(--charcoal);
  border: 1px solid var(--line-bright);
  box-shadow: 0 18px 48px -12px rgba(0,0,0,.7);
}

.sl-chat-head{
  display:flex; align-items:center; gap:.5rem;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  letter-spacing:.04em; font-size:.85rem;
}
.sl-chat-live{
  width:7px; height:7px; border-radius:50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  flex: none;
}
.sl-chat-sub{
  margin-left:auto; font-family: var(--font-mono); font-size:.68rem;
  color: var(--ink-3); text-transform: uppercase; letter-spacing:.06em;
}
.sl-chat-close{
  background:none; border:0; color: var(--ink-2); font-size:1.2rem;
  line-height:1; cursor:pointer; padding: 0 0 0 .3rem;
}
.sl-chat-close:hover{ color: var(--cyan); }

.sl-chat-devbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: .45rem .9rem;
  background: rgba(0,240,255,.06);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size:.68rem; letter-spacing:.06em;
  color: var(--cyan);
}
.sl-chat-devbar button{
  background:none; border: 1px solid var(--cyan-dim); color: var(--cyan);
  font-family: var(--font-mono); font-size:.66rem; padding:.25rem .5rem; cursor:pointer;
}
.sl-chat-devbar button:hover{ border-color: var(--cyan); }

.sl-chat-blocklist{
  max-height: 140px; overflow-y:auto;
  padding: .5rem .9rem;
  border-bottom: 1px solid var(--line);
  background: var(--void);
}
.sl-chat-block-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: .35rem 0; font-size:.78rem; color: var(--ink-1);
  border-bottom: 1px solid var(--line);
}
.sl-chat-block-row:last-child{ border-bottom:0; }
.sl-chat-block-row em{ font-style:normal; color: var(--ink-3); margin-left:.4rem; font-size:.68rem; }
.sl-chat-empty{ color: var(--ink-3); font-size:.78rem; margin:0; }

.sl-chat-messages{
  flex: 1; min-height: 0; overflow-y: auto;
  padding: .75rem .9rem;
  display:flex; flex-direction:column; gap:.65rem;
}
.sl-chat-msg-head{
  display:flex; align-items:baseline; gap:.45rem;
  font-family: var(--font-mono); font-size:.7rem;
}
.sl-chat-msg-name{ color: var(--cyan); font-weight:600; }
.sl-chat-msg-time{ color: var(--ink-3); }
.sl-chat-msg-text{
  color: var(--ink-0); font-size:.86rem; line-height:1.4;
  word-break: break-word; white-space: pre-wrap;
}
.sl-chat-msg-admin{ display:flex; gap:.4rem; margin-top:.25rem; }
.sl-chat-mini{
  background:none; border: 1px solid var(--line-bright); color: var(--ink-2);
  font-family: var(--font-mono); font-size:.64rem; letter-spacing:.04em;
  padding: .15rem .45rem; cursor:pointer;
}
.sl-chat-mini:hover{ border-color: var(--ink-0); color: var(--ink-0); }
.sl-chat-mini-danger:hover{ border-color: var(--red); color: var(--red); }

.sl-chat-namebar, .sl-chat-inputbar{
  display:flex; gap:.5rem;
  padding: .7rem .9rem;
  border-top: 1px solid var(--line);
}
.sl-chat-namebar input, .sl-chat-inputbar input{
  flex:1; min-width:0;
  background: var(--void); border: 1px solid var(--line-bright); color: var(--ink-0);
  padding: .55rem .65rem; font-size:.84rem;
}
.sl-chat-namebar input:focus, .sl-chat-inputbar input:focus{ border-color: var(--cyan); outline:none; }
.sl-chat-namebar button, .sl-chat-inputbar button{
  background: var(--cyan); border: 1px solid var(--cyan); color: var(--void);
  font-family: var(--font-head); font-weight:700; font-size:.8rem;
  padding: 0 .9rem; cursor:pointer;
}
.sl-chat-namebar button:hover, .sl-chat-inputbar button:hover{ background:#17f5ff; }

.sl-chat-status{
  margin: 0; padding: 0 .9rem .6rem;
  font-family: var(--font-mono); font-size:.68rem; color: var(--orange);
  min-height: 0;
}

@media (max-width: 480px){
  .sl-chat-root{ right: .75rem; bottom: .75rem; }
  .sl-chat-panel{ width: calc(100vw - 1.5rem); }
}

/* -----------------------------------------------------------------
   17. ARTICLE PAGE
   ----------------------------------------------------------------- */
.article-date{
  font-family: var(--font-mono); font-size:.8rem; color: var(--ink-2);
  letter-spacing:.04em; margin-top:.6rem;
}
.article-body{
  max-width: 68ch;
  padding-block: 2.4rem 1rem;
  display:flex; flex-direction:column; gap: 1.1rem;
}
.article-body p{ font-size: 1rem; line-height:1.7; color: var(--ink-1); }
.article-body strong{ color: var(--ink-0); font-weight: 700; }
.article-body .art-h1{
  font-family: var(--font-head); font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  line-height: 1.15; color: var(--ink-0); margin: 1.4rem 0 0;
}
.article-body .art-h2{
  font-family: var(--font-head); font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.2; color: var(--ink-0); margin: 1rem 0 0;
}
.article-body .art-figure{ margin: .8rem 0; }
.article-body .art-figure img{
  display:block; max-width:100%; height:auto; border:1px solid var(--line);
}
/* header photo above the article */
.article-cover{ max-width: 960px; margin: 2rem 0 0; }
.article-cover[hidden]{ display:none; }
.article-cover img{
  display:block; width:100%; aspect-ratio:16/9; object-fit:cover;
  border:1px solid var(--line);
}
.article-missing{ padding-block: 3rem 4rem; display:flex; flex-direction:column; gap:1.2rem; align-items:flex-start; }
.article-missing p{ color: var(--ink-2); }
.article-back{ padding-block: 0 3rem; }
.article-back a{ color: var(--ink-2); font-size:.88rem; transition: color .15s; }
.article-back a:hover{ color: var(--cyan); }

/* -----------------------------------------------------------------
   18. MAP — TOUCH GESTURES + POP-UP CARD
   Pinch/drag on the map is handled in js/spaceport.js (Pointer Events).
   The pop-up card shows a location's details on touch devices and
   narrow screens, where the side panel is below the map out of sight.
   ----------------------------------------------------------------- */

/* follow the finger/cursor 1:1 while dragging or pinching (no easing lag) */
.map-viewport.is-panning .map-surface{ transition: none; }

/* stop the page scrolling behind an open card */
html.poi-popup-open{ overflow: hidden; }

.poi-popup{
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(4,5,7,.66);
  opacity: 0; visibility: hidden;
  transition: opacity .18s var(--ease), visibility 0s linear .18s;
}
.poi-popup.is-open{
  opacity: 1; visibility: visible;
  transition: opacity .18s var(--ease);
}

/* re-uses the .panel .detail-panel look; overrides the sticky side-panel layout */
.poi-popup .poi-sheet.detail-panel{
  position: relative; top: auto;
  width: 100%; max-width: 520px;
  min-height: 0;
  max-height: 82vh; max-height: 82dvh;
  overflow: hidden;
  padding: 1.4rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(28px);
  transition: transform .24s var(--ease);
  box-shadow: 0 -18px 50px -18px rgba(0,0,0,.8);
}
.poi-popup.is-open .poi-sheet.detail-panel{ transform: none; }

.poi-scroll{
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
}
.poi-scroll .dp-coords{ margin-top: 1rem; }

/* big, easy-to-hit close button (44px) in the top-right corner of the card */
.poi-close{
  position: absolute; top: .55rem; right: .55rem; z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,12,.85);
  border: 1px solid var(--line-bright);
  color: var(--ink-0);
  font-size: 1.7rem; line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.poi-close:hover,
.poi-close:focus-visible{ color: var(--cyan); border-color: var(--cyan); outline: none; }

/* wider screens: card floats in the middle instead of docking to the bottom */
@media (min-width: 600px){
  .poi-popup{ align-items: center; padding: 1.5rem; }
  .poi-popup .poi-sheet.detail-panel{ padding-bottom: 1.4rem; transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce){
  .poi-popup,
  .poi-popup .poi-sheet.detail-panel{ transition: none; }
}

/* -----------------------------------------------------------------
   12. MEMBER ACCOUNTS
   Header widget (every page) + register/login forms + dashboard.
   ----------------------------------------------------------------- */

/* --- header widget: "Log in" or "Hi, <name>" + Log out --- */
.header-account{
  margin-left: 1rem;
  display:flex; align-items:center; gap:.7rem;
  flex:none;
}
.header-account-name{
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-1);
  white-space: nowrap;
  transition: color .15s var(--ease);
}
.header-account-name:hover, .header-account-name:focus-visible{ color: var(--cyan); }
.header-account-logout{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing:.04em;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  padding: .35rem .6rem;
  cursor:pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.header-account-logout:hover, .header-account-logout:focus-visible{
  border-color: var(--cyan-dim); color: var(--cyan);
}

/* --- register / login pages --- */
.auth-page{
  display:flex; justify-content:center;
  padding-block: 3.5rem 4.5rem;
}
.auth-box{
  width: 100%;
  max-width: 420px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 2rem;
}
.auth-box .tag{ display:block; margin-bottom:.7rem; }
.auth-box h1, .auth-box h2{ margin-bottom:.5rem; }
.auth-box > p{ margin-bottom: 1.6rem; }
.auth-form{ display:flex; flex-direction:column; gap: 1.2rem; }
.field-stack{ display:flex; flex-direction:column; gap:.45rem; }
.field-stack label{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field-stack input, .field-stack textarea, .field-stack select{
  width:100%;
  box-sizing:border-box;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .8rem .9rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field-stack textarea{ min-height: 6rem; resize: vertical; }
.field-stack select{ cursor:pointer; }
.field-stack input::placeholder, .field-stack textarea::placeholder{ color: var(--ink-3); }
.field-stack input:focus, .field-stack textarea:focus, .field-stack select:focus{
  outline:none;
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 1px var(--cyan-glow);
}
.field-hint{ margin:0; font-size: .76rem; color: var(--ink-3); }
.auth-error{
  margin:0;
  padding: .75rem .9rem;
  background: rgba(255,59,59,.08);
  border: 1px solid rgba(255,59,59,.35);
  color: #ff8f8f;
  font-size: .85rem;
}
.auth-submit{ width:100%; }
.auth-switch{ margin: 1.4rem 0 0; font-size: .88rem; color: var(--ink-2); text-align:center; }
.auth-switch a{ color: var(--cyan-dim); }
.auth-switch a:hover{ color: var(--cyan); }

/* --- dashboard --- */
.dash-page{ padding-block: 2.5rem 4rem; }
.dash-cta-row{ display:flex; gap: 1rem; flex-wrap:wrap; margin-top: 1.4rem; }

.dash-summary{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 2.4rem;
}
.dash-stat{
  background: var(--charcoal);
  padding: 1.4rem 1.6rem;
  display:flex; flex-direction:column; gap:.5rem;
}
.dash-stat-label{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing:.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dash-stat-value{
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--cyan);
}

.dash-section-title{ margin-bottom:.3rem; }
.dash-section-note{ margin-bottom: 1.4rem; color: var(--ink-2); font-size: .88rem; }

.dash-maps{ display:flex; flex-direction:column; border-top: 1px solid var(--line); }
.dash-map-row{
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  align-items:center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.dash-map-info{ display:flex; flex-direction:column; gap:.2rem; min-width:0; }
.dash-map-name{ color: var(--ink-0); font-weight:600; font-size:.94rem; }
.dash-map-game{ color: var(--ink-3); font-size:.76rem; font-family: var(--font-mono); }
.dash-map-bar{
  height:6px; background: var(--panel); border: 1px solid var(--line);
  overflow:hidden;
}
.dash-map-bar span{
  display:block; height:100%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.dash-map-count{
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-1);
  white-space:nowrap;
  text-align:right;
}
.dash-empty{ padding: 1.4rem 0; color: var(--ink-2); }
.dash-footer-row{ margin-top: 2rem; }

@media (max-width: 640px){
  .dash-summary{ grid-template-columns: 1fr; }
  .dash-map-row{ grid-template-columns: 1fr; row-gap:.5rem; }
  .dash-map-bar{ order:3; }
  .dash-map-count{ text-align:left; }
}

/* =====================================================================
   13. LOOT SPOT SUGGESTIONS (member-submitted, dev-approved — js/suggest.js)
   Button + hint sit on the map itself (bottom-left, the one corner not
   already used by the filter menu / floor switch / zoom controls). The
   form itself is a plain overlay modal, since this is the only modal on
   the site.
   ===================================================================== */
.suggest-spot-btn{
  position:absolute; left:.8rem; bottom:.8rem; z-index:6;
  display:flex; align-items:center; gap:.5rem;
  min-height: 42px; padding: 0 .9rem;
  background: rgba(10,10,12,.82);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line-bright);
  color: var(--ink-1);
  font: inherit; font-size:.74rem; letter-spacing:.06em; text-transform:uppercase;
  cursor:pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.suggest-spot-btn:hover, .suggest-spot-btn:focus-visible{ color: var(--cyan); border-color: var(--cyan); }
.suggest-spot-btn svg{ width:16px; height:16px; flex:none; }
.suggest-spot-btn[hidden]{ display:none; }

.suggest-hint{
  position:absolute; left:.8rem; right:.8rem; bottom:.8rem; z-index:6;
  display:flex; align-items:center; gap:.8rem; flex-wrap:wrap;
  padding: .7rem .9rem;
  background: rgba(4,34,38,.92);
  border: 1px solid var(--cyan);
  color: var(--ink-0);
  font-family: var(--font-mono); font-size:.78rem;
}
.suggest-hint[hidden]{ display:none; }
.suggest-hint-cancel{
  border: 1px solid var(--line-bright); background: transparent; color: var(--ink-0);
  padding:.4rem .8rem; cursor:pointer; font:inherit; font-size:.72rem;
}
.suggest-hint-cancel:hover{ border-color: var(--cyan); color: var(--cyan); }
.map-viewport.suggest-armed{ cursor: crosshair; }
.suggest-temp-marker{ animation: sg-pulse 1.3s ease-in-out infinite; }
@keyframes sg-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.4; } }

.suggest-login-prompt{
  position:absolute; left:.8rem; bottom:.8rem; right:.8rem; z-index:6;
  display:flex; align-items:center; gap:.9rem; flex-wrap:wrap;
  padding: .8rem .9rem;
  background: rgba(10,10,12,.94);
  border: 1px solid var(--line-bright);
  color: var(--ink-1); font-size:.85rem;
}
.suggest-login-prompt[hidden]{ display:none; }
.suggest-login-prompt p{ margin:0; }
.suggest-login-prompt .suggest-actions{ margin:0; }

.suggest-overlay{
  position: fixed; inset:0; z-index: 300;
  background: rgba(5,6,7,.78);
  backdrop-filter: blur(2px);
  display:flex; align-items:center; justify-content:center;
  padding: 1.5rem;
  overflow-y:auto;
}
.suggest-overlay[hidden]{ display:none; }
body.suggest-modal-open{ overflow:hidden; }
.suggest-modal{
  position:relative;
  width:100%; max-width: 460px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 2rem;
  margin-block: auto;
}
.suggest-modal .tag{ display:block; margin-bottom:.7rem; }
.suggest-modal h2{ margin: 0 0 .4rem; }
.suggest-note{ color: var(--ink-2); font-size:.86rem; margin: 0 0 1.4rem; }
.suggest-close{
  position:absolute; top: 1.1rem; right: 1.1rem;
  width: 30px; height:30px;
  background:transparent; border:1px solid var(--line-bright); color: var(--ink-1);
  font-size:1.1rem; line-height:1; cursor:pointer;
}
.suggest-close:hover{ color: var(--cyan); border-color: var(--cyan); }
#sg-form{ display:flex; flex-direction:column; gap: 1.1rem; }
.suggest-photo-preview{
  width:100%; aspect-ratio: 16/9;
  background: var(--panel); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  position:relative;
}
.suggest-photo-preview img{ width:100%; height:100%; object-fit:cover; display:block; }
.suggest-photo-preview .placeholder{ font-size:.72rem; color: var(--ink-3); text-transform:uppercase; letter-spacing:.06em; }
.suggest-photo-preview.has-img .placeholder{ display:none; }
.suggest-photo-actions{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.6rem; }
.suggest-photo-actions .file-btn{ cursor:pointer; }
.suggest-actions{ display:flex; gap:.8rem; justify-content:flex-end; flex-wrap:wrap; margin-top:.2rem; }
.suggest-success{ color: var(--green); font-size:.95rem; margin: .5rem 0 1.4rem; }
.suggest-mine{ margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.suggest-mine h3{ margin: 0 0 .8rem; font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-2); }
.suggest-mine-row{ display:flex; justify-content:space-between; align-items:center; gap:.8rem; padding:.5rem 0; border-bottom:1px solid var(--line); font-size:.85rem; }
.suggest-mine-row:last-child{ border-bottom:0; }
.suggest-mine-title{ color: var(--ink-0); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.suggest-mine-note{ font-size:.76rem; color: var(--ink-3); padding-bottom:.5rem; border-bottom:1px solid var(--line); margin-top:-.3rem; }
.suggest-status{ font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; padding:.2rem .5rem; white-space:nowrap; border:1px solid var(--line-bright); color: var(--ink-2); }
.suggest-status.pending{ color:#ffb020; border-color:#ffb020; }
.suggest-status.approved{ color: var(--green); border-color: var(--green); }
.suggest-status.rejected{ color:#ff8f8f; border-color:#7d3036; }

@media (max-width: 520px){
  .suggest-spot-btn span{ display:none; }   /* icon only on narrow phones, matches .filter-toggle */
  .suggest-modal{ padding: 1.4rem; }
}


/* =====================================================================
   Map facts — server-rendered summary at the bottom of every map page
   (built by map-page.php)
   ===================================================================== */
.map-facts-body h3{
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-0);
  margin: 1.6rem 0 .6rem;
}
.map-facts-list{
  list-style: none;
  margin: .4rem 0 1rem;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.map-facts-list li{
  border-left: 2px solid var(--line-bright);
  padding: .15rem 0 .15rem .85rem;
  color: var(--ink-1);
  line-height: 1.6;
}
.map-facts-list strong{ color: var(--ink-0); }
.map-facts-count{
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: .9em;
}
.map-facts-updated{ color: var(--ink-2); font-size: .9rem; }


/* =====================================================================
   Article page extras (built by article-page.php)
   ===================================================================== */
.article-more{ max-width: 720px; padding-block: 1rem 2rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.article-more h2{
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-0);
  margin: 1.2rem 0 .6rem;
}
.article-more-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.article-more-list a{ color: var(--ink-0); }
.article-more-list a:hover{ color: var(--cyan); }
.article-more-date{ color: var(--ink-2); font-size: .85rem; margin-left: .4rem; }

/* -----------------------------------------------------------------
   19. RICH NEWS ARTICLES
   Generated by the Dev News Editor. These classes are intentionally
   design-system friendly so editors can create polished articles
   without adding unsafe custom CSS.
   ----------------------------------------------------------------- */
.article-body h2,.article-body h3,.article-body h4{font-family:var(--font-head);color:var(--ink-0);line-height:1.16;letter-spacing:-.01em}
.article-body h2{font-size:clamp(1.7rem,3.5vw,2.25rem);margin:1.8rem 0 .65rem}
.article-body h3{font-size:clamp(1.35rem,2.7vw,1.65rem);margin:1.55rem 0 .55rem}
.article-body h4{font-size:1.15rem;margin:1.25rem 0 .45rem}
.article-body .lead{font-size:1.16rem;line-height:1.7;color:var(--ink-0);padding-bottom:.25rem}
.article-body ul,.article-body ol{padding-left:1.45rem;margin:.2rem 0 1rem}
.article-body li{padding-left:.25rem;line-height:1.65;margin:.25rem 0}
.article-body blockquote{margin:1.35rem 0;padding:1rem 1.2rem;border-left:3px solid var(--cyan);background:rgba(0,240,255,.045);color:var(--ink-1);font-size:1.04rem}
.article-body blockquote p:last-child{margin-bottom:0}
.article-body .callout{margin:1.4rem 0;padding:1rem 1.2rem;border:1px solid var(--line);border-left:4px solid var(--cyan);background:rgba(0,240,255,.035);border-radius:5px}
.article-body .callout p{margin:.35rem 0 0}
.article-body .callout-warning{border-left-color:#ffb020;background:rgba(255,176,32,.055)}
.article-body .callout-success{border-left-color:#67e480;background:rgba(103,228,128,.05)}
.article-body .callout-danger{border-left-color:#ff6970;background:rgba(255,105,112,.05)}
.article-body .article-table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.94rem;overflow:hidden}
.article-body .article-table th,.article-body .article-table td{border:1px solid var(--line);padding:.7rem .8rem;text-align:left;vertical-align:top}
.article-body .article-table th{font-family:var(--font-head);font-weight:800;color:var(--ink-0);background:#14191d}
.article-body .article-table.table-striped tbody tr:nth-child(even) td{background:rgba(255,255,255,.025)}
.article-body .article-table.table-compact th,.article-body .article-table.table-compact td{padding:.45rem .6rem}
.article-body .article-table.table-bordered{border:1px solid var(--line-bright)}
.article-body a{color:var(--cyan);text-decoration:underline;text-decoration-color:rgba(0,240,255,.35);text-underline-offset:2px}
.article-body a:hover{color:#fff;text-decoration-color:var(--cyan)}
.article-body mark{background:#24343a;color:var(--ink-0);padding:.06em .22em;border-radius:2px}
.article-body code{font-family:var(--font-mono);font-size:.88em;color:#dffcff;background:#0b0e10;border:1px solid var(--line);padding:.12em .35em;border-radius:3px}
.article-body pre{font-family:var(--font-mono);font-size:.84rem;line-height:1.6;white-space:pre-wrap;background:#080a0c;border:1px solid var(--line);padding:1rem;overflow:auto;border-radius:5px}
.article-body pre code{border:0;padding:0;background:transparent}
.article-body hr{border:0;border-top:1px solid var(--line);margin:2rem 0}
.article-body .art-figure{margin:1.25rem 0}
.article-body .art-figure img{width:100%;max-width:100%;height:auto;display:block;border:1px solid var(--line)}
.article-body .text-center{text-align:center}.article-body .text-right{text-align:right}.article-body .muted{color:var(--ink-2)}.article-body .title-accent{color:var(--cyan)}
@media(max-width:700px){.article-body{max-width:none}.article-body .article-table{font-size:.82rem;display:block;overflow-x:auto;white-space:nowrap}.article-body .article-table th,.article-body .article-table td{padding:.55rem .6rem}}


/* -----------------------------------------------------------------
   NEWS ENGAGEMENT — views + like / dislike
   Sits under the article date as a quiet meta row. Same mono type,
   cyan accent and 1px borders as the rest of the site — no emoji.
   ----------------------------------------------------------------- */
.article-engagement{
  margin-top: .85rem;
}
.article-engagement .ae-meta{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.article-engagement .ae-views{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--ink-2);
}
.article-engagement .ae-views .ae-count{
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}
.article-engagement .ae-sep{
  width: 1px;
  height: 12px;
  background: var(--line-bright);
  opacity: .85;
}
.article-engagement .ae-votes{
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--charcoal);
}
.article-engagement .ae-btn{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .32rem .7rem;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.article-engagement .ae-btn:last-child{ border-right: none; }
.article-engagement .ae-btn:hover{
  color: var(--ink-0);
  background: rgba(255,255,255,.03);
}
.article-engagement .ae-btn:focus-visible{
  outline: 1px solid var(--cyan);
  outline-offset: -1px;
  z-index: 1;
}
.article-engagement .ae-btn .ae-count{
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
}
.article-engagement .ae-btn.is-active.ae-like{
  color: var(--cyan);
  background: rgba(0,240,255,.07);
}
.article-engagement .ae-btn.is-active.ae-dislike{
  color: var(--red);
  background: rgba(255,59,59,.07);
}
.article-engagement .ae-svg{
  display: block;
  flex: none;
  opacity: .9;
}
.article-engagement .ae-btn.is-active .ae-svg{ opacity: 1; }
.article-engagement.is-busy .ae-btn{
  opacity: .55;
  pointer-events: none;
}

/* View count on news cards (list + homepage) */
.news-card .meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .7rem;
}
.news-card .meta .views{
  margin-left: auto;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
}

/* -----------------------------------------------------------------
   Homepage — Screenshot of the Day
   ----------------------------------------------------------------- */
.screenshot-day-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);gap:18px;align-items:stretch}
.screenshot-feature{overflow:hidden}
.screenshot-frame{position:relative;background:#090a0c;aspect-ratio:16/9;border-bottom:1px solid var(--line);overflow:hidden}
.screenshot-frame img{width:100%;height:100%;object-fit:cover}
.screenshot-scanline{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,transparent 0%,rgba(0,240,255,.04) 50%,transparent 51%);background-size:100% 7px;opacity:.35}
.screenshot-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.35rem;color:var(--ink-2);text-align:center;padding:2rem}
.screenshot-empty[hidden]{display:none !important}
.screenshot-empty strong{color:var(--ink-0);font-family:var(--font-head);font-size:1.35rem}
.screenshot-empty-mark{font-family:var(--font-mono);color:var(--cyan);font-size:1.4rem;letter-spacing:.15em}
.screenshot-copy{padding:1.2rem 1.3rem 1.35rem}
.screenshot-kicker{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.09em;text-transform:uppercase;color:var(--cyan);margin-bottom:.45rem}
.screenshot-kicker .d{display:inline-block;width:6px;height:6px;background:var(--green);margin-right:.45rem;box-shadow:0 0 7px rgba(55,224,106,.45)}
.screenshot-copy h3{margin-bottom:.35rem}
.screenshot-copy p{font-size:.9rem;margin-bottom:.8rem}
.screenshot-meta{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-family:var(--font-mono);font-size:.68rem;color:var(--ink-3)}
.screenshot-actions{display:flex;align-items:stretch}
.screenshot-action-card{width:100%;padding:1.4rem;clip-path:none;display:flex;flex-direction:column;justify-content:center}
.screenshot-action-card h3{margin:.7rem 0 .35rem}
.screenshot-action-card p{font-size:.88rem;color:var(--ink-2);max-width:700px}
.screenshot-action-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:1rem}
.screenshot-action-buttons .btn{justify-content:center}
.sod-field{display:block;margin:12px 0}
.sod-field>span{display:block;font-family:var(--font-mono);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-2);margin-bottom:6px}
.sod-field small{font-family:var(--font-body);text-transform:none;letter-spacing:0;color:var(--ink-3)}
.sod-field input,.sod-field textarea{width:100%;box-sizing:border-box;background:#090a0c;border:1px solid var(--line-bright);color:var(--ink-0);padding:10px;font:inherit}
.sod-field textarea{min-height:80px;resize:vertical}
.sod-field input[type=file]{padding:8px;font-size:.8rem}
.sod-field input:focus,.sod-field textarea:focus{border-color:var(--cyan);outline:none}
.sod-status{min-height:1.3em;margin-top:.75rem;font-size:.78rem;color:var(--ink-2)}
.sod-modal[hidden]{display:none}
.sod-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:24px}
.sod-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(5px)}
.sod-modal-dialog{position:relative;width:min(620px,100%);max-height:min(90vh,820px);overflow:auto;background:#111317;border:1px solid var(--line-bright);box-shadow:0 24px 80px rgba(0,0,0,.55);padding:28px}
.sod-modal-dialog h2{margin:.7rem 0 .35rem}
.sod-modal-dialog>p{color:var(--ink-2);font-size:.9rem}
.sod-modal-close{position:absolute;top:12px;right:14px;width:36px;height:36px;border:1px solid var(--line-bright);background:#090a0c;color:var(--ink-0);font-size:24px;line-height:1;cursor:pointer}
.sod-modal-close:hover{border-color:var(--cyan);color:var(--cyan)}
body.sod-modal-open{overflow:hidden}
/* Screenshot archive */
.screenshot-archive-head{margin-bottom:1rem}
.archive-top-actions{display:flex;gap:10px;justify-content:flex-end;margin-bottom:22px}
.screenshot-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.screenshot-archive-card{overflow:hidden}
.screenshot-archive-image{display:block;aspect-ratio:16/9;background:#090a0c;overflow:hidden}
.screenshot-archive-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.screenshot-archive-image:hover img{transform:scale(1.025)}
.screenshot-archive-copy{padding:1.15rem 1.25rem 1.25rem}
.screenshot-archive-copy h2{font-size:1.25rem;margin:.35rem 0 .5rem}
.screenshot-archive-copy p{font-size:.88rem;color:var(--ink-2);margin-bottom:.75rem}
.screenshot-archive-empty,.screenshot-archive-loading{padding:2rem;text-align:center;color:var(--ink-2);grid-column:1/-1}
@media(max-width:850px){.screenshot-day-grid{grid-template-columns:1fr}.screenshot-frame{aspect-ratio:16/10}.screenshot-archive-grid{grid-template-columns:1fr}.archive-top-actions{justify-content:flex-start}.sod-modal{padding:12px}.sod-modal-dialog{padding:22px 18px}}