
/* =========================================================
   LEXPICK
   Complete visual replacement for KinoSwipe
   ========================================================= */

:root {
    --lp-bg: #080b12;
    --lp-bg-2: #0d111c;
    --lp-panel: rgba(19, 24, 38, .88);
    --lp-panel-solid: #121725;
    --lp-panel-2: #181e2d;

    --lp-text: #f7f8fc;
    --lp-muted: #969fb4;
    --lp-soft: #697288;

    --lp-blue: #5ec8ff;
    --lp-blue-deep: #2796ff;
    --lp-pink: #ff72bc;
    --lp-pink-deep: #ff4c9c;
    --lp-purple: #a986ff;

    --lp-border: rgba(255,255,255,.09);
    --lp-border-strong: rgba(255,255,255,.15);

    --lp-danger: #ff607c;

    --lp-gradient:
        linear-gradient(
            120deg,
            var(--lp-blue) 0%,
            var(--lp-purple) 48%,
            var(--lp-pink) 100%
        );
}


/* RESET OLD VISUALS */

html,
body {
    margin: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    background:
        radial-gradient(circle at 15% 5%, rgba(94,200,255,.11), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(255,114,188,.10), transparent 27%),
        radial-gradient(circle at 50% 100%, rgba(169,134,255,.08), transparent 35%),
        var(--lp-bg) !important;

    background-image:
        radial-gradient(circle at 15% 5%, rgba(94,200,255,.11), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(255,114,188,.10), transparent 27%),
        radial-gradient(circle at 50% 100%, rgba(169,134,255,.08), transparent 35%) !important;

    color: var(--lp-text) !important;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif !important;
}

body::before,
body::after {
    display: none !important;
}

* {
    box-sizing: border-box;
}

button,
input {
    font: inherit;
}

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

.hidden {
    display: none !important;
}


/* =========================================================
   BRAND
   ========================================================= */

.lp-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    background: var(--lp-gradient);

    box-shadow:
        0 14px 35px rgba(39,150,255,.16),
        0 10px 28px rgba(255,76,156,.13);
}

.lp-mark::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.24),
            rgba(255,255,255,0) 42%
        );
}

.lp-mark span {
    position: relative;
    z-index: 2;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -4px;
}

.lp-mark span:first-child {
    color: white;
    margin-right: 2px;
}

.lp-mark span:last-child {
    color: rgba(255,255,255,.92);
}

.lp-mark-small {
    width: 43px;
    height: 43px;
    border-radius: 14px;
}

.lp-mark-small::after {
    border-radius: 12px;
}

.lp-mark-small span {
    font-size: 14px;
}

