:root {
  --bg-void: #070609;
  --bg-sidebar: #0d0b10;
  --bg-panel: #121017;
  --bg-panel-hover: #18151f;
  --red-deep: #5e0914;
  --red-primary: #e11d38;
  --red-bright: #ff2e4c;
  --red-glow: rgba(225, 29, 56, 0.35);
  --red-border: rgba(225, 29, 56, 0.28);
  --text-main: #f4f2f7;
  --text-muted: #9890a3;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --sidebar-width: 265px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
}

body {
  min-height: 100vh;
  display: flex;
  background: var(--bg-void);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Noticeable Slow-Drifting Crimson Orbs Across All Pages */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 25%, rgba(205, 18, 42, 0.36) 0%, transparent 34%),
    radial-gradient(circle at 28% 72%, rgba(155, 12, 30, 0.32) 0%, transparent 38%),
    radial-gradient(circle at 50% 45%, rgba(120, 8, 22, 0.22) 0%, transparent 42%);
  animation: orbDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.viewport_wrap {
  position: relative;
  z-index: 1;
}

@keyframes orbDrift {
  0% {
    transform: translate3d(-12%, -8%, 0) scale(0.96);
  }
  50% {
    transform: translate3d(10%, 9%, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-6%, 12%, 0) scale(1);
  }
}

/* Fixed Left Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--red-border);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  z-index: 100;
  overflow-y: auto;
}

.sidebar_brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 20px;
  background: rgba(225, 29, 56, 0.08);
  border: 1px solid var(--red-border);
  border-radius: 10px;
}

.sidebar_avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--red-primary);
  box-shadow: 0 0 12px var(--red-glow);
}

.sidebar_handle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.sidebar_sub {
  font-size: 0.78rem;
  color: var(--red-bright);
}

.nav_group_label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 18px 0 8px 8px;
  text-transform: uppercase;
}

.nav_list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav_tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.nav_tab:hover {
  color: var(--text-main);
  background: rgba(225, 29, 56, 0.1);
  border-color: rgba(225, 29, 56, 0.2);
}

.nav_tab.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(225, 29, 56, 0.28), rgba(225, 29, 56, 0.06));
  border-color: var(--red-primary);
  box-shadow: 0 0 16px rgba(225, 29, 56, 0.22);
}

/* Sidebar Audio Player */
.sidebar_audio {
  margin-top: auto;
  padding: 13px;
  background: var(--bg-panel);
  border: 1px solid var(--red-border);
  border-radius: 10px;
}

.audio_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.audio_controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio_btn {
  background: var(--red-primary);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 0 12px var(--red-glow);
}

.audio_slider {
  flex: 1;
  accent-color: var(--red-primary);
}

/* Centered Main Viewport Area */
.viewport_wrap {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 42px 36px 90px;
}

.content_area {
  width: 100%;
  max-width: 1120px;
}

.view_fade {
  animation: viewFadeIn 0.2s ease;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Top PNG Banner */
.banner_wrap {
  width: 100%;
  margin: 0 auto 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.banner_img {
  display: block;
  width: 100%;
  max-width: 920px;
  max-height: 360px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(225, 29, 56, 0.32));
}

.section_heading {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 18px;
}

/* 2-Column Split: 3 Stacked Quick Links (Left) + Exact 9:16 Vertical Carousel (Right) */
.home_split_grid {
  display: grid;
  grid-template-columns: 360px 440px;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
  max-width: 832px;
  margin: 0 auto 42px;
}

.home_col {
  display: flex;
  flex-direction: column;
}

.quick_links_stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.quick_tile {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(145, 12, 30, 0.28), var(--bg-panel));
  border: 1px solid var(--red-border);
  border-radius: 14px;
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick_tile:hover {
  transform: translateY(-2px);
  border-color: var(--red-bright);
  box-shadow: 0 0 24px var(--red-glow);
}

.quick_tile_title {
  font-size: 1.15rem;
  font-weight: 700;
}

.quick_tile_sub {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Large Portrait Carousel (440px x 560px) — No Text Overlay */
.carousel_box {
  position: relative;
  width: 440px;
  height: 560px;
  background: var(--bg-panel);
  border: 1px solid var(--red-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 32px rgba(225, 29, 56, 0.18);
}

.carousel_track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel_slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background: #0b090e;
}

.carousel_slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 11, 16, 0.78);
  border: 1px solid var(--red-border);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.carousel_btn:hover {
  background: var(--red-primary);
  box-shadow: 0 0 16px var(--red-glow);
}

.carousel_btn.prev { left: 12px; }
.carousel_btn.next { right: 12px; }

.carousel_dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(13, 11, 16, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}

.carousel_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
}

