@font-face {
  font-family: 'RobotoBlack';
  src: url('Roboto-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {

  --bg-base: #1A0A3C;
  --bg-grad-1: #4A4A82;
  --bg-grad-2: #2D2060;
  --bg-grad-3: #1A0A3C;

  --primary: #D0BCFF;
  --on-primary: #381E72;
  --primary-container: #4F378B;
  --on-primary-container: #EADDFF;
  --secondary: #CCC2DC;
  --on-secondary: #332D41;
  --secondary-container: #4A4458;
  --on-secondary-container: #E8DEF8;
  --tertiary: #EFB8C8;
  --on-tertiary: #492532;
  --tertiary-container: #633B48;
  --on-tertiary-container: #FFD8E4;
  --error: #F2B8B5;
  --on-error: #601410;
  --surface: #141218;
  --on-surface: #E6E0E9;
  --surface-variant: #49454F;
  --on-surface-variant: #CAC4D0;
  --outline: #938F99;
  --outline-variant: #49454F;
  --shadow: #000000;

  --glow: #C8C2FF;

  --title-grad-1: #ECEBFF;
  --title-grad-2: #C8C2FF;

  --st-up: #5FE3A1;
  --st-up-glow: rgba(95, 227, 161, 0.45);
  --st-degraded: #FFC46B;
  --st-degraded-glow: rgba(255, 196, 107, 0.45);
  --st-down: #FF7A8A;
  --st-down-glow: rgba(255, 122, 138, 0.45);
  --st-none: rgba(202, 196, 208, 0.16);

  --content-max-width: 600px;

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-base);
  scroll-behavior: smooth;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  line-height: 1.25;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 50%, var(--bg-grad-3) 100%);
  background-attachment: fixed;
  position: relative;
}
#animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--bg-base);
  pointer-events: none;
}

#animated-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: none;
}
.app-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background-color 450ms cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 450ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-backdrop-filter 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-bar.scrolled {
  background: rgba(29, 22, 52, 0.45);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.app-bar-inner {
  width: 100%;
  max-width: var(--content-max-width);
  padding: 0 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.app-bar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-bar-center.hidden {
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
}

.app-bar-center img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.app-bar-center-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--on-surface);
  margin: 0;
}

.app-bar-edges {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.icon-btn {
  background: none;
  border: none;
  color: var(--on-surface);
  text-decoration: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 24px;
  line-height: 1;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.20), rgba(239, 184, 200, 0.15));
  border: 1.5px solid rgba(208, 188, 255, 0.35);
  padding-left: 4px;
  padding-right: 11px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 4px rgba(208, 188, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  user-select: none;
}

.lang-pill:hover {
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.28), rgba(239, 184, 200, 0.22));
}

.lang-pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(208, 188, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.lang-pill-globe {
  width: 100%;
  height: 100%;
  background-color: var(--on-surface);
  -webkit-mask: url('/images/globe.svg') center / contain no-repeat;
  mask: url('/images/globe.svg') center / contain no-repeat;
}

.lang-pill-icon.has-flag .lang-pill-globe {
  display: none;
}

.lang-pill-flag {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  user-select: none;
  -webkit-user-drag: none;
}

.lang-pill-icon.has-flag::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(230, 224, 233, 0.20);
  pointer-events: none;
}

.lang-pill-code {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: 0.5px;
  margin-left: 6px;
  line-height: 1;
}
.lang-modal {
  --lang-in: 120ms;
  --lang-out: cubic-bezier(0, 0, 0.58, 1);
  --lang-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --lang-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --lang-fade: 300ms;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 8, 28, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--lang-fade) var(--lang-out), visibility 0s linear var(--lang-fade);
}

.lang-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--lang-fade) var(--lang-out), visibility 0s linear 0s;
}

.lang-modal__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  max-height: min(88vh, 780px);
  border-radius: 28px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(208, 188, 255, 0.16), rgba(208, 188, 255, 0) 62%),
    linear-gradient(160deg, rgba(74, 74, 130, 0.34), rgba(45, 32, 96, 0.34)),
    rgba(26, 10, 60, 0.46);
  border: 1px solid rgba(208, 188, 255, 0.22);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition: transform 405ms var(--lang-out-cubic), opacity 300ms var(--lang-out);
}

.lang-modal.open .lang-modal__sheet {
  transform: none;
  opacity: 1;
}

.lang-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(208, 188, 255, 0.10);
  color: var(--on-surface);
  transition: background 200ms var(--lang-out), transform 120ms var(--lang-out);
  -webkit-tap-highlight-color: transparent;
}

.lang-modal__close:hover { background: rgba(208, 188, 255, 0.20); }
.lang-modal__close:active { transform: scale(0.94); }
.lang-modal__close .material-icons { font-size: 20px; color: inherit; }

.lang-modal__close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lang-modal__head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px 0;
}

.lang-modal__logo {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.lang-modal__logo::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(26px);
  opacity: 0.18;
  animation: glowPulse 3.5s ease-in-out infinite;
}

.lang-modal__logo img {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.lang-modal__title {
  margin-top: 14px;
  max-width: 100%;
  font-family: 'RobotoBlack', sans-serif;
  font-size: clamp(24px, 7.4vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, var(--title-grad-1), var(--title-grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.26));
}

.lang-modal__prompt {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.3px;
  color: rgba(230, 224, 233, 0.7);
}

.lang-modal__rule {
  width: 100%;
  height: 2px;
  margin-top: 16px;
  border-radius: 1px;
  background: #433669;
}

.lang-modal__list {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
  scrollbar-gutter: stable both-edges;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@supports not selector(::-webkit-scrollbar) {
  .lang-modal__list {
    scrollbar-width: thin;
    scrollbar-color: rgba(208, 188, 255, 0.6) rgba(230, 224, 233, 0.08);
  }

  @media (hover: none) {
    .lang-modal__list { scrollbar-width: none; }
  }
}

.lang-modal__list::-webkit-scrollbar {
  width: 10px;
}

.lang-modal__list::-webkit-scrollbar-track {
  background: rgba(230, 224, 233, 0.08);
  border: 4px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

.lang-modal__list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(208, 188, 255, 0.85), rgba(239, 184, 200, 0.65));
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

.lang-modal__list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(208, 188, 255, 1), rgba(239, 184, 200, 0.85));
  background-clip: padding-box;
}

