:root {
  --blue: #2c257b;
  --yellow: #ffe500;
  --ink: #17172a;
  --muted: #666b7f;
  --paper: #fffdf4;
  --card: #ffffff;
  --line: #e7e2bd;
  --ok: #178957;
  --danger: #a03a22;
  --shadow: 0 18px 45px rgba(44, 37, 123, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  padding-bottom: 78px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-header {
  align-items: center;
  background: rgba(255, 253, 244, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 44px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.brand img,
.brand span {
  pointer-events: none;
}

.cart-button,
.primary,
.ghost,
.back {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 16px;
}

.cart-button,
.primary {
  background: var(--yellow);
  color: var(--blue);
}

.cart-button strong {
  background: var(--blue);
  border-radius: 999px;
  color: white;
  margin-left: 8px;
  padding: 2px 8px;
}

.ghost,
.back {
  background: #eee9c7;
  color: var(--blue);
}

.small {
  min-height: 38px;
  padding: 0 12px;
}

.app-shell {
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(18px, 5vw, 48px);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.date {
  color: #8a7900;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--blue);
  font-size: clamp(3rem, 9vw, 7.4rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 28px;
  max-width: 940px;
}

h2 {
  color: var(--blue);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.96;
  margin-bottom: 8px;
}

h3 {
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.home-hero {
  display: grid;
  gap: 14px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0;
  max-width: 720px;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.countdown span {
  background: #fff7a8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 900;
  min-width: 106px;
  padding: 10px 12px;
  text-align: center;
}

.countdown strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.choice-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.home-info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.info-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.info-block h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.info-block p,
.info-block ol {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
  margin-bottom: 0;
}

.info-block p + p {
  margin-top: 8px;
}

.info-block ol {
  padding-left: 20px;
}

.map-link {
  align-items: center;
  display: inline-flex;
  margin-top: 14px;
  text-decoration: none;
}

.sponsor-section {
  margin-top: 28px;
}

.sponsor-section h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.sponsor-grid {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px;
}

.sponsor-grid img {
  display: block;
  margin: 0 auto;
  max-height: 76px;
  max-width: 100%;
  object-fit: contain;
}

.choice-card,
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  padding: 26px;
  text-align: center;
}

.choice-image {
  display: block;
  height: 132px;
  margin-bottom: 20px;
  object-fit: contain;
  width: 180px;
}

.choice-image.rowing {
  width: 230px;
}

.choice-card strong,
.tile strong {
  color: var(--blue);
  display: block;
  font-size: 2rem;
  line-height: 1.05;
}

.choice-card small,
.tile small {
  color: var(--muted);
  font-size: 1rem;
}

.recommended-badge {
  background: var(--blue);
  border-radius: 999px;
  color: var(--yellow);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 1000;
  margin-left: 8px;
  padding: 4px 8px;
  vertical-align: middle;
}

.screen-head {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.tile-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-group {
  margin-top: 26px;
}

.tile {
  box-shadow: 0 8px 26px rgba(44, 37, 123, 0.08);
  min-height: 160px;
}

.tile span {
  font-size: 2.2rem;
  font-weight: 900;
}

.tile-icon {
  display: block;
  height: 76px;
  margin-bottom: 12px;
  object-fit: contain;
  width: min(150px, 100%);
}

.panel,
.menu-section,
.checkout-form,
.admin-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(44, 37, 123, 0.07);
  margin-top: 20px;
  padding: 20px;
}

.panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.activity-intro {
  align-items: center;
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr);
  margin-bottom: 20px;
  padding: 16px;
}

.activity-intro img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.activity-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.slot-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.slot-choice {
  align-items: center;
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 16px;
  text-align: left;
}

.slot-choice.selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.slot-choice:disabled {
  opacity: 0.55;
}

.slot-choice strong {
  color: var(--blue);
  font-size: 1.2rem;
}

.slot-choice span {
  color: var(--muted);
  font-weight: 900;
}

.booking-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.booking-message {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  min-height: 0;
}

.booking-message.error {
  background: #ffe5dc;
  color: var(--danger);
  padding: 12px;
}

.hidden {
  display: none !important;
}

.item-list,
.cart-list,
.orders-list,
.stock-list {
  display: grid;
  gap: 12px;
}

.line-item,
.cart-line,
.order-card,
.stock-row {
  align-items: center;
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.line-item p,
.cart-line p,
.order-card p {
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

.line-item small {
  color: var(--blue);
  display: block;
  font-weight: 900;
  margin-top: 8px;
}

.line-actions {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 150px;
}

.stock,
.soldout {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 10px;
}

.stock {
  background: #e6f4ec;
  color: var(--ok);
}

.soldout {
  background: #ffe5dc;
  color: var(--danger);
}

.qty {
  align-items: center;
  display: flex;
  gap: 8px;
}

.qty button {
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 900;
  height: 34px;
  width: 34px;
}

.qty button:disabled,
.primary:disabled {
  background: #b9b5d0;
  color: white;
  cursor: not-allowed;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.stripe-note {
  background: #f5f2d8;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  margin: 0;
  padding: 12px;
}

.payment-methods {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 16px;
}

.payment-methods legend {
  color: var(--blue);
  font-weight: 900;
  padding: 0 6px;
}

.payment-option {
  align-items: center;
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  margin: 0;
  min-height: 48px;
  padding: 10px 12px;
}

.payment-option input {
  margin: 0;
  min-height: auto;
  width: auto;
}

.payment-option span {
  color: var(--ink);
}

.card-payment {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

label {
  color: var(--blue);
  font-weight: 900;
}

input,
select,
textarea {
  background: #fffef8;
  border: 1px solid #d8d19c;
  border-radius: 8px;
  color: var(--ink);
  display: block;
  margin-top: 8px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.total-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 1.35rem;
  justify-content: space-between;
  padding-top: 16px;
}

.empty {
  background: #f5f2d8;
  border-radius: 8px;
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.confirmation-page {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  margin: 20px auto 0;
  max-width: 620px;
  padding: clamp(28px, 7vw, 56px);
  text-align: center;
}

.big-number {
  align-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: var(--yellow);
  display: grid;
  font-size: clamp(4.5rem, 18vw, 9rem);
  font-weight: 1000;
  line-height: 1;
  margin: 18px 0;
  min-height: 180px;
  min-width: min(100%, 320px);
  padding: 22px;
}

.status-pill {
  background: #fff7a8;
  border-radius: 999px;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding: 10px 16px;
}

.status-pill.ready {
  animation: readyPulse 0.9s ease-in-out infinite alternate;
  background: #d9f7e7;
  color: var(--ok);
}

.status-pill.delivered {
  background: #e6f4ec;
  color: var(--ok);
}

.confirmation-copy {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

.confirmation-copy strong {
  color: var(--blue);
  display: inline-block;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.pickup-confirm {
  display: grid;
  gap: 12px;
  margin: 2px 0 24px;
  max-width: 430px;
  width: 100%;
}

.pickup-lift {
  align-items: center;
  background: #fff7a8;
  border: 2px dashed #d7c100;
  border-radius: 8px;
  color: var(--blue);
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 14px;
  touch-action: none;
  user-select: none;
}

.pickup-lift span {
  font-size: 2rem;
  font-weight: 1000;
  line-height: 1;
}

.pickup-lift strong {
  font-size: 1.05rem;
}

.pickup-lift small {
  color: var(--muted);
  font-weight: 800;
}

.pickup-lift.lifted {
  background: #d9f7e7;
  border-color: var(--ok);
  color: var(--ok);
}

.pickup-slider {
  background: #e8e7f4;
  border: 1px solid #cbc7ea;
  border-radius: 8px;
  min-height: 48px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.pickup-slider-label {
  color: var(--blue);
  display: grid;
  font-size: 0.82rem;
  font-weight: 1000;
  inset: 0;
  place-items: center;
  position: absolute;
  text-transform: uppercase;
}

.pickup-thumb {
  align-items: center;
  background: var(--blue);
  border-radius: 6px;
  color: var(--yellow);
  display: flex;
  font-size: 1.35rem;
  font-weight: 1000;
  height: 38px;
  justify-content: center;
  left: 5px;
  position: absolute;
  top: 5px;
  width: 38px;
  z-index: 1;
}

.pickup-slider.confirmed {
  background: #d9f7e7;
  border-color: var(--ok);
}

@keyframes readyPulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

.organizer-gate {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.organizer-gate input {
  max-width: 280px;
}

.organizer-area {
  display: grid;
  gap: 20px;
}

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

.admin-block-head h3 {
  margin: 0;
}

.order-card {
  align-items: stretch;
  border-left: 8px solid var(--yellow);
  display: grid;
}

.order-card.delivered {
  border-left-color: var(--ok);
  opacity: 0.72;
}

.order-card.ready {
  border-left-color: var(--ok);
}

.order-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.order-head strong {
  color: var(--blue);
  font-size: 1.4rem;
}

.order-head span {
  background: #fff7a8;
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.order-card ul {
  margin: 8px 0;
  padding-left: 20px;
}

.order-note {
  background: #f5f2d8;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  margin: 4px 0 0;
  padding: 10px 12px;
}

.hint {
  color: var(--muted);
}

.stock-row {
  display: grid;
  grid-template-columns: 1fr 120px;
}

.stock-editor-section {
  display: grid;
  gap: 10px;
}

.stock-editor-section h4 {
  color: var(--blue);
  margin: 8px 0 0;
}

.stock-row input {
  margin: 0;
}

.bottom-nav {
  background: var(--blue);
  bottom: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  position: fixed;
  right: 0;
  z-index: 30;
}

.bottom-nav button {
  background: var(--blue);
  border: 0;
  color: white;
  font-weight: 900;
  min-height: 62px;
}

@media (max-width: 720px) {
  .app-header {
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .choice-grid,
  .home-info-grid,
  .sponsor-grid,
  .tile-list,
  .stock-row,
  .payment-methods,
  .card-row,
  .activity-intro {
    grid-template-columns: 1fr;
  }

  .choice-card,
  .tile {
    min-height: 150px;
  }

  .screen-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .line-item,
  .cart-line {
    align-items: stretch;
    flex-direction: column;
  }

  .line-actions {
    align-items: stretch;
    justify-items: stretch;
    min-width: 0;
  }

  .organizer-gate {
    display: grid;
  }
}
