/* Authoritative Ekaterinburg After School theme. Tagil remains isolated above. */
html.rave-disco-document body {
  background: #e65312;
}

.rave-disco-theme,
.rave-disco-theme.app-tab-info {
  --bg: #e65312;
  --surface: #f5f2e9;
  --ink: #0a0a09;
  --muted: #514b43;
  --soft: #ddd7ca;
  --line: rgba(10, 10, 9, 0.38);
  --pink: #d7201b;
  --red: #e65312;
  --red-dark: #0a0a09;
  --red-hot: #d7201b;
  --blue: #f5f2e9;
  --violet: #0a0a09;
  --lemon: #ffffff;
  --green: #e65312;
  --school-orange: #e65312;
  --school-red: #d7201b;
  --paper: #f5f2e9;
  --metal: #a9a69f;
  --display-font: Impact, Haettenschweiler, "Arial Black", "Arial Narrow", sans-serif;
  position: relative;
  color: var(--ink);
  background: var(--school-orange);
  isolation: isolate;
}

.rave-disco-theme::before,
.rave-disco-theme::after {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: 5px;
  height: auto;
  clip-path: none;
  background: rgba(79, 20, 2, 0.4);
  box-shadow: 3px 0 0 rgba(255, 144, 69, 0.3);
  opacity: 1;
  transform: none;
  content: "";
  pointer-events: none;
}

.rave-disco-theme::before { left: 24%; }
.rave-disco-theme::after { right: 24%; }

.rave-disco-theme .page {
  position: relative;
  z-index: 1;
}

.rave-disco-theme .event-feed,
.rave-disco-theme .orders,
.rave-disco-theme .album-list {
  gap: 24px;
}

.rave-disco-theme .event-preview,
.rave-disco-theme .empty-state,
.rave-disco-theme .order-card,
.rave-disco-theme .menu-card,
.rave-disco-theme .legal-card,
.rave-disco-theme .checkout-card,
.rave-disco-theme .qr-modal-card {
  overflow: visible;
  border: 4px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.rave-disco-theme .event-preview {
  gap: 13px;
  padding: 8px 8px 20px;
}

.rave-disco-theme .event-preview::before {
  content: "★  RAVE AFTER SCHOOL  ★";
  position: absolute;
  top: -10px;
  right: 18px;
  bottom: auto;
  left: auto;
  z-index: 4;
  width: auto;
  height: auto;
  padding: 5px 9px;
  border: 3px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  clip-path: none;
  filter: none;
  font-family: var(--display-font);
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(1deg);
}

.rave-disco-theme .event-poster-button,
.rave-disco-theme .detail-poster,
.rave-disco-theme .album-card button {
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--school-red);
}

.rave-disco-theme .event-poster-button::after,
.rave-disco-theme .detail-poster::after,
.rave-disco-theme .album-card button::after {
  display: none;
}

.rave-disco-theme .event-poster-button img,
.rave-disco-theme .detail-poster img {
  border-radius: 0;
  filter: saturate(1.04) contrast(1.05);
}

.rave-disco-theme .rave-wordmark,
.rave-disco-theme .event-preview-copy h2,
.rave-disco-theme .event-detail h1,
.rave-disco-theme .page-title,
.rave-disco-theme .checkout-card h2,
.rave-disco-theme .order-card h2,
.rave-disco-theme .empty-state h2,
.rave-disco-theme .info-hero h1,
.rave-disco-theme .qr-modal-head h2,
.rave-disco-theme .album-card span {
  color: var(--ink);
  font-family: var(--display-font);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: none;
}

.rave-disco-theme .event-preview-copy h2,
.rave-disco-theme .event-detail h1,
.rave-disco-theme .page-title {
  font-size: 39px;
  line-height: 0.92;
}

.rave-disco-theme .event-preview-copy::before,
.rave-disco-theme .event-detail::before {
  content: "SCHOOL · FRIENDS · MUSIC · RAVE";
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 9px 0 8px;
  padding: 6px 9px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: #ffffff;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  transform: rotate(-1deg);
}

.rave-disco-theme .event-chip-row {
  grid-template-columns: 0.8fr 1.35fr 0.85fr 0.65fr;
  gap: 6px;
}

.rave-disco-theme .event-chip,
.rave-disco-theme .event-chip:nth-child(even) {
  min-width: 0;
  min-height: 55px;
  padding-inline: 6px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--ink);
  transform: none;
}

