:root {
  --bg: #05070C;
  --surface: #0D111C;
  --line: #1D2537;
  --blue: #4DA8FF;
  --blue-dim: #2B6FCC;
  --blue-soft: #A8C7FA;
  --red: #FF4D5E;
  --text: #E7EEFC;
  --text-mute: #66738F;
  --text-mute2: #45526B;
  --discord: #5865F2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(900px circle at 50% 0%, rgba(77, 168, 255, 0.10), transparent 60%);
}

#loadScreen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .5s ease, visibility .5s ease;
}

#loadScreen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.load-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0;
  animation: loadFadeIn .5s ease forwards;
}

.load-bar {
  width: 160px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.load-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--blue);
  animation: loadFill 1.1s ease forwards;
}

@keyframes loadFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes loadFill {
  to {
    width: 100%;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 6vw;
  background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

nav a {
  font-size: 0.88rem;
  color: var(--text-mute);
  transition: color .2s;
  position: relative;
  letter-spacing: 0.02em;
}

nav a:hover {
  color: var(--text);
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width .25s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color .2s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--blue-dim);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#auth-nav-item {
  display: flex;
  align-items: center;
}

#auth-placeholder {
  display: flex;
  align-items: center;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
  border: 1px solid var(--line);
}

.auth-username {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-rank {
  color: var(--text-mute2);
  font-size: 0.7rem;
  margin-left: 4px;
}

.auth-logout {
  color: var(--text-mute);
  font-size: 0.75rem;
  margin-left: 8px;
  transition: color .2s;
}

.auth-logout:hover {
  color: var(--red);
}

.auth-login-btn {
  color: var(--blue-soft);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--discord);
  padding: 6px 14px;
  border-radius: 6px;
  color: #fff;
  transition: background .2s, transform .2s;
}

.auth-login-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.auth-login-btn::after {
  display: none;
}

.auth-staff {
  color: var(--discord) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  margin-left: 12px !important;
  padding: 4px 12px !important;
  border: 1px solid var(--discord) !important;
  border-radius: 4px !important;
  transition: all .2s ease !important;
}

.auth-staff:hover {
  background: var(--discord) !important;
  color: #fff !important;
}

.auth-staff::after {
  display: none !important;
}

#admin-panel {
  border-top: 2px solid var(--discord) !important;
  background: rgba(88, 101, 242, 0.03);
}

#admin-panel .section-head p {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin-top: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color .2s, transform .2s;
}

.admin-card:hover {
  border-color: var(--discord);
  transform: translateY(-2px);
}

.admin-card h3 {
  color: var(--blue-soft);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.admin-card p {
  color: var(--text-mute);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

#admin-panel select,
#admin-panel input,
#admin-panel textarea {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}

#admin-panel select:focus,
#admin-panel input:focus,
#admin-panel textarea:focus {
  border-color: var(--discord);
}

#admin-panel select option {
  background: var(--bg);
  color: var(--text);
}

#admin-panel textarea {
  resize: vertical;
  font-family: inherit;
}

.admin-card .btn {
  font-size: 0.8rem;
  padding: 8px 16px;
  width: 100%;
  justify-content: center;
}

.admin-card .btn-ghost {
  border-color: var(--line);
}

.admin-card .btn-ghost:hover {
  border-color: var(--discord);
  color: var(--blue-soft);
}

#userList {
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--text-mute);
}

#userList::-webkit-scrollbar {
  width: 4px;
}

#userList::-webkit-scrollbar-track {
  background: var(--bg);
}

#userList::-webkit-scrollbar-thumb {
  background: var(--discord);
  border-radius: 4px;
}

#userList .user-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}

#userList .user-item:last-child {
  border-bottom: none;
}

#userList .user-rank {
  color: var(--text-mute2);
  font-size: 0.7rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-box {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.stat-box .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-soft);
}

.stat-box .label {
  font-size: 0.7rem;
  color: var(--text-mute);
}

