.home-page { background: #000; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-navigation { display: flex; align-items: center; gap: 28px; }
.page-navigation a { text-decoration: none; transition: color 200ms; }
.page-navigation a:hover { color: #eef5f1; }
.main-stage { padding-top: 28px; }
.world-toolbar { width: 100%; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.world-toolbar button { border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); padding: 7px 13px; font: inherit; font-size: 14px; cursor: pointer; }
.world-toolbar button[aria-pressed="true"] { border-color: var(--line); color: #e0e9e4; }
.world-toolbar button:focus-visible, .member-portrait:focus-visible { outline: 1px solid #c8dcda; outline-offset: 5px; }
.world-toolbar button:disabled { opacity: .4; cursor: default; }
.world-toolbar .world-sound { margin-left: auto; }
.world-viewport { position: relative; width: 100%; aspect-ratio: 1080 / 390; margin-bottom: 16px; }
.location-map { position: relative; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.map-location { pointer-events: auto; cursor: pointer; }
.map-location.is-active .map-connector { stroke-opacity: 1; }
.map-location.is-active .country-highlight { fill-opacity: 1; fill: #405d50; }
.map-location.is-active .location-point, .map-location.is-active .location-terminal { fill: #fff; }
.world-viewport[data-view="globe"] .map-base, .world-viewport[data-view="globe"] .country-highlight { display: none; }
.map-location[data-facing="false"] .map-connector, .map-location[data-facing="false"] .location-halo, .map-location[data-facing="false"] .location-point { opacity: 0; }
#world-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#world-canvas[hidden] { display: none; }
#world-canvas:active { cursor: grabbing; }
#world-canvas:focus-visible { outline: 1px solid var(--line); outline-offset: 3px; }
.bitr-wordmark { position: relative; width: min(390px, 78%); color: #d8dedb; }
.bitr-wordmark svg { position: relative; z-index: 1; }
.logo-light { position: absolute; inset: 0; display: block; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.logo-light[hidden] { display: none; }
.logo-drawing { animation: none; opacity: .9; }
.brand-caption { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: #a9b3ae; }
.member-portrait { padding: 0; background: transparent; cursor: pointer; }
.member-list li.is-active .member-portrait { border-color: #b8d9c8; box-shadow: 0 0 20px #b8d9c812; }
.member-list li.is-active .member-flag { outline-color: #b8d9c8; }
.scene-status { margin: 16px 0 0; color: #c2b4a6; font-size: 13px; }
.member-dialog { width: min(430px, calc(100% - 32px)); max-height: calc(100svh - 48px); border: 1px solid #a2b9ad3b; border-radius: 12px; padding: 32px; background: #080b09; color: #e0e9e4; box-shadow: 0 24px 100px #000b; }
.member-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.dialog-close { float: right; border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.dialog-close:focus-visible { outline: 1px solid #c8dcda; outline-offset: 4px; }
.profile-avatar { display: block; border-radius: 50%; object-fit: cover; }
.member-dialog h2 { margin: 20px 0 8px; font-size: 26px; font-weight: 500; }
.profile-country { display: flex; gap: 10px; align-items: center; margin: 0; color: var(--muted); font-size: 14px; }
.profile-country img { border-radius: 2px; }
.profile-interests { margin: 22px 0; color: #a9b3ae; font-size: 14px; line-height: 1.7; }
.profile-links { display: flex; flex-wrap: wrap; gap: 16px; }
.profile-links a, .profile-music a { color: #d0e7da; text-decoration-color: #738b7d; text-underline-offset: 4px; font-size: 14px; }
.profile-music { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.profile-music h3 { margin: 0 0 14px; font-size: 14px; font-weight: 400; color: var(--muted); }
.profile-music ul { list-style: none; padding: 0; margin: 0; }
.profile-music li + li { margin-top: 14px; }
@media (max-width: 700px) {
  .page-navigation { gap: 18px; }
  /* Edge to edge on phones; the aspect ratios match the frames in js/home.js. */
  .world-viewport { width: calc(100% + 48px); margin: 0 -24px 32px; aspect-ratio: 2 / 1; }
  .world-viewport[data-view="globe"] { aspect-ratio: 1 / 1; }
  .location-map { overflow: hidden; }
  .map-connector, .location-terminal { display: none; }
  .world-toolbar { margin-bottom: 20px; }
  .brand-caption { font-size: 14px; }
}
/* Finger-sized tap targets on phones and touch screens. */
@media (max-width: 700px), (pointer: coarse) {
  .page-navigation a { padding: 10px 0; }
  .world-toolbar button { padding: 11px 14px; }
  .member-link { margin-top: 0; padding: 10px 12px; }
  .dialog-close { padding: 10px 14px; }
}
@media (max-width: 380px) {
  .world-viewport { width: calc(100% + 40px); margin-inline: -20px; }
}
@media (pointer: coarse) {
  /* Vertical swipes scroll the page; sideways swipes still turn the globe. */
  #world-canvas { touch-action: pan-y; }
}
@media (prefers-reduced-motion: reduce) {
  .member-portrait:hover, .member-portrait:focus-visible { transform: none; }
  .map-location path, .map-location circle { transition: none; }
}
