/* ===== 4iG Corporate Theme v4 ===== */
/*
   v1 háttér (sötét royal blue hullámok): admin oldalak
   v2 háttér (világos sky blue szalagok): welcome & share oldalak
   Narancs START gomb, fehér polaroid keretek,
   kék lebegő téglalapok v2-n (bal alul, mint a designon)
*/

@import url('/public/stylesheets/universum8_common.css?v=mobile-fix-4');

/* ─── VÁLTOZÓK ─── */
:root {
    --bg1: #0f3585;
    --bg2: #1e5cc8;

    --card: #ffffff;
    --ink: #e0f0ff;
    --muted: #80b8e0;
    --line: rgba(120, 190, 235, 0.30);

    --accent-light: #60c0f0;
    --accent-normal: #1a90d0;
    --accent-dark:   #0d68a8;

    --danger-light:  #f9a863;
    --danger-normal: #f58220;
    --danger-dark:   #c96b1b;

    --shadow: 0 12px 40px rgba(0, 0, 0, 0.40);
    --radius: 10px;
    --radius-sm: 10px;
    --radius-lg: 22px;

    --card-bg: rgba(5, 20, 60, 0.75);
    --text: #e0f0ff;
}

/* ─── ALAP HÁTTÉR – v1 (sötét royal blue, admin oldalak) ─── */
body {
    position: relative;
    overflow: auto;
    background-color: #0a1a40;
    background-image: url('https://u8-ai-avatar.s3.eu-central-1.amazonaws.com/4ig_v2_bacground.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.logo {
    width: 10vw;
}

/* ─── WELCOME & SHARE HÁTTÉR – v2 (világos sky blue) ─── */
body.welcome-page,
body.share-page {
    background-color: #4ab8ea;
    background-image: url('https://u8-ai-avatar.s3.eu-central-1.amazonaws.com/4ig_v2_bacground_new_2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.demo-page {
    background-color: #4ab8ea;
    background-image: url('https://u8-ai-avatar.s3.eu-central-1.amazonaws.com/4ig_v2_bacground.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.photo-frame-page {
    background: #ffffff;
    background-image: none;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Finom Y-tengelyes lebegés */
@keyframes shapeFloat {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-18px); }
}

/* ─── WELCOME & SHARE: transzparens konténer ─── */
body.welcome-page .container,
body.share-page .container,
body.photo-frame-page .container {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ─── ADMIN KONTÉNEREK (v1 sötét háttéren) ─── */
.container {
    background: rgba(5, 18, 50, 0.76);
    border: 1px solid rgba(100, 180, 235, 0.20);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text);
}

/* ─── START GOMB: NARANCS (mint a designon) ─── */
#main-button {
    padding: 14px 44px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.12) 0 1.5px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.10) 0 1.5px, transparent 3px),
        linear-gradient(180deg, #ffb12b 0%, #ff8a1f 28%, #f06a12 60%, #e85a10 100%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.18);
    outline: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

#main-button::before {
    content: "";
    position: absolute;
    inset: 2px 2px auto 2px;
    height: 55%;
    border-radius: 9px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.12) 35%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

#main-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.10) 35%,
        rgba(255, 255, 255, 0.00) 70%
    );
    opacity: 0.55;
    pointer-events: none;
}

#main-button:hover {
    filter: brightness(1.03) saturate(1.02);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.38),
        inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

#main-button:active {
    transform: translateY(1px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.22),
        inset 0 2px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

/* Shoot page: stack the restart button below the photo instead of beside it. */
body:has(.photo-container + #main-button) {
    flex-direction: column;
}

body:has(.photo-container + #main-button) .photo-container + #main-button {
    position: static;
    margin-top: 24px;
}