.carousel_dot.active {
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-glow);
}

/* Dangerous Links 1 + 2x2 Grid */
.danger_wrap {
  max-width: 940px;
  margin: 0 auto;
}

.terminal_featured {
  margin-bottom: 24px;
}

.terminal_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.terminal_card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--red-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.terminal_card:hover {
  transform: translateY(-3px);
  border-color: var(--red-bright);
  box-shadow: 0 0 28px var(--red-glow);
}

.terminal_bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  background: rgba(225, 29, 56, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.terminal_tag {
  color: var(--red-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.terminal_body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 26px;
  background: radial-gradient(circle at center, rgba(225, 29, 56, 0.16), transparent 72%);
}

.terminal_featured .terminal_body {
  padding: 48px 32px;
  background: radial-gradient(circle at center, rgba(225, 29, 56, 0.25), transparent 75%);
}

.terminal_body h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 8px;
}

.terminal_featured .terminal_body h3 {
  font-size: 1.75rem;
}

.terminal_body p {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 460px;
}

.terminal_subtag {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  color: var(--red-bright);
}

/* Modular Top-Right Slide-Down Notification Toast */
.toast_container {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: rgba(18, 16, 23, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--red-bright);
  border-left: 4px solid var(--red-primary);
  border-radius: 10px;
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 22px var(--red-glow);
  animation: toastSlideDown 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.toast_item.hide {
  animation: toastSlideUp 0.24s ease forwards;
}

.toast_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright);
}

@keyframes toastSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastSlideUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-18px); }
}

/* Compact Two-Column Accomplishments Layout */
.stats_wrap {
  max-width: 780px;
  margin: 0 auto;
}

.stats_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  background: var(--bg-panel);
  border: 1px solid var(--red-border);
  border-radius: 12px;
  padding: 32px 36px;
}

.stats_col h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.12rem;
  color: var(--red-bright);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.stat_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1.06rem;
}

.stat_check {
  color: var(--red-bright);
  font-weight: 700;
  text-shadow: 0 0 10px var(--red-glow);
}

.stat_cross {
  color: var(--text-muted);
}

.last_updated {
  margin-top: 12px;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form Elements */
.dark_input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--red-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.96rem;
}

.dark_input:focus {
  outline: none;
  border-color: var(--red-bright);
  box-shadow: 0 0 14px var(--red-glow);
}

.crimson_btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #a80d22, var(--red-primary));
  border: 1px solid var(--red-bright);
  border-radius: 8px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px var(--red-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.crimson_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255, 46, 76, 0.55);
}

/* Centered Trigger Gallery Header + Subtitle */
.trigger_header_bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 26px;
}

.trigger_subtext {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 560px;
}

.trigger_count {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  color: var(--red-bright);
  background: rgba(225, 29, 56, 0.12);
  border: 1px solid var(--red-border);
  padding: 6px 14px;
  border-radius: 999px;
}

.trigger_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trigger_card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-panel);
  border: 1px solid var(--red-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.trigger_card:hover {
  transform: translateY(-4px);
  border-color: var(--red-bright);
  box-shadow: 0 0 26px var(--red-glow);
}

.trigger_card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.trigger_card:hover img {
  transform: scale(1.04);
}

@media (max-width: 720px) {
  .trigger_count {
    position: static;
    margin-top: 6px;
  }
}

/* Fullscreen Gallery Lightbox Modal */
.lightbox_overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 4, 8, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox_overlay.open {
  display: flex;
  touch-action: none;
}

.lightbox_stage {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox_img {
  max-width: 86vw;
  max-height: 86vh;
  border-radius: 12px;
  border: 1px solid var(--red-border);
  box-shadow: 0 0 45px rgba(225, 29, 56, 0.28);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.lightbox_img.zoomed {
  cursor: grab;
}

.lightbox_img.dragging {
  cursor: grabbing;
  transition: none;
}

.lightbox_btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 16, 23, 0.9);
  border: 1px solid var(--red-border);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lightbox_btn:hover {
  background: var(--red-primary);
  box-shadow: 0 0 20px var(--red-glow);
}

.lightbox_btn.prev { left: 26px; }
.lightbox_btn.next { right: 26px; }

.lightbox_close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(18, 16, 23, 0.9);
  border: 1px solid var(--red-border);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox_close:hover {
  background: var(--red-primary);
}

.lightbox_counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--text-main);
  background: rgba(18, 16, 23, 0.85);
  border: 1px solid var(--red-border);
  padding: 6px 16px;
  border-radius: 999px;
}

