/* ==========================================================================
   GOONS /play - Public marketing pages design system
   Hub (/play/) + per-app landing pages (/play/<slug>)
   Self-contained: does not depend on marketing.css layout rules.
   ========================================================================== */

:root {
    --play-bg: #05050a;
    --play-bg-2: #0b0b16;
    --play-surface: rgba(255, 255, 255, 0.028);
    --play-surface-2: rgba(255, 255, 255, 0.055);
    --play-border: rgba(255, 255, 255, 0.09);
    --play-border-strong: rgba(255, 255, 255, 0.16);
    --play-text: #f2f4ff;
    --play-muted: rgba(232, 236, 255, 0.62);
    --play-faint: rgba(232, 236, 255, 0.42);
    --play-magenta: #ff2bd6;
    --play-cyan: #00e5ff;
    --play-lime: #6bff9e;
    --play-radius: 22px;
    --play-radius-sm: 14px;
    --play-container: 1240px;
    --play-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    --accent: var(--play-cyan);
    --accent-soft: rgba(0, 229, 255, 0.14);
    --accent-glow: rgba(0, 229, 255, 0.38);
    --accent-line: rgba(0, 229, 255, 0.32);
    --play-font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --play-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'Roboto Mono', monospace;
}

/* Reset - these pages do not load marketing.css, so they own their box model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

.play-page {
    margin: 0;
    font-family: var(--play-font);
    background: var(--play-bg);
    color: var(--play-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Ambient background: two slow aurora blooms + a fine grid --------------- */
.play-page::before,
.play-page::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.play-page::before {
    background:
        radial-gradient(60rem 40rem at 12% -10%, rgba(255, 43, 214, 0.16), transparent 60%),
        radial-gradient(55rem 38rem at 92% 4%, rgba(0, 229, 255, 0.15), transparent 62%),
        radial-gradient(48rem 34rem at 50% 105%, rgba(107, 255, 158, 0.09), transparent 60%),
        linear-gradient(180deg, #05050a 0%, #080812 45%, #05050a 100%);
}

.play-page::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 90%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 90%);
    opacity: 0.6;
}

.play-page > * {
    position: relative;
    z-index: 1;
}

/* Layout primitives ------------------------------------------------------ */
.play-container {
    width: 100%;
    max-width: var(--play-container);
    margin: 0 auto;
    padding: 0 28px;
}

.play-section {
    padding: 84px 0;
}

.play-section--tight {
    padding: 56px 0;
}

.play-page a {
    color: inherit;
}

.play-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: var(--play-mono);
}

.play-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: play-pulse 2.4s ease-in-out infinite;
}

@keyframes play-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.72); }
}

.play-section-head {
    max-width: 760px;
    margin-bottom: 46px;
}

