/* Wheel page only — loaded after style.css */
/* ==================================================================
   WHEEL v5 — layout, quick-add panel, "Admit one" ticket
   ================================================================== */
.wheel-main { max-width: 1560px; }
.wl { display: grid; grid-template-columns: minmax(300px, 360px) 1fr minmax(280px, 330px); gap: 26px; align-items: start; }
.wl .panel { max-height: calc(100vh - 200px); min-height: 520px; position: sticky; top: 90px; }
.wl-left { padding: 14px; }
.wl-tabs { width: 100%; margin: 0 0 14px; }
.wl-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wl-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 2px 6px; display: flex; flex-direction: column; }
.wl-pane[hidden] { display: none; }
.wl-pane-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: flex-end; }

/* big "add all" */
.add-all {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left;
  border: 0; border-radius: var(--r); cursor: pointer;
  background: var(--yellow); color: var(--on-yellow);
  box-shadow: 0 14px 34px -14px var(--yellow-glow);
  transition: transform .3s var(--spring), box-shadow .3s, background .2s;
}
.add-all::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--spectrum); }
.add-all:hover:not(:disabled) { transform: translateY(-2px); background: var(--yellow-2); box-shadow: 0 18px 40px -12px var(--yellow-glow); }
.add-all:active:not(:disabled) { transform: scale(.98); }
.add-all:disabled { opacity: .45; cursor: default; box-shadow: none; }
.add-all.hit, .qa-tile.hit { animation: hit .5s var(--spring); }
@keyframes hit { 30% { transform: scale(.94); } 70% { transform: scale(1.03); } }
.add-all-ico { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.12); font-size: 1.3rem; font-weight: 700; }
.add-all-txt b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.add-all-txt small { display: block; margin-top: 2px; font-size: .74rem; opacity: .7; }

.skip-toggle { display: flex; align-items: center; gap: 10px; margin: 12px 4px 4px; font-size: .8rem; color: var(--text-dim); cursor: pointer; user-select: none; }
.skip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sw-track { position: relative; width: 34px; height: 20px; flex-shrink: 0; border-radius: 10px; background: var(--surface-3); transition: background .25s; }
.sw-track i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-dim); transition: transform .35s var(--spring), background .25s; }
.skip-toggle input:checked + .sw-track { background: rgba(246,229,141,.3); }
.skip-toggle input:checked + .sw-track i { transform: translateX(14px); background: var(--yellow); }
.skip-toggle input:focus-visible + .sw-track { outline: 2px solid var(--bar-cyan); outline-offset: 2px; }

.qa-label { margin: 20px 4px 10px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qa-tile {
  --c: var(--yellow);
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 9px; padding: 11px 12px; min-width: 0;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font-family: var(--font-body); font-size: .84rem; font-weight: 500; text-align: left; cursor: pointer;
  transition: border-color .2s, background .2s, transform .3s var(--spring);
}
.qa-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); transform: scaleY(.4); transition: transform .35s var(--ease); }
.qa-tile:hover:not(:disabled) { border-color: var(--line-2); background: var(--surface-3); transform: translateY(-1px); }
.qa-tile:hover:not(:disabled)::before { transform: scaleY(1); }
.qa-tile:disabled { opacity: .4; cursor: default; }
.qa-ico { color: var(--c); font-size: .95rem; width: 16px; text-align: center; flex-shrink: 0; }
.qa-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex-shrink: 0; margin: 0 3px; }
.qa-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-n { flex-shrink: 0; font-size: .72rem; font-weight: 600; color: var(--text-dim); padding: 2px 7px; border-radius: var(--pill); background: rgba(255,255,255,.06); }

