:root {
    --green-950: #003025;
    --green-900: #003d2f;
    --green-850: #004b39;
    --green-800: #005642;
    --green-700: #00664a;
    --green-500: #63b32a;
    --green-400: #91d52d;
    --ivory: #f7f6ed;
    --ivory-strong: #fffefa;
    --stone: #c8c9bd;
    --text: #07392c;
    --muted: #e4e8dc;
    --line: rgba(247, 246, 237, 0.28);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
    --radius: 8px;
    --brand-font: "Rotis Sans Serif W01", "Rotis Sans Serif", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--green-950);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ivory);
    font-family: var(--brand-font);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 7px),
        repeating-linear-gradient(-18deg, rgba(0, 0, 0, 0.055) 0 1px, transparent 1px 11px),
        linear-gradient(112deg, var(--green-950), var(--green-850) 48%, var(--green-700));
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 18%, rgba(0, 0, 0, 0.18)),
        linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.22));
    mix-blend-mode: soft-light;
}

button {
    font: inherit;
}

.app-header,
.app,
.app-footer {
    position: relative;
    z-index: 1;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto 10px;
    padding: 30px 0 12px;
}

h1 {
    position: relative;
    margin: 0;
    padding: 16px 12px 16px 66px;
    color: var(--ivory);
    font-size: 60px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.20);
}

h1::before {
    position: absolute;
    left: 0;
    top: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    content: "";
    transform: translate(12px, -50%);
    background:
        radial-gradient(circle at 34% 28%, #c9f47a 0 17%, transparent 18%),
        linear-gradient(145deg, #a1df35, #7abe25 62%, #4a9123);
    box-shadow:
        0 0 0 8px rgba(123, 200, 69, 0.13),
        0 14px 28px rgba(0, 0, 0, 0.34),
        inset 0 2px 4px rgba(255, 255, 255, 0.28);
}

.app {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 0 42px 72px;
    text-align: center;
}

h2 {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 0 18px 10px;
    border: 0;
    color: var(--muted);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.sound-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 0;
    padding: 13px;
    border: 1px solid rgba(241, 236, 210, 0.20);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 242, 230, 0.98)),
        var(--ivory);
    color: var(--text);
    font-family: var(--brand-font);
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.sound-card::after {
    position: absolute;
    inset: 13px 13px auto auto;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    content: "";
    background: rgba(24, 49, 38, 0.24);
    box-shadow: 0 0 0 5px rgba(24, 49, 38, 0.06);
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.sound-card:hover {
    transform: translateY(-3px);
    border-color: rgba(123, 200, 69, 0.58);
    box-shadow: var(--shadow), 0 0 0 4px rgba(123, 200, 69, 0.10);
}

.sound-card img,
.placeholder-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    margin-bottom: 13px;
    border: 1px solid rgba(24, 49, 38, 0.12);
    border-radius: var(--radius);
}

.sound-card img {
    display: block;
    object-fit: cover;
    filter: none;
    image-rendering: auto;
    transition:
        filter 0.28s ease,
        transform 0.18s ease;
}

.sound-card span {
    display: block;
    min-height: 1.2em;
    padding: 0 4px 2px;
    overflow-wrap: anywhere;
}

.sound-card.active {
    border-color: var(--green-400);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 246, 237, 0.98)),
        var(--ivory-strong);
    box-shadow:
        var(--shadow),
        0 0 0 5px rgba(123, 200, 69, 0.16),
        inset 0 0 0 2px rgba(123, 200, 69, 0.18);
    transform: translateY(-2px) scale(1.012);
}

.sound-card.active::after {
    background: var(--green-400);
    box-shadow:
        0 0 0 7px rgba(123, 200, 69, 0.16),
        0 0 22px rgba(123, 200, 69, 0.44);
}

.sound-card.active img {
    filter: none;
}

.sound-card.active span {
    color: #0d3a2b;
}

.placeholder-image {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 42%),
        linear-gradient(145deg, #d8d6bf, #bcb8a4);
}

.audio-controls {
    display: grid;
    grid-template-columns: auto minmax(300px, 520px);
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 32px auto 0;
}

