/* =========================================================================
   worldtime.lol
   Dark, cinematic, overlay-first. The Earth is the page; everything else
   floats on top of it. Very few boxes, no cards-in-cards, no dashboard.
   ========================================================================= */

:root {
  --ink:            #f2f5ff;
  --ink-dim:        #96a0bd;
  --ink-faint:      #5d6684;
  --accent:         #3b6cff;
  --accent-soft:    #7ea0ff;
  --open:           #4fe3a1;
  --gold:           #ffd479;
  --danger:         #ff6b6b;

  --panel:          rgba(10, 14, 26, 0.72);
  --panel-solid:    #0a0e1a;
  --hairline:       rgba(255, 255, 255, 0.09);
  --hairline-soft:  rgba(255, 255, 255, 0.05);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo,
          Consolas, monospace;

  --strip-h: 132px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #03050c;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body.is-scene { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* --- Scene ---------------------------------------------------------------- */

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;   /* we handle drag/pinch ourselves */
  cursor: grab;
}
#scene canvas.dragging { cursor: grabbing; }

/* A soft vignette so the globe sits *in* the dark rather than on it. */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 35%, rgba(2, 4, 10, 0.55) 78%, rgba(2, 4, 10, 0.92) 100%);
}

/* --- Chrome layer --------------------------------------------------------- */

.chrome {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);   /* never let a row exceed the viewport */
  overflow: hidden;
}
/* Grid items default to min-width:auto, which lets the horizontally scrolling
   clock strip stretch the whole layer wider than the screen. */
.chrome > * { pointer-events: none; min-width: 0; }
.chrome a, .chrome button, .chrome .clickable { pointer-events: auto; }

/* --- Masthead ------------------------------------------------------------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 34px;
  gap: 24px;
}

.wordmark {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
}
.wordmark .dot { color: var(--accent-soft); }

.tagline {
  margin: 10px 0 0;
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #dfe6ff;
}
.subtagline {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

.nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(12, 17, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pill:hover { background: rgba(28, 36, 60, 0.7); border-color: rgba(255, 255, 255, 0.2); }
.pill:active { transform: scale(0.97); }

.pill--primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 26px rgba(59, 108, 255, 0.42);
}
.pill--primary:hover { background: #4d7bff; border-color: transparent; }

/* --- Corner copy ---------------------------------------------------------- */

.mid { position: relative; }

.corner {
  position: absolute;
  bottom: 26px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 300px;
}
.corner--left  { left: 34px; }
.corner--right { right: 34px; text-align: right; font-style: italic; color: var(--ink-faint); }

.corner strong {
  display: block;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  color: #e7ecff;
  line-height: 1.25;
}
.corner .muted { color: var(--ink-faint); }

/* --- Floating globe labels ------------------------------------------------ */

#labels {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
#leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#leaders line {
  stroke: rgba(200, 215, 255, 0.32);
  stroke-width: 1;
}
#leaders circle { fill: #fff; }

.mk {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 132px;
  padding: 11px 14px 12px;
  border-radius: 13px;
  background: rgba(8, 12, 24, 0.74);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  animation: mkIn 0.45s var(--ease) both;
}
@keyframes mkIn { from { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.9); } }
.mk:hover { border-color: rgba(255, 255, 255, 0.24); background: rgba(14, 20, 38, 0.86); }
.mk.is-selected { border-color: var(--accent-soft); box-shadow: 0 14px 44px rgba(59, 108, 255, 0.35); }
.mk.is-open { border-color: rgba(79, 227, 161, 0.3); }