@media (max-width: 960px) {
  .trigger_grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { flex-direction: column; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--red-border);
  }
  .viewport_wrap {
    margin-left: 0;
    padding: 24px 18px 60px;
  }
  .home_split_grid { grid-template-columns: 1fr; }
  .stats_grid { grid-template-columns: 1fr; }
}

/* Trigger Lightbox Bottom-Right Floating Like HUD */
.lb_like_hud {
  position: fixed;
  bottom: 24px;
  right: 26px;
  z-index: 1010;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(145, 12, 30, 0.34), rgba(14, 12, 19, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid var(--red-border);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lb_like_hud.liked {
  border-color: var(--red-bright);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.75), 0 0 24px var(--red-glow);
}

.lb_like_btn {
  height: 48px;
  padding: 0 18px;
  gap: 10px;
  border-radius: 12px;
  background: rgba(8, 7, 11, 0.88);
  border: 1px solid var(--red-border);
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lb_like_btn:hover {
  transform: translateY(-2px);
  border-color: var(--red-bright);
}

.lb_like_emoji {
  font-size: 1.35rem;
  line-height: 1;
  filter: grayscale(100%) brightness(0.85);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.lb_like_count {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.lb_like_hud.liked .lb_like_btn {
  background: linear-gradient(135deg, #a80d22, var(--red-primary));
  border-color: var(--red-bright);
  box-shadow: 0 0 16px var(--red-glow);
}

.lb_like_hud.liked .lb_like_emoji {
  filter: grayscale(100%) brightness(1.35) contrast(1.15);
  transform: scale(1.08);
}

.lb_like_hud.liked .lb_like_count {
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.28);
}

/* Visitor Log Header, Share Button & Google Maps Preview */
.visitor_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 24px;
}

.visitor_sub {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* 2x1 Location + Passive Telemetry Split Card */
.geo_preview_box {
  display: none;
  max-width: 1040px;
  margin: 0 auto 28px;
  background: var(--bg-panel);
  border: 1px solid var(--red-bright);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 34px var(--red-glow);
  animation: viewFadeIn 0.25s ease;
}

.geo_preview_box.open {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}

.geo_left_tile {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--red-border);
  background: #0a080d;
}

.geo_map_frame {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
  display: block;
  filter: invert(90%) hue-rotate(180deg) contrast(95%);
}

.geo_right_tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  background: radial-gradient(circle at top right, rgba(225, 29, 56, 0.14), transparent 72%);
  text-align: left;
}

.telemetry_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--red-bright);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.telemetry_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
}

.telemetry_list li {
  line-height: 1.45;
  color: var(--text-main);
  word-break: break-word;
}

.telemetry_key {
  color: var(--text-muted);
  margin-right: 6px;
}

@media (max-width: 860px) {
  .geo_preview_box.open {
    grid-template-columns: 1fr;
  }
  .geo_left_tile {
    border-right: none;
    border-bottom: 1px solid var(--red-border);
  }
  .geo_map_frame {
    min-height: 240px;
  }
}

/* Full-Width Expanded Interactive World Map Stage */
.visitor_map_outer {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.world_map_card {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at center, #16080d 0%, #070609 82%);
  border: 1px solid var(--red-border);
  border-radius: 16px;
  padding: 20px 22px 16px;
  box-shadow: 0 0 45px rgba(225, 29, 56, 0.18);
  overflow: hidden;
}

.world_map_svg {
  width: 100%;
  height: auto;
  min-height: 460px;
  display: block;
  filter: drop-shadow(0 0 7px rgba(225, 29, 56, 0.48));
}

.country_path {
  fill: #120b0e;
  stroke: #e11d38;
  stroke-width: 0.65px;
  transition: fill 0.16s ease, stroke 0.16s ease;
  cursor: pointer;
}

.country_path.has_visitors {
  fill: rgba(225, 29, 56, 0.26);
}

.country_path:hover,
.country_path.selected_country {
  fill: rgba(255, 46, 76, 0.58);
  stroke: #ff5c74;
  stroke-width: 1.25px;
}

/* Floating Tooltip Inside Map */
.map_tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  padding: 10px 14px;
  background: rgba(13, 11, 16, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--red-bright);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 18px var(--red-glow);
  transition: opacity 0.12s ease;
  white-space: nowrap;
}

