:root {
  --bg: #050b10;
  --bg-2: #0d171d;
  --bg-3: #121d26;
  --panel: rgba(17, 24, 31, 0.92);
  --panel-strong: rgba(22, 31, 39, 0.97);
  --panel-soft: rgba(33, 45, 53, 0.9);
  --line: rgba(177, 198, 210, 0.15);
  --line-strong: rgba(177, 198, 210, 0.22);
  --text: #eef7ff;
  --text-soft: #b9cad7;
  --text-muted: #8097aa;
  --brand: #d6c08d;
  --brand-strong: #ae8d4d;
  --cyan: #9fe7ff;
  --blue: #7eb7d7;
  --green: #77b998;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(120, 175, 204, 0.12), transparent 26%),
    linear-gradient(180deg, #040a0d 0%, #0a1419 46%, #0b1117 100%);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 40px;
}

.top-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 12px;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.right-brand {
  margin-left: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 230px;
  height: auto;
  aspect-ratio: 3860 / 1839;
  border-radius: 10px;
  overflow: hidden;
  background: #050b10;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand-copy small {
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.main-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 17, 22, 0.82);
  box-shadow: var(--shadow);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: rgba(151, 191, 211, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.server-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 29, 0.9);
  box-shadow: var(--shadow);
}

.server-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  gap: 6px;
}

.server-address {
  display: grid;
  grid-template-columns: 76px 92px minmax(180px, 1fr) 72px;
  align-items: center;
  width: min(100%, 570px);
  min-height: 44px;
  gap: 12px;
  padding: 5px 0;
}

.platform-label {
  min-width: 64px;
  color: var(--brand);
}

.meta-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-meta strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.server-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(136, 185, 214, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.copy-btn {
  width: 72px;
  padding: 5px 4px;
  font-size: 0.68rem;
}

.action-btn:hover,
.action-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(177, 198, 210, 0.28);
}

.primary-btn {
  background: linear-gradient(180deg, rgba(162, 217, 240, 0.14), rgba(109, 161, 196, 0.18));
}

.feature-visual.anniversary-hero {
  display: grid;
  place-items: center;
  height: auto;
  min-height: 700px;
  padding: 34px 38px;
  text-align: center;
  background-color: #0c171a;
  background-image:
    linear-gradient(90deg, transparent 49.8%, rgba(159, 231, 255, 0.05) 50%, transparent 50.2%),
    linear-gradient(rgba(159, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 231, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
}

.anniversary-content {
  width: min(100%, 760px);
  margin: auto;
}

.anniversary-kicker {
  margin: 0 0 17px;
  color: #f2c14e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.anniversary-logo {
  display: block;
  width: min(640px, 88%);
  max-height: 265px;
  margin: 0 auto 13px;
  object-fit: contain;
  background: #050b10;
}

.anniversary-title {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: clamp(3rem, 6.6vw, 5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.anniversary-title span {
  color: #f2c14e;
}

.anniversary-copy {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.5vw, 1.13rem);
  line-height: 1.55;
}

.anniversary-countdown-label {
  margin: 19px 0 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.anniversary-countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.anniversary-countdown div {
  min-width: 68px;
  padding: 8px 9px 7px;
  border: 1px solid var(--line-strong);
  border-bottom: 3px solid var(--cyan);
  background: rgba(5, 11, 16, 0.72);
}

.anniversary-countdown dd {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.anniversary-countdown dt {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-month {
  margin: -5px 0 5px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.9fr) minmax(260px, 0.9fr);
  gap: 20px;
  margin-top: 22px;
}

.feature-panel,
.info-card,
.news-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 24, 30, 0.78);
  box-shadow: var(--shadow);
}

.feature-panel {
  min-height: 480px;
  overflow: hidden;
}

.feature-visual {
  position: relative;
  height: 100%;
  min-height: 480px;
  background: #091119;
  overflow: hidden;
}

.slideshow,
.slide {
  width: 100%;
  height: 100%;
}

.slideshow {
  position: relative;
  min-height: 480px;
  background: #091119;
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(5, 11, 16, 0.65);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.slide-arrow:hover,
.slide-arrow:focus-visible {
  background: rgba(5, 11, 16, 0.9);
}

.slide-prev {
  left: 18px;
}

.slide-next {
  right: 18px;
}

.slide-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slide-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.slide-dot.active {
  background: var(--brand);
  transform: scale(1.25);
}

.sky-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 35%);
}

.surface-shadow {
  position: absolute;
}

.terrain-base {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(99, 127, 77, 0.8), rgba(49, 75, 52, 1));
  clip-path: polygon(0% 100%, 0% 66%, 12% 60%, 22% 48%, 31% 64%, 42% 42%, 54% 58%, 68% 40%, 81% 58%, 92% 52%, 100% 62%, 100% 100%);
}

.scene-house {
  position: absolute;
  left: 50%;
  bottom: 80px;
  width: min(560px, 72%);
  height: 210px;
  transform: translateX(-50%);
}

.house-wall {
  position: absolute;
  bottom: 0;
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(192, 157, 98, 1), rgba(134, 99, 57, 1));
  box-shadow: inset 0 0 0 3px rgba(87, 63, 37, 0.35);
}

