:root {
  --bg: #08090b;
  --panel: #101114;
  --panel-2: #15171b;
  --ink: #f6f3ec;
  --muted: #8f9298;
  --gold: #eea042;
  --gold-soft: #f6c878;
  --red: #d84b3e;
  --green: #67d4a6;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(238, 160, 66, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
}

body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 28px 52px;
}

html.tg-miniapp body {
  padding-top: calc(16px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  padding-bottom: calc(24px + var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background: radial-gradient(40% 36% at 15% 3%, rgba(177, 91, 28, 0.18), transparent 62%),
    radial-gradient(42% 38% at 88% 0%, rgba(231, 182, 75, 0.1), transparent 60%), #08090b;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 180px;
  height: 28px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #161006;
  background: linear-gradient(145deg, #f0cf76, #bd791a);
  box-shadow: 0 8px 24px rgba(198, 128, 27, 0.22);
  font-size: 22px;
}

.brand-mark i {
  font-style: normal;
  transform: translateY(-1px);
}

.brand-copy {
  display: grid;
  line-height: 1;
  gap: 5px;
}

.brand-copy b {
  font-size: 16px;
  letter-spacing: 0.15em;
}

.brand-copy small {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 8px;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
}

h1 {
  margin: 2px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: italic;
  color: var(--gold);
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(103, 212, 166, 0.6);
  animation: pulse 2.2s infinite;
}

.dot.is-demo {
  background: var(--gold);
  animation: none;
}

#clock {
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.timezone {
  font-size: 9px;
  color: var(--muted);
}

.header-events-link {
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.timezone-control {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: min(52vw, 190px);
  padding: 7px 9px;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  background: rgba(231, 182, 75, 0.07);
  color: var(--gold-soft);
  font: 600 9px Manrope, sans-serif;
  cursor: pointer;
}

.timezone-picker {
  position: relative;
}

.timezone-menu {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 8px);
  width: min(92vw, 280px);
  max-height: min(70vh, 440px);
  padding: 6px;
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  background: #111216;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.timezone-group-label {
  padding: 8px 10px 4px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timezone-group + .timezone-group {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.timezone-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 10px Manrope, sans-serif;
  cursor: pointer;
}

.timezone-menu button:hover,
.timezone-menu button.is-on {
  color: var(--ink);
  background: rgba(231, 182, 75, 0.09);
}

.timezone-menu button.is-on b {
  color: var(--gold-soft);
}

.timezone-menu b {
  font-size: 11px;
}

.timezone-menu span {
  color: var(--muted);
  font-size: 8px;
}

.timezone-control i {
  color: var(--gold);
  font-style: normal;
}

#timezone-control-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.lang-switch button {
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: 700 9px Manrope, sans-serif;
  cursor: pointer;
}

.lang-switch button.is-on {
  color: #171005;
  background: var(--gold);
}

.language-toggle {
  min-width: 52px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--gold-soft);
  font: 800 10px Manrope, sans-serif;
  cursor: pointer;
}

.language-toggle:hover {
  border-color: var(--line-gold);
  background: rgba(231, 182, 75, 0.08);
}

.language-toggle-icon {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

@media (max-width: 860px) {
  .language-toggle-icon {
    display: none;
  }

  .language-toggle {
    min-width: 44px;
    padding: 0 11px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 52px 0 34px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  margin: 5px 0 8px;
}

.lede {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.hero-card {
  min-width: 180px;
  padding: 19px 22px;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(231, 182, 75, 0.12), rgba(255, 255, 255, 0.02));
  text-align: right;
}

.hero-card span,
.hero-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  color: var(--gold-soft);
  font-family: "Instrument Serif", serif;
  font-size: 46px;
  line-height: 1;
  font-weight: 400;
  margin: 5px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.stat {
  background: rgba(15, 16, 19, 0.97);
  padding: 15px 20px;
}

.stat b {
  display: block;
  font-size: 20px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lobby {
  margin-top: 25px;
}

.featured-strip {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(231, 182, 75, 0.16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(231, 182, 75, 0.18), transparent 32%),
    linear-gradient(135deg, #1a160e, #101114 58%, #0c0d0f);
}

.featured-strip::after {
  content: "♠";
  position: absolute;
  right: 5%;
  top: -56px;
  color: rgba(231, 182, 75, 0.06);
  font: 180px/1 Georgia, serif;
  pointer-events: none;
}

.featured-slides {
  display: flex;
  align-items: stretch;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.featured-slides.is-instant {
  transition: none;
}

.featured-main-banner {
  display: flex;
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  align-items: center;
  gap: 28px 36px;
  padding: 22px 32px 52px;
}

.featured-main-banner.is-clone {
  pointer-events: none;
}

.featured-copy {
  display: flex;
  flex: 1 1 36%;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.featured-title,
.featured-main-copy h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font: 400 clamp(28px, 3.2vw, 44px)/1.06 "Instrument Serif", Georgia, serif;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-soft);
  font: 800 11px/1 Manrope, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.featured-tag.is-value,
.featured-tag.is-main {
  color: #171005;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
}

.featured-stats {
  display: flex;
  flex: 1 1 58%;
  align-items: stretch;
  justify-content: space-evenly;
  min-width: 0;
}

.featured-metric {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.featured-metric > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-metric b,
.featured-metric strong,
.featured-metric .chip-value {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 400 clamp(26px, 2.6vw, 34px)/1 "Instrument Serif", Georgia, serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

.featured-metric-buyin,
.featured-metric-when {
  padding: 0 22px;
}

.featured-metric-buyin b,
.featured-metric-when b,
.featured-metric-buyin .chip-value,
.featured-metric-when .chip-value {
  color: #d7d2c8;
  font-size: clamp(26px, 2.6vw, 34px);
}

.featured-metric-buyin .chip-icon,
.featured-metric-gtd .chip-icon {
  width: 18px;
  height: 18px;
}

.featured-metric-gtd {
  flex: 1.25 1 0;
  align-items: center;
  justify-content: center;
  padding: 4px 24px;
  border: 0;
  text-align: center;
}

.featured-metric-gtd > span {
  color: var(--gold-soft);
  letter-spacing: 0.16em;
}

.featured-metric-gtd strong,
.featured-metric-gtd .chip-value {
  justify-content: center;
  color: var(--gold-soft);
  font-size: clamp(52px, 5.8vw, 76px);
  line-height: 0.9;
}

.featured-metric-gtd .chip-icon {
  width: 26px;
  height: 26px;
}

.featured-metric-when {
  align-items: flex-end;
  text-align: right;
}

.featured-metric-when > span {
  color: var(--muted);
  font: 13px/1.25 Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-nav {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.featured-arrow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(16, 14, 10, 0.72);
  color: var(--gold-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.featured-arrow:hover {
  background: rgba(16, 14, 10, 0.94);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.featured-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.featured-dots button {
  width: 24px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.featured-dots button.is-on {
  width: 38px;
  background: var(--gold);
}

.chip-icon {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 2px dashed rgba(24, 16, 3, 0.65);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-soft), #c9871f);
  box-shadow: 0 0 0 1px rgba(231, 182, 75, 0.18);
}

.chip-icon::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #49300a;
}

.chip-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.lobby > .day-strip {
  margin-top: 0;
}

.lobby-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.lobby-head h1 {
  margin: 3px 0 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
}

.schedule-note {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-tabs {
  display: flex;
  gap: 5px;
  margin-top: 22px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow-x: auto;
}

.schedule-tabs button {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 600 11px Manrope, sans-serif;
  cursor: pointer;
}

.schedule-tabs .events-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 8px;
  color: var(--gold-soft);
  font: 700 11px Manrope, sans-serif;
  text-decoration: none;
}

.schedule-tabs .events-link:hover {
  background: rgba(231, 182, 75, 0.08);
}

.schedule-tabs button.is-on {
  color: #171005;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
}

.search {
  width: min(360px, 100%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
}

.search > span {
  color: var(--muted);
  font-size: 20px;
}

.search input,
.view-toggle button,
.filters button {
  color: var(--ink);
  font: inherit;
}

.search input {
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  border: 0;
  background: transparent;
  outline: none;
}

.search:focus-within {
  border-color: var(--line-gold);
}

.search kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 9px Manrope, sans-serif;
}

.day-strip {
  display: flex;
  gap: 6px;
  margin: 23px 0 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-btn {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font: 600 11px Manrope, sans-serif;
  cursor: pointer;
}

.day-btn span {
  display: block;
  color: inherit;
  margin-top: 2px;
  font-size: 9px;
  opacity: 0.65;
}

.day-btn.is-on {
  color: #1b1304;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  border-color: transparent;
}

.status-filters {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-filters button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 600 10px Manrope, sans-serif;
  cursor: pointer;
}

.status-filters i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.status-filters button[data-phase="upcoming"] i {
  background: var(--gold);
}

.status-filters button[data-phase="late"] i {
  background: var(--green);
  box-shadow: 0 0 8px rgba(103, 212, 166, 0.5);
}

.status-filters button[data-phase="finished"] i {
  background: #62656b;
}

.status-filters button.is-on {
  color: var(--ink);
  border-color: var(--line-gold);
  background: rgba(231, 182, 75, 0.08);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.left-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.finished-toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
  white-space: nowrap;
}

.finished-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 30px;
  height: 17px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle-track i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.finished-toggle input:checked + .toggle-track {
  border-color: var(--line-gold);
  background: rgba(231, 182, 75, 0.12);
}

.finished-toggle input:checked + .toggle-track i {
  transform: translateX(13px);
  background: var(--gold);
}

.filters {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none;
}

.filters button,
.view-toggle button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 11px;
  cursor: pointer;
}

.filters button.is-on,
.view-toggle button.is-on {
  color: var(--gold-soft);
  background: rgba(231, 182, 75, 0.1);
  border-color: var(--line-gold);
}

.right-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sort-select {
  position: relative;
}

.sort-select > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sort-select select {
  appearance: none;
  padding: 8px 31px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%238f9298'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--muted);
  font: 10px Manrope, sans-serif;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.settings-open {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--gold);
  cursor: pointer;
}

.banner {
  border: 1px solid rgba(226, 192, 122, 0.35);
  background: rgba(143, 107, 43, 0.16);
  color: #f3e3bf;
  border-radius: 14px;
  padding: 12px 16px;
}

.board {
  min-height: 240px;
}

.result-meta {
  margin: 18px 0 11px;
  color: var(--muted);
  font-size: 11px;
}

.result-meta strong {
  color: var(--ink);
}

.group-title {
  margin: 22px 0 10px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 15px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-gold);
  background: var(--panel-2);
}

.card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  top: -48px;
  background: radial-gradient(circle, rgba(231, 182, 75, 0.12), transparent 70%);
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.when {
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 600;
}

.status {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.status.live {
  color: #061b13;
  background: var(--green);
  border-color: transparent;
}

.status.late {
  color: #061b13;
  background: var(--green);
  border-color: transparent;
}

.status.finished {
  color: #a2a5aa;
  background: rgba(255, 255, 255, 0.05);
}

.card h3 {
  margin: 10px 0 7px;
  min-height: 42px;
  font-size: 18px;
  line-height: 1.25;
  font-family: "Instrument Serif", serif;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tags span {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.tags .value-tag {
  color: #1a1204;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  font-weight: 800;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.meta small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.overlay-hot {
  color: var(--green);
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  position: sticky;
  top: 0;
  background: #101218;
}

tr:hover td {
  background: rgba(226, 192, 122, 0.05);
}

.banner-info {
  border-color: rgba(126, 224, 200, 0.35);
  background: rgba(126, 224, 200, 0.1);
  color: #c8fff2;
}

.banner-warn {
  border-color: rgba(255, 180, 120, 0.4);
  background: rgba(120, 70, 20, 0.25);
  color: #ffe2c4;
}

.stat em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.stat-delta {
  margin-left: 6px;
  font-size: 14px;
  color: var(--teal);
  font-family: Manrope, sans-serif;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(12, 13, 18, 0.55);
}

.empty-state p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.empty-state small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

.reset-filters {
  margin-top: 18px;
  padding: 11px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: #171005;
  font: 800 12px Manrope, sans-serif;
  cursor: pointer;
}

.reset-filters:hover {
  filter: brightness(1.06);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.skeleton-card {
  height: 180px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.empty {
  color: var(--muted);
  padding: 48px 8px;
  text-align: center;
}

footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  gap: 12px;
}

.footer-mark {
  color: var(--gold);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 25px auto 0;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-arrow,
.page-number {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  font: 600 11px Manrope, sans-serif;
  cursor: pointer;
}

.page-arrow:hover,
.page-number:hover {
  color: var(--gold-soft);
  border-color: var(--line-gold);
}

.page-number.is-on {
  color: #171005;
  border-color: transparent;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
}

.page-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.page-ellipsis {
  width: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.page-summary {
  flex-basis: 100%;
  margin-top: 4px;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

.settings-dialog {
  width: min(430px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background: #111216;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
}

.settings-dialog::backdrop {
  background: rgba(2, 3, 5, 0.76);
  backdrop-filter: blur(7px);
}

.settings-dialog form {
  padding: 22px;
}

.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.settings-head h2 {
  margin: 4px 0 0;
  font: 400 32px "Instrument Serif", serif;
}

.settings-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.settings-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.settings-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0c0f;
  color: var(--ink);
  font: 12px Manrope, sans-serif;
  text-transform: none;
}

.settings-help {
  margin: 16px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.settings-save {
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: #171005;
  font: 800 11px Manrope, sans-serif;
  cursor: pointer;
}

.tournament-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background: #111216;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
}

.tournament-modal::backdrop {
  background: rgba(2, 3, 5, 0.76);
  backdrop-filter: blur(7px);
}

.tournament-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

.tournament-modal-close:hover {
  color: var(--ink);
  border-color: var(--line-gold);
}

.modal-when {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-right: 40px;
}

.tournament-modal h2 {
  margin: 10px 0 8px;
  padding-right: 40px;
  font: 400 28px "Instrument Serif", serif;
  line-height: 1.2;
}

.modal-details h3 {
  margin: 22px 0 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.modal-detail-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  min-width: 0;
}

.modal-detail-row span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-detail-row b {
  font-weight: 700;
  overflow-wrap: break-word;
}

@media (max-width: 520px) {
  .modal-detail-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(126, 224, 200, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-slides {
    transition: none;
  }
}

@media (max-width: 860px) {
  .featured-strip::after {
    font-size: 110px;
    top: -36px;
  }

  .featured-main-banner {
    display: grid;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas:
      "copy gtd"
      "buyin gtd"
      "when gtd";
    gap: 8px 12px;
    align-items: stretch;
    padding: 16px 16px 58px;
  }

  .featured-copy {
    grid-area: copy;
    flex: none;
    max-width: none;
    gap: 10px;
  }

  .featured-stats {
    display: contents;
    margin-left: 0;
  }

  .featured-title,
  .featured-main-copy h2 {
    font-size: clamp(20px, 5.6vw, 24px);
  }

  .featured-tags {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
  }

  .featured-tag {
    padding: 5px 10px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .featured-metric {
    flex: none;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .featured-metric-buyin,
  .featured-metric-when {
    padding: 0;
  }

  .featured-metric-buyin {
    grid-area: buyin;
    justify-content: center;
  }

  .featured-metric > span {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .featured-metric-buyin b,
  .featured-metric-when b,
  .featured-metric-buyin .chip-value,
  .featured-metric-when .chip-value {
    color: #d7d2c8;
    font-size: clamp(18px, 4.6vw, 22px);
  }

  .featured-metric-gtd {
    grid-area: gtd;
    min-height: 0;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
  }

  .featured-metric-gtd > span {
    letter-spacing: 0.14em;
    color: var(--gold-soft);
  }

  .featured-metric-gtd strong,
  .featured-metric-gtd .chip-value {
    justify-content: center;
    font-size: clamp(36px, 10vw, 48px);
  }

  .featured-metric-gtd .chip-icon {
    width: 20px;
    height: 20px;
  }

  .featured-metric-when {
    grid-area: when;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }

  .featured-metric-when > span {
    color: var(--muted);
    font: 11px/1.4 Manrope, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .featured-metric-when b,
  .featured-metric-when .chip-value {
    line-height: 1.15;
  }

  body {
    padding: 16px 16px 40px;
  }

  .hero {
    padding: 38px 0 24px;
  }

  .hero-card {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .left-controls {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .right-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  body {
    padding: 12px 12px 32px;
  }

  .top {
    padding-bottom: 13px;
  }

  .featured-strip {
    margin-top: 12px;
    border-radius: 14px;
  }

  .featured-main-banner {
    padding: 14px 14px 58px;
    gap: 8px 14px;
  }

  .featured-title,
  .featured-main-copy h2 {
    font-size: 20px;
  }

  .featured-metric-buyin b,
  .featured-metric-when b {
    font-size: 18px;
  }

  .featured-metric-gtd {
    padding: 0;
  }

  .featured-metric-gtd strong {
    font-size: clamp(34px, 11vw, 44px);
  }

  .header-events-link {
    font-size: 0;
  }

  .header-events-link::after {
    content: "★";
    font-size: 15px;
  }

  .timezone-control {
    padding: 6px 7px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-logo {
    width: 145px;
    height: auto;
  }

  .brand-copy b {
    font-size: 13px;
  }

  .sync {
    display: none;
  }

  #clock {
    font-size: 14px;
  }

  .hero {
    padding: 29px 2px 21px;
  }

  .hero-copy h1 {
    font-size: 43px;
    line-height: 0.98;
    max-width: 310px;
  }

  .lede {
    margin-top: 12px;
    font-size: 12px;
    max-width: 330px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .stat {
    min-width: 0;
    padding: 12px 14px;
  }

  .stat b {
    font-size: 17px;
  }

  .lobby {
    margin-top: 30px;
  }

  .lobby-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .search {
    width: 100%;
  }

  .search kbd,
  .view-toggle {
    display: none;
  }

  .day-strip {
    margin-right: -12px;
    margin-left: -12px;
    padding: 0 12px;
  }

  .schedule-tabs {
    width: 100%;
  }

  .schedule-tabs button {
    flex: 1 0 auto;
  }

  .day-btn {
    min-width: 72px;
    padding: 9px 10px;
  }

  .controls {
    padding: 10px 0;
  }

  .filters {
    width: calc(100vw - 24px);
    margin-right: -12px;
    padding-right: 12px;
  }

  .finished-toggle {
    padding: 2px 0;
  }

  .status-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .status-filters button {
    justify-content: center;
  }

  .sort-select,
  .sort-select select {
    width: 100%;
  }

  .right-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .view-toggle {
    display: none;
  }

  .pagination {
    gap: 5px;
  }

  .page-arrow,
  .page-number {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
  }

  .page-numbers {
    gap: 3px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .card h3 {
    min-height: 0;
    margin: 8px 0 6px;
    font-size: 18px;
  }

  .tags {
    margin-bottom: 9px;
  }

  .meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    font-size: 11px;
  }

  .meta > div:nth-child(3) {
    display: none;
  }

  .meta small {
    font-size: 8px;
  }

  .group-title {
    margin-top: 17px;
  }

  footer {
    flex-direction: column;
    gap: 7px;
  }
}
