:root {
  --bg: #1a0533;
  --bg2: #2d0a4e;
  --pink: #ff2e93;
  --orange: #ff9a3c;
  --yellow: #ffe45c;
  --cyan: #2ef2ff;
  --ink: #fff;
  --muted: #d8c4f0;
  --card: rgba(255, 255, 255, .07);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Rubik", system-ui, sans-serif;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Synthwave sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; background: linear-gradient(#12002b 0%, #3b0764 45%, #c2185b 75%, #ff7a3c 100%); overflow: hidden; }
.sun { position: absolute; left: 50%; top: 38%; width: min(70vw, 520px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-linear-gradient(transparent 0 58%, #c2185b 58% 62%, transparent 62% 70%, #c2185b 70% 75%, transparent 75% 82%, #c2185b 82% 88%) , linear-gradient(var(--yellow), var(--pink));
  box-shadow: 0 0 120px var(--pink); opacity: .85; }
.grid { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 50%;
  background-image: linear-gradient(var(--cyan) 2px, transparent 2px), linear-gradient(90deg, var(--cyan) 2px, transparent 2px);
  background-size: 60px 60px; transform: perspective(300px) rotateX(60deg); opacity: .35; animation: grid 2.5s linear infinite; }
@keyframes grid { to { background-position: 0 60px; } }

/* ---------- Hero ---------- */
.hero { min-height: min(100svh, 1000px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; gap: 14px; }
.eyebrow { font-family: "Bungee"; letter-spacing: .05em; color: var(--yellow); margin: 0; animation: bob 2s ease-in-out infinite; }
.logo { font-family: "Bungee"; font-size: clamp(48px, 13vw, 140px); line-height: .9; margin: 0; color: var(--ink);
  text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 #5b21b6, 0 0 40px var(--pink); transform: rotate(-3deg); }
.logo span, .logo em { display: block; font-family: "Pacifico"; font-style: normal; font-size: .45em; color: var(--yellow); text-shadow: 3px 3px 0 var(--pink); }
.tagline { font-size: clamp(17px, 2.6vw, 22px); max-width: 620px; margin: 6px 0; color: var(--muted); font-weight: 600; }
.poster { width: min(100%, 720px); border-radius: 18px; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--pink), 0 20px 80px rgba(0,0,0,.6);
  transform: rotate(2deg); transition: transform .3s; }
.poster:hover { transform: rotate(0) scale(1.02); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.say { min-height: 1.4em; margin: 6px 0 0; max-width: 90vw; font: 400 clamp(20px, 4vw, 30px) "Pacifico"; color: #fff; text-shadow: 0 0 12px var(--pink), 2px 2px 0 #5b21b6; opacity: 0; }
.say.pop { animation: say 2.8s ease-out forwards; }
@keyframes say { 0% { opacity: 0; transform: scale(.4) rotate(-8deg); } 12% { opacity: 1; transform: scale(1.15) rotate(3deg); } 22% { transform: scale(1) rotate(-2deg); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.admin-fab { position: fixed; right: 16px; bottom: 16px; z-index: 20; background: var(--yellow); color: #1a0533; font-weight: 800; padding: 12px 18px; border-radius: 999px; border: 3px solid #1a0533; box-shadow: 4px 4px 0 var(--pink); text-decoration: none; }

.btn { font: 800 18px "Rubik"; color: #1a0533; background: linear-gradient(135deg, var(--yellow), var(--orange)); border: 3px solid #1a0533;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; box-shadow: 5px 5px 0 var(--pink); transition: transform .1s, box-shadow .1s; text-decoration: none; display: inline-block; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pink); }
.btn.shot { font-size: 22px; animation: wiggle 3s ease-in-out infinite; }
.btn.small { font-size: 15px; padding: 8px 16px; box-shadow: 3px 3px 0 var(--pink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--muted); box-shadow: none; }
@keyframes wiggle { 0%, 90%, 100% { transform: rotate(0); } 92% { transform: rotate(-6deg); } 94% { transform: rotate(6deg); } 96% { transform: rotate(-4deg); } 98% { transform: rotate(3deg); } }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--yellow); color: #1a0533; font: 800 18px "Rubik"; border-block: 4px solid #1a0533; overflow: hidden; white-space: nowrap; transform: rotate(-1.5deg) scaleX(1.03); margin: 20px 0; }
.ticker-track { display: inline-block; padding: 12px 0; animation: ticker 35s linear infinite; }
.ticker-track span { margin-right: 60px; }
@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
main { position: relative; }
.section { max-width: 1100px; margin: 0 auto; padding: 70px 16px; text-align: center; }
.neon { font-family: "Bungee"; font-size: clamp(28px, 6vw, 52px); margin: 0; color: #fff; text-shadow: 0 0 8px var(--pink), 0 0 24px var(--pink), 3px 3px 0 #5b21b6; }
.neon.big { font-size: clamp(36px, 9vw, 80px); }
.sub { color: var(--muted); margin: 10px 0 34px; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stat { background: rgba(26, 5, 51, .75); border: 3px solid var(--cyan); border-radius: 20px; padding: 26px 12px; box-shadow: 0 0 24px rgba(46, 242, 255, .35); backdrop-filter: blur(6px); }
.stat b { display: block; font-family: "Bungee"; font-size: 44px; color: var(--yellow); }
.stat span { color: var(--muted); font-weight: 600; }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: rgba(26, 5, 51, .8); border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 8px 8px 0 var(--pink); text-align: left; transition: transform .2s; }
.card:nth-child(2) { box-shadow: 8px 8px 0 var(--cyan); }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card h3 { font-family: "Bungee"; margin: 16px 18px 6px; color: var(--yellow); }
.card ul { list-style: none; margin: 0; padding: 0 18px 20px; line-height: 1.8; color: var(--muted); }

.party { padding-bottom: 100px; }
.footer { text-align: center; padding: 30px 16px 50px; color: var(--muted); font-size: 14px; background: rgba(18, 0, 43, .85); }

.fx { position: fixed; pointer-events: none; z-index: 100; top: 0; left: 0; will-change: transform; }
.notfound .logo { font-size: clamp(90px, 30vw, 220px); }

/* ---------- Instagram profile + grid ---------- */
.insta { max-width: 940px; }
.profile { display: flex; align-items: center; gap: clamp(18px, 6vw, 80px); text-align: left; padding: 10px clamp(0px, 4vw, 50px) 30px; }
.profile-pic { flex: none; width: clamp(86px, 22vw, 160px); aspect-ratio: 1; border-radius: 50%; padding: 4px; background: conic-gradient(var(--yellow), var(--orange), var(--pink), #8b5cf6, var(--yellow)); }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--bg); }
.handle { font: 600 clamp(20px, 4vw, 28px) "Rubik"; margin: 0 0 12px; }
.verified { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; font-size: .7em; border-radius: 50%; background: #3897f0; vertical-align: middle; }
.profile-stats { list-style: none; display: flex; gap: clamp(14px, 4vw, 40px); padding: 0; margin: 0 0 12px; font-size: clamp(14px, 2.4vw, 17px); }
.profile-stats b { font-weight: 800; }
.bio { margin: 0; line-height: 1.5; color: #eee; font-size: clamp(14px, 2.4vw, 16px); }
.tabs { border-top: 1px solid rgba(255,255,255,.2); display: flex; justify-content: center; margin-bottom: 4px; }
.tabs .on { border-top: 2px solid #fff; margin-top: -1px; padding: 14px 4px; font-size: 13px; letter-spacing: .1em; font-weight: 600; }
.grid-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(3px, 1vw, 6px); }
.tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: #000; overflow: hidden; cursor: pointer; display: block; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover img, .tile:hover video { transform: scale(1.06); }
.tile-badge { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 16px; text-shadow: 0 1px 4px #000; }
.tile-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; background: rgba(0,0,0,.4); color: #fff; font-weight: 800; font-size: 18px; opacity: 0; transition: opacity .2s; }
.tile:hover .tile-hover { opacity: 1; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 40px; }

/* Viewer */
.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--ink); }
.viewer::backdrop { background: rgba(5, 0, 15, .9); }
.viewer[open] { display: grid; place-items: center; }
.v-card { display: flex; width: min(94vw, 1000px); max-height: 92vh; background: #22073f; border: 2px solid var(--pink); border-radius: 16px; overflow: hidden; box-shadow: 0 0 60px rgba(255, 46, 147, .35); }
.v-media { position: relative; flex: 1.6; background: #000; display: grid; place-items: center; min-height: 0; user-select: none; }
.v-media img, .v-media video { max-width: 100%; max-height: 92vh; object-fit: contain; }
.v-side { flex: 1; min-width: 260px; display: flex; flex-direction: column; text-align: left; }
.v-side { max-height: 92vh; }
.v-scroll { flex: 1; overflow-y: auto; min-height: 80px; }
.v-captionrow[hidden] { display: none; }
.v-comments { list-style: none; margin: 0; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.v-comments li { line-height: 1.4; overflow-wrap: anywhere; font-size: 15px; }
.v-comments time { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.v-comments .c-empty { color: var(--muted); }
.c-del { background: none; border: 0; cursor: pointer; font-size: 14px; padding: 0; margin-left: 6px; }
.v-side .post-actions { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.1); }
.v-comment-form { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 12px; }
.v-comment-form input { font: 16px "Rubik"; padding: 10px 12px; border-radius: 10px; border: 2px solid #5b21b6; background: #0c001c; color: #fff; min-width: 0; }
.v-comment-form input:focus { outline: none; border-color: var(--pink); }
.v-alias { width: 50%; min-width: 140px; }
.v-alias[hidden] { display: none; }
.v-as { font-size: 13px; color: var(--muted); }
.v-as[hidden] { display: none; }
.v-as button { background: none; border: 0; color: var(--cyan); font: 600 13px "Rubik"; cursor: pointer; padding: 0; text-decoration: underline; }
.v-comment-row { display: flex; gap: 6px; }
.v-comment-row .v-body { flex: 1; }
.v-send { font: 800 15px "Rubik"; background: none; border: 0; color: var(--yellow); cursor: pointer; padding: 0 6px; }
.v-send:disabled { opacity: .5; }
.v-error:empty { display: none; }
.v-close { position: fixed; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; z-index: 2; }
.v-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #1a0533; font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }
.v-prev { left: 12px; } .v-next { right: 12px; }
@media (max-width: 760px) {
  .viewer[open] { place-items: stretch; overflow: hidden; }
  .v-card { flex-direction: column; width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .v-media { flex: none; }
  .v-media img, .v-media video { max-height: 52vh; max-height: 52dvh; width: 100%; }
  .v-side { flex: 1; min-height: 0; min-width: 0; max-height: none; }
  .v-side .post-head { padding: 8px 12px; }
  .v-scroll { flex: 0 1 auto; min-height: 0; max-height: none; } /* form sits right under the comments */
  .v-side .post-actions { padding: 6px 12px; }
  .v-comment-form { padding: 0 12px calc(10px + env(safe-area-inset-bottom)); }
  .v-nav { display: none; } /* swipe on mobile */
}
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.post-head time { margin-left: auto; color: var(--muted); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a0533; background: linear-gradient(135deg, var(--yellow), var(--pink)); }
.caption { margin: 12px; line-height: 1.4; color: #eee; overflow-wrap: anywhere; }
.post-actions { display: flex; align-items: center; gap: 8px; }
.post-actions form { margin-left: auto; }
.like, .del { background: none; border: 0; font-size: 28px; cursor: pointer; padding: 0; line-height: 1; }
.like.liked { animation: beat .4s; }
@keyframes beat { 50% { transform: scale(1.4); } }
.bigheart { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; opacity: 0; transform: scale(.3); pointer-events: none; z-index: 1; }
.bigheart.pop { animation: pop .8s ease-out; }
@keyframes pop { 15% { opacity: 1; transform: scale(1.2); } 30% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* ---------- Secret upload page ---------- */
.uploadpage .hero { min-height: 100svh; }
.upload-card { width: min(100%, 480px); background: rgba(34, 7, 63, .92); border: 3px solid var(--pink); border-radius: 22px; padding: 22px; box-shadow: 0 0 60px rgba(255, 46, 147, .4); text-align: left; }
.upload-card h1 { font-family: "Bungee"; margin: 0 0 6px; font-size: 24px; color: var(--yellow); }
.upload-card > p { margin: 0 0 16px; color: var(--muted); }
.upload-card form { display: flex; flex-direction: column; gap: 12px; }
.upload-card input[type=text], .upload-card textarea { font: 16px "Rubik"; padding: 12px; border-radius: 12px; border: 2px solid #5b21b6; background: #12002b; color: #fff; resize: vertical; }
.drop { border: 3px dashed var(--cyan); border-radius: 16px; padding: 30px 12px; text-align: center; cursor: pointer; color: var(--muted); }
.drop input { display: none; }
.previews { display: flex; gap: 6px; overflow-x: auto; }
.previews img, .previews video { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex: none; }
.progress { position: relative; height: 26px; border-radius: 999px; background: #12002b; overflow: hidden; border: 2px solid var(--cyan); }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .2s; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.error { color: #ff8fa3; margin: 0; min-height: 1em; }
.done { text-align: center; }
.done[hidden] { display: none; }
.done p { font-size: 20px; font-weight: 800; }
.done .btn { margin: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.upload-card form[hidden] { display: none; }

/* ---------- Admin ---------- */
.adminpage { background: #14012a; min-height: 100vh; }
.admin { max-width: 760px; margin: 0 auto; padding: 20px 16px 120px; }
.admin-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-top h1 { font-family: "Bungee"; color: var(--yellow); margin: 0; font-size: 24px; }
.admin-top nav { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-top nav a, .admin-top nav button { font: 600 14px "Rubik"; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 14px; text-decoration: none; cursor: pointer; }
.admin-top form { margin: 0; }
.notice { background: #0f5132; border: 2px solid #2ecc71; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.admin details { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; margin-bottom: 14px; }
.admin summary { cursor: pointer; padding: 16px 18px; font-family: "Bungee"; font-size: 17px; color: var(--cyan); list-style: none; }
.admin summary::after { content: " ▾"; }
.admin details[open] summary::after { content: " ▴"; }
.admin .fields { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.field input[type=text], .field input[type=password], .field textarea { width: 100%; font: 16px "Rubik"; padding: 11px 12px; border-radius: 10px; border: 2px solid #5b21b6; background: #0c001c; color: #fff; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); }
.imgfield { display: flex; gap: 14px; align-items: center; }
.imgfield img { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; border: 2px solid #fff; flex: none; }
.imgfield .opts { display: flex; flex-direction: column; gap: 8px; font-size: 14px; min-width: 0; }
.imgfield input[type=file] { color: var(--muted); max-width: 100%; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: rgba(20, 1, 42, .95); border-top: 2px solid var(--pink); display: flex; justify-content: center; z-index: 5; }
.savebar .btn { width: min(100%, 420px); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: min(100%, 380px); display: flex; flex-direction: column; gap: 14px; background: rgba(34, 7, 63, .95); border: 3px solid var(--pink); border-radius: 22px; padding: 24px; }
.login h1 { font-family: "Bungee"; color: var(--yellow); margin: 0; font-size: 22px; }

.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 2px solid rgba(255,255,255,.12); }
.admin-tabs a { padding: 10px 16px; text-decoration: none; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.admin-tabs a.on { color: #fff; border-color: var(--pink); }
.admin-posts { display: flex; flex-direction: column; gap: 12px; }
.admin-post { display: flex; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px; }
.admin-post.is-hidden { opacity: .6; border-style: dashed; }
.admin-post .thumb { position: relative; flex: none; width: 110px; height: 110px; border-radius: 10px; overflow: hidden; background: #000; }
.admin-post .thumb img, .admin-post .thumb video { width: 100%; height: 100%; object-fit: cover; }
.hidden-badge { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.75); text-align: center; font-size: 11px; font-weight: 800; padding: 4px; }
.admin-post .info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.admin-post small { color: var(--muted); }
.admin-post p { margin: 2px 0; color: #ddd; font-size: 14px; overflow-wrap: anywhere; }
.admin-post .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.admin-post .actions form { margin: 0; }
.btn.danger { background: #ff4d6d; color: #fff; }
.admin-comments { margin-top: 6px; background: none !important; border: 0 !important; }
.admin-comments summary { font: 600 14px "Rubik" !important; color: var(--cyan); padding: 4px 0 !important; }
.admin-comment { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.08); overflow-wrap: anywhere; }
.admin-comment form { margin: 0; }
.admin-comment button { background: none; border: 0; cursor: pointer; }

/* Live updates */
.tile.is-new { animation: tileIn .7s cubic-bezier(.2, 1.4, .4, 1); }
.tile.is-new::after { content: "NUEVO"; position: absolute; top: 8px; left: 8px; background: var(--pink); color: #fff; font: 800 11px "Rubik"; padding: 3px 7px; border-radius: 999px; letter-spacing: .05em; }
@keyframes tileIn { from { transform: scale(.3) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 30; max-width: calc(100vw - 32px); background: var(--yellow); color: #1a0533; font-weight: 800; padding: 12px 20px; border-radius: 999px; border: 3px solid #1a0533; box-shadow: 4px 4px 0 var(--pink); cursor: pointer; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* Profile header on narrow phones */
.profile-info { min-width: 0; }
@media (max-width: 480px) {
  .profile { gap: 16px; padding-bottom: 22px; }
  .profile-pic { width: 84px; }
  .handle { font-size: 19px; margin-bottom: 8px; }
  .profile-stats { gap: 12px; font-size: 13px; }
  .profile-stats li { text-align: center; }
  .profile-stats b { display: block; font-size: 16px; }
  .bio { font-size: 14px; }
}
