/* TikTok-style feed: full-screen cards, swipe up for the next streamer */
:root { --accent: #ED7EA5; --accent-2: #C86197; --btn-bg: #ED7EA5; --bg1: #AAEDFC; --bg2: #ED7EA5; --nv: #3E1DA1; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0a0a2a; color: #fff; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
body { background: linear-gradient(#2d0a3d, #070a2c) fixed; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- the scrolling feed ---------- */
.feed { position: absolute; inset: 0; margin: 0 auto; width: min(100vw, 480px); overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; background: #111; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #111; }

/* media: snapshot first, live video fades in on top (cropped to fill the tall screen) */
.media { position: absolute; inset: 0; display: block; }
.media img.snap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; font-weight: 700; background: linear-gradient(160deg, var(--accent-2), #1b1236); }
.media iframe {
  position: absolute; top: 0; left: 50%; height: 100%; width: calc(100vh * 16 / 9); width: calc(100dvh * 16 / 9);
  transform: translateX(-50%); border: 0; opacity: 0; transition: opacity .6s; pointer-events: none;
}
.media iframe.ready { opacity: 1; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#0000 55%, #000b 100%); }

/* ---------- info, bottom left ---------- */
.info { position: absolute; left: 14px; right: 84px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 5; text-shadow: 0 1px 8px #000a; }
.tag-live { display: inline-flex; align-items: center; gap: 6px; background: #ff3b5c; padding: 3px 9px; border-radius: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.tag-live i { background: #fff; animation: none; box-shadow: none; width: 6px; height: 6px; }
.who { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: 1.25rem; font-weight: 700; flex-wrap: wrap; }
.who a { display: inline-flex; align-items: center; gap: 8px; }
.who .flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px #fff4; }
.who .age { font-weight: 500; opacity: .9; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: #ffffff26; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px; font-size: .78rem; }

/* ---------- side buttons, right ---------- */
.rail { position: absolute; right: 10px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rail button, .rail a { display: grid; justify-items: center; gap: 3px; background: none; border: 0; color: #fff; font: inherit; font-size: .7rem; cursor: pointer; text-shadow: 0 1px 6px #0009; }
.rail .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #00000055; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .15s; }
.rail .ic svg { width: 26px; height: 26px; fill: #fff; }
.rail button:active .ic { transform: scale(.9); }
.rail .heart.on .ic svg { fill: #ff3b5c; }
.rail .heart.on .ic { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.25); } }

/* ---------- call to action ---------- */
.cta {
  position: absolute; left: 14px; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 7;
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: 1.02rem;
  box-shadow: 0 10px 28px -8px var(--accent-2), 0 0 0 1px #ffffff2e inset;
  animation: nudge 3.2s ease-in-out infinite;
}
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: scale(1.03); } 96% { transform: scale(.99); } }

/* big heart that pops where you double-tap */
.burst { position: absolute; z-index: 8; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; animation: burst .8s forwards; }
.burst svg { width: 100%; height: 100%; fill: #ff3b5c; filter: drop-shadow(0 4px 12px #0008); }
@keyframes burst { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1.3) translateY(-30px); opacity: 0; } }

/* ---------- misc ---------- */
.hint { position: absolute; z-index: 25; left: 50%; top: 58%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; pointer-events: none; text-shadow: 0 1px 6px #000; animation: hint 1.6s ease-in-out infinite; }
.hint span { width: 8px; height: 8px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg); }
@keyframes hint { 0%, 100% { transform: translate(-50%, 6px); opacity: .5; } 50% { transform: translate(-50%, -6px); opacity: 1; } }
.empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; }
.nav { position: absolute; z-index: 30; right: max(16px, calc(50% - 240px - 70px)); top: 50%; transform: translateY(-50%); flex-direction: column; gap: 10px; display: none; }
.nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #ffffff22; color: #fff; font-size: 1.3rem; cursor: pointer; }
.nav button:hover { background: #ffffff44; }
@media (min-width: 700px) and (pointer: fine) { .nav { display: flex; } .feed { box-shadow: 0 0 80px #000; } }

/* ---------- age gate ---------- */
.gate { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 50% 0, #2a1030, #000 70%); overflow: auto; }
.gate-card { width: min(100%, 420px); text-align: center; background: #15101c; border: 1px solid #ffffff1a; border-radius: 20px; padding: 28px 22px; }
.gate-logo { font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.gate-card h1 { margin: 14px 0 8px; font-size: 1.8rem; }
.gate-card p { color: #cbc3d6; font-size: .9rem; line-height: 1.5; }
.gate-btn { width: 100%; height: 52px; margin-top: 8px; border: 0; border-radius: 14px; cursor: pointer; font: 700 1rem 'Inter', system-ui, sans-serif; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.gate-leave { display: inline-block; margin-top: 14px; color: #9a90a8; font-size: .85rem; }

/* ---------- home: top bar, chips, grid, bottom bar ---------- */
.hrt { display: inline-grid; place-items: center; }
.hrt svg { width: 22px; height: 22px; fill: var(--accent); }
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 46px; padding: env(safe-area-inset-top) 12px 0; box-sizing: content-box; display: flex; align-items: center; gap: 8px; background: linear-gradient(#1a0833, #1a0833ee); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top .tab { padding: 5px 10px; border-radius: 6px; font-weight: 700; font-size: .92rem; letter-spacing: .02em; background: #ffffff1f; }
.top .join { margin-left: auto; font-weight: 700; font-size: .92rem; }
.chips-bar { position: fixed; z-index: 29; top: calc(46px + env(safe-area-inset-top)); left: 0; right: 0; display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; background: #1a0833ee; scrollbar-width: none; }
.chips-bar::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; cursor: pointer; font: 700 .85rem 'Inter', system-ui, sans-serif; color: #fff; background: #ffffff1f; padding: 6px 12px; border-radius: 7px; }
.chip.on { background: #ffffff55; }
.searchbar { position: fixed; z-index: 29; top: calc(46px + 46px + env(safe-area-inset-top)); left: 0; right: 0; padding: 6px 12px 8px; background: #1a0833f2; }
.searchbar input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid #ffffff33; background: #ffffff14; color: #fff; padding: 0 12px; font: inherit; font-size: 16px; outline: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: calc(46px + 46px + env(safe-area-inset-top) + 2px) 0 calc(64px + env(safe-area-inset-bottom)); max-width: 900px; margin: 0 auto; }
body.searching .grid { padding-top: calc(46px + 46px + 52px + env(safe-area-inset-top)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.tile { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: #3a1550; color: #fff; }
.tile img.snap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 700; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 60%, #0009); }
.tile .tn { position: absolute; z-index: 2; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; text-shadow: 0 1px 4px #000; max-width: 58%; }
.tile .tn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .tn img { width: 16px; height: 11px; border-radius: 2px; flex: none; }
.tile .lv { position: absolute; z-index: 2; right: 6px; bottom: 6px; background: #ff2d78; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.tile .lk { position: absolute; z-index: 2; top: 6px; right: 6px; width: 16px; height: 16px; fill: #ff2d78; }
.none { text-align: center; color: #cbb8e0; padding: 120px 20px; }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 56px; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); align-items: center; background: #0a0a2aee; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid #ffffff14; }
.tabbar .logo { display: flex; align-items: center; gap: 4px; padding-left: 12px; font-weight: 800; font-size: 1.25rem; color: #3cbcff; letter-spacing: .01em; overflow: hidden; white-space: nowrap; }
.tabbar .logo .hrt svg { width: 16px; height: 16px; }
.tabbar button, .tabbar a:not(.logo) { display: grid; place-items: center; height: 100%; background: none; border: 0; color: #fff; cursor: pointer; }
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar svg circle[r=".8"] { fill: #fff; }
.tabbar button.on svg { stroke: var(--accent); fill: var(--accent); }

/* ---------- full-screen viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; background: #000; }
.vclose { position: absolute; z-index: 60; top: calc(10px + env(safe-area-inset-top)); left: max(10px, calc(50% - 240px + 10px)); width: 38px; height: 38px; border-radius: 50%; border: 0; background: #00000066; color: #fff; font-size: 1.05rem; cursor: pointer; }

/* ---------- colors and look of the old template: cyan | pink split background, navy text, soft pink buttons, white rims ---------- */
html, body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
body { color: var(--nv); background: linear-gradient(180deg, var(--bg1) 0%, #E9C9F2 55%, var(--bg2) 100%) fixed; background-color: var(--bg2); }
.hrt svg { fill: var(--nv); }
.top { background: linear-gradient(180deg, var(--bg1) 0%, #E9C9F2 55%, var(--bg2) 100%) fixed; box-shadow: 0 2px 14px #1A146022; color: var(--nv); backdrop-filter: none; -webkit-backdrop-filter: none; }
.top .tab { background: #fff; color: var(--nv); box-shadow: 0 2px 8px #1A146022; }
.top .join { background: var(--nv); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: .8rem; }
.chips-bar { background: linear-gradient(180deg, var(--bg1) 0%, #E9C9F2 55%, var(--bg2) 100%) fixed; }
.chip { background: #ffffffb3; color: var(--nv); box-shadow: 0 1px 6px #1A146014; }
.chip.on { background: var(--nv); color: #fff; }
.searchbar { background: #ffffffd9; }
.searchbar input { background: #fff; color: var(--nv); border: 1.5px solid var(--nv); }
.grid { gap: 6px; padding-left: 6px; padding-right: 6px; }
.tile { border-radius: 14px; border: 2px solid #fff; background: #fff; box-shadow: 0 0 14px 1px rgba(110, 53, 158, .55), 0 0 30px 4px rgba(110, 53, 158, .25); }
.tile .tn { font-family: 'Space Grotesk', sans-serif; }
.tile .lv { background: var(--btn-bg); color: #1A1460; }
.tile .lk { fill: var(--bg2); }
.none { color: var(--nv); }
.tabbar { background: #ffffffe6; border-top: 0; box-shadow: 0 -4px 18px #1A146022; }
.tabbar .logo { color: var(--nv); font-family: 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.tabbar svg { stroke: var(--nv); }
.tabbar svg circle[r=".8"] { fill: var(--nv); }
.tabbar button.on svg { stroke: var(--bg2); fill: var(--bg2); }
.tag-live { background: var(--btn-bg); color: #1A1460; }
.tag-live i { background: #1A1460; }
.cta { background: var(--btn-bg); color: #1A1460; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; box-shadow: 0 8px 24px -8px var(--btn-bg), 0 0 20px rgba(110, 53, 158, .6), inset 0 0 0 1px rgba(255, 255, 255, .55); }
.rail .heart.on .ic svg { fill: var(--bg2); }
.rail .ic { background: #ffffff40; box-shadow: inset 0 0 0 1.5px #ffffffcc; }
.vclose { background: #ffffffd9; color: var(--nv); }
.gate { background: linear-gradient(180deg, var(--bg1) 0%, #E9C9F2 55%, var(--bg2) 100%) fixed; }
.gate-card { background: #fff; border: 3px solid #fff; color: var(--nv); box-shadow: 0 0 22px 2px rgba(110, 53, 158, .55), 0 0 52px 10px rgba(110, 53, 158, .5); }
.gate-logo { color: var(--nv); display: inline-flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.gate-card h1 { font-family: 'Space Grotesk', sans-serif; }
.gate-card p { color: #3d3d73; }
.gate-btn { background: var(--nv); color: var(--bg2); }
.gate-leave { color: var(--nv); }
.gate { min-height: 100vh; min-height: 100dvh; }

/* ---------- prelanding: header with name, country, age; live window below ---------- */
.pre { position: fixed; inset: 0; z-index: 45; overflow-y: auto; background: linear-gradient(180deg, var(--bg1) 0%, #E9C9F2 55%, var(--bg2) 100%) fixed; background-color: var(--bg2); color: var(--nv); }
.pre-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: #ffffffe6; box-shadow: 0 2px 14px #1A146022; }
.pre-back { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: var(--nv); color: #fff; font-size: 1.15rem; }
.pre-who { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-family: 'Space Grotesk', sans-serif; }
.pre-who b { font-size: 1.3rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.pre-flag img { width: 24px; height: 16px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px #1A146033; }
.pre-meta { font-family: 'Inter', sans-serif; font-weight: 600; font-size: .85rem; color: #3d3d73; }
.pre-body { width: min(100%, 640px); margin: 0 auto; padding: 14px 14px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.pre-win { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 22px; border: 3px solid #fff; background: #15142a; box-shadow: 0 0 22px 2px rgba(110, 53, 158, .55), 0 0 52px 10px rgba(110, 53, 158, .5); }
.pre-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pre-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; font-weight: 700; color: var(--nv); background: linear-gradient(180deg, var(--bg1), #fff); }
.pre-win iframe { position: absolute; top: 0; left: 50%; height: 100%; width: 133.4%; transform: translateX(-50%); border: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.pre-win iframe.ready { opacity: 1; }
.pre-pill { position: absolute; z-index: 2; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--nv); font-weight: 800; font-size: .72rem; letter-spacing: .06em; }
.pre-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg2); animation: pulse 1.6s infinite; }
.pre-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pre-chips span { background: #ffffffcc; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pre-off { text-align: center; font-weight: 600; background: #fff; border-radius: 12px; padding: 10px; }
.pre-cta { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 16px; background: var(--btn-bg); color: #1A1460; font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 8px 24px -8px var(--btn-bg), 0 0 20px rgba(110, 53, 158, .6), inset 0 0 0 1px rgba(255, 255, 255, .55); }
.pre-next { height: 48px; border-radius: 14px; border: 2px solid var(--nv); background: #fff; color: var(--nv); font: 700 .95rem 'Inter', system-ui, sans-serif; cursor: pointer; }

/* ---------- prelanding as a profile card (cover = her live window, avatar, follow, stats, description, enter button) ---------- */
.pre-card { position: relative; background: var(--nv); color: #fff; border-radius: 22px; border: 3px solid #fff; overflow: hidden; display: grid; padding-bottom: 16px; box-shadow: 0 0 22px 2px rgba(110, 53, 158, .55), 0 0 52px 10px rgba(110, 53, 158, .5); }
.pre-card .pre-win { aspect-ratio: 16 / 10; border: 0; border-radius: 0; box-shadow: none; }
.pre-pill { left: auto; right: 10px; top: 10px; background: #000000a6; color: #fff; font-size: .78rem; }
.pre-pill i { background: #22c55e; animation: none; }
.pre-namebar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 8px 14px 8px 118px; background: #00000066; font-size: 1.15rem; font-family: 'Space Grotesk', sans-serif; color: #fff; }
.pre-namebar b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre-cover { position: relative; }
.pre-avatar { position: absolute; z-index: 4; left: 14px; bottom: -48px; width: 94px; height: 94px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 0 0 6px var(--btn-bg), 0 0 18px 8px rgba(110, 53, 158, .45); }
.pre-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pre-av-live { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: var(--btn-bg); color: #1A1460; font-weight: 800; font-size: .68rem; letter-spacing: .06em; padding: 2px 10px; border-radius: 999px; }
.pre-share { position: absolute; z-index: 5; right: 10px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ffffff26; cursor: pointer; display: grid; place-items: center; }
.pre-share svg { width: 20px; height: 20px; fill: #fff; }
.pre-share.done { background: #22c55e; }
.pre-follow { margin: 12px 14px 0 118px; height: 42px; border: 0; border-radius: 10px; background: var(--btn-bg); color: #1A1460; font: 700 .95rem 'Inter', system-ui, sans-serif; cursor: pointer; }
.pre-follow.on { background: #ffffff26; color: #fff; }
.pre-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 16px 0; color: #cfd0ff; font-size: .9rem; }
.pre-stats b { color: #fff; }
.pre-desc { padding: 10px 16px 0; font-size: .92rem; line-height: 1.45; text-align: left; }
.pre-desc .more { color: #b9b9ff; }
.pre-card .pre-chips { justify-content: flex-start; padding: 10px 16px 0; }
.pre-card .pre-chips span { background: #ffffff1f; }
.pre-card .pre-off { margin: 10px 16px 0; color: var(--nv); }
.pre-card .pre-cta { margin: 14px 16px 0; }

/* Join button (was Follow) and the real-stats grid */
a.pre-follow { display: flex; align-items: center; justify-content: center; text-transform: uppercase; letter-spacing: .05em; }
.pre-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px 8px; padding: 16px 16px 0; text-align: center; }
.pre-stats span { display: grid; gap: 1px; padding: 8px 6px; border-radius: 12px; background: #ffffff14; }
.pre-stats b { font-size: .95rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre-stats small { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #aeb0ff; }

.top .tab { border: 0; font-family: inherit; }

/* ---------- gallery photos (from SMLive) ---------- */
.pre-photos { padding: 14px 0 0; }
.pre-photos-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px 8px; }
.pre-photos-h b { font: 700 1rem 'Space Grotesk', sans-serif; }
.pre-photos-h small { color: #aeb0ff; }
.pre-photos-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; }
.pre-photos-row::-webkit-scrollbar { display: none; }
.pre-photo { flex: none; width: 46%; max-width: 230px; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; scroll-snap-align: start; background: #ffffff14; border: 2px solid #ffffff55; }
.pre-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- single profile-card page ---------- */
.pre-logo { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--nv); }
.pre-logo svg { width: 20px; height: 20px; fill: #fff; }
.pre-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 6px 0 4px; font-size: .78rem; font-weight: 600; }
.pre-legal a { color: var(--nv); opacity: .85; text-decoration: underline; text-underline-offset: 2px; }
.none { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; }

/* ---------- v12: no header, flag next to the name, one stats row, 4 photos (4th blurred), intro page ---------- */
.pre-body { padding-top: calc(14px + env(safe-area-inset-top)); }
.pre-namebar { display: flex; align-items: center; gap: 8px; }
.pre-namebar b { display: block; min-width: 0; flex: 0 1 auto; }
.pre-namebar .pre-flag { flex: none; display: flex; }
.pre-stats { grid-template-columns: repeat(3, 1fr); }
.pre-photos-row { overflow: visible; scroll-snap-type: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pre-photo { width: auto; max-width: none; aspect-ratio: 3 / 4; position: relative; }
.pre-photo.more img { filter: blur(11px); transform: scale(1.25); }
.pre-photo.more::after { content: "More"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 .8rem 'Inter', sans-serif; letter-spacing: .04em; text-shadow: 0 1px 6px #0009; background: #1A146033; }

.pre-namebar .pre-flag img { position: static; inset: auto; width: 24px; height: 16px; object-fit: fill; border-radius: 3px; box-shadow: 0 0 0 1px #ffffff66; display: block; }

/* ---------- first card (your own profile card) ---------- */
.pre-timer { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 4px; background: #ffffff40; }
.pre-timer span { display: block; height: 100%; width: 100%; background: var(--btn-bg); }
.pre-pill em { font-style: normal; }
/* your own first card: cover and gallery photos are blurred, the round photo stays sharp */
.pre-win img.blurred { filter: blur(14px); transform: scale(1.15); }
.pre-photo.blurred img { filter: blur(11px); transform: scale(1.25); }
/* text written over the first card's cover photo (admin.php -> First card) */
.pre-covertext { position: absolute; z-index: 3; left: 18px; right: 18px; top: 50%; transform: translateY(-50%); text-align: center; white-space: pre-line; color: #fff; font: 700 1.3rem/1.25 'Space Grotesk', sans-serif; text-shadow: 0 2px 14px #000a, 0 0 4px #0008; pointer-events: none; }