.play-section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.play-section-head h2 {
    margin: 18px 0 14px;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.play-section-head p {
    margin: 0;
    color: var(--play-muted);
    font-size: 17px;
    line-height: 1.65;
}

.play-gradient-text {
    background: linear-gradient(102deg, var(--play-magenta), var(--play-cyan) 52%, var(--play-lime));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   HUB - /play/
   ========================================================================== */

.play-hero {
    padding: 132px 0 56px;
    text-align: center;
}

.play-hero h1 {
    margin: 22px auto 20px;
    max-width: 15ch;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.play-hero p {
    max-width: 62ch;
    margin: 0 auto;
    color: var(--play-muted);
    font-size: 18px;
    line-height: 1.7;
}

.play-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.play-stat {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--play-border);
    background: var(--play-surface);
    backdrop-filter: blur(10px);
}

.play-stat b {
    font-size: 18px;
    font-weight: 800;
    color: var(--play-text);
}

.play-stat span {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--play-faint);
    font-family: var(--play-mono);
}

/* Toolbar: search + category chips --------------------------------------- */
.play-toolbar {
    position: sticky;
    top: 74px;
    z-index: 20;
    margin: 0 auto 42px;
    padding: 16px;
    border-radius: var(--play-radius);
    border: 1px solid var(--play-border);
    background: rgba(8, 8, 18, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.play-search {
    position: relative;
    margin-bottom: 14px;
}

.play-search svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--play-faint);
    pointer-events: none;
}

.play-search input {
    width: 100%;
    padding: 15px 18px 15px 48px;
    border-radius: 14px;
    border: 1px solid var(--play-border);
    background: rgba(255, 255, 255, 0.035);
    color: var(--play-text);
    font-family: var(--play-font);
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.play-search input::placeholder { color: var(--play-faint); }

.play-search input:focus {
    border-color: var(--play-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

.play-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.play-chip {
    padding: 9px 17px;
    border-radius: 999px;
    border: 1px solid var(--play-border);
    background: transparent;
    color: var(--play-muted);
    font-family: var(--play-font);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
}

.play-chip:hover {
    color: var(--play-text);
    border-color: var(--play-border-strong);
}

.play-chip[aria-pressed="true"] {
    background: linear-gradient(102deg, rgba(255, 43, 214, 0.18), rgba(0, 229, 255, 0.18));
    border-color: rgba(0, 229, 255, 0.45);
    color: #fff;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.18);
}

.play-chip .count {
    margin-left: 7px;
    font-family: var(--play-mono);
    font-size: 11px;
    color: var(--play-faint);
}

/* App grid --------------------------------------------------------------- */
.play-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(316px, 1fr));
    gap: 22px;
}

.play-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 26px 22px;
    border-radius: var(--play-radius);
    border: 1px solid var(--play-border);
    background:
        linear-gradient(180deg, var(--accent-soft), transparent 42%),
        var(--play-surface);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.play-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, var(--accent-line), transparent 45%, transparent 60%, var(--accent-line));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.play-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--play-shadow), 0 0 46px var(--accent-glow);
}

.play-card:hover::after { opacity: 1; }

.play-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.play-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.play-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    border: 1px solid var(--accent-line);
    background:
        radial-gradient(circle at 32% 26%, var(--accent-soft), transparent 68%),
        rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.play-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.play-card:hover .play-icon {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.play-card h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.play-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.play-tag {
    padding: 4px 10px;
    border-radius: 7px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent);
    font-family: var(--play-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.play-tag--badge {
    background: linear-gradient(102deg, rgba(255, 43, 214, 0.22), rgba(0, 229, 255, 0.22));
    border-color: rgba(255, 43, 214, 0.45);
    color: #fff;
}

.play-card p {
    margin: 0 0 18px;
    color: var(--play-muted);
    font-size: 14.5px;
    line-height: 1.62;
}

.play-card ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.play-card li {
    position: relative;
    padding-left: 20px;
    color: var(--play-faint);
    font-size: 13px;
    line-height: 1.5;
}

.play-card li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 9px var(--accent-glow);
}

.play-card-cta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--play-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.play-card-cta .arrow {
    transition: transform 0.28s ease;
}

.play-card:hover .play-card-cta .arrow {
    transform: translateX(5px);
}

.play-card-cta small {
    color: var(--play-faint);
    font-family: var(--play-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.play-empty {
    padding: 72px 20px;
    text-align: center;
    color: var(--play-faint);
    border: 1px dashed var(--play-border);
    border-radius: var(--play-radius);
}

/* Closing CTA band ------------------------------------------------------- */
.play-cta {
    position: relative;
    padding: 56px 40px;
    border-radius: 28px;
    border: 1px solid var(--play-border);
    background:
        radial-gradient(38rem 20rem at 15% 0%, rgba(255, 43, 214, 0.16), transparent 65%),
        radial-gradient(38rem 20rem at 85% 100%, rgba(0, 229, 255, 0.16), transparent 65%),
        rgba(255, 255, 255, 0.025);
    text-align: center;
    overflow: hidden;
}

.play-cta h2 {
    margin: 16px 0 12px;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 850;
    letter-spacing: -0.02em;
}

.play-cta p {
    max-width: 56ch;
    margin: 0 auto 28px;
    color: var(--play-muted);
    font-size: 16.5px;
    line-height: 1.66;
}

.play-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.play-cta small {
    display: block;
    margin-top: 18px;
    color: var(--play-faint);
    font-size: 13px;
}

/* ==========================================================================
   LANDING - /play/<slug>
   ========================================================================== */

.play-breadcrumb {
    padding: 108px 0 0;
    font-size: 13px;
    color: var(--play-faint);
}

.play-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.play-breadcrumb a {
    color: var(--play-faint);
    text-decoration: none;
    transition: color 0.2s ease;
}

.play-breadcrumb a:hover { color: var(--accent); }

.play-breadcrumb li[aria-current] { color: var(--play-text); }

.app-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
    padding: 44px 0 76px;
}

.app-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(36px, 5.2vw, 60px);
    line-height: 1.03;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.app-hero .lede {
    margin: 0 0 28px;
    max-width: 54ch;
    color: var(--play-muted);
    font-size: 18px;
    line-height: 1.7;
}

.app-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 26px;
}

.app-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-spec {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--play-border);
    background: var(--play-surface);
    font-family: var(--play-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--play-muted);
}

