/* Glücksrad für den Dozenten. Baut auf style.css auf. */

.wheel-main {
    max-width: 1240px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.arena {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 1.6rem;
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 1.5px solid var(--rule);
    border-radius: 22px;
    background:
        radial-gradient(ellipse 70% 50% at 40% 0, rgba(139, 92, 246, 0.22), transparent 70%),
        radial-gradient(ellipse 50% 40% at 40% 100%, rgba(255, 79, 160, 0.12), transparent 70%),
        var(--bg-deep);
    overflow: hidden;
}

.arena.panel-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.arena.panel-hidden .panel {
    display: none;
}

.arena.panel-hidden .wheel-box {
    width: min(100%, 640px, max(280px, calc(100dvh - 320px)));
}

/* Beamer: alles muss auf einen Bildschirm passen, das Rad richtet sich nach der Höhe */
.arena:fullscreen {
    height: 100dvh;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    padding: 22px 32px;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.arena:fullscreen.panel-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.arena:fullscreen .arena-main {
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    min-height: 0;
}

.arena:fullscreen .wheel-box,
.arena:fullscreen.panel-hidden .wheel-box {
    align-self: center;
    width: min(100%, calc(100dvh - 300px));
    margin-top: 84px;
}

.arena:fullscreen .panel {
    align-self: center;
    max-height: calc(100% - 56px);
    margin-top: 56px;
    overflow-y: auto;
}

/* Im Vollbild klein in der Ecke oben rechts, damit nichts vom Rad ablenkt */
.arena:fullscreen .arena-tools {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 6;
    gap: 0.35rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.arena:fullscreen .arena-tools:hover,
.arena:fullscreen .arena-tools:focus-within {
    opacity: 1;
}

.arena:fullscreen .tool-btn {
    height: 30px;
    padding: 0 0.6rem 0 0.5rem;
    font-size: 0.64rem;
    border-radius: 8px;
}

.arena:fullscreen .tool-btn svg {
    width: 15px;
    height: 15px;
}

.arena:fullscreen .wheel-count {
    font-size: 0.66rem;
}

.arena-main {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 1.2rem;
    min-width: 0;
}

.arena-title {
    justify-self: stretch;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
}

.arena-title h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
    text-transform: uppercase;
}

.arena-title h1 em {
    display: inline-block;
    padding: 0 0.12em;
    font-style: normal;
    background: var(--gold);
    color: var(--ink);
    transform: rotate(-2deg);
}

.arena-main,
.panel {
    position: relative;
    z-index: 2;
}

.arena-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 40px;
    padding: 0 0.85rem 0 0.65rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: 10px;
    background: rgba(245, 243, 248, 0.04);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-soft);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tool-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(250, 199, 117, 0.08);
}

.tool-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-btn .icon-chevron {
    transition: transform 0.2s ease;
    transform-origin: 8.5px 12px;
}

.arena:not(.panel-hidden) .tool-btn .icon-chevron {
    transform: scaleX(-1);
}

.tool-btn .icon-shrink,
.arena:fullscreen .tool-btn .icon-expand {
    display: none;
}

.arena:fullscreen .tool-btn .icon-shrink {
    display: inline;
}

.wheel-count {
    margin-right: 0.4rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-mute);
}

.wheel-box {
    position: relative;
    width: min(100%, 520px, max(280px, calc(100dvh - 320px)));
    aspect-ratio: 1;
    margin-top: 84px;
}

.wheel {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: rotate(var(--w, 0deg));
    box-shadow: 0 0 0 7px var(--bg), 0 0 0 9px rgba(245, 243, 248, 0.2), 0 30px 70px rgba(0, 0, 0, 0.55);
}

.wheel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0, transparent 55%, rgba(11, 8, 18, 0.4) 100%);
    pointer-events: none;
}

