:root {
  --sky-1: #5ba9d6;
  --sky-2: #cfe6f4;
  --sky-3: #eef6fb;
  --accent: #f59ac9;
  --accent-2: #ffd3e9;
  --ink: #1c2a36;
  --card: #ffffff;
  --line: #d9e5ef;
  --shadow: rgba(12, 34, 48, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.65), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.45), transparent 40%),
    linear-gradient(180deg, var(--sky-1), var(--sky-2) 45%, var(--sky-3));
  min-height: 100vh;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.banner {
  position: relative;
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.banner.admin {
  min-height: 220px;
}

.banner-img {
  width: 100%;
  border-radius: 28px;
  display: block;
  box-shadow: 0 24px 60px rgba(13, 58, 78, 0.3);
}

.banner-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 22px 45px var(--shadow);
  backdrop-filter: blur(10px);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #2a5b72;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", sans-serif;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.sub {
  margin: 0;
  color: #35667c;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.status-wrap {
  display: grid;
  gap: 4px;
  min-width: 180px;
  min-height: 62px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f2fbff;
  border: 1px solid #d8eef7;
}

.label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4b7b8e;
}

.status {
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 30px var(--shadow);
}

.note {
  margin: 0;
  color: #446a7a;
  font-size: 0.92rem;
}

.info-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, #fff1f7, #ffe5f2);
  border: 1px solid #f2b3d1;
  color: #7a2b56;
  font-weight: 700;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Baloo 2", sans-serif;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #1d2430;
  box-shadow: 0 12px 22px rgba(245, 154, 201, 0.32);
}

.btn.ghost {
  background: transparent;
  border: 1.5px solid #7aa6be;
  color: #2e5163;
}

.btn:hover {
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(92vw, 360px);
  padding: 12px 16px;
  border-radius: 14px;
  color: #163143;
  font-weight: 700;
  border: 1px solid #bcdced;
  background: linear-gradient(120deg, #eaf7ff, #dff2ff);
  box-shadow: 0 16px 30px rgba(18, 55, 74, 0.24);
  z-index: 9999;
}

.toast.success {
  border-color: #97d9b8;
  background: linear-gradient(120deg, #e8fff1, #d6f9e6);
}

.toast.warning {
  border-color: #f1d19a;
  background: linear-gradient(120deg, #fff7e8, #ffedcf);
}

.toast.error {
  border-color: #efb0c9;
  background: linear-gradient(120deg, #fff0f7, #ffdfee);
}

.slots {
  margin-top: 40px;
}

.section-title {
  margin-bottom: 20px;
}

.slot-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.slot-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d7eef5;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 26px rgba(15, 60, 80, 0.15);
}

.slot-card p {
  margin: 0 0 14px;
  color: #3a6d7d;
}

.game-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.game-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: linear-gradient(120deg, #f6fbff, #eef7ff);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7eef5;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.game-item:hover {
  transform: translateY(-1px);
  border-color: #b9d9e6;
  box-shadow: 0 8px 16px rgba(24, 79, 103, 0.12);
}

.game-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 6px;
  border: 1.5px solid #7faec2;
  background: #ffffff;
  display: grid;
  place-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.game-item input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
  background: linear-gradient(120deg, var(--accent), #f7bee0);
}

.game-item input[type="checkbox"]:checked {
  border-color: #d578ad;
  background: #ffeaf5;
}

.game-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.game-item:has(input[type="checkbox"]:checked) {
  background: linear-gradient(120deg, #ffe7f3, #ffd9ec);
  border-color: #e4a8ca;
  box-shadow: 0 10px 18px rgba(227, 143, 190, 0.24);
}

.game-item span {
  font-weight: 500;
}

.admin-panel {
  margin-top: 28px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
}

.table {
  display: grid;
  gap: 12px;
}

.table-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 1.4fr 1.4fr 0.8fr;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.table-row.summary-two {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.table-row.header {
  background: #eef7fb;
  font-weight: 700;
}

@media (max-width: 840px) {
  .banner-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