.lp-mark-tiny {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.lp-mark-tiny::after {
    border-radius: 9px;
}

.lp-mark-tiny span {
    font-size: 11px;
}

.lp-wordmark {
    font-size: 34px;
    font-weight: 760;
    letter-spacing: -1.6px;
}

.lp-tagline,
.lp-brand-subtitle {
    color: var(--lp-muted);
}

.lp-tagline {
    font-size: 14px;
    margin-top: 3px;
}

.lp-brand-large {
    display: flex;
    gap: 18px;
    align-items: center;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.lp-primary-btn,
.lp-secondary-btn,
.lp-danger-btn {
    border: 0;
    min-height: 50px;

    border-radius: 14px;

    padding: 0 20px;

    font-weight: 700;
    cursor: pointer;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        opacity .16s ease;
}

.lp-primary-btn {
    color: #070910;
    background: var(--lp-gradient);
}

.lp-primary-btn:hover {
    transform: translateY(-1px);
}

.lp-secondary-btn {
    color: var(--lp-text);
    background: rgba(255,255,255,.055);
    border: 1px solid var(--lp-border);
}

.lp-secondary-btn:hover {
    background: rgba(255,255,255,.085);
    border-color: var(--lp-border-strong);
}

.lp-danger-btn {
    color: #ffdce4;
    background: rgba(255,96,124,.12);
    border: 1px solid rgba(255,96,124,.28);
}

.lp-text-btn {
    display: block;
    margin: 24px auto 0;

    border: 0;
    background: transparent;
    color: var(--lp-muted);

    cursor: pointer;
}


/* =========================================================
   LOGIN
   ========================================================= */

.lp-auth-screen {
    width: 100%;
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 28px;
}

.lp-auth-screen:not(.hidden) {
    display: grid !important;
}

.lp-auth-card {
    width: min(440px, 100%);

    padding: 34px;

    border: 1px solid var(--lp-border);
    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        ),
        rgba(12,16,26,.86);

    backdrop-filter: blur(24px);

    box-shadow:
        0 35px 90px rgba(0,0,0,.38);
}

.lp-auth-copy {
    color: var(--lp-muted);
    font-size: 15px;
    line-height: 1.55;

    margin: 30px 0 22px;
}

.lp-auth-card .lp-primary-btn {
    width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.lp-header {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 1180px;
    margin: auto;

    padding: 14px 28px;
}

.lp-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-header .main-title {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--lp-text) !important;

    font-family: inherit !important;
    font-size: 21px !important;
    font-weight: 750 !important;
    letter-spacing: -.6px !important;

    text-shadow: none !important;
    animation: none !important;
}

.lp-brand-subtitle {
    font-size: 11px;
    margin-top: 1px;
}

.lp-avatar-btn {
    width: 40px;
    height: 40px;

    border: 1px solid var(--lp-border);
    border-radius: 50%;

    background: var(--lp-panel-2);
    color: var(--lp-text);

    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.lp-nav {
    max-width: 760px;
    margin: 8px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 5px;

    border: 1px solid var(--lp-border);
    border-radius: 18px;

    background: rgba(255,255,255,.025);
}

.lp-nav-item {
    min-height: 42px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    gap: 7px;

    border: 0;
    border-radius: 13px;

    color: var(--lp-muted);
    background: transparent;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;
}

.lp-nav-item.active {
    color: var(--lp-text);
    background: rgba(255,255,255,.075);
}

.lp-nav-item.lp-coming {
    opacity: .35;
    cursor: default;
}

.lp-nav-icon {
    font-size: 12px;
}


/* =========================================================
   HOME
   ========================================================= */

.lp-home {
    max-width: 920px !important;
    margin: auto !important;

    padding: 72px 28px 80px !important;

    position: static !important;
    transform: none !important;
}

.lp-hero {
    text-align: center;
    max-width: 690px;
    margin: auto;
}

.lp-kicker,
.lp-card-label,
.lp-modal-eyebrow {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: .15em;

    color: var(--lp-purple);
}

.lp-hero h2 {
    margin: 12px 0 12px;

    color: var(--lp-text);

    font-size: clamp(38px, 6vw, 66px);
    line-height: .99;

    letter-spacing: -3px;
}

.lp-hero h2 span {
    display: block;

    background: var(--lp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-hero p {
    max-width: 520px;
    margin: 20px auto 0;

    color: var(--lp-muted);

    font-size: 16px;
    line-height: 1.55;
}

.lp-mode-grid {
    margin-top: 52px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.lp-mode-card {
    min-height: 285px;

    padding: 26px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--lp-border);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.015)
        );

    box-shadow:
        0 20px 50px rgba(0,0,0,.17);
}

.lp-mode-primary {
    border-color: rgba(169,134,255,.23);
}

.lp-mode-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: rgba(255,255,255,.06);

    color: var(--lp-text);

    font-size: 23px;
}

.lp-mode-content {
    margin: 28px 0 auto;
}

.lp-mode-card h3 {
    margin: 6px 0 8px;

    font-size: 23px;
    letter-spacing: -.7px;
}

.lp-mode-card p {
    margin: 0;

    color: var(--lp-muted);
    line-height: 1.5;
    font-size: 14px;
}

.lp-mode-card .lp-primary-btn,
.lp-mode-card .lp-secondary-btn {
    margin-top: 24px;
}

.lp-join-row {
    margin-top: 24px;

    display: grid;
    grid-template-columns: 1fr auto;

    gap: 8px;
}

#join-code {
    width: 100% !important;

    padding: 0 14px !important;

    height: 50px;

    border: 1px solid var(--lp-border) !important;
    border-radius: 14px !important;

    outline: none;

    background: rgba(0,0,0,.18) !important;
    color: var(--lp-text) !important;

    text-align: center !important;
    letter-spacing: .24em;

    font-size: 17px !important;
}

