/*
 * SYNTHSTRIKE - synthwave interface.
 *
 * Chrome type, neon green and cyan over a blue-black night, and a bolt. The canvas
 * is high-DPI; nothing here is pixel art.
 */

.synthstrike-page {
    --ip-bg: #02070d;
    --ip-bg-soft: #04121c;
    --ip-ink: #e9fffb;
    --ip-muted: #8fb3c4;
    --ip-dim: #5f7d8c;
    --ip-cyan: #22f0ff;
    --ip-cyan-soft: #c9ffff;
    --ip-sky: #38bdf8;
    --ip-indigo: #2b7bff;
    --ip-blue: #2b7bff;
    --ip-blue-soft: #c9dcff;
    --ip-green: #39ff9e;
    --ip-green-soft: #c6ffe4;
    --ip-mint: #9dff4f;
    --ip-amber: #ffb020;
    --ip-line: rgba(143, 179, 196, 0.16);
    --ip-line-strong: rgba(143, 179, 196, 0.28);
    --ip-panel: rgba(4, 18, 28, 0.78);
    --ip-panel-deep: rgba(1, 6, 10, 0.94);
    --ip-font: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    color: var(--ip-ink);
    background:
        radial-gradient(900px 620px at 12% -10%, rgba(43, 123, 255, 0.24), transparent 62%),
        radial-gradient(840px 560px at 98% -4%, rgba(34, 240, 255, 0.14), transparent 60%),
        radial-gradient(780px 620px at 50% 112%, rgba(57, 255, 158, 0.10), transparent 62%),
        linear-gradient(180deg, #02070d 0%, #06202c 64%, #02070d 100%);
    font-family: var(--ip-font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.synthstrike-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 50% -20%, rgba(57, 255, 158, 0.08), transparent 58%);
    pointer-events: none;
}

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

.synthstrike-page .skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200;
    padding: 8px 12px;
    border-radius: 8px;
    background: #03131c;
    color: var(--ip-ink);
    font: 600 0.8rem/1.2 var(--ip-font);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-200%);
}

.synthstrike-page .skip-link:focus {
    transform: translateY(0);
}

.synthstrike-page *,
.synthstrike-page *::before,
.synthstrike-page *::after {
    box-sizing: border-box;
}

.synthstrike {
    width: min(1160px, 100% - 40px);
    margin: 0 auto;
    padding: 34px 0 72px;
}

/* Hero ------------------------------------------------------------------ */

.synthstrike__hero {
    text-align: center;
    margin-bottom: 28px;
}

.synthstrike__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 14px;
    border: 1px solid rgba(34, 240, 255, 0.20);
    border-radius: 999px;
    background: rgba(9, 18, 38, 0.62);
    color: var(--ip-cyan-soft);
    font: 600 0.68rem/1.2 var(--ip-font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 0 38px -12px rgba(34, 240, 255, 0.40);
}

.synthstrike__kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ip-cyan);
    box-shadow: 0 0 10px var(--ip-cyan);
}

.synthstrike__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    line-height: 1;
}

.synthstrike__brand {
    background: linear-gradient(102deg, #ffffff 4%, #c9ffff 24%, #22f0ff 44%, #39ff9e 68%, #2b7bff 86%, #ffb020 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font: 800 clamp(3.4rem, 10vw, 7.2rem)/0.88 var(--ip-font);
    letter-spacing: -0.065em;
}

.synthstrike__game {
    color: var(--ip-muted);
    font: 500 clamp(0.82rem, 1.6vw, 1rem)/1 var(--ip-font);
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.synthstrike__tag {
    max-width: 520px;
    margin: 0 auto;
    color: var(--ip-muted);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
}

/* Game shell ------------------------------------------------------------ */

.cabinet {
    position: relative;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--ip-line);
    border-radius: 28px;
    background: linear-gradient(150deg, rgba(6, 30, 40, 0.82), rgba(1, 6, 10, 0.94));
    box-shadow:
        0 44px 120px -52px rgba(57, 255, 158, 0.28),
        0 32px 90px -44px rgba(0, 0, 0, 0.94),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
}

.cabinet__bezel {
    padding: 0;
}

.cabinet__screen {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #02070d;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 22px 60px -40px rgba(34, 240, 255, 0.35);
}

#synthstrike-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    background: #02070d;
    outline: none;
}

#synthstrike-canvas:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(34, 240, 255, 0.65);
}

.cabinet__strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 4px;
    color: var(--ip-dim);
    font: 600 0.64rem/1.2 var(--ip-font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cabinet__led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ip-mint);
    box-shadow: 0 0 12px rgba(110, 231, 183, 0.85);
}

