.ticket-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ticket-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.ticket-btn:hover { border-color: var(--gold); }
.ticket-btn.active {
  border-color: var(--gold);
  background: rgba(245,184,0,0.08);
}
.ticket-btn .t-name { font-weight: 700; font-size: 14px; }
.ticket-btn .t-sub { font-size: 11px; color: var(--text-dimmer); }
.ticket-btn .t-price {
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 15px;
}

.paytable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-dim);
}
.paytable-row .icon { font-size: 18px; margin-right: 8px; }
.paytable-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dimmer);
  font-weight: 700;
  margin-bottom: 6px;
}

.scratch-ticket {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, #241a08, #1a1206);
  border: 4px solid #7a5a12;
  border-radius: 18px;
  padding: 18px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(245,184,0,0.3);
}
.ticket-header span:last-child { color: var(--text-dim); font-size: 12px; font-weight: 600; }

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.scratch-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.scratch-cell .symbol-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(160deg, #fdf6e3, #f0e6c8);
}

.scratch-cell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.scratch-cell.revealed canvas { display: none; }
.scratch-cell.revealed .symbol-layer { animation: cell-reveal 0.3s ease; }
.scratch-cell.win-cell .symbol-layer {
  animation: cell-win 0.7s ease infinite alternate;
}

@keyframes cell-reveal {
  from { transform: scale(0.85); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes cell-win {
  from { box-shadow: inset 0 0 0 0 rgba(245,184,0,0.5); background: linear-gradient(160deg, #fdf6e3, #f0e6c8); }
  to { box-shadow: inset 0 0 0 4px var(--gold); background: linear-gradient(160deg, #fff3c4, #ffe08a); }
}

.ticket-placeholder {
  position: absolute;
  inset: 18px;
  border-radius: 10px;
  background: rgba(10,14,23,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

@media (max-width: 480px) {
  .scratch-ticket { max-width: 320px; padding: 14px; }
  .scratch-cell .symbol-layer { font-size: 30px; }
}
