@font-face {
  font-family: 'Bogart Alt';
  src: url('/fonts/Bogart-Alt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
:root {
  --ink: #020848;
  --blue: #0088ff;
  --surface: #f4f9ff;
  --surface-2: #e4f1ff;
  --off: #fdfdfb;
  --night: #03051a;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--night);
  color: var(--off);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.serif {
  font-family: 'Bogart Alt', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
a {
  color: inherit;
}

@font-face {
  font-family: 'Bogart Alt';
  src: url('/fonts/Bogart-Alt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
:root {
  --off-white: #fdfdfb;
  --surface: #f4f9ff;
  --surface-2: #e4f1ff;
  --ink: #020848;
  --ink-button: #080f58;
  --ink-mid: #214065;
  --ink-muted: rgba(2, 8, 72, 0.6);
  --blue: #0088ff;
  --blue-mid: #0067d8;
  --accent: #5b7fff;
  --border: rgba(171, 171, 171, 0.3);
  --border-md: rgba(2, 8, 72, 0.14);
  --display: 'Bogart Alt', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --shadow-soft: 0 18px 60px rgba(1, 53, 131, 0.09);
}
html,
body {
  background: var(--off-white);
  color: var(--ink);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 1000px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s;
}
.pill.ghost {
  background: rgba(253, 253, 251, 0.12);
  border-color: rgba(253, 253, 251, 0.35);
  color: var(--off-white);
}
.pill.ghost:hover {
  background: rgba(253, 253, 251, 0.22);
}
.pill.light {
  background: var(--off-white);
  color: var(--ink-button);
}
.pill.light:hover {
  background: #fff;
}
.pill.blue {
  background: var(--blue);
  color: #fff;
}
.pill.blue:hover {
  background: var(--blue-mid);
}
.pill.sm {
  font-size: 13px;
  padding: 5px 12px;
}
nav.top {
  max-width: 1312px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
nav.top img {
  height: 28px;
  display: block;
}
nav.top .tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  background: var(--surface-2);
  border-radius: 1000px;
  padding: 6px 14px;
  white-space: nowrap;
}
header.art {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header.art .in {
  max-width: 1312px;
  margin: 0 auto;
  padding: 56px 40px 52px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--ink-muted);
}
.meta b {
  color: var(--blue);
  font-weight: 600;
}
header.art h1 {
  max-width: 14ch;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.deck {
  margin-top: 22px;
  max-width: 36ch;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--ink-mid);
}
/* hero */
.hero {
  max-width: 1312px;
  margin: 40px auto 0;
  padding: 0 40px;
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  background: var(--blue);
  border-radius: 34px;
  padding: 20px;
  overflow: hidden;
}
.hero-in::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(228, 241, 255, 0.35), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(0, 103, 216, 0.9), transparent 70%);
  pointer-events: none;
}
.count {
  position: relative;
  z-index: 1;
  background: var(--off-white);
  border-radius: 24px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}
.hourline {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.simtag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--off-white);
  border-radius: 1000px;
  padding: 5px 12px;
}
.num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.numlbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-2);
  border-radius: 1000px;
  padding: 5px 12px;
}
.numlbl i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.wallpp {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  background: rgba(2, 8, 72, 0.55) !important;
  backdrop-filter: blur(6px);
}
.hour {
  font-size: 14px;
  color: var(--ink-muted);
}
.disc {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-mid);
}
.disc b {
  color: var(--ink);
}
.count .pill {
  margin-top: auto;
}
.wallbox {
  position: relative;
  z-index: 1;
  min-height: 500px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #0067d8, #0044ab);
  cursor: zoom-in;
}
#wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#fps {
  position: absolute;
  right: 14px;
  top: 14px;
  font:
    12px ui-monospace,
    monospace;
  color: #e4f1ff;
  display: none;
}
/* article */
article {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 40px 24px;
}
article h2 {
  margin: 48px 0 18px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 34px;
  line-height: 1.14;
}
article p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-mid);
}
article > p:first-child {
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
}
.cta {
  margin: 48px 0 0 !important;
  background: var(--blue);
  border-radius: 24px;
  padding: 48px 24px;
  text-align: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  color: var(--ink-button);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 1000px;
  padding: 14px 28px;
}
.btn:hover {
  background: #fff;
}
/* fullscreen wall */
dialog#explore {
  border: 0;
  padding: 0;
  margin: 0;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: linear-gradient(160deg, #0067d8, #0044ab);
  color: var(--ink);
  overflow: hidden;
}
dialog#explore[open] {
  display: flex;
  flex-direction: column;
  animation: zoom 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