.lang-card {
  --lang-card-in: calc(var(--lang-in) + 315ms + min(var(--i, 0) * 72ms, 225ms));
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  flex: 0 0 auto;
  padding: 16px 18px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--on-surface);
  background: rgba(20, 18, 24, 0.55);
  box-shadow: inset 0 0 0 1px rgba(208, 188, 255, 0.18), 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: background 200ms var(--lang-out), box-shadow 200ms var(--lang-out), transform 120ms var(--lang-out);
  -webkit-tap-highlight-color: transparent;
}

.lang-card:hover { background: rgba(208, 188, 255, 0.10); }
.lang-card:active { transform: scale(0.985); }

.lang-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lang-card.is-active {
  background: rgba(208, 188, 255, 0.12);
  box-shadow: inset 0 0 0 2px rgba(208, 188, 255, 0.70), 0 6px 18px rgba(0, 0, 0, 0.22);
}

.lang-card__check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(230, 224, 233, 0.35);
  transition: background 200ms var(--lang-out), box-shadow 200ms var(--lang-out);
}

.lang-card.is-active .lang-card__check {
  background: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.lang-card__check .material-icons {
  font-size: 16px;
  color: var(--on-primary);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms var(--lang-out), transform 200ms var(--lang-out);
}

.lang-card.is-active .lang-card__check .material-icons {
  opacity: 1;
  transform: none;
}

.lang-card__labels {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
}

.lang-card__name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.lang-card.is-active .lang-card__name { font-weight: 700; }

.lang-card__tail {
  opacity: 0.6;
  font-size: 0.8em;
}

.lang-card__sub {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(230, 224, 233, 0.6);
}

.lang-modal__foot {
  position: relative;
  flex: 0 0 auto;
  padding: 0 20px 20px;
}

.lang-modal__cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0;
  color: rgba(208, 188, 255, 0.85);
  pointer-events: none;
  transition: opacity 350ms var(--lang-out);
}

.lang-modal__cue.is-hidden { opacity: 0; }

.lang-modal__cue .material-icons {
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  animation: shots-hint-bounce 1.7s ease-in-out infinite;
}

.lang-modal__cue .material-icons:nth-child(2) {
  margin-top: -13px;
  opacity: 0.55;
  animation-delay: 0.16s;
}

.lang-modal__foot .lang-modal__rule {
  margin-top: 0;
  margin-bottom: 16px;
}

.lang-modal__done {
  width: 100%;
  padding: 15px 16px;
  border: none;
  border-radius: 14px;
  background: rgba(208, 188, 255, 0.18);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.25;
  cursor: pointer;
  transition: background 200ms var(--lang-out), transform 120ms var(--lang-out);
  -webkit-tap-highlight-color: transparent;
}

.lang-modal__done:hover { background: rgba(208, 188, 255, 0.26); }
.lang-modal__done:active { transform: scale(0.99); }

.lang-modal__done:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lang-modal.open .lang-modal__logo {
  --hero-pop: 0.5;
  animation:
    heroFadeIn 225ms var(--lang-out) var(--lang-in) backwards,
    heroPopIn 315ms var(--lang-out-back) var(--lang-in) backwards;
}

.lang-modal.open .lang-modal__title {
  --hero-pop: 0.7;
  animation:
    heroFadeIn 360ms var(--lang-out) calc(var(--lang-in) + 135ms) backwards,
    heroPopIn 405ms var(--lang-out-back) calc(var(--lang-in) + 135ms) backwards;
}

.lang-modal.open .lang-modal__prompt {
  --hero-rise: 12px;
  animation:
    heroFadeIn 360ms var(--lang-out) calc(var(--lang-in) + 135ms) backwards,
    heroRiseIn 360ms var(--lang-out-cubic) calc(var(--lang-in) + 135ms) backwards;
}

.lang-modal.open .lang-modal__head .lang-modal__rule {
  animation:
    heroFadeIn 360ms var(--lang-out) calc(var(--lang-in) + 225ms) backwards,
    langRuleIn 360ms var(--lang-out-cubic) calc(var(--lang-in) + 225ms) backwards;
}

.lang-modal.open .lang-card {
  --hero-rise: 22px;
  animation:
    heroFadeIn 315ms var(--lang-out) var(--lang-card-in) backwards,
    heroRiseIn 315ms var(--lang-out-cubic) var(--lang-card-in) backwards;
}

.lang-modal.open .lang-modal__close {
  animation: heroFadeIn 360ms var(--lang-out) calc(var(--lang-in) + 540ms) backwards;
}

.lang-modal.open .lang-modal__foot {
  --hero-rise: 20px;
  animation:
    heroFadeIn 360ms var(--lang-out) calc(var(--lang-in) + 540ms) backwards,
    heroRiseIn 360ms var(--lang-out-cubic) calc(var(--lang-in) + 540ms) backwards;
}

.lang-modal.open .lang-modal__title.is-swapping,
.lang-modal.open .lang-modal__prompt.is-swapping,
.lang-modal.open .lang-modal__done.is-swapping {
  --hero-rise: 4px;
  animation:
    heroFadeIn 240ms var(--lang-out),
    heroRiseIn 240ms var(--lang-out-cubic);
}

@keyframes langRuleIn {
  from { transform: scaleX(0.4); }
  to   { transform: none; }
}

@keyframes langVeilOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes langVeilIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

html.lang-modal-open .lang-veilable {
  animation: langVeilOut 300ms cubic-bezier(0, 0, 0.58, 1) forwards;
}

html.lang-modal-closing .lang-veilable {
  animation: langVeilIn 300ms cubic-bezier(0, 0, 0.58, 1);
}

@media (hover: none) {
  .lang-modal__list::-webkit-scrollbar { width: 0; height: 0; }
  .lang-modal__list::-webkit-scrollbar-track,
  .lang-modal__list::-webkit-scrollbar-thumb { background: none; }
  .lang-card:hover { background: rgba(20, 18, 24, 0.55); }
  .lang-card.is-active:hover { background: rgba(208, 188, 255, 0.12); }
}

