@font-face {
  font-family: "Albert Sans";
  src: url("/assets/albert-sans-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #0d0d12;
  background: #e8e9ed;
  font-family: "Albert Sans", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  --ink: #0d0d12;
  --muted: #6d6e78;
  --hairline: rgba(13, 13, 18, 0.13);
  --violet: #c9b8ff;
  --cyan: #9de7f4;
  --stage-scale: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 12% 16%, rgba(203, 186, 255, 0.22), transparent 28%),
    radial-gradient(circle at 87% 84%, rgba(157, 231, 244, 0.22), transparent 28%),
    #ececef;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1027px;
  overflow: hidden;
  background: #fbfbfd;
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center;
  box-shadow: 0 32px 100px rgba(18, 18, 28, 0.14);
}

.boot-screen {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 30px;
}

.boot-screen img {
  width: 289px;
  height: auto;
}

.boot-screen p {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.boot-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(13, 13, 18, 0.1);
  border-top-color: #7864dc;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.display-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 132px;
}

.brand-logo {
  position: absolute;
  top: 9px;
  left: 17px;
  width: 241px;
  height: 50px;
  object-fit: contain;
}

.report-title {
  position: absolute;
  top: 7px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-family: Arial, sans-serif;
  font-size: 62px;
  font-weight: 400;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.header-mark {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: flex-start;
  text-align: right;
}

.header-mark-copy {
  display: grid;
  gap: 1px;
  font-size: 20px;
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: 0.05em;
}

.display-toolbar {
  position: absolute;
  top: 112px;
  right: 54px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-status,
.toolbar-button,
.date-filter {
  height: 37px;
  border: 1px solid rgba(13, 13, 18, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  color: #50515b;
  font-size: 14px;
  font-weight: 600;
}

.live-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35cb88;
  box-shadow: 0 0 0 5px rgba(53, 203, 136, 0.13);
  content: "";
}

.date-filter {
  display: inline-flex;
  overflow: hidden;
  align-items: center;
}

.date-scope,
.date-clear {
  height: 100%;
  border: 0;
  background: transparent;
  color: #555762;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
}

.date-scope {
  padding: 0 13px;
  border-right: 1px solid rgba(13, 13, 18, 0.1);
}

.date-scope.is-active {
  background: #20212a;
  color: #fff;
}

.date-field {
  width: 137px;
  height: 35px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #303039;
  outline: none;
}

.date-clear {
  width: 34px;
  border-left: 1px solid rgba(13, 13, 18, 0.1);
  font-size: 19px;
  line-height: 1;
}

.date-scope:hover,
.date-clear:hover {
  background: rgba(31, 33, 42, 0.07);
}

.date-scope.is-active:hover {
  background: #20212a;
}

.toolbar-button {
  min-width: 42px;
  padding: 0 14px;
  border-color: rgba(13, 13, 18, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.toolbar-button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.toolbar-button.is-refreshing .refresh-icon {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

.home-view {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
}

.hero-art {
  position: absolute;
  top: 171px;
  left: 465px;
  z-index: 1;
  width: 990px;
  height: 686px;
  object-fit: contain;
  user-select: none;
}

.counter-panel {
  position: absolute;
  top: 302px;
  left: 75px;
  z-index: 3;
  width: 404px;
}

.counter-block + .counter-block {
  margin-top: 76px;
}

.counter-label {
  margin: 0 0 33px;
  color: #35405b;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-align: center;
}

.flip-number {
  display: flex;
  gap: 15px;
}

.flip-digit {
  position: relative;
  display: grid;
  width: 69px;
  height: 92px;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: #35405b;
  box-shadow: none;
  color: #fff;
  font-size: 62px;
  font-weight: 350;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.flip-digit::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  content: "";
}

.flip-digit.is-loading {
  background: linear-gradient(90deg, #35405b 20%, #53617e 48%, #35405b 76%);
  background-size: 220% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}

.session-launcher {
  position: absolute;
  top: 150px;
  right: 18px;
  z-index: 5;
  display: grid;
  width: 394px;
  gap: 28px;
}

.session-button {
  position: relative;
  display: grid;
  width: 100%;
  height: 100px;
  padding: 0 24px;
  overflow: hidden;
  align-items: center;
  border: 2px solid #141419;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(226, 248, 250, 0.72) 0%, #fff 48%, rgba(233, 226, 244, 0.7) 100%);
  box-shadow: none;
  cursor: pointer;
  color: #1854a1;
  font-size: 28px;
  font-weight: 450;
  line-height: 1.15;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.session-button:nth-child(even) {
  background: linear-gradient(180deg, rgba(226, 248, 250, 0.72) 0%, #fff 48%, rgba(233, 226, 244, 0.7) 100%);
}

.session-button:hover {
  box-shadow: 0 10px 24px rgba(55, 74, 115, 0.14);
  transform: translateY(-2px);
}

.display-footer {
  position: absolute;
  right: 18px;
  bottom: 10px;
  left: 17px;
  z-index: 4;
  display: flex;
  height: auto;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-location {
  display: grid;
  gap: 3px;
}

.footer-date {
  font-size: 24px;
  font-weight: 450;
  letter-spacing: -0.03em;
}

.footer-place {
  color: #16161b;
  font-size: 24px;
}

.footer-year {
  font-size: 24px;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1;
}

.error-ribbon {
  position: absolute;
  top: 158px;
  left: 50%;
  z-index: 20;
  display: flex;
  min-width: 440px;
  max-width: 780px;
  padding: 15px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #e5a5a5;
  border-radius: 10px;
  background: rgba(255, 241, 241, 0.96);
  box-shadow: 0 10px 30px rgba(110, 36, 36, 0.12);
  color: #742828;
  font-size: 16px;
  transform: translateX(-50%);
}

.error-ribbon button {
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
}

.details-view {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 90% 22%, rgba(156, 231, 242, 0.18), transparent 23%),
    radial-gradient(circle at 72% 90%, rgba(203, 184, 255, 0.18), transparent 28%),
    #fbfbfd;
}

.detail-sidebar {
  position: absolute;
  top: 167px;
  bottom: 52px;
  left: 54px;
  z-index: 4;
  width: 322px;
  padding-right: 34px;
  border-right: 1px solid var(--hairline);
}

.home-link {
  display: inline-flex;
  height: 48px;
  padding: 0 18px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(13, 13, 18, 0.17);
  border-radius: 25px;
  background: #fff;
  cursor: pointer;
  font-weight: 650;
}

.sidebar-label {
  margin: 38px 0 16px;
  color: #83838c;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-session {
  position: relative;
  display: flex;
  min-height: 62px;
  padding: 12px 44px 12px 17px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.14;
  text-align: left;
}

.sidebar-session:hover {
  background: rgba(13, 13, 18, 0.035);
}

.sidebar-session.is-active {
  border-color: rgba(13, 13, 18, 0.1);
  background: linear-gradient(100deg, rgba(169, 233, 242, 0.6), rgba(206, 191, 255, 0.62));
}

.sidebar-session-index {
  position: absolute;
  right: 14px;
  color: rgba(13, 13, 18, 0.42);
  font-size: 12px;
  font-weight: 720;
}

.detail-main {
  position: absolute;
  top: 166px;
  right: 54px;
  bottom: 39px;
  left: 414px;
  z-index: 4;
}

.detail-breadcrumb {
  margin: 0 0 8px;
  color: #777883;
  font-size: 15px;
}

.detail-heading-row {
  display: flex;
  min-height: 71px;
  align-items: flex-start;
  justify-content: space-between;
}

.detail-heading {
  margin: 0;
  font-size: 43px;
  font-weight: 560;
  letter-spacing: -0.045em;
}

.detail-meta {
  display: flex;
  padding-top: 12px;
  align-items: center;
  gap: 15px;
  color: #666770;
  font-size: 14px;
}

.stale-badge,
.partial-badge,
.scope-badge {
  padding: 6px 10px;
  border-radius: 15px;
  background: #fff1c8;
  color: #76580b;
  font-weight: 700;
}

.scope-badge {
  background: rgba(32, 33, 42, 0.07);
  color: #565761;
}

.scope-badge.is-filtered {
  background: #e8f2ff;
  color: #175ca8;
}

.detail-table {
  overflow: hidden;
  border-top: 1px solid rgba(13, 13, 18, 0.28);
  border-bottom: 1px solid rgba(13, 13, 18, 0.18);
}

.table-grid {
  display: grid;
  grid-template-columns: 112px minmax(220px, 1.2fr) minmax(170px, 0.75fr) minmax(250px, 1fr) minmax(250px, 1fr);
  align-items: center;
  column-gap: 16px;
}

.table-header {
  height: 57px;
  color: #72737c;
  font-size: 13px;
  font-weight: 730;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.table-row {
  min-height: 84px;
  border-top: 1px solid rgba(13, 13, 18, 0.1);
  background: rgba(255, 255, 255, 0.52);
  font-size: 18px;
}

.table-row:nth-child(odd) {
  background: rgba(248, 248, 252, 0.68);
}

.avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(13, 13, 18, 0.12);
  border-radius: 50%;
  background: linear-gradient(145deg, #c8eff3, #d7c9ff);
}

.avatar-wrap img,
.avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.avatar-wrap img {
  z-index: 2;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: #393044;
  font-size: 20px;
  font-weight: 760;
}

.person-name {
  overflow: hidden;
  font-size: 22px;
  font-weight: 630;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-nationality,
.person-time {
  overflow: hidden;
  color: #454650;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state,
.loading-state {
  display: grid;
  height: 645px;
  place-content: center;
  justify-items: center;
  color: #70717a;
  text-align: center;
}

.empty-orb {
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  border: 1px solid rgba(13, 13, 18, 0.13);
  border-radius: 50%;
  background: conic-gradient(from 25deg, #caeefa, #d3c0ff, #f0f5ac, #caeefa);
}

.empty-state h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 25px;
}

.empty-state p {
  margin: 0;
  font-size: 16px;
}

.loading-bars {
  display: grid;
  width: 660px;
  gap: 14px;
}

.loading-bars span {
  height: 69px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eeeef2 15%, #f8f8fa 45%, #eeeef2 75%);
  background-size: 220% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.pagination {
  display: flex;
  height: 65px;
  align-items: flex-end;
  justify-content: space-between;
}

.page-total {
  padding-bottom: 9px;
  color: #71727b;
  font-size: 14px;
}

.page-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-button {
  display: grid;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid rgba(13, 13, 18, 0.14);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 14px;
}

.page-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.page-button:disabled {
  opacity: 0.36;
  cursor: default;
}

.page-ellipsis {
  padding: 0 3px;
  color: #96969d;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  z-index: 100;
  max-width: min(520px, calc(100vw - 40px));
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(19, 19, 24, 0.92);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 15px;
  transform: translateX(-50%);
}

.fatal-boundary {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  padding: 40px;
  place-content: center;
  justify-items: start;
  background: #f7f7fb;
}

.fatal-boundary::after {
  position: fixed;
  right: -120px;
  bottom: -170px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: conic-gradient(#c5b3ff, #9ce9ef, #eff6a7, #c5b3ff);
  content: "";
  filter: blur(2px);
}

.fatal-kicker {
  margin: 0 0 18px;
  color: #73747d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.fatal-boundary h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  letter-spacing: -0.06em;
}

.fatal-boundary p:not(.fatal-kicker) {
  max-width: 600px;
  margin: 20px 0 28px;
  color: #5d5e67;
  font-size: 19px;
}

.fatal-boundary button {
  padding: 13px 22px;
  border: 0;
  border-radius: 25px;
  background: #111116;
  color: #fff;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 4px solid rgba(53, 125, 255, 0.34);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
