/* Optional local display font — titles use Orbitron from Google Fonts */
@font-face {
    font-family: 'silver';
    src: url(../assets/fonts/Silver.ttf);
}

:root {
    --bg-deep: #070b14;
    --bg-mid: #0f1729;
    --accent-cyan: #22d3ee;
    --accent-magenta: #e879f9;
    --accent-gold: #fbbf24;
    --accent-rose: #fb7185;
    --text: #e8eef8;
    --text-muted: #94a3b8;
    --font-display: "Orbitron", "silver", system-ui, sans-serif;
    --font-body: "Sora", system-ui, sans-serif;
    --panel: rgba(15, 23, 42, 0.75);
    --panel-border: rgba(34, 211, 238, 0.35);
    --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);
    --glow-magenta: 0 0 20px rgba(232, 121, 249, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(34, 211, 238, 0.18), transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(232, 121, 249, 0.12), transparent 45%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(251, 191, 36, 0.08), transparent 40%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #030712 100%);
    background-attachment: fixed;
}

/* Reduce accidental page scroll / pull-to-refresh while playing; keep normal scrolling on the menu. */
body.game-playing {
    touch-action: none;
    overscroll-behavior: none;
}

body.game-playing #gameWindow {
    touch-action: none;
}

/* ——— First-visit guide ——— */
.game-guide {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(12px);
}

.game-guide--open {
    display: flex;
}

.game-guide__panel {
    width: min(100%, 540px);
    max-height: min(90vh, 680px);
    overflow: auto;
    padding: 28px 32px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid var(--panel-border);
    box-shadow: var(--glow-cyan), 0 24px 48px rgba(0, 0, 0, 0.45);
}