@media (max-width: 560px) {
  .lang-modal {
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .lang-modal.open {
    transition: opacity 0s linear 0s, visibility 0s linear 0s;
  }
  .lang-modal__sheet {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: none;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    transform: none;
    opacity: 1;
    transition: none;
  }
  .lang-modal__close { top: calc(10px + env(safe-area-inset-top)); }
  .lang-modal__rule { background: #584879; }
  .lang-modal__head { padding: 26px 16px 0; }
  .lang-modal__list { padding: 14px 16px; }
  .lang-modal__foot { padding: 0 16px 18px; }
}


@supports (height: 100svh) {
  @media (max-width: 560px) {
    .lang-modal__sheet { height: 100svh; }
  }
}

@media (max-height: 640px) {
  .lang-modal__head { padding-top: 18px; }
  .lang-modal__logo img { width: 56px; height: 56px; border-radius: 14px; }
  .lang-modal__title { margin-top: 10px; font-size: clamp(22px, 6vw, 28px); }
  .lang-modal__prompt { margin-top: 10px; font-size: 14px; }
  .lang-modal__rule { margin-top: 12px; }
  .lang-modal__list { padding-top: 12px; }
}

@media (max-height: 560px) {
  .lang-modal__logo { display: none; }
  .lang-modal__title { margin-top: 0; }
}

@media (max-height: 560px) and (min-width: 561px) {
  .lang-modal { padding: 12px; }
  .lang-modal__sheet { max-height: 100%; }
}

@media (max-height: 420px) and (min-width: 561px) {
  .lang-modal__head { padding-top: 14px; }
  .lang-modal__title { display: none; }
  .lang-modal__prompt { margin-top: 0; }
  .lang-modal__rule { margin-top: 10px; }
  .lang-modal__list { padding-top: 10px; padding-bottom: 10px; }
  .lang-modal__foot { padding-bottom: 12px; }
  .lang-modal__foot .lang-modal__rule { margin-bottom: 10px; }
  .lang-modal__done { padding-top: 10px; padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-modal,
  .lang-modal.open,
  .lang-modal__sheet,
  .lang-modal__close,
  .lang-modal__done,
  .lang-modal__cue,
  .lang-card,
  .lang-card__check,
  .lang-card__check .material-icons {
    transition: none;
  }
  .lang-modal__logo::before,
  .lang-modal.open .lang-modal__logo,
  .lang-modal.open .lang-modal__title,
  .lang-modal.open .lang-modal__prompt,
  .lang-modal.open .lang-modal__head .lang-modal__rule,
  .lang-modal.open .lang-modal__close,
  .lang-modal.open .lang-modal__foot,
  .lang-modal.open .lang-card,
  .lang-modal.open .lang-modal__title.is-swapping,
  .lang-modal.open .lang-modal__prompt.is-swapping,
  .lang-modal.open .lang-modal__done.is-swapping,
  .lang-modal__cue .material-icons {
    animation: none;
  }
  .lang-modal__sheet { transform: none; }
  html.lang-modal-open .lang-veilable,
  html.lang-modal-closing .lang-veilable {
    animation-duration: 0.01ms;
  }
}

html.lang-modal-open,
html.drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
  scrollbar-gutter: stable;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: rgba(20, 18, 24, 0.95);
  z-index: 301;
  transform: translateX(-100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.drawer > * {
  flex-shrink: 0;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-header img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.drawer-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin: 0 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--on-surface);
  text-decoration: none;
  font-size: 16px;
  gap: 16px;
}

.drawer-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.drawer-item.selected {
  color: var(--primary);
  font-weight: 600;
  background: rgba(208, 188, 255, 0.12);
}

.drawer-item .material-icons {
  font-size: 24px;
}

.drawer-status {
  --dot: rgba(202, 196, 208, 0.32);
  --dot-glow: rgba(0, 0, 0, 0);
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.drawer-status::before,
.drawer-status::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.drawer-status::before {
  width: 27px;
  height: 27px;
  margin: -13.5px 0 0 -13.5px;
  background: var(--dot-glow);
  opacity: 0;
  transform: translateZ(0) scale(0.407);
}

.drawer-status::after {
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  background: var(--dot);
  box-shadow: 0 0 10px 1px var(--dot-glow);
}

.drawer-status[data-status="up"] {
  --dot: var(--st-up);
  --dot-glow: var(--st-up-glow);
}

.drawer-status[data-status="degraded"] {
  --dot: var(--st-degraded);
  --dot-glow: var(--st-degraded-glow);
}

.drawer-status[data-status="down"] {
  --dot: var(--st-down);
  --dot-glow: var(--st-down-glow);
}

.drawer-status[data-status="up"]::before,
.drawer-status[data-status="degraded"]::before,
.drawer-status[data-status="down"]::before {
  will-change: transform, opacity;
  animation: drawerStatusPulse 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

@keyframes drawerStatusPulse {
  0% { opacity: 1; transform: translateZ(0) scale(0.407); }
  70% { opacity: 0; transform: translateZ(0) scale(1); }
  100% { opacity: 0; transform: translateZ(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-status[data-status]::before {
    animation: none;
  }
}
.page-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.scroll-content {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
}

.content-column {
  width: 100%;
  max-width: var(--content-max-width);
}
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.logo-glow-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
}

.logo-glow-wrap::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(32px);
  z-index: -1;
  animation: glowPulse 3.5s ease-in-out infinite;
}

.logo-glow-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.10; }
  50% { opacity: 0.25; }
}

.app-title {
  font-family: 'RobotoBlack', sans-serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-align: center;
  margin-top: 16px;
  background: linear-gradient(180deg, var(--title-grad-1), var(--title-grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.26));
}

.app-subtitle {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(230, 224, 233, 0.7);
}
.hero-inner .logo-glow-wrap {
  --hero-pop: 0.5;
  animation:
    heroFadeIn 225ms cubic-bezier(0, 0, 0.58, 1) backwards,
    heroPopIn 315ms cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.hero-inner .app-title {
  --hero-pop: 0.7;
  animation:
    heroFadeIn 360ms cubic-bezier(0, 0, 0.58, 1) 135ms backwards,
    heroPopIn 405ms cubic-bezier(0.175, 0.885, 0.32, 1.275) 135ms backwards;
}

.hero-inner .app-subtitle {
  --hero-rise: 14px;
  animation:
    heroFadeIn 360ms cubic-bezier(0, 0, 0.58, 1) 315ms backwards,
    heroRiseIn 360ms cubic-bezier(0.215, 0.61, 0.355, 1) 315ms backwards;
}

.hero-inner .join-banner,
.hero-inner .promo-active-banner {
  animation:
    heroFadeIn 315ms cubic-bezier(0, 0, 0.58, 1) 450ms backwards,
    heroRiseIn 315ms cubic-bezier(0.215, 0.61, 0.355, 1) 450ms backwards;
}

.hero-inner .store-section {
  animation:
    heroFadeIn 315ms cubic-bezier(0, 0, 0.58, 1) 585ms backwards,
    heroRiseIn 315ms cubic-bezier(0.215, 0.61, 0.355, 1) 585ms backwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes heroPopIn {
  from { transform: scale(var(--hero-pop, 0.7)); }
  to   { transform: none; }
}

@keyframes heroRiseIn {
  from { transform: translateY(var(--hero-rise, 16px)); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner .logo-glow-wrap,
  .hero-inner .app-title,
  .hero-inner .app-subtitle,
  .hero-inner .join-banner,
  .hero-inner .promo-active-banner,
  .hero-inner .store-section {
    animation: none;
  }
}
.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(20, 18, 24, 0.65);
  border: 1px solid rgba(200, 194, 255, 0.3);
  color: var(--on-surface);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s, background 0.15s;
  flex: 1;
  min-width: 0;
  animation: storeGlow 3.5s ease-in-out infinite;
}

.store-btn:hover {
  background: rgba(20, 18, 24, 0.75);
  transform: translateY(-1px);
}

@keyframes storeGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(200, 194, 255, 0.10); }
  50% { box-shadow: 0 0 24px rgba(200, 194, 255, 0.25); }
}

.store-btn svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-btn-text {
  text-align: left;
}

.store-btn-label {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.7);
  display: block;
  line-height: 1.3;
}

.store-btn-name {
  font-size: 16px;
  font-weight: 600;
  display: block;
  line-height: 1.3;
}
.glass-card {
  background: rgba(20, 18, 24, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(73, 69, 79, 0.3);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.065);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-header .material-icons {
  font-size: 28px;
  color: var(--primary);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
}
.section-intro {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 0 0 16px;
  padding: 0 4px;
  line-height: 1.5;
  opacity: 0.85;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 14px;
  background: rgba(208, 188, 255, 0.2);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(208, 188, 255, 0.08);
  border: 1px solid rgba(208, 188, 255, 0.2);
}
.step-note .material-icons {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.step-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(202, 196, 208, 0.9);
}
.step-note strong {
  color: var(--on-surface);
  font-weight: 700;
}
#description-section .section-intro {
  color: var(--on-surface);
  opacity: 1;
}
.card-divider {
  height: 1px;
  background: rgba(230, 224, 233, 0.12);
  margin: 24px 0 0;
}
.vibes-subheader {
  margin-top: 24px;
}
.vibe-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.vibe-tip:last-child {
  margin-bottom: 0;
}
.vibe-tip .material-icons {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}
.game-mode-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.game-mode-card:last-child {
  margin-bottom: 0;
}

.game-mode-card.purple {
  background: rgba(156, 39, 176, 0.1);
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.game-mode-card.orange {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.game-mode-card.teal {
  background: rgba(0, 150, 136, 0.1);
  border: 1px solid rgba(0, 150, 136, 0.3);
}

.game-mode-card .material-icons {
  font-size: 32px;
  flex-shrink: 0;
}

.game-mode-card.purple .material-icons,
.game-mode-card.purple .game-mode-title { color: #CE93D8; }

.game-mode-card.orange .material-icons,
.game-mode-card.orange .game-mode-title { color: #FFB74D; }

.game-mode-card.teal .material-icons,
.game-mode-card.teal .game-mode-title { color: #80CBC4; }

.game-mode-info {
  flex: 1;
  min-width: 0;
}

.game-mode-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.game-mode-title .mode-sep {
  opacity: 0.6;
}

.game-mode-title .mode-suffix {
  font-size: 0.8em;
  opacity: 0.6;
}

.game-mode-desc {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(230, 224, 233, 0.8);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item .material-icons {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(230, 224, 233, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.footer-link:hover {
  background: rgba(208, 188, 255, 0.1);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.5);
  text-align: center;
}

.footer-love {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.4);
  text-align: center;
  margin-top: 8px;
  white-space: pre-line;
}
.not-found-code {
  font-family: 'RobotoBlack', sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-align: center;
  background: linear-gradient(180deg, var(--title-grad-1), var(--title-grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.26));
}

.not-found-subtitle {
  text-align: center;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(230, 224, 233, 0.7);
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(20, 18, 24, 0.65);
  border: 1px solid rgba(200, 194, 255, 0.3);
  color: var(--on-surface);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 0 24px rgba(200, 194, 255, 0.15);
}

.home-btn:hover {
  background: rgba(20, 18, 24, 0.75);
  transform: translateY(-1px);
}

.home-btn .material-icons {
  font-size: 20px;
}
.contact-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.contact-icon img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.contact-intro {
  font-size: 16px;
  line-height: 1.25;
  color: rgba(230, 224, 233, 0.8);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-group:last-of-type {
  margin-bottom: 24px;
}

.form-field {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.form-field:focus {
  border-color: var(--primary);
  border-width: 2px;
  padding: 15px 15px 15px 47px;
}

.form-field::placeholder {
  color: rgba(202, 196, 208, 0.8);
}

textarea.form-field {
  resize: vertical;
  min-height: 120px;
  padding-top: 16px;
}

.form-field-icon {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 20px;
  color: var(--on-surface-variant);
  pointer-events: none;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-submit-error {
  color: var(--error);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.form-submit-error.visible {
  display: block;
}

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.submit-btn:hover {
  opacity: 0.92;
}

.submit-btn:active {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.submit-btn .material-icons {
  font-size: 20px;
}

.submit-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(232, 222, 248, 0.3);
  border-top-color: var(--on-secondary-container);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.success-message {
  text-align: center;
  display: none;
}

.success-message.visible {
  display: block;
}

.success-message > .material-icons {
  font-size: 64px;
  color: var(--primary);
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--on-surface);
}

.success-text {
  font-size: 16px;
  line-height: 1.25;
  color: rgba(230, 224, 233, 0.7);
}

.captcha-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}

.captcha-overlay.open {
  display: flex;
}

.captcha-dialog {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  min-width: 304px;
  position: relative;
}

.captcha-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
}

.captcha-loading .submit-spinner {
  display: block;
  border-color: rgba(230, 224, 233, 0.3);
  border-top-color: rgba(230, 224, 233, 0.7);
}

.captcha-fail {
  text-align: center;
  display: none;
}

.captcha-fail .material-icons {
  font-size: 40px;
  color: var(--error);
}

.captcha-fail-text {
  font-size: 14px;
  color: rgba(230, 224, 233, 0.7);
  margin-top: 12px;
}

.captcha-fail-btn {
  margin-top: 16px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; }
@media (max-width: 480px) {
  .app-title {
    font-size: 48px;
  }

}
.hidden {
  display: none !important;
}
img.appbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: block;
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
  transform: scale(1);
}
img.appbar-logo.hidden {
  display: block !important;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
.drawer-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
}
.drawer-divider.inset {
  margin: 0 28px;
}
.store-buttons {
  display: flex;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .store-buttons {
    flex-direction: column;
    gap: 12px;
  }
}
.store-section {
  margin-top: 32px;
}
.content-section {
  margin-top: 32px;
}
.game-mode-icon-wrap {
  flex-shrink: 0;
}
.game-mode-icon-wrap .material-icons {
  font-size: 32px;
}
.join-banner {
  margin-top: 32px;
}

.join-instructions {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.6);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 20px;
}
.join-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.join-header-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
}
.join-dismiss-btn {
  background: none;
  border: none;
  color: rgba(230, 224, 233, 0.7);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-room-code-container {
  background: rgba(20, 18, 24, 0.4);
  border: 1px solid rgba(73, 69, 79, 0.3);
  border-radius: 16px;
  padding: 16px 24px;
  text-align: center;
}
.join-room-label {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.7);
  margin-bottom: 8px;
}
.join-room-code {
  font-family: 'RobotoBlack', sans-serif;
  font-size: 45px;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(90deg, #00BFA6, #6A7FDB, #E56B6F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 480px) {
  .join-room-code {
    font-size: 36px;
    letter-spacing: 6px;
  }
  .join-room-code.long {
    font-size: 26px;
    letter-spacing: 3px;
  }
}

.promo-banner-slot {
  text-align: center;
}
.promo-active-banner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 32px auto 0;
  padding: 12px 28px;
  border-radius: 18px;
  background: rgba(244, 67, 54, 0.14);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #FFB4AB;
  font-family: var(--font-body, inherit);
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.promo-active-banner:hover {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.7);
}
.promo-active-banner:active {
  transform: scale(0.98);
}
.promo-active-main {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 16px;
  font-weight: 700;
}
.promo-active-main .material-icons {
  font-size: 22px;
}
.promo-active-more {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
}

.shots {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  --shot-w: clamp(226px, 70vw, 286px);
  --shot-h: calc(var(--shot-w) * 2868 / 1320);
}
@supports (height: 100svh) {
  .shots {
    --shot-w: clamp(170px, min(calc((100svh - 190px) * 1320 / 2868), 86vw), 320px);
  }
}
.shots__viewport {
  position: relative;
}
.shots__track {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.4vw, 26px);
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: smooth;
  touch-action: pan-y pinch-zoom;
  padding: 52px max(20px, calc(50% - var(--shot-w) / 2));
  scrollbar-width: none;
}
.shots__track::-webkit-scrollbar {
  display: none;
}
.shot {
  position: relative;
  flex: 0 0 var(--shot-w);
  width: var(--shot-w);
  height: var(--shot-h);
  margin: 0;
  border-radius: clamp(26px, 7vw, 34px);
  overflow: hidden;
  background: rgba(20, 18, 24, 0.4);
  border: 1px solid rgba(200, 194, 255, 0.1);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.7);
  opacity: 0.36;
  filter: saturate(0.9);
  transform: scale(0.84);
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.55s ease,
              box-shadow 0.55s ease,
              border-color 0.55s ease;
  will-change: transform;
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.shot:not(.is-active):hover {
  opacity: 0.62;
  filter: saturate(1);
}
.shot.is-active {
  opacity: 1;
  filter: saturate(1);
  transform: scale(1);
  cursor: default;
  border-color: rgba(200, 194, 255, 0.22);
  box-shadow:
    0 30px 60px -24px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(200, 194, 255, 0.16),
    0 0 70px -16px rgba(200, 194, 255, 0.35);
}
.shot-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(208, 188, 255, 0.4);
  background: rgba(20, 18, 24, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--on-surface);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.7);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
}
.shot.is-active .shot-zoom {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}
.shot-zoom:hover {
  background: rgba(40, 36, 52, 0.75);
  border-color: rgba(208, 188, 255, 0.6);
}
.shot.is-active .shot-zoom:active {
  transform: scale(0.9);
}
.shot-zoom .material-icons {
  font-size: 20px;
}
.shot-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 600;
  --lb-img-w: min(94vw, 500px, calc(90vh * 760 / 1651));
  --lb-img-h: min(90vh, calc(min(94vw, 500px) * 1651 / 760));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 8, 28, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.shot-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}
.shot-lightbox__img {
  max-width: min(94vw, 500px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: clamp(20px, 5vw, 30px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}
@supports (height: 100svh) {
  .shot-lightbox {
    --lb-img-w: min(94vw, 500px, calc(90svh * 760 / 1651));
    --lb-img-h: min(90svh, calc(min(94vw, 500px) * 1651 / 760));
  }
  .shot-lightbox__img {
    max-height: 90svh;
  }
}
.shot-lightbox.open .shot-lightbox__img {
  transform: scale(1);
}
.shot-lightbox__close {
  position: fixed;
  top: max(12px, calc(50% - var(--lb-img-h) / 2 + 12px));
  right: max(12px, calc(50% - var(--lb-img-w) / 2 - 12px - 40px));
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(208, 188, 255, 0.35);
  background: rgba(20, 18, 24, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--on-surface);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.shot-lightbox__close:hover {
  background: rgba(40, 36, 52, 0.8);
  border-color: rgba(208, 188, 255, 0.6);
}
.shot-lightbox__close:active {
  transform: scale(0.92);
}
.shot-lightbox__close .material-icons {
  font-size: 23px;
}
.shot-lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(208, 188, 255, 0.35);
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.22), rgba(239, 184, 200, 0.16));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--on-surface);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.85);
  transition: opacity 0.28s ease, visibility 0s linear 0.28s, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, border-color 0.2s ease;
}
.shot-lightbox.open .shot-lightbox__nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
  transition: opacity 0.28s ease, visibility 0s linear 0s, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, border-color 0.2s ease;
}
.shot-lightbox__nav--prev {
  left: max(8px, calc(50% - var(--lb-img-w) / 2 - 12px - 48px));
  right: auto;
}
.shot-lightbox__nav--next {
  right: max(8px, calc(50% - var(--lb-img-w) / 2 - 12px - 48px));
  left: auto;
}
.shot-lightbox__nav:hover {
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.32), rgba(239, 184, 200, 0.24));
  border-color: rgba(208, 188, 255, 0.6);
}
.shot-lightbox.open .shot-lightbox__nav:active {
  transform: translateY(-50%) scale(0.9);
}
.shot-lightbox__nav .material-icons {
  font-size: 28px;
}
.shot-lightbox.open .shot-lightbox__nav:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.shot-lightbox__img.is-nav-next {
  animation: shot-slide-next 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot-lightbox__img.is-nav-prev {
  animation: shot-slide-prev 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes shot-slide-next {
  from { opacity: 0.3; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shot-slide-prev {
  from { opacity: 0.3; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}
.shot-lightbox__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
html.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: reduce) {
  .shot-zoom,
  .shot-lightbox,
  .shot-lightbox.open,
  .shot-lightbox__img,
  .shot-lightbox__close,
  .shot-lightbox__nav,
  .shot-lightbox.open .shot-lightbox__nav {
    transition: none;
  }
  .shot-lightbox__img.is-nav-next,
  .shot-lightbox__img.is-nav-prev {
    animation: none;
  }
}
.shots__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(208, 188, 255, 0.35);
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.20), rgba(239, 184, 200, 0.15));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--on-surface);
  cursor: pointer;
  box-shadow: 0 0 4px rgba(208, 188, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, opacity 0.3s ease;
}
.shots__nav:hover {
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.28), rgba(239, 184, 200, 0.22));
}
.shots__nav:active {
  transform: translateY(-50%) scale(0.9);
}
.shots__nav .material-icons {
  font-size: 26px;
}
.shots__nav--prev {
  left: max(12px, calc(50% - var(--shot-w) / 2 - 60px));
}
.shots__nav--next {
  right: max(12px, calc(50% - var(--shot-w) / 2 - 60px));
}
.shots__nav:disabled {
  opacity: 0;
  pointer-events: none;
}
@media (hover: none), (max-width: 700px) {
  .shots__nav {
    display: none;
  }
}
.shots__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -14px;
  padding: 0 24px;
}
.shots__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(208, 188, 255, 0.28);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}
.shots__dot:hover {
  background: rgba(208, 188, 255, 0.5);
}
.shots__dot.is-active {
  width: 22px;
  border-radius: 5px;
  background: var(--primary);
}
.shots__scroll-hint {
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom, 8px));
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0;
  padding: 0 20px 10px;
  color: rgba(208, 188, 255, 0.72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}
