.insert-panic-page {
    background: #0a0810;
    color: #f4efe0;
}

.insert-panic-page .site-header {
    color: var(--text-dark);
}

.insert-panic-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.2rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem);
    text-align: center;
    background:
        radial-gradient(circle at 18% 14%, rgba(63, 212, 194, 0.16), transparent 27rem),
        radial-gradient(circle at 84% 76%, rgba(255, 179, 71, 0.17), transparent 25rem),
        linear-gradient(180deg, #171329, #0a0810);
}

.insert-panic-hero::before,
.insert-panic-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.insert-panic-hero::before {
    inset: 0;
    opacity: 0.2;
    background: repeating-linear-gradient(0deg, transparent 0 5px, #000 6px 7px);
}

.insert-panic-hero::after {
    width: 28rem;
    height: 28rem;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 179, 71, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(63, 212, 194, 0.025), 0 0 0 10rem rgba(255, 179, 71, 0.018);
    transform: translate(-50%, -50%);
}

.insert-panic-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.insert-panic-kicker {
    margin-bottom: 0.8rem;
    color: #3fd4c2;
    font: 800 0.78rem/1.2 "Space Grotesk", sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.insert-panic-hero h1 {
    margin-bottom: 1rem;
    color: #3fd4c2;
    font: 900 clamp(3rem, 9vw, 7rem)/0.88 "Courier New", monospace;
    letter-spacing: -0.08em;
    text-shadow: 4px 4px 0 #05030a, 0 0 35px rgba(63, 212, 194, 0.2);
}

.insert-panic-hero h1 span {
    color: #ffb347;
}

.insert-panic-hero > .container > p:last-child {
    max-width: 720px;
    margin: 0 auto;
    color: #beb5c9;
    font-size: clamp(1rem, 2.2vw, 1.23rem);
}

.insert-panic-game-section {
    padding: 0 0 clamp(3.5rem, 7vw, 6rem);
}

.insert-panic-game-container {
    max-width: 1240px;
}

.insert-panic-game-shell {
    overflow: hidden;
    border: 1px solid #4b405b;
    border-radius: 18px;
    background: #060409;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 179, 71, 0.035);
}

.insert-panic-toolbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 3.7rem 0.55rem 1rem;
    border-bottom: 1px solid #3a3048;
    background: #241d2e;
    font-family: "Space Grotesk", sans-serif;
}

.insert-panic-toolbar p {
    margin: 0;
    color: #b5a8c5;
    font-size: 0.84rem;
}

.insert-panic-toolbar button {
    flex: 0 0 auto;
    padding: 0.58rem 0.9rem;
    border: 1px solid #6c587f;
    border-radius: 8px;
    background: #30263c;
    color: #f4efe0;
    cursor: pointer;
    font: 700 0.78rem/1 "Space Grotesk", sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.insert-panic-toolbar button:hover {
    border-color: #ffb347;
    background: #41324f;
    transform: translateY(-1px);
}

.insert-panic-toolbar button:focus-visible {
    outline: 3px solid rgba(63, 212, 194, 0.48);
    outline-offset: 2px;
}

.insert-panic-viewport {
    width: 100%;
    height: clamp(500px, 65vw, 760px);
    background: #0a0810;
}

.insert-panic-viewport iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0a0810;
    touch-action: none;
}

.insert-panic-focus-note {
    margin: 0.9rem 0 0;
    color: #8d7aa6;
    text-align: center;
    font-size: 0.88rem;
}

.insert-panic-game-container:fullscreen,
.insert-panic-game-container:-webkit-full-screen {
    width: 100vw;
    max-width: none;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #0a0810;
}

.insert-panic-game-container:fullscreen .insert-panic-game-shell,
.insert-panic-game-container:-webkit-full-screen .insert-panic-game-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
}

.insert-panic-game-container:fullscreen .insert-panic-viewport,
.insert-panic-game-container:-webkit-full-screen .insert-panic-viewport {
    flex: 1;
    min-height: 0;
    height: auto;
}

.insert-panic-game-container:fullscreen .insert-panic-focus-note,
.insert-panic-game-container:-webkit-full-screen .insert-panic-focus-note {
    display: none;
}

.insert-panic-guide-section {
    padding: clamp(3.8rem, 8vw, 7rem) 0;
    color: #30283a;
    background: #f2edf4;
}

.insert-panic-guide-heading {
    max-width: 720px;
    margin-bottom: 2.2rem;
}

.insert-panic-guide-heading h2 {
    margin-bottom: 0.7rem;
    color: #211a29;
    font: 800 clamp(2rem, 4.5vw, 3.25rem)/1.05 "Space Grotesk", sans-serif;
    letter-spacing: -0.035em;
}

.insert-panic-guide-heading > p:last-child {
    color: #695e73;
    font-size: 1.05rem;
}

.insert-panic-guide-grid,
.insert-panic-details-grid {
    display: grid;
    gap: 1.25rem;
}

.insert-panic-guide-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.25rem;
}

.insert-panic-guide-grid article,
.insert-panic-detail-card {
    border: 1px solid #ded3e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(37, 25, 47, 0.08);
}

.insert-panic-guide-grid article,
.insert-panic-detail-card {
    padding: 1.55rem;
}

.insert-panic-guide-number {
    display: inline-grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 9px;
    background: #241d2e;
    color: #ffb347;
    font: 800 0.77rem/1 "Space Grotesk", sans-serif;
}

.insert-panic-guide-grid h3,
.insert-panic-detail-card h3 {
    margin-bottom: 0.55rem;
    color: #2c2335;
    font: 800 1.18rem/1.2 "Space Grotesk", sans-serif;
}

.insert-panic-guide-grid p {
    margin: 0;
    color: #706478;
    font-size: 0.94rem;
}

.insert-panic-details-grid {
    grid-template-columns: 0.95fr 1.05fr;
}

.insert-panic-controls {
    margin: 0;
}

.insert-panic-controls div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eee7f1;
}

.insert-panic-controls div:last-child {
    border-bottom: 0;
}

.insert-panic-controls dt {
    color: #756a7c;
    font-weight: 600;
}

.insert-panic-controls dd {
    margin: 0;
    color: #352a3e;
    font-weight: 700;
}

.insert-panic-page kbd {
    display: inline-block;
    min-width: 1.7em;
    padding: 0.13rem 0.38rem;
    border: 1px solid #d2c6d8;
    border-bottom-width: 3px;
    border-radius: 5px;
    background: #faf7fb;
    color: #3b3044;
    font: 700 0.78em/1.3 "Space Grotesk", sans-serif;
    text-align: center;
}

.insert-panic-tip-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #695e72;
}

.insert-panic-tip-card li + li {
    margin-top: 0.65rem;
}

@media (max-width: 780px) {
    .insert-panic-guide-grid,
    .insert-panic-details-grid {
        grid-template-columns: 1fr;
    }

    .insert-panic-viewport {
        height: max(430px, 70svh);
    }
}

@media (max-width: 520px) {
    .insert-panic-hero {
        padding-top: 2.8rem;
    }

    .insert-panic-game-container {
        padding: 0 10px;
    }

    .insert-panic-game-shell {
        border-radius: 10px;
    }

    .insert-panic-toolbar {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 3.7rem;
    }

    .insert-panic-toolbar button {
        min-height: 42px;
    }

    .insert-panic-controls div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}
