/* Final UI/UX Pro Max composition layer. Loaded after the legacy campaign skin. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --line: rgba(33, 230, 238, .28);
  --line-strong: rgba(33, 230, 238, .64);
}

.consent {
  align-items: center;
}

.consent input {
  align-self: center;
}

.consent > span {
  align-self: center;
}

main { width: min(100% - 32px, 1180px); padding-top: clamp(20px, 3vw, 40px); }

.entry-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(33, 230, 238, .045) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(rgba(33, 230, 238, .035) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(145deg, rgba(2, 6, 8, .94), rgba(4, 8, 10, .84));
  box-shadow: 10px 10px 0 rgba(255, 45, 159, .12), 0 28px 80px rgba(0, 0, 0, .36);
}

.entry-stage::before,
.entry-stage::after { position: absolute; z-index: 3; width: 72px; height: 3px; content: ""; pointer-events: none; }
.entry-stage::before { top: 0; left: 0; background: var(--accent); }
.entry-stage::after { right: 0; bottom: 0; background: var(--cyber-magenta); }

.hero { max-width: none; margin: 0; padding: var(--space-8); }
.hero__topline { min-height: 44px; margin: 0 0 var(--space-6); padding: 0 0 var(--space-3); }
.hero__brand { position: static; display: inline-flex; width: auto; height: auto; align-items: center; gap: 7px; padding: 0; color: #fff; background: transparent; }
.hero__brand img,
.hero__brand img:first-child { position: static; inset: auto; width: 27px; height: 27px; object-fit: contain; filter: none; clip-path: none; }
.hero__brand span { font-family: "Russo One", "Arial Black", sans-serif; font-size: 18px; font-weight: 400; line-height: 1; letter-spacing: .025em; }
.hero__topline .eyebrow { max-width: 260px; font-size: 10px; line-height: 1.4; }
.hero__copy { max-width: 650px; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(48px, 5.25vw, 68px); line-height: .96; letter-spacing: -.025em; text-wrap: balance; }
.hero__subtitle { margin-top: var(--space-5); font-size: 11px; }
.hero__description { max-width: 560px; margin-top: var(--space-3); font-size: 15px; line-height: 1.6; }
.hero__artifact { width: min(100%, 390px); height: 350px; margin: var(--space-2) auto calc(var(--space-4) * -1); }

.flow-card { min-width: 0; min-height: 0; padding: var(--space-8); border: 0; border-radius: 0; background: rgba(2, 7, 9, .76); box-shadow: none; backdrop-filter: blur(14px); }
.campaign-meta:has(> :not([hidden])) { margin-bottom: var(--space-5); }
.campaign-meta:not(:has(> :not([hidden]))) { margin: 0; }
.step__number { margin-bottom: var(--space-3); }
.step h2 { max-width: 560px; font-size: clamp(32px, 4vw, 46px); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.step > p { max-width: 560px; margin-top: var(--space-3); margin-bottom: var(--space-6); font-size: 14px; line-height: 1.55; }

.city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.city-grid--single { grid-template-columns: minmax(0, 1fr); }
.city-grid--single .city-button { max-width: none; }
.city-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 142px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, rgba(4, 14, 17, .98), rgba(1, 5, 7, .96));
  box-shadow: inset 0 -3px 0 rgba(33, 230, 238, .12);
  transform: none;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.city-button:nth-child(odd) { border-color: rgba(246, 237, 0, .64); box-shadow: inset 0 -3px 0 rgba(246, 237, 0, .14); }
.city-button img,
.city-button:nth-child(n) img { position: static; width: 40px; height: 40px; order: 2; margin: 0 0 var(--space-1); transform: none; }
.city-button .city-button__node { order: 1; color: var(--cyber-cyan); font-size: 9px; letter-spacing: .18em; }
.city-button:nth-child(odd) .city-button__node { color: var(--accent); }
.city-button span { order: 3; font-family: "Russo One", "Arial Black", sans-serif; font-size: 17px; font-weight: 400; line-height: 1.1; letter-spacing: .015em; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.city-button .city-button__meta { order: 4; color: rgba(255, 255, 255, .5); font-size: 9px; }
.city-button:hover,
.city-button:focus-visible,
.city-button--suggested,
.city-button--selected { color: #fff; border-color: #fff; background: linear-gradient(145deg, rgba(22, 30, 31, .98), rgba(5, 12, 14, .98)); box-shadow: inset 0 -4px 0 var(--accent), 0 0 22px rgba(246, 237, 0, .12); transform: translateY(-2px); }
.city-button--selected::after { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border: 2px solid #050607; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(246, 237, 0, .6); content: ""; }
.city-button:hover small,
.city-button:focus-visible small,
.city-button--suggested small,
.city-button--selected small { color: var(--accent); }

.city-continue { display: flex; width: 100%; min-height: 64px; align-items: center; justify-content: center; margin-top: var(--space-4); padding: var(--space-4) var(--space-5); border: 1px solid var(--accent); color: #050607; background: var(--accent); box-shadow: inset 0 0 0 4px rgba(5, 6, 7, .2), 0 12px 30px rgba(246, 237, 0, .12); font-family: "Russo One", "Arial Black", sans-serif; font-size: 16px; line-height: 1.1; text-transform: uppercase; cursor: pointer; transition: filter .18s ease, transform .18s ease, opacity .18s ease; }
.city-continue:hover,
.city-continue:focus-visible { filter: brightness(1.08); transform: translateY(-2px); }
.city-continue:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.step > .city-scratch-hint { display: flex; max-width: none; align-items: center; justify-content: center; gap: var(--space-3); margin: var(--space-4) auto 0; color: rgba(255, 255, 255, .58); font-size: 11px; line-height: 1.35; text-align: left; }
.city-scratch-hint img { width: 24px; height: 24px; flex: 0 0 auto; }

body:not([data-promo-step="city"]) .entry-stage { width: min(100%, 900px); margin-inline: auto; }
body:not([data-promo-step="city"]) .hero { padding: var(--space-5) var(--space-8) 0; }
body:not([data-promo-step="city"]) .hero__topline { margin-bottom: 0; }
body[data-promo-step="city"] .campaign-meta { display: none; }

/* Live reward certificate. */
.step--result > .eyebrow,
.step--result > h2 { max-width: none; text-align: center; }
.reward-certificate { position: relative; width: min(100%, 720px); margin: var(--space-6) auto 0; padding: clamp(28px, 5vw, 48px); overflow: hidden; border: 1px solid rgba(246, 237, 0, .78); color: #fff; text-align: center; background: radial-gradient(circle at 50% 0, rgba(246, 237, 0, .11), transparent 38%), linear-gradient(145deg, rgba(11, 15, 16, .98), rgba(1, 4, 5, .98)); box-shadow: inset 0 0 0 5px rgba(246, 237, 0, .045), 10px 10px 0 rgba(255, 45, 159, .12); }
.reward-certificate::before,
.reward-certificate::after { position: absolute; width: 84px; height: 3px; background: var(--cyber-cyan); content: ""; }
.reward-certificate::before { top: 10px; left: 10px; }
.reward-certificate::after { right: 10px; bottom: 10px; background: var(--cyber-magenta); }
.reward-certificate__brand { display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin: 0 auto var(--space-4); border: 1px solid rgba(246, 237, 0, .7); background: rgba(246, 237, 0, .06); }
.reward-certificate__brand img { width: 42px; height: 42px; }
.reward-certificate__label { margin: 0 0 var(--space-3); color: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.reward-certificate .result-prize-title { display: block; color: var(--accent); font-family: "Russo One", "Arial Black", sans-serif; font-size: clamp(30px, 6.5vw, 56px); font-weight: 400; line-height: 1.02; letter-spacing: .015em; text-transform: uppercase; overflow-wrap: anywhere; }
.step--result .reward-certificate__scope { max-width: 560px; margin: var(--space-3) auto var(--space-6); color: rgba(255, 255, 255, .68); font-size: 13px; line-height: 1.5; }
.reward-certificate__details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .18); }
.reward-certificate__validity,
.reward-certificate .reward-code { min-height: 98px; margin: 0; padding: var(--space-4); border: 1px solid rgba(246, 237, 0, .45); border-radius: 0; background: rgba(0, 0, 0, .38); box-shadow: none; text-align: left; }
.reward-certificate__validity > span,
.reward-certificate .reward-code > span { display: block; margin-bottom: var(--space-2); color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.reward-certificate__validity .expires { display: block; color: #fff !important; font-family: "Russo One", "Arial Black", sans-serif; font-size: 18px !important; font-weight: 400; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; }
.reward-certificate .reward-code { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-3); align-items: center; }
.reward-certificate .reward-code > span { grid-column: 1 / -1; margin: 0; }
.reward-certificate .reward-code > strong { min-width: 0; font-family: "Russo One", "Arial Black", sans-serif; font-size: clamp(21px, 4vw, 30px); font-weight: 400; letter-spacing: .12em; }
.reward-certificate .reward-code button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--cyber-cyan); border-radius: 0; color: var(--cyber-cyan); background: rgba(33, 230, 238, .06); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.reward-certificate .reward-code button:hover,
.reward-certificate .reward-code button:focus-visible { color: #050607; background: var(--cyber-cyan); }
.step--result .primary-button--link { width: min(100%, 720px); margin: var(--space-5) auto 0; }

@media (min-width: 901px) {
  body[data-promo-step="city"] .entry-stage { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
  body[data-promo-step="city"] .hero { border-right: 1px solid var(--line); }
  body[data-promo-step="city"] .flow-card { display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
  body[data-promo-step="city"] #step-city { width: 100%; }
}

@media (max-width: 900px) {
  main { width: min(100% - 20px, 710px); }
  .entry-stage { box-shadow: 6px 6px 0 rgba(255, 45, 159, .1); }
  .hero { margin: 0; padding: var(--space-5) var(--space-4) 0; }
  .hero__topline { margin-bottom: var(--space-5); }
  .hero__brand { width: auto; height: auto; }
  .hero__brand img,
  .hero__brand img:first-child { width: 25px; height: 25px; }
  .hero__brand span { font-size: 16px; }
  .hero h1 { font-size: clamp(38px, 10.6vw, 58px); }
  .hero__subtitle { margin-top: var(--space-4); font-size: 10px; }
  .hero__description { margin-top: var(--space-2); font-size: 14px; line-height: 1.55; }
  .hero__artifact { width: min(100%, 330px); height: 292px; margin-top: 0; margin-bottom: -8px; }
  .flow-card { padding: var(--space-6) var(--space-4); border-top: 1px solid var(--line); }
  .step h2 { font-size: clamp(28px, 7.4vw, 38px); }
  .step > p { font-size: 13px; }
}

@media (max-width: 560px) {
  .reward-certificate { padding: var(--space-6) var(--space-3); box-shadow: none; }
  .reward-certificate__details { grid-template-columns: 1fr; }
  .reward-certificate__validity,
  .reward-certificate .reward-code { min-height: 88px; }
}

@media (max-width: 430px) {
  main { width: calc(100% - 16px); padding-top: max(8px, env(safe-area-inset-top)); }
  .entry-stage { box-shadow: none; }
  .hero { padding: var(--space-4) var(--space-3) 0; }
  .hero__topline { min-height: 36px; margin-bottom: var(--space-3); padding-bottom: 10px; }
  .hero__topline .eyebrow { max-width: 174px; font-size: 8px; }
  .hero h1 { font-size: clamp(36px, 11.5vw, 48px); }
  .hero__description { font-size: 14px; }
  .hero__artifact { width: 246px; height: 190px; }
  .flow-card { padding: var(--space-3) var(--space-3) var(--space-5); }
  .step__number { margin-bottom: 10px; }
  .step h2 { font-size: clamp(27px, 8vw, 34px); }
  #step-city h2 { max-width: none; font-size: clamp(24px, 6.9vw, 28px); white-space: nowrap; }
  .step > p { margin-bottom: var(--space-4); }
  .city-grid { gap: var(--space-2); }
  .city-button { min-height: 118px; padding: var(--space-3) var(--space-2); }
  .city-button img,
  .city-button:nth-child(n) img { width: 34px; height: 34px; }
  .city-button span { font-size: clamp(11px, 3.5vw, 15px); }
  .city-button .city-button__node,
  .city-button .city-button__meta { font-size: 8px; }
  .city-continue { min-height: 60px; font-size: 14px; }
  .step > .city-scratch-hint { padding-inline: var(--space-2); font-size: 10px; }
  body:not([data-promo-step="city"]) .hero { padding: var(--space-4) var(--space-3) 0; }
}

@media (max-width: 360px) {
  #step-city h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .city-button,
  .city-continue { transition: none; }
}

/* FAQ registry and compact legal footer share the same technical page grid. */
.faq {
  width: 100%;
  max-width: none;
  margin: 64px 0 40px;
  padding: var(--section-pad);
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(33, 230, 238, .035) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(rgba(33, 230, 238, .028) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(145deg, rgba(2, 6, 8, .9), rgba(4, 8, 10, .78));
  box-shadow: 8px 8px 0 rgba(255, 45, 159, .08);
}

.faq__heading {
  max-width: 860px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(33, 230, 238, .24);
}

.faq h2 {
  margin: 0;
  color: #fff;
  font-family: "Russo One", "Arial Black", sans-serif;
  font-size: clamp(31px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.faq__list {
  gap: 8px;
  counter-reset: faq-row;
}

.faq-item {
  position: relative;
  border: 1px solid rgba(33, 230, 238, .24);
  border-radius: 0;
  background: rgba(1, 5, 7, .76);
  counter-increment: faq-row;
  transition: border-color .18s ease, background-color .18s ease;
}

.faq-item:hover,
.faq-item:focus-within {
  border-color: rgba(246, 237, 0, .58);
}

.faq-item[open] {
  border-color: rgba(246, 237, 0, .72);
  background: rgba(246, 237, 0, .045);
}

.faq-item summary {
  min-height: 62px;
  padding: 19px 60px 18px 66px;
  font-size: 14px;
  line-height: 1.45;
}

.faq-item summary::before {
  position: absolute;
  top: 50%;
  left: 20px;
  color: var(--cyber-cyan);
  content: counter(faq-row, decimal-leading-zero);
  font-family: "Russo One", "Arial Black", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  transform: translateY(-50%);
}

.faq-item summary::after {
  right: 18px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(246, 237, 0, .04);
  font-family: "Russo One", "Arial Black", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.faq-item p {
  margin: 0 18px 18px 66px;
  padding: 16px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.65;
}

main { padding-bottom: 40px; }

footer {
  width: min(100% - 32px, 1180px);
  min-height: 0;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 26px;
  padding: 18px 0 max(18px, env(safe-area-inset-bottom));
  font-size: 11px;
}

footer a { min-height: 30px; }

@media (max-width: 760px) {
  .faq { margin: 48px 0 28px; padding: clamp(20px, 4vw, 30px); }
  .faq__heading { margin-bottom: 20px; padding-bottom: 18px; }
  .faq h2 { font-size: clamp(28px, 8vw, 40px); }
  .faq-item summary { min-height: 58px; padding: 16px 52px 16px 50px; font-size: 13px; }
  .faq-item summary::before { left: 15px; font-size: 9px; }
  .faq-item summary::after { right: 13px; width: 26px; height: 26px; }
  .faq-item p { margin: 0 14px 16px 50px; padding: 14px 10px 0; font-size: 12px; }
  main { padding-bottom: 24px; }
  footer { flex-direction: column; gap: 0; padding: 14px 0 max(14px, env(safe-area-inset-bottom)); }
  footer a { min-height: 28px; }
}

/* Reference fidelity pass: technical city selector and one coherent page grid. */
:root { --section-pad: clamp(24px, 4vw, 46px); }

.entry-stage,
.prize-showcase,
.catalog {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-right: 0;
  margin-left: 0;
}

body:not([data-promo-step="city"]) .entry-stage { width: 100%; max-width: none; }
body:not([data-promo-step="city"]) .flow-card > .step:not([hidden]),
body:not([data-promo-step="city"]) .campaign-meta { width: min(100%, 760px); margin-right: auto; margin-left: auto; }

.prize-showcase {
  margin-top: 64px;
  padding: var(--section-pad);
  border-radius: 0;
}

.catalog {
  margin-top: 64px;
  padding: var(--section-pad);
  border: 1px solid rgba(33, 230, 238, .28);
  background: linear-gradient(145deg, rgba(2, 6, 8, .82), rgba(4, 8, 10, .7));
  box-shadow: 8px 8px 0 rgba(255, 45, 159, .08);
}

.hero__artifact {
  width: min(100%, 390px);
  height: auto;
  aspect-ratio: 2 / 3;
  margin: var(--space-3) auto 0;
}

.hero__artifact img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero__artifact-signal { top: 46%; }

#step-city { width: 100%; }
#step-city .city-accessible-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.city-section-heading {
  display: grid;
  grid-template-columns: minmax(26px, 1fr) auto minmax(26px, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 auto 18px;
}

#step-city .city-section-heading h2 {
  max-width: none;
  margin: 0;
  color: var(--cyber-cyan);
  font-family: "Russo One", "Arial Black", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.city-section-heading__rail {
  position: relative;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyber-cyan));
}

.city-section-heading__rail::after {
  position: absolute;
  top: -2px;
  width: 34%;
  height: 6px;
  border-top: 1px solid currentColor;
  content: "";
  transform: skewX(-36deg);
}

.city-section-heading__rail--left { color: var(--accent); }
.city-section-heading__rail--left::after { right: 0; border-color: var(--accent); }
.city-section-heading__rail--right { color: var(--cyber-magenta); background: linear-gradient(90deg, var(--cyber-magenta), transparent); }
.city-section-heading__rail--right::after { left: 0; border-color: var(--cyber-magenta); }
.city-section-heading__pointer { display: none; }

.city-grid { gap: 10px; }
.city-button {
  --node-color: var(--cyber-cyan);
  position: relative;
  display: flex;
  min-height: 136px;
  padding: 18px 34px 16px 18px;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: var(--node-color);
  box-shadow: none;
  clip-path: polygon(0 13px, 13px 0, 42% 0, 46% 6px, 62% 6px, 66% 0, calc(100% - 11px) 0, 100% 11px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 14px 100%, 0 calc(100% - 14px));
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--node-color) 22%, transparent));
  transform: none;
}

.city-button--yellow { --node-color: var(--accent); }
.city-button--cyan { --node-color: var(--cyber-cyan); }
.city-button__surface {
  position: absolute;
  z-index: 0;
  inset: 2px;
  background: radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--node-color) 8%, transparent), transparent 58%), #030708;
  clip-path: inherit;
}

