/* Buttons */
.btn-glow-red {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}
.btn-glow-red:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-glow-green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}
.btn-glow-green:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

/* ---- Quality of life polish ---- */
button { transition: transform .12s ease, filter .15s ease, background-color .15s ease; }
button:not(:disabled):hover { filter: brightness(1.1); }
button:not(:disabled):active { transform: scale(.96); }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
#rollBtn:not(:disabled) { animation: rollPulse 1.8s ease-in-out infinite; }
@keyframes rollPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,.0); } 50% { box-shadow: 0 0 0 6px rgba(245,158,11,.25); } }
.dice { transition: transform .15s ease, opacity .2s ease; }
.dice:not(.rolling):hover { transform: translateY(-3px); }
#toastBox { position: fixed; top: 1rem; right: 1rem; z-index: 70; display: flex; flex-direction: column; gap: .5rem; max-width: min(92vw, 360px); pointer-events: none; }
.toast { pointer-events: auto; background: #111827; border: 1px solid #374151; border-left: 4px solid #f59e0b; color: #f3f4f6; font-size: .8rem; font-weight: 700; padding: .65rem .9rem; border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: toastIn .25s ease; }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.menu-title { font-size: clamp(2.6rem, 9vw, 4.2rem); font-weight: 900; letter-spacing: .06em; line-height: 1; background: linear-gradient(180deg,#fff 20%,#fca5a5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 22px rgba(239,68,68,.45)); }
.menu-title span { background: linear-gradient(180deg,#fde047,#ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu-card { background: rgba(17,24,39,.78); border: 1px solid rgba(75,85,99,.45); border-radius: 1.5rem; padding: 1rem 1.1rem; backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.menu-label { font-size: .65rem; font-weight: 800; color: #9ca3af; text-transform: uppercase; letter-spacing: .18em; }
.menu-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: 1.1rem .6rem; border-radius: 1.5rem; color: #fff; text-align: center; background-image: linear-gradient(135deg, var(--tw-gradient-from), var(--tw-gradient-to)); box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.menu-tile:hover { transform: translateY(-3px); }
.menu-mini { justify-content: center; min-height: 3.2rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: 1.5rem; padding: .8rem .3rem; border-radius: 1rem; background: rgba(31,41,55,.8); border: 1px solid rgba(75,85,99,.5); }
.menu-mini span { font-size: .75rem; font-weight: 800; color: #e5e7eb; }
.menu-mini:hover { border-color: #f59e0b; background: rgba(55,65,81,.8); }
.menu-pill { font-size: .75rem; font-weight: 800; padding: .5rem 1rem; border-radius: 999px; background: rgba(17,24,39,.85); border: 1px solid rgba(75,85,99,.6); color: #d1d5db; }
.menu-pill:hover { border-color: #f59e0b; color: #fbbf24; }
.floating-dice { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floating-dice span { position: absolute; font-size: 3rem; opacity: .07; animation: floaty 14s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-40px) rotate(18deg); } }
input[type=range] { accent-color: #f59e0b; width: 100%; }