.rave-disco-theme .event-chip-blue,
.rave-disco-theme .event-chip-pink {
  background: var(--school-orange);
}

.rave-disco-theme .event-chip-venue,
.rave-disco-theme .event-chip.event-chip-venue {
  background: var(--ink) !important;
}

.rave-disco-theme .event-chip strong,
.rave-disco-theme .event-chip small {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--display-font);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none;
}

.rave-disco-theme .event-chip-venue strong,
.rave-disco-theme .event-chip-venue small {
  color: var(--paper) !important;
}

.rave-disco-theme .event-preview-copy p,
.rave-disco-theme .event-detail .lead,
.rave-disco-theme .empty-state p,
.rave-disco-theme .checkout-card p,
.rave-disco-theme .legal-card p,
.rave-disco-theme .detail-text p,
.rave-disco-theme .event-description,
.rave-disco-theme .event-meta {
  color: var(--muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42;
}

.rave-disco-theme .lineup {
  gap: 7px;
}

.rave-disco-theme .lineup span,
.rave-disco-theme .lineup span:nth-child(odd),
.rave-disco-theme .lineup span:nth-child(even) {
  min-height: 38px;
  padding: 8px 12px;
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 3px 3px 0 var(--school-red);
  transform: none;
}

.rave-disco-theme .lineup span:nth-child(even) {
  background: var(--school-orange);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.rave-disco-theme .event-badge,
.rave-disco-theme .checkout-event-badge {
  min-height: 40px;
  padding-inline: 12px;
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--school-red);
  color: #ffffff;
  text-shadow: none;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1deg);
  animation: after-school-badge 1.8s steps(2, end) infinite;
}

.rave-disco-theme .event-badge-below-poster {
  position: relative;
  inset: auto;
  width: fit-content;
  max-width: calc(100% - 8px);
  margin: -3px 4px 1px;
  justify-self: start;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  transform-origin: left center;
}

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

.rave-disco-theme .primary,
.rave-disco-theme .secondary {
  min-height: 56px;
  border: 4px solid var(--ink);
  border-radius: 2px;
  color: #ffffff;
  background: var(--school-red);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: 5px 5px 0 var(--ink);
}

.rave-disco-theme .secondary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--school-orange);
}

.rave-disco-theme .primary:disabled,
.rave-disco-theme .secondary:disabled {
  background: #85817a;
  color: #e6e1d7;
  box-shadow: 4px 4px 0 #4d4a45;
  opacity: 1;
}