.city-button .city-button__skyline,
.city-button:nth-child(n) .city-button__skyline {
  position: relative;
  z-index: 1;
  inset: auto;
  order: 1;
  width: min(100%, 150px);
  height: 58px;
  margin: 0 auto 4px;
  object-fit: contain;
  transform: none;
}

.city-button .city-button__name {
  position: relative;
  z-index: 1;
  order: 2;
  font-family: "Russo One", "Arial Black", sans-serif;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.city-button .city-button__arrow,
.city-button:nth-child(n) .city-button__arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 9px;
  width: 25px;
  height: 25px;
  margin: 0;
  object-fit: contain;
  transform: translateY(-50%);
}

.city-button:hover,
.city-button:focus-visible,
.city-button--suggested,
.city-button--selected {
  color: #fff;
  border: 0;
  background: var(--node-color);
  box-shadow: none;
  filter: brightness(1.12) drop-shadow(0 0 13px color-mix(in srgb, var(--node-color) 34%, transparent));
  transform: translateY(-2px);
}

.city-button--selected::after { display: none; }

.city-continue {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 10px;
  min-height: 68px;
  margin-top: 16px;
  padding: 13px 22px;
  border: 4px solid #655f00;
  color: #050607;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #050607, 0 0 18px rgba(246, 237, 0, .16);
  clip-path: polygon(0 11px, 11px 0, 34% 0, 37% 5px, 63% 5px, 66% 0, calc(100% - 11px) 0, 100% 11px, 100% calc(100% - 11px), calc(100% - 11px) 100%, 11px 100%, 0 calc(100% - 11px));
}