.wall-main {
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
}

.wall-side {
  right: 18%;
  width: 116px;
  height: 106px;
  background: linear-gradient(180deg, rgba(176, 142, 89, 1), rgba(120, 90, 55, 1));
}

.roof {
  position: absolute;
  bottom: 104px;
  width: 200px;
  height: 72px;
  background: linear-gradient(180deg, rgba(190, 101, 52, 1), rgba(108, 61, 28, 1));
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.roof-left {
  left: calc(50% - 84px);
}

.roof-right {
  left: calc(50% + 88px);
  width: 170px;
}

.window {
  position: absolute;
  bottom: 28px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 243, 146, 0.95), rgba(197, 138, 60, 0.9));
  box-shadow: inset 0 0 0 3px rgba(116, 82, 32, 0.42);
}

.window-left {
  left: calc(50% - 88px);
}

.window-right {
  left: calc(50% + 38px);
}

.door {
  position: absolute;
  left: calc(50% - 18px);
  bottom: 0;
  width: 36px;
  height: 58px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(104, 71, 39, 1), rgba(54, 35, 20, 1));
  box-shadow: inset 0 0 0 4px rgba(29, 18, 10, 0.25);
}

.scene-plants {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
}

.plant {
  position: absolute;
  bottom: 18px;
  width: 24px;
  height: 68px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, rgba(93, 158, 85, 0.95), rgba(37, 80, 47, 1));
}

.plant::before,
.plant::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 18px;
  border-radius: 50%;
  background: rgba(103, 171, 98, 0.9);
}

.plant::before {
  left: -10px;
  top: 16px;
}

.plant::after {
  right: -8px;
  top: 10px;
}

.plant-left {
  left: 18%;
}