.cabinet__strip span:last-child {
    margin-left: auto;
    color: var(--ip-mint);
    letter-spacing: 0.12em;
}

.cabinet__hint {
    margin: 10px 0 2px;
    text-align: center;
    color: var(--ip-dim);
    font-size: 0.76rem;
}

/* Touch controls -------------------------------------------------------- */

.touch {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 6px 6px;
}

.touch__dpad,
.touch__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.touch__btn {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 50%;
    background: rgba(18, 28, 56, 0.74);
    color: var(--ip-ink);
    font: 600 0.76rem/1 var(--ip-font);
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px -14px rgba(0, 0, 0, 0.9);
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.touch__btn--jump {
    border-color: rgba(34, 240, 255, 0.30);
    color: var(--ip-cyan-soft);
}

.touch__btn--fire {
    border-color: rgba(57, 255, 158, 0.32);
    color: var(--ip-green-soft);
}

.touch__btn.is-held {
    transform: scale(0.94);
    background: linear-gradient(145deg, rgba(34, 240, 255, 0.26), rgba(43, 123, 255, 0.26));
    border-color: rgba(34, 240, 255, 0.55);
    box-shadow: 0 0 26px -6px rgba(34, 240, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Cards ----------------------------------------------------------------- */

.synthstrike__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.card {
    padding: 24px;
    border: 1px solid var(--ip-line);
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(17, 26, 52, 0.82), rgba(6, 10, 23, 0.90));
    box-shadow: 0 24px 60px -38px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 240, 255, 0.22);
    box-shadow: 0 30px 70px -38px rgba(34, 240, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.card__kicker {
    margin: 0 0 8px;
    color: var(--ip-cyan);
    font: 600 0.66rem/1.2 var(--ip-font);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.card__title {
    margin: 0 0 16px;
    color: var(--ip-ink);
    font: 650 1.12rem/1.3 var(--ip-font);
    letter-spacing: -0.015em;
}

.card__keys {
    display: grid;
    gap: 0;
    margin: 0;
}

.card__keys div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.card__keys dt {
    color: var(--ip-muted);
    font-size: 0.82rem;
}

.card__keys dd {
    margin: 0;
    color: var(--ip-ink);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: right;
}

.card__note {
    margin: 16px 0 0;
    color: var(--ip-dim);
    font-size: 0.8rem;
    line-height: 1.55;
}

.card__note strong {
    color: var(--ip-ink);
    font-weight: 600;
}

.power-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.power-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ip-ink);
    font-size: 0.83rem;
    line-height: 1.45;
}

.power-list li strong {
    color: var(--ip-ink);
    font-weight: 600;
}

.dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: 0.36em;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.dot--diamond { background: var(--ip-amber); color: var(--ip-amber); }
.dot--cross { background: var(--ip-mint); color: var(--ip-mint); }
.dot--stop { background: var(--ip-cyan); color: var(--ip-cyan); }
.dot--tnt { background: var(--ip-green); color: var(--ip-green); }
.dot--multi { background: var(--ip-blue); color: var(--ip-blue); }
.dot--shield { background: var(--ip-sky); color: var(--ip-sky); }
.dot--charge { background: #39ff9e; color: #39ff9e; }

.side-scores {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: willy;
}

.side-scores li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--ip-ink);
    font-size: 0.82rem;
}

.side-scores li b {
    color: var(--ip-cyan);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.side-empty {
    padding: 12px 0;
    color: var(--ip-dim);
    font-size: 0.82rem;
}

.verified {
    color: var(--ip-mint);
}

.synthstrike__foot {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--ip-line);
    color: var(--ip-dim);
    font-size: 0.78rem;
    line-height: 1.6;
}

.synthstrike__foot p {
    margin: 0 0 6px;
}

.synthstrike__foot a {
    color: var(--ip-cyan);
    text-decoration: none;
}

.synthstrike__foot a:hover {
    text-decoration: underline;
}

.synthstrike__foot strong {
    color: var(--ip-ink);
    font-weight: 600;
}

/* Overlay --------------------------------------------------------------- */

.ov {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.18), transparent 62%),
        rgba(3, 6, 16, 0.68);
    backdrop-filter: blur(18px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.ov.is-open {
    opacity: 1;
    visibility: visible;
}

.ov__loading {
    width: min(420px, 100%);
    padding: 28px;
    text-align: center;
    border: 1px solid var(--ip-line);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(6, 30, 40, 0.96), rgba(1, 6, 10, 0.99));
    box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ov-panel {
    width: min(540px, 100%);
    max-height: 100%;
    overflow: auto;
    padding: 26px 26px 24px;
    border: 1px solid var(--ip-line-strong);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(6, 30, 40, 0.97), rgba(1, 6, 10, 0.99));
    box-shadow:
        0 34px 100px -22px rgba(0, 0, 0, 0.88),
        0 0 70px -34px rgba(57, 255, 158, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.ov-panel--menu,
.ov-panel--pause {
    width: min(440px, 100%);
}

.ov-panel--over {
    width: min(500px, 100%);
}

.ov-eyebrow {
    margin: 0 0 8px;
    color: var(--ip-cyan);
    font: 600 0.66rem/1.2 var(--ip-font);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ov-title {
    margin: 0 0 10px;
    color: var(--ip-ink);
    font: 700 clamp(1.7rem, 3vw, 2.15rem)/1.1 var(--ip-font);
    letter-spacing: -0.035em;
}

.ov-title--small {
    font-size: clamp(1.45rem, 2.6vw, 1.75rem);
}

.ov-title span {
    color: var(--ip-green);
    text-shadow: 0 0 20px rgba(57, 255, 158, 0.55);
}

.ov-lead {
    margin: 0 0 18px;
    color: #8fb3c4;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ov-menu {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.ov-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--ip-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--ip-ink);
    font: 600 0.88rem/1.3 var(--ip-font);
    text-align: left;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.ov-btn:hover,
.ov-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 240, 255, 0.30);
    transform: translateY(-1px);
    outline: none;
}

.ov-btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #22f0ff 0%, #2b7bff 55%, #39ff9e 100%);
    color: #01050a;
    box-shadow: 0 10px 32px -10px rgba(57, 255, 158, 0.55);
}

.ov-btn--primary:hover,
.ov-btn--primary:focus-visible {
    background: linear-gradient(135deg, #c9ffff 0%, #c9dcff 55%, #c6ffe4 100%);
    box-shadow: 0 14px 38px -10px rgba(57, 255, 158, 0.68);
}

.ov-btn kbd {
    padding: 2px 7px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font: 600 0.62rem/1.4 var(--ip-font);
    opacity: 0.72;
}

.ov-btn--primary kbd {
    border-color: rgba(4, 16, 31, 0.16);
    background: rgba(4, 16, 31, 0.10);
    opacity: 0.82;
}

.ov-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--ip-line);
    color: var(--ip-muted);
    font-size: 0.78rem;
}

