/* Page-specific styling for the Parking Coupon Simulator. Colours, fonts,
   header/footer, buttons and .wrap all come from ../../style.css (the main
   site's stylesheet) and ../arcade.css — this file only adds the component
   styling that's unique to the coupon widget itself. */

/* A little extra texture on top of the site's flat background, kept in the
   same colour via var(--bg) so it still reads as the same page. */
body {
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0) 0 0/26px 26px,
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(228,150,60,0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 30%, rgba(144,109,142,0.08), transparent 60%),
    var(--bg);
}

/* Intro / hero banner */
.intro {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 406px;
  display: flex;
  align-items: center;
}

.intro-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.intro-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.intro-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.55) 60%, var(--bg) 100%);
}

.intro-inner {
  position: relative;
  z-index: 1;
  padding: 26px 24px 22px;
}

.lede { max-width: 680px; color: var(--text-dim); font-size: 1.05rem; }
.lede strong { color: var(--text); }

.coupon-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.coupon-hero-actions .btn { text-decoration: none; padding: 13px 26px; }

.coupon-hero-actions .btn-hero-primary {
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 0, 45, 0.35);
}

.coupon-hero-actions .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text);
}

.coupon-hero-actions .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ===== Section bands =====
   Alternating backgrounds, torn-paper edges between them (see .torn-edge)
   instead of a straight line — the page is meant to feel like it's built
   from actual sheets of paper, not web-template boxes. */
.band {
  position: relative;
  padding: 22px 0;
  overflow: hidden;
}

.band-howto { background: var(--bg-alt); }
.band-denoms { background: var(--bg); }
.band-coupon { background: var(--bg-alt); padding: 30px 0 34px; }

.band-inner { position: relative; z-index: 1; }

/* Torn-paper divider between bands: a jagged silhouette in the colour of
   the section that follows it, sitting right on the seam. */
.torn-edge {
  display: block;
  width: 100%;
  height: 20px;
  position: relative;
  z-index: 2;
}

.torn-edge-1 { fill: var(--bg-alt); margin-top: -1px; }
.torn-edge-2 { fill: var(--bg-alt); margin-top: -1px; }
.torn-edge-3 { fill: var(--bg); margin-top: -1px; }

.eyebrow {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin: 0 0 4px;
}

.band h2 { font-size: 1.5rem; margin-bottom: 14px; letter-spacing: -0.01em; }

/* Compact "How it works" — a bordered callout, not a whole section, but
   still visually distinct enough that it doesn't read as skippable text.
   Each step is its own single-line row rather than a wrapping paragraph. */
.howto-strip {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 18px;
  border: 1px solid rgba(244, 197, 66, 0.35);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: rgba(244, 197, 66, 0.06);
}

.howto-label {
  margin: 0 0 3px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.step-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
  font-weight: 900;
  font-size: 0.72rem;
  box-shadow: 0 3px 8px rgba(225, 0, 45, 0.4);
}

.step-row p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  min-width: 0;
}

.step-row strong { color: var(--amber); }

/* Denomination cards — real, clickable radio buttons styled as cards.
   Each carries its own accent colour matching that denomination's actual
   coupon theme (purple 60¢ / coral $1.20 / green $5 Night), so picking one
   here previews the colour the coupon below is about to become. */
.denoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin-top: 8px;
}

.denom-card {
  position: relative;
  overflow: visible;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card) 55%);
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 3px;
  padding: 26px 20px 22px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease;
}

