/* ============================================================
   SZENE 2 — Zugticket-Rubbellos
   ============================================================ */
#sceneTicket {
  background:
    radial-gradient(ellipse 130% 70% at 50% -20%, #2a3c4a 0%, transparent 60%),
    linear-gradient(180deg, #131e28, #0e161e);
}
.ticket {
  position: relative;
  width: min(400px, 92vw);
  background:
    repeating-linear-gradient(0deg, rgba(192, 57, 43, .035) 0 1px, transparent 1px 4px),
    linear-gradient(170deg, #f5ecd9, #eadfc6);
  border-radius: 14px;
  overflow: hidden;
  color: #2b2416;
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
  transform: rotate(-1.2deg);
}
.ticket::before {   /* Lochung links */
  content: ''; position: absolute; top: 0; bottom: 0; left: 12px; width: 0;
  border-left: 2px dashed rgba(43, 36, 22, .25);
}
.tk-header {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, #b93221, #d64533);
  color: var(--paper);
  padding: 12px 18px 12px 30px;
}
.tk-header .co { font-weight: 900; letter-spacing: .06em; font-size: .72rem; white-space: nowrap; }
.tk-header .co .zh { font-size: 1.1rem; letter-spacing: .16em; margin-right: 7px; }
.tk-header .no { font-size: .7rem; opacity: .85; letter-spacing: .06em; white-space: nowrap; }

.tk-route {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 6px 32px;
  gap: 10px;
}
.tk-city { text-align: center; flex: 1; }
.tk-city .zh { font-size: clamp(1.8rem, 8vw, 2.5rem); line-height: 1; color: #1f1a10; }
.tk-city small {
  display: block; margin-top: 4px;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #7b6a45;
}
.tk-arrow { flex: 0 0 auto; color: var(--red); display: flex; flex-direction: column; align-items: center; }
.tk-arrow .train-ico { font-size: 1.2rem; }
.tk-arrow .line { width: 52px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px); margin-top: 3px; }
.tk-dest-hidden .zh { color: #b09c6d; letter-spacing: .1em; }

.tk-meta {
  display: flex; justify-content: space-between;
  padding: 10px 22px 12px 32px;
  font-size: .68rem; letter-spacing: .12em; color: #6d5c38;
  text-transform: uppercase;
}
.tk-meta b { color: #2b2416; }

.tk-scratch-zone { position: relative; margin: 0 18px 16px 30px; border-radius: 10px; overflow: hidden; }
.tk-prize {
  background:
    radial-gradient(circle at 12% 20%, rgba(214, 69, 51, .08), transparent 50%),
    linear-gradient(160deg, #faf3e3, #f1e6cd);
  padding: 18px 14px;
  text-align: center;
  min-height: 148px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.tk-prize .p-label { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: #a0341f; font-weight: 900; }
.tk-prize .p-dest { font-size: clamp(1.15rem, 5vw, 1.4rem); font-weight: 900; color: #22190c; line-height: 1.45; }
.tk-prize .p-dest .zh { color: var(--red); font-size: 1.25em; margin-right: 6px; }
.tk-prize .p-note { font-size: .78rem; color: #6d5c38; line-height: 1.5; white-space: pre-line; }

#foil {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ctext y='23' font-size='22'%3E🪙%3C/text%3E%3C/svg%3E") 15 15, pointer;
}

.tk-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px 14px 32px;
}
.tk-barcode {
  width: 118px; height: 26px;
  background:
    repeating-linear-gradient(90deg,
      #2b2416 0 2px, transparent 2px 4px,
      #2b2416 4px 5px, transparent 5px 9px,
      #2b2416 9px 12px, transparent 12px 14px,
      #2b2416 14px 15px, transparent 15px 19px);
  opacity: .75;
}
.tk-serial {
  font-size: .6rem; letter-spacing: .18em; color: #8a7850;
  font-variant-numeric: tabular-nums;
}
.tk-chop {
  position: absolute; right: 16px; top: 124px;
  width: 60px; height: 60px;
  border: 2.5px solid rgba(192, 57, 43, .5);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(192, 57, 43, .6);
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.tk-chop::before {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid rgba(192, 57, 43, .4); border-radius: 50%;
}
.tk-chop .c1 { font-size: 1.15rem; line-height: 1.1; }
.tk-chop .c2 { font-size: .42rem; letter-spacing: .22em; font-weight: 900; }

.tk-stamp {
  position: absolute; right: 14px; bottom: 10px;
  width: 58px; height: 58px;
  border: 3px solid rgba(192, 57, 43, .75);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(192, 57, 43, .85);
  font-size: 1.7rem;
  transform: rotate(12deg) scale(3);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), opacity .3s ease;
  pointer-events: none;
}
.tk-stamp.show { transform: rotate(-8deg) scale(1); opacity: 1; }

.ticket-hint {
  margin-top: 22px;
  font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mist); opacity: .6;
}

.board-btn {
  margin-top: 26px;
  padding: 15px 34px;
  background: linear-gradient(160deg, var(--vermillion), #a82a1c);
  color: var(--paper);
  border: none; border-radius: 999px;
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem; font-weight: 900; letter-spacing: .12em;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(192, 57, 43, .4), inset 0 0 0 2px rgba(240, 201, 108, .4);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}
.board-btn.show { opacity: 1; transform: translateY(0); pointer-events: auto; animation: btnGlow 2s ease-in-out infinite; }
@keyframes btnGlow {
  0%,100% { box-shadow: 0 12px 30px rgba(192,57,43,.4), inset 0 0 0 2px rgba(240,201,108,.4); }
  50%     { box-shadow: 0 12px 44px rgba(214,69,51,.65), inset 0 0 0 2px rgba(240,201,108,.8); }
}