.plant-right {
  right: 18%;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-card {
  padding: 18px 16px 16px;
  background: rgba(21, 29, 37, 0.9);
}

.stats-card h3,
.player-card h4,
.calendar-card h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.info-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.info-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.info-list strong {
  color: var(--text);
  font-size: 0.95rem;
}

.player-entry {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 3px 0;
}

.player-entry + .player-entry {
  border-top: 0;
}

.avatar {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, #c4d5df 0%, #7aa1b3 100%);
  object-fit: cover;
  image-rendering: pixelated;
}

.avatar-two {
  background: linear-gradient(180deg, #d8dca3 0%, #87a769 100%);
}

.player-entry strong {
  display: block;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.player-list {
  max-height: 27.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-strong) transparent;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  font-size: 0.82rem;
  margin-top: 10px;
}

.calendar-grid span {
  display: grid;
  place-items: center;
  min-height: 26px;
  border-radius: 8px;
  color: var(--text-soft);
}

.calendar-grid .muted {
  color: var(--text-muted);
}

.calendar-grid .highlight {
  background: rgba(163, 197, 210, 0.14);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.news-panel {
  margin-top: 26px;
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 19, 25, 0.84);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-label {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.06em;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.chip.active {
  background: rgba(150, 203, 228, 0.12);
  border-color: rgba(150, 203, 228, 0.2);
  color: var(--text);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-item {
  padding: 18px 18px 16px;
  background: rgba(17, 25, 31, 0.72);
}

.news-item.feature-item {
  background: linear-gradient(180deg, rgba(26, 35, 41, 0.94), rgba(15, 20, 25, 0.96));
}

.news-meta {
  color: var(--brand);
  font-size: 0.86rem;
}

.news-tag {
  display: inline-block;
  margin: 12px 0 10px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(143, 184, 207, 0.12);
  border: 1px solid rgba(143, 184, 207, 0.18);
}

.news-item h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.news-item p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.news-item a {
  color: var(--cyan);
  font-weight: 700;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 20px 10px 0;
  color: var(--text-muted);
}

.footer-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
}

.footer-copy {
  font-size: 0.92rem;
}

.admin-footer-link {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-footer-link:hover,
.admin-footer-link:focus-visible {
  color: var(--cyan);
}

@media (max-width: 980px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    position: static;
    transform: none;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1260px);
    padding-top: 16px;
  }

  .server-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-address {
    grid-template-columns: 76px minmax(0, 1fr) 68px;
    gap: 8px;
  }

  .server-address .meta-label {
    grid-column: 2;
    grid-row: 1;
  }

  .server-address > strong:not(.platform-label) {
    grid-column: 2;
    grid-row: 2;
  }

  .server-address .copy-btn {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 68px;
  }

  .server-actions {
    width: 100%;
  }

  .action-btn {
    flex: 1;
  }

  .brand-mark {
    width: 190px;
    height: auto;
  }

  .feature-visual,
  .scene-house {
    min-height: 360px;
  }

  .feature-visual.anniversary-hero {
    min-height: 0;
    padding: 28px 16px;
  }

  .anniversary-logo {
    width: min(440px, 92%);
    max-height: 185px;
  }

  .anniversary-title {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .anniversary-countdown {
    gap: 5px;
  }

  .anniversary-countdown div {
    min-width: 58px;
    padding: 7px 5px;
  }

  .anniversary-countdown dd {
    font-size: 1.45rem;
  }

  .anniversary-countdown dt {
    font-size: 0.55rem;
  }

  .scene-house {
    width: 86%;
    bottom: 70px;
  }
}

.legal-page {
  max-width: 940px;
  margin: 30px auto 0;
}

.legal-intro,
.legal-content {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 19, 25, 0.84);
  box-shadow: var(--shadow);
}

.legal-intro {
  padding: 28px 30px;
}

.legal-intro h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.06em;
}

.legal-intro p {
  max-width: 700px;
  margin: 0;
  color: var(--text-soft);
}

.legal-content {
  margin-top: 18px;
  padding: 30px;
}

.legal-content section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  color: var(--text);
}

.legal-content h2 {
  margin: 0 0 18px;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 1.12rem;
}

.legal-content h4 {
  margin: 16px 0 5px;
  font-size: 0.98rem;
}

.legal-content p {
  margin: 0 0 13px;
  color: var(--text-soft);
}

.legal-content ul {
  margin: 8px 0 16px;
  padding-left: 22px;
  color: var(--text-soft);
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-content address {
  margin: 14px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--brand);
  background: rgba(214, 192, 141, 0.07);
  color: var(--text-soft);
  font-style: normal;
  line-height: 1.8;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list > div:last-child {
  border-bottom: 0;
}

.contact-list dt {
  color: var(--text-muted);
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  color: var(--text-soft);
}

.legal-content a {
  color: var(--cyan);
  font-weight: 600;
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 34px 18px;
  background:
    radial-gradient(circle at top, rgba(120, 175, 204, 0.12), transparent 26%),
    linear-gradient(180deg, #040a0d 0%, #0a1419 46%, #0b1117 100%);
}

.admin-card {
  width: min(100%, 480px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 19, 25, 0.96);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(20, 42, 64, 0.28);
}

.admin-logo {
  display: grid;
  place-items: center;
  padding: 26px 28px 20px;
  background: rgba(5, 11, 16, 0.68);
  border-bottom: 1px solid var(--line);
}

.admin-logo img {
  display: block;
  width: min(100%, 390px);
  height: 112px;
  object-fit: contain;
}

.admin-card-heading {
  padding: 16px 28px;
  background: rgba(214, 192, 141, 0.1);
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
}

.admin-card form {
  padding: 26px 40px 0;
}

.admin-field {
  display: block;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-field input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.admin-field input:focus {
  border-bottom-color: var(--cyan);
}

.admin-login-button {
  width: calc(100% + 80px);
  margin: 8px -40px 0;
  padding: 16px 20px;
  border: 0;
  background: linear-gradient(180deg, rgba(162, 217, 240, 0.18), rgba(109, 161, 196, 0.22));
  color: var(--text);
  border-top: 1px solid rgba(159, 231, 255, 0.22);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.admin-login-button:hover,
.admin-login-button:focus-visible {
  background: rgba(159, 231, 255, 0.2);
}

.admin-footer {
  padding: 18px 20px 22px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.admin-error {
  margin: 16px 28px 0;
  color: #f09a9a;
  font-size: 0.9rem;
  text-align: center;
}

.admin-preview-page .top-header {
  margin-bottom: 10px;
}

.admin-page-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 17, 22, 0.82);
}

.admin-page-tabs a {
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-page-tabs a:hover,
.admin-page-tabs a:focus-visible {
  background: rgba(151, 191, 211, 0.12);
  color: var(--text);
}

.admin-navigation-editor {
  margin-bottom: 18px;
}

.admin-navigation-editor h2 {
  margin: 5px 0 14px;
}

.admin-navigation-editor label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-navigation-editor input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(177, 198, 210, 0.22);
  border-radius: 7px;
  background: rgba(5, 11, 16, 0.72);
  color: var(--text);
}

.admin-navigation-editor input + input {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.admin-nav-edit {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.admin-nav-edit input,
.admin-edit-row input,
.admin-edit-card input,
.news-edit-grid input,
.news-title-input,
.admin-save-bar input,
.admin-legal-edit textarea,
.news-item textarea,
.server-actions input {
  min-width: 0;
  border: 1px solid rgba(177, 198, 210, 0.22);
  border-radius: 7px;
  background: rgba(5, 11, 16, 0.72);
  color: var(--text);
  outline: 0;
}

.admin-nav-edit input {
  width: 82px;
  padding: 4px 6px;
  color: var(--text-soft);
  font-size: 0.68rem;
}

.admin-nav-edit input + input {
  color: var(--text-muted);
  font-size: 0.58rem;
}

.admin-edit-row input {
  width: min(280px, 100%);
  padding: 7px 9px;
}

.admin-edit-card .info-list input {
  width: 116px;
  padding: 6px 7px;
  text-align: right;
}

.player-inputs {
  display: grid;
  gap: 5px;
  flex: 1;
}

.player-inputs input {
  width: 100%;
  padding: 5px 7px;
}

.calendar-admin-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-admin-fields label,
.admin-legal-edit label {
  display: grid;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.calendar-admin-fields input {
  width: 100%;
  padding: 6px;
}

.news-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.news-edit-grid input,
.news-title-input,
.news-item textarea,
.admin-legal-edit textarea,
.server-actions input {
  width: 100%;
  padding: 8px 9px;
  font: inherit;
}

.news-title-input {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.news-item textarea,
.admin-legal-edit textarea {
  resize: vertical;
}

.admin-legal-edit {
  margin-top: 22px;
}

.admin-legal-edit h2 {
  margin: 5px 0 14px;
}

.admin-legal-edit label + label {
  margin-top: 14px;
}

.admin-save-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.admin-save-bar input {
  flex: 1;
  padding: 10px;
}

.admin-save-bar .admin-save {
  margin: 0;
}

.admin-preview-form .server-actions {
  min-width: 220px;
}

.admin-preview-form .server-actions input {
  width: 100%;
}

.admin-preview-form .feature-visual,
.admin-preview-form .slideshow {
  min-height: 480px;
}

.admin-preview-form .slide {
  opacity: 1;
}

@media (max-width: 640px) {
  .legal-page {
    margin-top: 20px;
  }

  .legal-intro,
  .legal-content {
    border-radius: 16px;
  }

  .legal-intro,
  .legal-content {
    padding: 22px 18px;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-card form {
    padding-right: 24px;
    padding-left: 24px;
  }

  .admin-login-button {
    width: calc(100% + 48px);
    margin-right: -24px;
    margin-left: -24px;
  }

  .admin-preview-page .main-nav {
    gap: 5px;
  }

  .admin-page-tabs {
    flex-wrap: wrap;
  }

  .admin-nav-edit input {
    width: 64px;
  }

  .admin-preview-form .server-actions {
    width: 100%;
    min-width: 0;
  }

  .admin-save-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
