:root {
  --text: #fff3ce;
  --muted: rgba(255, 243, 206, 0.62);
  --gold: #ffd76d;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #02030a;
  color: var(--text);
}

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

button {
  font: inherit;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 215, 109, 0.16), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(85, 98, 255, 0.12), transparent 32%),
    radial-gradient(circle at 8% 72%, rgba(255, 125, 55, 0.1), transparent 31%),
    linear-gradient(180deg, #050717 0%, #03030a 52%, #050303 100%);
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: start center;
  min-height: 100vh;
  padding: 10px;
}

.shell {
  position: relative;
  overflow: hidden;
  width: min(100%, 430px);
  min-height: calc(100vh - 20px);
  padding: 14px;
  border: 1px solid rgba(255, 215, 109, 0.25);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 215, 109, 0.1), transparent 30%),
    radial-gradient(circle at 76% 54%, rgba(30, 34, 58, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(6, 7, 15, 0.86), rgba(3, 2, 2, 0.88));
  box-shadow:
    0 40px 130px rgba(0, 0, 0, 0.78),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

.shell::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background:
    conic-gradient(from 210deg at 52% 42%, transparent 0deg, rgba(255, 214, 107, 0.08) 42deg, transparent 104deg, rgba(64, 66, 92, 0.1) 170deg, transparent 252deg, rgba(105, 62, 24, 0.09) 318deg, transparent 360deg);
  animation: nebulaSpin 18s linear infinite;
}

.topbar {
  display: grid;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 215, 109, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 215, 109, 0.15), transparent 34%),
    rgba(0, 0, 0, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.brand img {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 215, 109, 0.32);
  border-radius: 22px;
  object-fit: cover;
  box-shadow:
    0 0 34px rgba(255, 215, 109, 0.18),
    0 18px 38px rgba(0, 0, 0, 0.35);
}

.brand strong {
  display: block;
  color: #fff2bb;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 0 22px rgba(255, 215, 109, 0.16);
}

.language-list {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 215, 109, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-list:empty {
  display: none;
}

.language-list button {
  width: 42px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 243, 206, 0.62);
  background: transparent;
  font-size: 10px;
  font-weight: 950;
}

.language-list button.active {
  color: #140d04;
  background: linear-gradient(180deg, #fff1b3, #f6b62f);
  box-shadow: 0 0 20px rgba(255, 207, 80, 0.34);
}

.site-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.site-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(255, 215, 109, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 215, 109, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 42%, rgba(0, 0, 0, 0.22));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.site-card::before {
  content: "";
  position: absolute;
  right: -58px;
  top: -72px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 215, 109, 0.16), transparent 66%);
  pointer-events: none;
}

.site-main {
  position: relative;
  z-index: 1;
}

.site-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: #062116;
  background: linear-gradient(180deg, #84ffd0, #25d88f);
  font-size: 10px;
  font-weight: 950;
}

.site-main h2 {
  margin: 12px 0 6px;
  color: #fff2bb;
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.site-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.enter-button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 17px;
  color: #120d04;
  background: linear-gradient(180deg, #fff1b5, #f2b32d 62%, #a8660e);
  box-shadow: 0 18px 38px rgba(242, 179, 45, 0.24);
  font-size: 14px;
  font-weight: 950;
}

.empty-state {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 215, 109, 0.2);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.38);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

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

@media (max-width: 380px) {
  .page {
    padding: 8px;
  }

  .shell {
    padding: 10px;
    border-radius: 26px;
  }

  .topbar {
    min-height: 120px;
    padding: 14px;
    border-radius: 24px;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 62px;
    height: 62px;
    border-radius: 19px;
  }

  .brand strong {
    font-size: 24px;
  }

  .language-list button {
    width: 38px;
  }

  .site-card {
    min-height: 124px;
    padding: 14px;
  }

  .site-main h2 {
    font-size: 26px;
  }
}
