/* Cold city redesign — 2026-09-08 */
:root {
  --ink: #18324b;
  --muted: #60758a;
  --paper: #edf4fa;
  --card: #ffffff;
  --line: #cbd9e5;
  --green: #f28c28;
  --orange: #f28c28;
  --violet: #087aa9;
  --ref-navy: #1b3d65;
  --ref-mauve: #d96d1b;
  --shadow: 0 18px 50px rgba(24, 50, 75, 0.12);
}

html,
body {
  background: var(--paper);
  color: var(--ink);
}

#public-app {
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(237, 244, 250, 0.12), rgba(237, 244, 250, 0.62) 78%, var(--paper) 100%),
    url('/city-background.jpg');
  background-repeat: no-repeat;
  background-position: center 150px, center 150px;
  background-size: 1920px auto, 1920px auto;
}

#public-app .topbar {
  position: relative;
  z-index: 2;
  height: 190px;
  border: 0;
  background: transparent url('/header-wave.svg') center top / 100% 190px no-repeat;
}

#public-app .topbar-inner {
  height: 118px;
}

#public-app .city-brand {
  align-self: flex-start;
  padding-top: 6px;
}

#public-app .city-logo {
  display: block;
  width: auto;
  height: 108px;
  object-fit: contain;
}

#public-app .brand,
#public-app .brand strong,
#public-app .header-contact {
  color: #fff;
}

#public-app .brand strong {
  text-shadow: 0 2px 16px rgba(7, 46, 76, 0.22);
}

#public-app .brand small,
#public-app .header-contact small {
  color: #dbeaf4;
}

#public-app .logo-sign svg * {
  stroke: #fff !important;
}

#public-app .socials a {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

#public-app .ref-login {
  background: #f28c28;
  color: #173653;
  box-shadow: 0 10px 24px rgba(104, 53, 10, 0.2);
}

#public-app .hero {
  position: relative;
  z-index: 1;
  padding-top: 28px;
}

#public-app .hero h1,
#public-app .section h2,
#public-app .section h3 {
  color: #183a59;
}

#public-app .hero h1 {
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.8);
}

#public-app .hero p,
#public-app .section-intro,
#public-app .step p,
#public-app .result p {
  color: #536d83;
}

#public-app .hero-card {
  aspect-ratio: 1600 / 907;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 57, 87, 0.2);
}

#public-app .hero-card::before,
#public-app .hero-card::after {
  display: none;
}

#public-app .hero-ticket-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#public-app .panel,
#public-app .step {
  border-color: rgba(183, 202, 218, 0.82);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 34px rgba(33, 73, 105, 0.08);
  backdrop-filter: blur(8px);
}

#public-app .rule {
  background: linear-gradient(145deg, #173a5d, #075f8d);
  box-shadow: 0 16px 38px rgba(20, 57, 87, 0.18);
}

#public-app .rule h2,
#public-app .rule p {
  color: #fff;
}

#public-app .footer {
  border-color: rgba(174, 195, 212, 0.7);
  background: rgba(231, 240, 247, 0.88);
  backdrop-filter: blur(8px);
}

.eyebrow,
.kicker,
.step b {
  color: #d96d1b;
}

.btn-dark {
  background: #193f62;
  color: #fff;
}

.btn-green {
  background: #f28c28;
  color: #173653;
  box-shadow: 0 8px 20px rgba(174, 89, 17, 0.18);
}

.btn-soft {
  background: #e2edf5;
  color: #1b496b;
}

.btn-outline {
  border-color: #b9cad8;
  color: #264d6d;
}

.field input,
.field textarea,
.field select {
  border-color: #c5d5e2;
  background: #fbfdff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #f28c28;
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.17);
}

.chip {
  background: #e2edf6;
  color: #246087;
}

.chip.warn {
  background: #fff0df;
  color: #a65b16;
}

.result.empty {
  border-color: #adc5d8;
  background: rgba(237, 244, 250, 0.9);
}

.result.good {
  border-color: #efb36f;
  background: #fff0df;
}

.result.neutral {
  border-color: #adcae0;
  background: #e8f2f9;
}

.result.bad {
  border-color: #e8b2b9;
  background: #fff0f2;
}

.login-overlay {
  background: rgba(15, 48, 73, 0.62);
}

.close {
  background: #e4eef5;
  color: #244c6c;
}

.dash {
  background: #edf3f8;
}

.side {
  background: linear-gradient(180deg, #173a5d, #102d49);
}

.side nav button {
  color: #b8ccda;
}

.side nav button.active,
.side nav button:hover {
  background: rgba(242, 140, 40, 0.17);
  color: #ffc17d;
}

.mark {
  background: #102f4c;
  color: #f28c28;
}

.draw-hero {
  background: linear-gradient(135deg, #173a5d, #075f8d);
}

.draw-hero p {
  color: #c7d9e5;
}

.metric,
.winner,
.draw-prize-row {
  border-color: #cbd9e5;
  background: #fff;
}

.toast {
  background: #173a5d;
}

.offline-bar {
  background: #fff0df;
  color: #8a4b11;
}

@media (max-width: 900px) {
  #public-app {
    background-position: center 118px, center 118px;
    background-size: 1500px auto, 1500px auto;
  }

  #public-app .topbar {
    height: 150px;
    background-size: 100% 150px;
  }

  #public-app .topbar-inner {
    height: 92px;
  }

  #public-app .city-logo {
    height: 82px;
  }

  #public-app .hero {
    padding-top: 18px;
  }
}