.city-continue span {
  grid-column: 2;
  min-width: 0;
  align-self: center;
  justify-self: center;
  line-height: 1;
  white-space: nowrap;
}
.city-continue img {
  display: block;
  grid-column: 3;
  width: 34px;
  height: 34px;
  justify-self: end;
  object-fit: contain;
}
.city-continue:disabled { filter: saturate(.4); opacity: .48; }

.step > .city-scratch-hint {
  position: relative;
  display: flex;
  width: min(100%, 410px);
  min-height: 46px;
  gap: 12px;
  margin: 13px auto 0;
  padding: 0 48px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
}

.step > .city-scratch-hint::before,
.step > .city-scratch-hint::after {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 18px;
  border-top: 1px solid rgba(255, 45, 159, .68);
  content: "";
}

.step > .city-scratch-hint::before { left: 0; border-left: 1px solid rgba(255, 45, 159, .68); transform: skewX(38deg); }
.step > .city-scratch-hint::after { right: 0; border-right: 1px solid rgba(255, 45, 159, .68); transform: skewX(-38deg); }
.city-scratch-hint img { width: 28px; height: 28px; object-fit: contain; }

@media (max-width: 900px) {
  .hero__artifact { width: min(100%, 330px); height: auto; margin-bottom: 0; }
  .prize-showcase,
  .catalog { margin-top: 48px; padding: clamp(20px, 4vw, 30px); }
}

