    :root{color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,sans-serif;background:#101321;color:#f4f4fa}
    *{box-sizing:border-box}body{margin:0;display:grid;place-items:center;padding:24px}
    main{width:min(100%,560px)}.eyebrow{color:#b4a3ff;text-transform:uppercase;letter-spacing:.16em;font-size:.75rem;font-weight:800}
    h1{font-size:clamp(1.5rem,7vw,2.5rem);letter-spacing:-.055em;line-height:1.05;margin:20px 0}
    p{color:#b6b9c9;line-height:1.5}.panel{background:#1b2031;border:1px solid #333a50;border-radius:22px;padding:22px;box-shadow:0 18px 60px #0004}
    .top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.pill{font-size:.75rem;background:#32304d;color:#d9ceff;border-radius:100px;padding:7px 11px}
    ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}.item{display:flex;align-items:center;gap:12px;background:#282e42;border:1px solid #3b435c;border-radius:13px;padding:10px 12px;min-height:64px;cursor:grab;touch-action:pan-y}
    .item.dragging{opacity:.45}.number{font-weight:900;color:#b4a3ff;font-size:1.15rem;min-width:25px}.name{flex:1;font-weight:650}.controls{display:flex;gap:5px}
    button{font:inherit;cursor:pointer;border:0;border-radius:10px;font-weight:700}button:focus-visible{outline:3px solid #c7b8ff;outline-offset:3px}
    .move{width:33px;height:33px;background:#424962;color:white}.move:disabled{opacity:.25;cursor:default}
    .actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.primary{flex:1;background:#b9a4ff;color:#161329;padding:14px 18px}.secondary{background:#343b52;color:white;padding:14px 18px}
    .note{font-size:.85rem;margin-bottom:0;text-align:center}.status{margin-top:14px;text-align:center;color:#c8f6d6;min-height:22px;font-weight:650}

/* Rolling cascade animation */
.reel-window {
  flex: 1;
  min-width: 0;
  height: 28px;
  overflow: hidden; 
}
.reel-track {
  height: 200%;
  display: flex;
  flex-direction: column;
}
.reel-track .name {
  display: flex;
  flex: 1 0 50%;
  align-items: center;
  min-width: 0;
  line-height: 1.25;
}
.item.rolling { cursor: default; }
.item.landed { border-color: #655d89; }
.actions button:disabled { opacity: .6; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
}


/* Choices still spinning */
.item.spinning .name {
    opacity: .2;
}

.item.spinning .namedouble {
    display: block;
}
.item.spinning .reel-window {
    height: 28px;
        overflow: hidden;
}



/* Choices that have landed */
.item .name {
    color: #fff;
    transition: color 180ms ease;
}
.item .namedouble {
    display: none;
}
.item .reel-window {
    height: auto;
    overflow: visible;
}