#join-code:focus {
    border-color: rgba(94,200,255,.45) !important;
}


/* =========================================================
   SESSION CARD
   ========================================================= */

.lp-session-card {
    margin-top: 18px;

    padding: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    border: 1px solid var(--lp-border);
    border-radius: 22px;

    background: rgba(255,255,255,.035);
}

.lp-session-card:not(.hidden) {
    display: flex !important;
}

.lp-session-code {
    margin-top: 7px;

    font-size: 38px;
    font-weight: 800;
    letter-spacing: .14em;
}

.lp-session-help {
    color: var(--lp-muted);
    font-size: 12px;
}

.lp-toggle-row {
    display: flex;
    align-items: center;

    gap: 14px;

    color: var(--lp-text);

    cursor: pointer;
}

.lp-toggle-row > div:first-child {
    display: flex;
    flex-direction: column;
}

.lp-toggle-row strong {
    font-size: 13px;
}

.lp-toggle-row span {
    margin-top: 3px;

    color: var(--lp-muted);
    font-size: 11px;
}

.lp-toggle-row input {
    display: none;
}

.lp-toggle-track {
    flex: 0 0 auto;

    width: 44px !important;
    height: 24px !important;

    position: relative !important;

    border-radius: 999px !important;

    background: #2a3040 !important;
}

.lp-toggle-thumb {
    width: 18px !important;
    height: 18px !important;

    position: absolute !important;

    top: 3px !important;
    left: 3px !important;

    border-radius: 50% !important;

    background: #8b93a5 !important;

    transition:
        transform .2s ease,
        background .2s ease;
}

.lp-home-toggle {
    width: fit-content;
    margin: 24px auto 0;
}


/* =========================================================
   GAME
   ========================================================= */

.lp-game {
    min-height: 100vh !important;

    padding:
        max(14px, env(safe-area-inset-top))
        18px
        max(20px, env(safe-area-inset-bottom)) !important;

    background: transparent !important;
}

.lp-game:not(.hidden) {
    display: block !important;
}

.lp-game-header {
    max-width: 760px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-game-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 750;
    letter-spacing: -.4px;
}

.lp-game-actions {
    display: flex;
    gap: 8px;
}

.lp-icon-btn {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--lp-border);
    border-radius: 13px;

    background: rgba(255,255,255,.04);
    color: var(--lp-text);

    font-size: 19px;

    cursor: pointer;
}

.lp-filter-row {
    max-width: 760px;

    margin: 15px auto 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-filter {
    min-height: 37px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 13px;

    border: 1px solid var(--lp-border);
    border-radius: 12px;

    background: rgba(255,255,255,.035);
    color: var(--lp-text);

    font-size: 12px;
    font-weight: 650;

    cursor: pointer;
}

.lp-solo-badge {
    padding: 7px 11px;

    border: 1px solid rgba(169,134,255,.24);
    border-radius: 999px;

    background: rgba(169,134,255,.09);
    color: #c9b6ff;

    font-size: 11px;
    font-weight: 700;
}

.lp-deck-wrap {
    position: relative;

    display: flex;
    justify-content: center;

    margin: 0 auto;
}

#swipe-deck {
    position: relative !important;

    width: min(390px, calc(100vw - 38px)) !important;
    height: min(590px, 68vh) !important;

    margin: 0 auto !important;
}

.movie-card {
    overflow: hidden !important;

    border-radius: 26px !important;

    background: var(--lp-panel-solid) !important;

    box-shadow:
        0 28px 70px rgba(0,0,0,.48) !important;
}

.card-inner,
.card-front,
.card-back {
    border-radius: 26px !important;
}

.card-front {
    background: #111624 !important;
}

.card-front img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
}

.card-back {
    padding: 23px !important;

    border: 1px solid var(--lp-border-strong) !important;

    background:
        radial-gradient(circle at top right, rgba(255,114,188,.10), transparent 35%),
        radial-gradient(circle at bottom left, rgba(94,200,255,.10), transparent 38%),
        #111624 !important;

    color: var(--lp-text) !important;
}

.movie-title {
    color: var(--lp-text) !important;

    font-size: 25px !important;
    font-weight: 760 !important;
    letter-spacing: -.8px;
}