/* ─── TOPBAR ─── */
.topbar {
    background: linear-gradient(180deg,
        rgba(0, 8, 28, 0.96) 0%,
        rgba(5, 16, 48, 0.92) 100%
    );
    border-bottom: 1px solid rgba(100, 180, 235, 0.26);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link {
    color: #b0d8f8;
    border-color: rgba(100, 180, 235, 0.24);
}

.nav-link:hover {
    background: rgba(26, 144, 208, 0.18);
    border-color: rgba(100, 180, 235, 0.44);
}

.nav-link.active {
    box-shadow: 0 6px 18px rgba(0, 100, 185, 0.55), 0 0 20px rgba(26, 144, 208, 0.22);
}

.nav-link.danger,
.nav-link.danger:hover,
.nav-link.danger:focus-visible {
    color: #1b2b3f;
}

/* ─── CONFIG CARD ─── */
.config-card {
    background: rgba(5, 18, 52, 0.80);
    border-color: rgba(100, 180, 235, 0.20);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text);
}

.form-row label {
    color: #80b8e0;
}

/* ─── WELCOME PAGE: LOGO ─── */
body.welcome-page .logo {
    width: clamp(105px, 8.5vw, 160px);
    top: clamp(14px, 2.2vh, 28px);
    left: clamp(28px, 3.6vw, 56px);
    z-index: 10001;
}

body.demo-page .logo {
    width: clamp(80px, 6vw, 120px);
    top: clamp(10px, 1vh, 20px);
    left: clamp(10px, 1vw, 20px);
    z-index: 10001;
}

/* ─── WELCOME PAGE: HERO LAYOUT ─── */
body.welcome-page::before,
body.welcome-page::after {
    content: none;
}

/* ───────────────────────────────────────── */
/* WELCOME PAGE – PERSPEKTIVIKUS HERO LAYOUT */
/* ───────────────────────────────────────── */

body.welcome-page .container {
    width: min(1080px, 92vw);
    height: min(740px, 80vh);
    min-height: 620px;
    margin: 0;
    padding: 0;
    display: block;
    overflow: visible;

    perspective: 1200px;
    transform-style: preserve-3d;

    transform-origin: 54% 52%;
    /* transform: perspective(1400px) rotateY(7.5deg) rotateX(5deg) rotateZ(-5deg); */
    /* transform: perspective(1400px) rotateY(2.5deg) rotateX(2deg) rotateZ(-2deg); */
    transform: none;

    z-index: 2;
}







body.welcome-page .container::before {
    position: fixed;
    top: clamp(128px, 19vh, 210px);
    left: clamp(70px, 9.6vw, 150px);
    width: clamp(280px, 27vw, 420px);
    white-space: pre-line;
    color: #e7f7ff;
    font-size: clamp(20px, 2.1vw, 38px);
    line-height: 1.38;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: left;
    text-shadow: 0 2px 12px rgba(2, 42, 88, 0.18);
    border: 0;
    box-shadow: none;
    background: none;
    animation: none;
    z-index: 6;
}

body.welcome-page .container::after {
    content: none;
}


/* ─── POLAROID THUMBNAIL KÁRTYÁK ─── */
/* Mindkét háttéren fehér/üveg kártya, sötét szöveg */
.polaroid-inner {
    background: rgba(248, 250, 254, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.polaroid-caption {
    color: #0a2d4a;
}

/* v2 welcome/share: enyhe frosted glass hatás */
body.welcome-page .polaroid-inner,
body.share-page .polaroid-inner {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 6px 20px rgba(0, 60, 140, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}



body.welcome-page #main-button {
    position: fixed;
    top: auto !important;
    left: 50%;
    bottom: clamp(26px, 6vh, 74px);
    min-width: clamp(150px, 9.2vw, 200px);
    min-height: clamp(54px, 6vh, 74px);
    border-radius: 12px;
    font-size: clamp(28px, 1.9vw, 39px);
    letter-spacing: 0.05em;
    box-shadow: 0 10px 20px rgba(187, 107, 25, 0.45);
    transform: translateX(-50%) !important;
    z-index: 10002;
}

body.welcome-page #main-button:active {
    transform: translateX(-50%) translateY(1px) !important;
}

/* ─── POLAROID KIJELÖLVE ─── */
.polaroid-inner.selected {
    box-shadow:
        0 0 0 2px rgba(26, 144, 208, 0.90),
        0 10px 28px rgba(26, 144, 208, 0.30);
}

body #manipulation-container .button-group-left,
body #manipulation-container .button-group-right {
    gap: 22px;
    height: auto;
}