.pause-button {
    min-width: 190px;
    min-height: 58px;
    margin: 0;
    padding: 15px 48px;
    border: 1px solid rgba(198, 243, 111, 0.72);
    border-radius: 8px;
    background: linear-gradient(135deg, #a6e665, var(--green-400) 58%, var(--green-500));
    color: #082419;
    font-family: var(--brand-font);
    font-size: 23px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(123, 200, 69, 0.26);
    transition:
        transform 0.16s ease,
        filter 0.16s ease,
        opacity 0.16s ease;
}

.pause-button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.pause-button:disabled {
    opacity: 0.40;
    cursor: default;
    box-shadow: none;
}

.focus-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    justify-self: center;
    gap: 9px;
    margin-top: -3px;
    color: rgba(228, 232, 220, 0.68);
    cursor: pointer;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
}

.focus-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.focus-checkbox-icon {
    position: relative;
    display: inline-grid;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    place-items: center;
    border: 1px solid rgba(247, 246, 237, 0.54);
    border-radius: 2px;
    background: rgba(0, 32, 24, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.focus-checkbox:checked + .focus-checkbox-icon {
    border-color: var(--green-400);
    background: var(--green-400);
}

.focus-checkbox:checked + .focus-checkbox-icon::after {
    width: 7px;
    height: 3px;
    border-bottom: 2px solid #07392c;
    border-left: 2px solid #07392c;
    content: "";
    transform: rotate(-45deg) translate(1px, -1px);
}

.focus-checkbox:focus-visible + .focus-checkbox-icon {
    outline: 2px solid var(--ivory);
    outline-offset: 3px;
}

.volume-control {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr);
    gap: 10px 14px;
    align-items: center;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid rgba(241, 236, 210, 0.24);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        rgba(4, 23, 17, 0.58);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.volume-button {
    grid-row: span 2;
    min-width: 72px;
    min-height: 44px;
    border: 1px solid rgba(198, 243, 111, 0.46);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(198, 243, 111, 0.16), transparent 42%),
        linear-gradient(145deg, rgba(13, 58, 43, 0.98), rgba(4, 24, 18, 0.98));
    color: var(--ivory);
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.volume-button:hover {
    filter: brightness(1.08);
}

.volume-slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.volume-slider-label output {
    color: var(--ivory);
    letter-spacing: 0;
}

.volume-slider {
    width: 100%;
    accent-color: var(--green-400);
    cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--green-500), var(--green-400)),
        rgba(255, 255, 255, 0.14);
}

.volume-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -8px;
    border: 3px solid var(--ivory);
    border-radius: 50%;
    appearance: none;
    background: var(--green-400);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.volume-slider::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.volume-slider::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-500), var(--green-400));
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid var(--ivory);
    border-radius: 50%;
    background: var(--green-400);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.focus-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--green-950);
    color: var(--ivory);
}

.focus-dialog::backdrop {
    background: rgba(0, 21, 15, 0.82);
}

.focus-stage {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44)),
        linear-gradient(112deg, var(--green-950), var(--green-850) 48%, var(--green-700));
}

.focus-visual {
    position: relative;
    width: min(100vw, calc(100dvh * 1.7778));
    aspect-ratio: 16 / 9;
    overflow: hidden;
    isolation: isolate;
    background: #061913;
}

.focus-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #061913;
    object-fit: cover;
}