.stat-badge {
    border: 1px solid var(--lp-border) !important;
    border-radius: 999px !important;

    background: rgba(255,255,255,.06) !important;
    color: var(--lp-text) !important;
}

.back-content p {
    color: #c0c6d4 !important;
}

.trailer-btn {
    border-radius: 12px !important;

    background: var(--lp-gradient) !important;
    color: #080a10 !important;

    font-weight: 800 !important;
}

.stamp-yes,
.stamp-no {
    border-radius: 999px !important;
    backdrop-filter: blur(8px);
}

.lp-swipe-guide {
    width: min(390px, calc(100vw - 38px));

    margin: 17px auto 0;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    font-size: 11px;
    font-weight: 700;
}

.lp-pass-guide {
    color: var(--lp-pink);
}

.lp-like-guide {
    color: var(--lp-blue);
    text-align: right;
}

.lp-pass-guide span,
.lp-like-guide span {
    font-size: 17px;
}

.lp-details-guide {
    color: var(--lp-soft);
    font-weight: 500;
}


/* =========================================================
   SWIPE GLOW
   ========================================================= */

#glow-left {
    background:
        linear-gradient(
            to right,
            rgba(255,76,156,.48),
            transparent
        ) !important;
}

#glow-right {
    background:
        linear-gradient(
            to left,
            rgba(94,200,255,.48),
            transparent
        ) !important;
}


/* =========================================================
   MODALS
   ========================================================= */

.lp-modal-shell {
    position: fixed !important;
    inset: 0 !important;

    z-index: 5000 !important;

    display: grid !important;
    place-items: center !important;

    padding: 22px !important;

    background: rgba(4,6,11,.72) !important;

    backdrop-filter: blur(16px);
}

.lp-modal-shell.hidden {
    display: none !important;
}

.lp-modal-card {
    width: min(430px, 100%);

    position: relative;

    padding: 28px;

    border: 1px solid var(--lp-border-strong);
    border-radius: 24px;

    background: #111624;

    box-shadow:
        0 40px 100px rgba(0,0,0,.48);
}

.lp-modal-card h2 {
    margin: 8px 0 6px;

    color: var(--lp-text);

    font-size: 26px;
    letter-spacing: -.8px;
}

.lp-modal-subtitle {
    color: var(--lp-muted);
    line-height: 1.5;
    font-size: 13px;
}

.lp-modal-close {
    width: 36px;
    height: 36px;

    position: absolute;
    right: 18px;
    top: 18px;

    border: 1px solid var(--lp-border);
    border-radius: 12px;

    background: rgba(255,255,255,.04);
    color: var(--lp-text);

    font-size: 22px;

    cursor: pointer;
}

.lp-form {
    display: grid;
    gap: 14px;

    margin-top: 25px;
}

.lp-form label {
    display: grid;
    gap: 7px;

    color: #c8cdd8;

    font-size: 12px;
    font-weight: 650;
}

.lp-form input {
    height: 50px;

    padding: 0 14px;

    border: 1px solid var(--lp-border);
    border-radius: 13px;

    outline: none;

    background: rgba(0,0,0,.21);
    color: var(--lp-text);
}

.lp-form input:focus {
    border-color: rgba(94,200,255,.44);
}

.lp-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    position: relative;
}

.lp-modal-header .lp-modal-close {
    position: static;
}

.lp-list-modal {
    max-height: min(700px, 88vh);
}

.lp-genre-list {
    margin-top: 24px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

    overflow-y: auto;

    max-height: 58vh;
}

.lp-genre-list .genre-item {
    min-height: 46px;

    padding: 0 14px;

    border: 1px solid var(--lp-border) !important;
    border-radius: 12px !important;

    background: rgba(255,255,255,.035) !important;
    color: #c0c7d6 !important;

    text-align: left;

    cursor: pointer;
}

.lp-genre-list .genre-item.active {
    border-color: rgba(169,134,255,.32) !important;

    background:
        linear-gradient(
            120deg,
            rgba(94,200,255,.11),
            rgba(255,114,188,.10)
        ) !important;

    color: var(--lp-text) !important;
}


/* =========================================================
   MATCH POPUP
   ========================================================= */

