:root { --violet: #5b2bd6; --violet2: #3b1a99; --pink: #ff4fa0; --sun: #ffd23f; --paper: #fffaf0; --ink: #2a1f4d;
  --font: "Trebuchet MS", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: #2b1470; font-family: var(--font); color: var(--paper); user-select: none; -webkit-user-select: none; touch-action: none; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
header { position: relative; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 6px 10px; padding-top: max(6px, env(safe-area-inset-top));
  background: linear-gradient(90deg, var(--violet2), var(--violet) 55%, #8a2bd6); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
header h1 { margin: 0; font-size: 21px; font-weight: 900; color: var(--sun); text-shadow: 0 2px 0 #b2247a; white-space: nowrap; }
header h1 small { font-size: 12px; font-weight: 800; color: #ffd6f0; margin-left: 6px; text-shadow: none; }
header .sp { flex: 1; }
.icon-btn { height: 38px; min-width: 38px; border-radius: 19px; border: 2px solid rgba(255,210,63,.55); background: rgba(255,255,255,.1); color: #fff2b8; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; font: 800 14px var(--font); }
.icon-btn svg { width: 22px; height: 22px; flex: none; }
.icon-btn .slash { display: none; }
.icon-btn.off .slash { display: inline; } .icon-btn.off .wave { display: none; } .icon-btn.off { opacity: .7; }
#stage { position: relative; flex: 1; min-height: 0; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.ov { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(30,10,80,.45); padding: 12px; }
.card { position: relative; width: min(440px, 100%); max-height: calc(100% - 4px); overflow: auto; color: var(--ink); background: var(--paper);
  border-radius: 24px; border: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink), 0 18px 40px rgba(0,0,0,.45); padding: 12px 16px 14px; text-align: center;
  animation: pop .35s cubic-bezier(.2,1.5,.4,1); }
@keyframes pop { from { transform: scale(.75); opacity: 0 } }
.logo { font-size: 38px; font-weight: 900; color: var(--pink); letter-spacing: .01em; line-height: 1.05; text-shadow: 0 3px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); }
.logo.small { font-size: 30px; }
.lead { margin: 4px 0 8px; font-weight: 800; font-size: 15px; color: #5a4a8a; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { border: 3px solid var(--ink); border-radius: 16px; padding: 4px 2px 5px; cursor: pointer; background: #fff; font: inherit; color: var(--ink); }
.slot img { width: 100%; max-width: 72px; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto; transition: transform .15s; }
.slot .nm { font-weight: 900; font-size: 14px; }
.slot .md { display: inline-block; margin-top: 2px; font-weight: 900; font-size: 12px; padding: 2px 8px; border-radius: 10px; color: #fff; background: #2fb36b; }
.slot.bot .md { background: #7a6cc4; } .slot.off { opacity: .45; } .slot.off .md { background: #999; } .slot.off img { filter: grayscale(1); transform: scale(.85); }
.slot .ky { font-size: 10px; font-weight: 800; color: #7b6fa3; margin-top: 2px; min-height: 12px; }
.big { display: block; width: 100%; margin: 12px 0 4px; padding: 14px 10px; border-radius: 18px; border: 4px solid var(--ink); background: linear-gradient(#ffe066, #ffb321);
  color: var(--ink); font: 900 22px var(--font); box-shadow: 0 5px 0 var(--ink); cursor: pointer; }
.big:active, .mid:active, .pill:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.mid { padding: 10px 12px; border-radius: 14px; border: 3px solid var(--ink); background: #4fd1ff; color: var(--ink); font: 900 16px var(--font); box-shadow: 0 4px 0 var(--ink); cursor: pointer; width: 100%; margin-top: 8px; }
.mid.alt { background: #ff8ac4; }
.mid:disabled, .pill:disabled { opacity: .45; cursor: default; }
.pill { min-width: 46px; padding: 8px 10px; border-radius: 12px; border: 3px solid var(--ink); background: #b4ff7a; font: 900 17px var(--font); color: var(--ink); box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.ghost { margin-top: 10px; background: none; border: none; color: #6a5aa0; font: 800 15px var(--font); text-decoration: underline; cursor: pointer; padding: 6px; }
.hint { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: #7b6fa3; min-height: 1em; }
.online { margin-top: 10px; padding: 10px 10px 8px; border-radius: 16px; background: #efe8ff; border: 3px dashed #b9a6f2; }
.olt { font-weight: 900; font-size: 16px; color: var(--violet); margin-bottom: 6px; }
.row { display: flex; gap: 8px; align-items: center; justify-content: center; }
.row .lbl { font-weight: 900; font-size: 15px; margin-right: 2px; }
.row2 { display: flex; gap: 8px; }
.best { margin: 8px 0 0; font-weight: 800; font-size: 13px; color: #a0569a; }
.seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0; }
.seat { border: 3px solid var(--ink); border-radius: 14px; padding: 4px; background: #fff; font-weight: 800; font-size: 12px; overflow: hidden; }
.seat img { width: 56px; height: 56px; object-fit: contain; display: block; margin: 0 auto; }
.seat.empty img { filter: grayscale(1) opacity(.35); }
.seat .un { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#linkIn { width: 100%; padding: 9px; border-radius: 10px; border: 2px solid #b9a6f2; font: 700 13px var(--font); color: var(--ink); background: #fff; user-select: text; -webkit-user-select: text; }
.warn { font-weight: 800; color: #c0245e; margin: 8px 0 0; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin: 14px 0 4px; height: 205px; }
.pd { display: flex; flex-direction: column; align-items: center; width: 92px; }
.pd img { width: 74px; height: 74px; object-fit: contain; animation: bob 1s ease-in-out infinite alternate; }
.pd .blk { width: 100%; border: 3px solid var(--ink); border-radius: 10px 10px 0 0; color: var(--ink); font-weight: 900; font-size: 22px; display: grid; place-items: center; }
@keyframes bob { to { transform: translateY(-6px) } }
.table { font-weight: 800; font-size: 15px; }
.table div { display: flex; justify-content: space-between; padding: 3px 8px; border-bottom: 2px dotted #d8cdf5; }
@media (max-width: 520px) { header h1 small { display: none; } header h1 { font-size: 19px; } }