.ov-foot strong {
    color: var(--ip-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ov-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ip-mint);
    font-weight: 600;
}

.ov-status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.ov-status.is-off {
    color: var(--ip-amber);
}

.ov-hint {
    margin: 14px 0 0;
    color: var(--ip-dim);
    font-size: 0.76rem;
    line-height: 1.55;
}

.ov-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.ov-actions .ov-btn {
    width: auto;
    flex: 1;
    justify-content: center;
}

.ov-scoreline {
    margin: 0 0 14px;
    color: var(--ip-muted);
    font-size: 0.9rem;
}

.ov-scoreline strong {
    color: var(--ip-cyan);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ov-scores {
    width: 100%;
    margin: 14px 0;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.ov-scores th {
    padding: 8px;
    border-bottom: 1px solid rgba(34, 240, 255, 0.20);
    color: var(--ip-cyan);
    font: 600 0.63rem/1.2 var(--ip-font);
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

.ov-scores td {
    padding: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--ip-ink);
}

.ov-scores td:nth-child(3) {
    color: var(--ip-cyan);
    font-weight: 600;
}

.ov-scores td:nth-child(4) {
    color: var(--ip-muted);
}

.ov-empty {
    margin: 14px 0;
    padding: 20px;
    border: 1px dashed var(--ip-line-strong);
    border-radius: 12px;
    color: var(--ip-dim);
    font-size: 0.84rem;
    text-align: center;
}

.ov-ok {
    margin: 0 0 12px;
    color: var(--ip-mint);
    font-size: 0.84rem;
}

.ov-warn {
    margin: 10px 0;
    color: var(--ip-amber);
    font-size: 0.82rem;
    line-height: 1.5;
}

.ov-save {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.ov-save label {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ip-muted);
    font: 600 0.66rem/1.2 var(--ip-font);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.ov-save input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ip-line-strong);
    border-radius: 10px;
    background: rgba(3, 7, 17, 0.82);
    color: var(--ip-ink);
    font: 500 0.9rem/1.4 var(--ip-font);
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ov-save input:focus {
    border-color: rgba(34, 240, 255, 0.62);
    box-shadow: 0 0 0 3px rgba(34, 240, 255, 0.12);
}

.ov-save .ov-btn {
    width: auto;
    flex: 0 0 auto;
}

.ov-panel--copy h3 {
    margin: 20px 0 8px;
    color: var(--ip-cyan);
    font: 650 0.96rem/1.3 var(--ip-font);
    letter-spacing: -0.01em;
}

.ov-panel--copy p {
    margin: 0 0 10px;
    color: #8fb3c4;
    font-size: 0.85rem;
    line-height: 1.65;
}

.ov-panel--copy a {
    color: var(--ip-cyan);
}

.key-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.key-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--ip-line);
    color: var(--ip-ink);
}

