* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background: #07070f; color: #e8e8ff; }
a { color: inherit; text-decoration: none; }

/* landing */
body.landing { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1d0a3a, #05050c 70%); }
#bolts { position: fixed; inset: 0; pointer-events: none; }
.hero { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.kicker { color: #ffe600; letter-spacing: .4em; font-weight: 800; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.glitch { font-size: clamp(2.6rem, 11vw, 8rem); margin: .2em 0; font-weight: 900; letter-spacing: .05em; position: relative; color: #fff;
  text-shadow: 0 0 10px #00f0ff, 0 0 30px #00f0ff, 0 0 60px #ff2bd6; animation: flicker 3s infinite; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; right: 0; overflow: hidden; }
.glitch::before { color: #ff2bd6; transform: translate(3px, 0); clip-path: inset(0 0 55% 0); animation: shake .4s infinite alternate; }
.glitch::after { color: #00f0ff; transform: translate(-3px, 0); clip-path: inset(55% 0 0 0); animation: shake .5s infinite alternate-reverse; }
@keyframes shake { to { transform: translate(-3px, 2px); } }
@keyframes flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }
.date { font-size: clamp(2rem, 8vw, 5rem); font-weight: 900; color: #ffe600; text-shadow: 0 0 20px #ffe600; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.where { font-size: clamp(1.2rem, 4vw, 2rem); margin: .4em 0; }
.where b { color: #00f0ff; text-shadow: 0 0 12px #00f0ff; }
.welcome { font-size: clamp(1.1rem, 3vw, 1.8rem); color: #ff2bd6; font-weight: 700; text-shadow: 0 0 12px #ff2bd6; }
.hint { opacity: .7; }
.btn-neon { display: inline-block; margin-top: 1.5rem; padding: 1rem 2.2rem; font-weight: 900; font-size: 1.3rem; letter-spacing: .1em; color: #fff;
  border: 3px solid #00f0ff; border-radius: 6px; box-shadow: 0 0 20px #00f0ff, inset 0 0 20px rgba(0,240,255,.4); animation: glow 1.4s ease-in-out infinite alternate; }
.btn-neon:hover { background: #00f0ff; color: #000; }
@keyframes glow { to { border-color: #ff2bd6; box-shadow: 0 0 35px #ff2bd6, inset 0 0 25px rgba(255,43,214,.4); } }

/* app */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.2rem; background: #11112a; border-bottom: 2px solid #00f0ff; }
.brand { font-weight: 900; font-size: 1.3rem; color: #00f0ff; text-shadow: 0 0 10px #00f0ff; }
.brand small { color: #ffe600; font-size: .75rem; margin-left: .6rem; text-shadow: none; }
.me { display: flex; align-items: center; gap: .6rem; }
.me img { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; }
.me form { margin: 0; }
.btn-small { background: #1c1c44; color: #e8e8ff; border: 1px solid #00f0ff; border-radius: 4px; padding: .35rem .8rem; cursor: pointer; }
.btn-small:hover { background: #00f0ff; color: #000; }
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; padding: .5rem 1.2rem; }
.filters input[name=q], .filters select { background: #15153a; color: #fff; border: 1px solid #44449a; border-radius: 4px; padding: .35rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; padding: 1rem 1.2rem 3rem; }
.card { background: #11112a; border: 1px solid #2a2a60; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: #ff2bd6; box-shadow: 0 0 14px rgba(255,43,214,.5); }
.cover { width: 100%; aspect-ratio: 460/215; object-fit: cover; background: #000; }
.body { padding: .6rem .8rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.body h3 { margin: 0; font-size: 1rem; }
.owners { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.owners img { width: 24px; height: 24px; border-radius: 50%; }
.owners span { margin-left: auto; opacity: .7; font-size: .85rem; }
.body form { margin: 0; margin-top: auto; }
.vote { width: 100%; background: transparent; color: #ffe600; border: 2px solid #ffe600; border-radius: 4px; padding: .3rem; font-weight: 800; cursor: pointer; }
.vote.on { background: #ffe600; color: #000; }
.empty { grid-column: 1 / -1; text-align: center; opacity: .7; }
.modebar { display: flex; justify-content: space-between; align-items: center; padding: .5rem 1.2rem 0; }
.modebar h2 { margin: 0; color: #ffe600; text-shadow: 0 0 10px #ffe600; }
a.btn-small { display: inline-block; }
a.btn-small.accent { border-color: #ff2bd6; box-shadow: 0 0 10px #ff2bd6; font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 1.5rem; }
.choices .btn-neon { margin-top: 0; }
.btn-neon .emoji { font-size: 1.6em; vertical-align: middle; margin-right: .3em; }
.btn-yes { border-color: #39ff14; box-shadow: 0 0 20px #39ff14, inset 0 0 20px rgba(57,255,20,.35); animation: none; }
.btn-yes:hover { background: #39ff14; color: #000; }
.btn-no { border-color: #ff2bd6; box-shadow: 0 0 20px #ff2bd6, inset 0 0 20px rgba(255,43,214,.35); animation: none; opacity: .85; }
.btn-no:hover { background: #ff2bd6; color: #000; }
.attendees { text-align: center; padding: 2rem 1rem; }
.attendees h2 { color: #39ff14; text-shadow: 0 0 12px #39ff14; }
.faces { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 1.5rem 0; }
.face { display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 110px; }
.face img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid #00f0ff; box-shadow: 0 0 14px #00f0ff; }
.face span { font-weight: 700; word-break: break-word; }
.badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.badge { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: #1c1c44; border: 1px solid #44449a; cursor: help; }
.badge.all { background: #3a2f00; border-color: #ffe600; color: #ffe600; font-weight: 700; }
.owner-names { font-size: .75rem; opacity: .7; }
.body h3 a:hover { color: #00f0ff; }
.store-link { font-size: .7rem; font-weight: 400; color: #00f0ff; white-space: nowrap; }
.cover { display: block; }
.btn-small { padding: .6rem 1.2rem; font-size: 1rem; border-radius: 6px; }
.filters input[name=q], .filters select { padding: .55rem .7rem; font-size: 1rem; }
.vote { padding: .65rem; font-size: 1.15rem; border-radius: 6px; }
.owners img { width: 28px; height: 28px; }
.badge { font-size: .85rem; padding: .2rem .65rem; }
.nav { margin-right: auto; margin-left: 1rem; }
.badge.price { background: #0b3a1a; border-color: #39ff14; color: #39ff14; font-weight: 700; text-decoration: none; }

.leave-form { margin-top: 2rem; }

/* mobile */
@media (max-width: 640px) {
  body.landing { overflow-y: auto; }
  .hero { padding: 1.5rem 1rem; }
  .kicker { letter-spacing: .2em; font-size: .85rem; }
  .choices { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; gap: .9rem; }
  .btn-neon { padding: .9rem 1.2rem; font-size: 1.1rem; letter-spacing: .05em; text-align: center; }
  .top { padding: .7rem .8rem; gap: .6rem; }
  .brand { font-size: 1.1rem; }
  .brand small { display: block; margin: .1rem 0 0; }
  .nav { margin: 0; width: 100%; order: 3; }
  .nav .btn-small { display: block; text-align: center; }
  .me { width: 100%; flex-wrap: wrap; order: 2; }
  .me form { flex: 1 1 auto; }
  .me form .btn-small { width: 100%; }
  .modebar, .filters { padding-left: .8rem; padding-right: .8rem; }
  .modebar { flex-wrap: wrap; gap: .6rem; }
  .modebar h2 { font-size: 1.3rem; }
  .filters { gap: .6rem; }
  .filters input[name=q] { flex: 1 1 100%; }
  .filters label { flex: 1 1 45%; display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
  .filters input, .filters select { font-size: 16px; width: 100%; }
  .grid { grid-template-columns: 1fr; padding: .8rem .8rem 3rem; }
  .btn-small { padding: .7rem 1rem; }
  .vote { padding: .8rem; }
  .faces { gap: 1rem; }
  .face { width: 90px; }
  .face img { width: 76px; height: 76px; }
  .attendees { padding: 1.5rem .8rem; }
}
.sound-toggle { position: fixed; top: .8rem; right: .8rem; z-index: 5; background: rgba(17,17,42,.8); color: #fff; border: 1px solid #00f0ff; border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.4rem; cursor: pointer; box-shadow: 0 0 12px #00f0ff; }
.sound-toggle:hover { background: #00f0ff; }