#match-overlay.lp-match-overlay {
    width: min(450px, calc(100vw - 28px)) !important;

    left: 50% !important;
    top: 16px !important;

    display: grid !important;
    grid-template-columns: 70px 1fr auto !important;

    gap: 13px !important;
    align-items: center !important;

    padding: 10px !important;

    border: 1px solid var(--lp-border-strong) !important;
    border-radius: 19px !important;

    background: rgba(16,21,34,.94) !important;

    backdrop-filter: blur(20px);

    box-shadow:
        0 22px 60px rgba(0,0,0,.38) !important;

    transform:
        translate(-50%, -145%) !important;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1) !important;
}

#match-overlay.show {
    transform:
        translate(-50%, 0) !important;
}

.match-poster-preview {
    width: 70px !important;
    height: 98px !important;

    border-radius: 12px !important;

    object-fit: cover !important;
}

.lp-match-info h2 {
    margin: 3px 0 0;

    color: var(--lp-text);

    font-size: 16px;
    line-height: 1.2;
}

.lp-match-label {
    color: var(--lp-purple);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .15em;
}

.lp-match-heart {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--lp-gradient);

    color: #080a10;

    font-size: 20px;
}


/* =========================================================
   MATCHES
   ========================================================= */

.lp-full-panel {
    width: min(980px, 100%);
    max-height: 91vh;

    overflow-y: auto;

    padding: 30px;

    border: 1px solid var(--lp-border-strong);
    border-radius: 26px;

    background: #0f1420;
}

.lp-full-panel h2 {
    margin: 7px 0 0;

    font-size: 28px;
}

.lp-matches-list {
    margin-top: 26px;
}

.lp-modal-note {
    margin-top: 20px;

    color: var(--lp-muted);
    font-size: 12px;
    text-align: center;
}


/* Existing dynamically generated match posters */

.mini-poster {
    border-radius: 18px !important;
    overflow: hidden !important;

    box-shadow:
        0 14px 35px rgba(0,0,0,.28) !important;
}

.mini-front,
.mini-back,
.mini-inner {
    border-radius: 18px !important;
}

.mini-back {
    border-color: var(--lp-border-strong) !important;
    background: #151b29 !important;
}


/* =========================================================
   DELETE / CONFIRM
   ========================================================= */

.lp-delete-overlay {
    position: fixed;
    inset: 0;

    z-index: 6000;

    background: rgba(3,5,9,.72);
    backdrop-filter: blur(12px);
}

.lp-delete-modal {
    width: min(400px, calc(100vw - 40px));

    position: fixed;
    z-index: 6001;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    padding: 27px;

    border: 1px solid var(--lp-border-strong);
    border-radius: 22px;

    background: #111624;

    box-shadow:
        0 30px 90px rgba(0,0,0,.52);
}

.lp-delete-modal h3 {
    margin: 0 0 7px;

    font-size: 22px;
}

.lp-delete-modal p {
    margin: 0;

    color: var(--lp-muted);
    line-height: 1.5;
}

.lp-button-row {
    margin-top: 24px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 9px;
}


/* =========================================================
   TOAST
   ========================================================= */

#toast {
    width: max-content;
    max-width: calc(100vw - 30px);

    position: fixed !important;
    z-index: 10000 !important;

    left: 50% !important;
    bottom: 26px !important;

    transform:
        translate(-50%, 20px) !important;

    padding: 11px 16px !important;

    border: 1px solid var(--lp-border-strong) !important;
    border-radius: 999px !important;

    background: rgba(19,24,38,.96) !important;
    color: var(--lp-text) !important;

    box-shadow:
        0 18px 50px rgba(0,0,0,.35) !important;

    font-size: 12px !important;

    opacity: 0 !important;

    transition:
        opacity .2s ease,
        transform .2s ease !important;
}

