/* Order Rush shared engine styles. Each game's own style.css sets --or-accent to theme it
   (falls back to the site's primary color if unset). */
.or-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  --or-accent: var(--color-primary);
}

.or-ticket {
  position: relative;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  overflow: visible;
}
.or-ticket--shake { animation: or-shake 0.35s ease; }
@keyframes or-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.or-ticket__name { font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.or-ticket__steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.or-step {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--color-border);
  opacity: 0.5;
  transform: scale(0.9);
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.or-step--done { opacity: 1; border-color: var(--color-success); background: rgba(74,222,128,0.14); transform: scale(1); }
.or-step--next {
  opacity: 1;
  border-color: var(--or-accent);
  transform: scale(1.08);
  animation: or-pop 0.5s ease infinite alternate;
}
@keyframes or-pop {
  from { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
  to { box-shadow: 0 0 0 5px color-mix(in srgb, var(--or-accent) 22%, transparent); }
}

.or-timerbar { height: 8px; border-radius: 999px; background: var(--color-border); overflow: hidden; }
.or-timerbar__fill { height: 100%; background: var(--or-accent); transition: width 0.1s linear, background 0.2s; }
.or-timerbar__fill--urgent { background: var(--color-accent); }

.or-queue-preview { display: flex; gap: 8px; align-items: center; color: var(--color-text-soft); font-size: 0.86rem; }
.or-queue-preview__icons { display: flex; gap: 6px; font-size: 1.2rem; }

.or-stations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}
.or-station {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease;
}
.or-station__icon { font-size: 1.6rem; }
.or-station:hover { border-color: var(--or-accent); }
.or-station:active { transform: scale(0.94); }

.or-confetti {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.or-confetti__bit {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  opacity: 1;
  animation: or-confetti-fly 0.65s ease-out forwards;
}
@keyframes or-confetti-fly {
  from { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  to { transform: translate(var(--dx), -70px) rotate(var(--dr)); opacity: 0; }
}

@media (max-width: 400px) {
  .or-stations { grid-template-columns: repeat(4, 1fr); }
}