@media (max-width: 430px) {
  :root { --section-pad: 16px; }
  .hero__artifact { width: min(100%, 246px); height: auto; }
  .city-section-heading { gap: 8px; margin-bottom: 12px; }
  #step-city .city-section-heading h2 { font-size: 10px; letter-spacing: .13em; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .city-button { min-height: 120px; padding: 13px 25px 13px 9px; }
  .city-button .city-button__skyline,
  .city-button:nth-child(n) .city-button__skyline { width: min(100%, 124px); height: 52px; }
  .city-button .city-button__name { font-size: clamp(11px, 3.3vw, 14px); }
  .city-button .city-button__arrow,
  .city-button:nth-child(n) .city-button__arrow { right: 5px; width: 21px; height: 21px; }
  .city-continue { grid-template-columns: 30px minmax(0, 1fr) 30px; min-height: 62px; padding: 11px 14px; font-size: 13px; }
  .city-continue img { width: 30px; height: 30px; }
  .step > .city-scratch-hint { padding: 0 38px; font-size: 9px; }
  .step > .city-scratch-hint::before,
  .step > .city-scratch-hint::after { width: 30px; }
  .city-scratch-hint img { width: 24px; height: 24px; }
  .prize-showcase,
  .catalog { width: 100%; margin-top: 38px; padding: var(--section-pad); }
}

/* Generated cyberpunk assets: contraband cases, data cartridges and acrylic reward panel. */
.city-button--selected .city-button__surface { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .94), inset 0 -5px 0 var(--node-color); }

.scratch-choice__visual {
  position: absolute;
  top: 4%;
  right: 3%;
  bottom: 20%;
  left: 3%;
  animation: gift-idle-shake 4.4s ease-in-out var(--gift-delay) infinite;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .46));
  transform: rotate(var(--gift-angle)) scale(var(--gift-scale));
  transform-origin: 50% 64%;
  transition: transform .22s ease;
  will-change: transform;
}

.scratch-choice { aspect-ratio: 1.08; }

.scratch-choice .scratch-choice__asset,
.scratch-choice:nth-child(n) .scratch-choice__asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  filter: none;
  animation: none;
  transform: none;
}

.scratch-choice:hover .scratch-choice__visual,
.scratch-choice:focus-visible .scratch-choice__visual { animation-play-state: paused; transform: translateY(-5px) rotate(var(--gift-angle)) scale(calc(var(--gift-scale) * 1.025)); }
.scratch-choice:hover .scratch-choice__asset,
.scratch-choice:focus-visible .scratch-choice__asset { transform: none; }

.prize-preview-visual {
  position: relative;
  display: block;
  width: min(100%, 174px);
  height: 116px;
  margin: -2px auto 5px;
  animation: reward-idle-pulse 5.2s ease-in-out var(--reward-delay, 0s) infinite;
  filter: drop-shadow(0 15px 18px rgba(0, 0, 0, .42));
  will-change: transform;
}

.prize-preview-card .prize-preview-visual__asset {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
  animation: none;
}

.scratch-shell {
  width: min(100%, 620px);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #020405;
  box-shadow: 9px 9px 0 rgba(255, 45, 159, .14), 0 0 0 1px rgba(246, 237, 0, .58);
}

#scratch-canvas { z-index: 5; }

