.snack-mayor-page {
  --bg: #081119;
  --panel: rgba(14, 24, 28, 0.92);
  --panel-soft: rgba(255, 244, 224, 0.08);
  --line: rgba(255, 203, 125, 0.22);
  --line-strong: rgba(255, 203, 125, 0.36);
  --text: #fff5df;
  --muted: rgba(255, 237, 204, 0.74);
  --faint: rgba(255, 237, 204, 0.54);
  --teal: #62d9bc;
  --gold: #ffc65a;
  --orange: #ff7849;
  --red: #f04c35;
  --green: #83e49e;
  color: var(--text);
  background:
    linear-gradient(rgba(8, 17, 25, 0.82), rgba(8, 17, 25, 0.96)),
    url("../assets/games/restaurant-management-games/snack-mayor-operator-keyart.png") center top / cover fixed,
    #081119;
  scroll-padding-top: 180px;
}

.snack-mayor-page * {
  box-sizing: border-box;
  min-width: 0;
}

.snack-mayor-page h1,
.snack-mayor-page h2,
.snack-mayor-page h3,
.snack-mayor-page p,
.snack-mayor-page span,
.snack-mayor-page strong,
.snack-mayor-page a,
.snack-mayor-page button,
.snack-mayor-page textarea,
.snack-mayor-page li {
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.snack-mayor-page .site-main {
  gap: 22px;
}

.snack-hero,
.snack-game-shell,
.snack-mayor-page .site-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 30, 34, 0.94), rgba(7, 14, 20, 0.96));
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.snack-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  min-height: min(76vh, 720px);
}

.snack-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(26px, 5vw, 64px);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 198, 90, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(8, 17, 25, 0.94), rgba(31, 18, 16, 0.84));
}

.snack-hero-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
}

.snack-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.snack-hero-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #0a1319;
}

.snack-hero-visual video,
.snack-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.snack-hero-visual video + img {
  display: none;
}

.snack-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 25, 0.48), transparent 40%),
    linear-gradient(180deg, transparent 45%, rgba(8, 17, 25, 0.68));
  pointer-events: none;
}

.snack-hero-visual span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: calc(100% - 36px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--text);
  background: rgba(8, 17, 25, 0.78);
  font-size: 12px;
  font-weight: 950;
}

.site-kicker,
.snack-mayor-page .site-kicker {
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-actions,
.hero-promise-list,
.snack-game-head,
.panel-title-row,
.event-meta,
.decision-actions,
.snack-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.site-actions,
.snack-game-head,
.panel-title-row,
.event-meta,
.decision-actions,
.snack-controls {
  justify-content: space-between;
}

.hero-promise-list span,
.site-primary-link,
.site-secondary-link,
.event-meta span,
#best-audience-pill,
#reaction-day,
#sim-phase,
#operation-focus-pill,
#plan-readout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.hero-promise-list span {
  border: 1px solid rgba(255, 245, 223, 0.14);
  color: var(--muted);
  background: rgba(255, 245, 223, 0.07);
}

.snack-mayor-page .site-primary-link,
.snack-mayor-page .site-secondary-link,
.snack-mayor-page button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  font: inherit;
  font-weight: 950;
  line-height: 1.12;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.snack-mayor-page .site-primary-link,
.snack-mayor-page button,
#submit-decision-btn {
  border: 0;
  background: linear-gradient(180deg, #ff8058, #d53022);
  box-shadow: 0 14px 32px rgba(213, 48, 34, 0.3);
}

.snack-mayor-page .site-secondary-link,
#sample-decision-btn,
#save-season-btn,
#new-season-btn,
#replay-btn {
  border: 1px solid var(--line);
  background: rgba(255, 245, 223, 0.08);
  box-shadow: none;
}

.snack-mayor-page button:hover,
.snack-mayor-page button:focus-visible,
.snack-mayor-page .site-primary-link:hover,
.snack-mayor-page .site-secondary-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(213, 48, 34, 0.34);
  outline: none;
}

.snack-mayor-page button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.snack-game-shell {
  padding: clamp(16px, 3vw, 28px);
  scroll-margin-top: 180px;
}

.snack-game-head {
  margin-bottom: 18px;
}

.snack-game-head h2,
.end-screen h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1;
}

.snack-board {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 18px;
}

.decision-panel,
.status-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.event-card,
.plan-panel,
.tactics-panel,
.shop-floor-panel,
.season-card,
.metrics-grid,
.fallout-card,
.audience-card,
.reaction-card,
.end-screen,
.metric-tile,
.district-chip,
.final-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.1), rgba(255, 245, 223, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 245, 223, 0.07);
}

.event-card,
.plan-panel,
.tactics-panel,
.shop-floor-panel,
.fallout-card,
.audience-card,
.reaction-card,
.season-card,
.end-screen {
  padding: clamp(14px, 2.4vw, 20px);
}

