:root {
  --bg: #05040d;
  --surface: #0e0d18;
  --surface-border: #222035;
  --ink: #f6f3ee;
  --mut: #8b8f9e;
  --soft: rgba(246, 243, 238, 0.72);
  --chip: rgba(255, 255, 255, 0.08);
  --btn: #f6f3ee;
  --btnink: #05040d;
  --accent: #ff4f8b;
  --px: clamp(20px, 6.5vw, 124px);
  --ui: "Inter", system-ui, -apple-system, sans-serif;
  --h: 265;
  color-scheme: dark;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* â”€â”€ 3D Fly Canvas & Stage â”€â”€ */
#st {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#vg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 4, 13, 0.85) 100%);
  z-index: 3;
}

#flyStage {
  position: fixed;
  inset: 0;
  perspective: 700px;
  overflow: hidden;
  touch-action: none;
  z-index: 2;
}

.it {
  position: absolute;
  left: 50%;
  top: 50%;
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.it * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

@keyframes savePop {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.7) drop-shadow(0 0 16px rgba(255, 255, 255, 0.9)); }
  100% { transform: scale(1); filter: brightness(1); }
}

.it.saved-pop b {
  display: inline-block;
  animation: savePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.it small {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: hsl(var(--h, 260) 95% 72%);
  text-transform: capitalize;
  white-space: nowrap;
}

.it b {
  display: block;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
  max-width: clamp(280px, 40vw, 560px);
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

.it.f b {
  color: #fff;
  -webkit-text-stroke-color: #fff;
  text-shadow: 0 0 50px hsl(var(--h, 260) 95% 60% / 0.85);
}

/* â”€â”€ HUD Navigation (Top & Bottom) â”€â”€ */
.hud {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  padding: 0 var(--px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.hud button, .hud input, .hud label, .hud .chip, .hud a {
  pointer-events: auto;
}

.hud textarea, .hud .sb {
  pointer-events: auto;
}

.top {
  top: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(14px, 4vh, 36px));
}

.logo {
  font-weight: 500;
  font-size: clamp(28px, 2.1vw, 38px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}

.logo em {
  font: italic 400 1.04em "Instrument Serif", Georgia, serif;
  letter-spacing: 0.01em;
}

.row {
  display: flex;
  align-items: center;
}

.nav-menu {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 0.5px solid transparent;
  border-radius: 999px;
  font: 500 16px/normal var(--ui);
  color: var(--mut);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.a.on {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.a:not([disabled]):not(.on):hover {
  color: #fff;
}

.a.on:hover {
  background: rgba(255, 255, 255, 0.14);
}

.a[disabled] {
  cursor: default;
  opacity: 0.5;
}

.snd-btn {
  gap: 6px;
  padding: 8px 14px;
}

.ic {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

/* ── Bottom HUD (Fly Controls - Reference Design) ── */
.bot {
  bottom: 0;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(56px, 7vh, 68px));
  flex-wrap: wrap;
  gap: 24px;
}
.lf {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  max-width: 100%;
}
#cd {
  margin: 0;
  width: min(462px, 100%);
  min-height: 2.4em;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.08em;
  color: #b4b4b4;
  transition: opacity 0.3s;
}
.cr {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font: 300 18px var(--ui);
}
.chip button:first-child {
  padding: 10px 8px 10px 20px;
}
.chip button:last-child {
  padding: 10px 14px 10px 6px;
  opacity: 0.55;
}
.chip button:hover {
  opacity: 1;
}
.more {
  background: #363984;
  border-color: #fff;
  color: #fff;
  gap: 4px;
}
.rt {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: clamp(300px, 23vw, 428px);
}
.dd {
  position: relative;
}
#menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  width: min(440px, calc(100vw - 2 * var(--px)));
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  background: #080909;
  border: 0.8px solid #535353;
  border-radius: 6px;
  z-index: 20;
  max-height: 60vh;
  overflow: auto;
  pointer-events: auto;
  scrollbar-width: thin;
}
#menu button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 7px 14px;
  border: 0.8px solid #3a3d3d;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font: 300 15px var(--ui);
  color: #b4b4b4;
  text-align: left;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
#menu button[role=menuitemradio]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, #fff);
  flex: none;
}
#menu button i {
  font-style: normal;
  font-size: 12px;
  opacity: 0.45;
}
#menu .sg:first-child button[aria-pressed=true] {
  color: #fff;
  font-weight: 500;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
#menu .sg + .sep + .sg button[aria-pressed=true] {
  color: #fff;
  border-color: #6a6ee8;
  background: #2b2e7a;
  box-shadow: 0 0 8px rgba(106, 110, 232, 0.5);
}
.cg {
  flex: 1 1 100%;
  font: 300 12px var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 6px 2px 0;
}
.cg:first-child {
  margin-top: 0;
}
#menu button:hover {
  color: #fff;
}
#menu button[aria-checked=true] {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
@media (min-width: 901px) {
  #menu {
    left: auto;
    right: 0;
  }
}
#fm {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#fm .ft {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}
#fm .ft button {
  flex: 1 1 auto;
  justify-content: center;
  padding: 6px 8px;
  border: 0;
  background: none;
  font-size: 14px;
  gap: 6px;
}
#fm .ft button[aria-selected=true] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 500;
}
#fm .ft button.has::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b8ff5;
  flex: none;
}
#fc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 148px;
  overflow: auto;
  scrollbar-width: thin;
  padding: 1px;
}
#fc button {
  padding: 5px 10px;
  font-size: 14px;
}
#fc button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, #777);
  flex: none;
}
#fc button[aria-pressed=true] {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
#fc button:disabled {
  opacity: 0.3;
  cursor: default;
}
#fm .go {
  display: none;
}

