.setup-overlay {
    position: absolute;
    inset: 0;
    z-index: 88;
    background: var(--app-bg);
    color: var(--app-text);
    display: flex;
    flex-direction: column;
}
.setup-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 90px 26px 40px;
    gap: 16px;
    overflow-y: auto;
}
.setup-screen::-webkit-scrollbar { display: none; }
.setup-hello { justify-content: center; cursor: pointer; }
.setup-hello-text {
    font-size: 52px;
    font-weight: 300;
    letter-spacing: -1px;
    opacity: 0;
    transition: opacity 0.45s;
    min-height: 70px;
}
.setup-hello-text.in { opacity: 1; }
.setup-hint {
    font-size: 13px;
    color: var(--app-text-dim);
    animation: hintfloat 2.2s ease-in-out infinite;
}
.setup-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
}
.setup-sub {
    font-size: 13.5px;
    color: var(--app-text-dim);
    text-align: center;
    line-height: 1.5;
    max-width: 260px;
}
.setup-seg { margin-top: 8px; }
.setup-accents { justify-content: center; }
.setup-wallpapers { width: 100%; }
.setup-next {
    margin-top: auto;
    width: 100%;
}
.setup-skip {
    border: none;
    background: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    padding: 12px;
}
.setup-pad { width: 100%; display: flex; justify-content: center; }

.store-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    position: relative;
}
.store-row + .store-row::before {
    content: '';
    position: absolute;
    top: 0; left: 14px; right: 0;
    height: 1px;
    background: var(--app-separator);
}
.store-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    flex-shrink: 0;
}
.store-icon svg { width: 24px; height: 24px; }
.store-info { flex: 1; min-width: 0; }
.store-name { font-size: 15px; font-weight: 700; }
.store-tagline {
    font-size: 12px;
    color: var(--app-text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.store-btn {
    border: none;
    background: var(--app-surface-2);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 7px 18px;
    border-radius: 15px;
    cursor: pointer;
    font-family: var(--font);
    min-width: 74px;
}
.store-btn.store-open { color: var(--app-text-dim); }
.store-btn:disabled { opacity: 0.6; }

.match-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 16px 22px;
    overflow: hidden;
}
.match-card {
    flex: 1;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--app-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.28s ease-in, opacity 0.28s;
}
.match-card.fly-left  { transform: translateX(-120%) rotate(-14deg); opacity: 0; }
.match-card.fly-right { transform: translateX(120%) rotate(14deg); opacity: 0; }
.match-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}
.match-segs {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
}
.match-segs div {
    flex: 1;
    height: 3.5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
}
.match-segs div.on { background: #fff; }

.tinder-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 2px 0 8px;
    flex-shrink: 0;
}
.tinder-tab {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}
.tinder-tab svg {
    width: 24px;
    height: 24px;
    fill: var(--app-text-dim);
}
.tinder-tab.selected svg { fill: #fd297b; }
.match-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
}
.match-name { font-size: 22px; font-weight: 800; }
.match-bio { font-size: 13px; opacity: 0.9; margin-top: 3px; line-height: 1.35; }