.map_tooltip.visible {
  opacity: 1;
}

.map_tooltip_count {
  color: var(--red-bright);
  font-weight: 700;
  margin-top: 2px;
}

.map_stats_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .world_map_svg {
    min-height: 240px;
  }
}

/* Roulette Games 3xN Grid */
.roulette_header_bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 26px;
}

.roulette_subtext {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 560px;
}

.roulette_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.roulette_card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--red-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.roulette_card:hover {
  transform: translateY(-4px);
  border-color: var(--red-bright);
  box-shadow: 0 0 28px var(--red-glow);
}

.roulette_img_wrap {
  aspect-ratio: 3 / 4;
  width: 100%;
  background: #0b090e;
  overflow: hidden;
}

.roulette_img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.roulette_card:hover .roulette_img_wrap img {
  transform: scale(1.03);
}

.roulette_card_title {
  padding: 13px 16px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  background: rgba(225, 29, 56, 0.05);
}

/* Fullscreen Roulette Image + Compact Bottom-Right X / Y / Z Floating HUD */
.dice_modal_overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 4, 8, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dice_modal_overlay.open {
  display: flex;
}

.dice_fullscreen_stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dice_fullscreen_img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--red-border);
  box-shadow: 0 0 50px rgba(225, 29, 56, 0.28);
  display: block;
}

.dice_hud_close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 1010;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 16, 23, 0.9);
  border: 1px solid var(--red-border);
  color: var(--text-main);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dice_hud_close:hover {
  background: var(--red-primary);
  border-color: var(--red-bright);
  box-shadow: 0 0 18px var(--red-glow);
}

/* Compact Floating HUD Docked Bottom-Right (~50% Larger) */
.dice_floating_hud {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1010;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(145, 12, 30, 0.34), rgba(14, 12, 19, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid var(--red-bright);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.75), 0 0 26px var(--red-glow);
  animation: viewFadeIn 0.2s ease;
}

.dice_slots_row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dice_slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  padding: 13px 16px;
  background: rgba(8, 7, 11, 0.88);
  border: 1px solid var(--red-border);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dice_slot.rolling {
  border-color: rgba(255, 46, 76, 0.65);
}

.dice_slot.locked {
  border-color: var(--red-bright);
  box-shadow: 0 0 18px var(--red-glow);
  transform: translateY(-2px);
}

.dice_slot_tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

.dice_slot_val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.dice_slot.locked .dice_slot_val {
  color: var(--red-bright);
  text-shadow: 0 0 14px var(--red-glow);
}

.dice_reroll_btn {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a80d22, var(--red-primary));
  border: 1px solid var(--red-bright);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px var(--red-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.dice_reroll_btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(255, 46, 76, 0.55);
}

.dice_reroll_btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.reroll_icon {
  font-size: 1.75rem;
  line-height: 1;
}

@media (max-width: 820px) {
  .roulette_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dice_fullscreen_img {
    max-width: 94vw;
    max-height: 82vh;
  }
  .dice_floating_hud {
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
  }
}

/* CS:GO Style Horizontal Task Spinners */
.spinners_header_bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 30px;
}

.spinners_subtext {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 560px;
}

.spinners_stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 980px;
  margin: 0 auto;
}

.spinner_block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spinner_meta_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.spinner_title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
}

.spinner_result_badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.spinner_result_badge.has_result {
  color: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 0 14px var(--red-glow);
}

.spinner_viewport {
  position: relative;
  width: 100%;
  height: 118px;
  background: #09080c;
  border: 1px solid var(--red-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.85), 0 0 22px rgba(225, 29, 56, 0.12);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.spinner_viewport:hover:not(.spinning) {
  border-color: var(--red-bright);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.85), 0 0 26px var(--red-glow);
}

.spinner_viewport.spinning {
  cursor: wait;
  border-color: var(--red-bright);
}

/* Edge Vignette Masks */
.spinner_viewport::before,
.spinner_viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 4;
  pointer-events: none;
}

