/* ============================================================
   A round, in a pop-up (scripts/roundmodal.js)
   ============================================================ */
.rmodal {
  width: min(92vw, 1080px); max-height: 90svh;
  padding: 0; border: 1px solid var(--line); background: var(--ground); color: var(--ink);
  box-shadow: 0 60px 120px -40px rgb(0 0 0 / 0.95);
  overflow: auto;
}
.rmodal::backdrop { background: rgb(0 0 0 / 0.72); backdrop-filter: blur(6px); }
.rmodal[open] { animation: rmodalIn var(--d3) var(--ease-out); }
@keyframes rmodalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }

.rmodal__sheet { position: relative; display: grid; }
@media (min-width: 860px) { .rmodal__sheet { grid-template-columns: 1.15fr 1fr; } }

.rmodal__close {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3;
  padding: 0.55rem 0.8rem; border: 1px solid var(--line); background: var(--ground);
  color: var(--muted); cursor: pointer; letter-spacing: 0.14em; text-transform: uppercase;
}
.rmodal__close:hover, .rmodal__close:focus-visible { color: var(--ink); border-color: var(--accent); }

.rmodal__art {
  position: relative; aspect-ratio: 1; min-height: 0;
  background: radial-gradient(60% 60% at 50% 55%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), #070707;
  border-right: 1px solid var(--line);
}
.rmodal__art > * { position: absolute; inset: 6%; width: 88%; height: 88%; }
.rmodal__flat { color: var(--accent); transition: opacity var(--d3) var(--ease-out); }
.rmodal__flat .circuit { width: 100%; height: 100%; }
.rmodal__canvas { opacity: 0; transition: opacity var(--d4) var(--ease-out); }
.rmodal__art.is-3d .rmodal__canvas { opacity: 1; }
.rmodal__art.is-3d .rmodal__flat { opacity: 0; }

.rmodal__info {
  padding: clamp(1.4rem, 3.5vw, 2.8rem); display: grid; gap: 1rem; align-content: center;
}
.rmodal__eyebrow { color: var(--accent); }
.rmodal__name {
  font-family: var(--display-face); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.8rem, 1rem + 2.6vw, 3.2rem); line-height: 0.92;
}
.rmodal__circuit { color: var(--muted); }
.rmodal__facts { margin: 0.4rem 0 0; display: grid; border-top: 1px solid var(--line); }
.rmodal__facts > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 0.75rem; border-bottom: 1px solid var(--line);
}
.rmodal__facts dt { color: var(--muted); }
.rmodal__facts dd { margin: 0; font-family: var(--display-face); font-weight: 700; text-transform: uppercase; text-align: right; }
.rmodal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 0.6rem; }
/* Secondary doors: outlined, same height as the ticket, arrow slides. */
.rmodal__btn {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 3.4rem;
  padding: 0 1.2rem; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color var(--d2) var(--ease-out), background var(--d2) var(--ease-out);
}
.rmodal__btn i { font-style: normal; color: var(--accent); transition: transform var(--d2) var(--ease-out); }
.rmodal__btn:hover, .rmodal__btn:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.rmodal__btn:hover i { transform: translateX(4px); }
/* Grab the circuit and turn it (track3d.js handles the drag). */
.rmodal__art.is-3d .rmodal__flat { pointer-events: none; }
.rmodal__canvas { cursor: grab; touch-action: none; }
.rmodal__canvas:active { cursor: grabbing; }
.rmodal__hint { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; width: auto; height: auto; inset: auto auto 4% 50%;
  color: var(--muted); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .rmodal[open] { animation: none; } }
/* "Tell me when tickets drop": the main action when a hosted round is not on sale yet. */
button.rmodal__btn { cursor: pointer; background: none; }
.rmodal__btn--hot { border-color: var(--accent); }
