.roulette-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #db2777; --p-text: #0f172a; width: 100%; max-width: 1000px; margin: 0 auto; background: var(--p-bg); border-radius: 24px; padding: 32px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.roulette-header { font-size: 1.5rem; font-weight: 600; color: var(--p-text); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.roulette-badge { background: #fce7f3; color: #be185d; padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 500; }
.roulette-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 16px; border-bottom: 1px solid var(--p-border); margin-bottom: 24px; }

.main-grid { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { 
    .main-grid { grid-template-columns: 1fr; } 
    .list-panel { order: 2; } .wheel-panel { order: 1; } 
    .roulette-tool-wrapper { padding: 20px; border-radius: 16px; }
}

.list-panel { background: #f8fafc; border-radius: 16px; padding: 24px; border: 1px solid var(--p-border); transition: 0.3s; }
.panel-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--p-text); font-weight: 600; font-size: 1.1rem; }
.input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.roulette-input { flex: 1; padding: 10px 12px; background: #ffffff; border: 1px solid #cbd5e1; color: var(--p-text); border-radius: 8px; outline: none; transition: 0.2s; }
.roulette-input:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1); }
.btn-add { padding: 10px 16px; background: var(--p-primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.btn-add:hover { filter: brightness(1.1); transform: translateY(-1px); }

.punishment-list { max-height: 400px; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 8px; }
.punishment-list::-webkit-scrollbar { width: 6px; }
.punishment-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.punishment-item { background: #ffffff; padding: 12px 16px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #e2e8f0; transition: 0.2s; border-left: 4px solid transparent; color: var(--p-text); font-size: 0.95rem; }
.punishment-item:hover { border-color: #cbd5e1; transform: translateX(4px); }
.punishment-item.active { background: #fdf2f8; border-left-color: var(--p-primary); font-weight: 600; border-color: #fbcfe8; }
.remove-btn { background: #fee2e2; border: none; color: #ef4444; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s; font-weight: bold; }
.remove-btn:hover { background: #ef4444; color: white; }
.empty-state { padding: 2rem 0; color: #94a3b8; text-align: center; font-style: italic; font-size: 0.9rem; }

.wheel-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wheel-wrapper { position: relative; margin-bottom: 2rem; width: 100%; max-width: 450px; aspect-ratio: 1/1; filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1)); }
.wheel-pointer { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); z-index: 10; width: 36px; height: 36px; background: #ef4444; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.wheel-pointer::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 18px solid #ef4444; }
.wheel-svg { width: 100%; height: 100%; transition-property: transform; transition-timing-function: cubic-bezier(0.15, 0, 0.20, 1); }

.control-buttons { display: flex; gap: 16px; margin-bottom: 16px; justify-content: center; }
.btn-spin { padding: 14px 32px; background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); color: white; border: none; border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3); display: flex; align-items: center; gap: 8px; }
.btn-spin:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(225, 29, 72, 0.4); }
.btn-spin:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-reset { padding: 14px 24px; background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-reset:hover { background: #e2e8f0; }

.celebration-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: 0.3s; }
.celebration-modal.show { opacity: 1; pointer-events: auto; }
.celebration-content { background: linear-gradient(135deg, #f97316 0%, #db2777 100%); border-radius: 24px; padding: 40px; max-width: 450px; width: 100%; text-align: center; position: relative; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); transform: scale(0.9) translateY(20px); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.celebration-modal.show .celebration-content { transform: scale(1) translateY(0); }
.celebration-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 24px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.celebration-result-box { background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border-radius: 16px; padding: 24px; margin-bottom: 24px; border: 2px dashed rgba(255,255,255,0.4); }
.celebration-result-text { font-size: 1.8rem; font-weight: bold; color: #fef08a; line-height: 1.4; word-break: break-word; }
.celebration-btn { background: white; color: #be185d; border: none; padding: 14px 40px; border-radius: 30px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.celebration-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

[data-theme="dark"] .roulette-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .list-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .roulette-input { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .punishment-item { background: #1e293b; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .punishment-item.active { background: rgba(219, 39, 119, 0.15); border-color: #db2777; color: #f8fafc; }
[data-theme="dark"] .remove-btn { background: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .btn-reset { background: #0f172a; border-color: #475569; color: #cbd5e1; }