#currentStreamStatus {
  color: var(--text);
  font-weight: 500;
}

#currentStreamStatus.live {
  color: var(--red);
}

#discordMessageResult {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-mute);
  min-height: 20px;
}

#discordMessageResult.success {
  color: var(--blue-soft);
}

#discordMessageResult.error {
  color: var(--red);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-mute2);
  display: inline-block;
}

.dot.live {
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 77, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 94, 0);
  }
}

.hero {
  padding: 14vh 6vw 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-mute);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.03;
}

.hero p {
  margin-top: 22px;
  max-width: 480px;
  color: var(--text-mute);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--blue);
  color: #04101f;
}

.btn-primary:hover {
  background: #6cb8ff;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-soft);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  border: none;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.btn-discord svg {
  display: inline-block;
  vertical-align: middle;
}

.countdown-card {
  margin: 56px auto 0;
  max-width: 480px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

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

.countdown-row:last-child {
  border-bottom: none;
}

.countdown-label {
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.countdown-value {
  font-size: 1rem;
  color: var(--blue-soft);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.countdown-value.big {
  font-size: 1.4rem;
  color: var(--text);
}

.wave-wrap {
  margin-top: 18px;
  height: 44px;
}

.wave-line {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(77, 168, 255, 0.5));
}

@media (max-width: 760px) {
  .hero {
    padding: 10vh 6vw 6vh;
  }
  .countdown-card {
    margin-top: 40px;
    padding: 20px;
  }
  .countdown-value.big {
    font-size: 1.2rem;
  }
}

section {
  padding: 9vh 6vw;
  border-top: 1px solid var(--line);
  text-align: center;
}

.section-head {
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: 1.9rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

.tblock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 8px;
  text-align: center;
  position: relative;
}

.tblock.off {
  opacity: 0.32;
}

.tblock.today {
  border-color: var(--blue-dim);
}

.tblock .d {
  font-size: 0.7rem;
  color: var(--text-mute);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.tblock.on .d {
  color: var(--blue-soft);
}

.tblock .t {
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

.tblock .now-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(77, 168, 255, 0.6);
  animation: pulse2 2s infinite;
}

@keyframes pulse2 {
  0% {
    box-shadow: 0 0 0 0 rgba(77, 168, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(77, 168, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(77, 168, 255, 0);
  }
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-content p {
  color: var(--text-mute);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-content--split {
  max-width: 980px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: stretch;
}

#about.in-view {
  transform: none;
}

.about-photo-track {
  grid-row: 1;
  grid-column: 1;
  height: 100%;
}

.about-photo {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.about-text {
  grid-row: 1;
  grid-column: 2;
  text-align: left;
}

.about-content--split .stat-row {
  grid-row: 2;
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .about-content--split {
    grid-template-columns: 1fr;
  }
  .about-photo-track {
    grid-row: 1;
    grid-column: 1;
    height: auto;
  }
  .about-photo {
    height: auto;
    max-width: 320px;
    margin: 0 auto;
  }
  .about-photo img {
    max-height: none;
  }
  .about-text {
    grid-row: 2;
    grid-column: 1;
    text-align: center;
  }
  .about-content--split .stat-row {
    grid-row: 3;
  }
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat .n {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--blue-soft);
}

.stat .l {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-top: 4px;
}

.module-row {
  display: flex;
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
}

.module {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  transition: border-color .2s;
}

.module:hover {
  border-color: var(--blue-dim);
}

.module h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.module p {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-mute);
  transition: color .2s, border-color .2s, transform .2s;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon:hover {
  color: var(--blue-soft);
  border-color: var(--blue-dim);
  transform: translateY(-2px);
}

.discord-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 20px;
}

.discord-stat .n {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.discord-stat .l {
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-top: 2px;
}

.support-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
  justify-content: center;
}

.support-card {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  transition: border-color .2s, transform .2s;
  display: block;
  text-align: center;
}

.support-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.support-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.support-card p {
  font-size: 0.85rem;
  color: var(--text-mute);
}

.business-intro {
  max-width: 620px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--text-mute);
  font-size: 1rem;
}

.business-row {
  max-width: 900px;
  flex-wrap: wrap;
}

.business-card {
  min-width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.business-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--blue-soft);
  margin-bottom: 16px;
}

.business-icon svg {
  width: 20px;
  height: 20px;
}

.business-card h3 {
  text-align: center;
}

.business-card p {
  text-align: center;
}

.business-card .btn {
  margin-top: auto;
  font-size: 0.88rem;
  word-break: break-word;
}

@media (max-width: 760px) {
  .business-row {
    flex-direction: column;
  }
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item[open] {
  border-color: var(--blue-dim);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--blue);
}

.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item summary .plus::before {
  width: 14px;
  height: 2px;
}

.faq-item summary .plus::after {
  width: 2px;
  height: 14px;
  transition: transform .2s ease;
}

.faq-item[open] summary .plus::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.faq-item .faq-a {
  padding: 0 22px 20px;
  color: var(--text-mute);
  font-size: 0.92rem;
  line-height: 1.6;
}

footer {
  padding: 40px 6vw 60px;
  text-align: center;
  color: var(--text-mute2);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

footer div {
  margin-bottom: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  header {
    padding: 14px 5vw;
  }
  nav {
    flex-wrap: wrap;
    row-gap: 14px;
    position: relative;
  }
  nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }
  #navMenu {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 6px 5vw 14px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }
  #navMenu.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
  #navMenu li {
    width: 100%;
  }
  #navMenu a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }
  #navMenu li:last-child a {
    border-bottom: none;
  }
  #navMenu a::after {
    display: none;
  }

  #auth-nav-item {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }
  .auth-rank {
    display: none;
  }
  .auth-username {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .auth-staff {
    margin-left: 6px !important;
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
  }

  .module-row {
    flex-direction: column;
  }

  .timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .tblock {
    flex: 0 1 calc(25% - 7.5px);
    padding: 14px 4px;
  }
  .tblock .t {
    font-size: 0.78rem;
  }

  .stat-row {
    gap: 32px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

html {
  scrollbar-color: var(--blue-dim) var(--bg);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-dim);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}
[hidden] {
  display: none !important;
}

.timeline {
  max-width: 900px;
}

.tblock {
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  padding: 18px 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s, background-color .2s, opacity .2s, box-shadow .25s;
}

.tblock:hover {
  transform: translateY(-3px);
  border-color: var(--blue-dim);
}

.tblock.off:hover,
.tblock.off.selected {
  opacity: 0.6;
}

.tblock:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.tblock.selected {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(77, 168, 255, 0.10), rgba(77, 168, 255, 0.02)), var(--surface);
  box-shadow: 0 8px 24px -12px rgba(77, 168, 255, 0.55);
}

.tblock .d {
  margin-bottom: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.tblock .date {
  font-size: 0.68rem;
  color: var(--text-mute2);
  margin-bottom: 10px;
}

.tblock .g {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tblock .badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--blue);
  color: #05101f;
}

.tblock.live .badge {
  background: var(--red);
  color: #fff;
  animation: badgeGlow 1.6s ease-in-out infinite;
}

.tblock.next {
  border-color: var(--blue-dim);
}

.tblock.live {
  border-color: var(--red);
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 77, 94, 0); }
}

