:root {
  --bg-0: #050807;
  --bg-1: #09120f;
  --surface: #101815;
  --surface-soft: #151f1b;
  --text-main: #ecfff4;
  --text-dim: #9ab8a9;
  --accent: #3dff98;
  --accent-2: #00c96a;
  --line: #1f352b;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 900px at 85% -10%, rgba(61, 255, 152, 0.15), transparent 60%),
    radial-gradient(900px 700px at -10% 90%, rgba(0, 201, 106, 0.12), transparent 60%),
    linear-gradient(150deg, var(--bg-0), var(--bg-1));
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.bg-noise {
  position: fixed;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.8px, transparent 0.8px);
  background-size: 3px 3px;
}

.orb {
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  transition: transform 0.22s ease-out;
  will-change: transform;
}

.orb-a {
  background: #15ff87;
  top: -7rem;
  right: -4rem;
}

.orb-b {
  background: #00a357;
  bottom: -9rem;
  left: -4rem;
}

.page {
  width: min(94vw, 58rem);
  padding: 2.25rem 1rem 2rem;
  position: relative;
  z-index: 2;
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 30, 26, 0.86), rgba(10, 16, 13, 0.92));
  border-radius: 1.2rem;
  box-shadow: 0 20px 45px var(--shadow);
  backdrop-filter: blur(6px);
}

.profile {
  text-align: center;
  padding: 1.6rem 1.1rem 1.4rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 4.6rem;
  height: 4.6rem;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #032111;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  background: radial-gradient(circle at 30% 30%, #8dffca, var(--accent));
  box-shadow:
    0 0 0 6px rgba(61, 255, 152, 0.1),
    0 0 24px rgba(61, 255, 152, 0.35);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.2rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  border: 1px solid;
}

.status.is-live {
  color: #a8ffd0;
  background: rgba(14, 58, 35, 0.85);
  border-color: rgba(61, 255, 152, 0.7);
  box-shadow: 0 0 18px rgba(61, 255, 152, 0.3);
  animation: live-pulse 2.4s ease-in-out infinite;
}

.status.is-offline {
  color: #ffb6b6;
  background: rgba(58, 18, 18, 0.8);
  border-color: rgba(255, 87, 87, 0.6);
  box-shadow: 0 0 14px rgba(255, 87, 87, 0.22);
}

h1 {
  margin: 0.35rem 0;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
}

.tagline {
  margin: 0 auto;
  max-width: 30ch;
  color: var(--text-dim);
  line-height: 1.45;
  font-size: 0.96rem;
}

.mini-links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem;
}

.mini-icon-link {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #d8ffeb;
  border: 1px solid rgba(61, 255, 152, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 31, 24, 0.95), rgba(10, 17, 14, 0.95));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mini-icon-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.mini-icon-link:hover,
.mini-icon-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(61, 255, 152, 0.74);
  box-shadow: 0 0 0 1px rgba(61, 255, 152, 0.22), 0 0 14px rgba(61, 255, 152, 0.18);
}

.mini-icon-link:focus-visible {
  outline: 2px solid rgba(61, 255, 152, 0.65);
  outline-offset: 2px;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #d8ffeb;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(61, 255, 152, 0.42);
  border-radius: 999px;
  padding: 0.32rem 0.64rem;
  background: linear-gradient(180deg, rgba(16, 31, 24, 0.95), rgba(10, 17, 14, 0.95));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mini-link:hover,
.mini-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(61, 255, 152, 0.74);
  box-shadow: 0 0 0 1px rgba(61, 255, 152, 0.22), 0 0 14px rgba(61, 255, 152, 0.18);
}

.mini-link:focus-visible {
  outline: 2px solid rgba(61, 255, 152, 0.65);
  outline-offset: 2px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.schedule {
  height: 100%;
  padding: 1rem;
}

.schedule-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.schedule h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.time-toggle {
  border: 1px solid rgba(61, 255, 152, 0.35);
  background: linear-gradient(180deg, rgba(25, 44, 34, 0.95), rgba(11, 22, 17, 0.95));
  color: #d8ffeb;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38rem 0.65rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.18s ease;
  transform-origin: center;
}

.time-toggle:hover,
.time-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(61, 255, 152, 0.65);
  box-shadow: 0 0 0 1px rgba(61, 255, 152, 0.22), 0 0 16px rgba(61, 255, 152, 0.2);
}

.time-toggle:focus-visible {
  outline: 2px solid rgba(61, 255, 152, 0.65);
  outline-offset: 2px;
}

.time-toggle.is-switching {
  animation: toggle-swap 0.24s ease;
}