.event-card h3 {
  margin: 12px 0 10px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
}

.event-card p,
.operation-summary,
.metric-summary,
.next-hook,
.reaction-card li,
.sim-card p,
.snack-mayor-page .site-section p,
.end-screen p {
  color: var(--muted);
  line-height: 1.55;
}

.event-hook,
.headline {
  color: var(--teal) !important;
  font-weight: 900;
}

.event-meta span,
#best-audience-pill,
#reaction-day,
#sim-phase,
#operation-focus-pill,
#plan-readout {
  color: var(--teal);
  background: rgba(98, 217, 188, 0.12);
}

.event-meta span:first-child,
#sim-phase,
#plan-readout {
  color: var(--gold);
  background: rgba(255, 198, 90, 0.13);
}

.recap-stage {
  position: relative;
  min-height: 260px;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0a1319;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}

.recap-video {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.recap-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05) brightness(0.92);
}

.recap-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 32%, transparent 0%, rgba(8, 17, 25, 0.12) 45%, rgba(8, 17, 25, 0.62) 100%),
    linear-gradient(180deg, rgba(8, 17, 25, 0.04), rgba(8, 17, 25, 0.64));
  pointer-events: none;
}

.recap-head {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.recap-head span,
.recap-head button {
  pointer-events: auto;
}

.recap-head span {
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--text);
  background: rgba(8, 17, 25, 0.72);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.recap-head button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.recap-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  border: 1px solid rgba(255, 245, 223, 0.16);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(8, 17, 25, 0.78);
  backdrop-filter: blur(12px);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 850;
  line-height: 1.38;
}

.recap-dots {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 74px;
  display: flex;
  gap: 6px;
}

.recap-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 245, 223, 0.34);
}

.recap-dots span.is-active {
  width: 24px;
  background: var(--gold);
}

.recap-actors {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.55;
  pointer-events: none;
}

.recap-actors span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.order-ticket {
  width: 48px;
  height: 30px;
  border-radius: 10px !important;
  background: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  animation: floatTicket 2.4s ease-in-out infinite;
}

.order-ticket::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 25px;
  height: 5px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 10px 0 rgba(8, 17, 25, 0.25);
}

.pulse-dot {
  width: 13px;
  height: 13px;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 198, 90, 0.5);
  animation: pulseDot 1.8s ease-out infinite;
}

.route-line {
  width: 180px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: routeSweep 2.7s ease-in-out infinite;
}

@keyframes floatTicket {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 198, 90, 0.5); transform: scale(0.82); }
  70% { box-shadow: 0 0 0 20px rgba(255, 198, 90, 0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(255, 198, 90, 0); transform: scale(0.82); }
}

@keyframes routeSweep {
  0%, 100% { opacity: 0.28; transform: scaleX(0.45); }
  50% { opacity: 0.95; transform: scaleX(1); }
}

.plan-panel {
  display: grid;
  gap: 14px;
}

.tactics-panel {
  display: grid;
  gap: 14px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.plan-control {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 245, 223, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 17, 25, 0.48);
}

.plan-control span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-control strong {
  min-height: 34px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.14;
}

.plan-control input {
  width: 100%;
  accent-color: var(--gold);
}

.plan-control input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 245, 223, 0.18);
}

.plan-control input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid #21150c;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.tactics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tactics-grid button {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 112px;
  border: 1px solid rgba(255, 245, 223, 0.14);
  border-radius: 8px;
  padding: 13px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.09), rgba(8, 17, 25, 0.36));
  box-shadow: none;
}

.tactics-grid button span {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.tactics-grid button strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.tactics-grid button.is-active {
  color: #071116;
  border-color: rgba(255, 198, 90, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 198, 90, 0.96), rgba(255, 120, 73, 0.88));
  box-shadow: 0 12px 28px rgba(255, 120, 73, 0.2);
}

.tactics-grid button.is-active span,
.tactics-grid button.is-active strong {
  color: #1d120b;
}

.tactics-grid button:disabled:not(.is-active) {
  opacity: 0.45;
}

.shop-floor-panel {
  display: grid;
  gap: 12px;
}

.shop-floor {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: repeat(2, minmax(108px, 1fr));
  gap: 10px;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 17, 25, 0.48), rgba(8, 17, 25, 0.22)),
    url("../assets/games/restaurant-management-games/frames/kitchen-09.jpg") center / cover;
}

.shop-floor::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(98, 217, 188, 0.14), transparent 45%, rgba(255, 120, 73, 0.14)),
    radial-gradient(circle at 22% 22%, rgba(255, 198, 90, 0.28), transparent 28%);
  pointer-events: none;
}

.floor-zone {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 6px;
  border: 1px solid rgba(255, 245, 223, 0.2);
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(180deg, rgba(8, 17, 25, 0.32), rgba(8, 17, 25, 0.82));
}