.tdetail {
  max-width: 900px;
  margin: 18px auto 0;
  min-height: 150px;
}

.tdetail-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  text-align: left;
}

.tdetail-inner.swap {
  animation: detailIn .35s cubic-bezier(.2, .8, .2, 1);
}

@keyframes detailIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.tdetail-date {
  font-size: 0.78rem;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tdetail-status {
  font-size: 0.68rem;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--blue-dim);
  color: var(--blue-soft);
}

.tdetail-status.live {
  border-color: var(--red);
  color: var(--red);
}

.tdetail-status.past {
  border-color: var(--line);
  color: var(--text-mute2);
}

.tdetail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 6px 0 16px;
  overflow-wrap: anywhere;
}

.tdetail-inner.off .tdetail-title {
  font-size: 1.05rem;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.tdetail-sub {
  font-size: 0.82rem;
  color: var(--text-mute2);
}

.tdetail-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tdetail-facts div {
  border-left: 2px solid var(--line);
  padding-left: 12px;
  min-width: 0;
}

.tdetail-facts span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tdetail-facts b {
  display: block;
  font-weight: 600;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.tdetail-inner .btn {
  margin-top: 18px;
}

.hero.hero-anim > * {
  animation: heroIn .8s cubic-bezier(.2, .8, .2, 1) both;
}

.hero.hero-anim > *:nth-child(1) { animation-delay: .00s; }
.hero.hero-anim > *:nth-child(2) { animation-delay: .08s; }
.hero.hero-anim > *:nth-child(3) { animation-delay: .16s; }
.hero.hero-anim > *:nth-child(4) { animation-delay: .24s; }
.hero.hero-anim > *:nth-child(5) { animation-delay: .34s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.reveal .stagger > * {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in-view .stagger > * {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .6s cubic-bezier(.2, .8, .2, 1), border-color .2s, background-color .2s, box-shadow .3s, color .2s;
  transition-delay: calc(var(--i, 0) * 70ms + 120ms), calc(var(--i, 0) * 70ms + 120ms), 0s, 0s, 0s, 0s;
}

.reveal.in-view .stagger > *:hover {
  transition-delay: 0s;
}

.reveal.in-view .timeline.stagger > .tblock:hover {
  transform: translateY(-4px);
}

.reveal.in-view .social-icons.stagger > .social-icon:hover {
  transform: translateY(-2px);
}

.reveal.in-view .support-row.stagger > .support-card:hover {
  transform: translateY(-3px);
}

.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue));
  transform: translateX(-50%) scaleX(0);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1) .25s;
}

