*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: #1e1e2e;
  --text: #e4e4ef;
  --muted: #8888a0;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
}

button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: inherit;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #c4b5fd;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.nav-btn:hover {
  color: var(--text);
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--text);
}

.nav-links a.nav-active {
  font-weight: 600;
}

/* Hero */
.hero-compact {
  grid-template-columns: 1fr;
  padding: 3rem 2rem 2rem;
  min-height: auto;
  text-align: center;
}

.hero-compact .hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.hero-compact .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero-compact .hero-actions {
  justify-content: center;
}

.page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.page-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--muted);
  max-width: 60ch;
}

.live-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.section-tight {
  padding-top: 2rem;
}

.map-large {
  height: 520px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  min-height: 70vh;
}

.hero-label {
  color: var(--accent-hover);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  color: white;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

button.btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 320px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: #6366f1;
  top: 20%;
  left: 20%;
}

.orb-2 {
  width: 160px;
  height: 160px;
  background: #a855f7;
  top: 40%;
  right: 10%;
  animation-delay: -3s;
}

.orb-3 {
  width: 120px;
  height: 120px;
  background: #ec4899;
  bottom: 10%;
  left: 40%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.section > p {
  color: var(--muted);
  max-width: 60ch;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Track / map */
.track-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.track-status {
  color: var(--muted);
  margin-top: 0.35rem;
}

.coords-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  min-width: 240px;
}

.coord-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.coord-label {
  color: var(--muted);
}

.coord-value {
  font-family: ui-monospace, monospace;
  font-weight: 500;
}

.map {
  height: 480px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  z-index: 1;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.modal-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.field-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-error {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.form-success {
  color: #4ade80;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.form-error.hidden,
.form-success.hidden,
.sharing-note.hidden {
  display: none;
}

.sharing-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent-hover);
  text-align: center;
}

.location-steps {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.steps-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.steps-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.steps-list li {
  margin: 0.25rem 0;
}

.btn-location {
  background: #2563eb;
  color: white;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.btn-location:hover {
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-location.granted {
  background: #16a34a;
}

.location-status {
  font-size: 0.85rem;
  text-align: center;
  margin: -0.25rem 0 0.75rem;
}

.location-status.ok {
  color: #4ade80;
}

.location-status.bad {
  color: #f87171;
}

.https-warning {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.https-warning.hidden {
  display: none;
}

.location-status.hidden {
  display: none;
}

.help-toggle {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem;
  background: none;
  border: none;
  color: var(--accent-hover);
  font-family: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.location-help {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.location-help.hidden {
  display: none;
}

.help-intro,
.help-tip {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.help-tip {
  margin-bottom: 0;
  margin-top: 0.75rem;
}

.help-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.help-steps li:last-child {
  border-bottom: none;
}

.help-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

#share-btn {
  margin-top: 0;
}

/* Gallery */
.gallery-header {
  margin-bottom: 1.5rem;
}

.gallery-desc {
  color: var(--muted);
  margin-top: 0.35rem;
  max-width: 60ch;
}

.upload-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.file-picker {
  flex: 1;
  min-width: 180px;
  cursor: pointer;
}

.file-picker input {
  display: none;
}

.file-picker-label {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}

.file-picker:hover .file-picker-label {
  border-color: var(--accent);
  color: var(--text);
}

.days-picker {
  min-width: 140px;
}

.field-select {
  cursor: pointer;
}

.upload-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.upload-status.ok {
  color: #4ade80;
}

.upload-status.bad {
  color: #f87171;
}

.upload-status.hidden {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.gallery-empty.hidden {
  display: none;
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg);
  min-height: 140px;
}

.gallery-meta {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Live feed */
.live-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.live-desc {
  color: var(--muted);
  margin-top: 0.35rem;
}

.live-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-badge.offline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.live-badge.on-air {
  background: #dc2626;
  color: white;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.live-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.live-player-wrap {
  position: relative;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 320px;
  aspect-ratio: 16 / 10;
  min-width: 0;
  width: 100%;
}

.live-offline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 2rem;
  background: var(--surface);
}

.live-offline.hidden {
  display: none;
}

.live-offline-sub {
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.live-feed,
.live-preview {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.live-feed.fit-contain,
.live-preview.fit-contain {
  object-fit: contain;
}

.live-feed.fit-cover,
.live-preview.fit-cover {
  object-fit: cover;
}

.live-feed.hidden,
.live-preview.hidden {
  display: none;
}

.live-viewers {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  z-index: 2;
}

.live-controls {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.live-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
}

.live-ctrl-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

.live-ctrl-btn.muted {
  opacity: 0.55;
}

.live-ctrl-btn.hidden {
  display: none;
}

.live-player-wrap:fullscreen .live-feed,
.live-player-wrap:fullscreen .live-preview {
  height: 100vh;
}

.live-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.live-broadcaster-panel,
.chat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.live-broadcaster-panel h3,
.chat-panel h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.live-broadcaster-status {
  margin-top: 0.65rem;
  font-size: 0.85rem;
}

.live-broadcaster-status.ok {
  color: #4ade80;
}

.live-broadcaster-status.bad {
  color: #f87171;
}

.live-broadcaster-status.hidden {
  display: none;
}

.chat-messages {
  height: 280px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding-right: 0.25rem;
}

.chat-msg {
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.chat-msg-name {
  font-weight: 600;
  color: var(--accent-hover);
}

.chat-msg-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.35rem;
}

.chat-msg p {
  margin-top: 0.15rem;
  color: var(--text);
  word-break: break-word;
}

.chat-msg-name.jackson {
  color: #fbbf24;
}

.chat-as-jackson {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.chat-as-jackson strong {
  color: #fbbf24;
}

.chat-as-jackson.hidden {
  display: none;
}

.chat-form-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.chat-form-error.hidden {
  display: none;
}

.chat-name {
  margin-bottom: 0.5rem;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}

.chat-input-row .field-input {
  flex: 1;
}

.chat-input-row .btn {
  flex-shrink: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Apple-style home hub */
.home-page {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.home-page .nav-home {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1rem 0.75rem;
  background: transparent;
  border-bottom: none;
  position: static;
}

.home-page .nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.home-page .nav-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.home-page .nav-scroll::-webkit-scrollbar {
  display: none;
}

.home-page .nav-links-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  width: max-content;
  padding: 0.1rem 0 0.2rem;
}

.home-page .nav-links-wrap li {
  flex-shrink: 0;
}

.home-page .nav-link-btn,
.home-page .nav-links-wrap a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.home-page .nav-link-btn.nav-active,
.home-page .nav-links-wrap a.nav-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.home-page .nav-jackson {
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.home-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  box-sizing: border-box;
}

.home-page .view-stack {
  width: 100%;
}

.home-page .hub-view[hidden],
.home-page .location-view[hidden] {
  display: none !important;
}

.hub-view {
  padding: 0.5rem 0 1.5rem;
}

.hub-hero {
  text-align: center;
  padding: 1.25rem 0 1.75rem;
}

.hub-eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hub-title {
  font-size: clamp(2.75rem, 12vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.hub-tagline {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 20rem;
  margin: 0 auto;
  line-height: 1.5;
  padding: 0 0.5rem;
}

.product-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  font-family: inherit;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card:active {
  transform: scale(0.985);
}

.product-card-visual {
  position: relative;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.22), var(--surface));
  overflow: hidden;
}

.product-card[style*="--card-accent"] .product-card-visual {
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.22), var(--surface));
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .product-card[style*="--card-accent"] .product-card-visual {
    background: linear-gradient(165deg, color-mix(in srgb, var(--card-accent) 24%, #0a0a0f), var(--surface));
  }
}

.product-orb {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--card-accent, #6366f1);
  filter: blur(44px);
  opacity: 0.5;
}

.product-glyph {
  position: relative;
  font-size: 2rem;
  z-index: 1;
}

.product-card-copy {
  padding: 1.1rem 1.2rem 1.25rem;
}

.product-card-copy h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.product-card-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.product-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--card-accent, var(--accent-hover));
}

.home-page .location-view .section {
  max-width: none;
  margin: 0;
  padding: 0.5rem 0 1.5rem;
}

.home-page .map-large {
  height: min(52vh, 420px);
}

.footer-home {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.detail-hero {
  padding: 0.25rem 0 0;
  text-align: center;
}

.detail-body {
  padding: 0;
}

.detail-hero h1 {
  font-size: clamp(1.75rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 700px) {
  .home-page .nav-home {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
  }

  .home-page .nav-top {
    width: auto;
    flex: 0 0 auto;
  }

  .home-page .nav-scroll {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .home-page .nav-links-wrap {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    gap: 0.5rem 0.75rem;
  }

  .hub-hero {
    padding: 2rem 0.5rem 2rem;
  }

  .hub-tagline {
    font-size: 1.15rem;
    max-width: 24rem;
  }

  .product-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  }

  .product-card-visual {
    height: 120px;
  }
}

@media (min-width: 1024px) {
  .product-showcase {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-page .nav-home {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .home-page .nav-top {
    display: contents;
  }

  .home-page .nav-scroll {
    grid-column: 2;
    justify-self: center;
  }

  .home-page .nav-jackson {
    grid-column: 3;
    justify-self: end;
  }
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.2s, border-color 0.2s;
}

.detail-back:hover {
  color: var(--text);
  border-color: var(--accent);
}

.transition-curtain {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.transition-curtain.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Services page */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.service-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.service-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Jackson shop */
.shop-section {
  padding: 0.5rem 0 2rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.85rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.1rem 1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.shop-card:active {
  transform: scale(0.98);
}

.shop-card-emoji {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.shop-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.shop-card-blurb {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}

.shop-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 0.35rem;
}

.shop-card-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.shop-modal {
  max-width: 420px;
  text-align: left;
}

.shop-modal-visual {
  font-size: 3.5rem;
  line-height: 1;
  text-align: center;
  margin-bottom: 0.75rem;
}

.shop-modal-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #22d3ee;
  margin-bottom: 0.35rem;
}

.shop-modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.shop-modal-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 1rem;
}

.shop-modal-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.shop-modal-perks {
  list-style: none;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.shop-modal-perks li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.3rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.4;
}

.shop-modal-perks li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #22d3ee;
  font-size: 0.65rem;
  top: 0.55rem;
}

.btn-sold-out {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-sold-out:disabled {
  transform: none;
  box-shadow: none;
}

.shop-modal-fine {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 600px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Subpages (gallery, live, services, tinder, gaming) */
.home-page.subpage .detail-hero {
  padding: 0.5rem 0 0.25rem;
  text-align: center;
}

.home-page.subpage .detail-hero .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
}

.home-page.subpage .detail-body {
  padding: 0;
  width: 100%;
  min-width: 0;
}

.home-page.subpage .live-layout {
  width: 100%;
  min-width: 0;
}

.home-page.subpage .section {
  max-width: none;
  margin: 0;
  padding: 0.75rem 0 1.5rem;
}

.home-page.subpage .coming-soon-page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: calc(100dvh - 280px);
  padding: 1.5rem 0 2rem;
  width: 100%;
}

.live-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-top: 0.25rem;
}

.live-detail-hero .live-hero-row > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}

@media (min-width: 600px) {
  .live-hero-row {
    justify-content: space-between;
  }

  .live-detail-hero .live-badge {
    flex-shrink: 0;
  }
}

/* Coming soon */
.coming-soon-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  max-width: none !important;
}

.coming-soon-card {
  text-align: center;
  max-width: 420px;
  width: 100%;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.coming-soon-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.coming-soon-label {
  color: #fd267a;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.coming-soon-services .coming-soon-label {
  color: #22d3ee;
}

.coming-soon-services h1 {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coming-soon-gaming .coming-soon-label {
  color: #22c55e;
}

.coming-soon-gaming h1 {
  background: linear-gradient(135deg, #22c55e, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Rock Paper Scissors */
.rps-game {
  max-width: 520px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

.rps-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.rps-score {
  text-align: center;
  min-width: 4.5rem;
}

.rps-score-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.rps-score-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.rps-score-you .rps-score-num {
  color: #22c55e;
}

.rps-score-jackson .rps-score-num {
  color: #f87171;
}

.rps-score-divider {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.rps-score-pop {
  animation: rps-score-pop 0.45s ease;
}

@keyframes rps-score-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.rps-trash-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #22c55e;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  min-height: 3.25rem;
  transition: border-color 0.3s, transform 0.3s;
}

.rps-trash-bubble.is-hurt {
  border-left-color: #f87171;
  animation: rps-shake 0.5s ease;
}

.rps-trash-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.rps-trash-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
}

.rps-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem 0.75rem;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.rps-fighter {
  text-align: center;
}

.rps-fighter-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.rps-glyph-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
}

.rps-glyph {
  font-size: 3.5rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rps-glyph-idle {
  opacity: 0.65;
  animation: rps-idle 2.5s ease-in-out infinite;
}

.rps-glyph-think {
  animation: rps-think 0.6s ease-in-out infinite;
}

@keyframes rps-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes rps-think {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.08); }
}

.rps-vs {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.rps-arena.is-thinking .rps-fighter-jackson .rps-glyph-wrap {
  animation: rps-pulse 0.8s ease-in-out infinite;
}

.rps-arena.is-reveal .rps-fighter-you .rps-glyph {
  animation: rps-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rps-arena.is-reveal .rps-fighter-jackson .rps-glyph {
  animation: rps-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}

.rps-arena.is-clash {
  animation: rps-clash 0.35s ease;
}

.rps-arena.is-win .rps-fighter-you .rps-glyph {
  animation: rps-win-glow 0.7s ease;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.6));
}

.rps-arena.is-win .rps-fighter-jackson .rps-glyph {
  animation: rps-shake 0.6s ease;
  filter: grayscale(0.4);
  opacity: 0.75;
}

@keyframes rps-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes rps-pop-in {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes rps-clash {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.03); }
  60% { transform: scale(0.98); }
}

@keyframes rps-win-glow {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes rps-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-6px) rotate(-6deg); }
  40% { transform: translateX(6px) rotate(6deg); }
  60% { transform: translateX(-4px) rotate(-4deg); }
  80% { transform: translateX(4px) rotate(4deg); }
}

.rps-result {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rps-result-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rps-result.hidden {
  display: none;
}

@keyframes rps-result-in {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.rps-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.rps-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rps-choice:hover:not(:disabled) {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.rps-choice:active:not(:disabled) {
  transform: scale(0.96);
}

.rps-choice:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rps-choice-icon {
  font-size: 2rem;
  line-height: 1;
}

.rps-choice-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.rps-reset {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
}

.rps-reset.hidden {
  display: none;
}

.coming-soon-card h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fd267a, #ff7854);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coming-soon-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .live-player-wrap {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .transition-curtain {
    transition: none !important;
    animation: none !important;
  }

  .product-card:hover {
    transform: none;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
}

.footer-credit p {
  margin-top: 0.3rem;
  line-height: 1.45;
}

.footer-credit p:first-child {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    height: 200px;
  }

  .map {
    height: 360px;
  }

  .map-large {
    height: 400px;
  }

  .track-header {
    flex-direction: column;
  }

  .upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .live-layout {
    grid-template-columns: 1fr;
  }

  .home-page .hub-view {
    padding: 0.5rem 0 2rem;
  }

  .detail-hero,
  .detail-body {
    padding-left: 0;
    padding-right: 0;
  }

  .chat-messages {
    height: 200px;
  }
}
