.auth-page,
.admin-page {
  overflow: auto;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at top, #163322 0%, transparent 55%),
    linear-gradient(180deg, #0b1a12 0%, #07110c 100%);
  color: #f4f7ea;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card,
.admin-panel {
  width: min(480px, 100%);
  padding: 24px;
  border: 3px solid #1e1408;
  background: rgba(12, 22, 14, 0.92);
  box-shadow: 6px 6px 0 #1e1408;
}

.auth-brand,
.admin-page .auth-brand {
  margin: 0 0 6px;
  color: #ffe27a;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.auth-card h1,
.admin-top h1,
.admin-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth-copy,
.admin-copy,
.admin-meta {
  margin: 0 0 16px;
  color: #c7d4b8;
  font-size: 14px;
}

.auth-form,
.admin-panel form {
  display: grid;
  gap: 8px;
}

.auth-form label,
.admin-panel label {
  font-size: 13px;
  font-weight: 700;
}

.auth-form input,
.admin-panel input[type="text"],
.admin-panel input[type="email"],
.admin-panel input[type="password"] {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 3px solid #1e1408;
  background: rgba(250, 247, 230, 0.94);
  color: #1e1408;
  font: 700 15px/1.2 "Pixelify Sans", sans-serif;
  box-shadow: 4px 4px 0 #1e1408;
}

.auth-form button,
.admin-actions button,
.admin-link,
.preview-buttons button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border: 3px solid #1e1408;
  background: #e7c23a;
  color: #1e1408;
  font: 700 15px/1 "Pixelify Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 #1e1408;
}

.admin-actions button.secondary,
.admin-link {
  background: rgba(250, 247, 230, 0.92);
}

.admin-actions button.danger,
.menu-item .danger {
  background: #ffb4a2;
}

.auth-error,
.auth-ok {
  padding: 10px 12px;
  border: 3px solid #1e1408;
  font-weight: 700;
  font-size: 14px;
}

.auth-error {
  color: #1e1408;
  background: #ffb4a2;
}

.auth-ok {
  color: #102014;
  background: #b6f08a;
}

.auth-back {
  margin: 18px 0 0;
}

.auth-back a {
  color: #ffe27a;
  font-weight: 700;
}

.admin-page {
  padding: 24px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.admin-top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.admin-panel {
  width: auto;
}

.menu-items {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.menu-item {
  margin: 0;
  padding: 12px;
  border: 3px solid #1e1408;
  background: rgba(8, 16, 10, 0.55);
}

.menu-item legend {
  padding: 0 6px;
  color: #ffe27a;
  font-weight: 700;
}

.menu-item .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.menu-preview {
  min-height: 320px;
  padding: 28px 20px;
  border: 3px solid #1e1408;
  background:
    linear-gradient(180deg, rgba(18, 42, 28, 0.9), rgba(8, 16, 10, 0.95));
  box-shadow: 6px 6px 0 #1e1408;
  text-align: center;
}

.preview-title {
  margin: 0;
  font-size: 28px;
  color: #ffe27a;
}

.preview-sub {
  margin: 8px 0 24px;
  color: #c7d4b8;
}

.preview-buttons {
  display: grid;
  gap: 10px;
  width: min(260px, 100%);
  margin: 0 auto;
}

.preview-buttons button {
  width: 100%;
}

.play-hub {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  color: #f4f7ea;
}

.play-hub__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.play-hub__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.play-hub__shade {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 7, 0.72);
}

.play-hub__top,
.play-hub__main {
  position: relative;
  z-index: 1;
}

.play-hub__top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.play-hub__top .admin-meta {
  margin: 0;
  flex: 1 1 auto;
}

.play-hub__main {
  min-height: calc(100dvh - 110px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.play-hub__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 22px 48px;
  border: 4px solid #1e1408;
  background: #e7c23a;
  color: #1e1408;
  font: 700 42px/1 "Pixelify Sans", sans-serif;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 8px 8px 0 #1e1408;
  text-transform: uppercase;
}

.play-hub__button:hover,
.play-hub__button:focus-visible {
  background: #ffe27a;
  outline: none;
}

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

  .admin-top {
    flex-direction: column;
  }

  .play-hub__button {
    min-width: 180px;
    font-size: 34px;
    padding: 18px 36px;
  }
}