.sb {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 110px;
  padding: 10px;
  background: #080909;
  border: 0.8px solid #535353;
  border-radius: 4px;
  cursor: text;
  transition: border-color 0.25s;
}
.sb:focus-within {
  border-color: #fff;
}
.sb svg {
  margin: 5px 2px 0;
}
.sbt {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.sbf {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 0.5px solid #242626;
  padding-top: 10px;
}
.sg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sep {
  width: 1px;
  height: 20px;
  background: #3a3d3d;
}
.sbf button {
  font: 300 13px var(--ui);
  color: #b4b4b4;
  padding: 3px 10px;
  border: 0.8px solid #3a3d3d;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.sbf button:hover {
  color: #fff;
}
.sg:first-child button[aria-pressed=true] {
  color: #fff;
  font-weight: 500;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.sg + .sep + .sg button[aria-pressed=true] {
  color: #fff;
  border-color: #6a6ee8;
  background: #2b2e7a;
  box-shadow: 0 0 8px rgba(106, 110, 232, 0.5);
}
.sb textarea {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  resize: none;
  overflow: auto;
  color: #fff;
  font: 300 18px var(--ui);
  padding: 0;
  height: 46px;
  min-height: 46px;
  line-height: 23px;
}
.sb textarea::placeholder {
  color: #fff;
  opacity: 0.5;
}
.sb kbd {
  display: flex;
  gap: 6px;
  opacity: 0.5;
  font: 300 14px var(--ui);
}
.sb kbd span {
  border: 0.86px solid rgba(255, 255, 255, 0.5);
  border-radius: 2.3px;
  padding: 0 4px;
  height: 19px;
  line-height: 17px;
  min-width: 17px;
  text-align: center;
}
#dn {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  transform: translateX(-50%);
  padding: 8px;
  color: #fff;
}

/* ── Depth Gauge (Reference Design) ── */
#depth {
  position: fixed;
  z-index: 9;
  left: clamp(10px, 2.4vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
  font: 300 14px var(--ui);
  color: var(--mut);
}
.dl {
  position: relative;
  height: clamp(160px, 34vh, 320px);
  width: 1px;
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
}
.dl::before, .dl::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 7px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.dl::before { top: 33.3%; }
.dl::after { top: 66.6%; }
#dm {
  position: absolute;
  left: -4px;
  top: 0;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.6);
  transition: top 0.5s linear;
}
.zl {
  position: absolute;
  left: 16px;
  transform: translateY(-50%);
  white-space: nowrap;
  transition: color 0.4s;
}
.zl.on {
  color: #fff;
}
.dr {
  margin: 0;
  white-space: nowrap;
  color: #b4b4b4;
}
.dr b {
  font-weight: 400;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
#zt {
  position: fixed;
  z-index: 9;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  font: italic 400 clamp(28px, 4.4vw, 60px) "Instrument Serif", Georgia, serif;
  letter-spacing: -0.01em;
  color: var(--tx);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
#zt.show {
  animation: zt 3.4s ease both;
}
@keyframes zt {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  15%, 75% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.trail {
  display: flex;
  gap: 14px;
  align-items: center;
  font: 300 14px var(--ui);
  color: #b4b4b4;
  flex-wrap: wrap;
}
.trail button {
  color: var(--mut);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trail button:hover {
  color: #fff;
}
.acts {
  flex-wrap: wrap;
}

/* â”€â”€ Takeover Modal (Fly Rabbithole) â”€â”€ */
#take {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--tc, #ff4f8b);
  color: var(--tk-fg, #ffffff);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) clamp(20px, 5vw, 64px) calc(env(safe-area-inset-bottom, 0px) + 32px);
  clip-path: circle(0px at 50% 50%);
  visibility: hidden;
  transition: background-color 0.6s, color 0.3s;

  /* Default / Dark Background Contrast: pure white text & crisp glass pills */
  --tk-fg: #ffffff;
  --tk-fg-sub: rgba(255, 255, 255, 0.92);
  --tk-border: rgba(255, 255, 255, 0.45);
  --tk-pill-bg: rgba(255, 255, 255, 0.16);
  --tk-pill-border: rgba(255, 255, 255, 0.38);
  --tk-pill-hover-bg: rgba(255, 255, 255, 0.28);
  --tk-circle-bg: #ffffff;
  --tk-circle-fg: #0b0818;
}

#take.open {
  visibility: visible;
}
#take.in {
  clip-path: none !important;
}

/* Bright Background (e.g. yellow, lime, bright cyan): deep black text & crisp dark pills */
#take.light-contrast {
  --tk-fg: #0b0818;
  --tk-fg-sub: rgba(11, 8, 24, 0.88);
  --tk-border: rgba(11, 8, 24, 0.38);
  --tk-pill-bg: rgba(11, 8, 24, 0.08);
  --tk-pill-border: rgba(11, 8, 24, 0.26);
  --tk-pill-hover-bg: rgba(11, 8, 24, 0.16);
  --tk-circle-bg: #0b0818;
  --tk-circle-fg: #ffffff;
}