.shots__scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.shots__scroll-hint .material-icons {
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  animation: shots-hint-bounce 1.7s ease-in-out infinite;
}
.shots__scroll-hint .material-icons:nth-child(2) {
  margin-top: -13px;
  opacity: 0.55;
  animation-delay: 0.16s;
}
@keyframes shots-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
.shots__top-hint {
  position: fixed;
  left: 50%;
  top: calc(62px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0;
  padding: 10px 20px;
  color: rgba(208, 188, 255, 0.72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}
.shots__top-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.shots__top-hint .material-icons {
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  animation: rest-hint-bounce 1.7s ease-in-out infinite;
}
.shots__top-hint .material-icons:nth-child(2) {
  margin-top: -13px;
  opacity: 0.55;
  animation-delay: 0.16s;
}
.rest-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0;
  padding: 10px 20px 8px;
  width: fit-content;
  margin: 0 auto;
  color: rgba(208, 188, 255, 0.72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}
.rest-scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.rest-scroll-hint .material-icons {
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  animation: rest-hint-bounce 1.7s ease-in-out infinite;
}
.rest-scroll-hint .material-icons:nth-child(2) {
  margin-top: -13px;
  opacity: 0.55;
  animation-delay: 0.16s;
}
@keyframes rest-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .shots__track {
    scroll-behavior: auto;
  }
  .shot {
    transition: none;
  }
  .shots__scroll-hint .material-icons,
  .shots__top-hint .material-icons,
  .rest-scroll-hint .material-icons {
    animation: none;
  }
}
.home-main {
  padding: 0;
  display: block;
}
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: -56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 64px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
}
.shots-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@supports (height: 100lvh) and (height: 100svh) {
  .hero-section,
  .shots-section {
    margin-bottom: calc(100lvh - 100svh);
  }
}
.shots-section .shots {
  margin-top: 0;
}
.rest-content {
  margin-left: auto;
  margin-right: auto;
  padding: 8px 24px 0;
}
.hero-scroll-hint {
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom, 8px));
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0;
  padding: 0 20px 10px;
  color: rgba(208, 188, 255, 0.72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}
