.topbar {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar h1 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.topbar .brand {
    color: #22d3ee;
}
.btn {
    background: #111827;
    border: 1px solid #1f2937;
    color: #e5e7eb;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.06s ease, background 0.2s ease;
    border-bottom-width: 2px;
}
.btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}
.btn.primary {
    background: linear-gradient(90deg, #4f46e5, #0ea5e9);
    border: 0;
    color: #fff;
}
.btn.subtle {
    background: #0f172a;
    border-color: #243047;
    color: #cbd5e1;
}
.wheel-panel {
    position: relative;
}
.pointer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    top: 6px;
    z-index: 3;
}
.pointer svg path {
    fill: #f59e0b;
    stroke: #111827;
    stroke-width: 6;
}
.canvas-wrap {
    position: relative;
    width: max-content;
    margin: 40px auto 10px;
    border-radius: 999px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    border: 8px solid #0f172a;
    overflow: hidden;
}
.spin-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 120px;
    height: 46px;
    border-radius: 999px;
    pointer-events: auto;
}
.controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 10px 0 0;
}
.control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0b1220;
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 8px 12px;
}
#winner {
    margin-top: 12px;
    background: #0f172a;
    border: 1px solid #243047;
    border-radius: 14px;
    padding: 12px;
}
#winner .muted {
    color: #a5b4fc;
    font-size: 12px;
}
#winner .value {
    font-size: 20px;
    font-weight: 800;
}
.editor .editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}
.items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow: auto;
    padding-right: 6px;
}
.item {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.5fr auto;
    gap: 8px;
    background: #0f172a;
    border: 1px solid #243047;
    border-radius: 16px;
    padding: 10px;
}
.item input[type="text"],
.item input[type="number"] {
    width: 100%;
    background: #0b1220;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 10px 12px;
    color: #e5e7eb;
}
.item .color-pick {
    display: flex;
    align-items: center;
    gap: 8px;
}
.item input[type="color"] {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #1f2937;
    background: #0b1220;
    padding: 0;
}
.item .remove {
    background: #ef4444;
    border: 0;
    color: #fff;
    border-radius: 12px;
    padding: 0 10px;
}
.paste {
    margin-top: 14px;
    background: #0f172a;
    border: 1px solid #243047;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.paste textarea {
    min-height: 110px;
    background: #0b1220;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 10px 12px;
    color: #e5e7eb;
    resize: vertical;
}
.muted {
    color: #9ca3af;
    font-size: 12px;
}
.footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 20px 30px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}
.size-readout {
    font-size: 12px;
    color: #cbd5e1;
}