/* Saturated / Dark Background (e.g. purple, navy, deep pink, red, blue): pure white text */
#take.dark-contrast {
  --tk-fg: #ffffff;
  --tk-fg-sub: rgba(255, 255, 255, 0.92);
  --tk-border: rgba(255, 255, 255, 0.45);
  --tk-pill-bg: rgba(255, 255, 255, 0.16);
  --tk-pill-border: rgba(255, 255, 255, 0.38);
  --tk-pill-hover-bg: rgba(255, 255, 255, 0.28);
  --tk-circle-bg: #ffffff;
  --tk-circle-fg: #0b0818;
}

.tt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--tk-fg);
}

.tt button {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--tk-border);
  font-weight: 700;
  background: transparent;
  color: var(--tk-fg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tt button:hover {
  background: var(--tk-circle-bg);
  color: var(--tk-circle-fg);
  border-color: var(--tk-circle-bg);
}

#tn {
  margin: auto 0 0;
  font-size: clamp(3.2rem, 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--tk-fg);
}

#tn .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-right: 0.18em;
}

#tn .w i {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1);
  transition-delay: var(--d);
  color: var(--tk-fg);
}

#take.in #tn .w i {
  transform: none;
}

#td {
  max-width: 38ch;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  font-weight: 500;
  margin: 22px 0 0;
  opacity: 0;
  transform: translateY(16px);
  transition: 0.7s 0.4s;
  color: var(--tk-fg-sub);
}

#take.in #td {
  opacity: 1;
  transform: none;
}

.tb {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

#to {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--tk-circle-bg);
  color: var(--tk-circle-fg);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#to:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

#tr {
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--tk-fg);
  border-top: none;
  border-left: none;
  border-right: none;
  background: transparent;
  padding-bottom: 2px;
  color: var(--tk-fg);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#tr:hover {
  opacity: 0.75;
}

.take-btn-share,
#tsh {
  color: var(--tk-fg);
  border: 1.5px solid var(--tk-border);
  background: var(--tk-pill-bg);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.take-btn-share:hover,
#tsh:hover {
  background: var(--tk-circle-bg);
  color: var(--tk-circle-fg);
  border-color: var(--tk-circle-bg);
}

/* â”€â”€ Mode-based visibility â”€â”€ */
body[data-mode="fly"] #main,
body[data-mode="fly"] footer {
  display: none !important;
}

body:not([data-mode="fly"]) #st,
body:not([data-mode="fly"]) #fx,
body:not([data-mode="fly"]) #flyStage,
body:not([data-mode="fly"]) #vg,
body:not([data-mode="fly"]) #flyHudBot,
body:not([data-mode="fly"]) #depth,
body:not([data-mode="fly"]) #zt,
body:not([data-mode="fly"]) #dn {
  display: none !important;
}

body:not([data-mode="fly"]) {
  overflow-y: auto !important;
}

/* â”€â”€ Main Layout (Click, Wall, Feed, Community) â”€â”€ */
#main {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(clamp(14px, 4vh, 36px) + 70px) clamp(20px, 5vw, 64px) 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* â”€â”€ 1. Click Mode Stage â”€â”€ */
.stage {
  max-width: 68rem;
  margin: auto 0;
  animation: fadeIn 0.3s ease;
}

.click-chips-bar {
  margin-bottom: 1.8rem;
}

.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips .chip {
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.chips .chip[aria-pressed="true"] {
  background: #fff;
  color: #05040d;
  font-weight: 600;
}

h1#name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: #fff;
}

.stage .blurb {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.35;
  max-width: 36ch;
  margin: 1.2rem 0 0.5rem;
  color: #e2e2e8;
}

.stage .meta {
  color: var(--mut);
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn.go {
  background: #fff;
  color: #05040d;
  border-color: #fff;
}

.btn.go:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* â”€â”€ 2. Wall Mode â”€â”€ */
#wsec {
  max-width: 1000px;
  margin: auto 0;
  padding: 2rem 0;
}

.wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1.5rem 0;
}

.wp {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  background: hsl(var(--c, 260) 85% 72%);
  color: #120e1a;
  font-weight: 700;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.wp:hover, .wp:focus-visible {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* â”€â”€ 3. Feed Mode â”€â”€ */
#feedSec {
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.feed-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.feed-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.4rem;
  color: #fff;
}

.feed-sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--mut);
  max-width: 50ch;
}

.feed-search-wrap {
  width: clamp(260px, 30vw, 360px);
}

.feed-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  font: 400 15px var(--ui);
  outline: none;
  transition: border-color 0.2s;
}

.feed-search-input:focus {
  border-color: #fff;
}

.feed-filter-bar {
  margin-bottom: 2rem;
}

.feed-cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.feed-cat-btn {
  background: var(--chip);
  border: 1px solid transparent;
  color: var(--mut);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.feed-cat-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.feed-cat-btn.on {
  color: #05040d;
  background: #fff;
  font-weight: 700;
}

.feed-grid {
  columns: 3 320px;
  column-gap: 20px;
}

.feed-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: hsl(var(--card-h, 260) 95% 76%);
}