.mk-city { font-size: 13px; font-weight: 500; color: #dbe3ff; letter-spacing: -0.01em; }
.mk-time {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.mk-sub { margin-top: 7px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-faint); }
.mk-owner { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.mk-owner img { width: 17px; height: 17px; border-radius: 4px; flex: none; }
.mk-owner span { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.mk-open { margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--open); }
.mk-price { font-size: 12px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

.avatar {
  width: 17px; height: 17px; border-radius: 4px; flex: none;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #0a0e1a;
  background: linear-gradient(140deg, #9fb6ff, #6d8cff);
}
.avatar--lg { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }

/* --- Bottom clock strip --------------------------------------------------- */

.strip {
  position: relative;
  min-width: 0;
  height: var(--strip-h);
  border-top: 1px solid var(--hairline-soft);
  background: linear-gradient(to bottom, rgba(3, 6, 14, 0.4), rgba(3, 6, 14, 0.94) 45%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}
.strip-scroll {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  padding: 0 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.strip-scroll::-webkit-scrollbar { display: none; }

.tick {
  flex: none;
  width: 116px;
  padding: 12px 6px 10px;
  text-align: center;
  border-radius: 12px;
  scroll-snap-align: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
}
.tick:hover { background: rgba(255, 255, 255, 0.045); }
.tick.is-selected { background: rgba(59, 108, 255, 0.14); }

.tick svg { display: block; margin: 0 auto 7px; opacity: 0.9; }
.tick-face { stroke: rgba(255, 255, 255, 0.28); fill: none; }
.tick-h { stroke: #e8edff; stroke-width: 2; stroke-linecap: round; }
.tick-m { stroke: #e8edff; stroke-width: 1.5; stroke-linecap: round; }
.tick-s { stroke: var(--accent-soft); stroke-width: 1; stroke-linecap: round; }

.tick-time {
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tick-city {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--ink-dim); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tick-owner {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.09em;
  margin-top: 4px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--accent-soft);
}
.tick-owner.is-open { color: var(--open); }
.tick-price { font-size: 11.5px; color: var(--ink-dim); margin-top: 2px; font-variant-numeric: tabular-nums; }

.strip-fade {
  position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none;
}
.strip-fade--l { left: 0;  background: linear-gradient(to right, #04060e, transparent); }
.strip-fade--r { right: 0; background: linear-gradient(to left,  #04060e, transparent); }

/* --- Detail panel --------------------------------------------------------- */

.panel {
  position: fixed;
  z-index: 6;
  top: 0; right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  padding: 30px 30px calc(var(--strip-h) + 30px);
  overflow-y: auto;
  background: linear-gradient(200deg, rgba(9, 13, 26, 0.9), rgba(5, 8, 18, 0.96));
  border-left: 1px solid var(--hairline);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  transform: translateX(100%);
  transition: transform 0.44s var(--ease);
  scrollbar-width: thin;
}
.panel.is-open { transform: none; }
.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }

.panel-close {
  position: absolute; top: 22px; right: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  transition: color 0.2s, border-color 0.2s;
}
.panel-close:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.25); }

.p-kicker {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.p-city {
  font-size: 34px; font-weight: 600; letter-spacing: -0.035em;
  margin: 6px 0 0; line-height: 1.05;
}
.p-clock {
  font-size: 46px; font-weight: 300; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  margin: 14px 0 2px; line-height: 1;
}
.p-clock .sec { color: var(--ink-faint); font-size: 0.62em; letter-spacing: -0.02em; }
.p-date { font-size: 13px; color: var(--ink-dim); }

.p-rule { height: 1px; background: var(--hairline-soft); margin: 24px 0; border: 0; }

.p-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faint); margin-bottom: 10px;
}

.owner-row { display: flex; align-items: center; gap: 12px; }
.owner-row img { width: 34px; height: 34px; border-radius: 9px; flex: none; background: #fff; object-fit: contain; }
.owner-name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.owner-link { font-size: 13px; color: var(--accent-soft); }
.owner-link:hover { text-decoration: underline; }
.owner-tagline { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-dim); font-style: italic; line-height: 1.5; }

.p-open {
  font-size: 22px; font-weight: 600; color: var(--open); letter-spacing: -0.02em;
}
.p-open small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-dim); margin-top: 6px; font-style: normal; letter-spacing: 0; }

.p-figures { display: flex; gap: 34px; margin-top: 4px; }
.p-fig-v { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.p-fig-v.accent { color: var(--accent-soft); }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; margin-top: 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 10px 34px rgba(59, 108, 255, 0.4);
  transition: transform 0.18s var(--ease), background 0.2s;
}
.cta:hover { background: #4d7bff; transform: translateY(-1px); }
.cta:active { transform: translateY(0) scale(0.99); }
.cta--open { background: #1fbf7f; box-shadow: 0 10px 34px rgba(31, 191, 127, 0.36); }
.cta--open:hover { background: #27d38d; }

.hist { list-style: none; margin: 0; padding: 0; }
.hist li {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13.5px;
}
.hist li:last-child { border-bottom: 0; }
.hist img { width: 22px; height: 22px; border-radius: 6px; flex: none; background: #fff; object-fit: contain; }
.hist .h-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist .h-amt { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.hist .h-ago { color: var(--ink-faint); font-size: 11.5px; width: 52px; text-align: right; }
.hist .is-current .h-name { font-weight: 600; }

.empty { font-size: 13.5px; color: var(--ink-faint); line-height: 1.6; }

/* --- Overlays (how it works / leaderboard / claim form) ------------------- */

.overlay {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 780px);
  overflow-y: auto;
  padding: 38px;
  border-radius: 22px;
  background: linear-gradient(190deg, #0e1424, #070b16);
  border: 1px solid var(--hairline);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.4s var(--ease);
}
.overlay.is-open .sheet { transform: none; }
.sheet h2 { margin: 0 0 6px; font-size: 27px; font-weight: 600; letter-spacing: -0.035em; }
.sheet h2 .dot { color: var(--accent-soft); }
.sheet p { font-size: 15px; line-height: 1.65; color: var(--ink-dim); }
.sheet p strong { color: var(--ink); font-weight: 500; }
.sheet-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-dim);
  border: 1px solid var(--hairline);
}
.sheet-close:hover { color: var(--ink); }

.steps { list-style: none; counter-reset: s; margin: 26px 0 0; padding: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 20px 44px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink-dim);
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--accent-soft);
  border: 1px solid rgba(126, 160, 255, 0.35);
  background: rgba(59, 108, 255, 0.1);
}
.steps li strong { color: var(--ink); font-weight: 600; }

/* leaderboard */
.lb { list-style: none; margin: 22px 0 0; padding: 0; }
.lb li {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline-soft);
}
.lb li:last-child { border-bottom: 0; }
.lb .rank { width: 22px; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.lb img, .lb .avatar { width: 26px; height: 26px; border-radius: 7px; flex: none; background: #fff; object-fit: contain; }
.lb .lb-zone { flex: 1; min-width: 0; }
.lb .lb-name { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.lb .lb-owner { font-size: 12px; color: var(--ink-faint); }
.lb .lb-amt { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lb li.is-open .lb-amt { color: var(--open); }

/* --- Search --------------------------------------------------------------- */

.lb--scroll {
  max-height: 46vh;
  overflow-y: auto;
  margin-top: 6px;
  scrollbar-width: thin;
}
.lb--scroll::-webkit-scrollbar { width: 6px; }
.lb--scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }

.lb li[data-slug] { cursor: pointer; padding-inline: 8px; border-radius: 9px; }
.lb li[data-slug]:hover { background: rgba(255, 255, 255, 0.05); }
.lb .lb-name em { font-style: normal; color: var(--accent-soft); font-weight: 500; }
.lb li.is-open .lb-amt { color: var(--open); }

.avatar--open { background: linear-gradient(140deg, #4fe3a1, #22b884); color: #04140d; }

.sheet code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}

/* A text button that reads as a link, for secondary actions inside a sheet. */
.link-btn {
  margin-left: auto;
  font-size: 13px;
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: #a8c0ff; }

/* The visitor's own zone, pinned at the front of the clock strip. */
.tick.is-home { background: rgba(59, 108, 255, 0.10); }
.tick.is-home .tick-city { color: var(--accent-soft); }

#homeZoneBtn b { font-weight: 600; }

/* --- Claim form ----------------------------------------------------------- */

.form-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.form-price {
  font-size: 15px; font-weight: 600; color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-faint); margin-bottom: 7px;
}
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--ink-faint); opacity: 0.7; }
.field input {
  width: 100%; height: 48px; padding: 0 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hairline);
  color: var(--ink); font-size: 15px;
  transition: border-color 0.18s, background 0.18s;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(59, 108, 255, 0.07);
}
.field.has-error input { border-color: var(--danger); }
.field-error { display: none; margin-top: 6px; font-size: 12px; color: var(--danger); }
.field.has-error .field-error { display: block; }

.form-note { margin-top: 16px; font-size: 12px; color: var(--ink-faint); line-height: 1.6; text-align: center; }
.form-alert {
  display: none; margin-bottom: 18px; padding: 12px 14px;
  border-radius: 11px; font-size: 13.5px; line-height: 1.5;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ffb3b3;
}
.form-alert.is-shown { display: block; }

.cta[disabled] { opacity: 0.6; pointer-events: none; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Activity ticker ------------------------------------------------------ */

.ticker {
  position: fixed;
  right: 34px;
  bottom: calc(var(--strip-h) + 104px);
  z-index: 4;
  width: 320px;
  text-align: right;
  pointer-events: none;
}
.ticker-label { text-align: right; }
.ticker-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-faint); margin-bottom: 10px;
}
.ticker ul { list-style: none; margin: 0; padding: 0; }
.ticker li {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  font-size: 12.5px; color: var(--ink-dim);
  padding: 4px 0;
  animation: slideIn 0.5s var(--ease) both;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } }
.ticker li img, .ticker li .avatar { width: 15px; height: 15px; border-radius: 4px; flex: none; }
.ticker b { color: #e2e8ff; font-weight: 600; }
.ticker .amt { color: var(--gold); font-variant-numeric: tabular-nums; }
.ticker .zone { color: var(--accent-soft); }

/* --- Standalone pages (zone.php / success.php / manage.php) --------------- */

.page {
  position: relative; z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 26px 90px;
}
body.is-page { overflow-y: auto; background: radial-gradient(120% 80% at 50% -10%, #101a35 0%, #04060e 60%); }
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-dim); margin-bottom: 34px; }
.back:hover { color: var(--ink); }

.page h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 600; letter-spacing: -0.04em; margin: 0 0 4px; }
.page .lede { font-size: 16px; color: var(--ink-dim); margin: 0 0 34px; }

.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
}
.status-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: pulse 1.4s ease-in-out infinite;
}
.status-badge.is-done { border-color: rgba(79, 227, 161, 0.35); background: rgba(79, 227, 161, 0.1); }
.status-badge.is-done .pulse { background: var(--open); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }

.slab {
  margin: 30px 0;
  padding: 26px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hairline-soft);
}

/* --- Loading -------------------------------------------------------------- */

#boot {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: #03050c;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#boot.is-gone { opacity: 0; visibility: hidden; }
#boot .boot-mark { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; opacity: 0.9; }
#boot .boot-bar {
  width: 160px; height: 2px; margin-top: 18px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.1); overflow: hidden;
}
#boot .boot-bar i {
  display: block; height: 100%; width: 30%;
  background: var(--accent-soft);
  animation: bootslide 1.1s ease-in-out infinite;
}
@keyframes bootslide { 0% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1400px) {
  .corner--right { display: none; }
}
@media (max-width: 1180px) {
  .ticker { display: none; }
}