@media (max-width: 520px) {
  #public-app {
    background-image:
      linear-gradient(180deg, rgba(237, 244, 250, 0.18), rgba(237, 244, 250, 0.74) 72%, var(--paper) 100%),
      url('/city-background-mobile.jpg');
    background-position: center 98px, center 98px;
    background-size: 1050px auto, 1050px auto;
  }

  #public-app .topbar {
    height: 126px;
    background-size: 100% 126px;
  }

  #public-app .topbar-inner {
    height: 76px;
  }

  #public-app .city-brand {
    padding-top: 4px;
  }

  #public-app .city-logo {
    height: 68px;
  }

  #public-app .hero {
    padding-top: 12px;
  }

  #public-app .hero h1 {
    font-size: 45px;
  }

  #public-app .panel,
  #public-app .step {
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (prefers-reduced-transparency: reduce) {
  #public-app .panel,
  #public-app .step,
  #public-app .footer {
    backdrop-filter: none;
  }
}

.draw-animation-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 31, 52, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.draw-animation-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.draw-animation-modal {
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(820px, 92vh);
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(71, 173, 223, 0.28), transparent 36%),
    linear-gradient(145deg, #173a5d, #075f8d 72%, #0b719a);
  box-shadow: 0 30px 90px rgba(0, 20, 42, 0.42);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s ease;
}

.draw-animation-overlay.open .draw-animation-modal {
  transform: translateY(0) scale(1);
}

.draw-animation-modal .kicker {
  color: #ffc17d;
}

.draw-animation-modal h2 {
  margin: 7px 0 8px;
  color: #fff;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.06em;
}

.draw-animation-lead,
.draw-animation-status {
  color: #c7d9e5;
}

.draw-animation-lead {
  margin: 0 auto;
  max-width: 560px;
}

.draw-animation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  width: 100%;
  max-height: min(52vh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
  align-content: start;
  gap: 12px;
  margin: 30px 0 22px;
  padding: 4px;
}

.draw-animation-slot {
  display: flex;
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 16px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(3, 27, 49, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.draw-animation-slot.revealed {
  border-color: rgba(255, 193, 125, 0.9);
  background: rgba(242, 140, 40, 0.19);
  animation: draw-winner-pop 0.48s ease both;
}

.draw-animation-place,
.draw-animation-slot small {
  color: #c7d9e5;
  font-size: 12px;
}

.draw-animation-slot small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.draw-animation-ticket {
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  color: #fff;
  font-size: clamp(20px, 4vw, 36px);
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.draw-animation-close {
  align-self: center;
  flex: 0 0 auto;
  min-width: 140px;
  margin-top: 18px;
}

.winner,
.winner > div {
  min-width: 0;
}

.winner > div {
  overflow-wrap: anywhere;
}

.draw-animation-ticket.spinning {
  color: #ffc17d;
  text-shadow: 0 0 20px rgba(255, 193, 125, 0.65);
  animation: draw-ticket-blink 0.13s steps(2, end) infinite;
}

.draw-animation-status {
  margin: 0;
  font-size: 13px;
}

@keyframes draw-ticket-blink {
  50% { opacity: 0.45; transform: translateY(-2px); }
}

@keyframes draw-winner-pop {
  0% { transform: scale(0.92); opacity: 0.6; }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .draw-animation-overlay,
  .draw-animation-modal {
    transition: none;
  }

  .draw-animation-ticket.spinning,
  .draw-animation-slot.revealed {
    animation: none;
  }
}

@media (max-width: 520px) {
  .draw-animation-overlay {
    padding: 12px;
  }

  .draw-animation-modal {
    border-radius: 22px;
  }

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

  .draw-animation-slot {
    min-height: 128px;
    padding: 12px 6px;
  }
}

#public-app .prize-pickup-section {
  padding-top: 0;
  padding-bottom: 0;
}

#public-app .prize-pickup-card {
  overflow: hidden;
  padding: clamp(22px, 4vw, 36px);
  border-left: 5px solid #f28c28;
}

#public-app .prize-pickup-card h2 {
  max-width: 900px;
  margin: 0 0 24px;
  color: #183a59;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

#public-app .prize-pickup-details {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}

#public-app .prize-pickup-details h3 {
  margin: 0 0 9px;
  color: #1b3d65;
  font-size: 16px;
}

#public-app .prize-pickup-address,
#public-app .prize-pickup-schedule {
  margin: 0;
  color: #536d83;
  line-height: 1.55;
}

#public-app .prize-pickup-schedule {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

#public-app .prize-pickup-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff0df;
  color: #8a4b11;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 700px) {
  #public-app .prize-pickup-details {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #public-app .prize-pickup-note {
    margin-top: 20px;
    padding: 13px 14px;
  }
}