.feed-card-domain {
  font-size: 0.85rem;
  color: var(--mut);
}

.feed-card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.feed-card-blurb {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #c5c5cb;
}

.feed-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.feed-btn-visit:hover {
  background: #fff;
  color: #05040d;
}

.feed-btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--mut);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.15s ease;
}

.feed-btn-sub:hover {
  color: #fff;
}

/* â”€â”€ 4. Community Mode (Show us your weird corner of the internet) â”€â”€ */
#communitySec {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

.community-hero {
  margin-bottom: 2.5rem;
}

.community-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.community-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
}

.community-stats {
  font-size: 0.9rem;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}

.community-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 1rem;
  color: #fff;
}

.community-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: #a4a8b5;
  max-width: 48ch;
  margin: 0 0 1.8rem;
}

.community-actions {
  display: flex;
  gap: 14px;
}

.btn-share-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #05040d;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-share-site:hover {
  background: #e9e9f0;
  transform: translateY(-2px);
}

.community-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--surface-border);
  flex-wrap: wrap;
}

.community-sort-tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.sort-tab {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mut);
  transition: all 0.15s ease;
}

.sort-tab.on {
  background: #fff;
  color: #05040d;
}

.community-cat-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.com-cat-btn {
  background: var(--chip);
  border: 1px solid transparent;
  color: var(--mut);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.com-cat-btn:hover {
  color: #fff;
}

.com-cat-btn.on {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.community-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.com-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.com-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.upvote-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 48px;
  padding: 8px 4px;
  gap: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.upvote-box:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.upvote-box.voted {
  background: #ff4f8b;
  border-color: #ff4f8b;
  color: #fff;
}

.upvote-arrow {
  font-size: 14px;
  line-height: 1;
}

.upvote-count {
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.com-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.com-card-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.com-card-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  text-decoration: none;
}

.com-card-name:hover {
  text-decoration: underline;
}

.com-card-domain {
  font-size: 0.85rem;
  color: var(--mut);
}

.com-card-blurb {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #c9cdd8;
}

.com-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--mut);
  margin-top: 6px;
  flex-wrap: wrap;
}

.com-badge {
  font-weight: 700;
  color: hsl(var(--com-h, 260) 95% 72%);
}

.com-share-btn {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--mut);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.com-share-btn:hover {
  color: #fff;
}

/* â”€â”€ Submission Modal Form â”€â”€ */
.com-modal-card {
  max-width: 500px;
}

.com-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c5c5cb;
}

.form-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font: 400 15px var(--ui);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.form-input option {
  background: #0e0d18;
  color: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 75px;
}

.btn-full {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

.form-error {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: #ff6b8b;
  text-align: center;
}

/* â”€â”€ Footer (Active in Click Mode) â”€â”€ */
footer {
  padding: 1rem clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.saved {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  min-height: 2rem;
}

.sv {
  display: inline-flex;
  align-items: center;
  background: var(--chip);
  border-radius: 999px;
  padding: 0.25rem 0.3rem 0.25rem 0.8rem;
  font-size: 0.95rem;
}

.sv a {
  color: inherit;
  text-decoration: none;
}

.sv button {
  border: 0;
  background: none;
  padding: 0.1rem 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
}

.empty, .foot {
  color: var(--soft);
  font-size: 0.95rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

@media (hover: none) {
  .keys {
    display: none;
  }
}

/* â”€â”€ Share Modal & Direct Link System â”€â”€ */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 4, 13, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  box-sizing: border-box;
}

.share-modal-card {
  background: #0e0d18;
  color: #fff;
  border: 1px solid #323049;
  border-radius: 1.8rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
  padding: 1.8rem;
  box-sizing: border-box;
  animation: shareModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@keyframes shareModalPop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.share-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.share-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.share-modal-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mut);
}

.share-modal-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.share-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.share-close-btn:hover {
  background: #fff;
  color: #05040d;
  transform: rotate(90deg);
}

/* Mini Preview Card */
.share-card-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.share-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.share-preview-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.share-preview-badge {
  background: #fff;
  color: #05040d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.share-preview-blurb {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--soft);
}

.share-preview-origin {
  font-size: 0.78rem;
  color: var(--mut);
  margin-top: 0.2rem;
}

.share-preview-origin strong {
  color: #fff;
}

/* Featured Pinterest Button */
.share-section {
  display: flex;
  flex-direction: column;
}

.share-pinterest-btn {
  background: #E60023;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 1.1rem;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(230, 0, 35, 0.25);
}

.share-pinterest-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230, 0, 35, 0.4);
  background: #d0001f;
}

.share-pinterest-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-pinterest-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.share-pinterest-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.share-pinterest-text small {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.share-pinterest-arrow {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.share-pinterest-btn:hover .share-pinterest-arrow {
  transform: translateX(3px);
}

/* Quick Social Grid */
.share-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.share-social-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.share-social-btn:hover {
  background: #fff;
  color: #05040d;
  transform: translateY(-1px);
}

.share-btn-x:hover {
  background: #000;
  color: #fff;
}

.share-btn-wa:hover {
  background: #25D366;
  color: #fff;
}

/* Direct Link Input Box */
.share-link-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0.25rem 0.35rem 0.25rem 0.9rem;
  gap: 0.4rem;
}

.share-link-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
}