.hero-scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.hero-scroll-hint .material-icons {
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  animation: shots-hint-bounce 1.7s ease-in-out infinite;
}
.hero-scroll-hint .material-icons:nth-child(2) {
  margin-top: -13px;
  opacity: 0.55;
  animation-delay: 0.16s;
}
@media (max-width: 480px) {
  .hero-section {
    padding: 56px 20px 56px;
  }
}
@media (max-height: 700px) {
  .hero-section {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
@media (max-height: 600px) {
  .hero-section:has(#promo-banner-slot:not(:empty)) .hero-scroll-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint .material-icons {
    animation: none;
  }
}
html.join-mode .hero-section {
  padding-top: 28px;
  padding-bottom: 28px;
}
html.join-mode .logo-section {
  margin-top: 0;
}
html.join-mode .logo-glow-wrap img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
}
html.join-mode .app-title {
  font-size: 34px;
  margin-top: 10px;
}
html.join-mode .app-subtitle {
  font-size: 14px;
  margin-top: 8px;
}
html.join-mode .join-banner {
  margin-top: 18px;
}
@media (max-height: 760px) {
  html.join-mode .hero-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  html.join-mode .logo-glow-wrap img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }
  html.join-mode .app-title {
    font-size: 26px;
  }
  html.join-mode .app-subtitle {
    display: none;
  }
  html.join-mode .join-banner {
    margin-top: 12px;
  }
}
@media (max-height: 600px) {
  html.join-mode .hero-section {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  html.join-mode .logo-glow-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  html.join-mode .app-title {
    font-size: 22px;
    margin-top: 6px;
  }
  html.join-mode .join-banner {
    margin-top: 10px;
  }
  html.join-mode .join-header {
    margin-bottom: 12px;
  }
  html.join-mode .join-instructions {
    margin-top: 10px;
    margin-bottom: 12px;
  }
  html.join-mode .join-room-code-container {
    padding: 10px 16px;
  }
}
@media (max-height: 760px) {
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) .logo-glow-wrap img {
    width: 106px;
    height: 106px;
    border-radius: 20px;
  }
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) .app-title {
    font-size: 43px;
  }
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) .app-subtitle {
    margin-top: 14px;
    font-size: 15px;
  }
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) .promo-active-banner {
    margin-top: 20px;
  }
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) #store-section {
    margin-top: 20px;
  }
}
@media (max-height: 640px) {
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) .logo-glow-wrap img {
    width: 92px;
    height: 92px;
    border-radius: 18px;
  }
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) .app-title {
    font-size: 38px;
  }
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) .app-subtitle {
    margin-top: 10px;
    font-size: 14px;
  }
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) .promo-active-banner {
    margin-top: 16px;
  }
  html:not(.join-mode) .hero-section:has(#promo-banner-slot:not(:empty)) #store-section {
    margin-top: 16px;
  }
}
.svc-page {
  --st-current: var(--secondary);
  --st-current-glow: rgba(204, 194, 220, 0.28);
  display: flex;
  flex-direction: column;
}