.qa-search .field { width: 100%; }
.qa-results { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.qa-results[hidden] { display: none; }
.qa-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; transition: background .2s; animation: item-in .35s var(--ease) backwards; }
.qa-row:hover, .qa-row:focus-visible { background: var(--surface-2); outline: none; }
.qa-thumb { width: 32px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--surface-3); }
.qa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qa-info { flex: 1; min-width: 0; }
.qa-info b { display: block; font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-info small { display: block; font-size: .7rem; color: var(--text-dim); }
.qa-plus { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-size: 1rem; transition: background .2s, color .2s, transform .35s var(--spring); }
.qa-row:hover .qa-plus { background: var(--yellow); color: var(--on-yellow); border-color: transparent; transform: rotate(90deg); }
.qa-row.on .qa-plus { background: var(--bar-green); color: #0c0c0e; border-color: transparent; transform: none; }
.qa-none { padding: 12px 8px; font-size: .8rem; color: var(--text-dim); }
.qa-manual { display: flex; gap: 8px; margin-top: 12px; }
.qa-manual .field { flex: 1; min-width: 0; }

.wheel-box.pop .wheel-ring { animation: wheel-pop .55s var(--spring); }
@keyframes wheel-pop { 35% { transform: scale(1.025); } }
.wheel-hub small { text-transform: none; letter-spacing: .02em; font-size: .62rem; margin-top: 3px; }
.stage { padding-top: 0; gap: 18px; }

@media (max-width: 1240px) {
  .wl { grid-template-columns: 1fr 1fr; }
  .wl .stage { grid-column: 1 / -1; order: -1; }
  .wl .panel { position: static; max-height: 640px; }
}
@media (max-width: 720px) {
  .wl { grid-template-columns: 1fr; gap: 18px; }
  .wl .panel { min-height: 0; max-height: none; }
  .wl-pane { overflow: visible; }
}

/* ---------------- ADMIT ONE ticket ---------------- */
.tk { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.tk.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .4s var(--ease), visibility 0s; }
.tk-bg { position: absolute; inset: 0; background: rgba(6,6,8,.9); backdrop-filter: blur(6px); }
.tk-bg img { position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover; opacity: 0; filter: blur(24px) saturate(1.2) brightness(.42); transition: opacity 1.2s var(--ease); }
.tk-bg img.in { opacity: 1; }
.tk-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(6,6,8,.85) 85%); }

