:root {
  --orange-main: #ff4f22;
  --orange-deep: #d63a15;
  --panel-transparency: rgba(20, 20, 20, 0.55);
  --panel-outline: #ff5330;
  --white-main: #f8f8f8;
  --white-soft: #e6e6e6;
  --checker-a: #3f3f3f;
  --checker-b: #575757;
  --admin-bg: #11100f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

.menu-screen {
  background-image:
    linear-gradient(45deg, var(--checker-a) 25%, transparent 25%),
    linear-gradient(-45deg, var(--checker-a) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--checker-a) 75%),
    linear-gradient(-45deg, transparent 75%, var(--checker-a) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  background-color: var(--checker-b);
  color: var(--white-main);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.menu-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58));
  pointer-events: none;
  z-index: 1;
}

.menu-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.menu-bg-glow {
  display: none;
}

.menu-bg-glow-a {
  width: 360px;
  height: 360px;
  background: rgba(255, 65, 0, 0.35);
  top: -80px;
  left: -80px;
}

.menu-bg-glow-b {
  width: 280px;
  height: 280px;
  background: rgba(255, 196, 0, 0.28);
  right: -80px;
  bottom: -60px;
}

.menu-layout {
  width: min(1760px, 98vw);
  margin: 0 auto;
  padding: 0.7rem 0.8rem 0.8rem;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.left-layout-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.left-top-row {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 0.8rem;
  align-items: start;
}

.left-panel {
  background: var(--panel-transparency);
  border: 3px solid var(--panel-outline);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  backdrop-filter: blur(1.8px);
  -webkit-backdrop-filter: blur(1.8px);
}

.left-players-panel {
  display: flex;
  flex-direction: column;
  background: rgba(8, 8, 12, 0.8);
  border-width: 4px;
  padding: 0.65rem 0.7rem 0.7rem;
  margin-top: 0.65rem;
}

.left-panel-title {
  margin: 0;
  color: var(--orange-main);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(2.4rem, 4vw, 5.5rem);
  line-height: 0.95;
  text-align: center;
}

.left-panel-subtitle {
  margin: 0.25rem 0 0.3rem;
  color: var(--orange-main);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 2.6rem);
  text-align: center;
}

.left-panel-list {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--white-main);
  font-size: clamp(1.2rem, 2.2vw, 3.2rem);
  line-height: 1.15;
}

.left-panel-list li {
  margin: 0.18rem 0;
}

.left-bowling-panel .left-panel-title {
  font-size: clamp(2.8rem, 4.6vw, 6rem);
}

.left-daily-panel {
  width: min(72%, 1080px);
  margin: 0 auto;
  border-color: #ff8c2d;
  background: rgba(7, 12, 28, 0.78);
}

.left-daily-title {
  margin: 0;
  color: #1ca3ff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  text-align: center;
}

.left-daily-panel .left-panel-list {
  text-align: center;
  font-size: clamp(1.1rem, 1.45vw, 2.1rem);
}

.players-lines {
  margin-top: 0;
  padding: 0.7rem 0.2rem 0.2rem 0.15rem;
}

.players-line {
  margin: 0.26rem 0;
  font-size: clamp(1.35rem, 2.25vw, 3rem);
  line-height: 1.05;
  color: #ffffff;
  text-transform: none;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.004em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
  white-space: nowrap;
}

.players-base {
  white-space: nowrap;
}