body #manipulation-container {
    --manip-thumb-padding: 7px;
    --manip-thumb-caption-height: 16px;
    --manip-photo-frame: 14px;
    --manip-caption-height: 54px;
    --manip-photo-size: clamp(268px, 34vw, 384px);
}

body #manipulation-container .polaroid-inner {
    width: clamp(116px, 10vw, 148px);
    min-height: 0;
    padding: var(--manip-thumb-padding) var(--manip-thumb-padding) 0;
    overflow: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    box-shadow:
        0 12px 26px rgba(0, 46, 110, 0.24),
        0 4px 10px rgba(0, 0, 0, 0.10);
}

body #manipulation-container .polaroid-inner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 7px;
}

body #manipulation-container .polaroid-caption {
    height: calc(var(--manip-thumb-caption-height) + var(--manip-thumb-padding));
    flex: 0 0 calc(var(--manip-thumb-caption-height) + var(--manip-thumb-padding));
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a4f81;
    font-size: clamp(9px, 0.75vh, 12px);
    padding: 0 6px;
}

body #manipulation-container .polaroid-inner:hover,
body #manipulation-container .polaroid-inner.selected {
    transform: none;
}

body #manipulation-container .polaroid-inner.selected {
    box-shadow:
        0 18px 34px rgba(217, 114, 28, 0.42),
        0 8px 18px rgba(245, 130, 32, 0.30),
        0 0 0 1px rgba(255, 255, 255, 0.72);
}

body #manipulation-container #photo-wrapper {
    width: calc(var(--manip-photo-size) + (var(--manip-photo-frame) * 2));
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    flex: 0 0 auto;
    overflow: visible;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    box-shadow:
        0 18px 34px rgba(0, 46, 110, 0.18),
        0 6px 16px rgba(0, 0, 0, 0.08);
}

body #manipulation-container #photo-stage {
    width: var(--manip-photo-size);
}

body #manipulation-container #photo {
    display: block;
    width: var(--manip-photo-size);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

body #manipulation-container #qr-code-overlay {
    top: 0;
    left: 0;
    width: var(--manip-photo-size);
    height: var(--manip-photo-size);
    right: auto;
    bottom: auto;
    object-fit: cover;
    border-radius: 8px;
}

body #manipulation-container .characterAndBackgroundName {
    width: 100%;
    height: var(--manip-photo-caption-space);
    color: #1a4f81;
    font-size: clamp(17px, 1.9vh, 26px);
    line-height: 1;
    padding: 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body #manipulation-container .polaroid-inner .loading-overlay {
    top: var(--manip-thumb-padding);
    left: var(--manip-thumb-padding);
    right: var(--manip-thumb-padding);
    bottom: calc(var(--manip-thumb-caption-height) + var(--manip-thumb-padding));
    border-radius: 7px;
}

body #manipulation-container .polaroid-inner .radialProgress {
    width: 54px;
    height: 54px;
}

body #manipulation-container #photo-stage > .loading-overlay {
    top: 0;
    left: 0;
    width: var(--manip-photo-size);
    height: var(--manip-photo-size);
    right: auto;
    bottom: auto;
    border-radius: 8px;
}

body #manipulation-container #photo-stage > .loading-overlay .radialProgress {
    width: 72px;
    height: 72px;
}

/* ─── MOZGÁSÉRZÉKENYSÉG ─── */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    body.welcome-page .container::before,
    body.welcome-page .container::after {
        animation: none;
    }
}

/* ==========================================================================
   WELCOME IMAGE BLOCKS (MOVED TO END)
   Középső nagy kép + oldalsó kis képek formázása
   ========================================================================== */
body.welcome-page .button-group-left,
body.welcome-page .button-group-right {
    top: 51%;
    height: auto;
    gap: clamp(16px, 2.5vh, 28px);
    justify-content: center;
    z-index: 4;
}

body.welcome-page .button-group-left {
    left: calc(50% - clamp(235px, 22vw, 320px) - clamp(190px, 13vw, 270px));
    transform: translateY(-50%);
}

body.welcome-page .button-group-right {
    right: calc(50% - clamp(235px, 22vw, 320px) - clamp(190px, 13vw, 270px));
    transform: translateY(-50%);
}