.share-link-copy-btn {
  background: #fff;
  color: #05040d;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.share-link-copy-btn:hover {
  opacity: 0.88;
}

.share-feedback {
  min-height: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mut);
  text-align: center;
}

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

/* â”€â”€ Site Thumbnail Preview Tooltip â”€â”€ */
#siteThumb {
  position: fixed;
  z-index: 50;
  width: 320px;
  background: #0d0c1a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: scale(0.96) translateY(4px);
  will-change: transform, opacity;
}

#siteThumb.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* When thumbnail previews are disabled by user */
body.thumb-off #siteThumb {
  display: none !important;
}

.thumb-shimmer {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: thumbShimmer 1.4s ease infinite;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 14px 14px 0 0;
}

@keyframes thumbShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.thumb-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #0a0916;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
  border-radius: 14px 14px 0 0;
}

.thumb-img.loaded {
  opacity: 1;
}

.thumb-meta {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thumb-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-domain {
  font-size: 0.78rem;
  color: var(--mut);
}

/* â”€â”€ Desktop: panel always visible â”€â”€ */
.rt-panel { display: contents; }
.rt-panel-inner { display: contents; }

/* â”€â”€ Acts (action buttons) grid â”€â”€ */
.acts { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 1399px) {
  .hud.bot {
    padding-left: clamp(80px, 7vw, 130px);
  }
}

/* ── Bottom Sheet Filter Manager (#fm) ── */
#fm {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
#fm .ft {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: none;
}
#fm .ft::-webkit-scrollbar { display: none; }
#fm .ft button {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 0;
  background: none;
  font: 400 14px var(--ui);
  color: var(--mut);
  gap: 6px;
  white-space: nowrap;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#fm .ft button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 500;
}
#fm .ft button.has::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b8ff5;
  flex: none;
}
#fc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 2px;
}
#fc button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font: 300 14px var(--ui);
  border: 0.8px solid #3a3d3d;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #b4b4b4;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
#fc button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, #777);
  flex: none;
}
#fc button i {
  font-style: normal;
  font-size: 11px;
  opacity: 0.5;
}
#fc button:hover {
  color: #fff;
}
#fc button[aria-pressed="true"] {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
#fc button:disabled {
  opacity: 0.3;
  cursor: default;
}
#fm .go {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 1398px) {
  :root { --px: 18px; }
  .top { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
  .logo { font-size: 30px; }
  nav { width: 100%; }
  .bot { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
  .lf { gap: 10px; width: 100%; }
  #dn, .rt .row > .a[disabled] { display: none !important; }
  .cr {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    flex-wrap: nowrap;
    padding: 2px 0;
  }
  .cr::-webkit-scrollbar { display: none; }
  .cr #flyChips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .cr .more {
    flex-shrink: 0;
    white-space: nowrap;
  }
  #depth { position: static; transform: none; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 14px; padding-top: 20px; font-size: 12px; }
  .dl { height: 1px; width: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08)); }
  .dl::before, .dl::after { top: -3px; width: 1px; height: 7px; left: 33.3%; }
  .dl::after { left: 66.6%; }
  #dm { top: 50% !important; left: var(--g, 0%) !important; margin: -4.5px 0 0 -4.5px; transition: left 0.5s linear; }
  .zl { display: block !important; top: -20px !important; transform: translateX(-50%); }
  .zl:nth-of-type(1) { left: 16.6%; }
  .zl:nth-of-type(2) { left: 50%; }
  .zl:nth-of-type(3) { left: 83.3%; }
  .dr { font-size: 13px; }
  .trail { font-size: 13px; }
  #cd { width: 100%; min-height: 0; font-size: clamp(18px, 4.6vw, 24px); letter-spacing: -0.04em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
  .acts .a { justify-content: center; padding: 11px 8px; font-size: 15px; border-color: rgba(255, 255, 255, 0.16); border-radius: 8px; }
  .acts #go { grid-column: span 2; border-color: #fff; color: #fff; font-size: 16px; }
  .rt { width: 100%; gap: 0; }
  .rt .row { width: 100%; overflow: visible; }
  .rt .dd { position: relative; width: 100%; }
  #cat {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    background: #080909;
    border: 0.8px solid #535353;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
  }
  #cat svg {
    flex-shrink: 0;
  }
  #menu { left: 0; right: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; max-height: 55vh; overflow: auto; margin-bottom: 8px; }
  #menu .sb { flex: 1 1 100%; height: auto; gap: 12px; padding: 10px 12px; margin-bottom: 4px; }
  #menu .sbf button { display: inline-block; width: auto; padding: 3px 10px; font-size: 13px; }
  #menu .sb svg { margin: 3px 2px 0; }
  #menu button { width: auto; padding: 9px 14px; border: 0.5px solid rgba(255, 255, 255, 0.2); border-radius: 6px; font-size: 15px; }
  #menu button[aria-checked=true] { border-color: #fff; color: #fff; }
  .dd #menu {
    position: fixed;
    left: var(--px);
    right: var(--px);
    top: auto;
    bottom: var(--bt, 70px);
    height: var(--sh, 50vh);
    max-height: none;
    margin: 0;
    width: auto;
    max-width: none;
    border: 0.8px solid #535353;
    border-radius: 12px;
    background: #080909;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9);
    z-index: 30;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    padding: 14px;
    transition: height 0.25s ease, transform 0.25s ease;
  }
  .dd #menu .sb { flex: none; height: auto; }
  #fm { flex: 1 1 auto; min-height: 0; }
  #fc {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    grid-auto-rows: max-content;
    align-content: start;
    gap: 8px;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }
  #fc button {
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.2;
  }
  #fc button span { min-width: 0; overflow-wrap: anywhere; }
  #fc button i { white-space: nowrap; justify-self: end; }
  #fm .ft button { padding: 10px 8px; font-size: 16px; }
  .dd #menu[data-sz=half] .go, .dd #menu[data-sz=quarter] .go { display: none; }
  .dd #menu[data-sz=quarter] .sb { height: auto; min-height: 0; flex: none; }
  #fm .go { display: block; flex: none; width: 100%; justify-content: center; padding: 14px; border: 0.8px solid #fff; border-radius: 6px; background: #363984; color: #fff; font: 400 17px var(--ui); }
  .it { top: 38%; }
  #stage { perspective-origin: 50% 38%; }

  /* Mobile Takeover scrolling & layout */
  #take {
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px calc(env(safe-area-inset-bottom, 0px) + 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  #tn {
    margin-top: 24px;
    margin-bottom: 0;
    font-size: clamp(2.4rem, 9vw, 4.2rem);
  }
  .tb {
    margin-top: 24px;
    margin-bottom: 24px;
  }
  #to {
    width: 110px;
    height: 110px;
    font-size: 0.95rem;
  }
}

