:root {
    color-scheme: dark;
    --bg: #050201;
    --panel: rgba(12, 5, 2, 0.86);
    --panel-strong: rgba(18, 7, 2, 0.95);
    --line: rgba(255, 103, 22, 0.42);
    --line-strong: rgba(255, 128, 35, 0.78);
    --orange: #ff6d19;
    --orange-hot: #ff9a35;
    --red: #a91405;
    --text: #fff7ef;
    --muted: #cdb9ab;
    --success: #8ee48f;
    --danger: #ff9a8e;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: var(--bg);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76)),
        radial-gradient(circle at 50% 42%, rgba(207, 49, 3, 0.22), transparent 35%),
        url("background.jpg?v=20260707") center / cover no-repeat fixed;
}

.page::before,
.page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.page::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.72)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 30%, rgba(0, 0, 0, 0.58));
}

.page::after {
    opacity: 0.25;
    background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 111, 25, 0.07) 4px);
    mix-blend-mode: screen;
}

.scene-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.arena-light {
    position: absolute;
    top: -24%;
    width: 44vw;
    height: 82vh;
    opacity: 0.28;
    filter: blur(14px);
    background: linear-gradient(180deg, rgba(255, 109, 25, 0.85), transparent 76%);
    transform-origin: top;
    animation: lightSweep 8s ease-in-out infinite alternate;
}

.arena-light-left {
    left: -8%;
    transform: rotate(17deg);
}

.arena-light-right {
    right: -8%;
    transform: rotate(-17deg);
    animation-delay: -4s;
}

.hud-grid {
    position: absolute;
    left: 50%;
    bottom: -38%;
    width: 160%;
    height: 74%;
    transform: translateX(-50%) perspective(500px) rotateX(64deg);
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 106, 20, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 106, 20, 0.35) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, transparent, black 28%, black);
}

.energy-rings,
.shockwaves {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 48vmin;
    height: 48vmin;
    transform: translate(-50%, -50%);
}

.energy-rings span,
.shockwaves span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 105, 23, 0.32);
    border-radius: 50%;
    animation: ringPulse 5s linear infinite;
}

.energy-rings span:nth-child(2),
.shockwaves span:nth-child(2) {
    animation-delay: -1.65s;
}

.energy-rings span:nth-child(3),
.shockwaves span:nth-child(3) {
    animation-delay: -3.3s;
}

.laser-field {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background:
        linear-gradient(116deg, transparent 34%, rgba(255, 90, 12, 0.56) 34.2%, transparent 34.7%),
        linear-gradient(64deg, transparent 67%, rgba(255, 90, 12, 0.42) 67.2%, transparent 67.7%);
    animation: laserDrift 9s ease-in-out infinite alternate;
}

.ember-field {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background-image:
        radial-gradient(circle at 18% 83%, rgba(255, 121, 23, 0.85) 0 2px, transparent 3px),
        radial-gradient(circle at 74% 74%, rgba(255, 80, 8, 0.78) 0 1px, transparent 2px),
        radial-gradient(circle at 42% 92%, rgba(255, 151, 44, 0.7) 0 2px, transparent 3px),
        radial-gradient(circle at 87% 88%, rgba(255, 92, 11, 0.8) 0 1px, transparent 2px);
    background-size: 240px 250px, 190px 220px, 280px 270px, 210px 260px;
    animation: embers 14s linear infinite;
}

.dc-signal {
    position: absolute;
    inset: auto 0 12% 0;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 7px;
    height: 38px;
    opacity: 0.22;
}

.dc-signal span {
    width: 4px;
    height: 30%;
    background: var(--orange);
    box-shadow: 0 0 18px var(--orange);
    animation: signal 0.8s ease-in-out infinite alternate;
}

.dc-signal span:nth-child(2) { animation-delay: -0.2s; }
.dc-signal span:nth-child(3) { animation-delay: -0.4s; }
.dc-signal span:nth-child(4) { animation-delay: -0.6s; }