body.welcome-page .photo-container {
    --welcome-photo-frame: 14px;
    --welcome-photo-caption-height: 48px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 12px;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.20);
    width: clamp(470px, 44vw, 640px);
    height: clamp(530px, 62vh, 760px);
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

body.welcome-page .photo-container .photo {
    border-radius: 8px;
    background: transparent;
}

body.welcome-page .main-caption {
    color: #16497a;
    font-size: clamp(18px, 2.2vh, 33px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

body.welcome-page .polaroid-inner {
    --polaroid-padding: clamp(8px, 0.8vw, 12px);
    --polaroid-caption-height: clamp(38px, 3.8vh, 54px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    width: clamp(176px, 13.2vw, 230px);
    transform: none;
    transition: box-shadow 0.4s ease;
}

body.welcome-page .button-group-left .polaroid-inner,
body.welcome-page .button-group-right .polaroid-inner {
    box-shadow:
        0 30px 60px rgba(0, 44, 108, 0.32),
        0 10px 25px rgba(0, 32, 86, 0.24);
}

body.welcome-page .polaroid-inner:hover,
body.welcome-page .polaroid-inner.selected {
    box-shadow:
        0 30px 60px rgba(0, 44, 108, 0.32),
        0 10px 25px rgba(0, 32, 86, 0.24);
}

body.welcome-page .polaroid-inner img {
    border-radius: 7px;
}

body.welcome-page .polaroid-caption {
    color: #1a4f81;
    font-size: clamp(14px, 1.08vh, 18px);
}

@media (min-width: 1024px) {
    body.welcome-page .button-group-left,
    body.welcome-page .button-group-right {
        top: 40%;
    }

    body.welcome-page .photo-container {
        top: 40%;
    }
}

@media (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {
    body.welcome-page .button-group-left,
    body.welcome-page .button-group-right {
        top: 46%;
        gap: 24px;
    }

    body.welcome-page .button-group-left {
        left: calc(50% - clamp(190px, 19vw, 250px) - clamp(148px, 12vw, 188px) - 28px);
    }

    body.welcome-page .button-group-right {
        right: calc(50% - clamp(190px, 19vw, 250px) - clamp(148px, 12vw, 188px) - 28px);
    }

    body.welcome-page .photo-container {
        --welcome-photo-frame: 12px;
        --welcome-photo-caption-height: 42px;
        top: 49%;
        width: clamp(360px, 40vw, 500px);
        height: clamp(420px, 54vh, 590px);
    }

    body.welcome-page .polaroid-inner {
        --polaroid-caption-height: clamp(32px, 3.5vh, 44px);
        width: clamp(148px, 12vw, 188px);
        --polaroid-padding: clamp(6px, 0.7vw, 9px);
    }

    body.welcome-page .polaroid-caption {
        font-size: clamp(11px, 1.2vh, 15px);
    }
}

@media (min-width: 900px) and (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
    body.welcome-page .container {
        width: min(980px, 94vw) !important;
        height: min(640px, 72vh) !important;
        min-height: 0 !important;
        /* transform: perspective(1400px) rotateY(5deg) rotateX(0deg) rotateZ(-3deg) !important; */
        /* transform: perspective(1400px) rotateY(2deg) rotateX(0deg) rotateZ(-1deg) !important; */
        transform: none !important;
    }

    body.welcome-page .button-group-left,
    body.welcome-page .button-group-right {
        top: 43% !important;
        gap: 24px !important;
    }

    body.welcome-page .button-group-left {
        left: calc(50% - clamp(205px, 20vw, 230px) - clamp(138px, 13vw, 164px) - 28px) !important;
    }

    body.welcome-page .button-group-right {
        right: calc(50% - clamp(205px, 20vw, 230px) - clamp(138px, 13vw, 164px) - 28px) !important;
    }

    body.welcome-page .photo-container {
        top: 46% !important;
        width: clamp(410px, 44vw, 500px) !important;
        height: clamp(470px, 58vh, 560px) !important;
    }

    body.welcome-page .polaroid-inner {
        width: clamp(138px, 13vw, 164px) !important;
    }

    body.welcome-page .logo {
        top: calc(env(safe-area-inset-top) + 12px) !important;
        left: 18px !important;
        width: clamp(92px, 8.5vw, 122px) !important;
        z-index: 10020 !important;
    }

    body.demo-page .logo {
        top: calc(env(safe-area-inset-top) + 10px) !important;
        left: 16px !important;
        width: clamp(78px, 7vw, 102px) !important;
        z-index: 10020 !important;
    }

    body.welcome-page #main-button {
        bottom: calc(env(safe-area-inset-bottom) + 10px) !important;
        min-height: 50px !important;
        font-size: clamp(22px, 2.2vw, 30px) !important;
        z-index: 10030 !important;
    }
}

@media (max-width: 820px) and (orientation: portrait) {
    body.welcome-page #main-button,
    body.welcome-page #main-button:active {
        position: static !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    body #manipulation-container .button-group-left,
    body #manipulation-container .button-group-right {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        height: auto !important;
        gap: 8px !important;
    }

    body #manipulation-container #photo-wrapper,
    body #manipulation-container .polaroid-inner,
    body #manipulation-container .button-group-top,
    body #prompt {
        position: static !important;
    }
}

/* ==========================================================================
   4iG ADMIN MODAL CONTRAST BOOST (Characters / Backgrounds)
   ========================================================================== */
body .modal .modal-card {
    background: #f9fcff !important;
    border-color: #9ebfe0 !important;
    color: #10263e !important;
}

body .modal .modal-head {
    background: #f3f8fe !important;
    border-bottom-color: #b1cbe4 !important;
}

body .modal .modal-title,
body .modal .char-title,
body .modal .pair-meta,
body .modal .polaroid-caption,
body .modal .status,
body .modal .legend,
body .modal .modal-filters > label,
body .modal .modal-body {
    color: #123152 !important;
}

body .modal .char-sub,
body .modal .pill,
body .modal .char-tag,
body .modal .pair-top .ph {
    color: #274b73 !important;
}

body .modal .char-tag,
body .modal .pill {
    background: #edf4fb !important;
    border-color: #abc6df !important;
    opacity: 1 !important;
}

body .modal .modal-filters {
    background: #eef5fc !important;
    border-color: #b6cde4 !important;
}

body .modal .modal-filters select,
body .modal .modal-filters input[type="text"],
body .modal .msel-btn,
body .modal .msel-panel,
body .modal .msel-search {
    background: #ffffff !important;
    border-color: #9ebfe0 !important;
    color: #123152 !important;
}

body .modal .modal-filters input::placeholder,
body .modal .msel-search::placeholder {
    color: #4f6d8a !important;
    opacity: 1 !important;
}

body .modal .msel-row span,
body .modal .msel-row {
    color: #123152 !important;
}

body .modal .msel-row:hover {
    background: #e8f1fa !important;
}

@media (max-width: 820px) and (orientation: portrait) {
    body.image-manipulation-page #manipulation-container {
        width: min(100%, 390px) !important;
        height: auto !important;
        aspect-ratio: auto !important;
        margin: 96px auto 0 !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-template-areas:
            "top top top top"
            "photo photo photo photo"
            "left left right right" !important;
        row-gap: 12px !important;
        column-gap: 8px !important;
        align-items: start !important;
        justify-items: center !important;
        position: relative !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    body.image-manipulation-page #manipulation-container .button-group-top {
        grid-area: top !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.image-manipulation-page #manipulation-container #photo-wrapper {
        grid-area: photo !important;
        position: static !important;
        margin: 0 auto !important;
        z-index: 1 !important;
    }

    body.image-manipulation-page #manipulation-container .button-group-left {
        grid-area: left !important;
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        gap: 8px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    body.image-manipulation-page #manipulation-container .button-group-right {
        grid-area: right !important;
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        gap: 8px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    body.image-manipulation-page #manipulation-container .polaroid-inner {
        position: static !important;
        width: min(22vw, 88px) !important;
        max-width: min(22vw, 88px) !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    body.image-manipulation-page #prompt {
        position: static !important;
        display: block !important;
        width: min(100%, 390px) !important;
        margin: 12px auto 0 !important;
        clear: both !important;
    }
}