dialog#explore::backdrop {
  background: var(--ink);
}
@keyframes zoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
}
.fbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--off-white);
  font-size: 14px;
  font-weight: 600;
}
.fbar .lbl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fbar .lbl i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.fctl {
  display: flex;
  gap: 8px;
}
.fwall {
  position: relative;
  flex: 1;
  min-height: 0;
}
.wallbox.full {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wallbox.full #wall {
  position: sticky;
  top: 0;
}
#wspacer {
  display: none;
}
.wallbox.full #wspacer {
  display: block;
}
.wallbox.full .wallpp {
  display: none;
}
#wall:focus-visible {
  outline: none;
}
.chat {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--off-white);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(2, 8, 72, 0.45);
  padding: 14px;
  overflow: auto;
  animation: zoom 0.25s ease-out;
  transform-origin: right center;
}
.chat[hidden] {
  display: none;
}
.chat .back {
  position: sticky;
  top: 0;
  z-index: 1;
  align-self: flex-start;
  border: 1px solid var(--border-md);
  background: #fff;
  color: var(--ink);
}
.dm {
  flex: none;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
}
.dm .h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8ebf2;
}
.av {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c);
  box-shadow:
    inset 0 0 0 2px #fff,
    0 0 0 1px var(--c);
}
.dm .h b {
  display: block;
  font-size: 15px;
}
.dm .h small {
  display: block;
  font-size: 12px;
  color: #8a90a6;
}
.dm .msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.bub {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.45;
  animation: pop 0.22s ease-out;
}
.bub.c {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-bottom-right-radius: 6px;
}
.bub.b {
  align-self: flex-start;
  background: #eef1f7;
  color: #1d2340;
  border-bottom-left-radius: 6px;
}
.bub.dots {
  display: flex;
  gap: 4px;
  padding: 13px 15px;
}
.bub.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa1b8;
  animation: dot 1s infinite;
}
.bub.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.bub.dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.chat.paused .bub,
.chat.paused .bub.dots i {
  animation-play-state: paused;
}
@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
}
@keyframes dot {
  50% {
    transform: translateY(-3px);
    opacity: 0.5;
  }
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
footer {
  max-width: 1312px;
  margin: 0 auto;
  padding: 24px 40px 40px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}
@media (max-width: 900px) {
  .hero-in {
    grid-template-columns: 1fr;
    border-radius: 24px;
    padding: 12px;
    gap: 12px;
  }
  .wallbox {
    min-height: 380px;
    order: -1;
  }
}
@media (max-width: 600px) {
  nav.top,
  header.art .in,
  .hero,
  .density,
  article,
  #review,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  nav.top img {
    height: 22px;
  }
  nav.top .tag {
    white-space: normal;
    text-align: right;
    font-size: 11.5px;
    padding: 5px 10px;
    max-width: 190px;
    line-height: 1.3;
  }
  header.art .in {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .hero {
    margin-top: 24px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .num {
    font-size: 60px;
  }
  .count {
    padding: 20px;
  }
  article p {
    font-size: 17px;
  }
  article > p:first-child {
    font-size: 20px;
  }
  article h2 {
    font-size: 28px;
  }
  .chat {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    border-radius: 0;
    padding: 12px;
  }
  .fbar {
    padding: 7px 12px;
    font-size: 13px;
  }
}
/* embedded in an article: the host page owns the header and copy */
.embed nav.top,
.embed header.art,
.embed article,
.embed footer {
  display: none;
}
.embed .hero {
  max-width: none;
  margin: 0;
  padding: 0;
}
@media (prefers-reduced-motion: reduce) {
  dialog#explore[open],
  .chat,
  .bub,
  .bub.dots i {
    animation: none;
  }
}
