body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0f172a;
    margin: 0;
    color: #e2e8f0;
}

.container {
    text-align: center;
    background: #111827;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    width: min(95vw, 1100px);
}

h1 {
    margin-top: 0;
}

a {
    color: #a5b4fc;
}

a:hover {
    color: #c7d2fe;
}

.wheel-container {
    position: relative;
    width: clamp(260px, 72vmin, 720px);
    height: clamp(260px, 72vmin, 720px);
    margin: 1rem auto;
}

canvas {
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    width: 100%;
    height: 100%;
}

.pointer {
    position: absolute;
    top: clamp(-24px, -2.5vmin, -12px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: clamp(14px, 2vmin, 20px) solid transparent;
    border-right: clamp(14px, 2vmin, 20px) solid transparent;
    border-top: clamp(22px, 3vmin, 30px) solid #c0392b;
}

.winner {
    margin-top: 1rem;
    color: #27ae60;
    font-size: 1.5rem;
    height: 2rem;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 1rem;
}

.entry-input {
    display: flex;
    flex-direction: column;
    width: 280px;
}

.entry-list {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #1f2937;
    border-radius: 6px;
    padding: 0.5rem;
    background: #0b1220;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.entry-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem;
    background: #0f172a;
    border-radius: 6px;
    border: 1px solid #1f2937;
    box-shadow: 0 6px 14px rgba(3, 7, 18, 0.45);
    min-width: 0;
    position: relative;
}

.entry-row--over::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0.5rem;
    right: 0.5rem;
    height: 4px;
    border-radius: 999px;
    background: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.65);
}


.entry-row .entry-remove {
    margin-left: auto;
}

.entry-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.entry-edit {
    flex: 1;
    min-width: 0;
    border: 1px solid #1f2937;
    border-radius: 6px;
    background: #0b1220;
    color: #e2e8f0;
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
}

.entry-edit::placeholder {
    color: #94a3b8;
}

.entry-handle {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0.1rem 0.2rem;
    font-size: 1.1rem;
    line-height: 1;
    cursor: grab;
}

.entry-handle:active {
    cursor: grabbing;
}

.entry-remove {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.1rem 0.3rem;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.entry-remove:hover {
    color: #e2e8f0;
}

.entry-row--end {
    min-height: 12px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.winner-image-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.winner-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.winner-image {
    width: 320px;
    height: 320px;
    border-radius: 18px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid #e2e8f0;
}

.entry-text {
    font-size: 0.95rem;
    color: #e2e8f0;
    word-break: break-word;
}

.entry-field {
    margin-top: 0.5rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #1f2937;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #0b1220;
    color: #e2e8f0;
}

.entry-field::placeholder {
    color: #94a3b8;
}

.paste-hint {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.import-input {
    display: none;
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    color: #f8fafc;
    background-color: #2563eb;
    transition: background-color 0.3s;
}

button:hover:not(:disabled) {
    background-color: #1d4ed8;
}

button:disabled {
    background-color: #334155;
    cursor: not-allowed;
}

.winner-announcement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f8fafc;
    font-size: 3rem;
    font-weight: bold;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.winner-announcement.show {
    opacity: 1;
    pointer-events: all;
}
