:root { --bg: #0b0d17; --card: rgba(17, 20, 36, 0.92); --text: #f3efe6; --muted: #b9b3a6; --gold: #ffd27a;
        --gold-d: #e8b04b; --danger: #ff7a7a; --radius: 14px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--gold); }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: .01em; margin: 0 0 .4em; }
.page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #2a2340 0%, var(--bg) 60%); }
.card { width: 100%; max-width: 560px; background: var(--card); border: 1px solid rgba(255, 210, 122, .15);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.footer { color: var(--muted); font-size: 14px; margin-top: 18px; text-align: center; }
.small { color: var(--muted); font-size: 15px; }
.lead { font-size: 21px; }
.form { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input:not([type]), .form input[type=file] {
  font: inherit; color: var(--text); background: #151a2e; border: 1px solid #2c3352; border-radius: 10px; padding: 12px 14px; }
.form input:focus { outline: 2px solid var(--gold-d); border-color: transparent; }
.hint { font-size: 13px; color: #8d8879; }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; color: var(--text) !important; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold-d); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: inherit; font-weight: 600;
  color: #1b1405; background: linear-gradient(180deg, var(--gold), var(--gold-d)); border: 0; border-radius: 999px;
  padding: 13px 24px; text-decoration: none; cursor: pointer; min-height: 48px; }
.btn:disabled { opacity: .5; }
.btn-secondary { color: var(--text); background: transparent; border: 1px solid rgba(255, 210, 122, .5); }
.btn-danger { color: #fff; background: #8a2b2b; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.msg { padding: 10px 14px; border-radius: 10px; }
.msg.error { background: rgba(255, 122, 122, .12); color: #ffb3b3; }
.msg.info { background: rgba(255, 210, 122, .1); color: var(--text); }
.file-info { color: var(--muted); font-size: 14px; margin: -6px 0 0; }
.progress-box { margin: 18px 0; }
.bar { height: 10px; background: #222842; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-d), var(--gold)); transition: width .3s; }
.my-video { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
details summary { cursor: pointer; color: var(--muted); }
.forgot { margin: 10px 0 18px; }

/* landing with globe */
.globe-page { overflow: hidden; height: 100vh; height: 100dvh; }
.globe { position: fixed; inset: 0; }
.hero { position: fixed; top: 0; left: 0; right: 0; text-align: center; padding: 22px 12px 0; pointer-events: none;
  text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.hero h1 { font-size: clamp(30px, 6vw, 64px); color: var(--gold); margin: 0; }
.count { font-size: clamp(17px, 2.4vw, 24px); margin: 4px 0 0; }
.panel { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  background: var(--card); border: 1px solid rgba(255, 210, 122, .15); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.panel p { margin: 0 0 8px; }
.panel .actions { margin: 10px 0 6px; }
.footer-inline { color: var(--muted); font-size: 13px; margin: 6px 0 0 !important; }
.globe-tip { background: rgba(10, 12, 24, .85); border: 1px solid rgba(255, 210, 122, .4); padding: 6px 10px;
  border-radius: 8px; font: 15px/1.3 -apple-system, sans-serif; color: var(--text); }
@media (max-width: 600px) {
  .panel { padding: 12px 14px; font-size: 15px; }
  .panel .btn { flex: 1; }
}

/* admin */
.admin-wrap { width: 100%; max-width: 1200px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-head h1 { font-size: 26px; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: var(--radius); }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid #252b45; text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 500; }
.admin-table tr.is-hidden td { opacity: .5; }
.admin-table tr.no-coords td { background: rgba(255, 122, 122, .06); }
.row-actions { white-space: nowrap; }
.btn-sm { font: inherit; font-size: 14px; color: var(--text); background: #1d2340; border: 1px solid #2f375c; border-radius: 8px;
  padding: 5px 10px; cursor: pointer; margin: 2px; }
.btn-sm.danger { color: #ffb3b3; border-color: #5a2a2a; }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: #2b2f45; color: var(--muted); }
.tag.warn { background: rgba(255, 122, 122, .18); color: #ffb3b3; margin-top: 4px; }
.player { background: #000; border: 0; padding: 0; max-width: 92vw; border-radius: 12px; }
.player::backdrop { background: rgba(0,0,0,.8); }
.player video { display: block; max-width: 92vw; max-height: 80vh; }
.player form { text-align: center; padding: 10px; }
.place-dlg { background: var(--card); color: var(--text); border: 1px solid #2f375c; border-radius: var(--radius); width: min(720px, 94vw); }
.place-dlg::backdrop { background: rgba(0,0,0,.7); }
.place-dlg h2 { margin: 0; font-size: 20px; }
.pick-globe { position: relative; height: 380px; border-radius: 12px; overflow: hidden; }

/* party show screen */
.show-page .hero h1 { font-size: clamp(40px, 6vw, 84px); }
.show-tools { position: fixed; left: 16px; bottom: 14px; display: flex; gap: 10px; align-items: center; transition: opacity .3s; }
.show-tools .btn { min-height: 38px; padding: 7px 16px; font-size: 15px; }
.show-tools.dim { opacity: .08; }
.show-tools.dim:hover { opacity: 1; }
.cluster { position: fixed; z-index: 5; display: flex; flex-direction: column; gap: 4px; background: rgba(10,12,24,.92);
  border: 1px solid rgba(255,210,122,.4); border-radius: 12px; padding: 8px; min-width: 220px; }
.cluster button { font: inherit; text-align: left; color: var(--text); background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.cluster button:hover { background: rgba(255,210,122,.15); }
.cluster button span { color: var(--muted); }
.cluster button.seen { color: #a9c1ff; }
.overlay { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center;
  animation: fadein .35s ease; }
.overlay video { width: 100vw; height: 100vh; object-fit: contain; }
.caption { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); font-size: clamp(22px, 3vw, 40px);
  background: rgba(0,0,0,.55); padding: 10px 26px; border-radius: 999px; opacity: 0; transition: opacity .6s; pointer-events: none; }
.caption.show { opacity: 1; }
.caption b { color: var(--gold); }
.overlay-close { position: absolute; top: 14px; right: 18px; font-size: 40px; line-height: 1; color: #fff; opacity: .4;
  background: none; border: 0; cursor: pointer; }
.overlay-close:hover { opacity: 1; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