.denom-card[data-denom="60"]   { --accent: #b48fb2; transform: rotate(-1.6deg); }
.denom-card[data-denom="120"]  { --accent: #e8654b; transform: rotate(1.1deg); }
.denom-card[data-denom="500n"] { --accent: #57a877; transform: rotate(-0.8deg); }

.denom-card-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 70%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.denom-card:hover {
  border-color: var(--accent);
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
}

.denom-card.is-selected {
  border-style: solid;
  border-color: var(--accent);
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), 0 16px 32px rgba(0, 0, 0, 0.5);
}

.denom-card-check {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.denom-card.is-selected .denom-card-check { opacity: 1; transform: scale(1); }

.denom-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent);
}

.denom-card-icon svg { width: 21px; height: 21px; }

.denom-card-price {
  display: block;
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 8px;
}

.denom-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Coupon stage — coupon on the left, denominations on the right, so the
   space beside the (narrow, tall) coupon isn't wasted. Stacks on mobile. */
.coupon-denoms-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

/* The target appears before the interactive coupon, so the player knows what
   they are trying to match before they start tearing. */
.challenge-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 56px);
  margin: 0 0 30px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(244, 197, 66, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(110deg, rgba(244, 197, 66, 0.08), transparent 50%),
    var(--card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.challenge-card h2 { margin: 2px 0 8px; font-size: clamp(1.35rem, 2.6vw, 2rem); }
.challenge-card .sign-caption { max-width: 660px; margin-bottom: 14px; font-size: 0.92rem; }
.challenge-card .duration-block { max-width: 660px; margin-top: 0; }
.challenge-card .duration-label { font-size: 0.85rem; color: var(--text); font-weight: 700; }
.challenge-card .duration-hint { font-size: 0.82rem; }
.challenge-sign-wrap {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 34px 16px 8px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(34, 115, 184, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(115, 176, 226, 0.22);
}

.challenge-sign-label {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #1265a8;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.challenge-card .parking-sign { justify-self: center; }
.challenge-card .parking-sign svg { width: 182px; }

.requirement-box {
  display: grid;
  gap: 3px;
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  border-radius: 4px 10px 10px 4px;
  background: rgba(244, 197, 66, 0.1);
}

.requirement-label {
  color: var(--amber);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.requirement-box strong { color: var(--text); font-size: clamp(1rem, 2vw, 1.3rem); }
.requirement-box > span:last-child { color: #7fdc8f; font-size: 0.9rem; font-weight: 800; }

.tear-guide {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 320px;
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
}

.zoom-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 320px;
  margin: 0 0 12px;
}

.zoom-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 197, 66, 0.5);
  border-radius: 999px;
  background: rgba(244, 197, 66, 0.08);
  color: var(--amber);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.zoom-toggle:hover,
.zoom-toggle.is-active {
  background: var(--amber);
  color: #17130d;
}

.zoom-toggle:focus-visible { outline: 3px solid rgba(244, 197, 66, 0.35); outline-offset: 2px; }

.zoom-help {
  display: none;
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1.3;
}

.zoom-toolbar:has(.zoom-toggle.is-active) .zoom-help { display: block; }

.tear-guide-dot {
  width: 17px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px dashed var(--amber);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 12px rgba(244, 197, 66, 0.24);
}

.coupon-col { flex: 0 1 380px; padding-top: 4px; }
.denoms-col { flex: 1 1 320px; padding-top: 4px; }

.denoms-col h2 { margin-top: 4px; }

@media (max-width: 860px) {
  .coupon-denoms-layout { flex-direction: column; }
  .coupon-col, .denoms-col { flex: 1 1 auto; width: 100%; }
}

.coupon-wrap {
  position: relative;
  max-width: 820px;
}

/* the rest of the booklet peeking out underneath */
.coupon-wrap::before,
.coupon-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 8px;
  background: #2a2419;
  z-index: -1;
}

.coupon-wrap.tall::before,
.coupon-wrap.tall::after { aspect-ratio: 349 / 771; max-width: 320px; }

.coupon-wrap::before { transform: rotate(-1.6deg) translate(-7px, 7px); opacity: 0.9; }
.coupon-wrap::after  { transform: rotate(1.1deg) translate(8px, 11px); opacity: 0.55; }

#coupon-current {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  transform-origin: top left;
  transition: transform 0.16s ease-out;
  will-change: transform;
}

.coupon-wrap.tall { max-width: 320px; }
.coupon-wrap.is-zoomed {
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.coupon-wrap.is-zoomed #coupon-current { transition-duration: 0.06s; }
.coupon-wrap.is-zoomed::before,
.coupon-wrap.is-zoomed::after { display: none; }

/* Valid/void popup — overlays the coupon itself once all five tabs are
   torn, with a button to pull a new coupon straight from the result. */
.coupon-popup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 7, 9, 0.6);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.coupon-popup.show { opacity: 1; pointer-events: auto; }

.coupon-popup-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 20px;
  max-width: 260px;
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  transform: translateY(10px) scale(0.94);
  transition: transform 0.25s ease;
}

.coupon-popup.show .coupon-popup-card { transform: translateY(0) scale(1); }

.coupon-popup-kind {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.coupon-popup-message {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.coupon-popup.kind-valid .coupon-popup-card { border-color: #7fdc8f; }
.coupon-popup.kind-valid .coupon-popup-kind { color: #7fdc8f; }
.coupon-popup.kind-void .coupon-popup-card { border-color: #ff7a7a; }
.coupon-popup.kind-void .coupon-popup-kind { color: #ff7a7a; }

.btn-popup-new {
  background: linear-gradient(135deg, var(--red), var(--pink));
  width: 100%;
  justify-content: center;
}

.status-line {
  max-width: 820px;
  min-height: 1.5em;
  margin: 18px 0 14px;
  font-style: italic;
  color: var(--text-dim);
}

.status-line.good { color: #7fdc8f; }
.status-line.bad  { color: #ff7a7a; }

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-auto     { background: linear-gradient(135deg, var(--red), var(--pink)); }
.btn-new      { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }

.btn-auto:hover, .btn-new:hover, .btn-popup-new:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-auto:disabled, .btn-new:disabled { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; }

/* Rate signboard — redrawn each time a fresh coupon is torn, so it always
   matches the denomination currently loaded into the coupon on the left. */
.sign-block {
  margin-bottom: 24px;
  max-width: 260px;
}

.sign-caption {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0 0 10px;
  line-height: 1.4;
}

/* Colour accents used to make rule text pop rather than blend into the
   surrounding dim copy — reused across the sign caption, duration hint,
   and the engine's own valid/void messaging. */
.hl-amber { color: var(--amber); font-weight: 700; }
.hl-red   { color: #ff7a7a; font-weight: 700; }
.hl-green { color: #7fdc8f; font-weight: 700; }

.parking-sign svg {
  display: block;
  width: 148px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

/* Duration picker — how long the driver wants to stay, which decides how
   much coupon value the sign's rate actually requires. */
.duration-block {
  margin-top: 16px;
  max-width: 260px;
}

.duration-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.duration-pill {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.duration-pill:hover { transform: translateY(-1px); }

.duration-pill.is-selected {
  border-color: var(--accent, var(--amber));
  color: var(--text);
  background: color-mix(in srgb, var(--accent, var(--amber)) 22%, var(--card));
}

.duration-hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-dim);
  font-style: italic;
}

.duration-block.is-flat .duration-options { display: none; }

/* ===== Interactive tab styling =====
   Real perforated tabs are essentially invisible at photo resolution — no
   printed dashed circle is actually visible on the reference photo. Tabs
   here are near-invisible by default (matching the photo) and only reveal
   a faint outline on hover, as an interactivity affordance rather than an
   attempt to depict a printed ring that isn't really there. */
.punch { cursor: pointer; }
.punch .ring { fill: none; stroke: var(--ink); stroke-opacity: 0; stroke-width: 0.8; stroke-dasharray: 1.6 2; transition: stroke-opacity 0.1s; }
.punch:hover .ring { stroke-opacity: 0.6; }
.punch .disc { fill: #ffffff; fill-opacity: 0; }
.punch:hover .disc { fill-opacity: 0.5; }
.punch text { font-weight: bold; text-anchor: middle; pointer-events: none; }
.punch .sub { font-weight: normal; font-size: 5px; pointer-events: none; }
.punch .hole { fill: #17130d; visibility: hidden; }
.punch.punched .disc, .punch.punched text { visibility: hidden; }
.punch.punched .hole { visibility: visible; }
.punch.punched { cursor: default; }

.falling { transform-box: fill-box; transform-origin: center; animation: discFall 0.75s ease-in forwards; pointer-events: none; }
@keyframes discFall {
  25%  { transform: translate(4px, 18px) rotate(40deg); opacity: 1; }
  100% { transform: translate(10px, 230px) rotate(180deg); opacity: 0; }
}

.stamp { visibility: hidden; opacity: 0.88; transform-box: fill-box; transform-origin: center; }
.stamp.show { visibility: visible; animation: stampIn 0.25s cubic-bezier(0.2, 2.2, 0.4, 1); }
@keyframes stampIn { 0% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(1); opacity: 0.88; } }

/* ===== Coupon theme =====
   1:1 transcription of a photographed coupon: WHITE paper, two tinted
   rounded blocks with hairline texture, solid section bars.
   --bar   section bars / logo / AM badge     (sampled: #906d8e purple)
   --badge denomination badge, darker         (sampled: #7a5680)
   --tint  block background                   (sampled: #d6c3d2)
   --tint2 PM half of the hour block, lighter
   Numbers print near-black on every colourway (sampled #423c46). */
#coupon-current text { font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif; fill: var(--ink); }
#coupon-current .paper { fill: #f6f3f0; stroke: #c8c1b9; stroke-width: 1; }
#coupon-current .tint { fill: var(--tint); }
#coupon-current .bar { fill: var(--bar); }
#coupon-current .hb-label { fill: #fff; font-size: 8px; font-weight: bold; text-anchor: middle; letter-spacing: 0.5px; }
#coupon-current .hb-label.sm { font-size: 6.5px; }
#coupon-current .lion-fill { fill: var(--bar); }
#coupon-current .brandword { fill: var(--bar); font-size: 21px; font-weight: bold; letter-spacing: 0.3px; }
#coupon-current .brand-sub { fill: var(--bar); opacity: 0.55; font-size: 8px; font-weight: bold; letter-spacing: 1px; }
#coupon-current .hletter { font-size: 16px; font-weight: bold; }
#coupon-current .badge rect { fill: var(--badge); }
#coupon-current .badge text { fill: #fff; font-weight: bold; text-anchor: middle; }
#coupon-current .mini-crest path { fill: none; stroke: var(--ink); stroke-width: 0.9; opacity: 0.75; }
#coupon-current .amwhite { fill: #f7f5f3; }
#coupon-current .pmarea { fill: var(--tint2); }
#coupon-current .ampm-am { fill: var(--bar); }
#coupon-current .ampm-am-t { fill: #fff; font-size: 10px; font-weight: bold; text-anchor: middle; }
#coupon-current .ampm-pm { fill: #fdfcfb; stroke: var(--bar); stroke-width: 1; }
#coupon-current .ampm-pm-t { fill: var(--bar); font-size: 10px; font-weight: bold; text-anchor: middle; }
#coupon-current .zigzag { fill: none; stroke: #ffffff; stroke-opacity: 0.75; stroke-width: 1.5; }
#coupon-current .notebox { fill: #fdfcfa; stroke: rgba(0, 0, 0, 0.1); stroke-width: 0.6; }
#coupon-current .notetext text { fill: var(--badge); font-size: 6.3px; font-weight: bold; text-anchor: middle; }
#coupon-current .watermark { pointer-events: none; }
#coupon-current .watermark circle { fill: #c6c4c0; opacity: 0.8; }
#coupon-current .wm-p { fill: #dedcd8; text-anchor: middle; }
#coupon-current .wm-car path { fill: #dedcd8; }
#coupon-current .wm-car circle { fill: #aeaca8; }
#coupon-current .wm-arc { fill: #b5b3af; text-anchor: middle; }
#coupon-current .sidebar-word { font-size: 13px; font-weight: bold; letter-spacing: 1px; text-anchor: middle; fill: #3b3540; }
#coupon-current .sidebar-tiny { font-size: 4.6px; text-anchor: middle; fill: #6f6a75; letter-spacing: 0.3px; }
#coupon-current .side-pill { fill: none; stroke: #a9a2ae; stroke-width: 0.8; }
#coupon-current .instr-head { font-size: 6.5px; font-weight: bold; }
#coupon-current .instr { font-size: 6px; }
#coupon-current .disclaimer-text { font-size: 5.2px; opacity: 0.55; }
#coupon-current .litter path, #coupon-current .litter line { stroke: #3b3540; stroke-width: 1.3; fill: none; }
#coupon-current .litter .fill { fill: #3b3540; stroke: none; }
/* faint lighter oval marking each tearable tab */
#coupon-current .punch .disc { fill-opacity: 0.25; }
#coupon-current .punch:hover .disc { fill-opacity: 0.6; }
#coupon-current .punch .ring { stroke-opacity: 0.14; }
#coupon-current:hover .punch .ring { stroke-opacity: 0.28; }
#coupon-current .punch .sub { fill: #8b8594; }

.simulator-note {
  max-width: 760px;
  margin: 0 auto 12px;
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.cx60   { --tint:#d9c6d6; --tint2:#e6d9e4; --bar:#906d8e; --badge:#7a5680; --ink:#3b3540; --stamp:#c22c1e; }
.cx120  { --tint:#f6d3c3; --tint2:#f9e2d8; --bar:#e8654b; --badge:#cf3d22; --ink:#3b3540; --stamp:#c22c1e; }
.cx500n { --tint:#cfe5d6; --tint2:#e0efe6; --bar:#4a9268; --badge:#2f7a52; --ink:#3b3540; --stamp:#c22c1e; }

@media (max-width: 640px) {
  .intro-art { object-position: 28% bottom; opacity: 0.5; }
  .intro-scrim { background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.8) 55%, var(--bg) 100%); }
  .intro { min-height: 406px; }
  .intro-inner { padding: 22px 20px 18px; }
  .lede { margin-block: 10px 0; font-size: 0.98rem; }
  .coupon-hero-actions { margin-top: 16px; gap: 10px; }
  .coupon-hero-actions .btn { padding: 11px 21px; }
  .band { padding: 20px 0; }
  .band-coupon { padding: 22px 0 26px; }
  .band h2 { font-size: 1.3rem; }
  .step-row p { font-size: 0.86rem; }
  .howto-strip { padding: 14px; }
  .step-row { align-items: flex-start; }
  .step-row p { white-space: normal; overflow: visible; text-overflow: clip; }
  .challenge-card {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 24px;
    padding: 17px;
  }
  .challenge-sign-wrap { min-height: 216px; padding: 42px 8px 4px; }
  .challenge-sign-label { font-size: 0.52rem; line-height: 1.25; }
  .challenge-card .parking-sign svg { width: 108px; }
  .challenge-card .sign-caption { font-size: 0.82rem; }
  .challenge-card .duration-hint { font-size: 0.76rem; }
  .requirement-box { margin: 12px 0; padding: 11px 12px; }
  .requirement-box strong { font-size: 0.92rem; line-height: 1.35; }
  .requirement-box > span:last-child { font-size: 0.78rem; }
  .coupon-wrap.tall { max-width: min(100%, 349px); margin-inline: auto; }
  .tear-guide { max-width: 349px; margin-inline: auto; margin-bottom: 14px; }
  .zoom-toolbar { max-width: 349px; margin-inline: auto; margin-bottom: 12px; }
  .zoom-help { flex: 1 1 140px; }
  .controls { justify-content: center; }
  .controls .btn { justify-content: center; width: 100%; white-space: normal; text-align: center; }
  .denom-card,
  .denom-card[data-denom="60"],
  .denom-card[data-denom="120"],
  .denom-card[data-denom="500n"] { transform: none; }
  .denom-card:hover, .denom-card.is-selected { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .denom-card,
  .coupon-popup,
  .coupon-popup-card { transition-duration: 0.01s; }
  #coupon-current { transition-duration: 0.01s; }
  .falling, .stamp.show { animation-duration: 0.01s; }
}
