/* Fruit Slash: fruit arcs up over the sea; swipe to slice. */
.fs-main { --sun: #f2b544; --berry: #e8435a; gap: 10px; }
.fs-top { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; width: 100%; }
.fs-hud { display: flex; align-items: center; gap: 18px; }
.fs-score { min-width: 5em; font-size: 2rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--sea-deep); line-height: 1; text-align: right; }
.fs-score small { font-size: 1rem; font-weight: 300; color: var(--sea); }
.fs-lives { display: flex; gap: 4px; }
.fs-lives svg { width: 30px; height: 30px; }
.fs-lives svg.is-lost { opacity: 0.22; filter: grayscale(1); }
.fs-timer { width: clamp(140px, 20vw, 380px); height: 18px; border-radius: 9px; background: var(--sand-deep); overflow: hidden; }
.fs-timer-fill { height: 100%; width: 100%; border-radius: 9px; background: linear-gradient(90deg, #8dc63f, var(--sun)); transform-origin: left; }
.fs-timer-fill.is-low { background: linear-gradient(90deg, #e9824f, var(--bad)); }
.fs-time { min-width: 3em; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--sea-deep); }
.fs-message { min-height: 1.3em; font-size: 1.2rem; }

.fs-stage {
  position: relative; flex: 1; min-height: 0; width: 100%; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 50% 115%, rgba(250,247,242,0.16), transparent 70%),
    repeating-linear-gradient(176deg, transparent 0 46px, rgba(255,255,255,0.035) 46px 50px),
    linear-gradient(180deg, #24505c 0%, var(--sea-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.fs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }

.fs-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.fs-overlay[hidden] { display: none; }
.fs-start { pointer-events: auto; min-height: 96px; padding: 0 2.4em; font-size: 1.8rem; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.fs-start[hidden] { display: none; }
.fs-count {
  font-family: var(--serif); font-weight: 700; font-size: clamp(90px, 22vh, 240px); line-height: 1; color: var(--cream);
  text-shadow: 0 6px 0 rgba(0,0,0,0.35), 0 10px 30px rgba(0,0,0,0.35);
}
.fs-count.is-on { animation: fs-count 0.9s ease-out; }
@keyframes fs-count { from { transform: scale(1.5); opacity: 0; } 25% { transform: none; opacity: 1; } to { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .fs-count.is-on { animation: none; } }