.app-spec b { color: var(--accent); font-weight: 700; }

/* Hero visual: glowing device panel -------------------------------------- */
.app-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.app-visual-ring {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
    opacity: 0.55;
    animation: app-spin 26s linear infinite;
}

.app-visual-ring:nth-child(2) { inset: 17%; animation-duration: 19s; animation-direction: reverse; opacity: 0.4; }
.app-visual-ring:nth-child(3) { inset: 28%; animation-duration: 13s; opacity: 0.28; }

@keyframes app-spin {
    to { transform: rotate(360deg); }
}

.app-visual-core {
    position: relative;
    display: grid;
    place-items: center;
    width: 52%;
    aspect-ratio: 1;
    border-radius: 36px;
    border: 1px solid var(--accent-line);
    background:
        radial-gradient(circle at 35% 25%, var(--accent-soft), transparent 70%),
        rgba(10, 10, 20, 0.85);
    box-shadow: 0 0 70px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-visual-core svg {
    width: 84%;
    height: 84%;
}

.app-visual-glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 65%);
    filter: blur(46px);
    opacity: 0.65;
    animation: app-breathe 7s ease-in-out infinite;
}

@keyframes app-breathe {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.1); opacity: 0.8; }
}

.app-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6%;
    /* Replaced element: without an explicit width it would fall back to its
       intrinsic 5:1 ratio and spill outside the visual. */
    width: 100%;
    height: 96px;
    opacity: 0.85;
}

/* Signal chain ----------------------------------------------------------- */
.app-chain {
    padding: 30px;
    border-radius: var(--play-radius);
    border: 1px solid var(--play-border);
    background: var(--play-surface);
    overflow-x: auto;
}

.app-chain svg {
    display: block;
    min-width: 720px;
    width: 100%;
    height: auto;
}

/* Feature cards ---------------------------------------------------------- */
.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(324px, 1fr));
    gap: 20px;
}