.spinner_viewport::before {
  left: 0;
  background: linear-gradient(90deg, #070609 0%, transparent 100%);
}

.spinner_viewport::after {
  right: 0;
  background: linear-gradient(270deg, #070609 0%, transparent 100%);
}

/* Glowing Red Center Marker Line + Top/Bottom Triangles */
.spinner_centerline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright), 0 0 22px rgba(255, 46, 76, 0.9);
  z-index: 6;
  pointer-events: none;
}

.spinner_centerline::before,
.spinner_centerline::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.spinner_centerline::before {
  top: 0;
  border-top: 8px solid var(--red-bright);
}

.spinner_centerline::after {
  bottom: 0;
  border-bottom: 8px solid var(--red-bright);
}

.spinner_strip {
  position: absolute;
  top: 11px;
  left: 0;
  height: 94px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  will-change: transform;
}

.spinner_tile {
  flex: 0 0 156px;
  width: 156px;
  height: 94px;
  padding: 10px 12px;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 3px solid #6b6475;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  word-break: break-word;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.spinner_tile.rarity_uncommon {
  border-bottom-color: #3b82f6;
  background: linear-gradient(180deg, var(--bg-panel) 55%, rgba(59, 130, 246, 0.14) 100%);
}

.spinner_tile.rarity_rare {
  border-bottom-color: #a855f7;
  background: linear-gradient(180deg, var(--bg-panel) 55%, rgba(168, 85, 247, 0.16) 100%);
}

.spinner_tile.rarity_epic {
  border-bottom-color: var(--red-primary);
  background: linear-gradient(180deg, var(--bg-panel) 50%, rgba(225, 29, 56, 0.22) 100%);
}

.spinner_tile.rarity_legendary {
  border-bottom-color: #f59e0b;
  background: linear-gradient(180deg, var(--bg-panel) 45%, rgba(245, 158, 11, 0.24) 100%);
  color: #fde68a;
}

.spinner_tile.winner {
  border-color: var(--red-bright);
  box-shadow: 0 0 22px var(--red-glow), inset 0 0 14px rgba(225, 29, 56, 0.25);
  transform: scale(1.03);
}

/* Dim all losing tiles once a result settles so the winner pops */
.spinner_strip.has_winner .spinner_tile:not(.winner) {
  opacity: 0.32;
  filter: brightness(0.42);
}

.spinner_strip.has_winner .spinner_tile.winner {
  opacity: 1;
  filter: brightness(1.08);
  border-color: var(--red-bright);
  box-shadow: 0 0 24px var(--red-glow), inset 0 0 16px rgba(225, 29, 56, 0.28);
  transform: scale(1.04);
  z-index: 2;
}

/* Confessions Page & 4-Column Answered Q&A Board */
.confess_outer {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

.confess_header_bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 26px;
}

.confess_subtext {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 640px;
}

.confess_form_card {
  max-width: 680px;
  margin: 0 auto 42px;
  padding: 24px 28px;
  background: var(--bg-panel);
  border: 1px solid var(--red-border);
  border-radius: 14px;
  box-shadow: 0 0 34px rgba(225, 29, 56, 0.14);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.confess_field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.confess_label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.confess_char_count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Constrain vertical resize to a small range only */
.confess_textarea {
  resize: vertical;
  min-height: 112px;
  max-height: 220px;
}

.confess_board_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.confess_board_title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

/* 4-Column Bubble Grid */
.confess_board_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.confess_bubble {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-panel);
  border: 1px solid var(--red-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.confess_bubble:hover {
  transform: translateY(-3px);
  border-color: var(--red-bright);
  box-shadow: 0 0 24px var(--red-glow);
}

.confess_bubble_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.confess_sender_tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-bright);
  background: rgba(225, 29, 56, 0.12);
  border: 1px solid var(--red-border);
  padding: 3px 10px;
  border-radius: 999px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confess_id_tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.confess_question_text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 14px;
  word-break: break-word;
}

.confess_answer_box {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(225, 29, 56, 0.14), rgba(10, 8, 13, 0.85));
  border-left: 3px solid var(--red-primary);
  border-radius: 8px;
  margin-bottom: 12px;
}

.confess_answer_label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-bright);
  margin-bottom: 4px;
}

.confess_answer_text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.48;
  word-break: break-word;
}

.confess_bubble_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.confess_tweet_btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.confess_tweet_btn:hover {
  border-color: var(--red-bright);
  background: rgba(225, 29, 56, 0.2);
}

.confess_timestamp {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 1120px) {
  .confess_board_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .confess_board_grid {
    grid-template-columns: 1fr;
  }
}