#toast.show {
    opacity: 1 !important;

    transform:
        translate(-50%, 0) !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .lp-header {
        padding-left: 17px;
        padding-right: 17px;
    }

    .lp-nav {
        width: calc(100% - 24px);

        justify-content: space-between;

        overflow-x: auto;
    }

    .lp-nav-item {
        min-width: 66px;

        padding-left: 10px;
        padding-right: 10px;

        flex-direction: column;

        gap: 2px;

        font-size: 10px;
    }

    .lp-home {
        padding:
            48px 17px
            70px !important;
    }

    .lp-hero h2 {
        letter-spacing: -2px;
    }

    .lp-mode-grid {
        grid-template-columns: 1fr;
    }

    .lp-session-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .lp-auth-card {
        padding: 27px 22px;
    }

    .lp-brand-large {
        align-items: flex-start;
        flex-direction: column;
    }

    .lp-genre-list {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   REMOVE REMAINING KINOSWIPE VISUALS
   ========================================================= */

.signature,
.match-details-grid,
.avatar-frame,
.match-logo {
    text-shadow: none !important;
}

.signature {
    display: none !important;
}

.main-title {
    animation: none !important;
    text-shadow: none !important;
}



/* =========================================================
   LEXPICK LAYOUT V2
   Break all remaining KinoSwipe page constraints
   ========================================================= */


/* ---------- PAGE / SCROLLING ---------- */

html {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    scroll-behavior: smooth;
}

body {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;

    overflow-x: hidden !important;
    overflow-y: visible !important;

    display: block !important;

    text-align: left !important;
}


/* ---------- REMOVE KINOSWIPE MAIN-MENU LAYOUT ---------- */

#main-menu {
    width: 100% !important;
    min-height: 100vh !important;

    padding: 0 !important;
    margin: 0 !important;

    position: relative !important;

    align-items: stretch !important;
    justify-content: flex-start !important;

    flex-grow: 0 !important;
}

#main-menu:not(.hidden) {
    display: block !important;
}


/* ---------- HEADER ---------- */

.lp-header {
    width: 100% !important;
    max-width: 1220px !important;

    height: 88px !important;

    margin: 0 auto !important;
    padding: 18px 32px !important;
}

.lp-header .main-title {
    font-size: 24px !important;
}

.lp-mark-small {
    width: 48px !important;
    height: 48px !important;
}


/* ---------- NAVIGATION ---------- */

.lp-nav {
    width: min(820px, calc(100% - 48px)) !important;
    max-width: none !important;

    margin: 12px auto 0 !important;

    padding: 6px !important;

    border-radius: 20px !important;
}

.lp-nav-item {
    min-height: 46px !important;

    padding: 0 20px !important;

    font-size: 14px !important;
}


/* ---------- HOME ---------- */

.lp-home {
    width: 100% !important;
    max-width: 1080px !important;

    margin: 0 auto !important;

    padding:
        68px 32px
        100px !important;

    position: relative !important;

    display: block !important;

    transform: none !important;
}


/* ---------- HERO ---------- */

.lp-hero {
    width: 100%;
    max-width: 820px !important;

    margin: 0 auto !important;

    text-align: center !important;
}

.lp-kicker {
    font-size: 11px !important;
}

.lp-hero h2 {
    margin:
        15px 0
        18px !important;

    font-size: clamp(48px, 5.5vw, 76px) !important;

    line-height: .98 !important;

    letter-spacing: -3.5px !important;
}

.lp-hero p {
    max-width: 620px !important;

    margin:
        0 auto !important;

    font-size: 17px !important;
}


/* ---------- PICK MODE CARDS ---------- */

.lp-mode-grid {
    width: 100% !important;

    margin-top: 58px !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap: 20px !important;
}

.lp-mode-card {
    min-height: 330px !important;

    padding: 32px !important;

    border-radius: 28px !important;

    text-align: left !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.06),
            rgba(255,255,255,.018)
        ) !important;
}

.lp-mode-primary {
    background:
        radial-gradient(
            circle at 0 0,
            rgba(94,200,255,.10),
            transparent 45%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(255,114,188,.10),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            rgba(255,255,255,.065),
            rgba(255,255,255,.02)
        ) !important;
}

.lp-mode-icon {
    width: 52px !important;
    height: 52px !important;

    font-size: 25px !important;

    border-radius: 16px !important;
}

.lp-mode-content {
    margin-top: 34px !important;
}

.lp-mode-card h3 {
    font-size: 27px !important;

    margin:
        7px 0
        10px !important;
}

.lp-mode-card p {
    max-width: 360px;

    font-size: 15px !important;
}