.players-bonus {
  color: #ffd64c;
  margin-left: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.bowling-day {
  margin: 0.1rem 0 0.25rem;
  text-align: center;
  color: #ffffff;
  font-size: clamp(2.3rem, 3.9vw, 5.2rem);
  line-height: 1;
}

.bowling-rates {
  margin-top: 0.2rem;
}

.bowling-rate-row {
  margin: 0.05rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.bowling-label {
  color: #ffffff;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 2.9vw, 4rem);
  line-height: 1;
}

.bowling-price {
  color: #ffffff;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 3.8vw, 5rem);
  line-height: 0.95;
}

.bowling-note {
  margin: 0.35rem 0 0;
  text-align: center;
  color: #f0f0f0;
  font-size: clamp(0.95rem, 1.2vw, 1.5rem);
  line-height: 1.15;
  text-transform: uppercase;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
}

.menu-announcements {
  margin-top: 0.5rem;
  text-align: center;
}

.menu-announcements p {
  margin: 0.08rem 0;
  color: #ff5a34;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 1.45vw, 2rem);
  line-height: 1.05;
}

.left-layout .menu-announcements p {
  color: #ffffff;
}

.menu-announcements p::before,
.menu-announcements p::after {
  content: "-";
  margin: 0 0.45rem;
}

.menu-heading {
  font-size: clamp(2.3rem, 4.4vw, 5.3rem);
  letter-spacing: 0.05em;
  color: var(--orange-main);
  text-transform: uppercase;
  text-align: center;
  margin: 0.2rem 0 0.65rem;
  text-shadow: 0 2px 0 #220f0b, 0 0 16px rgba(255, 98, 40, 0.45);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.7rem;
  align-items: stretch;
}

.attraction-card {
  background: var(--panel-transparency);
  border: 3px solid var(--panel-outline);
  border-radius: 14px;
  backdrop-filter: blur(1.8px);
  -webkit-backdrop-filter: blur(1.8px);
  padding: 0.65rem 0.7rem;
  box-shadow: inset 0 0 0 1px rgba(255, 130, 80, 0.25);
  animation: rise 0.6s ease forwards;
  opacity: 0;
  min-height: 165px;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin: 0;
  color: var(--orange-main);
  font-size: clamp(1.35rem, 2.5vw, 3.1rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-price {
  font-size: clamp(2rem, 3.5vw, 4.2rem);
  color: var(--white-main);
  font-weight: 800;
  line-height: 0.95;
  margin-top: 0.3rem;
}

.card-subtitle {
  margin: 0.35rem 0 0.15rem;
  color: var(--white-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-size: clamp(1rem, 1.4vw, 2rem);
}

.card-details {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--white-main);
  font-size: 1.18rem;
  line-height: 1.12;
  letter-spacing: 0.01em;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-details li {
  margin: 0.08rem 0;
}

.closed-tag {
  margin: 0.35rem 0 0.25rem;
  color: #ffb58d;
  font-size: clamp(0.95rem, 1.2vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.is-closed .card-price {
  color: #f3d6ca;
}

.schedule-wrap {
  margin-top: 0.1rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.schedule-title {
  margin: 0;
  color: #ffd1b1;
  font-size: clamp(1rem, 1.35vw, 1.7rem);
  text-transform: uppercase;
}

.schedule-list {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.schedule-list li {
  margin: 0.08rem 0;
}

.right-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
}

.right-layout .attraction-card,
.right-layout .card-title,
.right-layout .card-price,
.right-layout .card-subtitle,
.right-layout .card-details,
.right-layout .closed-tag,
.right-layout .schedule-title,
.right-layout .schedule-list {
  text-align: center;
}

@media (max-width: 1400px) {
  .right-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1150px) {
  .right-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.center-image-tile {
  border: 3px solid var(--panel-outline);
  border-radius: 14px;
  background: rgba(30, 30, 30, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  min-height: 200px;
}

.center-image {
  width: 108%;
  height: 108%;
  object-fit: contain;
  padding: 0;
  transform: translateY(2%);
}

.menu-footer {
  margin-top: auto;
  border: 3px solid var(--panel-outline);
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.7);
  padding: 0.2rem 0.8rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.menu-footer p {
  margin: 0;
  color: var(--white-main);
  font-size: clamp(1.6rem, 2.16vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.left-layout .menu-footer p {
  font-size: clamp(0.9rem, 1.2vw, 1.6rem);
}

.menu-footer p + p::before {
  content: "★";
  color: #75e33d;
  margin-right: 0.6rem;
}

.error-msg {
  text-align: center;
  color: #ffae95;
  font-size: 1.1rem;
}

.admin-shell {
  background: radial-gradient(circle at 10% 0%, #2b160f 0%, var(--admin-bg) 42%);
  color: #f4e8d9;
  min-height: 100vh;
}

.admin-wrap {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 1.3rem 0 2.5rem;
}

.admin-header h1 {
  margin: 0;
  color: var(--orange-main);
}

.admin-header p {
  margin: 0.4rem 0 1rem;
  color: #cfb39a;
}

.admin-card {
  background: rgba(16, 10, 8, 0.85);
  border: 1px solid rgba(255, 106, 65, 0.8);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  padding: 1rem;
}

.hidden {
  display: none;
}

label {
  display: block;
  margin: 0.65rem 0;
  font-weight: 700;
  color: #ffd0a8;
}

input,
textarea,
button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #704430;
  background: #20130e;
  color: #f7e8d6;
  padding: 0.6rem;
  font-size: 0.98rem;
}

textarea {
  resize: vertical;
}

button {
  cursor: pointer;
  border-color: #ff6a00;
  background: linear-gradient(180deg, #ff6c00, #d34d00);
  color: #120a06;
  font-weight: 800;
}

.upload-panel {
  border: 1px solid #6f4329;
  border-radius: 10px;
  padding: 0.7rem;
  background: rgba(26, 15, 10, 0.6);
  margin: 0.65rem 0;
}

.upload-panel h3 {
  margin: 0;
  color: #ff8f4c;
  font-size: 1.1rem;
}

.upload-hint {
  margin: 0.3rem 0 0.55rem;
  color: #d2b295;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

#uploadVideoBtn {
  width: auto;
  min-width: 150px;
}

.editor-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.tab-bar {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  width: auto;
  min-width: 140px;
  background: #2b1a12;
  color: #ffc98a;
}

.tab-btn.active {
  background: linear-gradient(180deg, #ff8126, #da5600);
  color: #1f1109;
}

.danger-btn {
  width: auto;
  background: linear-gradient(180deg, #dd3925, #991a10);
  color: #ffe6df;
}

.cards-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
  margin: 0.6rem 0 0.9rem;
}

.cards-toolbar {
  margin-top: 0.6rem;
  margin-bottom: 0.5rem;
}

#addAttractionBtn {
  width: auto;
  min-width: 180px;
}

.daily-specials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem;
}

.daily-specials-grid label {
  margin: 0;
}

.daily-tagline-grid {
  margin-top: 0.55rem;
}

.daily-tagline-grid textarea {
  min-height: 82px;
}

.bowling-settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.card-editor-box {
  border: 1px solid #5f3826;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  margin: 0;
}

.card-editor-box legend {
  color: #ff8d44;
  font-weight: 800;
  padding: 0 0.3rem;
}

.inline-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.inline-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.inline-toggle span {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: #ffd4b5;
}

.card-box-actions {
  margin-top: 0.5rem;
}

.remove-attraction-btn {
  width: auto;
  min-width: 150px;
  background: linear-gradient(180deg, #9c3120, #702015);
  color: #ffe3da;
}

.remove-attraction-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-actions button {
  width: auto;
  min-width: 190px;
}

.status-text {
  min-height: 1.2rem;
  color: #ffbc80;
  margin: 0.4rem 0 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.hub {
  width: min(760px, 90vw);
  margin: 0 auto;
  padding: 2.8rem 0;
}

.hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hub-links a {
  color: #ffe9d0;
  text-decoration: none;
  border: 1px solid #ff7b26;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 102, 0, 0.2);
}

@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(18px, -14px) scale(1.08);
  }
}

@media (max-width: 900px) {
  .menu-layout {
    width: 97vw;
    padding: 0.7rem 0.4rem;
  }

  .left-top-row {
    grid-template-columns: 1fr;
  }

  .left-daily-panel {
    width: 100%;
  }

  .left-players-panel {
    min-height: auto;
    margin-top: 0;
  }

  .players-lines {
    padding-bottom: 0.2rem;
  }

  .players-line {
    white-space: normal;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .players-base,
  .players-bonus {
    white-space: normal;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .right-grid {
    grid-template-columns: 1fr;
  }

  .right-grid .attraction-card,
  .right-grid .center-image-tile {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .menu-footer {
    border-radius: 12px;
    gap: 0.3rem;
  }

  .editor-top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-bar {
    width: 100%;
  }

  .tab-btn,
  .danger-btn {
    width: 100%;
  }

  .upload-row {
    grid-template-columns: 1fr;
  }

  #uploadVideoBtn {
    width: 100%;
  }
}