.tinder-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
}
.tinder-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    background: var(--app-surface);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
}
.tinder-btn.big {
    width: 62px;
    height: 62px;
    font-size: 27px;
}
.tinder-btn:active { transform: scale(0.85); }
.tinder-btn:disabled { opacity: 0.5; }
.tb-rewind { color: #f5b748; }
.tb-nope { color: #fd5068; }
.tb-super { color: #1786ff; }
.tb-like { color: #2dd88a; }
.tb-boost { color: #a55eea; }
.tinder-btn.bounce { animation: denybounce 0.35s; }
.match-empty { margin: auto 0 14px; }

.match-moment {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 0 26px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(253, 41, 123, 0.32), transparent 60%),
        var(--app-bg);
    animation: homein 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.mm-btn {
    width: 100%;
    padding: 13px 0;
    border-radius: 26px;
    border: 1.5px solid #fd297b;
    background: none;
    color: #fd297b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    margin-top: 6px;
}
.mm-btn-primary {
    background: linear-gradient(135deg, #ff655b, #fd297b);
    border: none;
    color: #fff;
    margin-top: 16px;
}
.mm-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--app-surface);
    border: 4px solid #fd297b;
    box-shadow: 0 0 40px rgba(253, 41, 123, 0.4);
}
.mm-title {
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff655b, #fd297b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mm-sub { font-size: 14px; color: var(--app-text-dim); }
.match-moment .primary-btn { width: 80%; }

.match-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--app-surface-2);
    flex-shrink: 0;
}

.match-card { touch-action: none; cursor: grab; }
.match-card:active { cursor: grabbing; }

.match-under {
    position: absolute;
    inset: 8px 22px 92px;
    transform: scale(0.94) translateY(12px);
    filter: brightness(0.55);
    pointer-events: none;
}

.match-stamp {
    position: absolute;
    top: 26px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border: 4px solid;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}
.stamp-like {
    left: 18px;
    color: #3ddc84;
    border-color: #3ddc84;
    transform: rotate(-16deg);
}
.stamp-nope {
    right: 18px;
    color: var(--red);
    border-color: var(--red);
    transform: rotate(16deg);
}

.match-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 3px;
}
.match-online::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 8px #3ddc84;
}

.match-card-preview {
    position: relative;
    height: 330px;
    flex: none;
}
.match-preview { padding: 2px 6px; }

.match-stats {
    display: flex;
    gap: 8px;
    padding: 12px 4px 2px;
    flex-wrap: wrap;
}
.match-stat {
    font-size: 12px;
    font-weight: 700;
    color: var(--app-text);
    background: var(--app-surface);
    border-radius: 13px;
    padding: 6px 12px;
}

.match-when {
    font-size: 11.5px;
    color: var(--app-text-dim);
    font-weight: 400;
}

.match-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 4px 12px;
}
.match-rail::-webkit-scrollbar { display: none; }
.match-rail-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}
.match-rail-pic {
    width: 62px;
    height: 62px;
    border: 2.5px solid #fd297b;
}
.match-rail-name {
    font-size: 11.5px;
    font-weight: 600;
    max-width: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.mm-hearts span {
    position: absolute;
    bottom: -30px;
    font-size: 22px;
    color: #fd297b;
    opacity: 0;
    animation: heartfloat 2.6s ease-in infinite;
}
.mm-hearts span:nth-child(1) { left: 12%; animation-delay: 0s; }
.mm-hearts span:nth-child(2) { left: 28%; animation-delay: 0.7s; font-size: 15px; }
.mm-hearts span:nth-child(3) { left: 45%; animation-delay: 0.3s; color: #ff655b; }
.mm-hearts span:nth-child(4) { left: 60%; animation-delay: 1.1s; font-size: 27px; }
.mm-hearts span:nth-child(5) { left: 74%; animation-delay: 0.5s; font-size: 16px; color: #ff655b; }
.mm-hearts span:nth-child(6) { left: 86%; animation-delay: 1.5s; }
.mm-hearts span:nth-child(7) { left: 36%; animation-delay: 1.9s; font-size: 14px; }
@keyframes heartfloat {
    0%   { transform: translateY(0) rotate(-8deg); opacity: 0; }
    12%  { opacity: 0.9; }
    100% { transform: translateY(-520px) rotate(10deg); opacity: 0; }
}

.mm-duo {
    display: flex;
    align-items: center;
}
.mm-duo .mm-photo {
    width: 108px;
    height: 108px;
}
.mm-mine {
    transform: translateX(-40px);
    animation: duoleft 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
    z-index: 1;
}
.mm-theirs {
    transform: translateX(40px);
    animation: duoright 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
@keyframes duoleft  { to { transform: translateX(14px); } }
@keyframes duoright { to { transform: translateX(-14px); } }
.match-photo-strip {
    display: flex;
    gap: 8px;
    padding: 6px 2px;
}
.match-strip-cell {
    width: 74px;
    height: 96px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: var(--app-surface);
    cursor: pointer;
}
.match-strip-add {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--app-text-dim);
    border: 2px dashed var(--app-separator);
}

.g2048-scores {
    display: flex;
    gap: 10px;
    padding: 4px 0 12px;
}
.g2048-score {
    flex: 1;
    background: var(--app-surface);
    border-radius: 10px;
    padding: 9px 0;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
}
.g2048-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    background: var(--app-surface);
    border-radius: 12px;
    padding: 7px;
    aspect-ratio: 1;
    outline: none;
    touch-action: none;
    margin-bottom: 14px;
}
.g2048-tile {
    border-radius: 8px;
    background: var(--app-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--app-text);
}
.g2048-tile.t2    { background: #eee4da; color: #776e65; }
.g2048-tile.t4    { background: #ede0c8; color: #776e65; }
.g2048-tile.t8    { background: #f2b179; color: #fff; }
.g2048-tile.t16   { background: #f59563; color: #fff; }
.g2048-tile.t32   { background: #f67c5f; color: #fff; }
.g2048-tile.t64   { background: #f65e3b; color: #fff; }
.g2048-tile.t128  { background: #edcf72; color: #fff; font-size: 19px; }
.g2048-tile.t256  { background: #edcc61; color: #fff; font-size: 19px; }
.g2048-tile.t512  { background: #edc850; color: #fff; font-size: 19px; }
.g2048-tile.t1024 { background: #edc53f; color: #fff; font-size: 16px; }
.g2048-tile.t2048 { background: #edc22e; color: #fff; font-size: 16px; }
.g2048-over {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.viper-frame {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.viper-frame canvas {
    border-radius: 12px;
    outline: none;
    touch-action: none;
    max-width: 100%;
}

.city-911 {
    background: linear-gradient(135deg, #7a1220, #3d0a12);
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 6px;
}
.city-911-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 9px;
}
.city-911-row { display: flex; gap: 9px; }
.city-911-btn {
    flex: 1;
    border: none;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px 6px;
    cursor: pointer;
    font-family: var(--font);
    transition: transform 0.12s;
}
.city-911-btn:active { transform: scale(0.95); }
.c9-big { font-size: 20px; font-weight: 900; letter-spacing: 0.04em; }
.c9-sub { font-size: 10.5px; opacity: 0.8; margin-top: 2px; }

.biz-top { display: flex; align-items: center; gap: 8px; }
.biz-chip {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 8px;
    color: #fff;
}
.biz-open { background: var(--green); }
.biz-closed { background: var(--app-surface-2); color: var(--app-text-dim); }
.biz-announcement {
    font-size: 12.5px;
    color: var(--app-text);
    background: var(--app-surface-2);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 6px 9px;
    margin-top: 6px;
    line-height: 1.35;
}

.contact-photo-pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 0 14px;
    cursor: pointer;
}
.cpp-hint { font-size: 12px; color: var(--accent); font-weight: 500; }

.co-btn.co-grey { background: var(--app-surface-2, #3a3a3e); }
.co-btn.co-muted { background: #fff; }
.co-btn.co-muted svg { fill: #111; }

.picker-source {
    width: 100%;
    margin-bottom: 8px;
}
.picker-url-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.picker-url-row .text-input { flex: 1; }
