/* ==========================================================================
   SociaVerse — premium dark glass design system (pure CSS)
   ========================================================================== */
:root {
  --primary: #3b82f6;
  --accent: #f59e0b;
  --bg: #080c14;
  --bg-2: #0f1726;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .09);
  --text: #e8edf5;
  --muted: #94a3b8;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #f43f5e;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --grad: linear-gradient(135deg, color-mix(in srgb, var(--primary) 78%, #fff), var(--primary) 55%, color-mix(in srgb, var(--primary) 82%, #000));
  --grad-text: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff));
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Ambient background orbs */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(1) { width: 520px; height: 520px; background: var(--primary); top: -160px; left: -120px; }
.bg-orbs span:nth-child(2) { width: 420px; height: 420px; background: var(--accent); bottom: -140px; right: -100px; animation-delay: -8s; opacity: .22; }
.bg-orbs span:nth-child(3) { width: 300px; height: 300px; background: #f9735b; top: 40%; left: 55%; animation-delay: -14s; opacity: .14; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

/* Glass surfaces */
.glass {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px); background: rgba(8, 12, 20, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.25rem var(--display); color: #fff; letter-spacing: -.02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.nav > a:not(.btn):hover { color: #fff; background: var(--surface-2); }
.nav-me { display: flex !important; align-items: center; gap: 8px; }
.nav-msg { position: relative; }
.nav-toggle { display: none; margin-left: auto; background: var(--surface-2); color: #fff; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.inline { display: inline; }

/* Buttons */
.btn {
  --b: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--b);
  color: #fff; font: 600 .95rem var(--font); cursor: pointer; transition: transform .15s, box-shadow .25s, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; box-shadow: 0 8px 30px -10px var(--primary); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px var(--primary); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-xs { padding: 5px 10px; font-size: .8rem; border-radius: 9px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; }
.link-btn:hover { color: var(--danger); }

/* Forms */
label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: .88rem; font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(0, 0, 0, .3); color: var(--text); font: 400 .95rem var(--font); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }
input[type=checkbox] { width: auto; accent-color: var(--primary); }
input[type=color] { padding: 4px; height: 46px; }
textarea { resize: vertical; }
select option { background: var(--bg-2); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; }
legend { padding: 0 8px; font: 600 1rem var(--display); color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form select, .inline-form input { width: auto; padding: 7px 10px; font-size: .85rem; }
.row-form { padding: 10px 0; border-bottom: 1px solid var(--border); }
.icon-input { width: 60px !important; text-align: center; }

/* Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: rgba(255, 255, 255, .14); border-radius: 99px; cursor: pointer; transition: .25s; }
.switch span::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::before { transform: translateX(22px); }

/* Layout */
.main { width: min(1200px, 100%); margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px); min-height: 70vh; }
.narrow { max-width: 760px; margin: 0 auto; }
.stack > * + * { margin-top: 18px; }
.stack-sm > * + * { margin-top: 10px; }
.section { margin-top: 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 68vh; }
.display { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 700; background: linear-gradient(120deg, #fff 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; }
.pill { display: inline-flex; padding: 7px 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .85rem; margin-bottom: 22px; }
.pill::first-letter { color: var(--success); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.stat-row { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-row strong { display: block; font: 700 1.6rem var(--display); }
.stat-row span { color: var(--muted); font-size: .85rem; }
.hero-visual { display: grid; place-items: center; }
.planet { position: relative; width: min(420px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 70%, #fff), var(--primary) 45%, #14244a 75%);
  box-shadow: 0 0 120px -10px var(--primary), inset -40px -40px 80px rgba(0,0,0,.5); animation: float 7s ease-in-out infinite; }
.planet::before { content: ''; position: absolute; inset: -18% -30%; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); transform: rotateX(72deg) rotate(-18deg); }
.planet i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px var(--accent); animation: blink 3s ease-in-out infinite; }
.planet i:nth-child(1) { top: 22%; left: 30%; } .planet i:nth-child(2) { top: 48%; left: 62%; animation-delay: -1s; background: #f9735b; box-shadow: 0 0 18px 4px #f9735b; }
.planet i:nth-child(3) { top: 66%; left: 34%; animation-delay: -2s; } .planet i:nth-child(4) { top: 30%; left: 70%; animation-delay: -.5s; background: var(--warn); box-shadow: 0 0 18px 4px var(--warn); }
.planet i:nth-child(5) { top: 74%; left: 60%; animation-delay: -1.6s; }
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes blink { 50% { opacity: .35; transform: scale(.7); } }

/* Features & cards */
.feature { padding: 30px; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad); font-size: 1.6rem; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 5px 0 5px 28px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.job-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; color: var(--text); transition: transform .2s, border-color .2s; }
.job-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--text); }
.job-card h3 { font-size: 1.1rem; margin: 0; flex: 1; }
.job-card-top, .job-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay { font: 700 1.25rem var(--display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; color: var(--text); white-space: nowrap; }
.chip-safe { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.35); color: #6ee7b7; }
.chip-warn { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.35); color: #fcd34d; }
.chip-danger { background: rgba(244,63,94,.14); border-color: rgba(244,63,94,.35); color: #fda4af; }
.badge-verified { display: inline-flex; padding: 2px 8px; border-radius: 99px; font: 600 .72rem var(--font); background: rgba(245,158,11,.15); color: var(--accent); vertical-align: middle; letter-spacing: 0; }

/* Avatar */
.avatar { --c: var(--primary); display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #fff; font-weight: 700;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 6px 18px -6px var(--c); }
.avatar-sm { width: 30px; height: 30px; font-size: .8rem; }
.avatar-md { width: 44px; height: 44px; }
.avatar-xl { width: 110px; height: 110px; font-size: 2.6rem; }

/* Lists */
.list { padding: 6px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; color: var(--text); }
a.list-row:hover { background: var(--surface-2); color: var(--text); }
.list-row + .list-row { border-top: 1px solid var(--border); }
.list-main { flex: 1; min-width: 0; }
.list-main p { margin: 6px 0 0; font-size: .92rem; }
.list-side { display: flex; align-items: center; gap: 8px; }
.dot-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; }
.empty-state { text-align: center; padding: 60px 24px; }
.big-emoji { font-size: 3.4rem; margin-bottom: 10px; }

/* Alerts & toasts */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; }
.alert-error { background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.35); color: #fecdd3; }
.alert-info { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(92vw, 460px); padding: 14px 20px; border-radius: 14px;
  background: rgba(17, 25, 40, .95); border: 1px solid var(--border); box-shadow: var(--shadow); animation: toast-in .35s cubic-bezier(.2,.9,.3,1.3); }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px); } }

/* Auth */
.auth-wrap { display: grid; place-items: center; min-height: 75vh; padding: 20px; }
.auth-card { width: min(480px, 100%); padding: clamp(24px, 5vw, 40px); }
.auth-card h1 { font-size: 2rem; }

/* Filters, tabs, pager */
.filter-bar { display: flex; gap: 10px; padding: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-bar input { flex: 2 1 220px; }
.filter-bar select { flex: 1 1 160px; width: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 10px; color: var(--muted); border: 1px solid var(--border); }
.tabs a.active, .tabs a:hover { background: var(--surface-2); color: #fff; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager a { min-width: 40px; padding: 8px; text-align: center; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); }
.pager a.active { background: var(--grad); color: #fff; border-color: transparent; }

/* Job detail */
.job-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.job-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 6px; }
.job-desc { color: #d6dde8; }
.job-apps { grid-column: 1 / -1; }
.pay-box { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.pay-big { font: 700 2.3rem var(--display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.escrow-state { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: .9rem; }
.escrow-funded, .escrow-released { background: rgba(16,185,129,.14); color: #6ee7b7; }
.employer-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.safety-tips ul { padding-left: 18px; margin: 8px 0; color: var(--muted); }
.onsite { margin-top: 6px; }

/* Profile */
.profile-hero { display: flex; gap: 28px; padding: 32px; align-items: flex-start; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.verify-box form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Prose (CMS pages) */
.prose { max-width: 820px; margin: 0 auto; padding: clamp(24px, 5vw, 48px); }
.prose h2 { margin-top: 1.6em; }

/* Chat */
.chat { display: flex; flex-direction: column; max-width: 820px; margin: 0 auto; height: calc(100vh - 150px); height: calc(100dvh - 150px); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat-head > a:nth-of-type(2) { color: var(--text); flex: 1; }
.chat-safety .safety-menu { display: flex; gap: 4px; }
.safety-banner { padding: 8px 18px; font-size: .8rem; color: #fcd34d; background: rgba(245,158,11,.08); border-bottom: 1px solid var(--border); }
.chat-list { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 76%; padding: 10px 14px; border-radius: 18px; animation: toast-in .25s ease; }
.bubble p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.bubble time { display: block; font-size: .7rem; opacity: .6; margin-top: 3px; }
.bubble.mine { align-self: flex-end; background: var(--grad); border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.bubble.flagged { outline: 1px dashed var(--warn); }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); }
.chat-form textarea { min-height: 46px; max-height: 140px; }

/* ===== 3D World ===== */
.world-page .main { width: 100%; max-width: none; padding: 0; }
.world { position: relative; height: calc(100vh - 71px); height: calc(100dvh - 71px); overflow: hidden; }
.world-canvas { position: absolute; inset: 0; }
.world-canvas canvas { display: block; }
.world-labels { position: absolute; inset: 0; }
.world-tag { padding: 3px 10px; border-radius: 99px; background: rgba(8,12,20,.75); border: 1px solid var(--border); font-size: .74rem; font-weight: 600; white-space: nowrap; pointer-events: none; backdrop-filter: blur(6px); }
.me-label { background: var(--grad); border: 0; }
.job-label { color: #fcd34d; }
.ring-label { background: none; border: 0; color: var(--accent); opacity: .6; font-size: .68rem; }
.world-status { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: 10px 18px; font-size: .9rem; z-index: 5; text-align: center; max-width: 92vw; }
.world-panel { position: absolute; top: 18px; left: 18px; width: 300px; padding: 20px; z-index: 6; max-height: calc(100% - 36px); overflow-y: auto; transition: transform .3s; }
.panel-handle { display: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; }
.switch-row small { display: block; color: var(--muted); font-size: .76rem; }
.small-label select { padding: 9px 12px; }
.layer-toggles { display: flex; gap: 16px; margin: 4px 0 12px; flex-wrap: wrap; }
.layer-toggles label { flex-direction: row; align-items: center; margin: 0; color: var(--text); cursor: pointer; }
.world-counts { font-size: .85rem; color: var(--muted); }
.world-counts span { color: #fff; font-weight: 700; }
.wave-inbox h3 { font-size: .95rem; margin: 16px 0 8px; }
.wave-row { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--border); }
.wave-row a { flex: 1; color: var(--text); font-weight: 600; font-size: .9rem; }
.privacy-note { margin: 14px 0 0; font-size: .76rem; color: var(--muted); }
.world-card { position: absolute; right: 18px; bottom: 18px; width: 320px; padding: 22px; z-index: 7; animation: toast-in .3s ease; }
.world-card h3 { margin-right: 26px; }
.card-close { position: absolute; top: 12px; right: 12px; background: var(--surface-2); color: #fff; border: 0; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; }
.safety-menu { display: flex; gap: 4px; }

/* ===== Admin ===== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 71px); }
.admin-side { padding: 20px 14px; border-right: 1px solid var(--border); background: rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 4px; position: sticky; top: 71px; height: calc(100vh - 71px); overflow-y: auto; }
.admin-side a { display: flex; gap: 10px; padding: 10px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; }
.admin-side a:hover, .admin-side a.active { background: var(--surface-2); color: #fff; }
.admin-side a.active { box-shadow: inset 3px 0 0 var(--primary); }
.admin-main { padding: clamp(18px, 3vw, 36px); min-width: 0; }
.admin-main > * + * { margin-top: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.stat-card { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-card span { font-size: 1.4rem; }
.stat-card strong { font: 700 2rem var(--display); }
.stat-card small { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; padding: 14px; color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table .actions { white-space: nowrap; }
.table .avatar { vertical-align: middle; margin-right: 6px; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-bottom: 16px; }
.perm-grid label { flex-direction: row; align-items: center; margin: 0; color: var(--text); }

/* Footer */
.footer { padding: 40px 20px; text-align: center; color: var(--muted); border-top: 1px solid var(--border); margin-top: 60px; font-size: .88rem; }
.footer-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 20px; }
  .hero-visual { order: -1; }
  .planet { width: min(260px, 60vw); }
  .lead { margin-inline: auto; }
  .hero-cta, .stat-row { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .job-layout { grid-template-columns: 1fr; }
  .pay-box { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px; }
  .admin-side a { white-space: nowrap; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 71px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px;
    background: rgba(10, 8, 22, .97); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .3s; margin: 0; }
  .nav.open { transform: none; }
  .nav > a, .nav form, .nav .btn { width: 100%; }
  .grid-2, .grid-3, .form-grid, .form-grid-3, .perm-grid { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; align-items: center; text-align: center; padding: 24px; }
  .profile-hero .chips, .profile-hero .card-actions { justify-content: center; }
  .section { margin-top: 56px; }
  /* World becomes a bottom sheet on phones */
  .world-panel { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 55%; border-radius: 22px 22px 0 0; padding-top: 28px; }
  .world-panel.collapsed { transform: translateY(calc(100% - 64px)); }
  .panel-handle { display: block; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 48px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); border: 0; cursor: pointer; padding: 0; }
  .world-card { left: 12px; right: 12px; bottom: auto; top: 70px; width: auto; }
  .bubble { max-width: 88%; }
  .chat { height: calc(100dvh - 110px); border-radius: 0; }
  /* Tables become cards */
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .table td { display: block; border: 0; padding: 6px 14px; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ==========================================================================
   v2 — premium layer (overrides above)
   ========================================================================== */
::selection { background: color-mix(in srgb, var(--primary) 55%, transparent); }
body { background: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent), var(--bg); }
.icon { flex-shrink: 0; vertical-align: -3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; padding: 8px 14px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); }
.glass { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06); }

/* Header */
.topbar { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; transition: background .3s, box-shadow .3s, padding .3s; background: rgba(8,12,20,.55); }
.topbar.scrolled { background: rgba(8,12,20,.86); box-shadow: 0 10px 40px -12px rgba(0,0,0,.8); }
@keyframes spin { to { transform: rotate(1turn); } }
.nav { margin: 0 auto; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--border); }
.nav > a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: .92rem; position: relative; }
.nav > a:hover { color: #fff; background: var(--surface-2); }
.nav > a.active { color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 35%, transparent), color-mix(in srgb, var(--accent) 18%, transparent)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav .dot-count { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; font-size: .65rem; }
.top-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s, transform .15s; font-size: 1.2rem; }
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn .dot-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: .66rem; box-shadow: 0 0 0 3px var(--bg); }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .88rem; }
.me-chip:hover { color: #fff; background: var(--surface-2); }
.nav-toggle { display: none; }
img.avatar { object-fit: cover; padding: 0; }

/* Notification bell */
.bell { position: relative; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, 92vw); padding: 8px; z-index: 80; animation: toast-in .2s ease; background: rgba(16,13,32,.97); }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-item { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px 11px 30px; border-radius: 10px; color: var(--text); font-size: .9rem; position: relative; }
.bell-item::before { content: ''; position: absolute; left: 12px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.bell-item.unread::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.bell-item:hover { background: var(--surface-2); color: #fff; }
.bell-item small { color: var(--muted); }
.bell-empty { padding: 30px 0; }

/* Typography helpers */
.eyebrow { display: inline-block; font: 600 .75rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.eyebrow-green { color: #34d399; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sub-head { font-size: 1rem; margin: 10px 0 12px; color: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Hero v2 */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,.7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.pill { align-items: center; gap: 8px; }
.pill::first-letter { color: inherit; }
.display { letter-spacing: -.035em; background: linear-gradient(120deg, #fff 20%, color-mix(in srgb, var(--accent) 80%, #fff) 60%, var(--primary)); -webkit-background-clip: text; background-clip: text; }
.hero-visual { position: relative; min-height: 460px; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); }
.orbit-1 { width: 520px; height: 520px; max-width: 108vw; max-height: 108vw; animation: spin 60s linear infinite; }
.orbit-2 { width: 380px; height: 380px; max-width: 82vw; max-height: 82vw; border-style: solid; border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.planet { width: min(320px, 66vw); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(15,23,38,.78); animation: float 6s ease-in-out infinite; min-width: 230px; }
.float-card b { display: block; font-size: .9rem; }
.float-card small { color: var(--muted); font-size: .76rem; }
.fc-1 { top: 6%; left: -4%; }
.fc-2 { bottom: 14%; right: -6%; animation-delay: -2s; }
.fc-3 { bottom: 0; left: 6%; animation-delay: -4s; min-width: 0; }
.fc-avatar { --c: #f9735b; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c); font-weight: 700; box-shadow: 0 0 18px -2px var(--c); }
.fc-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(251,191,36,.16); color: #fbbf24; }
.fc-green { background: rgba(16,185,129,.16); color: #34d399; }
.fc-emoji { font-size: 1.3rem; margin-left: auto; }
.fc-lock { color: #34d399; margin-left: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px; position: relative; overflow: hidden; }
.step-n { position: absolute; right: 18px; top: 10px; font: 700 3.6rem var(--display); color: rgba(255,255,255,.05); }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px; color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px var(--primary); }
.step h3 { font-size: 1.15rem; }

/* Feature cards */
.feature-icon { color: #fff; box-shadow: 0 12px 30px -12px var(--primary); }
.fi-pink { background: linear-gradient(135deg, #f9735b, #3b82f6); box-shadow: 0 12px 30px -12px #f9735b; }
.glow-border { position: relative; }
.glow-border::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 70%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--accent) 70%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; transition: opacity .3s; pointer-events: none; }
.glow-border:hover::before { opacity: 1; }
.feature .text-link { margin-top: 18px; }

/* Safety band & CTA */
.safety-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; padding: clamp(24px, 4vw, 44px); }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.safety-grid > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 16px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--border); }
.safety-grid svg { grid-row: span 2; color: var(--accent); margin-top: 2px; }
.safety-grid span { color: var(--muted); font-size: .86rem; }
.cta-band { text-align: center; padding: clamp(40px, 7vw, 80px) 20px; border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(600px 240px at 50% 0%, color-mix(in srgb, var(--primary) 40%, transparent), transparent), linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--border); }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }

/* Job cards v2 */
.job-card { position: relative; overflow: hidden; }
.job-card::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
.job-card:hover::after { opacity: 1; }
.cat-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); font-size: 1.3rem; }
.job-card .chip { gap: 5px; }

/* Stars & reviews */
.stars { display: inline-flex; align-items: center; gap: 1px; font-size: .9rem; }
.stars i { font-style: normal; color: rgba(255,255,255,.18); }
.stars i.on { color: #fbbf24; text-shadow: 0 0 8px rgba(251,191,36,.5); }
.stars b { margin-left: 5px; } .stars small { color: var(--muted); margin-left: 2px; }
.review-form { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.25); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { display: none; }
.star-input label { margin: 0; font-size: 1.8rem; color: rgba(255,255,255,.2); cursor: pointer; transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #fbbf24; }
.star-input label:hover { transform: scale(1.15); }

/* Photo upload */
.photo-box { display: flex; gap: 24px; align-items: center; }
.file-pick { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 600; cursor: pointer; margin: 0 8px 0 0; }
.file-pick input { display: none; }

/* Chat spots */
.spot-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--border); }
.chip-btn { cursor: pointer; font: inherit; font-size: .78rem; }
.chip-btn:hover { background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.4); }

/* World v2 */
.world-loader { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 20px; background: radial-gradient(circle, rgba(13,10,30,.75), rgba(6,10,17,.96)); transition: opacity .6s, visibility .6s; }
.world-loader.done { opacity: 0; visibility: hidden; }
.world-loader p { max-width: 340px; color: var(--muted); }
.radar { position: relative; width: 150px; height: 150px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: repeating-radial-gradient(circle, transparent 0 24px, color-mix(in srgb, var(--accent) 18%, transparent) 25px 26px); overflow: hidden; }
.radar i { position: absolute; inset: 0; background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 25%); animation: spin 2.2s linear infinite; }
.world-loader.blocked .radar i { animation: none; opacity: .2; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-title h2 { margin: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: #6ee7b7; padding: 4px 10px; border-radius: 99px; background: rgba(16,185,129,.12); }
.world-panel { width: 310px; background: rgba(15,23,38,.72); }
.switch-row strong { display: flex; align-items: center; gap: 6px; }
.prefs { margin-bottom: 14px; border-radius: 14px; border: 1px solid var(--border); padding: 4px 12px; }
.prefs summary { cursor: pointer; padding: 8px 0; font-weight: 600; font-size: .88rem; }
.prefs .small-label { font-size: .78rem; margin-bottom: 10px; }
.prefs select, .prefs input { padding: 8px 10px; font-size: .85rem; }
.pref-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.age-range { display: flex; align-items: center; gap: 4px; }
.age-range b { color: var(--muted); }
.layer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.layer-chips label { margin: 0; flex-direction: row; }
.layer-chips input { display: none; }
.layer-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .8rem; cursor: pointer; transition: .2s; }
.layer-chips input:checked + span { color: #fff; background: var(--surface-2); border-color: rgba(255,255,255,.18); }
.layer-chips b { color: #fff; }
.lg { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-people { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.lg-jobs { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.lg-spots { background: #10b981; box-shadow: 0 0 8px #10b981; }
.world-tools { position: absolute; right: 18px; top: 18px; z-index: 6; display: flex; flex-direction: column; gap: 8px; }
.world-tools .icon-btn { width: 44px; height: 44px; background: rgba(15,23,38,.72); }
.world-tag { display: inline-flex; align-items: center; gap: 6px; }
.world-tag img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-left: -6px; border: 2px solid rgba(255,255,255,.6); }
.spot-label { color: #6ee7b7; border-color: rgba(16,185,129,.35); }
.district-label { background: rgba(245,158,11,.15); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: #fff; font-size: .82rem; padding: 6px 14px; }
.world-card { width: 340px; background: rgba(15,23,38,.88); }
.card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.card-head h3 { margin: 0 26px 2px 0; font-size: 1.15rem; }
.card-head p { margin: 0; }
.card-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.card-initial { --c: var(--primary); display: grid; place-items: center; font: 700 1.6rem var(--display); background: var(--c); }
.card-bio { color: #d6dde8; font-size: .92rem; }
.card-pay { font: 700 1.6rem var(--display); margin: 8px 0 4px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.escrow-ok { color: #6ee7b7; font-size: .88rem; }

/* Admin v2 */
.admin-side { background: rgba(8,13,22,.6); }
.admin-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 14px 10px; }
.admin-side a { align-items: center; }
.admin-back { margin-top: auto; font-size: .85rem; }
.stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 8px; }
.stat-card span { font-size: inherit; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.key-users::before { background: var(--primary); } .key-jobs::before { background: var(--accent); }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 10px 0; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bars i { width: 40%; min-height: 3px; border-radius: 4px 4px 0 0; transition: height .6s; }
.b-users { background: linear-gradient(var(--primary), color-mix(in srgb, var(--primary) 40%, transparent)); }
.b-jobs { background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.bar-col small { color: var(--muted); font-size: .7rem; }

/* Responsive v2 */
@media (max-width: 1100px) {
  .nav > a span { display: none; }
  .nav > a { padding: 9px 11px; }
}
@media (max-width: 980px) {
  .steps, .safety-band { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: auto 1fr; }
  .nav-toggle { display: inline-grid; }
  .nav { position: fixed; top: 69px; left: 10px; right: 10px; margin: 0; padding: 10px; flex-direction: column; align-items: stretch; border-radius: 18px; background: rgba(12,10,26,.97);
    transform: translateY(-12px) scale(.98); opacity: 0; visibility: hidden; transition: .25s; z-index: 70; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav > a span { display: inline; }
  .nav > a { padding: 13px 14px; font-size: 1rem; }
  .nav .dot-count { position: static; margin-left: auto; }
  .me-chip span, .hide-xs { display: none; }
  .me-chip { padding: 3px; }
  .safety-grid { grid-template-columns: 1fr; }
  .float-card { min-width: 0; padding: 10px 12px; transform: scale(.88); }
  .fc-3 { display: none; }
  .hero-visual { min-height: 320px; }
  .photo-box { flex-direction: column; text-align: center; }
  .world-tools { top: 12px; right: 12px; }
  .world-panel { width: auto; }
  .world-card { width: auto; top: 12px; right: 66px; }
}

/* v2.1 fixes */
.world-tag.is-clickable { pointer-events: auto; cursor: pointer; transition: transform .15s, background .15s; }
.world-tag.is-clickable:hover { transform: scale(1.08); background: rgba(22,33,56,.95); }
.person-label { padding: 5px 12px 5px 8px; }
.age-range input { min-width: 0; width: 100%; padding: 8px 6px; text-align: center; }
.pref-row { grid-template-columns: 1fr 1.1fr; }

.world-canvas { z-index: 0; isolation: isolate; }
.nav-logout { display: none; }
@media (max-width: 760px) {
  .top-actions > form.inline { display: none; }
  .nav-logout { display: block; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
  .nav-logout button { width: 100%; justify-content: flex-start; gap: 8px; padding: 13px 14px; color: var(--muted); }
  .world-panel { max-height: 62%; }
  .world-panel.collapsed { transform: translateY(calc(100% - 118px)); }
}

/* ==========================================================================
   v3 — Lagos world, hangouts, sound, studio
   ========================================================================== */
h1, h2, h3, .display, .brand, .pay, .pay-big, .card-pay, .stat-card strong { font-family: var(--display); }
body, input, select, textarea, button { font-family: var(--font); }
.display { font-weight: 800; letter-spacing: -.04em; }

/* Music player */
.player { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 18px; background: rgba(15,23,38,.85); max-width: calc(100vw - 32px); transition: padding .25s; }
.player-art { width: 44px; height: 44px; border-radius: 13px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--grad); flex-shrink: 0; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 6px; border-radius: 2px; background: #fff; }
.player.is-playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.player .eq i:nth-child(2) { animation-delay: -.3s; } .player .eq i:nth-child(3) { animation-delay: -.6s; } .player .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 50% { height: 18px; } }
.player-body { display: none; align-items: center; gap: 12px; padding-right: 8px; }
.player.open .player-body { display: flex; }
.player-meta { display: flex; flex-direction: column; min-width: 0; max-width: 170px; }
.player-meta strong { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; align-items: center; gap: 4px; }
.pbtn { width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; font-size: .85rem; opacity: .75; }
.pbtn:hover { background: var(--surface-2); opacity: 1; }
.pbtn.on { opacity: 1; color: var(--accent); background: rgba(245,158,11,.12); }
.pbtn-main { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #111; opacity: 1; font-size: .8rem; }
.player-controls input[type=range] { width: 80px; padding: 0; accent-color: var(--primary); }
.world-page .player { bottom: 16px; top: auto; left: 16px; right: auto; }
@media (pointer: coarse) { .world-page .player { top: auto; bottom: 140px; left: auto; right: 12px; } }
.hangout .emote-bar { left: 50%; transform: translateX(-50%); }

/* World HUD */
.loader-title { margin: 0; font-size: 1.5rem; }
.hud-top { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 8px; }
.hud-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; font-size: .84rem; font-weight: 600; color: var(--text); background: rgba(15,23,38,.72); white-space: nowrap; }
a.hud-chip:hover { color: #fff; background: rgba(22,33,56,.9); }
.emote-bar { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 4px; padding: 6px; border-radius: 99px; background: rgba(15,23,38,.72); }
.emote-bar button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; font-size: 1.35rem; cursor: pointer; transition: transform .15s, background .15s; }
.emote-bar button:hover { background: var(--surface-2); transform: translateY(-3px) scale(1.1); }
.joystick { display: none; position: absolute; left: 22px; bottom: 26px; z-index: 7; width: 120px; height: 120px; border-radius: 50%; touch-action: none;
  background: radial-gradient(circle, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.joystick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--grad); box-shadow: 0 8px 24px -6px var(--primary); transition: transform .05s; }
@media (pointer: coarse) { .joystick { display: block; } .walk-hint { display: none; } }
.walk-hint { position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 7px 14px; border-radius: 99px; font-size: .78rem; color: var(--muted); background: rgba(15,23,38,.6); white-space: nowrap; }
kbd { display: inline-block; padding: 1px 6px; margin: 0 1px; border-radius: 5px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font: 600 .72rem var(--font); color: #fff; }
.enter-prompt { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 16px; color: #fff; font-weight: 600;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 70%, #000), color-mix(in srgb, var(--accent) 50%, #000)); animation: toast-in .3s ease; box-shadow: 0 10px 40px -10px var(--primary); }
.enter-prompt span { padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.2); font-size: .8rem; }
.enter-prompt:hover { color: #fff; transform: translateX(-50%) translateY(-2px); }
.lg-rooms { background: #f9735b; box-shadow: 0 0 8px #f9735b; }
.room-label { background: rgba(249,115,91,.18); border-color: rgba(249,115,91,.5); color: #fff; }

/* Hangouts */
.room-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); transition: transform .25s; }
.room-card:hover { transform: translateY(-5px); color: var(--text); }
.room-art { height: 150px; display: grid; place-items: center; font-size: 3.4rem; position: relative; overflow: hidden; }
.room-art span { filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); animation: float 5s ease-in-out infinite; }
.theme-cafe .room-art { background: radial-gradient(circle at 30% 30%, #ffb347, #7a3b17 70%); }
.theme-club .room-art { background: radial-gradient(circle at 70% 20%, #f9735b, #1e3a8a 60%, #060a12); }
.theme-beach .room-art { background: linear-gradient(180deg, #1a2b52, #c2417a 45%, #ff9a5c 70%, #e8cf9a 71%); }
.room-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.room-body h3 { margin: 0; }
.room-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.room-foot .text-link { margin-left: auto; }
.speech { max-width: 220px; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #fff; color: #111; font-size: .82rem; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: toast-in .25s ease; pointer-events: none; }
.room-chat { position: absolute; right: 16px; bottom: 16px; z-index: 7; width: 320px; padding: 12px; background: rgba(15,23,38,.82); display: flex; flex-direction: column; gap: 8px; }
.room-feed { max-height: 190px; overflow-y: auto; font-size: .86rem; display: flex; flex-direction: column; gap: 4px; }
.room-feed p { margin: 0; word-wrap: break-word; }
.room-feed b { color: var(--accent); }
.room-say { display: flex; gap: 6px; }
.room-say input { padding: 9px 12px; }
.safety-mini { margin: 0; font-size: .7rem; color: var(--muted); }
.hangout .emote-bar { left: 50%; transform: translateX(-50%); }
.hangout .world-card { right: auto; left: 16px; top: 70px; bottom: auto; }

/* Avatar studio */
.avatar-studio { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.studio-stage { position: relative; height: 380px; border-radius: 18px; overflow: hidden; cursor: grab; touch-action: pan-y;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 60%), linear-gradient(180deg, #16213a, #0a111f); }
.studio-stage canvas { display: block; }
.studio-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--muted); pointer-events: none; }
.studio-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.swatches, .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label, .pills label { margin: 0; flex-direction: row; cursor: pointer; }
.swatches input, .pills input { position: absolute; opacity: 0; pointer-events: none; }
.swatches i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); transition: transform .15s, box-shadow .15s; }
.swatches input:checked + i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); transform: scale(1.08); }
.pills span { display: inline-block; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .85rem; transition: .15s; }
.pills input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.pills input:focus-visible + span, .swatches input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar-studio .btn { margin-top: 20px; }

/* Verification */
.verify-ok { display: flex; gap: 14px; align-items: center; color: #6ee7b7; }
.verify-ok.pending { color: #fcd34d; }
.verify-ok strong { color: #fff; }
.verify-form { margin-top: 12px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 130px; padding: 16px; border-radius: 16px; border: 2px dashed rgba(255,255,255,.18); background: rgba(0,0,0,.2); color: var(--text); font-size: 1.6rem; cursor: pointer; transition: border-color .2s; }
.drop:hover { border-color: var(--accent); }
.drop b { font-size: .9rem; } .drop small { font-size: .74rem; color: var(--muted); }
.drop input { font-size: .78rem; max-width: 100%; color: var(--muted); padding: 6px; background: transparent; border: 0; }
.verify-review .vr-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.vr-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.vr-docs a { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4/3; }
.vr-docs img { width: 100%; height: 100%; object-fit: contain; }
.vr-docs span { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.7); color: #fff; font-size: .75rem; }
.font-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.font-pick { margin: 0; flex-direction: row; cursor: pointer; }
.font-pick input { position: absolute; opacity: 0; }
.font-pick span { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.font-pick b { font-size: 1.4rem; color: #fff; } .font-pick small { color: var(--muted); }
.font-pick input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mt-xs { margin-top: 6px; }
.table audio { height: 34px; max-width: 220px; }

@media (max-width: 760px) {
  .avatar-studio { grid-template-columns: 1fr; }
  .studio-stage { height: 300px; }
  .hud-top { top: 10px; left: 12px; transform: none; flex-wrap: wrap; max-width: calc(100% - 80px); }
  .hud-chip { padding: 6px 11px; font-size: .76rem; }
  .emote-bar { bottom: auto; top: 168px; left: auto; right: 12px; transform: none; flex-direction: column; }
  .emote-bar button { width: 42px; height: 42px; font-size: 1.2rem; }
  .world .world-tools { top: 58px; }
  .world .world-panel.collapsed ~ .joystick, .joystick { bottom: 132px; }
  .enter-prompt { bottom: 136px; }
  .world-page .player { top: auto; bottom: 12px; right: 12px; left: auto; }
  .world-page .player { top: auto; bottom: 140px; left: auto; right: 12px; }
  .room-chat { left: 10px; right: 10px; width: auto; bottom: 10px; }
  .room-feed { max-height: 110px; }
  .hangout .joystick { bottom: 200px; }
  .hangout .emote-bar { top: 64px; left: auto; right: 12px; transform: none; }

  .player { left: 10px; bottom: 10px; }
  .player-meta { max-width: 110px; }
  .player-controls input[type=range] { display: none; }
}

/* ==========================================================================
   v4 — Game window (boards ported from the earlier build, scoped to #gamemodal)
   ========================================================================== */
#gamemodal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(5,8,14,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#gamemodal[hidden] { display: none; }
#gamemodal { --paper: #f3f7fd; --ink: #131c2c; --line: #dde5f0; --brand: var(--primary); --ok: #10b981; --oktext: #047857; --badbg: #ffe4e6; --badtext: #be123c; --blue: #2563eb;
  --field: #fff; --fieldink: #131c2c; --glass: rgba(255,255,255,.8); --r: 12px; --r-lg: 18px; --safe-b: env(safe-area-inset-bottom, 0px); --shadow: 0 8px 24px -10px rgba(22,33,56,.35); --shadow-lg: 0 20px 50px -20px rgba(22,33,56,.5); }
#gamemodal .modalcard { width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; border-radius: 24px; background: #fffdf8; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); animation: toast-in .25s ease; font-family: var(--font); }
#gamemodal h2, #gamemodal h3 { color: var(--ink); }
#gamemodal .small { font-size: .85rem; color: #55657d; }
#gamemodal .big { font: 700 1.6rem var(--display); text-align: center; }
#gamemodal .btn { background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 600; cursor: pointer; margin: 4px 4px 4px 0; }
#gamemodal .btn.small { padding: 8px 14px; font-size: .88rem; }
#gamemodal .btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
#gamemodal .btn.on { background: var(--brand); color: #fff; }
#gamemodal .btn:disabled { opacity: .45; cursor: not-allowed; }
#gamemodal .card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; }
#gamemodal .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
#gamemodal .cardactions { display: flex; gap: 6px; flex-wrap: wrap; }
#gamemodal .options { display: grid; gap: 8px; margin: 10px 0; }
#gamemodal .options .btn { width: 100%; text-align: left; padding: 14px 16px; font-size: 1rem; }
#gamemodal .players { padding-left: 18px; }
#gamemodal input { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
#gamemodal form.inline { display: flex; gap: 6px; margin-top: 8px; }
#gamemodal .gamecard { color: var(--ink); background: var(--paper); }
#gamemodal .gamecard.date { background: linear-gradient(135deg, #fde7f3, #e9f0fb); border-color: #f5b8d8; }
#gamemodal .lobby-note { padding: 10px 12px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-size: .85rem; margin-bottom: 12px; }
.games-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.game-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; color: var(--text); transition: transform .2s; }
.game-tile:hover { transform: translateY(-4px); color: var(--text); }
.game-tile .gi { font-size: 2.2rem; }
.game-tile h3 { margin: 0; }
.game-tile.date { background: linear-gradient(160deg, rgba(249,115,91,.16), rgba(59,130,246,.08)); border-color: rgba(249,115,91,.3); }
.rules-body { font-size: 1.02rem; line-height: 1.75; }
#gamemodal .btn.green{background:var(--ok)}
#gamemodal .error{background:var(--badbg);color:var(--badtext);padding:.7em 1em;border-radius:12px}
#gamemodal .chatlog.light{height:55vh;color:var(--ink)}
@media (max-width:760px){#gamemodal .chatlog.light{height:45vh}}
#gamemodal body.clean .leftcards .minicard,#gamemodal body.clean .camctl,#gamemodal body.clean .hud.chat{display:none}
#gamemodal .hud.chat{left:50%;transform:translateX(-50%);bottom:calc(76px + var(--safe-b));width:min(600px,calc(100vw - 20px));background:rgba(255,255,255,.97);color:var(--ink);border-radius:var(--r-lg);padding:10px 12px;box-shadow:var(--shadow-lg)}
#gamemodal .hud.chat.collapsed .chattabs,#gamemodal .hud.chat.collapsed .chatlog,#gamemodal .hud.chat.collapsed .seen,#gamemodal .hud.chat.collapsed .pinned,#gamemodal .hud.chat.collapsed .warnbanner{display:none!important}
#gamemodal .chatlog{list-style:none;margin:6px 0;padding:0 2px;height:120px;overflow-y:auto;font-size:.9rem;user-select:text;-webkit-user-select:text}
#gamemodal .chatlog li{padding:3px 0;word-wrap:break-word}
#gamemodal .chatlog li.flagged{background:var(--badbg);border-radius:8px;padding:3px 8px}
#gamemodal .chatlog[hidden]{display:none}
@media (max-width:640px){#gamemodal .chatlog{height:90px}#gamemodal .hud.chat{border-radius:var(--r)}}
#gamemodal .cardactions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;align-items:center}
#gamemodal .resultcard{background:color-mix(in srgb,var(--brand) 8%,#fff)}
#gamemodal .ayoboard{background:linear-gradient(#a0703f,#7a5230);border-radius:28px;padding:14px;display:grid;gap:10px;color:#fff;box-shadow:inset 0 -6px 0 rgba(0,0,0,.25)}
#gamemodal .ayorow{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
#gamemodal .ayoboard .pit{display:grid;place-items:center;aspect-ratio:1;border-radius:50%;background:#4e3218;box-shadow:inset 0 4px 8px rgba(0,0,0,.5);font-family:var(--display);font-size:1.2rem;font-weight:700;color:#fff;border:0;min-height:0;padding:0}
#gamemodal .ayoboard .pit.mine{background:#5e3c1d;cursor:pointer}
#gamemodal .ayoboard .pit.mine:not(:disabled):hover{box-shadow:inset 0 4px 8px rgba(0,0,0,.5),0 0 0 3px #ffd36b}
#gamemodal .ayoboard .store{text-align:center;font-family:var(--display);font-weight:600}
#gamemodal /* Game boards */
.gamegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-bottom:12px}
#gamemodal .gamecard{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;background:var(--paper);border:1.5px solid var(--line);border-radius:14px;padding:10px 12px;cursor:pointer;font:inherit;color:var(--ink)}
#gamemodal .gamecard strong{font-family:var(--display);font-size:1rem}
#gamemodal .gamecard:hover{border-color:var(--brand)}
#gamemodal .turnline{font-weight:700;background:var(--paper);border-radius:12px;padding:8px 12px}
#gamemodal .turnline.mine{background:color-mix(in srgb,var(--ok) 14%,#fff);color:var(--oktext)}
#gamemodal .board8{display:grid;grid-template-columns:repeat(8,1fr);width:min(100%,420px);aspect-ratio:1;margin:8px auto;border-radius:10px;overflow:hidden;box-shadow:var(--shadow)}
#gamemodal .board8 .sq{border:0;padding:0;min-height:0;font-size:clamp(1.2rem,5.5vw,2rem);line-height:1;cursor:pointer;display:grid;place-items:center;color:#111}
#gamemodal .board8 .light{background:#f0d9b5}
#gamemodal .board8 .dark{background:#b58863}
#gamemodal .board8 .last{box-shadow:inset 0 0 0 100px rgba(255,214,0,.35)}
#gamemodal .board8 .sel{box-shadow:inset 0 0 0 4px var(--blue)}
#gamemodal .board8 .target{background-image:radial-gradient(circle,rgba(20,128,74,.55) 22%,transparent 24%)}
#gamemodal .ludoboard{display:block;margin:8px auto;border-radius:12px;box-shadow:var(--shadow)}
#gamemodal .whottable{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}
#gamemodal .whothand{display:flex;gap:6px;flex-wrap:wrap}
#gamemodal .whotcard{width:58px;height:82px;border-radius:10px;border:2px solid #7a1f2b;background:#fff;color:#7a1f2b;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;font-family:var(--display);box-shadow:var(--shadow);padding:0;min-height:0}
#gamemodal .whotcard .shape{font-size:1.6rem;line-height:1}
#gamemodal .whotcard .num{font-weight:700}
#gamemodal .whotcard.whot{background:#7a1f2b;color:#fff}
#gamemodal .whotcard:disabled{cursor:default;opacity:1}
#gamemodal .whothand .whotcard:not(:disabled):hover{transform:translateY(-4px)}
#gamemodal .goalmouth{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:linear-gradient(#2e7d32,#1b5e20);padding:16px;border-radius:16px;border:6px solid #fff}
#gamemodal .dancepad{display:block;width:min(260px,70vw);aspect-ratio:1;margin:12px auto;border-radius:50%;border:0;background:radial-gradient(circle,#ff8a65,#d84315);color:#fff;font-family:var(--display);font-size:2rem;font-weight:700;cursor:pointer;box-shadow:var(--shadow-lg);transition:transform .06s;touch-action:manipulation}
#gamemodal .dancepad.beat{background:radial-gradient(circle,#fff176,#f9a825);color:#5d4037}
#gamemodal .dancepad.hit{transform:scale(.94)}
#gamemodal .chatlog.short{height:180px;background:var(--paper);border-radius:12px;padding:8px}
#gamemodal .toppill,#gamemodal .minicard,#gamemodal .hud.chat,#gamemodal .dock,#gamemodal .camseg,#gamemodal .camzoom button,#gamemodal .soundpanel{background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);box-shadow:0 8px 28px rgba(12,10,40,.22),inset 0 0 0 1px rgba(255,255,255,.55)}
@media (pointer:coarse) and (max-width:900px){#gamemodal .hud.chat:not(.collapsed)~.joystick{display:none}}
@media (max-width:640px){#gamemodal .hud.chat{bottom:calc(66px + var(--safe-b))}#gamemodal .hud.chat.collapsed{width:auto;left:auto;right:10px;transform:none;max-width:calc(100vw - 150px);padding:6px 8px}#gamemodal .hud.chat.collapsed .placehead small,#gamemodal .hud.chat.collapsed form,#gamemodal .hud.chat.collapsed .chips{display:none}}
@media (max-height:480px) and (orientation:landscape){#gamemodal .hud.chat{width:300px;left:auto;right:10px;transform:none;bottom:8px}#gamemodal .chatlog{height:60px}}
@media (max-width:640px){#gamemodal .hud.chat.collapsed .placehead b{font-size:.82rem;line-height:1.2}#gamemodal .hud.chat.collapsed .avatarbubble{display:none}}
#gamemodal .hud.chat.collapsed .chips{display:none}
#gamemodal .btn.green{background:var(--ok);box-shadow:none}
#gamemodal .board8{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}
#gamemodal .board8 .sq{font-variant-emoji:text;font-size:clamp(1.5rem,7.4vw,2.3rem)}
#gamemodal .board8 .whitepiece{color:#fff;text-shadow:0 0 1px #111,0 0 1px #111,0 1px 2px rgba(0,0,0,.75)}
#gamemodal .choicebox .btn{min-height:44px}
#gamemodal .modalcard .card,#gamemodal .modalcard .resultcard,#gamemodal .modalcard .gamecard{color:#fff;background:#ffffff14;border:1px solid #ffffff2b;border-radius:14px}
#gamemodal .modalcard .gamecard strong,#gamemodal .modalcard .gamecard small,#gamemodal .modalcard .gamecard span{color:#fff}
#gamemodal .modalcard .cardactions,#gamemodal .modalcard .row{display:flex;flex-wrap:wrap;gap:8px}
#gamemodal .modalcard .gamecard{align-items:center;text-align:center}
#gamemodal .gameicon{display:block;font-size:2rem;line-height:1.2;filter:drop-shadow(0 3px 6px #0006)}
#gamemodal .modalcard .turnline{color:#0f1a2e}
#gamemodal .modalcard .turnline.mine{color:#0f6e29}
#gamemodal /* Game boards: wooden frames,#gamemodal felt tables,#gamemodal moving pieces */
.board8{border:10px solid #5b3a1e;border-radius:14px;box-shadow:0 14px 34px #0008,inset 0 0 0 2px #2d1b0c}
#gamemodal .board8 .light{background:linear-gradient(135deg,#f6e3c1,#e9cf9f)}
#gamemodal .board8 .dark{background:linear-gradient(135deg,#a9743f,#8b5a2e)}
#gamemodal .board8 .sq{transition:filter .12s ease,transform .12s ease;animation:piecein .22s ease-out}
#gamemodal .board8 .sq:hover{filter:brightness(1.12)}
#gamemodal .board8 .sel{box-shadow:inset 0 0 0 4px #ffd34d}
#gamemodal .board8 .target{animation:targetpulse 1.1s infinite}
#gamemodal .whottable{padding:14px;border-radius:18px;background:radial-gradient(circle,#177a4a,#0c4d2e);box-shadow:inset 0 0 26px #0009}
#gamemodal .whotcard{border-radius:12px;box-shadow:0 5px 12px #0006;background:linear-gradient(160deg,#fff,#f4ece6);transition:transform .15s ease,box-shadow .15s ease;animation:dealin .3s ease-out both}
#gamemodal .whothand .whotcard:nth-child(2){animation-delay:.05s}
#gamemodal .whothand .whotcard:nth-child(3){animation-delay:.1s}
#gamemodal .whothand .whotcard:nth-child(4){animation-delay:.15s}
#gamemodal .whothand .whotcard:nth-child(n+5){animation-delay:.2s}
#gamemodal .whothand .whotcard:not(:disabled):hover{transform:translateY(-10px) rotate(-2deg);box-shadow:0 12px 20px #0007}
#gamemodal .ludoboard{border:8px solid #fff;box-shadow:0 14px 34px #0008}
#gamemodal .ayoboard{border:4px solid #3e2410;box-shadow:0 14px 34px #0008,inset 0 3px 8px #ffffff33}
#gamemodal .ayoboard .pit{transition:transform .15s ease}
#gamemodal .ayoboard .pit.mine:not(:disabled):hover{transform:scale(1.08)}
#gamemodal .modalcard .gamecard{transition:transform .15s ease,background .15s ease}
#gamemodal .modalcard .gamecard:hover{transform:translateY(-4px) scale(1.02);background:#ffffff26}
@media (prefers-reduced-motion:reduce){#gamemodal .whotcard,#gamemodal .board8 .sq,#gamemodal .board8 .target,#gamemodal main>section{animation:none}}
#gamemodal /* Football stadium */
.pitchstage{position:relative;width:100%;overflow:hidden;border-radius:16px;box-shadow:0 10px 26px #0007}
#gamemodal .scorebug{display:flex;justify-content:center;align-items:center;gap:10px;margin:0 auto 8px;padding:5px 14px;width:max-content;max-width:100%;border-radius:10px;background:#0b1020;color:#fff;font-weight:700;font-size:.9rem}
#gamemodal .scorebug b{padding:2px 10px;border-radius:6px;background:#c81e36;font-family:var(--display)}
#gamemodal .goalbanner{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%) scale(.4);opacity:0;padding:6px 26px;border-radius:12px;color:#fff;font:700 clamp(1.8rem,8vw,3.2rem) var(--display);pointer-events:none}
#gamemodal .goalbanner.show{animation:goalpop 1.8s ease-out both}
#gamemodal .goalbanner.scored{background:linear-gradient(#45d864,#1a9c3c)}
#gamemodal .goalbanner.saved{background:linear-gradient(#ff5d4a,#c81e36)}
#gamemodal .modalcard .goalmouth{background:none;padding:0;margin:8px 0}
#gamemodal /* Power Connect */
.connectboard{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;width:min(100%,520px);padding:10px;border-radius:18px;background:linear-gradient(#2f6fe4,#1a44a8);box-shadow:0 14px 34px #0008,inset 0 2px 0 #ffffff55}
#gamemodal .connectcol{display:grid;gap:4px;padding:2px;border:0;border-radius:12px;background:none;cursor:pointer;overflow:hidden}
#gamemodal .connectcol:not(:disabled):hover{background:#ffffff26}
#gamemodal .connectcol.blast{animation:blast .5s}
#gamemodal .disc{display:block;aspect-ratio:1;border-radius:50%;background:#0e1f4f;box-shadow:inset 0 3px 6px #0009}
#gamemodal .disc.p0{background:radial-gradient(circle at 35% 30%,#ff8a7a,#d62839)}
#gamemodal .disc.p1{background:radial-gradient(circle at 35% 30%,#ffe88a,#f2a81d)}
#gamemodal .disc.dropped{animation:discdrop .45s cubic-bezier(.3,1.5,.5,1)}
#gamemodal /* Treasure Dig */
.treasuregrid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;width:min(100%,460px);padding:10px;border-radius:18px;background:linear-gradient(#7a5230,#4e3218);box-shadow:0 14px 34px #0008}
#gamemodal .digtile{display:grid;place-items:center;aspect-ratio:1;border:0;border-radius:10px;font-size:clamp(1.1rem,5vw,1.8rem);cursor:pointer;background:linear-gradient(#7fbf5a,#4c9a3f);box-shadow:inset 0 -4px 0 #2f6f2a;transition:transform .12s}
#gamemodal .digtile:not(:disabled):hover{transform:translateY(-3px)}
#gamemodal .digtile.open{background:#2e1c0d;box-shadow:inset 0 3px 7px #000a;cursor:default}
#gamemodal .digtile.fresh{animation:digpop .4s cubic-bezier(.2,1.6,.4,1)}
#gamemodal :root[data-theme=dark] .turnline{background:#1e2a40;color:#eef2f7}
@media (prefers-color-scheme:dark){#gamemodal :root:not([data-theme=light]) .turnline{background:#1e2a40;color:#eef2f7}}
#gamemodal :root:not([data-theme=light]) .modalcard .turnline,#gamemodal :root .modalcard .turnline{background:#f6f5fb;color:#0f1a2e}
#gamemodal :root .modalcard .turnline.mine{color:#0f6e29}
#gamemodal /* Moving pieces */
.board8 .pc{display:grid;place-items:center;width:100%;height:100%}
#gamemodal .pc.slide{animation:pcslide .32s ease-out both}
#gamemodal .ayoboard .pit.sown{animation:sownpop .32s ease-out both;color:#ffd34d}
#gamemodal .whotcard.played{animation:cardplay .4s cubic-bezier(.2,1.2,.4,1) both}
#gamemodal .ludodie{width:max-content;margin:6px auto;font-size:3.2rem;line-height:1;color:#fff}
#gamemodal .ludodie.rolling{animation:dieroll .7s cubic-bezier(.2,.8,.3,1)}
#gamemodal .stage3d{display:flex;justify-content:center;margin:6px auto;touch-action:manipulation}
#gamemodal .hide3d{display:none!important}
#gamemodal /* Theme: smooth change,#gamemodal and the chat chevron always shows */
body,#gamemodal .card,#gamemodal .topbar,#gamemodal .minicard,#gamemodal .hud.chat,#gamemodal .dock,#gamemodal .toppill,#gamemodal .formcard,#gamemodal .footer{transition:background-color .25s ease,color .25s ease,border-color .25s ease}
#gamemodal :root[data-theme=dark] .toppill,#gamemodal :root[data-theme=dark] .minicard,#gamemodal :root[data-theme=dark] .hud.chat,#gamemodal :root[data-theme=dark] .dock,#gamemodal :root[data-theme=dark] .camseg,#gamemodal :root[data-theme=dark] .camzoom button,#gamemodal :root[data-theme=dark] .soundpanel,#gamemodal :root[data-theme=dark] .camctl button{background:rgba(18,28,48,.92)!important;color:#eef2f7;border-color:#334155}
#gamemodal :root[data-theme=dark] .toppill .pilltext,#gamemodal :root[data-theme=dark] .toppill *,#gamemodal :root[data-theme=dark] .dock a,#gamemodal :root[data-theme=dark] .dock button,#gamemodal :root[data-theme=dark] .hud a:not(.btn),#gamemodal :root[data-theme=dark] .minicard b,#gamemodal :root[data-theme=dark] .placehead b,#gamemodal :root[data-theme=dark] .placehead button,#gamemodal :root[data-theme=dark] .chatlog,#gamemodal :root[data-theme=dark] .chatlog *{color:#eef2f7}
@media (prefers-color-scheme:dark){#gamemodal :root:not([data-theme=light]) .toppill,#gamemodal :root:not([data-theme=light]) .minicard,#gamemodal :root:not([data-theme=light]) .hud.chat,#gamemodal :root:not([data-theme=light]) .dock,#gamemodal :root:not([data-theme=light]) .camseg,#gamemodal :root:not([data-theme=light]) .camzoom button,#gamemodal :root:not([data-theme=light]) .soundpanel,#gamemodal :root:not([data-theme=light]) .camctl button{background:rgba(18,28,48,.92)!important;color:#eef2f7;border-color:#334155}#gamemodal :root:not([data-theme=light]) .toppill .pilltext,#gamemodal :root:not([data-theme=light]) .toppill *,#gamemodal :root:not([data-theme=light]) .dock a,#gamemodal :root:not([data-theme=light]) .dock button,#gamemodal :root:not([data-theme=light]) .hud a:not(.btn),#gamemodal :root:not([data-theme=light]) .minicard b,#gamemodal :root:not([data-theme=light]) .placehead b,#gamemodal :root:not([data-theme=light]) .placehead button,#gamemodal :root:not([data-theme=light]) .chatlog,#gamemodal :root:not([data-theme=light]) .chatlog *{color:#eef2f7}}
#gamemodal .botlevel{width:max-content;margin:0 auto 4px;padding:2px 12px;border-radius:99px;background:#ffc928;color:#3a2200!important;font-weight:700;font-size:.8rem}
#gamemodal .gamehead{display:flex;align-items:center;justify-content:space-between;gap:10px}
#gamemodal .gameinfo{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:#ffffff2e;color:#fff;font:italic 700 1.05rem/1 Georgia,serif;cursor:pointer}
#gamemodal .matchstrip{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#gamemodal .matchchip{flex:1 1 130px;display:flex;align-items:center;gap:8px;min-width:0;padding:6px 10px;border-radius:12px;background:var(--field,#ffffff14);color:var(--fieldink,inherit);box-shadow:inset 0 0 0 1px #8884;transition:box-shadow .2s}
#gamemodal .matchchip.on{box-shadow:inset 0 0 0 2px #ffc928,0 0 12px #ffc92866}
#gamemodal .matchchip i{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(#2f6fe4,#1d4ed8);color:#fff;font-style:normal;font-weight:700}
#gamemodal .matchchip span{display:grid;min-width:0;line-height:1.2}
#gamemodal .matchchip b,#gamemodal .matchchip small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#gamemodal .gamehow{display:grid;gap:8px;margin:8px 0}
#gamemodal .gamehow p{margin:0}
#gamemodal .rounddots{display:flex;justify-content:center;gap:6px;margin:8px auto}
#gamemodal .rounddots i{width:22px;height:6px;border-radius:9px;background:#8886}
#gamemodal .rounddots i.done{background:#45d864}
#gamemodal .rounddots i.on{background:#ffc928}
#gamemodal .timebar{height:8px;margin:8px auto;border-radius:9px;background:#8884;overflow:hidden}
#gamemodal .timebar i{display:block;height:100%;background:linear-gradient(90deg,#ff5d6e,#ffc928);transform-origin:left;animation:timebar linear both}
#gamemodal .reviewcard{display:grid;gap:6px;margin:8px auto}
#gamemodal .reviewcard p{margin:0}
#gamemodal .reviewrow{position:relative;display:flex;justify-content:space-between;gap:10px;padding:7px 10px;border-radius:9px;background:#8882;overflow:hidden}
#gamemodal .reviewrow i{position:absolute;inset:0 auto 0 0;background:#2f6fe466}
#gamemodal .reviewrow span,#gamemodal .reviewrow b{position:relative}
#gamemodal .reviewrow.right{box-shadow:inset 0 0 0 2px #45d864}
#gamemodal .reviewrow.wrong{box-shadow:inset 0 0 0 2px #ff5d6e}
#gamemodal .revealnote{text-align:center}
#gamemodal .compatmeter{display:grid;justify-items:center;gap:6px;margin:10px auto;text-align:center}
#gamemodal .compatmeter b{font:700 3rem var(--display);color:#fb9a85}
#gamemodal .compatmeter u{display:block;width:100%;height:12px;border-radius:9px;background:#8884;overflow:hidden;text-decoration:none}
#gamemodal .compatmeter i{display:block;height:100%;background:linear-gradient(90deg,#ff5d9e,#ffc928)}
#gamemodal .reviewall{margin:10px auto}
#gamemodal .reviewall summary{cursor:pointer;font-weight:700}
#gamemodal .speedabout{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:6px auto}
#gamemodal .speedabout b,#gamemodal .speedabout span{padding:3px 10px;border-radius:99px;background:#8883;font-size:.82rem}
#gamemodal .speedabout b{background:linear-gradient(#fb9a85,#d9367f);color:#fff}
#gamemodal .icebreaker{display:grid;gap:3px;width:100%;margin:8px auto;padding:10px 14px;border:1px dashed #ffc928;border-radius:12px;background:#ffc92822;color:inherit;font:inherit;text-align:left;cursor:pointer}
#gamemodal .icebreaker span{font-weight:700}
#gamemodal .wordchips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:8px auto}
#gamemodal .wordchips span{padding:3px 10px;border-radius:99px;background:#8883;font-weight:600}
#gamemodal .kicktrack{display:grid;gap:4px;margin:8px auto}
#gamemodal .kicktrack div{display:flex;align-items:center;justify-content:center;gap:6px}
#gamemodal .kicktrack b{min-width:90px;text-align:right}
#gamemodal .kicktrack i{font-style:normal;width:22px;text-align:center}
#gamemodal .dancelane{position:relative;height:44px;margin:8px auto;border-radius:99px;background:#0005;overflow:hidden}
#gamemodal .dancelane u{position:absolute;left:10%;top:0;bottom:0;width:4px;background:#ffc928}
#gamemodal .dancelane i{position:absolute;top:10px;width:24px;height:24px;margin-left:-12px;border-radius:50%;background:radial-gradient(#fff,#fb9a85)}
#gamemodal .dancerating{min-height:1.6em;text-align:center;font:700 1.2rem var(--display)}
#gamemodal .dancerating.perfect{color:#ffc928}
#gamemodal .dancerating.good{color:#45d864}
#gamemodal .dancerating.miss{color:#ff5d6e}
#gamemodal .movelog{text-align:center;word-spacing:4px}
#gamemodal .dicebanner{width:max-content;margin:6px auto;padding:4px 18px;border-radius:99px;background:#131e34;color:#ffe066;font:700 1.6rem var(--display);box-shadow:0 0 0 2px #ffc928}
#gamemodal .gamehead .gameinfo+.gameinfo{margin-inline-start:6px}
@keyframes dealin{from{transform:translateY(-26px) rotate(8deg);opacity:0}to{transform:none;opacity:1}}
@keyframes piecein{from{opacity:.55}to{opacity:1}}
@keyframes targetpulse{50%{filter:brightness(1.2)}}
@keyframes goalpop{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.1)}80%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}
@keyframes discdrop{from{transform:translateY(var(--fall))}to{transform:none}}
@keyframes blast{0%{background:#ffb300}100%{background:none}}
@keyframes digpop{from{transform:scale(.3) rotate(-15deg)}to{transform:none}}
@keyframes pcslide{from{transform:translate(var(--dx),var(--dy))}to{transform:none}}
@keyframes sownpop{0%{transform:scale(1)}50%{transform:scale(1.18);box-shadow:0 0 0 3px #ffd36b}100%{transform:scale(1)}}
@keyframes cardplay{from{transform:translateY(90px) rotate(-14deg) scale(.8);opacity:.3}to{transform:none;opacity:1}}
@keyframes dieroll{from{transform:rotate(720deg) scale(.4)}to{transform:none}}
@keyframes timebar{to{transform:scaleX(0)}}
/* v4 — wallet, travel, guide, city pages, mission */
.coin-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); color: #fde68a; font-size: .86rem; white-space: nowrap; }
.coin-pill:hover { color: #fff; background: rgba(251,191,36,.2); }
.coin-chip { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 14px; }
.wallet-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(251,191,36,.14), rgba(59,130,246,.12)); }
.coin-big { display: flex; align-items: baseline; gap: 10px; font: 700 2.6rem var(--display); margin: 6px 0; }
.coin-big .coin-icon { font-size: 2rem; }
.coin-big b { background: linear-gradient(135deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quest-list { display: grid; gap: 8px; }
.quest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.quest:hover { color: #fff; border-color: rgba(251,191,36,.4); }
.quest-tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); font-weight: 700; flex-shrink: 0; }
.quest.done { opacity: .6; }
.quest.done .quest-tick { background: var(--success); border-color: var(--success); color: #fff; }
.quest-label { flex: 1; }
.quest b { color: #fde68a; }
.packs .pack { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.pack-coins { font: 700 1.5rem var(--display); }
.ledger-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ledger-row span { display: flex; flex-direction: column; }
.ledger-row b.plus { color: #6ee7b7; } .ledger-row b.minus { color: #fda4af; }
.travel-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.travel-status .transit { display: flex; gap: 14px; align-items: center; }
.travel-status .plane { font-size: 2rem; animation: float 2s ease-in-out infinite; }
.passport { padding: 8px 14px; border-radius: 12px; background: var(--surface); }
.passport.ok { color: #6ee7b7; background: rgba(16,185,129,.12); }
.travel-group { margin: 18px 0 10px; font-size: 1.2rem; }
.city-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.city-card.abroad { background: linear-gradient(160deg, rgba(245,158,11,.1), rgba(255,255,255,.02)); }
.city-card.here { border-color: rgba(16,185,129,.5); }
.city-top h3 { margin: 0; }
.city-stats { display: flex; gap: 12px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.city-stats a { margin-left: auto; }
.trip-modes { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.trip-modes .btn { justify-content: space-between; }
.guide-hero { padding: clamp(24px, 4vw, 44px); text-align: center; }
.guide-hero .lead { margin-inline: auto; }
.guide-search { position: relative; display: flex; align-items: center; max-width: 560px; margin: 18px auto 8px; flex-direction: row; }
.guide-search svg { position: absolute; left: 16px; color: var(--muted); }
.guide-search input { padding: 16px 16px 16px 46px; border-radius: 16px; font-size: 1rem; }
.quick-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: s; }
.quick-steps li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--surface); }
.quick-steps span { font-size: 1.6rem; }
.quick-steps small { color: var(--muted); font-size: .8rem; }
.guide-section { padding: 20px; }
.guide-section ul, .plain-list { list-style: none; padding: 0; margin: 10px 0 0; }
.guide-section li, .plain-list li { padding: 7px 0; border-top: 1px solid var(--border); }
.guide-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.guide-article { margin: 0; max-width: none; }
.guide-article dt { font-weight: 700; margin-top: 10px; color: #fff; }
.guide-article dd { margin: 2px 0 0; color: var(--muted); }
.guide-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.helpful { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.crumbs { color: var(--muted); margin-bottom: 8px; }
.city-hero { padding: clamp(24px, 4vw, 44px); }
.city-hero.is-meet { background: linear-gradient(150deg, rgba(249,115,91,.16), rgba(255,255,255,.02)); }
.city-hero.is-jobs { background: linear-gradient(150deg, rgba(251,191,36,.14), rgba(255,255,255,.02)); }
.plain-steps { padding-left: 20px; } .plain-steps li { padding: 4px 0; }
.faq { padding: 12px 0; border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.mission-card { padding: 28px; position: relative; overflow: hidden; }
.mission-n { position: absolute; right: 18px; top: 8px; font: 800 4rem var(--display); color: rgba(255,255,255,.05); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.journey-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; color: var(--text); transition: transform .2s; }
.journey-card:hover { transform: translateY(-4px); color: var(--text); }
.journey-card span { font-size: 2rem; }
.journey-card small { color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); justify-content: center; gap: 24px; text-align: left; margin-bottom: 24px; }
.footer-cols div { display: flex; flex-direction: column; gap: 6px; }
.footer-cols b { color: #fff; margin-bottom: 4px; }
.footer-cols a { color: var(--muted); font-size: .86rem; }
.hud-games { position: absolute; top: 16px; right: 16px; z-index: 6; padding: 10px 16px; border-radius: 99px; border: 0; color: #fff; font-weight: 600; cursor: pointer; background: rgba(15,23,38,.8); }
.visit-chip { color: #a5f3fc; }
@media (max-width: 980px) {
  .quick-steps { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { position: static; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .quick-steps, .grid-4 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .coin-pill { padding: 6px 10px; font-size: .8rem; }
  .hud-games { top: auto; bottom: 200px; right: 12px; }
  .wallet-hero { padding: 20px; }
  .coin-big { font-size: 2rem; }
}
.danger-zone { margin-top: 14px; } .danger-zone summary { cursor: pointer; color: #fda4af; font-weight: 600; }
.danger-btn { background: rgba(244,63,94,.18); border-color: rgba(244,63,94,.5); color: #fecdd3; }

/* ==========================================================================
   v5 · Compact premium type scale
   Everything above is in rem, so one root size tightens the whole site:
   chrome, chips and captions land at 9–11px, body copy at 12.5px, headings scale with it.
   ========================================================================== */
html { font-size: 12px; }
body { font-size: 12.5px; line-height: 1.55; letter-spacing: .005em; }
h1, h2, h3 { letter-spacing: -.025em; }
.small { font-size: .86rem; }
.tiny { font-size: .78rem; }
.muted.small, .muted.tiny { line-height: 1.5; }
.eyebrow { letter-spacing: .14em; font-size: .72rem; }
.btn { font-size: .92rem; letter-spacing: .01em; }
.btn-lg { font-size: 1rem; padding: 12px 22px; }
.nav > a { font-size: .9rem; }
/* iPhone zooms into any field under 16px; keep fields readable there only. */
@supports (-webkit-touch-callout: none) { input, select, textarea { font-size: 16px !important; } }

/* ---------- 3D world & hangout HUD: slim glass, small type ---------- */
.world-tag { padding: 2px 8px; font-size: .8rem; font-weight: 600; letter-spacing: .01em; background: rgba(9,14,24,.72); border-color: rgba(255,255,255,.14); box-shadow: 0 4px 14px -6px rgba(0,0,0,.6); }
.world-tag img { width: 16px; height: 16px; margin-left: -4px; border-width: 1.5px; }
.world-tag.me-label { background: var(--grad); border: 0; color: #fff; font-size: .75rem; padding: 1px 8px; }
.world-tag.room-label { background: linear-gradient(135deg, rgba(249,115,91,.85), rgba(59,130,246,.85)); border: 0; color: #fff; }
.world-tag.job-label { background: rgba(120,60,0,.78); border-color: rgba(251,191,36,.5); color: #ffe7a3; }
.world-tag.spot-label { background: rgba(6,78,59,.78); border-color: rgba(16,185,129,.5); color: #b7f7dc; }
.hud-chip { padding: 5px 10px; font-size: .84rem; gap: 5px; border: 1px solid rgba(255,255,255,.08); }
.hud-top { gap: 6px; }
.emote-bar { padding: 4px; gap: 2px; bottom: 16px; }
.emote-bar button { width: 36px; height: 36px; font-size: 1.05rem; }
.walk-hint { bottom: 64px; padding: 4px 10px; font-size: .78rem; }
.walk-hint kbd { font-size: .72rem; padding: 0 4px; }
.enter-prompt { bottom: 66px; padding: 8px 14px; gap: 6px; border-radius: 12px; font-size: .92rem; white-space: nowrap; max-width: calc(100% - 24px); }
.enter-prompt b { overflow: hidden; text-overflow: ellipsis; }
.enter-prompt span { font-size: .72rem; padding: 1px 6px; }
.world-panel { padding: 14px; width: 260px; }
.world-panel h2 { font-size: 1.15rem; }
.world-card { font-size: .95rem; }
.world-card h3 { font-size: 1.2rem; }
.icon-btn { width: 36px; height: 36px; font-size: 1rem; }
.speech { font-size: .85rem; padding: 5px 9px; max-width: 200px; }
.joystick { width: 104px; height: 104px; }
.joystick i { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (max-width: 760px) {
  .hud-chip { padding: 4px 9px; font-size: .8rem; }
  .emote-bar { top: 206px; bottom: auto; right: 10px; }
  .world-panel { width: auto; padding: 12px 14px; }
  .emote-bar button { width: 34px; height: 34px; font-size: 1rem; }
  .world-tag { font-size: .76rem; }
  .enter-prompt { bottom: 150px; }
}

/* ---------- Arcade tiles ---------- */
.arcade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.arcade-tile { position: relative; display: grid; justify-items: center; gap: 3px; padding: 16px 10px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); text-align: center; cursor: pointer; color: var(--text);
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 26%, transparent), rgba(15,23,38,.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px -18px var(--primary); transition: transform .18s, box-shadow .18s, border-color .18s; font: inherit; }
.arcade-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 60%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 16px 34px -16px var(--primary); color: #fff; }
.arcade-tile .gi { font-size: 1.9rem; line-height: 1.2; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.arcade-tile b { font: 700 .98rem var(--display); }
.arcade-tile small { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.arcade-tile.loading { opacity: .6; pointer-events: none; }
.arcade-tile.loading::after { content: ''; position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Arcade full-screen player ---------- */
.arcade { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; color: #fff; background: radial-gradient(circle at 50% 20%, #1a3366, #080c14); font-family: var(--font); }
.arcade canvas { flex: 1; min-height: 0; width: 100%; touch-action: none; display: block; }
.arcadebar { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 7px 10px; background: rgba(15,23,38,.86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 8px 24px -12px rgba(0,0,0,.8); }
.arcadetitle { display: grid; line-height: 1.15; min-width: 0; }
.arcadetitle b { font: 700 1.05rem var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arcadetitle em { width: max-content; margin-top: 2px; padding: 0 7px; border-radius: 99px; background: var(--grad); color: #fff; font: 700 .72rem var(--font); font-style: normal; }
.arcadehud { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-left: auto; min-width: 0; }
.arcadehud span { padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font: 600 .78rem var(--font); white-space: nowrap; }
.arcadeactions { display: flex; gap: 5px; }
.arcadepause, .arcadeback { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: .95rem; cursor: pointer; transition: background .15s, transform .15s; }
.arcadepause:hover, .arcadeback:hover { background: rgba(255,255,255,.16); }
.arcadepause:active, .arcadeback:active { transform: scale(.94); }
.arcadepause svg, .arcadeback svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.arcadeinfo { font: italic 700 1rem/1 Georgia, serif; }
.arcadepaused { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(8,12,20,.72); backdrop-filter: blur(6px); animation: fxfade .15s both; }
.stepbox { display: grid; gap: 10px; width: min(380px, 100%); padding: 20px; border-radius: 20px; text-align: center; color: #fff; background: linear-gradient(170deg, rgba(28,44,78,.96), rgba(15,23,38,.96)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 70px rgba(0,0,0,.6); animation: fxpop .25s both; }
.stepbox strong { display: block; font: 700 1.5rem var(--display); }
.stepbox p { margin: 0; color: var(--muted); font-size: .95rem; }
.arcadebtn { min-height: 40px; border: 0; border-radius: 12px; color: #fff; font: 700 .95rem var(--font); cursor: pointer; background: var(--grad); box-shadow: 0 8px 20px -10px var(--primary); }
.arcadebtn.alt { background: rgba(255,255,255,.1); box-shadow: none; }
.arcadefloat { position: absolute; top: 22%; z-index: 5; pointer-events: none; font: 700 1.6rem var(--display); color: #ffe066; text-shadow: 0 3px 8px rgba(0,0,0,.6); animation: arcfloat .9s ease-out both; }
.arcadeintro { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; font: 700 clamp(2rem, 8vw, 3.8rem) var(--display); text-shadow: 0 6px 24px rgba(0,0,0,.7); animation: arcintro 1.5s ease both; }
.arcadecombo { position: absolute; top: 16%; left: 0; right: 0; z-index: 5; padding: 0 16px; text-align: center; pointer-events: none; font: 700 clamp(1.3rem, 5vw, 2.2rem) var(--display); color: #ffe066; text-shadow: 0 3px 0 rgba(0,0,0,.5), 0 6px 20px rgba(0,0,0,.6); animation: arccombo 1s ease both; }
.arcadeboss { position: absolute; top: 70px; left: 50%; z-index: 4; display: flex; align-items: center; gap: 8px; width: min(70%, 380px); transform: translateX(-50%); pointer-events: none; font: 700 .8rem var(--font); text-shadow: 0 2px 4px #000; }
.arcadeboss[hidden] { display: none; }
.arcadeboss i { flex: 1; height: 10px; border-radius: 99px; background: rgba(0,0,0,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); overflow: hidden; }
.arcadeboss u { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff3d55, #ff9f1c); transition: width .1s linear; }
@keyframes fxpop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fxfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes arcfloat { from { transform: translateY(20px) scale(.7); opacity: 0; } 25% { opacity: 1; transform: translateY(0) scale(1.1); } to { transform: translateY(-46px); opacity: 0; } }
@keyframes arcintro { 0% { opacity: 0; transform: scale(.6); } 20%, 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes arccombo { 0% { opacity: 0; transform: scale(.5); } 15% { opacity: 1; transform: scale(1.15); } 25% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .arcadefloat, .arcadeintro, .arcadecombo { animation: none; opacity: .9; } }

/* ---------- Round result card ---------- */
.reward-card { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 16px; background: rgba(8,12,20,.7); backdrop-filter: blur(6px); animation: fxfade .15s both; }
.reward-box { display: grid; justify-items: center; gap: 6px; width: min(320px, 100%); padding: 22px 18px 16px; border-radius: 20px; text-align: center; background: linear-gradient(170deg, rgba(28,44,78,.97), rgba(15,23,38,.97)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: fxpop .25s both; }
.reward-icon { font-size: 2.6rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.reward-box strong { font: 700 1.35rem var(--display); }
.reward-box p { margin: 0; color: var(--muted); font-size: .9rem; }
.reward-box em { font-style: normal; font-weight: 700; color: #fcd34d; }
.reward-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ==========================================================================
   v7 · Meeting in person, safer dating, skills, milestones, growth
   ========================================================================== */
.btn-danger { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; box-shadow: 0 8px 20px -10px #f43f5e; }
.btn-danger:hover { color: #fff; filter: brightness(1.08); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }

/* Daily matches */
.pick-card { display: grid; gap: 8px; padding: 18px; text-align: center; justify-items: center; }
.pick-photo { position: relative; }
.pick-score { position: absolute; right: -6px; bottom: 2px; padding: 2px 7px; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 700; font-size: .8rem; box-shadow: 0 4px 12px -4px var(--primary); }
.pick-card h2 { font-size: 1.25rem; margin: 0; }
.pick-why { margin: 0; font-size: .82rem; color: var(--accent); }
.pick-card .card-actions { justify-content: center; }
.prompt-quote { margin: 0; padding: 9px 12px; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; background: rgba(59,130,246,.08); text-align: left; font-size: .95rem; width: 100%; }
.prompt-quote small { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 2px; }
.prompt-quote.big { padding: 14px 18px; font-size: 1.1rem; }
.values-form { display: grid; gap: 10px; margin-top: 12px; }
.values-q { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.values-q legend { width: 100%; padding: 0; font-weight: 600; margin-bottom: 4px; }
.pill-radio { position: relative; display: inline-flex; cursor: pointer; }
.pill-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pill-radio span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); transition: .15s; }
.pill-radio input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.pill-radio input:focus-visible + span { outline: 2px solid var(--accent); }
.pill-radio.block { display: flex; margin: 4px 0; }
.pill-radio.block span { flex: 1; border-radius: 12px; padding: 9px 12px; }

/* Wave with a note */
.wave-dialog { width: min(420px, calc(100% - 24px)); padding: 18px; border: 1px solid var(--border); border-radius: 18px; color: var(--text); background: rgba(15,23,38,.96); }
.wave-dialog::backdrop { background: rgba(8,12,20,.6); backdrop-filter: blur(4px); }
.wave-dialog h3 { margin: 0; }
.wave-note { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; white-space: normal; }

/* Events */
.event-card { display: flex; gap: 14px; align-items: center; padding: 16px; color: var(--text); transition: transform .15s; }
.event-card:hover { transform: translateY(-2px); color: var(--text); }
.event-card h3 { margin: 6px 0 2px; font-size: 1.1rem; }
.event-date { display: grid; place-items: center; min-width: 54px; padding: 8px 6px; border-radius: 14px; background: var(--grad); color: #fff; line-height: 1; }
.event-date b { font: 700 1.6rem var(--display); }
.event-date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.event-card.is-live, .event-hero.is-live { box-shadow: 0 0 0 1px rgba(249,115,91,.6), 0 14px 40px -16px #f9735b; }
.world-tag.is-live { background: linear-gradient(135deg, #f9735b, #3b82f6); border: 0; color: #fff; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 4px rgba(249,115,91,.25); } }

/* Here now (safe spots) */
.here-title { margin: 10px 0 4px; font-size: .95rem; }
.here-list { display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.here-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface); }
.here-row small { grid-column: 1; }
.here-row .btn { grid-row: 1 / span 2; grid-column: 2; }
.mini-select, .mini-input { padding: 5px 8px; border-radius: 9px; border: 1px solid var(--border); background: rgba(0,0,0,.3); color: var(--text); font-size: .85rem; }
.mini-input { flex: 1 1 160px; min-width: 0; }

/* Date safety */
.date-plan.is-sos { box-shadow: 0 0 0 2px #f43f5e, 0 14px 40px -16px #f43f5e; }
.date-check { position: fixed; left: 50%; bottom: 18px; z-index: 300; width: min(380px, calc(100% - 24px)); transform: translateX(-50%); padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(244,63,94,.4); background: rgba(15,23,38,.96); animation: fxpop .25s both; }
.date-check p { margin: 4px 0 8px; color: var(--muted); }

/* Push-to-talk */
.voice-box { position: absolute; left: 16px; bottom: 84px; z-index: 7; display: grid; gap: 6px; justify-items: start; width: min(260px, calc(100% - 32px)); padding: 10px 12px; border-radius: 14px; background: rgba(15,23,38,.8); }
.ptt { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 99px; background: var(--grad); color: #fff; font: 600 .95rem var(--font); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.ptt.on { background: linear-gradient(135deg, #f43f5e, #fb923c); box-shadow: 0 0 0 6px rgba(244,63,94,.25); }

/* Interview booth */
.booth-box { display: grid; gap: 6px; padding: 12px; border-radius: 14px; }
.hangout .booth-box { position: absolute; right: 16px; top: 64px; z-index: 7; width: min(280px, calc(100% - 32px)); background: rgba(15,23,38,.85); }
.booth-queue { margin: 0; padding-left: 18px; font-size: .9rem; }
.booth-queue .is-now { color: var(--accent); font-weight: 600; }

/* Skills passport */
.skill-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(59,130,246,.18)); border: 1px solid rgba(251,191,36,.35); color: #fde68a; font-size: .8rem; font-weight: 600; }
.skill-tile { display: grid; gap: 6px; color: var(--text); transition: transform .15s; }
.skill-tile:hover { transform: translateY(-3px); color: var(--text); }
.skill-tile h2 { margin: 0; font-size: 1.2rem; }
.skill-tile.is-earned { box-shadow: 0 0 0 1px rgba(251,191,36,.5); }
.gi.big { font-size: 2.6rem; }
.skill-q { margin: 0 0 8px; padding: 0; border: 0; }
.skill-q legend { font-weight: 600; margin-bottom: 4px; }
.opt-row { display: flex; align-items: center; gap: 6px; }

/* Milestones */
.milestones { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: ms; }
.ms { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); counter-increment: ms; }
.ms-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ms-head::before { content: counter(ms); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; }
.ms-head span:first-of-type { margin-left: auto; font-weight: 700; }
.ms-approved, .ms-released { border-color: rgba(16,185,129,.4); }
.ms-disputed { border-color: rgba(244,63,94,.5); }
.ms-photo { max-width: 160px; margin-top: 8px; border-radius: 10px; }
.ms-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ms-form input:not([type=file]) { flex: 1 1 160px; }
.milestone-editor { margin: 6px 0; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--border); }
.milestone-editor summary { cursor: pointer; font-weight: 600; }

/* Stories, account bits */
.story-card { display: grid; gap: 6px; color: var(--text); }
.story-card:hover { color: var(--text); transform: translateY(-2px); }
.story-card h2 { margin: 0; font-size: 1.2rem; }
.copy-row { display: flex; gap: 6px; }
.copy-row input { flex: 1; min-width: 0; }
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; margin-bottom: 6px; border-radius: 10px; background: var(--surface); font-size: .9rem; }
.video-selfie { display: grid; gap: 6px; justify-items: center; }
.video-selfie video { width: 100%; max-width: 220px; border-radius: 12px; transform: scaleX(-1); }
.vr-video { display: grid; gap: 4px; }
.vr-video video { width: 200px; border-radius: 10px; background: #000; }
.pay small { font-size: .7em; opacity: .8; }
@media (max-width: 760px) {
  .voice-box { bottom: 150px; }
  .hangout .booth-box { top: auto; bottom: 210px; right: 10px; }
}

/* Nine menu items: keep the desktop bar on one line by tightening, then dropping icons on mid-size screens. */
@media (min-width: 1101px) {
  .nav > a { padding: 7px 10px; gap: 5px; }
}
@media (min-width: 1101px) and (max-width: 1380px) {
  .nav > a svg { display: none; }
  .nav > a { padding: 7px 9px; }
}

/* ---------- Logo ---------- */
.brand-logo { width: 36px; height: 36px; flex: none; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .8), inset 0 0 0 1px rgba(255,255,255,.1); transition: transform .35s cubic-bezier(.2,.9,.3,1.4); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.brand-name em { font-style: normal; color: var(--accent); }

/* ---------- Password show / hide ---------- */
.pw-field { position: relative; display: block; }
.pw-field input { width: 100%; padding-right: 44px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: #fff; background: var(--surface-2); outline: none; }
.pw-toggle:focus-visible { box-shadow: 0 0 0 2px var(--primary); }
.pw-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle[aria-pressed="true"] { color: var(--accent); }
.auth-logo { display: block; margin: 0 0 12px; border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(37,99,235,.9); }

/* ---------- Installer ---------- */
.install-card { width: min(560px, 100%); }
.install-checks { margin: 4px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.install-checks summary { cursor: pointer; font-weight: 600; }
.install-checks ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.install-checks li { display: grid; grid-template-columns: 18px 1fr; column-gap: 6px; }
.install-checks li b { color: var(--success); }
.install-checks li.bad b { color: var(--danger); }
.install-checks li small { grid-column: 2; color: var(--muted); }
.install-step { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 1.15rem; }
.install-step span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); font-size: .85rem; }
.install-config { width: 100%; font: 12px/1.5 ui-monospace, Menlo, monospace; margin: 10px 0; }

/* ---------- Movable music player ---------- */
.player-grip { display: grid; place-items: center; width: 14px; align-self: stretch; margin-right: -6px; color: var(--muted); font-size: 14px; cursor: grab; touch-action: none; user-select: none; opacity: .55; transition: opacity .15s; }
.player:hover .player-grip, .player.dragging .player-grip { opacity: 1; }
.player [data-player-toggle] { touch-action: none; }
.player.dragging { cursor: grabbing; transition: none; box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); opacity: .95; }
.player.dragging * { cursor: grabbing; }
.player.moved { right: auto; bottom: auto; }

/* ---------- World: working-building signs, help button and tour ---------- */
.world-tag.place-label { display: grid; justify-items: center; gap: 0; padding: 3px 10px; text-align: center; background: linear-gradient(135deg, rgba(37,99,235,.92), rgba(30,58,138,.92)); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.world-tag.place-label small { font-size: .7rem; font-weight: 500; opacity: .85; }
.help-btn { font: 800 1.05rem var(--display); color: #fff; }
.help-pop { position: absolute; right: 52px; top: 100px; z-index: 8; display: grid; min-width: 220px; padding: 6px; border-radius: 14px; background: rgba(15,23,38,.94); }
.help-pop[hidden] { display: none; }
.help-pop a, .help-pop button { display: block; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font: 500 .95rem var(--font); text-align: left; cursor: pointer; }
.help-pop a:hover, .help-pop button:hover { background: var(--surface-2); color: #fff; }
.tour { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.tour[hidden] { display: none; }
.tour-card { pointer-events: auto; position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 76px; width: min(400px, calc(100% - 24px)); padding: 16px 18px 14px; border-radius: 18px; background: rgba(12,19,33,.96); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px -16px rgba(0,0,0,.8); animation: fxpop .25s both; }
.tour-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tour-step { font-size: .78rem; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.tour-skip { border: 0; background: none; color: var(--muted); font: 500 .82rem var(--font); cursor: pointer; padding: 2px 0; }
.tour-skip:hover { color: #fff; }
.tour-card strong { display: block; font: 700 1.25rem var(--display); margin-bottom: 4px; }
.tour-card p { margin: 0 0 10px; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.tour-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); transition: width .2s, background .2s; }
.tour-dots i.on { width: 18px; border-radius: 4px; background: var(--primary); }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tour-actions [hidden] { display: none; }
.tour-lit { position: relative; z-index: 41; border-radius: 12px; box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(3,6,12,.55) !important; animation: tourpulse 1.6s ease-in-out infinite; }
@keyframes tourpulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 9999px rgba(3,6,12,.55); } }
@media (max-width: 760px) { .tour-card { top: 70px; bottom: auto; } .help-pop { right: 10px; top: 168px; } }
@media (prefers-reduced-motion: reduce) { .tour-lit { animation: none; } }

/* The 3D view is a fixed frame: clip (not scroll) anything that pokes outside it. */
[data-world], [data-hangout] { overflow: clip; }