.lp-mode-card .lp-primary-btn,
.lp-mode-card .lp-secondary-btn {
    width: 100%;

    min-height: 54px !important;
}


/* ---------- JOIN CODE ---------- */

.lp-join-row {
    grid-template-columns:
        minmax(0, 1fr)
        100px !important;

    gap: 10px !important;
}

#join-code {
    height: 54px !important;

    font-size: 19px !important;
}


/* ---------- SESSION ---------- */

.lp-session-card {
    margin-top: 22px !important;

    padding: 30px !important;

    border-radius: 26px !important;
}


/* ---------- MORE NATURAL BACKGROUND ---------- */

body {
    background:
        radial-gradient(
            circle at 8% 4%,
            rgba(94,200,255,.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 7%,
            rgba(255,114,188,.10),
            transparent 29%
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(169,134,255,.055),
            transparent 40%
        ),
        linear-gradient(
            180deg,
            #080b12 0%,
            #090d16 52%,
            #080a10 100%
        ) !important;

    background-attachment: fixed !important;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    .lp-header {
        height: 72px !important;

        padding:
            12px 17px !important;
    }

    .lp-nav {
        width: calc(100% - 20px) !important;

        margin-top: 5px !important;
    }

    .lp-nav-item {
        min-height: 50px !important;

        padding:
            5px 10px !important;
    }

    .lp-home {
        padding:
            46px 17px
            80px !important;
    }

    .lp-hero h2 {
        font-size:
            clamp(39px, 12vw, 58px) !important;

        letter-spacing:
            -2.4px !important;
    }

    .lp-hero p {
        font-size: 15px !important;
    }

    .lp-mode-grid {
        margin-top: 40px !important;

        grid-template-columns:
            1fr !important;
    }

    .lp-mode-card {
        min-height: 285px !important;

        padding: 25px !important;
    }

}


/* ---------- SMALL HEIGHT DESKTOPS ---------- */

@media (min-width: 701px) and (max-height: 800px) {

    .lp-home {
        padding-top: 48px !important;
    }

    .lp-hero h2 {
        font-size:
            clamp(45px, 5vw, 66px) !important;
    }

    .lp-mode-grid {
        margin-top: 42px !important;
    }

}



/* =========================================================
   LEXPICK RESPONSIVE PICK SCREEN V3
   True fullscreen view + viewport-aware poster sizing
   ========================================================= */


/* ---------------------------------------------------------
   PICK SCREEN MUST COMPLETELY REPLACE HOME SCREEN
   --------------------------------------------------------- */

#game-area.lp-game {
    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100dvh !important;
    min-height: 0 !important;

    margin: 0 !important;

    padding:
        max(12px, env(safe-area-inset-top))
        clamp(12px, 2.5vw, 28px)
        max(12px, env(safe-area-inset-bottom)) !important;

    z-index: 10000 !important;

    overflow: hidden !important;

    background:
        radial-gradient(
            circle at 8% 5%,
            rgba(94,200,255,.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 8%,
            rgba(255,114,188,.09),
            transparent 30%
        ),
        #080b12 !important;

    align-items: stretch !important;
    justify-content: stretch !important;
}

#game-area.lp-game:not(.hidden) {
    display: grid !important;

    grid-template-rows:
        auto
        auto
        minmax(0, 1fr)
        auto !important;

    gap: clamp(6px, 1.4vh, 14px) !important;
}


/* ---------------------------------------------------------
   TOP BAR
   --------------------------------------------------------- */

#game-area .lp-game-header {
    width: 100% !important;
    max-width: 1100px !important;

    min-height: 42px !important;

    margin: 0 auto !important;

    flex: none !important;
}

#game-area .lp-game-brand {
    font-size: clamp(14px, 1.5vw, 17px) !important;
}

#game-area .lp-game-actions {
    gap: 7px !important;
}

#game-area .lp-icon-btn {
    width: clamp(36px, 5vh, 42px) !important;
    height: clamp(36px, 5vh, 42px) !important;

    position: static !important;

    inset: auto !important;
    transform: none !important;

    flex: 0 0 auto !important;
}


/* ---------------------------------------------------------
   FILTER BAR
   --------------------------------------------------------- */