.tk-ticket {
  --notch: 18px;
  position: relative; z-index: 2; width: min(1080px, 100%); max-height: calc(100vh - 48px);
  display: grid; grid-template-columns: 250px 1fr 250px;
  border-radius: var(--r-xl); background: #f4efe3; color: #16140f;
  box-shadow: 0 60px 120px -40px #000, 0 0 0 1px rgba(255,255,255,.06);
  transform: translateY(70px) rotate(-2.5deg) scale(.92); opacity: 0;
  transition: transform .9s var(--spring), opacity .4s var(--ease);
  /* punched notches where the stub tears off */
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 250px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 250px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - 250px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 250px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.tk.show .tk-ticket { transform: none; opacity: 1; }
.tk.out .tk-ticket { transform: translateY(-30px) scale(.96); opacity: 0; transition: transform .3s var(--ease-in), opacity .3s; }

.tk-poster { position: relative; margin: 18px 0 18px 18px; border-radius: 18px; overflow: hidden; background: #2a2620; min-height: 330px; }
.tk-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .2; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.tk-poster img.in { opacity: 1; transform: none; }
.tk-rate { position: absolute; left: 12px; bottom: 12px; padding: 6px 11px; border-radius: var(--pill); background: rgba(12,12,14,.82); color: var(--yellow); font-size: .82rem; font-weight: 700; backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--spring); }
.tk-rate.on { opacity: 1; transform: none; }

.tk-main { min-width: 0; padding: 30px 30px 26px; display: flex; flex-direction: column; overflow-y: auto; }
.tk-main > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.tk.show .tk-main > * { opacity: 1; transform: none; }
.tk.show .tk-main > *:nth-child(1) { transition-delay: .25s; }
.tk.show .tk-main > *:nth-child(2) { transition-delay: .35s; }
.tk.show .tk-main > *:nth-child(3) { transition-delay: .45s; }
.tk.show .tk-main > *:nth-child(4) { transition-delay: .55s; }
.tk.show .tk-main > *:nth-child(5) { transition-delay: .65s; }
.tk-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a8173; }
.tk-kicker em { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; }
.tk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bar-red); box-shadow: 0 0 0 4px rgba(226,59,46,.18); animation: tally 1.3s infinite; }
.tk-title { margin-bottom: 14px; min-height: 48px; display: flex; align-items: flex-end; }
.tk-title h2 { margin: 0; color: #16140f; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.tk-title img { max-height: 92px; max-width: min(420px, 100%); object-fit: contain; object-position: left bottom; filter: brightness(0) saturate(100%); opacity: .9; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tk-meta span { padding: 4px 11px; border-radius: var(--pill); border: 1px solid rgba(22,20,15,.18); font-size: .76rem; font-weight: 500; color: #4a443a; }
.tk-desc { margin: 0 0 18px; font-size: .95rem; line-height: 1.6; color: #3b362e; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tk-label { margin-bottom: 10px; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a8173; }
.tk-cast { display: flex; gap: 14px; flex-wrap: wrap; }
.tk-c { width: 84px; }
.tk-av { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 7px; background: #ddd5c4; color: #6c6457; font-size: .9rem; font-weight: 700; box-shadow: 0 0 0 3px #f4efe3, 0 0 0 4px rgba(22,20,15,.15); }
.tk-c b { display: block; font-size: .74rem; font-weight: 600; line-height: 1.2; color: #16140f; }
.tk-c small { display: block; font-size: .66rem; color: #8a8173; line-height: 1.25; margin-top: 2px; }

.tk-stub {
  position: relative; display: flex; flex-direction: column; gap: 9px; padding: 26px 20px 20px;
  background: #ebe4d3; border-left: 2px dashed rgba(22,20,15,.22);
}
.tk-stub::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 5px; background: var(--spectrum); border-radius: 0 0 3px 3px; }
.tk-admit { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; color: #16140f; }
.tk-admit span { font-size: .78rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #8a8173; }
.tk-admit b { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.tk-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px;
  border-radius: 14px; border: 1px solid rgba(22,20,15,.18); background: #f8f4ea; color: #16140f;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer;
  opacity: 0; transform: translateX(16px);
  transition: background .2s, border-color .2s, transform .45s var(--spring), opacity .4s, box-shadow .25s;
}
.tk.show .tk-btn { opacity: 1; transform: none; }
.tk.show .tk-btn:nth-of-type(1) { transition-delay: .45s, .45s, .45s, .45s, 0s; }
.tk.show .tk-btn:nth-of-type(2) { transition-delay: .55s, .55s, .55s, .55s, 0s; }
.tk.show .tk-btn:nth-of-type(3) { transition-delay: .65s, .65s, .65s, .65s, 0s; }
.tk-btn span { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(22,20,15,.08); font-size: .9rem; }
.tk-btn:hover { border-color: #16140f; transform: translateX(-3px) !important; box-shadow: 4px 4px 0 #16140f; transition-delay: 0s !important; }
.tk-btn.primary { background: #16140f; color: var(--yellow); border-color: #16140f; }
.tk-btn.primary span { background: var(--yellow); color: #16140f; }
.tk-btn.primary:hover { box-shadow: 4px 4px 0 var(--bar-yellow); }
.tk-btn.danger { color: #b8261b; }
.tk-btn.danger span { background: rgba(226,59,46,.12); }
.tk-extra { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tk-extra button { border: 0; background: none; padding: 4px 0; cursor: pointer; font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: #6c6457; }
.tk-extra button:hover { color: #16140f; text-decoration: underline; }
.tk-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(22,20,15,.08); color: #16140f; font-size: 1.1rem; cursor: pointer; transition: background .2s, transform .4s var(--spring); }
.tk-close:hover { background: #16140f; color: var(--yellow); transform: rotate(90deg); }

@media (max-width: 900px) {
  .tk { padding: 0; align-items: end; }
  .tk-ticket {
    grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; border-radius: var(--r-xl) var(--r-xl) 0 0;
    -webkit-mask: none; mask: none; transform: translateY(100%);
  }
  .tk-poster { margin: 18px auto 0; width: 150px; min-height: 0; aspect-ratio: 2/3; }
  .tk-main { padding: 20px 22px 8px; overflow: visible; }
  .tk-stub { border-left: 0; border-top: 2px dashed rgba(22,20,15,.22); padding: 22px; }
  .tk-stub::after { top: -1px; }
  .tk-admit { display: none; }
}
.wl .wheel-box { width: min(100%, 540px, calc(100vh - 360px)); }
.qa-tile { padding: 10px 10px; gap: 7px; font-size: .8rem; }
.qa-n { padding: 2px 6px; font-size: .68rem; }
@media (max-width: 900px) {
  .tk-poster { width: 112px; margin-top: 16px; }
  .tk-main { padding: 16px 20px 8px; }
  .tk-desc { -webkit-line-clamp: 4; font-size: .9rem; }
  .tk-c { width: 70px; }
  .tk-av { width: 46px; height: 46px; }
  .tk-stub {
    position: sticky; bottom: 0; z-index: 4;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -14px 30px -18px rgba(0,0,0,.45);
  }
  .tk-btn { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; font-size: .74rem; text-align: center; line-height: 1.2; transform: translateY(12px); }
  .tk-btn:hover { transform: none !important; box-shadow: none; }
  .tk-extra { grid-column: 1 / -1; justify-content: center; margin: 0; padding: 0; }
}
.wheel-hub:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .tk-stub { gap: 6px; padding-left: 10px; padding-right: 10px; } .tk-btn { font-size: .68rem; padding: 10px 4px; } }