/* Farbiger Rand pro Feld in den Vibecheck-Farben */
.wheel-rim {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
    mask: radial-gradient(circle closest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
    pointer-events: none;
}

/* Kirmes-Lichter rund ums Rad */
.bulb {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 0 6px 2px rgba(250, 199, 117, 0.7);
    transform: rotate(var(--b)) translateY(calc(var(--rim, 200px) * -1));
    animation: bulb-idle 1.6s steps(1) infinite;
    animation-delay: calc(var(--n) * -0.8s);
    pointer-events: none;
}

.arena.spinning .bulb {
    animation: bulb-chase 0.5s steps(1) infinite;
    animation-delay: calc(var(--k) * -0.125s);
}

.wheel.flash .bulb {
    animation: bulb-flash 0.18s steps(1) 8;
}

@keyframes bulb-idle {
    0% { opacity: 1; }
    50% { opacity: 0.25; box-shadow: none; }
}

@keyframes bulb-chase {
    0% { opacity: 1; background: var(--gold); }
    25% { opacity: 0.2; box-shadow: none; }
}

@keyframes bulb-flash {
    0% { opacity: 1; background: var(--pink); box-shadow: 0 0 10px 4px rgba(255, 79, 160, 0.8); }
    50% { opacity: 0.2; }
}

.seat {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    justify-items: center;
    width: var(--s, 56px);
    margin-left: calc(var(--s, 56px) / -2);
    margin-top: calc(var(--s, 56px) / -2);
    padding: 0;
    border: 0;
    background: none;
    transform: rotate(var(--a)) translateY(calc(var(--r, 150px) * -1)) rotate(calc(var(--a) * -1 - var(--w, 0deg)));
}

.seat-lean {
    display: block;
    width: 100%;
    transform: rotate(var(--lean, 0deg));
    transform-origin: 50% 85%;
}

.seat .vibi {
    width: 100%;
    transform-origin: 50% 85%;
    animation: seat-bob 2.6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.43s);
}

.arena.spinning .seat .vibi {
    animation: none;
}

.seat .vibi.pop {
    animation: seat-pop 0.45s ease-out;
}

@keyframes seat-bob {
    0%, 100% { transform: translateY(0) scale(1, 1); }
    50% { transform: translateY(-3px) scale(0.97, 1.03); }
}

@keyframes seat-pop {
    40% { transform: translateY(-9px) rotate(-6deg); }
}

.seat .name {
    margin-top: -6px;
    max-width: calc(var(--s, 56px) * 1.7);
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(11, 8, 18, 0.8);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wheel.crowded .seat .name {
    font-size: 9px;
}

.seat.under .name {
    background: var(--gold);
    color: var(--ink);
}

.quip {
    position: absolute;
    bottom: 92%;
    left: 50%;
    z-index: 5;
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--hand);
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 2px 2px 0 var(--pink);
    transform: translateX(-50%) rotate(-4deg);
    animation: quip-pop 0.25s ease-out;
}

.hub {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 24%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 5px var(--bg-deep), inset 0 0 0 2px rgba(245, 243, 248, 0.12);
    transform: translate(-50%, -50%);
    font-family: var(--display);
    font-size: clamp(10px, 1.6vw, 14px);
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}

.hub b {
    font-weight: 400;
    color: var(--gold);
}

.pointer {
    position: absolute;
    top: -22px;
    left: 50%;
    z-index: 6;
    width: 32px;
    height: 40px;
    margin-left: -16px;
    background: var(--gold);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: 50% 0;
    filter: drop-shadow(0 3px 0 var(--pink));
}

.pointer.tick {
    animation: tick 0.14s ease-out;
}

.host {
    position: absolute;
    top: -98px;
    left: 50%;
    z-index: 7;
    width: 90px;
    margin-left: -45px;
    line-height: 0;
    cursor: pointer;
}

.host svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.host.hop {
    animation: hop 0.5s ease-out 2;
}

.host-line {
    position: absolute;
    top: -78px;
    left: calc(50% + 50px);
    z-index: 7;
    width: max-content;
    max-width: min(240px, 38vw);
    padding: 6px 11px;
    border-radius: 12px 12px 12px 3px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--hand);
    font-size: 21px;
    line-height: 1;
    box-shadow: 3px 3px 0 var(--pink);
    transform: rotate(-3deg);
}