.app-feature {
    padding: 28px 26px;
    border-radius: var(--play-radius);
    border: 1px solid var(--play-border);
    background: var(--play-surface);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.app-feature:hover {
    transform: translateY(-4px);
    border-color: var(--accent-line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.app-feature-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 13px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.app-feature-icon svg { width: 22px; height: 22px; }

/* Card banners ------------------------------------------------------------
   Shared by the /play feature cards and the homepage SEO prose cards. Both
   card types use 26px of horizontal padding, so the negative margin that takes
   the image full-bleed is the same for either. Add `.has-banner` to the card
   and `.card-banner` to the <picture>. */
.has-banner {
    padding-top: 0;
    overflow: hidden;
}

.card-banner {
    display: block;
    position: relative;
    margin: 0 -26px 18px;
}

.card-banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    opacity: 0.82;
    transition: opacity 0.28s ease;
}

.has-banner:hover .card-banner img { opacity: 1; }

/* Fades the banner into the card body instead of ending on a hard edge. */
.card-banner::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px 0;
    height: 46%;
    background: linear-gradient(to bottom, rgba(5, 5, 10, 0), var(--play-bg));
    pointer-events: none;
}

/* On feature cards the icon chip tucks up over the banner's lower edge. Its
   background is translucent, so it needs an opaque layer underneath to stop
   the image showing through. */
.app-feature.has-banner .card-banner { margin-bottom: 0; }

.app-feature.has-banner .app-feature-icon {
    position: relative;
    margin-top: -23px;
    background: linear-gradient(var(--play-bg), var(--play-bg)), var(--accent-soft);
}

@media (prefers-reduced-motion: reduce) {
    .card-banner img { transition: none; }
}

.app-feature h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.app-feature p {
    margin: 0;
    color: var(--play-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

/* Presets ---------------------------------------------------------------- */
.app-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
    gap: 18px;
}

.app-preset {
    position: relative;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--play-border);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 70%);
    overflow: hidden;
}

.app-preset span {
    display: block;
    font-family: var(--play-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--play-faint);
    margin-bottom: 10px;
}

.app-preset h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.app-preset p {
    margin: 0;
    color: var(--play-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.app-preset-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 34px;
    margin-top: 18px;
}

.app-preset-bars i {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.8;
}

/* Spec table ------------------------------------------------------------- */
.app-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--play-border);
    border-radius: var(--play-radius);
    overflow: hidden;
    font-size: 14.5px;
}

.app-table th,
.app-table td {
    padding: 15px 22px;
    text-align: left;
    border-bottom: 1px solid var(--play-border);
}

.app-table th {
    width: 34%;
    color: var(--play-faint);
    font-family: var(--play-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.022);
}

.app-table td { color: var(--play-muted); }

.app-table tr:last-child th,
.app-table tr:last-child td { border-bottom: 0; }

/* Steps ------------------------------------------------------------------ */
.app-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.app-step {
    position: relative;
    padding: 28px 26px 26px;
    border-radius: var(--play-radius);
    border: 1px solid var(--play-border);
    background: var(--play-surface);
}