.reveal.in-view .section-head h2::after,
#home .section-head h2::after {
  transform: translateX(-50%) scaleX(1);
}

.module,
.business-card {
  transition: border-color .2s, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}

.module:hover,
.business-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -18px rgba(77, 168, 255, 0.45);
}

.reveal.in-view .module-row.stagger > .module:hover,
.reveal.in-view .business-row.stagger > .business-card:hover {
  transform: translateY(-3px);
}

.support-card:hover {
  box-shadow: 0 14px 34px -18px rgba(77, 168, 255, 0.5);
}

.btn:active {
  transform: translateY(1px) scale(.98);
}

.stat .n,
.discord-stat .n {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .tblock {
    flex: 0 1 calc(25% - 7.5px);
    padding: 16px 4px 12px;
  }

  .tblock .g {
    font-size: 0.64rem;
    max-width: 100%;
  }

  .tblock .badge {
    font-size: 0.52rem;
    padding: 2px 6px;
  }

  .tdetail-inner {
    padding: 20px;
  }

  .tdetail-facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
  }

}

.tblock.cont {
  background: repeating-linear-gradient(135deg, rgba(77, 168, 255, 0.06) 0 6px, transparent 6px 12px), var(--surface);
}

.tblock.cont .t {
  font-size: 0.75rem;
}

.tblock.cont.selected {
  background: linear-gradient(180deg, rgba(77, 168, 255, 0.10), rgba(77, 168, 255, 0.02)), var(--surface);
}

.tdetail-kicker {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.tdetail-inner.is-live {
  border-color: rgba(255, 77, 94, 0.45);
}

.tdetail-inner.is-live .tdetail-kicker {
  color: var(--red);
}

.tdetail-back {
  margin-left: auto;
  font: inherit;
  font-size: 0.74rem;
  color: var(--blue-soft);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.tdetail-back:hover {
  color: var(--blue);
  text-decoration: underline;
}