.spin-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem 1rem;
}

/* Seitenleiste */

.panel {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    min-width: 0;
}

.panel-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.panel-block .field-label {
    margin: 0;
}

.add-form {
    display: flex;
    gap: 0.5rem;
}

.add-form input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--fg);
    font: inherit;
    font-size: 0.92rem;
}

.add-form input:focus {
    border-color: var(--gold);
    outline: none;
}

.hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--fg-mute);
}

.hint b {
    color: var(--fg-soft);
}

.roster-head {
    display: grid;
    gap: 0.15rem;
}

.roster-hint {
    font-size: 0.75rem;
    color: var(--fg-mute);
}

.roster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-height: 300px;
    margin: 0;
    padding: 0.5rem;
    overflow-y: auto;
    list-style: none;
    border: 1.5px dashed var(--rule);
    border-radius: 12px;
}

.roster-empty {
    padding: 0.4rem;
    font-family: var(--hand);
    font-size: 1.2rem;
    line-height: 1.1;
    color: var(--fg-mute);
}

.roster-item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1.5px solid var(--rule);
    border-radius: 999px;
    background: var(--bg-soft);
}

.roster-name {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.15rem 0.2rem 0.15rem 0.3rem;
    border: 0;
    background: none;
    font-size: 0.82rem;
    cursor: default;
}

.roster-name span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roster-name .vibi {
    width: 24px;
    flex-shrink: 0;
}

.roster-item.used {
    opacity: 0.55;
    border-style: dashed;
}

.roster-item.used .roster-name {
    cursor: pointer;
    text-decoration: line-through;
}

.roster-item.used .roster-name:hover {
    opacity: 1;
    color: var(--gold);
}

.roster-remove {
    width: 24px;
    height: 24px;
    margin-right: 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--fg-mute);
    font-size: 1rem;
    line-height: 1;
}

.roster-remove:hover {
    color: var(--pink);
    background: rgba(255, 79, 160, 0.12);
}

.roster-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mini-btn {
    align-self: flex-start;
    padding: 0.35rem 0.8rem;
    border: 1.5px dashed var(--rule-strong);
    border-radius: 999px;
    background: transparent;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-soft);
}

.mini-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.mini-btn.danger:hover {
    color: var(--pink);
    border-color: var(--pink);
}

.toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--fg-soft);
    cursor: pointer;
}

.toggle input {
    width: 17px;
    height: 17px;
    accent-color: var(--pink);
}

.arena.spinning .panel {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Pausenhof: wer dran war, läuft hier herum */

.yard {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}

.walker {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    justify-items: center;
    width: var(--size, 58px);
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
}

.walker.dragging {
    z-index: 3;
    cursor: grabbing;
}

.walker-shadow {
    position: absolute;
    top: calc(var(--size, 58px) * 0.74);
    left: 50%;
    width: 64%;
    height: calc(var(--size, 58px) * 0.12);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent 70%);
    transform: translate(-50%, calc(var(--z, 0) * 1px)) scale(var(--shadow, 1));
    pointer-events: none;
}

.walker-spin {
    position: relative;
    display: block;
    width: 100%;
    transform: rotate(calc(var(--spin, 0) * 1deg));
    transform-origin: 50% 55%;
}

.walker.settling .walker-spin {
    transition: transform 0.3s ease-out;
}

.walker-flip {
    display: block;
    width: 100%;
    transition: transform 0.2s ease;
}

.walker.facing-left .walker-flip {
    transform: scaleX(-1);
}

.walker-body {
    display: block;
    line-height: 0;
    transform-origin: 50% 90%;
}

.walker-body svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.walker.walking .walker-body {
    animation: waddle 0.42s ease-in-out infinite;
}

.walker.running .walker-body {
    animation: waddle 0.24s ease-in-out infinite;
}

.walker.dancing .walker-body {
    animation: dance 0.6s ease-in-out infinite;
}

