/* ChatterLand's practice screen, redrawn in HTML/CSS so it stays sharp at any density.
   Mirrors the app's «space» skin (chatterland/src/config/skins/space/palette.ts), its PromptCard and
   RecordingSection: Fredoka One for the prompt, Comfortaa for the UI. Sized in em: set font-size to scale.
   Shared by the home and /neon. */
.app-phone {
    --space-deep: #020409;
    --space-night: #050714;
    --space-dusk: #0D1033;
    --space-glow: #0F172A;
    --space-glass: rgba(20, 10, 60, 0.65);
    --space-glass-line: rgba(180, 160, 255, 0.25);
    --space-text: #F8FAFC;
    --space-progress: #EDE3FF;
    --space-rec-line: rgba(248, 113, 113, 0.35);

    font-size: 10px;
    width: 26em;
    flex: none;
    aspect-ratio: 9 / 19.5;
    border-radius: 4.2em;
    border: 0.9em solid #1D1B26;
    outline: 1px solid #3A3746;
    box-shadow: 0 2em 4em rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: var(--space-night);
    color: var(--space-text);
    font-family: 'Comfortaa', 'Poppins', sans-serif;
    line-height: 1.3;
    text-align: center;
    user-select: none;
}
.app-screen {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2em 1.6em 2em;
    background:
        radial-gradient(0.15em 0.15em at 12% 18%, rgba(255, 255, 255, 0.5) 99%, transparent),
        radial-gradient(0.12em 0.12em at 82% 26%, rgba(255, 255, 255, 0.4) 99%, transparent),
        radial-gradient(0.2em 0.2em at 70% 60%, rgba(255, 255, 255, 0.35) 99%, transparent),
        radial-gradient(0.12em 0.12em at 22% 72%, rgba(255, 255, 255, 0.35) 99%, transparent),
        radial-gradient(0.15em 0.15em at 90% 88%, rgba(255, 255, 255, 0.4) 99%, transparent),
        radial-gradient(0.1em 0.1em at 40% 92%, rgba(255, 255, 255, 0.3) 99%, transparent),
        linear-gradient(160deg, var(--space-deep) 0%, var(--space-night) 35%, var(--space-dusk) 70%, var(--space-glow) 100%);
}
.app-status {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 700 1.4em/1 -apple-system, 'Poppins', sans-serif;
    padding: 0 0.6em;
}
.app-status-icons { display: flex; gap: 0.35em; align-items: center; }
.app-status-icons i { display: block; width: 0.35em; background: var(--space-text); border-radius: 0.1em; }
.app-status-icons i:nth-child(1) { height: 0.4em; }
.app-status-icons i:nth-child(2) { height: 0.6em; }
.app-status-icons i:nth-child(3) { height: 0.8em; }
.app-status-icons b { display: block; width: 1.9em; height: 0.9em; margin-left: 0.3em; border: 0.12em solid var(--space-text); border-radius: 0.25em; background: linear-gradient(90deg, var(--space-text) 75%, transparent 75%); }

.app-sound { margin-top: 1.8em; display: flex; flex-direction: column; align-items: center; gap: 0.4em; font-size: 1.4em; color: var(--space-progress); }
.app-avatar { width: 2em; height: 2em; border-radius: 50%; background: #8B5CF6; border: 0.15em solid rgba(255, 255, 255, 0.6); }

.app-card {
    width: 100%;
    margin-top: 1.4em;
    padding: 1.7em 1.3em 1.4em;
    border-radius: 2em;
    background: var(--space-glass);
    border: 1px solid var(--space-glass-line);
}
.app-card.is-recording { border-color: var(--space-rec-line); box-shadow: inset 0 0 0 0.2em rgba(248, 113, 113, 0.5); }
.app-prompt { display: flex; align-items: center; justify-content: center; gap: 0.8em; margin-bottom: 1em; }
.app-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.45em;
    font-family: 'Fredoka One', 'Poppins', sans-serif;
    font-size: 2.2em;
    line-height: 1.35;
}
.app-words span { display: inline-block; opacity: 0.25; }
.app-words .lit { opacity: 1; }
.app-words .now { transform: scale(1.08); }
.app-words-rest { font-family: 'Fredoka One', 'Poppins', sans-serif; font-size: 2em; line-height: 1.35; text-align: left; }
.app-upper { text-transform: uppercase; }
.app-speaker {
    flex: none;
    width: 3.4em;
    height: 3.4em;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.app-speaker svg { width: 1.7em; height: 1.7em; fill: var(--space-text); }
.app-progress { font-size: 1.4em; color: var(--space-progress); opacity: 0.9; }

.app-bubble {
    position: relative;
    margin-top: 2em;
    max-width: 17em;
    padding: 0.8em 1.4em;
    border-radius: 1.6em;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.4em;
}
.app-bubble.is-recording { background: rgba(248, 113, 113, 0.15); border-color: rgba(248, 113, 113, 0.3); }

.app-mascot {
    position: relative;
    margin-top: auto;
    width: 15em;
    height: 15em;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(192, 132, 252, 0.2);
}
.app-mascot::before {
    content: "";
    position: absolute;
    inset: -1.8em;
    border-radius: 50%;
    background: rgba(192, 132, 252, 0.06);
    border: 1px solid rgba(192, 132, 252, 0.12);
}
.app-mascot.is-recording { background: rgba(255, 80, 80, 0.22); }
.app-mascot.is-recording::before { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.12); }
.app-mascot img { position: relative; width: 11.5em; height: auto; }
.app-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1.3em;
    transform: translateX(-50%);
    border: 0.65em solid transparent;
    border-top: 0.7em solid rgba(255, 255, 255, 0.1);
}
.app-bubble.is-recording::after { border-top-color: rgba(248, 113, 113, 0.15); }