.key-table td:first-child {
    width: 46%;
    color: var(--ip-cyan);
    font-weight: 600;
}

.item-list {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.item-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ip-ink);
    font-size: 0.83rem;
    line-height: 1.45;
}

.item-list li strong {
    font-weight: 600;
}

.item-list .item-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: 0.38em;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.item-dot--diamond { background: var(--ip-cyan); color: var(--ip-cyan); }
.item-dot--cross { background: var(--ip-mint); color: var(--ip-mint); }
.item-dot--stop { background: var(--ip-blue); color: var(--ip-blue); }
.item-dot--tnt { background: var(--ip-green); color: var(--ip-green); }
.item-dot--multi { background: var(--ip-amber); color: var(--ip-amber); }
.item-dot--shield { background: var(--ip-sky); color: var(--ip-sky); }

.synthstrike-page ::selection {
    background: rgba(34, 240, 255, 0.35);
    color: #ffffff;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 980px) {
    .synthstrike__cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (hover: none), (max-width: 760px) {
    .touch {
        display: flex;
    }
}

@media (max-width: 760px) {
    .synthstrike {
        width: calc(100% - 24px);
        padding: 20px 0 52px;
    }

    .synthstrike__hero {
        margin-bottom: 20px;
    }

    .synthstrike__kicker {
        margin-bottom: 12px;
        font-size: 0.62rem;
    }

    .synthstrike__brand {
        font-size: clamp(3rem, 17vw, 5rem);
    }

    .synthstrike__game {
        font-size: 0.74rem;
        letter-spacing: 0.26em;
    }

    .synthstrike__tag {
        font-size: 0.86rem;
    }

    .cabinet {
        padding: 7px;
        border-radius: 22px;
    }

    .cabinet__screen {
        border-radius: 16px;
    }

    .cabinet__strip {
        padding: 12px 5px 2px;
        font-size: 0.56rem;
        letter-spacing: 0.12em;
    }

    .cabinet__hint {
        padding: 0 6px;
        font-size: 0.7rem;
    }

    .touch {
        gap: 8px;
        padding: 14px 2px 4px;
    }

    .touch__dpad,
    .touch__actions {
        gap: 7px;
    }

    .touch__btn {
        width: 52px;
        height: 52px;
        font-size: 0.7rem;
    }

    .synthstrike__cards {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 20px;
    }

    .card {
        padding: 20px;
        border-radius: 18px;
    }

    .ov {
        padding: 10px;
    }

    .ov-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .ov-title {
        font-size: 1.55rem;
    }

    .ov-actions {
        flex-direction: column;
    }

    .ov-actions .ov-btn {
        width: 100%;
    }

    .ov-save {
        align-items: stretch;
    }

    .ov-save .ov-btn {
        width: 100%;
    }

    .ov-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 390px) {
    .touch__btn {
        width: 47px;
        height: 47px;
        font-size: 0.66rem;
    }

    .cabinet__strip span:last-child {
        letter-spacing: 0.08em;
    }

    .ov-panel {
        padding: 17px;
    }
}

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


@media (max-width: 760px) {
    .synthstrike {
        width: calc(100% - 12px);
    }

    .cabinet {
        padding: 5px;
        backdrop-filter: none;
    }

    .ov {
        position: fixed;
        inset: 0;
        z-index: 50;
        padding: 12px;
        background:
            radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.16), transparent 58%),
            rgba(3, 6, 16, 0.92);
    }

    .ov-panel,
    .ov__loading {
        width: 100%;
        max-height: calc(100dvh - 24px);
    }
}


@media (max-width: 900px) {
    .cabinet {
        backdrop-filter: none;
    }

    .ov {
        position: fixed;
        inset: 0;
        z-index: 50;
        background:
            radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.16), transparent 58%),
            rgba(3, 6, 16, 0.92);
    }

    .ov-panel,
    .ov__loading {
        max-height: calc(100dvh - 24px);
    }
}