#game-area .lp-filter-row {
    width: 100% !important;
    max-width: 1100px !important;

    min-height: 38px !important;

    margin: 0 auto !important;

    flex: none !important;
}

#game-area #genre-pill {
    position: static !important;

    width: auto !important;
    height: 38px !important;

    inset: auto !important;

    z-index: auto !important;
}

#game-area #solo-badge {
    position: static !important;

    inset: auto !important;

    z-index: auto !important;
}


/* ---------------------------------------------------------
   DECK AREA
   --------------------------------------------------------- */

#game-area .lp-deck-wrap {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;

    position: relative !important;

    display: grid !important;
    place-items: center !important;

    overflow: visible !important;
}


/*
   Width is limited by BOTH screen width and screen height.

   42dvh gives the poster enough room vertically because
   its final height is 1.5x its width.
*/

#game-area #swipe-deck {
    position: relative !important;

    width: min(
        88vw,
        42dvh,
        420px
    ) !important;

    height: auto !important;

    aspect-ratio: 2 / 3 !important;

    max-width: 420px !important;
    max-height: none !important;

    margin: 0 !important;

    flex: none !important;
}


/* Cards always fill the calculated deck */

#game-area .movie-card {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    border-radius:
        clamp(18px, 3vh, 28px) !important;
}

#game-area .card-inner,
#game-area .card-front,
#game-area .card-back {
    width: 100% !important;
    height: 100% !important;

    border-radius:
        clamp(18px, 3vh, 28px) !important;
}


/* Poster fills card */

#game-area .card-front img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    display: block !important;
}


/* ---------------------------------------------------------
   SWIPE DIRECTIONS
   --------------------------------------------------------- */

#game-area .lp-swipe-guide {
    width: min(
        88vw,
        42dvh,
        420px
    ) !important;

    min-height: 30px !important;

    margin: 0 auto !important;

    flex: none !important;
}

#game-area #poster-instruction {
    position: static !important;

    width: auto !important;

    inset: auto !important;

    transform: none !important;
}


/* ---------------------------------------------------------
   REMOVE OLD KINOSWIPE FIXED BUTTON LOCATIONS
   --------------------------------------------------------- */

#game-area #matches-pill,
#game-area #quit-pill,
#game-area #undo-btn {
    position: static !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    width: clamp(36px, 5vh, 42px) !important;
    height: clamp(36px, 5vh, 42px) !important;

    transform: none !important;

    border-radius: 13px !important;
}


/* ---------------------------------------------------------
   SHORTER WINDOWS
   --------------------------------------------------------- */

@media (max-height: 700px) {

    #game-area.lp-game {
        gap: 5px !important;

        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    #game-area #swipe-deck,
    #game-area .lp-swipe-guide {
        width: min(
            82vw,
            38dvh,
            360px
        ) !important;
    }

    #game-area .lp-game-header {
        min-height: 36px !important;
    }

    #game-area .lp-filter-row {
        min-height: 34px !important;
    }

}


/* ---------------------------------------------------------
   VERY SHORT WINDOWS
   --------------------------------------------------------- */

@media (max-height: 520px) {

    #game-area #swipe-deck,
    #game-area .lp-swipe-guide {
        width: min(
            78vw,
            34dvh,
            300px
        ) !important;
    }

    #game-area .lp-swipe-guide {
        font-size: 9px !important;
    }

}


/* ---------------------------------------------------------
   PHONE / NARROW PORTRAIT
   --------------------------------------------------------- */

@media (max-width: 520px) {

    #game-area.lp-game {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #game-area #swipe-deck,
    #game-area .lp-swipe-guide {
        width: min(
            calc(100vw - 28px),
            44dvh,
            390px
        ) !important;
    }

}


/* ---------------------------------------------------------
   LARGE DESKTOPS
   --------------------------------------------------------- */

@media (min-width: 1200px) and (min-height: 800px) {

    #game-area #swipe-deck,
    #game-area .lp-swipe-guide {
        width: min(
            36dvh,
            430px
        ) !important;
    }

}


/* ---------------------------------------------------------
   PREVENT HOME FROM BLEEDING THROUGH
   --------------------------------------------------------- */

#game-area:not(.hidden) {
    isolation: isolate !important;
}