.floor-zone::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(98, 217, 188, 0.14);
}

.floor-zone[data-state="risk"]::after {
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(240, 76, 53, 0.15);
}

.floor-zone[data-state="money"]::after {
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(255, 198, 90, 0.16);
}

.floor-zone span,
.season-card span,
.metric-tile span,
.final-grid span,
.district-chip span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.floor-zone strong {
  color: var(--text);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.05;
}

.operation-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.operation-controls button {
  min-height: 44px;
  border: 1px solid rgba(255, 245, 223, 0.14);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--text);
  background: rgba(255, 245, 223, 0.08);
  box-shadow: none;
  font-size: 13px;
}

.operation-controls button.is-active {
  color: #071116;
  border-color: rgba(98, 217, 188, 0.6);
  background: linear-gradient(180deg, var(--teal), #30bda9);
}

.decision-label {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

#decision-input,
#share-result-text {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(8, 17, 25, 0.72);
  font: inherit;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 245, 223, 0.06);
}

#decision-input::placeholder {
  color: rgba(255, 237, 204, 0.5);
}

#decision-input:focus,
#share-result-text:focus {
  border-color: rgba(98, 217, 188, 0.58);
  outline: 3px solid rgba(98, 217, 188, 0.12);
}

.decision-warning {
  min-height: 22px;
  margin: 0;
  color: #ffb09b;
  font-size: 14px;
  font-weight: 850;
}

.season-card {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(180px, 1fr);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.season-card span {
  white-space: nowrap;
}

.season-card strong,
.final-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.05;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.metric-tile {
  padding: 12px;
  background: rgba(8, 17, 25, 0.42);
}

.metric-tile strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1;
}

.metric-bar,
.audience-bar {
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 245, 223, 0.15);
  overflow: hidden;
}

.metric-bar span,
.audience-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--red));
}

.panel-title-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.simulation-feed,
.audience-grid,
.reaction-card ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sim-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  background: rgba(8, 17, 25, 0.42);
}

.sim-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #071116;
  background: linear-gradient(180deg, var(--teal), #30bda9);
  font-size: 13px;
  font-weight: 950;
}

.sim-card[data-tone="risk"] .sim-icon {
  color: var(--text);
  background: linear-gradient(180deg, var(--orange), var(--red));
}

.sim-card[data-tone="money"] .sim-icon {
  color: #21150c;
  background: linear-gradient(180deg, var(--gold), #ffad3b);
}

.sim-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
}

.district-pulse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.district-chip {
  padding: 10px;
  background: rgba(8, 17, 25, 0.38);
}

.district-chip strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
}

.district-chip.is-active {
  border-color: rgba(98, 217, 188, 0.45);
  background: rgba(98, 217, 188, 0.12);
}

.audience-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.reaction-card ul {
  margin-bottom: 12px;
  padding: 0;
  list-style: none;
}

.reaction-card li {
  border-left: 4px solid rgba(98, 217, 188, 0.68);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(255, 245, 223, 0.07);
  font-size: 14px;
}

.headline,
.metric-summary,
.next-hook {
  margin: 10px 0 0;
}

.headline {
  font-size: 17px;
}

.next-hook {
  color: #ffb09b;
  font-weight: 900;
}

.end-screen {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.end-screen[hidden] {
  display: none;
}

.final-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.final-grid div {
  padding: 14px;
  background: rgba(8, 17, 25, 0.38);
}

.editorial-section {
  color: var(--text);
}

.game-library-grid .game-card {
  background: rgba(255, 245, 223, 0.08);
  border-color: var(--line);
}

@media (max-width: 980px) {
  .snack-hero,
  .snack-board {
    grid-template-columns: 1fr;
  }

  .snack-hero {
    min-height: auto;
  }

  .snack-hero-visual,
  .snack-hero-visual video,
  .snack-hero-visual img {
    min-height: 280px;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tactics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .snack-mayor-page {
    scroll-padding-top: 132px;
  }

  .snack-game-shell {
    padding: 14px;
    scroll-margin-top: 132px;
  }

  .snack-hero-copy {
    padding: 22px;
  }

  .snack-hero-copy h1 {
    font-size: 38px;
    line-height: 1;
  }

  .snack-hero-copy p {
    font-size: 15px;
    line-height: 1.48;
  }

  .snack-hero-visual,
  .snack-hero-visual video,
  .snack-hero-visual img {
    min-height: 190px;
  }

  .recap-stage {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .plan-grid,
  .tactics-grid,
  .metrics-grid,
  .district-pulse,
  .final-grid,
  .shop-floor,
  .season-card {
    grid-template-columns: 1fr;
  }

  .shop-floor {
    grid-template-rows: none;
  }

  .operation-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-row {
    grid-template-columns: 92px minmax(0, 1fr) 34px;
  }
}