.svc-page[data-state="up"] {
  --st-current: var(--st-up);
  --st-current-glow: var(--st-up-glow);
}

.svc-page[data-state="degraded"] {
  --st-current: var(--st-degraded);
  --st-current-glow: var(--st-degraded-glow);
}

.svc-page[data-state="down"] {
  --st-current: var(--st-down);
  --st-current-glow: var(--st-down-glow);
}

.svc-top {
  position: relative;
}

.svc-top::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -30%;
  right: -30%;
  bottom: -28px;
  background: radial-gradient(ellipse 60% 95% at 50% 28%, var(--st-current) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.svc-hero {
  position: relative;
  text-align: center;
  padding: 0 0 4px;
}

.svc-hero-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.svc-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px 0 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(230, 224, 233, 0.75);
}

.svc-live-dot {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
}

.svc-live-dot::before,
.svc-live-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.svc-live-dot::before {
  width: 21px;
  height: 21px;
  margin: -10.5px 0 0 -10.5px;
  background: var(--st-current-glow);
  opacity: 0;
  transform: translateZ(0) scale(0.3333);
  will-change: transform, opacity;
  animation: svcLivePulse 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.svc-live-dot::after {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--st-current);
}

@keyframes svcLivePulse {
  0% { opacity: 1; transform: translateZ(0) scale(0.3333); }
  70% { opacity: 0; transform: translateZ(0) scale(1); }
  100% { opacity: 0; transform: translateZ(0) scale(1); }
}

