/* slice.css - Noos Slice. Pink dragonfruit accent (#ec4899): wife to approve. */
.sl-page, .sl-page * { font-family: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif; box-sizing: border-box; }
[hidden] { display: none !important; }
#beta-report-trigger { display: none !important; }
body { margin: 0; }

.sl-page { padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.sl-wrap {
    position: relative;
    --acc: #ec4899; --ink: #fdf2f8; --mut: #f9a8d4;
    width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 6px; min-height: 300px;
    user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.sl-hud {
    flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
    background: #1f1030; color: var(--ink); border-radius: 14px; padding: 8px 14px;
}
.sl-hud-l { display: flex; flex-direction: column; min-width: 0; }
.sl-badge { font-weight: 800; font-size: 12px; letter-spacing: .12em; color: var(--mut); white-space: nowrap; }
.sl-best { font-size: 11px; opacity: .7; white-space: nowrap; }
.sl-hud-c { text-align: center; line-height: 1; }
.sl-score { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sl-chips { display: flex; gap: 4px; justify-content: center; min-height: 16px; margin-top: 2px; white-space: nowrap; }
.sl-chip { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 99px; color: #1f1030; }
.sl-chip.gold { background: #fde047; }
.sl-chip.ice { background: #7dd3fc; }
.sl-lives { text-align: right; font-size: 22px; letter-spacing: 2px; white-space: nowrap; color: #fb7185; }
.sl-heart.off { color: #4b3a5e; }
.sl-time { font-weight: 800; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sl-time.warn { color: #fb7185; }

.sl-stage {
    position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center;
    background: #14081f; border-radius: 16px; overflow: hidden;
}
#slCanvas { display: block; touch-action: none; border-radius: 12px; cursor: crosshair; }
.sl-hint, .sl-count, .sl-toast { position: absolute; pointer-events: none; text-align: center; color: #fff; }
.sl-hint { bottom: 14%; left: 50%; transform: translateX(-50%); background: rgba(31,16,48,.78); padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: 14px; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.sl-count { inset: 0; display: flex; align-items: center; justify-content: center; font-size: 120px; font-weight: 800; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.sl-toast { top: 12px; left: 50%; transform: translateX(-50%); background: #1f1030; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; max-width: 92%; }

.sl-ov {
    position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 12px; padding: 18px 16px; text-align: center; color: var(--ink);
    background: #1a0b2a; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.sl-ov > * { flex-shrink: 0; }
.sl-ov > :first-child { margin-top: auto; }
.sl-ov > :last-child { margin-bottom: auto; }
#slStart { background: radial-gradient(circle at 50% 30%, #4a1d52 0%, #1a0b2a 70%); }
#slPause, #slOver { background: rgba(26,11,42,.94); }
#slOpts { background: #1a0b2a; }
.sl-title { margin: 0; font-size: 56px; font-weight: 800; letter-spacing: .08em; color: #fff; text-shadow: 0 3px 0 #be185d; line-height: 1; }
.sl-title.sm { font-size: 30px; }
.sl-sub { margin: 0; color: var(--mut); font-weight: 700; }
.sl-desc { margin: 0; max-width: 340px; font-size: 14px; line-height: 1.35; color: #fbcfe8; }
.sl-mbest { margin: 0; font-size: 13px; font-weight: 700; color: #fde68a; }
.sl-overscore { font-size: 64px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }

.sl-modes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sl-mode {
    appearance: none; border: 2px solid #5b2a6e; background: #2a1240; color: var(--ink); font: inherit; font-weight: 800; font-size: 14px;
    padding: 9px 16px; border-radius: 99px; cursor: pointer; white-space: nowrap; min-height: 40px;
}
.sl-mode[aria-checked="true"] { background: var(--acc); border-color: #fff; color: #fff; }
.sl-mode:focus-visible, .sl-btn:focus-visible { outline: 3px solid #fde047; outline-offset: 2px; }

.sl-btn {
    appearance: none; border: 0; border-radius: 99px; font: inherit; font-weight: 800; letter-spacing: .06em; cursor: pointer;
    background: #3b1a55; color: #fff; padding: 12px 28px; font-size: 15px; min-height: 44px; white-space: nowrap;
}
.sl-btn.primary { background: var(--acc); box-shadow: 0 4px 0 #9d174d; font-size: 17px; padding: 13px 40px; }
.sl-btn.ghost { background: transparent; border: 2px solid #5b2a6e; }
.sl-btn.small { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.sl-btn:active { transform: translateY(2px); }

.sl-opts { gap: 8px; }
.sl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 360px; padding: 4px 0; border-bottom: 1px solid #3b1a55; }
.sl-row.col { flex-direction: column; align-items: stretch; gap: 8px; border-bottom: 0; }
.sl-row.col .sl-modes { justify-content: center; }
.sl-lbl { font-weight: 700; font-size: 14px; text-align: left; }
#trophy-list { width: 100%; max-width: 360px; max-height: 40vh; overflow-y: auto; text-align: left; background: #14081f; border-radius: 12px; padding: 8px; -webkit-overflow-scrolling: touch; }

.sl-bar { flex: 0 0 auto; display: flex; gap: 8px; justify-content: center; white-space: nowrap; }
.sl-bar .sl-btn { flex: 0 1 auto; background: #1f1030; }

/* tight: narrow stage */
.sl-wrap.tight .sl-title { font-size: 44px; }
.sl-wrap.tight .sl-mode { padding: 8px 12px; font-size: 13px; }
.sl-wrap.tight .sl-btn.primary { padding: 12px 32px; }
.sl-wrap.tight .sl-hud { padding: 6px 10px; }
.sl-wrap.tight .sl-score { font-size: 28px; }
/* compact: short stage */
.sl-wrap.compact .sl-ov { gap: 8px; padding: 10px 12px; }
.sl-wrap.compact .sl-title { font-size: 36px; }
.sl-wrap.compact .sl-title.sm { font-size: 24px; }
.sl-wrap.compact .sl-overscore { font-size: 44px; }
.sl-wrap.compact .sl-sub, .sl-wrap.compact .sl-desc { font-size: 12px; }
.sl-wrap.compact .sl-count { font-size: 80px; }
/* short landscape phone */
.sl-wrap.land .sl-bar { position: absolute; right: 16px; bottom: 8px; flex-direction: column; z-index: 3; }
.sl-wrap.land .sl-hud { padding: 4px 12px; }
.sl-wrap.land .sl-score { font-size: 24px; }

@media (prefers-reduced-motion: reduce) { .sl-btn:active { transform: none; } }
@media (min-width: 900px) { .sl-wrap { max-width: 640px; } }