.app-step::before {
    counter-increment: step;
    content: '0' counter(step);
    display: block;
    margin-bottom: 14px;
    font-family: var(--play-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.85;
}

.app-step h3 {
    margin: 0 0 9px;
    font-size: 16.5px;
    font-weight: 750;
}

.app-step p {
    margin: 0;
    color: var(--play-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

/* FAQ -------------------------------------------------------------------- */
.app-faq {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

.app-faq details {
    border-radius: var(--play-radius-sm);
    border: 1px solid var(--play-border);
    background: var(--play-surface);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.app-faq details[open] { border-color: var(--accent-line); }

.app-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.app-faq summary::-webkit-details-marker { display: none; }

.app-faq summary::after {
    content: '+';
    flex: 0 0 auto;
    font-family: var(--play-mono);
    font-size: 22px;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.25s ease;
}

.app-faq details[open] summary::after { transform: rotate(45deg); }

.app-faq p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--play-muted);
    font-size: 14.5px;
    line-height: 1.72;
}

/* SEO prose -------------------------------------------------------------- */
.app-prose {
    max-width: 78ch;
    color: var(--play-muted);
    font-size: 16px;
    line-height: 1.78;
}

.app-prose h2 { color: var(--play-text); }

.app-prose h3 {
    margin: 34px 0 12px;
    color: var(--play-text);
    font-size: 19px;
    font-weight: 750;
}

.app-prose p { margin: 0 0 18px; }

.app-prose strong { color: var(--play-text); font-weight: 650; }

/* Related ---------------------------------------------------------------- */
.app-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
    .app-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 56px;
    }
    .app-visual { max-width: 420px; margin: 0 auto; width: 100%; }
    .play-toolbar { top: 66px; }
}

@media (max-width: 720px) {
    .play-container { padding: 0 18px; }
    .play-section { padding: 60px 0; }
    .play-hero { padding-top: 112px; }
    .play-grid { grid-template-columns: 1fr; }
    .play-cta { padding: 40px 22px; }
    .play-btn { width: 100%; }
    .app-hero-actions { flex-direction: column; align-items: stretch; }
    .play-toolbar { position: static; }
    .app-table th { width: 42%; padding: 13px 16px; }
    .app-table td { padding: 13px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .play-page *,
    .play-page *::before,
    .play-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Footer, nav, buttons and the shared layout container all live in
   play-nav.css - the chrome shared with the marketing homepage. */

/* [hidden] must beat the display: flex/grid declarations above */
.play-page [hidden] { display: none !important; }

/* Inline diagram + hero waveform theming (CSS vars are not reliable inside
   SVG presentation attributes, so the accent is applied through classes). */
.app-wave .wave-stop { stop-color: var(--accent); }
.app-chain .chain-fill-accent { fill: var(--accent); }
.app-chain .chain-stroke-accent { stroke: var(--accent); }
.app-chain .chain-src { fill: rgba(255, 255, 255, 0.04); stroke: var(--accent-line); }

/* ---------- Pads jouables (section "Try it here") -------------------------- */
/* Le kit se telecharge a la premiere frappe : cette section ne coute rien au
   chargement de la page, seulement au visiteur qui y touche. */

.play-try {
    border: 1px solid var(--play-border);
    border-radius: var(--play-radius);
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(0, 229, 255, 0.08), transparent 70%),
        rgba(255, 255, 255, 0.02);
    padding: clamp(16px, 3vw, 28px);
}

.play-try-pads {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(8px, 1.4vw, 14px);
}

.play-try-pad {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2px;
    padding: clamp(8px, 1.2vw, 14px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    color: var(--play-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    /* Un pad se frappe : pas de scroll, pas de selection, pas de zoom double-tap. */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.08s ease, border-color 0.15s ease, background 0.15s ease;
}

.play-try-pad:hover {
    border-color: rgba(0, 229, 255, 0.45);
    background: linear-gradient(160deg, rgba(0, 229, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.play-try-pad:focus-visible {
    outline: 2px solid var(--accent, #00e5ff);
    outline-offset: 3px;
}

/* Retour visuel de la frappe, applique aussi bien au clic qu'au clavier. */
.play-try-pad.is-hit {
    transform: scale(0.94);
    border-color: rgba(0, 229, 255, 0.9);
    background: linear-gradient(160deg, rgba(0, 229, 255, 0.4), rgba(255, 43, 214, 0.18));
}

.play-try-pad-name {
    font-size: clamp(0.66rem, 1.1vw, 0.8rem);
    font-weight: 600;
    line-height: 1.15;
}

.play-try-pad-key {
    position: absolute;
    top: clamp(6px, 1vw, 10px);
    right: clamp(6px, 1vw, 10px);
    min-width: 1.4em;
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.62rem;
    font-weight: 700;
    text-align: center;
    color: rgba(242, 244, 255, 0.75);
}

.play-try-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: clamp(14px, 2vw, 20px);
}

.play-try-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--play-muted);
}

@media (max-width: 560px) {
    /* Les raccourcis clavier n'ont pas de sens au doigt : on rend la place
       aux noms de sons, qui deviennent le seul reperage utile. */
    .play-try-pad-key { display: none; }
    .play-try-bar { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .play-try-pad { transition: none; }
}