.prize-underlay { padding: 0; color: #fff; background: #020405; }
.prize-underlay__frame { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.prize-underlay__brand { position: absolute; z-index: 2; top: 7.5%; left: 50%; width: clamp(28px, 7.5%, 46px); height: auto; transform: translateX(-50%); }
.prize-underlay__content { position: relative; z-index: 1; display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; padding: 15% 10% 19%; text-align: center; }
.prize-underlay__label { margin-bottom: 6px; color: rgba(255, 255, 255, .7); font-size: 9px; }
.prize-underlay strong { color: var(--accent); font-size: clamp(24px, 6vw, 42px); text-shadow: 0 0 20px rgba(246, 237, 0, .18); }
.prize-underlay small { max-width: 420px; margin-top: 8px; color: rgba(255, 255, 255, .64); font-size: 11px; }

.reward-certificate {
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  margin-top: var(--space-6);
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: #020405;
  box-shadow: 10px 10px 0 rgba(255, 45, 159, .13), 0 22px 54px rgba(0, 0, 0, .42);
}

.reward-certificate::before,
.reward-certificate::after { display: none; }
.reward-certificate__frame { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.reward-certificate__brand { position: absolute; z-index: 2; top: 7%; left: 50%; width: 7.3%; height: auto; aspect-ratio: 1; margin: 0; border: 0; background: transparent; transform: translateX(-50%); }
.reward-certificate__brand img { width: 72%; height: 72%; }
.reward-certificate__label { position: absolute; z-index: 1; top: 25.5%; right: 9%; left: 9%; margin: 0; font-size: clamp(7px, 1.05vw, 11px); }
.reward-certificate .result-prize-title { position: absolute; z-index: 1; top: 31%; right: 8%; left: 8%; font-size: clamp(24px, 4.7vw, 54px); line-height: 1; text-align: center; }
.step--result .reward-certificate__scope { position: absolute; z-index: 1; top: 49%; right: 12%; left: 12%; max-width: none; margin: 0; color: rgba(255, 255, 255, .64); font-size: clamp(8px, 1.05vw, 12px); line-height: 1.35; text-align: center; }
.reward-certificate__details { position: absolute; z-index: 1; right: 8.1%; bottom: 10.5%; left: 8.1%; display: grid; height: 15%; grid-template-columns: 1fr 1fr; gap: 4.5%; padding: 0; border: 0; }
.reward-certificate__validity,
.reward-certificate .reward-code { min-height: 0; padding: 4px 12px; border: 0; background: transparent; }
.reward-certificate__validity > span,
.reward-certificate .reward-code > span { margin-bottom: 3px; font-size: clamp(6px, .75vw, 8px); }
.reward-certificate__validity .expires { font-size: clamp(10px, 1.55vw, 17px) !important; }
.reward-certificate .reward-code { grid-template-columns: 1fr auto; gap: 2px 8px; }
.reward-certificate .reward-code > strong { font-size: clamp(15px, 2.5vw, 27px); }
.reward-certificate .reward-code button { min-height: 28px; padding: 5px 8px; font-size: clamp(6px, .72vw, 8px); }
.step--result .primary-button--link { width: min(100%, 760px); }

.catalog-card__booking:hover,
.catalog-card__booking:focus-visible { border-color: var(--accent); color: #050607; background: var(--accent); filter: brightness(1.08); }

@media (max-width: 560px) {
  .scratch-choice { min-height: 0; aspect-ratio: .9; }
  .scratch-choice__visual { top: 7%; right: 2%; bottom: 20%; left: 2%; }
  .prize-preview-visual { height: 96px; }
  .reward-certificate { aspect-ratio: 16 / 9; padding: 0; }
  .reward-certificate__details { grid-template-columns: 1fr 1fr; }
  .reward-certificate__validity,
  .reward-certificate .reward-code { min-height: 0; padding: 2px 7px; }
  .step--result .reward-certificate__scope { top: 49.5%; font-size: 6px; line-height: 1.15; }
  .reward-certificate .reward-code { grid-template-columns: 1fr auto; gap: 1px 3px; padding-right: 4px; padding-left: 4px; }
  .reward-certificate .reward-code > strong { font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
  .reward-certificate .reward-code button { min-height: 18px; padding: 2px 3px; font-size: 5px; white-space: nowrap; }
  .reward-certificate__validity .expires { font-size: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .scratch-choice__visual,
  .prize-preview-visual { animation: none !important; }
}

/* Final composition pass: fixed card geometry, embedded branding and HUD actions. */
.scratch-choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.scratch-choice {
  min-width: 0;
  min-height: 0 !important;
  aspect-ratio: .9;
  overflow: hidden;
  isolation: isolate;
}

.scratch-choice__visual {
  top: 5%;
  right: 3%;
  bottom: 20%;
  left: 3%;
  overflow: hidden;
}

.scratch-choice:hover,
.scratch-choice:focus-visible { transform: translateY(-2px); }

.scratch-choice:hover .scratch-choice__visual,
.scratch-choice:focus-visible .scratch-choice__visual {
  transform: translateY(-2px) rotate(var(--gift-angle)) scale(var(--gift-scale));
}

.primary-button,
.primary-button--link {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 66px 12px 28px;
  overflow: hidden;
  border: 2px solid #514900;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  color: #050607;
  background: linear-gradient(180deg, #fff416 0%, #f6ed00 58%, #f6c900 100%);
  box-shadow: inset 0 0 0 4px #050607, inset 0 0 0 6px rgba(246, 237, 0, .82), 0 12px 28px rgba(246, 237, 0, .13);
  font-family: "Russo One", "Arial Black", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}

.primary-button::before,
.primary-button--link::before {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border: 1px solid rgba(5, 6, 7, .62);
  clip-path: inherit;
  content: "";
  pointer-events: none;
}

.primary-button::after,
.primary-button--link::after {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 29px;
  height: 29px;
  background: url("/promo-game/static/assets/brand/icon-double-chevron.png") center / contain no-repeat;
  content: "";
  filter: brightness(0);
  pointer-events: none;
  transform: translateY(-50%);
}

.primary-button:hover,
.primary-button:focus-visible,
.primary-button--link:hover,
.primary-button--link:focus-visible {
  border-color: #756b00;
  color: #050607;
  background: linear-gradient(180deg, #fff928 0%, #f6ed00 58%, #ffd400 100%);
  box-shadow: inset 0 0 0 4px #050607, inset 0 0 0 6px rgba(246, 237, 0, .92), 0 0 28px rgba(246, 237, 0, .2);
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.primary-button:disabled {
  filter: grayscale(.7);
  opacity: .55;
  transform: none;
}

.primary-button--link.is-disabled {
  cursor: wait;
  filter: grayscale(.7);
  opacity: .55;
  pointer-events: none;
  transform: none;
}

.reward-certificate {
  isolation: isolate;
}

.reward-certificate__brand {
  top: 6.5%;
  width: 7.5%;
}

.reward-certificate__label {
  top: 23.5%;
  height: 6%;
}

.reward-certificate .result-prize-title {
  top: 29%;
  right: 9%;
  left: 9%;
  display: flex;
  height: 17%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: clamp(25px, 4.6vw, 52px);
  line-height: 1.02;
  overflow-wrap: normal;
}

.reward-certificate .result-prize-title--long {
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1.06;
}

.step--result .reward-certificate__scope {
  top: 47.5%;
  right: 14%;
  left: 14%;
  display: flex;
  height: 9%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reward-certificate__details {
  right: 8.3%;
  bottom: 9.6%;
  left: 8.3%;
  height: 17.5%;
  gap: 4.2%;
  align-items: center;
}

.reward-certificate__validity,
.reward-certificate .reward-code {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  align-content: center;
  overflow: hidden;
}

.reward-certificate__validity {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 760px) {
  .scratch-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-button,
  .primary-button--link { min-height: 54px; padding-right: 54px; padding-left: 20px; font-size: 11px; }
  .primary-button::after,
  .primary-button--link::after { right: 17px; width: 24px; height: 24px; }
}

@media (max-width: 560px) {
  .reward-certificate .result-prize-title { font-size: clamp(17px, 6.3vw, 25px); }
  .reward-certificate .result-prize-title--long { font-size: clamp(11px, 4.2vw, 17px); }
  .reward-certificate__label { top: 23%; }
  .step--result .reward-certificate__scope { display: none; }
  .reward-certificate__details { bottom: 9.2%; height: 18%; }
}

/* Brand-accurate assets and locked certificate coordinate system. */
.prize-underlay__brand,
.reward-certificate__brand { display: none !important; }

.prize-underlay__content {
  position: absolute;
  z-index: 1;
  top: 27%;
  right: 12%;
  bottom: 29%;
  left: 12%;
  width: auto;
  height: auto;
  padding: 0;
  justify-content: center;
  overflow: hidden;
}

.prize-underlay__label { margin-bottom: 4px; }
.prize-underlay strong {
  max-width: 100%;
  font-size: clamp(19px, 5.2vw, 36px);
  line-height: 1.02;
  overflow-wrap: normal;
}
.prize-underlay small { margin-top: 6px; font-size: clamp(7px, 1.5vw, 10px); line-height: 1.25; }

.prize-underlay__details {
  position: absolute;
  z-index: 2;
  right: 8.3%;
  bottom: 9.6%;
  left: 8.3%;
  display: grid;
  height: 17.5%;
  grid-template-columns: 1fr 1fr;
  gap: 4.2%;
  color: #fff;
  text-align: left;
}

.prize-underlay__details > div {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  align-items: center;
  align-content: center;
  padding: 4px 12px;
  overflow: hidden;
}

.prize-underlay__details span {
  align-self: end;
  color: var(--accent);
  font-size: clamp(6px, .75vw, 8px);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.prize-underlay__details strong {
  align-self: start;
  color: #fff;
  font-family: "Russo One", "Arial Black", sans-serif;
  font-size: clamp(11px, 1.7vw, 18px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .02em;
  white-space: nowrap;
  text-transform: uppercase;
}

.reward-certificate__label {
  top: 27%;
  height: 5%;
  line-height: 1;
}

.reward-certificate .result-prize-title {
  top: 32%;
  height: 17%;
}

.step--result .reward-certificate__scope {
  top: 50%;
  height: 8%;
}

.reward-certificate__details {
  right: 8.3%;
  bottom: 9.6%;
  left: 8.3%;
  height: 17.5%;
  gap: 4.2%;
  align-items: stretch;
}

.reward-certificate__validity,
.reward-certificate .reward-code {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  grid-template-rows: auto 1fr;
  align-items: center;
  align-content: center;
  padding: 4px 13px;
  overflow: hidden;
}

.reward-certificate__validity > span,
.reward-certificate .reward-code > span {
  align-self: end;
  margin: 0 0 4px;
  line-height: 1;
}

.reward-certificate__validity .expires {
  align-self: start;
  white-space: nowrap;
}

.reward-certificate .reward-code {
  grid-template-columns: minmax(0, 1fr) auto;
}

.reward-certificate .reward-code > span { grid-column: 1 / -1; }
.reward-certificate .reward-code > strong,
.reward-certificate .reward-code > button { align-self: start; }

@media (max-width: 560px) {
  .prize-underlay__details > div { padding: 2px 6px; }
  .prize-underlay__details span { font-size: 5px; }
  .prize-underlay__details strong { font-size: 8px; }
  .reward-certificate__label { top: 26.5%; }
  .reward-certificate .result-prize-title { top: 32%; }
  .reward-certificate__validity,
  .reward-certificate .reward-code { padding: 2px 5px; }
  .reward-certificate__validity > span,
  .reward-certificate .reward-code > span { margin-bottom: 2px; }
}

/* Smoked acrylic certificate and inset data rows. */
.reward-certificate {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .12), transparent 30%),
    linear-gradient(135deg, rgba(22, 33, 38, .58), rgba(0, 3, 5, .76));
  box-shadow:
    10px 12px 0 rgba(255, 45, 159, .12),
    0 24px 58px rgba(0, 0, 0, .48),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px) saturate(1.16);
}

.reward-certificate__frame {
  filter: brightness(1.06) contrast(.98) saturate(1.08);
}

.reward-certificate::before {
  position: absolute;
  z-index: 1;
  inset: 7% 6% 20%;
  display: block;
  width: auto;
  height: auto;
  background: linear-gradient(132deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .055) 18%, transparent 42%);
  clip-path: polygon(0 0, 62% 0, 34% 100%, 0 100%);
  content: "";
  mix-blend-mode: screen;
  opacity: .65;
  pointer-events: none;
}

.reward-certificate::after {
  position: absolute;
  z-index: 1;
  top: 5%;
  right: 7%;
  left: 7%;
  display: block;
  width: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .52), transparent);
  content: "";
  opacity: .7;
  pointer-events: none;
}

.reward-certificate__label,
.reward-certificate .result-prize-title,
.step--result .reward-certificate__scope,
.reward-certificate__details { z-index: 2; }

.reward-certificate__details {
  right: 8.8%;
  bottom: 10.8%;
  left: 8.8%;
  height: 14.2%;
  gap: 5%;
}

.reward-certificate__validity,
.reward-certificate .reward-code {
  grid-template-rows: auto auto;
  align-content: center;
  padding: 3px 13px 1px;
  row-gap: 4px;
}

.reward-certificate__validity > span,
.reward-certificate .reward-code > span {
  align-self: auto;
  margin: 0;
}

.reward-certificate__validity .expires,
.reward-certificate .reward-code > strong,
.reward-certificate .reward-code > button { align-self: center; }

@media (max-width: 560px) {
  .reward-certificate__details {
    right: 8.8%;
    bottom: 10.8%;
    left: 8.8%;
    height: 14.2%;
    gap: 5%;
  }
  .reward-certificate__validity,
  .reward-certificate .reward-code { padding: 1px 4px 0; row-gap: 2px; }
}

/* City-screen signal sequence: restrained cyberpunk motion with a static fallback. */
body[data-promo-step="city"] .entry-stage {
  animation: city-grid-drift 16s linear infinite, city-shell-breathe 4.8s ease-in-out infinite;
}

body[data-promo-step="city"] .entry-stage::before,
body[data-promo-step="city"] .entry-stage::after {
  animation: city-corner-scan 3.2s ease-in-out infinite;
  box-shadow: 0 0 14px currentColor;
}

body[data-promo-step="city"] .hero__copy {
  position: relative;
  z-index: 2;
}

body[data-promo-step="city"] .hero h1 span {
  transform-origin: left center;
  animation: city-title-glitch 7.5s steps(1, end) infinite;
}

body[data-promo-step="city"] .hero h1 span + span {
  animation-delay: -3.7s;
}

body[data-promo-step="city"] .hero__subtitle {
  animation: city-status-pulse 2.4s ease-in-out infinite;
}

body[data-promo-step="city"] .hero__artifact {
  isolation: isolate;
  animation: city-artifact-float 5.4s ease-in-out infinite;
  filter: drop-shadow(0 15px 28px rgba(0, 0, 0, .46));
}

body[data-promo-step="city"] .hero__artifact::before {
  position: absolute;
  z-index: -1;
  inset: 11% 5%;
  border: 1px solid rgba(33, 230, 238, .22);
  background: radial-gradient(circle, rgba(246, 237, 0, .12), transparent 62%);
  box-shadow: 0 0 34px rgba(33, 230, 238, .1), inset 0 0 34px rgba(255, 45, 159, .08);
  clip-path: polygon(8% 0, 92% 0, 100% 7%, 100% 93%, 92% 100%, 8% 100%, 0 93%, 0 7%);
  content: "";
  animation: city-artifact-halo 3.8s ease-in-out infinite;
  pointer-events: none;
}

body[data-promo-step="city"] .hero__artifact::after {
  position: absolute;
  z-index: 3;
  top: 8%;
  right: 9%;
  left: 9%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(246, 237, 0, .8) 26%, #fff 50%, rgba(33, 230, 238, .78) 72%, transparent);
  box-shadow: 0 0 12px rgba(33, 230, 238, .56);
  content: "";
  opacity: 0;
  animation: city-artifact-scan 4.6s cubic-bezier(.4, 0, .2, 1) infinite;
  pointer-events: none;
}

body[data-promo-step="city"] .hero__artifact img {
  position: relative;
  z-index: 1;
  animation: city-artifact-signal 4.6s ease-in-out infinite;
}

body[data-promo-step="city"] .hero__artifact-signal {
  z-index: 4;
  animation: city-status-pulse 2.4s ease-in-out infinite reverse;
}

body[data-promo-step="city"] .flow-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body[data-promo-step="city"] .flow-card::before {
  position: absolute;
  z-index: -1;
  inset: -35% -45%;
  background: linear-gradient(112deg, transparent 42%, rgba(33, 230, 238, .055) 49%, rgba(246, 237, 0, .04) 51%, transparent 58%);
  content: "";
  animation: city-console-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

body[data-promo-step="city"] .city-section-heading__rail::after {
  animation: city-rail-charge 2.2s ease-in-out infinite;
}

body[data-promo-step="city"] .city-button__skyline {
  animation: city-skyline-signal 3.6s ease-in-out infinite;
}

body[data-promo-step="city"] .city-button:nth-child(2) .city-button__skyline {
  animation-delay: -1.8s;
}

@keyframes city-grid-drift {
  to { background-position: 80px 0, 0 80px, 0 0; }
}

@keyframes city-shell-breathe {
  0%, 100% { border-color: rgba(33, 230, 238, .28); box-shadow: 10px 10px 0 rgba(255, 45, 159, .12), 0 28px 80px rgba(0, 0, 0, .36); }
  50% { border-color: rgba(33, 230, 238, .46); box-shadow: 10px 10px 0 rgba(255, 45, 159, .17), 0 28px 86px rgba(0, 0, 0, .46), 0 0 24px rgba(33, 230, 238, .06); }
}

@keyframes city-corner-scan {
  0%, 100% { width: 72px; opacity: .82; }
  50% { width: 118px; opacity: 1; }
}

@keyframes city-title-glitch {
  0%, 7%, 9%, 47%, 49%, 100% { transform: translate(0); text-shadow: 4px 4px 0 rgba(255, 45, 159, .2); }
  8% { transform: translateX(2px) skewX(-1deg); text-shadow: -3px 0 rgba(33, 230, 238, .72), 4px 2px rgba(255, 45, 159, .62); }
  48% { transform: translateX(-1px); text-shadow: 3px 0 rgba(246, 237, 0, .42), -3px 0 rgba(255, 45, 159, .48); }
}

@keyframes city-status-pulse {
  0%, 100% { opacity: .68; filter: brightness(.92); }
  50% { opacity: 1; filter: brightness(1.25) drop-shadow(0 0 6px rgba(33, 230, 238, .38)); }
}

@keyframes city-artifact-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.25deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(.35deg); }
}

@keyframes city-artifact-halo {
  0%, 100% { opacity: .38; transform: scale(.985); }
  50% { opacity: .78; transform: scale(1.018); }
}

@keyframes city-artifact-scan {
  0%, 10% { top: 10%; opacity: 0; }
  16% { opacity: .78; }
  66% { top: 88%; opacity: .54; }
  72%, 100% { top: 88%; opacity: 0; }
}

@keyframes city-artifact-signal {
  0%, 100% { filter: brightness(1) saturate(1); }
  48% { filter: brightness(1.06) saturate(1.08); }
  49% { filter: brightness(.9) saturate(1.25) hue-rotate(3deg); }
  51% { filter: brightness(1.08) saturate(1.04); }
}

@keyframes city-console-sweep {
  0%, 18% { transform: translateX(-34%); opacity: 0; }
  28% { opacity: 1; }
  68% { transform: translateX(34%); opacity: .75; }
  78%, 100% { transform: translateX(34%); opacity: 0; }
}

@keyframes city-rail-charge {
  0%, 100% { width: 18%; opacity: .55; }
  50% { width: 72%; opacity: 1; }
}

@keyframes city-skyline-signal {
  0%, 100% { opacity: .68; filter: brightness(.82); }
  50% { opacity: 1; filter: brightness(1.22) drop-shadow(0 0 6px currentColor); }
}

@media (max-width: 900px) {
  body[data-promo-step="city"] .entry-stage {
    animation-name: city-grid-drift, city-shell-breathe-mobile;
  }

  @keyframes city-shell-breathe-mobile {
    0%, 100% { border-color: rgba(33, 230, 238, .28); box-shadow: 6px 6px 0 rgba(255, 45, 159, .1); }
    50% { border-color: rgba(33, 230, 238, .44); box-shadow: 6px 6px 0 rgba(255, 45, 159, .14), 0 0 20px rgba(33, 230, 238, .05); }
  }
}

/* Certificate coordinate lock: shared by the scratch underlay and final reward. */
.prize-underlay,
.reward-certificate {
  --certificate-side: 9.2%;
  --certificate-cell-bottom: 11.4%;
  --certificate-cell-height: 15.2%;
  --certificate-cell-gap: 4.2%;
}

.prize-underlay__content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.prize-underlay__label,
.reward-certificate__label {
  position: absolute;
  z-index: 2;
  top: 29%;
  right: 12%;
  left: 12%;
  display: flex;
  height: 4.5%;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(6px, .95vw, 10px);
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.prize-underlay__content > strong,
.reward-certificate .result-prize-title {
  position: absolute;
  z-index: 2;
  top: 34.2%;
  right: 9%;
  left: 9%;
  display: flex;
  height: 14.5%;
  max-width: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  color: var(--accent);
  font-family: "Russo One", "Arial Black", sans-serif;
  font-size: clamp(22px, 4.5vw, 50px);
  font-weight: 400;
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.prize-underlay__content > strong.prize-underlay__title--long,
.reward-certificate .result-prize-title--long {
  font-size: clamp(16px, 2.9vw, 32px);
  line-height: 1.06;
}

.prize-underlay__content > small,
.step--result .reward-certificate__scope {
  position: absolute;
  z-index: 2;
  top: 49.8%;
  right: 14%;
  left: 14%;
  display: flex;
  height: 8%;
  max-width: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .66);
  font-size: clamp(7px, 1vw, 11px);
  line-height: 1.25;
  text-align: center;
}

.prize-underlay__details,
.reward-certificate__details {
  position: absolute;
  z-index: 3;
  right: var(--certificate-side);
  bottom: var(--certificate-cell-bottom);
  left: var(--certificate-side);
  display: grid;
  height: var(--certificate-cell-height);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--certificate-cell-gap);
  align-items: stretch;
  padding: 0;
  border: 0;
  color: #fff;
}

.prize-underlay__details > div,
.reward-certificate__validity,
.reward-certificate .reward-code {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  row-gap: clamp(2px, .55vw, 5px);
  box-sizing: border-box;
  margin: 0;
  padding: 4px 12px;
  overflow: hidden;
  border: 0;
  background: transparent;
  text-align: center;
}

.prize-underlay__details span,
.reward-certificate__validity > span,
.reward-certificate .reward-code > span {
  align-self: end;
  margin: 0;
  color: var(--accent);
  font-size: clamp(5px, .72vw, 8px);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.prize-underlay__details strong,
.reward-certificate__validity .expires,
.reward-certificate .reward-code > strong {
  align-self: start;
  margin: 0;
  color: #fff !important;
  font-family: "Russo One", "Arial Black", sans-serif;
  font-size: clamp(10px, 1.55vw, 17px) !important;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
}

.reward-certificate .reward-code {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(5px, 1vw, 10px);
}

.reward-certificate .reward-code > span {
  grid-column: 1 / -1;
}

.reward-certificate .reward-code > strong {
  grid-column: 2;
  align-self: center;
  justify-self: end;
  font-size: clamp(15px, 2.35vw, 26px) !important;
  letter-spacing: .08em;
}

.reward-certificate .reward-code > button {
  display: inline-flex;
  grid-column: 3;
  width: auto;
  height: clamp(18px, 4vw, 30px);
  min-height: 0;
  align-self: center;
  justify-self: start;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 clamp(4px, 1vw, 10px);
  border: 1px solid var(--cyber-cyan);
  color: var(--cyber-cyan);
  background: rgba(33, 230, 238, .07);
  font-size: clamp(5px, .72vw, 8px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Store rewards use a rare-loot gold card without affecting discount certificates. */
.prize-underlay--store,
.reward-certificate--store {
  --accent: #ffd76a;
  background: #050300;
  box-shadow:
    10px 12px 0 rgba(102, 62, 0, .32),
    0 24px 64px rgba(255, 179, 45, .13),
    inset 0 1px 0 rgba(255, 235, 183, .24);
}

.prize-underlay--store .prize-underlay__frame,
.reward-certificate--store .reward-certificate__frame {
  filter: brightness(1.04) contrast(1.02) saturate(1.05);
}

.prize-underlay--store .certificate-brand-mark,
.reward-certificate--store .certificate-brand-mark {
  filter: drop-shadow(0 0 8px rgba(255, 192, 64, .48));
}

@media (max-width: 560px) {
  .prize-underlay__label,
  .reward-certificate__label { top: 28.8%; font-size: 5px; }
  .prize-underlay__content > strong,
  .reward-certificate .result-prize-title { top: 34%; font-size: clamp(14px, 5.7vw, 22px); }
  .prize-underlay__content > strong.prize-underlay__title--long,
  .reward-certificate .result-prize-title--long { font-size: clamp(9px, 3.8vw, 14px); }
  .prize-underlay__content > small,
  .step--result .reward-certificate__scope { display: none; }
  .prize-underlay__details > div,
  .reward-certificate__validity,
  .reward-certificate .reward-code { padding: 1px 4px; row-gap: 1px; }
  .prize-underlay__details span,
  .reward-certificate__validity > span,
  .reward-certificate .reward-code > span { font-size: 4.5px; }
  .prize-underlay__details strong,
  .reward-certificate__validity .expires { font-size: 7px !important; }
  .reward-certificate .reward-code > strong { font-size: 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-promo-step="city"] .entry-stage,
  body[data-promo-step="city"] .entry-stage::before,
  body[data-promo-step="city"] .entry-stage::after,
  body[data-promo-step="city"] .hero h1 span,
  body[data-promo-step="city"] .hero__subtitle,
  body[data-promo-step="city"] .hero__artifact,
  body[data-promo-step="city"] .hero__artifact::before,
  body[data-promo-step="city"] .hero__artifact::after,
  body[data-promo-step="city"] .hero__artifact img,
  body[data-promo-step="city"] .hero__artifact-signal,
  body[data-promo-step="city"] .flow-card::before,
  body[data-promo-step="city"] .city-section-heading__rail::after,
  body[data-promo-step="city"] .city-button__skyline {
    animation: none;
  }
}

/* Final certificate surface: exact brand asset and readable card typography. */
.reward-certificate .reward-code {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
}

.reward-certificate .reward-code > span,
.reward-certificate .reward-code > strong {
  grid-column: 1;
  justify-self: center;
}

.reward-certificate .reward-code > button {
  position: absolute;
  top: 58%;
  right: 5.5%;
  width: 64px !important;
  height: 28px !important;
  padding-inline: 3px !important;
  font-size: 7px !important;
  transform: translateY(-50%);
}

@media (max-width: 560px) {
  .reward-certificate .reward-code > button {
    width: 22px !important;
    height: 18px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .reward-certificate .reward-code > button::after {
    content: "⧉";
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
  }
}

.prize-underlay .certificate-brand-mark,
.reward-certificate .certificate-brand-mark {
  position: absolute;
  z-index: 4;
  top: 11%;
  left: 50%;
  display: block;
  width: 5.85%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
}

.prize-underlay__label,
.reward-certificate__label { top: 30.2%; font-size: clamp(8px, 1.08vw, 12px); }

.prize-underlay__content > strong,
.reward-certificate .result-prize-title { top: 35.2%; font-size: clamp(28px, 5.15vw, 58px); }

.prize-underlay__content > strong.prize-underlay__title--long,
.reward-certificate .result-prize-title--long { font-size: clamp(19px, 3.35vw, 37px); }

.prize-underlay__content > small,
.step--result .reward-certificate__scope { top: 50.7%; font-size: clamp(9px, 1.22vw, 13px); }

.prize-underlay__details span,
.reward-certificate__validity > span,
.reward-certificate .reward-code > span { font-size: clamp(7px, .9vw, 10px); }

.prize-underlay__details strong,
.reward-certificate__validity .expires { font-size: clamp(13px, 1.9vw, 21px) !important; }

.reward-certificate .reward-code > strong { font-size: clamp(20px, 2.85vw, 31px) !important; }

.reward-certificate .reward-code > button {
  height: clamp(24px, 4.3vw, 34px);
  padding-inline: clamp(7px, 1.15vw, 12px);
  font-size: clamp(7px, .9vw, 10px);
}

@media (max-width: 560px) {
  .prize-underlay .certificate-brand-mark,
  .reward-certificate .certificate-brand-mark { top: 10.8%; width: 5.9%; }
  .prize-underlay__label,
  .reward-certificate__label { top: 29.8%; font-size: 6px; }
  .prize-underlay__content > strong,
  .reward-certificate .result-prize-title { top: 34.8%; font-size: clamp(17px, 6.3vw, 25px); }
  .prize-underlay__content > strong.prize-underlay__title--long,
  .reward-certificate .result-prize-title--long { font-size: clamp(11px, 4.35vw, 17px); }
  .prize-underlay__details span,
  .reward-certificate__validity > span,
  .reward-certificate .reward-code > span { font-size: 5.5px; }
  .prize-underlay__details strong,
  .reward-certificate__validity .expires { font-size: 8px !important; }
  .reward-certificate .reward-code > strong { font-size: 12px !important; }
  .reward-certificate .reward-code > button { height: 18px; padding-inline: 5px; font-size: 5.5px; }
}

/* Final responsive certificate contract. All sizes follow the card, not the viewport. */
.prize-underlay,
.reward-certificate {
  container-type: inline-size;
}

.prize-underlay .certificate-brand-mark,
.reward-certificate .certificate-brand-mark {
  top: 8.8%;
  width: 6.2cqw;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
}

.prize-underlay--store .certificate-brand-mark,
.reward-certificate--store .certificate-brand-mark {
  top: 12.1%;
  width: 4.8cqw;
  filter: none;
}

.prize-underlay__label,
.reward-certificate__label {
  top: 29.1%;
  height: 4%;
  font-size: clamp(6px, 1.25cqw, 10px);
}

.prize-underlay__content > strong,
.reward-certificate .result-prize-title {
  top: 33.8%;
  right: 10%;
  left: 10%;
  height: 15.5%;
  font-size: clamp(16px, 5cqw, 40px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.prize-underlay__content > strong.prize-underlay__title--long,
.reward-certificate .result-prize-title--long {
  font-size: clamp(13px, 3.6cqw, 29px);
  line-height: 1.05;
}

.prize-underlay__content > small,
.step--result .reward-certificate__scope {
  top: 50.2%;
  right: 15%;
  left: 15%;
  display: flex;
  height: 11.5%;
  align-items: flex-start;
  overflow: hidden;
  font-size: clamp(6px, 1.35cqw, 11px);
  line-height: 1.3;
  text-wrap: balance;
}

.prize-underlay__content > small.certificate-description--long,
.step--result .reward-certificate__scope.certificate-description--long {
  font-size: clamp(5.5px, 1.15cqw, 9px);
  line-height: 1.22;
}

.prize-underlay__details,
.reward-certificate__details {
  right: 8.8%;
  bottom: 10.7%;
  left: 8.8%;
  height: 14.4%;
  gap: 5%;
}

.prize-underlay__details > div,
.reward-certificate__validity,
.reward-certificate .reward-code {
  padding: 2px clamp(4px, 1.6cqw, 13px);
  overflow: hidden;
  row-gap: clamp(1px, .5cqw, 4px);
}

.prize-underlay__details span,
.reward-certificate__validity > span,
.reward-certificate .reward-code > span {
  font-size: clamp(4.5px, .95cqw, 8px);
}

.prize-underlay__details strong,
.reward-certificate__validity .expires {
  max-width: 100%;
  font-size: clamp(7px, 2.1cqw, 17px) !important;
}

.reward-certificate .reward-code {
  position: static;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: clamp(3px, .8cqw, 7px);
}

.reward-certificate .reward-code > span {
  grid-column: 1 / -1;
  grid-row: 1;
}

.reward-certificate .reward-code > strong {
  grid-column: 1;
  grid-row: 2;
  max-width: 100%;
  align-self: center;
  justify-self: end;
  font-size: clamp(10px, 3.1cqw, 25px) !important;
  letter-spacing: .07em;
}

.reward-certificate .reward-code > button {
  position: static;
  top: auto;
  right: auto;
  grid-column: 2;
  grid-row: 2;
  width: auto !important;
  height: clamp(16px, 3.7cqw, 30px) !important;
  min-height: 0;
  align-self: center;
  justify-self: start;
  padding: 0 clamp(3px, .9cqw, 8px) !important;
  font-size: clamp(4.5px, .95cqw, 8px) !important;
  transform: none;
}

.reward-certificate .reward-code > button::after {
  content: none !important;
}

@media (max-width: 560px) {
  .prize-underlay__content > small,
  .step--result .reward-certificate__scope {
    display: flex;
  }
}

/* Campaign-controlled prize palette (1–10 variants). */
.prize-preview-card {
  border-color: color-mix(in srgb, var(--reward-palette-color, var(--cyber-cyan)) 45%, transparent) !important;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--reward-palette-color, var(--cyber-cyan)) 22%, transparent);
}

.prize-preview-card .prize-preview-visual__asset {
  filter: none;
}

.scratch-choice {
  border-color: color-mix(in srgb, var(--gift-palette-color, var(--accent)) 44%, transparent);
}

.scratch-choice .scratch-choice__asset,
.scratch-choice:nth-child(n) .scratch-choice__asset {
  filter: none;
}

.step--game .scratch-commit-note {
  margin-top: -8px;
  color: var(--accent);
  font-size: 12px;
}