@media (hover: none) {
  .sb kbd { display: none; }
}

@media (max-width: 1398px) and (max-height: 700px) {
  #depth { display: none; }
}

@media (max-width: 600px) {
  .share-social-grid { grid-template-columns: 1fr; }
  .community-toolbar { flex-direction: column; align-items: stretch; }
  .com-card { padding: 14px 16px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01s !important; }
}

/* â”€â”€ Dynamic Tags & Search Scope Styles â”€â”€ */
.search-scopes-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.search-scopes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.scope-divider {
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  margin: 0 2px;
}

.search-modes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scope-chip,
.mode-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--mut);
  font: 500 11.5px var(--ui);
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.scope-chip:hover,
.mode-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}
.scope-chip.on {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
/* Mode chips use accent color to visually separate from scope */
.mode-chip.on {
  color: #fff;
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(165, 180, 252, 0.6);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

/* â”€â”€ Feed Card Tag Sections (Grouped by Category / Taxonomy) â”€â”€ */
.feed-card-tag-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
}

.feed-tag-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.feed-tag-group-label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Horizontal slider with ZERO visible scrollbars ("No bars") */
.feed-tag-group-slider {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox: completely hide scrollbar */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 1px 0;
  -webkit-overflow-scrolling: touch;
}

.feed-tag-group-slider::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera: zero scrollbar */
  width: 0;
  height: 0;
}

.feed-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: all 0.15s ease;
}

.feed-tag-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* Takeover modal tags: natural stacked wrap layout with high-contrast glass pills */
.takeover-tags-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 24px;
  max-width: 720px;
}

.takeover-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tk-fg) !important;
  background: var(--tk-pill-bg) !important;
  border: 1.2px solid var(--tk-pill-border) !important;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
  cursor: default;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.takeover-tag-pill:hover {
  background: var(--tk-pill-hover-bg) !important;
  border-color: var(--tk-fg) !important;
}

