/* XploreR web — styled like the glasses display: black lens, white type,
   dark cards, outlined buttons, the aurora call-to-action for the main
   action. Sized for the Ray-Ban Display browser (600 × 600 validation
   viewport) and phones. The glasses' display is additive: black is
   see-through and dark grays are faint, so outlines are light and the
   focused control (moved by the Neural Band / arrow keys) gets a bright
   white ring. Brand kit v3: Inter type, Glacier accent on dark, solid
   category colours as accents only; only "live now" pulses. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/InterDisplay-SemiBold.woff2") format("woff2"); }

:root {
  --bg: #000;              /* the lens: black shows as clear */
  --card: #23272f;         /* Ink, lifted */
  --card-press: #2e333d;
  --line: #6b7480;
  --ink: #ffffff;          /* HUD text is white */
  --muted: #a3acb8;
  --accent: #66c8ed;       /* Glacier: the accent on dark */
  --cta: linear-gradient(135deg, #3d56e7 0%, #7635d5 38%, #b23fc9 70%, #c9416f 100%);
  --notice: #1d2a4a;
  --radius: 14px;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-text);
  font-size: 17px; line-height: 1.35;
}

.lens { max-width: 600px; margin: 0 auto; padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.pad { padding: 20px; }
.muted { color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); }
.small { font-size: 13px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 23px; line-height: 1.2; }
.section { font-size: 17px; font-weight: 600; margin-top: 6px; }

.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row.center { justify-content: center; }
.row.fill > .btn { flex: 1 1 0; }

.btn {
  appearance: none; border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 600; border-radius: 999px; padding: 10px 16px;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:active { background: var(--card-press); }
a { color: var(--accent); }
.btn:focus-visible, .card:focus-visible, .search input:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px;
}
/* Primary call to action: the aurora slice, white SemiBold text. */
.btn.primary { background: var(--cta) border-box; border-color: transparent; color: #fff; }
.btn.primary:active { filter: brightness(0.9); }
/* Selected tab / option: Glacier outline, tinted. */
.btn.on { border-color: var(--accent); color: var(--accent); background: rgba(102, 200, 237, 0.14); }
.btn.secondary { background: #2d3138; border-color: #2d3138; }
.btn.wide { width: 100%; }
.btn .ic { font-size: 18px; line-height: 1; }
.back { align-self: flex-start; }

.card {
  background: var(--card); border-radius: var(--radius); padding: 12px; display: flex; gap: 12px;
  align-items: center; cursor: pointer; border: 0; color: inherit; font: inherit; text-align: left; width: 100%;
}
.card:active, .card:focus-visible { background: var(--card-press); }
.card .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.card .title { font-size: 17px; overflow-wrap: anywhere; }
.thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: 0 0 48px; background: #2a2e35; }
.chev { color: var(--muted); font-size: 20px; }

/* Category disc: solid category colour, white icon. */
.disc { position: relative; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%;
  background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.disc svg { width: 24px; height: 24px; position: relative; }
/* Live now: a soft glow that swells and fades (2 s), no hard ring. */
.disc.live::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, var(--c) 55%, transparent 72%);
  opacity: 0; animation: glow 2s ease-out infinite; }
@keyframes glow { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.8); opacity: 0; } }

/* Photo thumbnail with the category disc as a small corner badge. If the
   photo fails, the badge grows back into the full disc. */
.thumbwrap { position: relative; flex: 0 0 48px; width: 48px; height: 48px; }
.thumbwrap .thumb { display: block; }
.disc.badge { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; flex: none;
  box-shadow: 0 0 0 2px var(--card); }
.disc.badge svg { width: 12px; height: 12px; }
.disc.badge.live::before { animation-name: glow-badge; }
@keyframes glow-badge { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }
.thumbwrap.nophoto .disc.badge { position: static; width: 48px; height: 48px; box-shadow: none; }
.thumbwrap.nophoto .disc.badge svg { width: 24px; height: 24px; }

.tags { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0; }
.tag { background: var(--c); color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1.3; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em; color: #fff; }
.live .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.live .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--c);
  animation: dot 2s ease-out infinite; }
@keyframes dot { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2); opacity: 0; } }
.detail-head { display: flex; align-items: center; gap: 12px; }

.notice { background: var(--notice); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.hero { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); background: #2a2e35; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #2a2e35; }
.story { font-size: 15px; color: var(--muted); white-space: pre-line; }
.story.link { color: var(--accent); word-break: break-all; }

.search { display: flex; gap: 8px; }
.search input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px;
}

.foot { text-align: center; padding: 8px 0 28px; }
.foot a { color: var(--muted); font-size: 13px; text-decoration: none; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid #ffffff33; border-top-color: #fff;
  animation: spin 0.9s linear infinite; display: inline-block; vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner, .live .dot::after { animation: none; }
  .disc.live::before { animation: none; opacity: 0.35; transform: scale(1.4); }
}

/* On the glasses (the ~600 × 600 square lens viewport): the kit's HUD rule,
   Inter SemiBold at 30 px or more for every line of text. */
@media (max-width: 640px) and (max-height: 640px) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) {
  body { font-size: 30px; font-weight: 600; line-height: 1.2; }
  .lens { padding: 18px 18px 22px; gap: 14px; }
  h1 { font-size: 36px; }
  h2 { font-size: 36px; }
  .section, .card .title, .meta, .small, .story, .notice, .btn, .search input, .tag, .live, .foot a { font-size: 30px; }
  .meta, .story { font-weight: 600; }
  .btn { padding: 10px 20px; min-height: 60px; }
  .btn .ic { font-size: 30px; }
  .brand img { width: 44px; height: 44px; }
  .disc { width: 64px; height: 64px; flex-basis: 64px; }
  .disc svg { width: 32px; height: 32px; }
  .tag { padding: 2px 12px; }
  .live .dot { width: 12px; height: 12px; }
  .thumb { width: 64px; height: 64px; flex-basis: 64px; }
  .thumbwrap { width: 64px; height: 64px; flex-basis: 64px; }
  .disc.badge { width: 28px; height: 28px; }
  .disc.badge svg { width: 16px; height: 16px; }
  .thumbwrap.nophoto .disc.badge { width: 64px; height: 64px; }
  .thumbwrap.nophoto .disc.badge svg { width: 32px; height: 32px; }
}