.svc-refresh {
  background: none;
  border: none;
  color: rgba(230, 224, 233, 0.7);
  cursor: pointer;
  padding: 6px;
  margin: -6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.svc-refresh:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-surface);
}

.svc-refresh .material-icons {
  font-size: 20px;
}

.svc-refresh.spinning .material-icons {
  animation: svcSpin 0.9s linear infinite;
}

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

.svc-orb {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 4px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--st-current);
  opacity: 0;
  animation: svcRipple 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.svc-orb-ring-2 {
  animation-delay: 1.5s;
}

@keyframes svcRipple {
  0% { transform: scale(0.68); opacity: 0.5; }
  70% { opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.svc-orb-core {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 62%), var(--st-current);
  box-shadow: 0 0 34px var(--st-current-glow), inset 0 -6px 14px rgba(0, 0, 0, 0.16);
  transition: background 400ms ease, box-shadow 400ms ease;
}

.svc-orb-core .material-icons {
  font-size: 36px;
  color: rgba(26, 10, 60, 0.85);
}

.svc-state-title {
  position: relative;
  font-size: clamp(21px, 6vw, 25px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--on-surface);
}

.svc-state-desc {
  position: relative;
  margin: 10px auto 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  opacity: 0.88;
  white-space: pre-line;
}

.svc-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
  text-align: center;
}

.svc-meta-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.svc-meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(230, 224, 233, 0.5);
}

.svc-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  overflow-wrap: anywhere;
}