@media (max-width: 900px) {
  :root { --strip-h: 118px; }

  .masthead { padding: 20px 20px 0; flex-direction: column; align-items: stretch; gap: 14px; }
  .nav { justify-content: flex-start; }
  .pill { height: 38px; padding: 0 16px; font-size: 13px; }

  .corner--left { left: 20px; bottom: 14px; font-size: 12px; max-width: 60%; }
  .corner--left strong { font-size: 16px; }

  .mk { min-width: 108px; padding: 9px 11px 10px; border-radius: 11px; }
  .mk-time { font-size: 16px; }
  .mk-city { font-size: 11.5px; }

  /* Bottom sheet instead of a side panel. */
  .panel {
    top: auto; bottom: 0; right: 0; left: 0;
    width: 100%;
    height: auto;
    max-height: 58vh;
    padding: 26px 22px 34px;
    border-left: 0;
    border-top: 1px solid var(--hairline);
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.6);
  }
  .panel::before {
    content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2);
  }
  .p-city { font-size: 27px; }
  .p-clock { font-size: 38px; }

  .sheet { padding: 30px 24px; border-radius: 20px; }
  .tick { width: 98px; }
}

@media (max-width: 560px) {
  .wordmark { font-size: 26px; }
  .tagline { font-size: 16px; }
  .subtagline { display: none; }
  .corner--left { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.06s !important; }
}