.stage {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: min(100%, 1500px);
    min-height: calc(100vh - 52px);
    min-height: calc(100svh - 52px);
    margin: 0 auto;
    padding: clamp(72px, 8vh, 112px) clamp(18px, 4vw, 60px) 32px;
}

.media-stage,
.hero {
    width: min(100%, 1120px);
}

.media-stage {
    display: grid;
    justify-items: center;
    gap: 0;
    transition: opacity 0.38s ease, transform 0.38s ease;
}

.media-stage.is-finished {
    opacity: 0;
    transform: scale(0.97);
}

.media-stage[hidden] {
    display: none !important;
}

.media-frame {
    position: relative;
    width: 100%;
    padding: clamp(8px, 1vw, 13px);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(22, 8, 2, 0.96), rgba(3, 1, 0, 0.98));
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 157, 72, 0.08) inset, 0 0 70px rgba(180, 37, 0, 0.24);
}

.media-frame::before,
.media-frame::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 110px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange-hot));
    box-shadow: 0 0 14px var(--orange);
}

.media-frame::before {
    top: 0;
    left: 24px;
}

.media-frame::after {
    right: 24px;
    bottom: 0;
    transform: rotate(180deg);
}


.dcsb-video {
    display: block;
    width: 100%;
    max-height: min(72vh, 760px);
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    background: #000;
    object-fit: contain;
}

.video-start {
    position: absolute;
    z-index: 5;
    inset: 50% auto auto 50%;
    min-width: min(82%, 360px);
    padding: 17px 22px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 136, 54, 0.9);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, rgba(150, 33, 2, 0.94), rgba(46, 10, 1, 0.96));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.66), 0 0 34px rgba(255, 78, 8, 0.28);
    cursor: pointer;
}

.video-start span,
.video-start small {
    display: block;
}

.video-start span {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.video-start small {
    margin-top: 5px;
    color: #f2cbb4;
    font-size: 0.78rem;
}

.hero {
    position: relative;
    display: grid;
    justify-items: center;
    padding: clamp(34px, 5vw, 68px) clamp(20px, 5vw, 76px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(32, 10, 2, 0.78), rgba(5, 2, 1, 0.94)),
        radial-gradient(circle at 50% 0%, rgba(255, 101, 19, 0.18), transparent 36%);
    box-shadow: var(--shadow), 0 0 90px rgba(155, 27, 0, 0.24);
    backdrop-filter: blur(16px);
}

.countdown-stage.is-hidden {
    display: none;
}

.countdown-stage.is-visible {
    animation: heroReveal 0.7s cubic-bezier(.2, .75, .25, 1) both;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255, 118, 30, 0.08), transparent),
        repeating-linear-gradient(90deg, transparent 0 90px, rgba(255, 118, 30, 0.04) 91px, transparent 92px);
}

.hero-corners span {
    position: absolute;
    width: 54px;
    height: 54px;
    border-color: var(--orange);
    border-style: solid;
    opacity: 0.72;
}

.hero-corners span:nth-child(1) {
    top: 14px;
    left: 14px;
    border-width: 2px 0 0 2px;
}

.hero-corners span:nth-child(2) {
    top: 14px;
    right: 14px;
    border-width: 2px 2px 0 0;
}

.hero-corners span:nth-child(3) {
    right: 14px;
    bottom: 14px;
    border-width: 0 2px 2px 0;
}

.hero-corners span:nth-child(4) {
    bottom: 14px;
    left: 14px;
    border-width: 0 0 2px 2px;
}

.hero-scan {
    position: absolute;
    inset: -30% 0 auto;
    height: 35%;
    opacity: 0.22;
    background: linear-gradient(180deg, transparent, rgba(255, 116, 31, 0.38), transparent);
    animation: scan 6s linear infinite;
}

.hero-power {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    height: 5px;
}

.hero-power span {
    width: 23%;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    filter: drop-shadow(0 0 7px var(--orange));
}