.schedule-local {
  margin: 0.5rem 0 0.8rem;
  color: #bfffdc;
  font-size: 0.83rem;
  line-height: 1.35;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.schedule-day {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.55rem 0.65rem;
  background: rgba(10, 18, 14, 0.75);
  display: grid;
  gap: 0.1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-day span {
  font-size: 0.84rem;
  color: var(--text-dim);
}

.schedule-day strong {
  font-size: 0.82rem;
}

.schedule-day.on {
  border-color: rgba(61, 255, 152, 0.35);
  background: linear-gradient(170deg, rgba(10, 30, 20, 0.9), rgba(8, 18, 14, 0.95));
}

.schedule-day.off strong {
  color: #d1ddd6;
}

.schedule-day:hover {
  transform: translateY(-1px);
  border-color: rgba(61, 255, 152, 0.32);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.clips {
  margin-top: 1rem;
  padding: 1rem;
}

.clips-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.clips h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.clips-link {
  color: #b8ffdb;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(61, 255, 152, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.clips-link:hover,
.clips-link:focus-visible {
  border-color: rgba(61, 255, 152, 0.62);
  box-shadow: 0 0 0 1px rgba(61, 255, 152, 0.2);
}

.clips-note {
  margin: 0.45rem 0 0.8rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.lore {
  margin-top: 1rem;
  padding: 1rem;
}

.lore-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lore h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.lore-top p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.lore-toggle {
  border: 1px solid rgba(61, 255, 152, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 31, 24, 0.95), rgba(10, 17, 14, 0.95));
  color: #d8ffeb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.34rem 0.62rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lore-toggle:hover,
.lore-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(61, 255, 152, 0.72);
  box-shadow: 0 0 0 1px rgba(61, 255, 152, 0.2);
}

.lore-toggle:focus-visible {
  outline: 2px solid rgba(61, 255, 152, 0.65);
  outline-offset: 2px;
}

.lore-float-zone {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

body.modal-open .lore-float-zone {
  display: none;
}

.lore-float {
  position: fixed;
  max-width: min(18rem, calc(50vw - min(47vw, 29rem) - 1rem));
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(61, 255, 152, 0.45);
  border-radius: 0.8rem;
  background: rgba(7, 16, 13, 0.92);
  color: #e8fff2;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  line-height: 1.35;
  animation: lore-float-in 0.28s ease;
}

.lore-float.left {
  left: auto;
  right: calc(50% + min(47vw, 29rem) + 0.5rem);
}

.lore-float.right {
  right: auto;
  left: calc(50% + min(47vw, 29rem) + 0.5rem);
}

.lore-float strong {
  color: #9ff7ca;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.clip-embed {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
  background: rgba(8, 12, 10, 0.92);
  position: relative;
  aspect-ratio: 16 / 9;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.clip-preview-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.clip-embed.is-restoring .clip-preview-frame {
  opacity: 0.02;
}

.clip-expand {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #d8ffeb;
  border-radius: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.clip-expand:hover,
.clip-expand:focus-visible {
  background: linear-gradient(180deg, rgba(4, 9, 7, 0.1), rgba(4, 9, 7, 0.52));
}

.clip-expand:active {
  opacity: 0.9;
}

.clip-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.clip-modal.open {
  display: block;
}

.clip-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 5, 0.72);
}

.clip-modal-shell {
  position: fixed;
  z-index: 41;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(95vw, 78rem);
}

.clip-modal-close {
  margin-left: auto;
  margin-bottom: 0.5rem;
  display: block;
  border: 1px solid rgba(61, 255, 152, 0.52);
  background: rgba(7, 18, 14, 0.86);
  color: #d8ffeb;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.36rem 0.68rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.clip-modal-close:hover,
.clip-modal-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(61, 255, 152, 0.75);
  box-shadow: 0 0 0 1px rgba(61, 255, 152, 0.2), 0 0 14px rgba(61, 255, 152, 0.2);
}

.clip-modal-player {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: #030706;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
}

.clip-modal-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.link-button {
  --mx: 0px;
  --my: 0px;
  --lift: 0px;
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  text-decoration: none;
  color: var(--text-main);
  background: linear-gradient(170deg, var(--surface-soft), var(--surface));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: translate3d(var(--mx), calc(var(--my) + var(--lift)), 0);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
  will-change: transform;
}

.donate-link {
  margin-top: auto;
}

.link-button span {
  font-weight: 700;
  font-size: 1.05rem;
}

.link-button small {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.link-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(61, 255, 152, 0.14), transparent 35%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.link-button:hover,
.link-button:focus-visible {
  --lift: -2px;
  border-color: rgba(61, 255, 152, 0.55);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(61, 255, 152, 0.25),
    0 0 22px rgba(61, 255, 152, 0.18);
}

.link-button:active {
  --lift: 0px;
  transform: translate3d(var(--mx), var(--my), 0) scale(0.992);
  filter: saturate(1.08);
}

.link-button:hover::after,
.link-button:focus-visible::after {
  opacity: 1;
}

.link-button:focus-visible {
  outline: 2px solid rgba(61, 255, 152, 0.65);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 16px rgba(61, 255, 152, 0.24);
  }

  50% {
    box-shadow: 0 0 24px rgba(61, 255, 152, 0.42);
  }
}

@keyframes toggle-swap {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(-1px) scale(0.96);
    opacity: 0.85;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes lore-float-in {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .link-button,
  .time-toggle,
  .schedule-day,
  .reveal,
  .reveal.visible,
  .status.is-live {
    animation: none !important;
    transition: none !important;
  }

  .link-button {
    transform: none;
  }
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .clips-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page {
    width: min(96vw, 34rem);
    padding-top: 1.3rem;
  }

  .links {
    min-height: auto;
  }

  .schedule {
    height: auto;
  }

  .profile {
    padding: 1.4rem 0.9rem 1.2rem;
  }

  .link-button {
    padding: 0.9rem 0.9rem;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .lore-float {
    max-width: 42vw;
    font-size: 0.78rem;
  }

}