.walker.jumping .walker-body {
    animation: hop 0.5s ease-out 2;
}

.walker.squished .walker-body {
    animation: squish-walker 0.35s ease-out;
}

.walker-name {
    margin-top: -5px;
    max-width: calc(var(--size, 58px) * 1.8);
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(11, 8, 18, 0.7);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--fg-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.walker.leaving {
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes waddle {
    25% { transform: translateY(-3px) rotate(-5deg); }
    75% { transform: translateY(-3px) rotate(5deg); }
}

@keyframes squish-walker {
    30% { transform: scale(1.18, 0.78); }
    60% { transform: scale(0.9, 1.12); }
}

/* Spotlight */

.spot {
    position: fixed;
    inset: 0;
    z-index: 800;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(6, 4, 10, 0.88);
    animation: fade 0.35s ease-out;
}

.spot[hidden] {
    display: none;
}

.lamp {
    position: absolute;
    top: 0;
    left: 50%;
    width: 60px;
    height: 22px;
    margin-left: -30px;
    border-radius: 0 0 30px 30px;
    background: var(--fg-mute);
}

.cone {
    position: absolute;
    top: -4%;
    left: 50%;
    width: min(92%, 680px);
    height: 104%;
    background: linear-gradient(180deg, rgba(250, 199, 117, 0.5), rgba(250, 199, 117, 0.07) 85%);
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
    transform: translateX(-50%);
    transform-origin: 50% 0;
    animation: cone-search 1.3s ease-in-out both;
}

.floorlight {
    position: absolute;
    left: 50%;
    bottom: 7%;
    width: min(70%, 480px);
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(250, 199, 117, 0.45), transparent 70%);
    transform: translateX(-50%);
}

.star {
    position: relative;
    z-index: 4;
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    max-width: 100%;
    padding: 40px 16px 24px;
    text-align: center;
}

.drum {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Ablauf: Scheinwerfer sucht (0–1,1 s), Vibi fällt rein (0,7–1,3 s), quetscht sich bei der Landung,
   dann Name, Spruch, Knöpfe; danach atmet es und spielt seine Reaktion */
.star-stage {
    position: relative;
    display: grid;
    place-items: end center;
    width: min(46vw, 250px);
}

.star-vibi,
.star-react,
.star-breathe {
    display: block;
    width: 100%;
    line-height: 0;
    transform-origin: 50% 86%;
}

.star-breathe svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.star-vibi {
    position: relative;
    z-index: 2;
    animation: star-fall 1.1s 0.6s both;
}

.star-breathe {
    animation: breathe 2.4s ease-in-out 1.8s infinite;
}

.star-react.dance { animation: dance 0.7s ease-in-out infinite; }
.star-react.shake { animation: shake 0.5s ease-in-out 3; }
.star-react.hop { animation: hop 0.7s ease-out infinite; }
.star-react.wobble { animation: wobble 0.6s ease-in-out 4; }

.star-shadow {
    position: absolute;
    bottom: 4%;
    left: 50%;
    width: 66%;
    height: 12%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
    transform: translateX(-50%);
    animation: shadow-grow 1.1s 0.6s both;
}

.star-dust {
    position: absolute;
    bottom: 8%;
    left: 50%;
    z-index: 3;
    width: 0;
    height: 0;
}

.star-dust i {
    position: absolute;
    width: 16px;
    height: 16px;
    margin: -8px;
    border-radius: 50%;
    background: rgba(244, 235, 217, 0.75);
    opacity: 0;
    animation: dust 0.7s ease-out 1.22s both;
}

.star-dust i:nth-child(1) { --dx: -90px; --dy: -14px; }
.star-dust i:nth-child(2) { --dx: -60px; --dy: -34px; }
.star-dust i:nth-child(3) { --dx: -30px; --dy: -10px; }
.star-dust i:nth-child(4) { --dx: 30px; --dy: -12px; }
.star-dust i:nth-child(5) { --dx: 62px; --dy: -32px; }
.star-dust i:nth-child(6) { --dx: 92px; --dy: -12px; }

.spot-crowd {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 0 16px;
    pointer-events: none;
}

.fan {
    width: clamp(44px, 6vw, 72px);
    line-height: 0;
    transform-origin: 50% 90%;
    animation: fan-in 0.5s ease-out both, cheer 0.55s ease-in-out infinite alternate;
    animation-delay: calc(1.3s + var(--i) * 0.06s), calc(1.8s + var(--i) * 0.11s);
}

.fan svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

@keyframes star-fall {
    0% { transform: translateY(-120vh) scale(0.88, 1.18); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
    55% { transform: translateY(0) scale(0.9, 1.14); animation-timing-function: ease-out; }
    66% { transform: translateY(0) scale(1.28, 0.74); animation-timing-function: ease-out; }
    80% { transform: translateY(-22px) scale(0.95, 1.07); animation-timing-function: ease-in; }
    90% { transform: translateY(0) scale(1.06, 0.95); }
    100% { transform: translateY(0) scale(1, 1); }
}

@keyframes shadow-grow {
    0% { opacity: 0; transform: translateX(-50%) scale(0.2); }
    55% { opacity: 1; transform: translateX(-50%) scale(1); }
    66% { transform: translateX(-50%) scale(1.25, 1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes dust {
    0% { opacity: 0.9; transform: translate(0, 0) scale(0.4); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.4); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1, 1); }
    50% { transform: scale(1.03, 0.97); }
}

@keyframes fan-in {
    from { opacity: 0; transform: translateY(80px); }
}

@keyframes cheer {
    from { transform: translateY(0) rotate(-4deg); }
    to { transform: translateY(-12px) rotate(4deg); }
}

@keyframes cone-search {
    0% { opacity: 0; transform: translateX(-50%) rotate(-24deg); }
    15% { opacity: 1; }
    40% { transform: translateX(-50%) rotate(20deg); }
    70% { transform: translateX(-50%) rotate(-9deg); }
    85% { transform: translateX(-50%) rotate(3deg); opacity: 0.6; }
    92% { opacity: 1; }
    100% { opacity: 1; transform: translateX(-50%) rotate(0deg); }
}

.star-name {
    max-width: 100%;
    margin: 0;
    padding: 0.04em 0.16em;
    background: var(--pink);
    color: var(--bg-deep);
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 0.95;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    box-shadow: 6px 6px 0 var(--gold);
    transform: rotate(-2deg);
    animation: stamp 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 1.45s both;
}

.star-line {
    max-width: 24ch;
    margin: 0;
    font-family: var(--hand);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.05;
    color: var(--gold);
    animation: grow-in 0.3s ease-out 1.9s both;
}

.star-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.4rem;
    animation: grow-in 0.3s ease-out 2.1s both;
}

.confetti {
    position: absolute;
    inset: 0;
    z-index: 40;
    overflow: hidden;
    pointer-events: none;
}

.confetti i {
    position: absolute;
    top: -20px;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    background: var(--c);
    transform: rotate(var(--r));
    animation: fall var(--d) cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

@keyframes tick {
    50% { transform: rotate(14deg); }
}

@keyframes quip-pop {
    from { opacity: 0; transform: translateX(-50%) scale(0.6); }
}

@keyframes grow-in {
    from { opacity: 0; transform: scale(0.6); }
}

@keyframes stamp {
    0% { opacity: 0; transform: rotate(-12deg) scale(2.2); }
    100% { opacity: 1; transform: rotate(-2deg) scale(1); }
}

@keyframes fall {
    0% { transform: translate(0, 0) rotate(var(--r)); }
    100% { transform: translate(var(--x), 110vh) rotate(calc(var(--r) + 720deg)); }
}

@media (max-width: 900px) {
    .arena {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .host-line {
        left: auto;
        right: -4px;
        top: -104px;
        font-size: 18px;
    }

    .wheel-box {
        margin-top: 104px;
    }
}

.arena:not(.spinning) .seat-lean {
    transition: transform 0.7s cubic-bezier(0.3, 1.8, 0.5, 1);
}