.core {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(112px, 11vw, 154px);
    aspect-ratio: 1;
    margin-bottom: 10px;
}

.core::before,
.core::after,
.core span {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 118, 29, 0.4);
    border-radius: 50%;
}

.core::before {
    animation: coreSpin 12s linear infinite;
    border-style: dashed;
}

.core::after {
    inset: 10%;
    box-shadow: 0 0 36px rgba(255, 75, 4, 0.24) inset, 0 0 34px rgba(255, 75, 4, 0.18);
}

.core span {
    inset: -12%;
    animation: corePulse 2.4s ease-in-out infinite;
}

.core img {
    position: relative;
    z-index: 2;
    width: 88%;
    height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 111, 24, 0.44));
}

.eyebrow {
    position: relative;
    margin: 12px 0 3px;
    color: #e7bfa5;
    font-size: clamp(0.68rem, 1.5vw, 0.84rem);
    font-weight: 800;
    letter-spacing: 0.28em;
    text-align: center;
}

h1 {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: clamp(3.7rem, 11vw, 8.4rem);
    font-weight: 1000;
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-shadow:
        0 2px 0 #4a1303,
        0 0 22px rgba(255, 97, 13, 0.48),
        0 18px 35px rgba(0, 0, 0, 0.62);
}

h1::before,
h1::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

h1::before {
    color: rgba(255, 91, 10, 0.5);
    clip-path: inset(9% 0 68% 0);
    transform: translateX(2px);
    animation: glitchTop 3.4s steps(1) infinite;
}

h1::after {
    color: rgba(132, 20, 3, 0.55);
    clip-path: inset(68% 0 8% 0);
    transform: translateX(-2px);
    animation: glitchBottom 2.8s steps(1) infinite;
}

.subline,
.release-title {
    position: relative;
    margin: clamp(18px, 3vw, 28px) 0 18px;
    color: #ffd6ba;
    font-size: clamp(0.86rem, 2vw, 1.08rem);
    font-weight: 800;
    letter-spacing: 0.38em;
    text-transform: uppercase;
}

.countdown {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(105px, 1fr));
    gap: clamp(9px, 2vw, 20px);
    width: 100%;
}

.timebox {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(110px, 15vw, 156px);
    padding: 18px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 120, 33, 0.36);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(57, 15, 3, 0.72), rgba(8, 3, 1, 0.84));
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.42), 0 0 28px rgba(255, 71, 0, 0.08) inset;
}

.timebox::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    width: 64%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange-hot), transparent);
    box-shadow: 0 0 14px var(--orange);
}

.timebox strong {
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(2.35rem, 6vw, 4.3rem);
    line-height: 1;
    letter-spacing: -0.08em;
    text-shadow: 0 0 20px rgba(255, 100, 17, 0.38);
}