.focus-image,
.focus-motion {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.focus-motion {
    z-index: 1;
    display: none;
    pointer-events: none;
    will-change: transform;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.focus-motion-a {
    -webkit-mask-image: radial-gradient(ellipse 24% 30% at 35% 58%, #000 28%, transparent 72%);
    mask-image: radial-gradient(ellipse 24% 30% at 35% 58%, #000 28%, transparent 72%);
    animation: living-forward 3.8s ease-in-out infinite alternate;
}

.focus-motion-b {
    -webkit-mask-image: radial-gradient(ellipse 22% 28% at 72% 58%, #000 28%, transparent 72%);
    mask-image: radial-gradient(ellipse 22% 28% at 72% 58%, #000 28%, transparent 72%);
    animation: living-sway 4.6s ease-in-out infinite alternate;
}

.focus-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%, rgba(0, 0, 0, 0.08));
}

.focus-visual[data-scene="oper"] .focus-motion-a {
    transform-origin: 31% 31%;
    -webkit-mask-image: radial-gradient(ellipse 42% 34% at 34% 32%, #000 30%, transparent 72%);
    mask-image: radial-gradient(ellipse 42% 34% at 34% 32%, #000 30%, transparent 72%);
    animation-name: conductor-hand;
    animation-duration: 3s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="oper"] .focus-motion-b {
    transform-origin: 30% 72%;
    -webkit-mask-image: radial-gradient(ellipse 31% 25% at 35% 72%, #000 30%, transparent 72%);
    mask-image: radial-gradient(ellipse 31% 25% at 35% 72%, #000 30%, transparent 72%);
    animation-name: conductor-hand-lower;
    animation-duration: 3s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="restaurant"] .focus-motion-a {
    -webkit-mask-image: radial-gradient(ellipse 28% 33% at 30% 64%, #000 26%, transparent 72%);
    mask-image: radial-gradient(ellipse 28% 33% at 30% 64%, #000 26%, transparent 72%);
    animation-name: restaurant-gesture-a;
    animation-duration: 5.2s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="restaurant"] .focus-motion-b {
    -webkit-mask-image: radial-gradient(ellipse 25% 28% at 72% 63%, #000 26%, transparent 72%);
    mask-image: radial-gradient(ellipse 25% 28% at 72% 63%, #000 26%, transparent 72%);
    animation-name: restaurant-gesture-b;
    animation-duration: 5.2s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="stadion"] .focus-motion-a {
    -webkit-mask-image: linear-gradient(to top, #000 0 28%, transparent 57%);
    mask-image: linear-gradient(to top, #000 0 28%, transparent 57%);
    animation-name: crowd-wave;
    animation-duration: 3.2s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="stadion"] .focus-motion-b {
    -webkit-mask-image: radial-gradient(ellipse 48% 24% at 76% 55%, #000 28%, transparent 74%);
    mask-image: radial-gradient(ellipse 48% 24% at 76% 55%, #000 28%, transparent 74%);
    animation-name: crowd-sway;
    animation-duration: 3.2s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="konferenz"] .focus-motion-a {
    -webkit-mask-image: radial-gradient(ellipse 34% 42% at 28% 47%, #000 24%, transparent 72%);
    mask-image: radial-gradient(ellipse 34% 42% at 28% 47%, #000 24%, transparent 72%);
    animation-duration: 3.5s;
}

.focus-visual[data-scene="konferenz"] .focus-motion-b {
    -webkit-mask-image: radial-gradient(ellipse 39% 48% at 76% 48%, #000 24%, transparent 72%);
    mask-image: radial-gradient(ellipse 39% 48% at 76% 48%, #000 24%, transparent 72%);
    animation-duration: 4.1s;
}

.focus-visual[data-scene="hundebellen"] .focus-motion-a {
    -webkit-mask-image: radial-gradient(ellipse 31% 42% at 40% 60%, #000 26%, transparent 70%);
    mask-image: radial-gradient(ellipse 31% 42% at 40% 60%, #000 26%, transparent 70%);
    animation-name: dog-alert;
    animation-duration: 3.4s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="hundebellen"] .focus-motion-b {
    -webkit-mask-image: radial-gradient(ellipse 38% 46% at 69% 58%, #000 26%, transparent 72%);
    mask-image: radial-gradient(ellipse 38% 46% at 69% 58%, #000 26%, transparent 72%);
    animation-name: dog-breathe;
    animation-duration: 3.4s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="strassenlaerm"] .focus-motion-a {
    transform-origin: 49% 43%;
    -webkit-mask-image: radial-gradient(ellipse 16% 37% at 49% 43%, #000 32%, transparent 72%);
    mask-image: radial-gradient(ellipse 16% 37% at 49% 43%, #000 32%, transparent 72%);
    animation-name: traffic-sway;
    animation-duration: 4.4s;
}

.focus-visual[data-scene="strassenlaerm"] .focus-motion-b {
    -webkit-mask-image: radial-gradient(circle 10% at 49% 27%, #000 28%, transparent 76%);
    mask-image: radial-gradient(circle 10% at 49% 27%, #000 28%, transparent 76%);
    animation-name: signal-pulse;
    animation-duration: 1.8s;
}

.focus-visual[data-scene="spielendekinder"] .focus-motion-a {
    -webkit-mask-image: radial-gradient(ellipse 35% 58% at 34% 57%, #000 26%, transparent 72%);
    mask-image: radial-gradient(ellipse 35% 58% at 34% 57%, #000 26%, transparent 72%);
    animation-name: children-run-a;
    animation-duration: 2.2s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="spielendekinder"] .focus-motion-b {
    -webkit-mask-image: radial-gradient(ellipse 38% 58% at 75% 55%, #000 26%, transparent 72%);
    mask-image: radial-gradient(ellipse 38% 58% at 75% 55%, #000 26%, transparent 72%);
    animation-name: children-run-b;
    animation-duration: 2.2s;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
}

.focus-visual[data-scene="fahrradklingel"] .focus-motion-a {
    transform-origin: 69% 48%;
    -webkit-mask-image: radial-gradient(ellipse 25% 31% at 69% 48%, #000 34%, transparent 72%);
    mask-image: radial-gradient(ellipse 25% 31% at 69% 48%, #000 34%, transparent 72%);
    animation-name: bell-ring;
    animation-duration: 0.44s;
}

.focus-visual[data-scene="fahrradklingel"] .focus-motion-b {
    -webkit-mask-image: radial-gradient(ellipse 48% 22% at 47% 60%, #000 28%, transparent 72%);
    mask-image: radial-gradient(ellipse 48% 22% at 47% 60%, #000 28%, transparent 72%);
    animation-name: handle-vibration;
    animation-duration: 0.62s;
}

.motion-paused .focus-image,
.motion-paused .focus-motion,
.motion-paused .focus-atmosphere {
    animation-play-state: paused;
}

@keyframes living-forward {
    from { transform: none; }
    to { transform: translate3d(0.3%, -0.38%, 0) scale(1.009); }
}

@keyframes living-sway {
    from { transform: none; }
    to { transform: translate3d(-0.28%, 0.26%, 0) rotate(0.1deg); }
}

@keyframes conductor-hand {
    0%, 10%, 52%, 100% { transform: none; }
    19% { transform: rotate(-0.55deg) translateY(0.35%); }
    31% { transform: rotate(0.85deg) translateY(-0.9%); }
    41% { transform: rotate(-0.18deg) translateY(0.15%); }
}
@keyframes conductor-hand-lower {
    0%, 12%, 55%, 100% { transform: none; }
    24% { transform: translateY(-0.75%) rotate(-0.22deg); }
    39% { transform: translateY(0.32%) rotate(0.14deg); }
}
@keyframes restaurant-gesture-a {
    0%, 9%, 32%, 58%, 100% { transform: none; }
    17% { transform: translate3d(0.45%, -0.55%, 0) rotate(0.12deg) scale(1.006); }
    24% { transform: translate3d(-0.18%, 0.18%, 0); }
    70% { transform: translate3d(-0.38%, -0.35%, 0) rotate(-0.1deg) scale(1.005); }
    79% { transform: translate3d(0.16%, 0.12%, 0); }
}
@keyframes restaurant-gesture-b {
    0%, 28%, 52%, 82%, 100% { transform: none; }
    38% { transform: translate3d(-0.42%, -0.48%, 0) rotate(-0.11deg) scale(1.006); }
    45% { transform: translate3d(0.18%, 0.12%, 0); }
    90% { transform: translate3d(0.28%, -0.25%, 0); }
}
@keyframes crowd-wave {
    0%, 10%, 62%, 100% { transform: none; }
    22% { transform: translate3d(-0.18%, -0.65%, 0) scale(1.007); }
    32% { transform: translate3d(0.24%, 0.12%, 0); }
    43% { transform: translate3d(-0.12%, -0.52%, 0) scale(1.006); }
    53% { transform: none; }
}
@keyframes crowd-sway {
    0%, 18%, 68%, 100% { transform: none; }
    30% { transform: translateX(0.48%) rotate(0.12deg); }
    43% { transform: translateX(-0.32%) rotate(-0.08deg); }
    56% { transform: translateX(0.18%); }
}
@keyframes dog-alert {
    0%, 8%, 50%, 100% { transform: none; }
    17% { transform: translateY(-0.72%) scale(1.009); }
    25% { transform: translateY(0.28%) scale(1.003); }
    34% { transform: translateY(-0.58%) scale(1.008); }
    43% { transform: none; }
}
@keyframes dog-breathe {
    0%, 34%, 76%, 100% { transform: none; }
    44% { transform: translate3d(0.24%, -0.45%, 0) scale(1.007); }
    55% { transform: translate3d(-0.18%, 0.16%, 0); }
    66% { transform: translateY(-0.38%) scale(1.006); }
}
@keyframes traffic-sway { from { transform: none; } to { transform: rotate(0.18deg); } }
@keyframes signal-pulse { from { filter: brightness(0.92) saturate(0.95); } to { filter: brightness(1.22) saturate(1.16); } }
@keyframes children-run-a {
    0%, 10%, 100% { transform: none; }
    28% { transform: translate3d(0.55%, -0.72%, 0) scale(1.008); }
    52% { transform: translate3d(-0.18%, 0.22%, 0) scale(1.003); }
    76% { transform: translate3d(0.38%, -0.52%, 0) scale(1.007); }
}
@keyframes children-run-b {
    0%, 18%, 100% { transform: none; }
    38% { transform: translate3d(-0.5%, -0.62%, 0) scale(1.008); }
    61% { transform: translate3d(0.2%, 0.24%, 0) scale(1.003); }
    82% { transform: translate3d(-0.34%, -0.48%, 0) scale(1.006); }
}
@keyframes bell-ring { from { transform: none; } to { transform: rotate(0.2deg) scale(1.006); } }
@keyframes handle-vibration { from { transform: none; } to { transform: translateY(0.1%); } }

@media (prefers-reduced-motion: reduce) {
    .focus-image,
    .focus-motion,
    .focus-atmosphere {
        animation: none;
    }
}

.focus-heading {
    position: absolute;
    top: max(24px, env(safe-area-inset-top));
    left: clamp(20px, 4vw, 56px);
    text-align: left;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.64);
}

.focus-heading span {
    display: block;
    margin-bottom: 4px;
    color: rgba(247, 246, 237, 0.72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.focus-heading h3 {
    margin: 0;
    color: var(--ivory);
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
}

.focus-close {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: clamp(20px, 4vw, 56px);
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0 0 4px;
    place-items: center;
    border: 1px solid rgba(247, 246, 237, 0.36);
    border-radius: 50%;
    background: rgba(0, 48, 37, 0.72);
    color: var(--ivory);
    cursor: pointer;
    font-size: 35px;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.focus-close:hover {
    border-color: var(--green-400);
    background: var(--green-800);
}

.focus-controls {
    position: absolute;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    display: grid;
    width: min(880px, calc(100% - 48px));
    grid-template-columns: auto minmax(300px, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(247, 246, 237, 0.26);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(0, 38, 29, 0.82);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateX(-50%);
}

.focus-pause {
    min-width: 154px;
    min-height: 50px;
    padding: 12px 26px;
    border: 1px solid rgba(198, 243, 111, 0.72);
    border-radius: 8px;
    background: linear-gradient(135deg, #a6e665, var(--green-400) 58%, var(--green-500));
    color: #082419;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
}

.focus-pause:disabled {
    opacity: 0.42;
    cursor: default;
}

.focus-volume {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr);
    gap: 8px 14px;
    align-items: center;
}

.focus-mute-button {
    grid-row: span 2;
    min-width: 64px;
    min-height: 42px;
    border: 1px solid rgba(198, 243, 111, 0.46);
    border-radius: 8px;
    background: rgba(0, 49, 37, 0.88);
    color: var(--ivory);
    cursor: pointer;
    font-weight: 700;
}

.focus-mute-button:hover {
    border-color: var(--green-400);
}

.app-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(5px + env(safe-area-inset-bottom));
    color: rgba(241, 236, 210, 0.56);
    font-size: 10px;
    font-weight: 400;
    text-align: center;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .app-header {
        padding-top: 16px;
    }

    h1 {
        padding-left: 68px;
        font-size: 48px;
    }

    h1::before {
        width: 32px;
        height: 32px;
        transform: translate(12px, -50%);
    }

    .sound-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .app-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    h1 {
        padding: 18px 18px 20px;
        font-size: 36px;
    }

    h1::before {
        position: static;
        display: block;
        margin: 0 auto 10px;
        transform: none;
    }

    .sound-grid {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 19px;
    }

    .app {
        padding-right: 18px;
        padding-left: 18px;
    }

    .audio-controls {
        grid-template-columns: 1fr;
    }

    .pause-button,
    .volume-control {
        width: 100%;
    }

    .volume-control {
        grid-template-columns: 1fr;
    }

    .volume-button {
        grid-row: auto;
        width: 100%;
    }

    .focus-heading {
        top: max(18px, env(safe-area-inset-top));
        left: 20px;
    }

    .focus-heading h3 {
        font-size: 32px;
    }

    .focus-close {
        top: max(14px, env(safe-area-inset-top));
        right: 18px;
        width: 44px;
        height: 44px;
    }

    .focus-controls {
        bottom: max(16px, env(safe-area-inset-bottom));
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
    }

    .focus-pause {
        width: 100%;
    }
}