.rave-disco-theme .status-pill,
.rave-disco-theme .ticket-qr,
.rave-disco-theme .tier-summary,
.rave-disco-theme .ticket-tier-option,
.rave-disco-theme .checkout-price-card,
.rave-disco-theme .ticket-quantity-summary,
.rave-disco-theme .ticket-quantity-control {
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.rave-disco-theme .status-pill,
.rave-disco-theme .ticket-tier-option.active,
.rave-disco-theme .checkout-price-card {
  background: var(--school-orange);
  color: var(--ink);
}

.rave-disco-theme .ticket-tier-option small,
.rave-disco-theme .ticket-tier-option:not(.active) small,
.rave-disco-theme .promo-feedback,
.rave-disco-theme .qr-modal-card small {
  color: var(--muted);
}

.rave-disco-theme .phone-field,
.rave-disco-theme input,
.rave-disco-theme select {
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(10, 10, 9, 0.18);
}

.rave-disco-theme .phone-field:focus-within,
.rave-disco-theme input:focus,
.rave-disco-theme select:focus {
  outline: 3px solid var(--school-orange);
  outline-offset: 1px;
  box-shadow: 3px 3px 0 var(--ink);
}

.rave-disco-theme .checkout-card {
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: var(--paper);
  box-shadow: 0 -6px 0 var(--school-red), 0 -10px 0 var(--ink);
}

.rave-disco-theme .checkout-title {
  padding-bottom: 9px;
  border-bottom: 3px solid var(--ink);
}

.rave-disco-theme .checkout-title button,
.rave-disco-theme .qr-close-button,
.rave-disco-theme .ticket-quantity-control button {
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--school-orange);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.rave-disco-theme .checkout-card .phone-field span {
  border-right: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.rave-disco-theme .nirvana-seat-picker,
.rave-disco-theme .nirvana-plan,
.rave-disco-theme .seat-picker,
.rave-disco-theme .seat-map {
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: #ffffff;
}

.rave-disco-theme .nirvana-price-legend button {
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.rave-disco-theme .nirvana-price-legend button.active {
  background: var(--school-orange);
  box-shadow: inset 0 -4px 0 var(--ink), 3px 3px 0 var(--ink);
}

.rave-disco-theme .nirvana-table {
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--paper);
}

.rave-disco-theme .nirvana-table.vip .nirvana-table-seat::before {
  background: var(--school-red);
}

.rave-disco-theme .nirvana-table.super_vip .nirvana-table-seat::before {
  background: var(--school-orange);
}

.rave-disco-theme .nirvana-table-seat.selected::before,
.rave-disco-theme .nirvana-table.super_vip .nirvana-table-seat.selected::before {
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--school-red), 0 0 0 4px var(--ink);
  transform: scale(1.12);
}

.rave-disco-theme .nirvana-table .nirvana-table-seat:disabled::before,
.rave-disco-theme .nirvana-table .nirvana-table-seat.occupied::before {
  background: #777b82 !important;
  box-shadow: none;
  transform: none;
}

.rave-disco-theme .bottom-nav {
  width: min(560px, calc(100% - 20px));
  gap: 4px;
  padding: 5px;
  border: 4px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 7px 0 var(--ink), 0 14px 28px rgba(55, 14, 2, 0.28);
  backdrop-filter: none;
}

.rave-disco-theme .bottom-nav button {
  border-radius: 2px;
  color: var(--ink);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.rave-disco-theme .bottom-nav button.active {
  background: var(--school-orange);
  color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--school-red);
}

.rave-disco-theme .nav-icon,
.rave-disco-theme .bottom-nav button:nth-child(2) .nav-icon,
.rave-disco-theme .bottom-nav button:nth-child(3) .nav-icon,
.rave-disco-theme .bottom-nav button.active .nav-icon {
  border: 2px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: inherit;
}

.rave-disco-theme .bottom-nav button.active .nav-icon {
  background: var(--ink);
  color: var(--paper);
}

.rave-disco-theme .info-hero {
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 3px;
  background: var(--school-orange);
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.rave-disco-theme .info-hero::before {
  color: rgba(10, 10, 9, 0.16);
}

.rave-disco-theme .info-row,
.rave-disco-theme .info-page .info-row,
.rave-disco-theme .legal-step,
.rave-disco-theme .app-tab-info .legal-step {
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.rave-disco-theme .info-icon,
.rave-disco-theme .info-page .info-icon,
.rave-disco-theme .legal-step span,
.rave-disco-theme .app-tab-info .legal-step span {
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--school-red);
  color: #ffffff;
  box-shadow: 2px 2px 0 var(--ink);
}

.rave-disco-theme .sheet-backdrop,
.rave-disco-theme .qr-modal-backdrop {
  background: rgba(10, 10, 9, 0.82);
}

.rave-disco-theme .qr-thumb-button,
.rave-disco-theme .qr-modal-image {
  border: 4px solid var(--ink);
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--school-orange);
}

.rave-disco-theme .skeleton {
  border: 4px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  animation: none;
}

html.rave-disco-document #toast {
  border: 3px solid #0a0a09;
  border-radius: 2px;
  background: #f5f2e9;
  color: #0a0a09;
  box-shadow: 4px 4px 0 #d7201b;
}

@media (max-width: 620px) {
  .rave-disco-theme .event-preview-copy h2,
  .rave-disco-theme .event-detail h1,
  .rave-disco-theme .page-title {
    font-size: 33px;
  }
}

@media (max-width: 390px) {
  .rave-disco-theme .page {
    padding-inline: 12px;
  }

  .rave-disco-theme .event-preview-copy h2,
  .rave-disco-theme .event-detail h1,
  .rave-disco-theme .page-title {
    font-size: 29px;
  }

  .rave-disco-theme .event-chip-row {
    gap: 4px;
  }

  .rave-disco-theme .event-chip {
    padding-inline: 3px;
  }

  .rave-disco-theme .event-chip strong {
    font-size: 13px;
  }

  .rave-disco-theme .event-chip:first-child strong {
    font-size: 20px;
  }

  .rave-disco-theme .bottom-nav {
    width: calc(100% - 12px);
  }
}