.svc-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.svc-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 8px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.svc-stat-value {
  font-size: clamp(19px, 5.6vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.svc-stat[data-level="good"] .svc-stat-value { color: var(--st-up); }
.svc-stat[data-level="warn"] .svc-stat-value { color: var(--st-degraded); }
.svc-stat[data-level="bad"] .svc-stat-value { color: var(--st-down); }

.svc-stat-label {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(230, 224, 233, 0.62);
  overflow-wrap: anywhere;
}

.svc-stat-sub {
  font-size: 11px;
  color: rgba(230, 224, 233, 0.42);
  font-variant-numeric: tabular-nums;
  min-height: 14px;
}

.svc-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.svc-section-header {
  margin-bottom: 16px;
}

.svc-section-header .material-icons {
  font-size: 24px;
}

.svc-section-header .section-title {
  font-size: 18px;
}

.svc-range {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 18px;
}

.svc-range-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.26), rgba(239, 184, 200, 0.18));
  border: 1px solid rgba(208, 188, 255, 0.3);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), width 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.svc-range-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  color: rgba(230, 224, 233, 0.65);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 9px;
  cursor: pointer;
  transition: color 200ms ease;
}

.svc-range-btn:hover {
  color: var(--on-surface);
}

.svc-range-btn.selected {
  color: var(--on-primary-container);
}

.svc-bars-wrap {
  position: relative;
}

.svc-bars {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 58px;
}

.svc-bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--st-none);
  transition: transform 150ms ease, filter 150ms ease;
  transform-origin: center bottom;
}

.svc-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

.svc-bar.hovered {
  transform: scaleY(1.07);
  filter: brightness(1.22);
}

.svc-bar.is-now {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
}

.svc-bar-skeleton {
  background: linear-gradient(180deg, rgba(202, 196, 208, 0.14), rgba(202, 196, 208, 0.06));
  animation: svcShimmer 1.6s ease-in-out infinite;
}

@keyframes svcShimmer {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

.svc-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  transform: translateX(-50%);
  min-width: 132px;
  width: -webkit-max-content;
  width: max-content;
  max-width: calc(100% - 4px);
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(24, 20, 34, 0.97);
  border: 1px solid rgba(208, 188, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  font-size: 12px;
  line-height: 1.45;
  color: var(--on-surface);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
  pointer-events: none;
  z-index: 6;
}

.svc-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.svc-tooltip-time {
  display: block;
  font-size: 11px;
  color: rgba(230, 224, 233, 0.55);
  margin-bottom: 5px;
}

.svc-tooltip-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.svc-tooltip-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.svc-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(230, 224, 233, 0.7);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.svc-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(230, 224, 233, 0.45);
}

.svc-axis-mid {
  font-variant-numeric: tabular-nums;
  color: rgba(230, 224, 233, 0.6);
}

.svc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: rgba(230, 224, 233, 0.6);
}

.svc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.svc-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

.svc-swatch-up { background: var(--st-up); }
.svc-swatch-degraded { background: var(--st-degraded); }
.svc-swatch-down { background: var(--st-down); }
.svc-swatch-none { background: var(--st-none); }

.svc-chart-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.svc-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(230, 224, 233, 0.68);
  margin-bottom: 8px;
}

.svc-chart-meta {
  font-weight: 500;
  color: rgba(230, 224, 233, 0.45);
  font-variant-numeric: tabular-nums;
  text-align: right;
  margin-left: auto;
}

.svc-chart {
  position: relative;
  height: 104px;
}

.svc-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.svc-chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.svc-chart-area {
  fill: url(#svcChartFill);
  stroke: none;
}

.svc-chart-grid line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.svc-chart-grid line.svc-chart-base {
  stroke: rgba(255, 255, 255, 0.16);
}

.svc-chart-axis {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.svc-chart-tick {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(230, 224, 233, 0.34);
  font-variant-numeric: tabular-nums;
}

.svc-chart-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: rgba(230, 224, 233, 0.4);
}

.svc-chart.is-empty .svc-chart-empty { display: flex; }
.svc-chart.is-empty svg,
.svc-chart.is-empty .svc-chart-axis { display: none; }

.svc-events {
  list-style: none;
}

.svc-event {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 15px;
}

.svc-event:last-child {
  padding-bottom: 0;
}

.svc-event:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 17px;
  bottom: 3px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.svc-event-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  min-width: 11px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--st-none);
}

.svc-event[data-status="up"] .svc-event-dot {
  background: var(--st-up);
  box-shadow: 0 0 0 3px rgba(95, 227, 161, 0.15);
}

.svc-event[data-status="degraded"] .svc-event-dot {
  background: var(--st-degraded);
  box-shadow: 0 0 0 3px rgba(255, 196, 107, 0.15);
}

.svc-event[data-status="down"] .svc-event-dot {
  background: var(--st-down);
  box-shadow: 0 0 0 3px rgba(255, 122, 138, 0.15);
}

.svc-event-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.svc-event-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
}

.svc-event-meta {
  font-size: 12px;
  color: rgba(230, 224, 233, 0.5);
}

.svc-empty {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  opacity: 0.75;
}

.svc-about-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(208, 188, 255, 0.07);
  border: 1px solid rgba(208, 188, 255, 0.16);
  font-size: 13px;
  line-height: 1.55;
  color: var(--on-surface);
  white-space: pre-line;
}

.svc-about-note .material-icons {
  font-size: 19px;
  color: var(--primary);
  flex: none;
  margin-top: 1px;
}

.svc-error[hidden] {
  display: none;
}

.svc-error {
  position: relative;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 122, 138, 0.08);
  border: 1px solid rgba(255, 122, 138, 0.26);
}

.svc-error .material-icons {
  font-size: 30px;
  color: var(--st-down);
}

.svc-error-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--on-surface);
}

.svc-error-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.svc-error-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 420px) {
  .svc-range-btn {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-orb-ring,
  .svc-live-dot::before,
  .svc-bar-skeleton,
  .svc-refresh.spinning .material-icons {
    animation: none;
  }
  .svc-range-thumb,
  .svc-bar {
    transition: none;
  }
}