/* Click mode tags */
.click-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
  justify-content: center;
  overflow-x: auto;
  white-space: nowrap;
}
.click-tag-pill {
  font-size: 13px;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.click-tag-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Deep Space reference alignment. Scoped to Fly so the other app modes keep
   their existing layouts and typography. */
body[data-mode="fly"] {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
body[data-mode="fly"] .hud { align-items: center; }
body[data-mode="fly"] .top { padding-top: calc(env(safe-area-inset-top, 0px) + clamp(16px, 4.7vh, 48px)); }
body[data-mode="fly"] .logo {
  font: 500 clamp(28px, 2.1vw, 39px)/.944 Inter, system-ui, sans-serif;
  letter-spacing: -.04em;
  color: #f6f3ee;
  white-space: nowrap;
}
body[data-mode="fly"] .logo em { font: italic 400 1.03em "Instrument Serif", Georgia, serif; letter-spacing: .01em; }
body[data-mode="fly"] .a { font: 300 18px/normal "Stack Sans Notch", Inter, system-ui, sans-serif; color: #596363; }
body[data-mode="fly"] .a.on { color: #fff; }
body[data-mode="fly"] .bot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(56px, 7vh, 68px)); flex-wrap: wrap; gap: 24px; }
body[data-mode="fly"] .lf { gap: 25px; max-width: 100%; }
body[data-mode="fly"] #cd { width: min(462px, 100%); min-height: 2.4em; font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.08em; color: #b4b4b4; }
body[data-mode="fly"] .cr { gap: 16px; flex-wrap: wrap; }
body[data-mode="fly"] .chip { background: rgba(255,255,255,.06); border-radius: 6px; font: 300 18px "Stack Sans Notch", Inter, sans-serif; }
body[data-mode="fly"] .chip button:first-child { padding: 10px 8px 10px 20px; }
body[data-mode="fly"] .chip button:last-child { padding: 10px 14px 10px 6px; }
body[data-mode="fly"] .rt { display: flex; flex-direction: column; gap: 7px; width: clamp(300px, 23vw, 428px); }
body[data-mode="fly"] .sb { height: auto; min-height: 110px; padding: 10px; border-radius: 4px; background: #080909; border-color: #535353; }
body[data-mode="fly"] .sbt { gap: 6px; align-items: flex-start; }
body[data-mode="fly"] .sbf { width: 100%; min-width: 0; gap: 8px; padding-top: 10px; row-gap: 8px; }
body[data-mode="fly"] .sb textarea { font: 300 18px/23px "Stack Sans Notch", Inter, sans-serif; }
body[data-mode="fly"] #menu { background: #080909; border-color: #535353; border-radius: 6px; }
body[data-mode="fly"] #st, body[data-mode="fly"] #fx, body[data-mode="fly"] #flyStage { will-change: transform; }
body[data-mode="fly"] #fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
body[data-mode="fly"] #flyStage { perspective-origin: 50% 50%; }
body[data-mode="fly"] .it { white-space: nowrap; text-align: center; text-decoration: none; }
body[data-mode="fly"] .it small { font-size: .95rem; font-weight: 700; text-transform: none; }
body[data-mode="fly"] .it b {
  max-width: none;
  white-space: nowrap;
  word-break: normal;
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -.05em;
}
body[data-mode="fly"] #depth { color: #596363; }
body[data-mode="fly"] .dr { color: #b4b4b4; }
body[data-mode="fly"] #zt { font: italic 400 clamp(28px, 4.4vw, 60px) "Instrument Serif", Georgia, serif; }

.fly-saved-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 36px);
  background: rgba(3, 4, 12, .74);
  backdrop-filter: blur(14px);
}
.fly-saved-overlay[hidden] { display: none; }
.fly-saved-dialog {
  display: flex;
  flex-direction: column;
  width: min(900px, 100%);
  max-height: min(82vh, 820px);
  overflow: hidden;
  color: var(--tx, #f6f3ee);
  background: rgba(9, 10, 17, .96);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .55);
}
.fly-saved-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(20px, 4vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.fly-saved-kicker { margin: 0 0 8px; color: #8ed9e6; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.fly-saved-header h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.1; }
.fly-saved-subtitle { margin: 8px 0 0; color: #9a9da8; font-size: 14px; }
.fly-saved-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  color: #d9dbe2;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  font-size: 25px;
}
.fly-saved-views { display: flex; gap: 8px; padding: 14px clamp(20px, 4vw, 34px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.fly-saved-views button { padding: 8px 14px; color: #aeb1bc; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; }
.fly-saved-views button[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.fly-saved-items { flex: 1 1 auto; min-height: 0; padding: clamp(16px, 3vw, 26px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.fly-saved-items[data-view="grid"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); align-content: start; gap: 12px; }
.fly-saved-card { position: relative; padding: 18px 54px 18px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .035); }
.fly-saved-card + .fly-saved-card { margin-top: 10px; }
.fly-saved-items[data-view="grid"] .fly-saved-card { margin: 0; }
.fly-saved-card h3 { margin: 0; color: #f7f6fb; font-size: 19px; line-height: 1.25; }
.fly-saved-title-link { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.fly-saved-title-link:hover { text-decoration: underline; }
.fly-saved-card-meta { margin: 6px 0 0; color: #9a9da8; font-size: 12px; }
.fly-saved-card p { margin: 10px 0 0; color: #c1c3ca; font-size: 14px; line-height: 1.5; }
.fly-saved-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fly-saved-card-tags span { padding: 4px 8px; color: #c5c8d2; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; font-size: 11px; }
.fly-saved-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fly-saved-rabbithole { padding: 8px 12px; color: #f7f6fb; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; transition: background .18s ease, border-color .18s ease; }
.fly-saved-rabbithole:hover:not(:disabled) { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .62); }
.fly-saved-rabbithole:disabled { opacity: .45; cursor: not-allowed; }
.fly-saved-remove { position: absolute; top: 13px; right: 13px; width: 30px; height: 30px; color: #aeb1bc; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; font-size: 18px; }
.fly-saved-remove:hover, .fly-saved-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.fly-saved-group + .fly-saved-group { margin-top: 22px; }
.fly-saved-group h3 { margin: 0 0 10px; color: #8ed9e6; font-size: 13px; font-weight: 700; }
.fly-saved-empty { padding: 42px 20px; color: #aeb1bc; text-align: center; line-height: 1.6; }
.it.user-selected b { color: #fff; -webkit-text-stroke-color: #fff; text-shadow: 0 0 50px hsl(var(--h, 260) 95% 60% / .85); }

@media (max-width: 600px) {
  .fly-saved-overlay { padding: 10px; }
  .fly-saved-dialog { max-height: 88vh; border-radius: 12px; }
  .fly-saved-card { padding: 15px 48px 15px 15px; }
}

@media (min-width: 1399px) {
  body[data-mode="fly"] .hud.bot { padding-left: clamp(80px, 7vw, 130px); }
  body[data-mode="fly"] .rt { width: min(500px, 38vw); }
  body[data-mode="fly"] .rt .row { flex-wrap: wrap; gap: 7px; }
  body[data-mode="fly"] #frontTagFilters { display: contents; }
  body[data-mode="fly"] .tag-filter-dd { flex: 0 1 auto; }
  body[data-mode="fly"] #menu {
    width: min(500px, calc(100vw - 2 * var(--px)));
    box-sizing: border-box;
  }
}
@media (max-width: 1398px) {
  :root, body[data-mode="fly"] { --px: 18px; }
  body[data-mode="fly"] .top { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
  body[data-mode="fly"] .logo { font-size: 30px; }
  .hud.bot,
  body[data-mode="fly"] .hud.bot,
  body[data-mode="fly"] .bot {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: var(--px) !important;
    padding-right: var(--px) !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
  }
  .lf,
  body[data-mode="fly"] .lf {
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }
  #depth,
  body[data-mode="fly"] #depth {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    column-gap: 14px !important;
    padding-top: 14px !important;
    font-size: 12px !important;
    pointer-events: none !important;
  }
  .dl,
  body[data-mode="fly"] .dl {
    position: relative !important;
    height: 1px !important;
    width: 100% !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08)) !important;
  }
  .dl::before, .dl::after {
    top: -3px !important;
    width: 1px !important;
    height: 7px !important;
    left: 33.3% !important;
  }
  .dl::after {
    left: 66.6% !important;
  }
  #dm {
    top: 50% !important;
    left: var(--g, 0%) !important;
    margin: -4.5px 0 0 -4.5px !important;
    transition: left 0.5s linear !important;
  }
  .zl {
    display: block !important;
    top: -20px !important;
    transform: translateX(-50%) !important;
  }
  .zl:nth-of-type(1) { left: 16.6% !important; }
  .zl:nth-of-type(2) { left: 50% !important; }
  .zl:nth-of-type(3) { left: 83.3% !important; }
  .dr {
    font-size: 13px !important;
  }
  #cd,
  body[data-mode="fly"] #cd {
    width: 100% !important;
    min-height: 0 !important;
    font-size: clamp(18px, 4.6vw, 24px) !important;
    letter-spacing: -.04em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  .acts,
  body[data-mode="fly"] .acts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .acts .a,
  body[data-mode="fly"] .acts .a {
    justify-content: center !important;
    padding: 11px 8px !important;
    font-size: 15px !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
  .acts #go,
  body[data-mode="fly"] .acts #go {
    grid-column: span 2 !important;
    border-color: #fff !important;
    color: #fff !important;
    font-size: 16px !important;
  }
  .cr,
  body[data-mode="fly"] .cr {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    flex-wrap: nowrap !important;
    padding: 2px 0 !important;
  }
  .rt,
  body[data-mode="fly"] .rt {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
  }
  .rt .row,
  body[data-mode="fly"] .rt .row {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    display: block !important;
  }
  .rt .dd,
  body[data-mode="fly"] .rt .dd {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
  #cat,
  body[data-mode="fly"] #cat {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    background: #080909 !important;
    border: 0.8px solid #535353 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #fff !important;
    box-sizing: border-box !important;
  }
  #cat svg {
    flex-shrink: 0 !important;
  }
  #frontTagFilters,
  .front-tag-filters,
  .tag-filter-dd,
  body[data-mode="fly"] #frontTagFilters,
  body[data-mode="fly"] .front-tag-filters,
  body[data-mode="fly"] .tag-filter-dd {
    display: none !important;
  }
  .rt > .sb,
  .rt > #flySearchBox,
  body[data-mode="fly"] .rt > .sb,
  body[data-mode="fly"] .rt > #flySearchBox {
    display: none !important;
  }
  body[data-mode="fly"] .it { top: 38%; }
  body[data-mode="fly"] #flyStage { perspective-origin: 50% 38%; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-mode="fly"] * { transition-duration: .01ms !important; }
}


/* â”€â”€ Dynamic Tag Filter Dropdowns â”€â”€ */
.dropdowns-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  overflow: visible;
}

.dropdowns-bar::-webkit-scrollbar {
  display: none;
}

.front-tag-filters {
  display: contents; /* flat children directly into dropdowns-bar row */
}

.tag-filter-dd {
  position: relative;
}

.tag-filter-btn {
  white-space: nowrap !important;
}

.tag-filter-btn.filtered {
  background: rgba(99, 102, 241, 0.28) !important;
  border-color: rgba(165, 180, 252, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.tag-filter-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  width: min(500px, calc(100vw - 36px));
  min-width: min(320px, calc(100vw - 36px));
  max-height: clamp(240px, 45vh, 380px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  padding: 14px;
  box-sizing: border-box;
  background: #080909;
  border: 0.8px solid #535353;
  border-radius: 6px;
  z-index: 25;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.tag-filter-menu::-webkit-scrollbar {
  width: 6px;
}
.tag-filter-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.tag-filter-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: 8px;
  text-align: left;
  padding: 7px 14px;
  border: 0.8px solid #3a3d3d;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font: 300 15px var(--ui);
  color: #b4b4b4;
  overflow-wrap: anywhere;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.tag-filter-menu button::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--dot, #fff);
}

.tag-filter-menu button:hover,
.tag-filter-menu button[aria-checked="true"],
.tag-filter-menu button.on {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