.timebox span {
    color: var(--muted);
    font-size: clamp(0.62rem, 1.2vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.release-stage {
    width: min(100%, 900px);
}

.release-core {
    width: clamp(82px, 10vw, 118px);
}

.release-title {
    margin-bottom: 8px;
    color: #ffae72;
    text-align: center;
}

.release-copy {
    position: relative;
    max-width: 670px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: clamp(0.9rem, 2vw, 1.08rem);
    line-height: 1.65;
    text-align: center;
}

.code-form {
    position: relative;
    width: min(100%, 680px);
}

.code-form label {
    display: block;
    margin-bottom: 9px;
    color: #f6c7aa;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.code-entry {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.code-entry input {
    min-width: 0;
    height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(255, 121, 37, 0.42);
    border-radius: 12px;
    outline: none;
    color: #fff;
    background: rgba(3, 1, 0, 0.72);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-entry input:focus {
    border-color: var(--orange-hot);
    box-shadow: 0 0 0 3px rgba(255, 105, 23, 0.13), 0 0 24px rgba(255, 76, 4, 0.12);
}

.code-entry button {
    min-height: 58px;
    padding: 0 24px;
    border: 1px solid rgba(255, 151, 74, 0.82);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #b52905, #6e1502 60%, #3b0b01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), 0 0 22px rgba(255, 74, 0, 0.14);
    font-size: 0.82rem;
    font-weight: 1000;
    letter-spacing: 0.11em;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.code-entry button:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.form-message {
    position: relative;
    width: min(100%, 680px);
    margin: 0 0 18px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.88rem;
    text-align: center;
}

.form-error {
    border: 1px solid rgba(255, 104, 90, 0.38);
    color: var(--danger);
    background: rgba(88, 10, 3, 0.36);
}

.form-success {
    border: 1px solid rgba(112, 224, 115, 0.38);
    color: var(--success);
    background: rgba(11, 72, 22, 0.34);
}

.android-note {
    position: relative;
    margin: 18px 0 0;
    color: rgba(222, 196, 180, 0.64);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-align: center;
}

.footer {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 8px clamp(26px, 3.2vw, 54px);
    border-top: 1px solid rgba(255, 105, 22, 0.12);
    background: linear-gradient(180deg, rgba(3, 1, 0, 0.08), rgba(3, 1, 0, 0.64));
}

.footer a,
.footer time {
    color: rgba(255, 235, 220, 0.7);
    font-size: clamp(0.72rem, 1.4vw, 0.86rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.test-console {
    position: fixed;
    z-index: 20;
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 24px);
    padding: 7px;
    transform: translateX(-50%);
    overflow-x: auto;
    border: 1px solid rgba(255, 155, 76, 0.5);
    border-radius: 999px;
    background: rgba(12, 4, 1, 0.9);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
}

.test-console strong,
.test-console a {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.test-console strong {
    color: #ffb47c;
}

.test-console a {
    color: #d8c1b1;
}

.test-console a:hover,
.test-console a.active {
    color: #fff;
    background: rgba(166, 39, 4, 0.76);
}

@keyframes lightSweep {
    from { opacity: 0.18; filter: blur(18px); }
    to { opacity: 0.34; filter: blur(9px); }
}

@keyframes ringPulse {
    0% { transform: scale(0.38); opacity: 0; }
    18% { opacity: 0.48; }
    100% { transform: scale(1.65); opacity: 0; }
}

@keyframes laserDrift {
    from { transform: translateX(-2%) scale(1.02); }
    to { transform: translateX(2%) scale(1.08); }
}

@keyframes embers {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 0 -250px, 0 -220px, 0 -270px, 0 -260px; }
}

@keyframes signal {
    to { height: 100%; }
}

@keyframes scan {
    from { transform: translateY(-30%); }
    to { transform: translateY(370%); }
}

@keyframes coreSpin {
    to { transform: rotate(360deg); }
}

@keyframes corePulse {
    50% { transform: scale(1.08); opacity: 0.38; }
}

@keyframes glitchTop {
    0%, 87%, 100% { transform: translateX(2px); }
    88% { transform: translateX(-5px); }
    90% { transform: translateX(6px); }
    92% { transform: translateX(1px); }
}

@keyframes glitchBottom {
    0%, 83%, 100% { transform: translateX(-2px); }
    84% { transform: translateX(5px); }
    87% { transform: translateX(-7px); }
    89% { transform: translateX(-1px); }
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
    .page {
        background-attachment: scroll;
    }

    .stage {
        min-height: calc(100svh - 64px);
        padding-top: 78px;
    }

    .media-frame {
        border-radius: 15px;
    }

    .dcsb-video {
        border-radius: 10px;
    }

    .hero {
        padding: 34px 16px 38px;
        border-radius: 20px;
    }

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

    .timebox {
        min-height: 108px;
    }

    .code-entry {
        grid-template-columns: 1fr;
    }

    .code-entry button {
        width: 100%;
    }

    .footer {
        min-height: 48px;
        padding: 8px 16px;
    }
}

@media (max-width: 420px) {
    .stage {
        padding-inline: 10px;
    }


    .hero {
        padding-inline: 12px;
    }

    .timebox {
        min-height: 94px;
        border-radius: 13px;
    }

    .timebox strong {
        font-size: 2.25rem;
    }

    .test-console strong {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* DC-APP R4: Down-Club-Logo, reduzierte Code-Ansicht und Hauptseiten-Fußzeile */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.page {
    grid-template-rows: minmax(0, 1fr) 48px;
}

.stage {
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
}

.core,
.release-core {
    justify-self: center;
    margin-right: auto;
    margin-left: auto;
}

.core img {
    display: block;
    width: 82%;
    height: 82%;
    margin: auto;
    object-fit: contain;
    object-position: 50% 50%;
    transform: none;
    filter: drop-shadow(0 0 14px rgba(255, 111, 24, 0.34));
}

.release-stage {
    width: min(100%, 780px);
    padding-top: clamp(38px, 5vw, 62px);
    padding-bottom: clamp(42px, 5vw, 66px);
}

.release-stage .release-core {
    width: clamp(104px, 11vw, 138px);
    margin-bottom: 14px;
}

.release-stage h1 {
    margin: 0 0 clamp(30px, 4vw, 42px);
    font-size: clamp(3.8rem, 10vw, 7.4rem);
    text-align: center;
}

.code-form {
    display: grid;
    justify-items: center;
    width: min(100%, 620px);
}

.code-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.code-entry input {
    width: 100%;
    text-align: center;
}

.code-entry button {
    width: min(100%, 290px);
    min-height: 56px;
}

.form-message {
    width: min(100%, 620px);
    margin-bottom: 18px;
}

.footer {
    min-height: 48px;
    height: 48px;
    padding: 0 clamp(28px, 2.7vw, 52px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 4, 5, 0.94);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(12px);
}

.footer a,
.footer time {
    color: rgba(222, 222, 224, 0.76);
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.045em;
}

.footer a:hover {
    color: #ffffff;
}

@media (max-width: 760px) {
    .stage {
        min-height: calc(100svh - 48px);
    }

    .release-stage h1 {
        margin-bottom: 28px;
    }

    .code-entry button {
        width: min(100%, 280px);
    }

    .footer {
        min-height: 48px;
        height: 48px;
        padding: 0 16px;
    }
}

/* DC-APP R5: phasenabhängiger Titel und Footer im Stil der Down-Club-Hauptseite */
.page {
    grid-template-rows: minmax(0, 1fr) 58px;
}

.stage {
    min-height: calc(100vh - 58px);
    min-height: calc(100svh - 58px);
}

.core,
.release-core {
    justify-self: center;
    align-self: center;
    margin-inline: auto;
}

.core img,
.release-core img {
    position: absolute;
    inset: 50% auto auto 50%;
    display: block;
    width: 82%;
    height: 82%;
    margin: 0;
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%);
}

.code-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 15px;
    width: 100%;
}

.code-entry input {
    width: 100%;
    text-align: center;
}

.code-entry button {
    width: min(100%, 290px);
    justify-self: center;
}

.footer {
    min-height: 58px;
    height: 58px;
    padding: 0 clamp(42px, 2.7vw, 58px);
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(0, 0, 0, 0.92);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.footer a,
.footer time {
    color: rgba(205, 205, 208, 0.72);
    font-size: clamp(0.72rem, 1vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.035em;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.94);
}

@media (max-width: 760px) {
    .page {
        grid-template-rows: minmax(0, 1fr) 54px;
    }

    .stage {
        min-height: calc(100svh - 54px);
    }

    .footer {
        min-height: 54px;
        height: 54px;
        padding: 0 18px;
    }
}


/* DC-APP R6: saubere, spoilerfreie Titeloptik für Teaser, Trailer und Code-Phase */
h1,
.release-stage h1 {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 0.08em 0.08em 0.15em;
    overflow: visible;
    color: #fff5eb;
    font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(3.35rem, 8.7vw, 7.4rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.025em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow:
        0 2px 0 rgba(95, 20, 3, 0.96),
        0 7px 0 rgba(39, 7, 1, 0.92),
        0 0 18px rgba(255, 104, 24, 0.52),
        0 18px 34px rgba(0, 0, 0, 0.68);
    filter:
        drop-shadow(0 2px 0 rgba(100, 21, 3, 0.96))
        drop-shadow(0 7px 0 rgba(37, 6, 1, 0.9))
        drop-shadow(0 0 18px rgba(255, 91, 17, 0.48))
        drop-shadow(0 18px 28px rgba(0, 0, 0, 0.58));
    isolation: isolate;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    h1,
    .release-stage h1 {
        background: linear-gradient(
            180deg,
            #ffffff 0%,
            #fff8f1 34%,
            #ffd8b9 46%,
            #ff8a3a 58%,
            #c8340b 73%,
            #641304 88%,
            #2a0601 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke: 1px rgba(255, 198, 153, 0.38);
    }
}

h1::before,
.release-stage h1::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 42% 8% auto;
    height: 42%;
    transform: translateY(-50%);
    clip-path: none;
    border: 0;
    border-radius: 50%;
    opacity: 0.62;
    background: radial-gradient(ellipse at center, rgba(255, 91, 14, 0.34), rgba(255, 91, 14, 0.08) 48%, transparent 74%);
    filter: blur(15px);
    animation: none;
    pointer-events: none;
}

h1::after,
.release-stage h1::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 0.03em;
    width: min(58%, 360px);
    height: 2px;
    transform: translateX(-50%);
    clip-path: none;
    border: 0;
    opacity: 0.9;
    background: linear-gradient(90deg, transparent, rgba(255, 113, 29, 0.85) 26%, #ffd0a7 50%, rgba(255, 113, 29, 0.85) 74%, transparent);
    box-shadow: 0 0 12px rgba(255, 91, 13, 0.55);
    animation: none;
    pointer-events: none;
}

.phase-teaser h1 {
    font-size: clamp(4rem, 9.5vw, 8rem);
    letter-spacing: 0.055em;
}

.phase-trailer h1,
.phase-release h1,
.release-stage h1 {
    font-size: clamp(3.35rem, 8.7vw, 7.4rem);
    letter-spacing: 0.025em;
}

.release-stage h1 {
    margin-bottom: clamp(30px, 4vw, 42px);
}

@media (max-width: 760px) {
    h1,
    .release-stage h1,
    .phase-trailer h1,
    .phase-release h1 {
        font-size: clamp(2.75rem, 13vw, 4.9rem);
        letter-spacing: 0.018em;
    }

    .phase-teaser h1 {
        font-size: clamp(3.25rem, 15vw, 5.5rem);
        letter-spacing: 0.04em;
    }

    h1::after,
    .release-stage h1::after {
        width: min(64%, 280px);
    }
}

@media (max-width: 420px) {
    h1,
    .release-stage h1,
    .phase-trailer h1,
    .phase-release h1 {
        font-size: clamp(2.45rem, 12.8vw, 3.7rem);
        letter-spacing: 0.012em;
    }

    .phase-teaser h1 {
        font-size: clamp(3rem, 15vw, 4.4rem);
    }
}

/* DC-APP R7: versteckte Community-Soundboard-Erinnerung in der Trailer-Phase */
.community-memory {
    position: fixed;
    right: clamp(16px, 2.2vw, 34px);
    bottom: calc(58px + clamp(14px, 2vw, 28px));
    z-index: 30;
    display: grid;
    justify-items: end;
    gap: 12px;
    max-width: min(420px, calc(100vw - 28px));
    pointer-events: none;
}

.community-memory[hidden] {
    display: none !important;
}

.community-memory.is-visible {
    animation: memoryFadeIn 0.9s ease both;
}

.memory-toast,
.memory-panel,
.memory-close,
.memory-form button,
.memory-download {
    pointer-events: auto;
}

.memory-toast {
    display: grid;
    gap: 2px;
    max-width: 315px;
    padding: 12px 16px 13px;
    border: 1px solid rgba(189, 126, 87, 0.26);
    border-radius: 16px;
    color: rgba(245, 232, 223, 0.82);
    background:
        linear-gradient(145deg, rgba(14, 11, 11, 0.94), rgba(3, 3, 4, 0.96)),
        radial-gradient(circle at 18% 0%, rgba(255, 117, 36, 0.11), transparent 42%);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.58), 0 0 34px rgba(255, 98, 18, 0.08);
    text-align: left;
    cursor: pointer;
    opacity: 0.9;
    backdrop-filter: blur(14px);
    transition: transform 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.memory-toast:hover,
.community-memory.is-open .memory-toast {
    transform: translateY(-2px);
    border-color: rgba(255, 154, 93, 0.46);
    opacity: 1;
}

.memory-toast span {
    font-size: 0.82rem;
    line-height: 1.35;
}

.memory-toast strong {
    color: rgba(255, 242, 234, 0.94);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.memory-panel {
    position: relative;
    width: min(420px, calc(100vw - 28px));
    padding: 22px 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(214, 132, 79, 0.34);
    border-radius: 20px;
    color: rgba(255, 246, 238, 0.94);
    background:
        linear-gradient(150deg, rgba(20, 14, 13, 0.96), rgba(5, 4, 5, 0.98)),
        radial-gradient(circle at 50% 0%, rgba(255, 105, 29, 0.13), transparent 46%);
    box-shadow: 0 26px 74px rgba(0, 0, 0, 0.72), 0 0 60px rgba(119, 33, 7, 0.16);
    backdrop-filter: blur(18px);
    animation: memoryPanelIn 0.35s ease both;
}

.memory-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent),
        repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 126, 50, 0.035) 53px, transparent 54px);
}

.memory-close {
    position: absolute;
    top: 9px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(0, 0, 0, 0.34);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.memory-kicker,
.memory-panel h2,
.memory-form,
.memory-error,
.memory-download {
    position: relative;
    z-index: 1;
}

.memory-kicker {
    margin: 0 36px 11px 0;
    color: rgba(239, 194, 166, 0.78);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.memory-panel h2 {
    margin: 0 0 20px;
    color: #fff5ec;
    font-size: clamp(1.35rem, 4vw, 1.95rem);
    line-height: 1.16;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 99, 21, 0.22), 0 12px 26px rgba(0, 0, 0, 0.64);
}

.memory-form {
    display: grid;
    gap: 12px;
}

.memory-form label {
    color: rgba(229, 213, 202, 0.84);
    font-size: 0.93rem;
    line-height: 1.5;
}

.memory-form input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(196, 126, 82, 0.33);
    border-radius: 12px;
    outline: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    font-family: Consolas, "Courier New", monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.memory-form input:focus {
    border-color: rgba(255, 160, 99, 0.72);
    box-shadow: 0 0 0 3px rgba(255, 111, 34, 0.11);
}

.memory-form button,
.memory-download {
    min-height: 48px;
    border: 1px solid rgba(255, 158, 97, 0.62);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, rgba(116, 30, 8, 0.96), rgba(39, 12, 5, 0.98));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 0 20px rgba(255, 91, 18, 0.12);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.memory-form button:hover,
.memory-download:hover {
    filter: brightness(1.12);
}

.memory-download {
    display: grid;
    place-items: center;
}

.memory-download[hidden] {
    display: none !important;
}

.memory-error {
    margin: -2px 0 0;
    color: rgba(255, 168, 150, 0.92);
    font-size: 0.82rem;
}

@keyframes memoryFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes memoryPanelIn {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
    .community-memory {
        right: 14px;
        bottom: calc(54px + 14px);
        max-width: calc(100vw - 28px);
    }

    .memory-toast {
        max-width: min(315px, calc(100vw - 28px));
    }

    .memory-panel {
        padding: 20px 18px 22px;
    }
}