.game-guide__title {
    margin: 0 0 18px 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 5.5vw, 38px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-guide__list {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.65;
    font-size: clamp(14px, 3.5vw, 16px);
    color: var(--text-muted);
}

.game-guide__list strong {
    color: var(--text);
    font-weight: 600;
}

.game-guide__list li {
    margin-bottom: 12px;
}

.game-guide__list kbd {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(15, 23, 42, 0.9);
    color: var(--accent-cyan);
    font-size: 0.88em;
    font-family: ui-monospace, monospace;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.game-guide__btn {
    margin-top: 22px;
    width: 100%;
    padding: 16px 22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(16px, 4vw, 20px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    color: #0f172a;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #06b6d4 100%);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.4);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.game-guide__btn:hover {
    box-shadow: 0 6px 28px rgba(34, 211, 238, 0.55);
}

.game-guide__btn:active {
    transform: scale(0.98);
}

/* ——— Layout ——— */
.container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    padding-top: max(20px, env(safe-area-inset-top));
    box-sizing: border-box;
}

/* In-game control strip (below HUD bar) */
.controls-hint {
    position: absolute;
    top: calc(56px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    width: calc(100% - 24px);
    max-width: min(100%, 1024px);
    padding: 8px 10px;
    margin: 0 12px;
    box-sizing: border-box;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(7, 11, 20, 0.85);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.controls-hint[hidden] {
    display: none !important;
}

.controls-hint__label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-right: 4px;
}

.controls-hint__kbd {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 1px;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.controls-hint__dot {
    opacity: 0.45;
    user-select: none;
}

.hud {
    position: absolute;
    display: none;
    top: max(8px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 1024px;
    box-sizing: border-box;
    align-items: center;
    align-content: center;
    padding: 8px 10px;
    z-index: 5;
    gap: 8px;
    row-gap: 8px;
    background: rgba(7, 11, 20, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(10px);
}

.hud.hud--visible {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.hud.hud--visible .healthLayout {
    flex: 1 1 120px;
    min-width: 0;
    max-width: 100%;
}

.healthLayout {
    position: relative;
    height: clamp(22px, 6vw, 30px);
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.remainingHealthbar {
    background: linear-gradient(180deg, #3f1d1d 0%, #1c1917 100%);
    height: 100%;
    width: 100%;
}

.totalHealthBar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    transition: width 0.25s ease;
}

.healthLayout:first-of-type .totalHealthBar {
    background: linear-gradient(90deg, #0e7490 0%, var(--accent-cyan) 50%, #67e8f9 100%);
    box-shadow: var(--glow-cyan);
}

.healthLayout:last-of-type .totalHealthBar {
    background: linear-gradient(90deg, #9d174d 0%, var(--accent-magenta) 50%, #f0abfc 100%);
    box-shadow: var(--glow-magenta);
}

.result {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(32px, 11vw, 88px);
    letter-spacing: 0.04em;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    text-transform: uppercase;
    background: radial-gradient(ellipse at center, rgba(7, 11, 20, 0.75) 0%, rgba(3, 7, 18, 0.92) 70%);
    backdrop-filter: blur(4px);
    color: var(--text);
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.5);
}

.game {
    display: flex;
    width: 100%;
    max-width: 1024px;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
    min-width: 0;
}

/* Room for fixed touch controls so the canvas is not covered */
body.game-playing.layout--touch-controls .game {
    padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 80px));
}

#gameWindow {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1024 / 576;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #000;
    background-clip: padding-box;
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.25),
        0 0 40px rgba(34, 211, 238, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.5);
}

/* ——— Touch controls ——— */
.mobile-controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    padding: max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    pointer-events: none;
}

.mobile-controls[hidden] {
    display: none !important;
}

.mobile-controls__btn {
    pointer-events: auto;
    touch-action: manipulation;
    min-width: 72px;
    min-height: 52px;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: var(--text);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.mobile-controls__btn:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.mobile-controls__btn:active {
    transform: translateY(2px);
}

.mobile-controls__btn--jump {
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.5) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(34, 211, 238, 0.5);
}

.mobile-controls__btn--attack {
    background: linear-gradient(180deg, rgba(190, 24, 93, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(244, 114, 182, 0.45);
}

.hand-hint {
    margin: 10px 0 0 0;
    font-size: clamp(14px, 3.5vw, 16px);
    color: var(--text-muted);
    line-height: 1.45;
}

.keys-ai p {
    font-size: clamp(18px, 4vw, 26px);
}

.hand-tracking-wrap {
    position: fixed;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
    z-index: 25;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    pointer-events: none;
}

@media (min-width: 901px) {
    .hand-tracking-wrap {
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.hand-video {
    width: min(160px, 28vw);
    max-width: 200px;
    height: auto;
    border: 2px solid rgba(34, 211, 238, 0.45);
    border-radius: 10px;
    background: #0a0a0f;
    transform: scaleX(-1);
    box-shadow: var(--glow-cyan);
}

.information {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px max(12px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
    min-width: 0;
    box-sizing: border-box;
}

.keymapping {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-family: var(--font-body);
    font-size: clamp(18px, 4vw, 26px);
}

.keys {
    margin: 8px;
    padding: clamp(20px, 4vw, 36px);
    flex: 1 1 min(100%, 480px);
    min-width: 0;
    max-width: min(100%, 480px);
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.keys h1 {
    margin: 0 0 12px 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 5vw, 28px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.keys p {
    margin: 8px 0;
    font-size: clamp(14px, 3.5vw, 17px);
    color: var(--text-muted);
    line-height: 1.5;
}

.keys p strong {
    color: var(--text);
}

/* ——— Menu ——— */
.menu {
    font-family: var(--font-body);
    color: var(--text);
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 1024px;
    min-height: min(576px, 100dvh);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 20px;
    box-sizing: border-box;
    z-index: 10;
}

.menu::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.08) 0%, transparent 55%),
        rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(12px);
    pointer-events: none;
    z-index: -1;
}

.menu-simple {
    gap: 16px;
}

.menu-tagline {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(11px, 2.8vw, 13px);
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-magenta);
    text-shadow: 0 0 20px rgba(232, 121, 249, 0.4);
}

.title-br {
    display: none;
}

@media (max-width: 520px) {
    .title-br {
        display: inline;
    }
}

.allow-camera {
    font-size: clamp(14px, 3.6vw, 17px);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    max-width: 92%;
    color: var(--text-muted);
    z-index: 1;
}

.allow-camera input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-cyan);
}

.menu-hint {
    font-size: clamp(12px, 3.2vw, 15px);
    margin: 0;
    color: var(--text-muted);
    text-align: center;
    max-width: 92%;
    line-height: 1.45;
    z-index: 1;
}

.menu-hint--spaced {
    margin-top: 14px;
}

.menu-start {
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0891b2 100%);
    color: #0f172a;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(34, 211, 238, 0.35);
    z-index: 1;
}

.menu-samurai {
    font-family: var(--font-display);
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 10px;
    padding: 12px 28px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.75);
    border: 2px solid rgba(34, 211, 238, 0.35);
    border-radius: 12px;
    box-shadow: none;
    z-index: 1;
}

.menu-samurai:hover {
    color: var(--accent-cyan);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.title {
    font-size: clamp(40px, 12vw, 100px);
    line-height: 1.05;
    text-align: center;
    z-index: 1;
}

.menuOption {
    border: none;
    font-size: clamp(26px, 7vw, 44px);
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 14px 36px;
    margin-top: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.menuOption:hover {
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.55);
    transform: translateY(-2px);
}

.author {
    padding-top: 8px;
    font-size: clamp(13px, 3.2vw, 16px);
    font-style: normal;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    z-index: 1;
}

.animate-charcter {
    text-transform: uppercase;
    font-family: var(--font-display);
    font-weight: 900;
    background-image: linear-gradient(105deg,
            #22d3ee 0%,
            #a78bfa 35%,
            #e879f9 55%,
            #fbbf24 85%,
            #22d3ee 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 5s linear infinite;
    display: inline-block;
    font-size: clamp(36px, 14vw, 120px);
    line-height: 1.08;
    text-align: center;
    max-width: 100%;
    filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.25));
}

@keyframes textclip {
    to {
        background-position: 200% center;
    }
}

@media (max-width: 640px) {
    .keys-ai p {
        font-size: clamp(16px, 4vw, 24px);
    }
}

/* ——— Phones & small tablets ——— */
@media (max-width: 768px) {
    .game-guide__panel {
        padding: 20px 18px;
        border-radius: 12px;
    }

    .controls-hint {
        top: calc(58px + env(safe-area-inset-top));
        font-size: 11px;
        gap: 4px 6px;
        padding: 6px 8px;
    }

    .controls-hint__block {
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hud.hud--visible {
        padding: 6px 8px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .hud.hud--visible .healthLayout {
        flex: 1 1 48%;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .menuOption {
        padding: 12px 24px;
        width: 100%;
        max-width: 280px;
    }
}

/* ——— Fruit Slash (second game) ——— */
body.fruit-ninja-active .container,
body.fruit-ninja-active .information {
    display: none;
}

.fruit-ninja-app {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(34, 211, 238, 0.12), transparent 50%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}

.fruit-ninja-app[hidden] {
    display: none !important;
}

.fruit-ninja-app__frame {
    position: relative;
    width: min(100%, min(96vw, 960px));
    aspect-ratio: 16 / 9;
    max-height: min(88dvh, 900px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.3);
    box-shadow: var(--glow-cyan), 0 24px 64px rgba(0, 0, 0, 0.5);
}

.fruit-ninja-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
    background: #0c1220;
}

.fruit-ninja-hud {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 8px 16px;
    padding: 8px 18px;
    border-radius: 12px;
    background: rgba(7, 11, 20, 0.82);
    border: 1px solid rgba(34, 211, 238, 0.25);
    pointer-events: none;
    z-index: 2;
}

.fruit-ninja-hud__label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.fruit-ninja-hud__score {
    font-family: var(--font-display);
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}

.fruit-ninja-hud__combo {
    font-size: clamp(12px, 2.8vw, 14px);
    font-weight: 600;
    color: var(--accent-magenta);
}

.fruit-ninja-cam-wrap {
    position: absolute;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(140px, 28vw);
    max-width: 180px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(34, 211, 238, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
    background: #0a0a0f;
}

.fruit-ninja-cam {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleX(-1);
    vertical-align: middle;
}

.fruit-ninja-cam-hint {
    position: absolute;
    left: max(8px, env(safe-area-inset-left));
    bottom: max(8px, env(safe-area-inset-bottom));
    right: min(160px, 32vw);
    margin: 0;
    font-size: clamp(11px, 2.6vw, 13px);
    color: var(--text-muted);
    line-height: 1.35;
    z-index: 2;
    pointer-events: none;
}

.fruit-ninja-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(10px);
    z-index: 4;
}

/* Author `display:flex` must not beat HTML [hidden] — otherwise Game Over can stay visible when it should be hidden. */
.fruit-ninja-screen[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.fruit-ninja-screen__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 6vw, 36px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fruit-ninja-screen__text {
    margin: 0;
    max-width: 420px;
    font-size: clamp(14px, 3.2vw, 16px);
    color: var(--text-muted);
    line-height: 1.55;
}

.fruit-ninja-screen__stat {
    margin: 0;
    font-size: clamp(16px, 4vw, 20px);
    color: var(--text);
}

.fruit-ninja-screen__stat--muted {
    font-size: clamp(14px, 3.2vw, 16px);
    color: var(--text-muted);
}

.fruit-ninja-screen__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.fruit-ninja-btn {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(14px, 3.2vw, 16px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.fruit-ninja-btn:active {
    transform: scale(0.98);
}

.fruit-ninja-btn--primary {
    color: #0f172a;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #06b6d4 100%);
    box-shadow: 0 4px 24px rgba(34, 211, 238, 0.35);
}

.fruit-ninja-btn--primary:hover {
    box-shadow: 0 6px 28px rgba(34, 211, 238, 0.5);
}

.fruit-ninja-btn--ghost {
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.fruit-ninja-btn--ghost:hover {
    color: var(--accent-cyan);
    border-color: rgba(34, 211, 238, 0.45);
}

@media (max-width: 520px) {
    .fruit-ninja-cam-hint {
        right: 8px;
        bottom: calc(max(8px, env(safe-area-inset-bottom)) + 72px);
    }
}
