/* Gavi Corner — landing: fullscreen hero + story + join drawer */

/* Skip-to-main link: visually hidden until keyboard-focused. Duplicated
   from styles.css so pages that load only welcome.css (leaderboard,
   ethics, etc.) don't show the link as a visible red line above the
   navbar. Keep in sync with styles.css and matches/matches.css. */
.skip-to-main {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  background: #0a0a14;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid #7dd3fc;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: top 0.2s ease;
}

.skip-to-main:focus {
  top: 12px;
  outline: none;
}

:root {
  --gc-bg: #0a0a0c;
  --gc-surface: #121216;
  --gc-surface-elevated: #18181c;
  --gc-border: rgba(0, 210, 255, 0.22);
  --gc-cyan: #00d4ff;
  --gc-cyan-dim: rgba(0, 212, 255, 0.88);
  --gc-yellow: #f5c518;
  --gc-red: #c41e3a;
  --gc-text: #f4f4f5;
  --gc-muted: #a1a1aa;
}

.welcome-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--gc-bg);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(0, 212, 255, 0.14), transparent 52%),
    radial-gradient(ellipse 50% 45% at 95% 30%, rgba(196, 30, 58, 0.07), transparent 45%);
  color: var(--gc-text);
  line-height: 1.65;
}

.welcome-page * {
  box-sizing: border-box;
}

/* —— Top right: Join Cornerists + drawer —— */
.welcome-join-anchor {
  position: fixed;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.welcome-join-trigger {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gc-cyan);
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gc-border);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.12);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.welcome-join-trigger:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.2);
}

button.welcome-join-trigger[aria-expanded="true"] {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.5);
}

.welcome-join-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.welcome-join-page__main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 6vh, 3.5rem) 1.25rem 4rem;
}

/* Join page: no boxed “card” — content sits on the page background */
.welcome-join-page .welcome-account-panel {
  width: 100%;
  max-width: min(96vw, 36rem);
  margin: 0 auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.welcome-join-page .welcome-drawer-inner {
  padding: 0;
  max-width: 100%;
}

.welcome-join-page__footer {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.welcome-join-page__footer .welcome-link-btn {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.welcome-join-page .welcome-drawer-note {
  border-top: none;
  padding-top: 0.5rem;
  margin-top: 1.25rem;
}

.welcome-account-drawer {
  width: min(100vw - 2.3rem, 400px);
  max-height: min(78vh, 640px);
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid var(--gc-border);
  background: var(--gc-surface);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 40px rgba(0, 212, 255, 0.08);
  animation: welcome-drawer-in 0.28s ease-out;
}

.welcome-account-drawer[hidden] {
  display: none !important;
}

@keyframes welcome-drawer-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-drawer-inner {
  padding: 1.65rem 1.55rem 1.5rem;
}

.welcome-drawer-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.35rem;
  padding-bottom: 0.35rem;
  line-height: 1.35;
}

.welcome-drawer-note {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: #71717a;
  line-height: 1.55;
}

/* —— Fullscreen hero —— */
.welcome-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1rem 2rem;
  position: relative;
  background: transparent;
  gap: clamp(2.25rem, 6vh, 4.5rem);
}

/* Title block: its own band, clearly separate from the logo below */
.welcome-hero-copy {
  width: 100%;
  max-width: min(96vw, 56rem);
  margin: 0 auto;
  padding: 0 0.5rem clamp(1.5rem, 4vh, 2.75rem);
  flex-shrink: 0;
}

.welcome-hero-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

/* Hero title — two lines, on page black (no separate panel glow) */
.welcome-hero-title {
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
  font-family: "Orbitron", "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.8vw + 0.65rem, 3.35rem);
  line-height: 1.22;
  text-transform: none;
  letter-spacing: 0.04em;
  border: none;
  background: transparent;
}

/* Exactly two lines: each span is one line (no mid-phrase wrap) */
.welcome-hero-title__line {
  display: block;
  white-space: nowrap;
}

.welcome-hero-title__line + .welcome-hero-title__line {
  margin-top: 0.22em;
}

.welcome-hero-title__text {
  display: block;
  background: linear-gradient(
    110deg,
    rgba(180, 230, 255, 0.92) 0%,
    #00d4ff 28%,
    #7ae9ff 50%,
    #00b8e6 72%,
    rgba(180, 230, 255, 0.95) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    welcome-title-enter 1.45s cubic-bezier(0.22, 1, 0.36, 1) both,
    welcome-title-shine 11s ease-in-out 1.2s infinite,
    welcome-electric-text 5.5s ease-in-out infinite;
}

.welcome-hero-title__line:nth-child(2).welcome-hero-title__text {
  animation:
    welcome-title-enter 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both,
    welcome-title-shine 11s ease-in-out 1.32s infinite,
    welcome-electric-text 5.5s ease-in-out 0.45s infinite;
}

@keyframes welcome-electric-text {
  0%,
  86%,
  100% {
    filter: brightness(1);
  }
  87% {
    filter: brightness(1.55) drop-shadow(0 0 18px rgba(200, 245, 255, 0.65));
  }
  87.6% {
    filter: brightness(1);
  }
  91% {
    filter: brightness(1.35) drop-shadow(0 0 14px rgba(160, 235, 255, 0.5));
  }
  91.5% {
    filter: brightness(1);
  }
  96.2% {
    filter: brightness(1.45) drop-shadow(0 0 22px rgba(220, 250, 255, 0.75));
  }
  96.8% {
    filter: brightness(1.05);
  }
}

@keyframes welcome-title-enter {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    letter-spacing: 0.38em;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.06em;
    filter: blur(0);
  }
}

@keyframes welcome-title-shine {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* Logo: true transparency sits on page background (asset processed or exported with alpha) */
.welcome-logo-crop {
  width: min(96vw, 1100px);
  max-width: 100%;
  max-height: min(78vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: transparent;
  line-height: 0;
}

.welcome-logo-crop--electric {
  animation: welcome-electric-logo 6s ease-in-out infinite;
}

@keyframes welcome-electric-logo {
  0%,
  85%,
  100% {
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.18)) drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
  }
  86% {
    filter: brightness(1.08) drop-shadow(0 0 56px rgba(180, 240, 255, 0.55)) drop-shadow(0 0 24px rgba(0, 212, 255, 0.45));
  }
  86.7% {
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.18)) drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
  }
  92% {
    filter: brightness(1.12) drop-shadow(0 0 48px rgba(200, 245, 255, 0.5));
  }
  92.6% {
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.18)) drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
  }
}

.welcome-logo {
  width: 100%;
  height: auto;
  max-height: min(78vh, 920px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: transparent;
}

.welcome-hero-subtitle {
  max-width: 38rem;
  margin: 1.15rem auto 0;
  font-size: clamp(0.92rem, 0.55vw + 0.82rem, 1.08rem);
  line-height: 1.65;
  color: rgba(244, 244, 245, 0.78);
}

.welcome-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.welcome-hero-actions .welcome-cta-site,
.welcome-hero-actions .welcome-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  margin: 0;
  padding: 0.75rem 1.2rem;
  box-sizing: border-box;
  line-height: 1.2;
}

.welcome-logo-crop--landing {
  max-height: min(52vh, 640px);
}

.welcome-logo-crop--landing .welcome-logo {
  max-height: min(52vh, 640px);
}

.welcome-platform-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.welcome-platform-card {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.welcome-platform-card--live {
  border-color: rgba(134, 239, 172, 0.22);
  background: rgba(34, 197, 94, 0.04);
}

.welcome-platform-card--soon {
  border-color: rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.04);
}

.welcome-platform-card__tag {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
}

.welcome-platform-card--live .welcome-platform-card__tag {
  color: #86efac;
}

.welcome-platform-card--soon .welcome-platform-card__tag {
  color: var(--gc-cyan);
}

.welcome-platform-card__title {
  margin: 0 0 0.45rem;
  font-family: "Orbitron", "Poppins", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.welcome-platform-card__body {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gc-muted);
}

.welcome-platform-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gc-cyan);
  text-decoration: none;
}

.welcome-platform-card__link:hover {
  text-decoration: underline;
}

.welcome-landing-footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #71717a;
  line-height: 1.6;
}

.welcome-landing-footer p {
  margin: 0 0 0.35rem;
}

.welcome-landing-footer a {
  color: #a1a1aa;
  text-decoration: none;
}

.welcome-landing-footer a:hover {
  color: var(--gc-cyan);
}

/* —— About: full-bleed on page black, scroll-unlocked CTA —— */
.welcome-main {
  padding: 0 1.25rem 4.5rem;
}

.welcome-presentation {
  max-width: 40rem;
  margin: 0 auto;
}

.welcome-presentation-chapter {
  padding: 0;
}

.welcome-presentation-lead {
  margin-bottom: 1.75rem;
}

.welcome-qa-block {
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateX(72px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.welcome-qa-block.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.welcome-qa-block:last-child {
  margin-bottom: 0;
}

.welcome-page .welcome-qa-question {
  margin: 0 0 0.85rem;
  padding: 0 0 0 0.75rem;
  border: none;
  border-left: 3px solid rgba(0, 212, 255, 0.65);
  font-family: "Orbitron", "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 4.9vw + 0.5rem, 2.8rem);
  line-height: 1.16;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  text-align: left;
}

.welcome-qa-answer p {
  margin: 0;
}

.welcome-qa-answer p:last-child {
  margin-bottom: 0;
}

.welcome-prose {
  font-size: clamp(1.08rem, 1.1vw + 0.82rem, 1.26rem);
  line-height: 1.68;
  color: var(--gc-muted);
}

.welcome-prose p {
  margin: 0 0 1rem;
}

.welcome-prose p:last-child {
  margin-bottom: 0;
}

.welcome-prose--lead {
  font-size: clamp(1.12rem, 1.2vw + 0.85rem, 1.32rem);
  line-height: 1.72;
  color: rgba(244, 244, 245, 0.88);
}

.welcome-highlight {
  color: var(--gc-cyan);
  font-weight: 500;
}

/* Slide-in (showcase + final sections; same motion as QA blocks) */
.welcome-reveal-slide {
  opacity: 0;
  transform: translateX(72px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.welcome-reveal-slide.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.welcome-showcase {
  margin: 2.35rem 0 0.25rem;
  padding: 0;
  border: none;
}

.welcome-showcase img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(0, 212, 255, 0.07);
}

.welcome-showcase__caption {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #71717a;
  text-align: center;
  font-style: normal;
}

.welcome-presentation-cta-wrap--nested {
  margin: 2rem 0 0.5rem;
  min-height: 3.25rem;
}

.welcome-presentation-cta-wrap--nested .welcome-presentation-toggle {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.welcome-story-section {
  margin-bottom: 1.85rem;
}

.welcome-story-section:last-child {
  margin-bottom: 0;
}

.welcome-qa-question--compact {
  font-size: clamp(1.35rem, 3.8vw + 0.45rem, 2.05rem);
  margin-bottom: 0.75rem;
}

.welcome-story-subhead {
  margin: 1.35rem 0 0.65rem;
  font-family: "Orbitron", "Poppins", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gc-cyan-dim);
}

.welcome-team-chapter:first-of-type .welcome-story-subhead {
  margin-top: 0.5rem;
}

.welcome-team-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 0.85rem;
  padding: 1.15rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.welcome-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.12);
  flex-shrink: 0;
}

.welcome-avatar__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.welcome-avatar__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.welcome-team-face__name {
  margin: 0.85rem 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.welcome-team-face__role {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gc-muted);
}

.welcome-team-roles {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  color: var(--gc-muted);
}

.welcome-team-roles__name {
  font-weight: 600;
  color: #e4e4e7;
}

.welcome-prose-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #71717a;
}

.welcome-support-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.15rem;
}

.welcome-contact-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 10.2rem;
  min-height: 7.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(10, 10, 12, 0.65);
  color: var(--gc-cyan-dim);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.welcome-contact-icon:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.12);
}

.welcome-contact-icon__svg {
  width: 1.65rem;
  height: 1.65rem;
}

.welcome-contact-icon__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-text-btn {
  font: inherit;
  font-weight: 600;
  color: var(--gc-cyan);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.welcome-text-btn:hover {
  color: #fff;
}

/* Placeholder media blocks (replace with img / video / iframe) */
.welcome-media-slot {
  margin: 0 0 2rem;
  padding: 0;
  border: none;
}

.welcome-media-slot__frame {
  border-radius: 14px;
  border: 1px dashed rgba(0, 212, 255, 0.28);
  background: rgba(0, 0, 0, 0.2);
  min-height: min(42vw, 220px);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.welcome-media-slot__frame--pulse {
  animation: welcome-slot-pulse 3.2s ease-in-out infinite;
}

@keyframes welcome-slot-pulse {
  0%,
  100% {
    border-color: rgba(0, 212, 255, 0.22);
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
  50% {
    border-color: rgba(0, 212, 255, 0.42);
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.08);
  }
}

.welcome-media-slot__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gc-cyan-dim);
}

.welcome-media-slot__hint {
  margin: 0;
  font-size: 0.84rem;
  color: #71717a;
  max-width: 26rem;
  line-height: 1.5;
}

.welcome-media-slot--secondary {
  margin: 2rem 0;
}

.welcome-presentation-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
  margin: 0;
}

.welcome-presentation-cta-wrap {
  margin: 0.5rem 0 2.5rem;
  min-height: 0;
  transition: min-height 0.45s ease;
}

.welcome-presentation-cta-wrap.is-unlocked {
  min-height: 3.25rem;
}

.welcome-presentation-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gc-cyan-dim);
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s, color 0.2s, background 0.2s;
}

.welcome-presentation-cta-wrap.is-unlocked .welcome-presentation-toggle:not(:disabled) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.welcome-presentation-toggle:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.06);
}

.welcome-presentation-toggle__icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}

.welcome-presentation-more {
  padding-bottom: 1rem;
}

.welcome-presentation-more[hidden] {
  display: none !important;
}

.welcome-presentation-reveal {
  margin-bottom: 0.5rem;
  animation: welcome-reveal-text 0.5s ease-out;
}

@keyframes welcome-reveal-text {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-cta-site {
  display: inline-flex;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0c0c0e;
  background: linear-gradient(90deg, var(--gc-cyan), #4ae3ff);
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.welcome-cta-site:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 212, 255, 0.35);
}

/* —— Account card (inside drawer) —— */
.welcome-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.welcome-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.15rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.18);
}

.welcome-tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  border: none;
  background: rgba(0, 0, 0, 0.28);
  color: var(--gc-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.welcome-tab:hover {
  color: #fff;
}

.welcome-tab.is-active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(196, 30, 58, 0.12));
  color: var(--gc-cyan);
}

.welcome-panel[hidden] {
  display: none !important;
}

.welcome-field {
  margin-bottom: 1.2rem;
}

.welcome-field:last-of-type {
  margin-bottom: 1.05rem;
}

.welcome-field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gc-muted);
  margin-bottom: 0.55rem;
  padding-left: 0.2rem;
}

.welcome-field input {
  width: 100%;
  padding: 0.88rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0c;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
}

.welcome-field input:focus {
  outline: none;
  border-color: var(--gc-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.welcome-submit {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: #0a0a0c;
  background: linear-gradient(90deg, var(--gc-cyan), #40e0ff);
  transition: transform 0.15s, box-shadow 0.15s;
}

.welcome-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.32);
}

.welcome-msg {
  min-height: 1.35rem;
  font-size: 0.82rem;
  margin: 0.65rem 0 0;
  padding: 0 0.15rem;
  line-height: 1.45;
}

.welcome-msg.is-error {
  color: #fb7185;
}

.welcome-msg.is-ok {
  color: #4ade80;
}

.welcome-server-notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(251, 113, 133, 0.42);
  background: rgba(251, 113, 133, 0.08);
  border-radius: 14px;
  color: #f8fafc;
  line-height: 1.5;
  font-size: 0.92rem;
}

.welcome-server-notice__title {
  margin: 0 0 0.45rem;
  font-family: 'Orbitron', 'Poppins', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fb7185;
}

.welcome-server-notice p {
  margin: 0;
}

.welcome-server-notice p + p {
  margin-top: 0.55rem;
}

.welcome-server-notice code {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 0.85em;
  color: #67e8f9;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 0.35rem;
}

.welcome-link-btn {
  display: block;
  text-align: center;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gc-text);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.welcome-link-btn:hover {
  border-color: var(--gc-cyan);
  background: rgba(0, 212, 255, 0.06);
}

.welcome-link-btn--primary {
  border-color: rgba(245, 197, 24, 0.45);
  color: var(--gc-yellow);
}

.welcome-link-btn--primary:hover {
  background: rgba(245, 197, 24, 0.08);
}

.welcome-session {
  text-align: center;
  padding: 0.35rem 0 0.15rem;
}

.welcome-session p {
  color: var(--gc-muted);
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.welcome-session strong {
  color: var(--gc-cyan);
}

.welcome-session-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 auto 1.1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(0, 212, 255, 0.04);
  list-style: none;
}

.welcome-session-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  min-width: 6.5rem;
}

.welcome-session-stat dt {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gc-cyan-dim);
}

.welcome-session-stat dd {
  margin: 0;
  font-family: "Orbitron", "Poppins", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.welcome-session-stat-unit {
  margin-left: 0.18rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gc-muted);
}

.welcome-session-avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 0.95rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 212, 255, 0.35);
  box-shadow:
    0 0 24px rgba(0, 212, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.45);
  background: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-session-avatar > svg,
.welcome-session-avatar > img {
  width: 100%;
  height: 100%;
  display: block;
}

.welcome-session-avatar > img {
  object-fit: cover;
}

.welcome-field--avatar label {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.welcome-field-aside {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #71717a;
  font-weight: 500;
}

.welcome-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.welcome-avatar-preview {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.32);
  background: #0a0a0c;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-avatar-preview > svg,
.welcome-avatar-preview > img {
  width: 100%;
  height: 100%;
  display: block;
}

.welcome-avatar-preview > img {
  object-fit: cover;
}

.welcome-avatar-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.welcome-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-avatar-controls {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.welcome-avatar-controls .welcome-link-btn {
  padding: 0.55rem 0.85rem;
  font-size: 0.7rem;
}

.welcome-avatar-note {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #71717a;
}

.welcome-hero--ethics {
  min-height: 56vh;
  min-height: 56dvh;
  padding-top: 4.5rem;
  padding-bottom: 2.4rem;
}

.ethics-hero-subtitle {
  margin: 1rem auto 0;
  max-width: 52rem;
  color: var(--gc-muted);
  font-size: clamp(0.98rem, 1.2vw + 0.72rem, 1.2rem);
}

.ethics-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.ethics-hero-actions .welcome-cta-site {
  margin-top: 0;
}

/* Match CTA and outline control height on ethics hero (border eats 2px on .welcome-link-btn) */
.ethics-hero-actions .welcome-link-btn,
.ethics-hero-actions .welcome-cta-site {
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.ethics-hero-actions .welcome-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding-top: calc(0.75rem - 1px);
  padding-bottom: calc(0.75rem - 1px);
}

.ethics-main {
  max-width: 56rem;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.ethics-card {
  margin-bottom: 1rem;
  padding: 1.35rem 1.2rem;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(0, 212, 255, 0.06);
}

.ethics-heading {
  margin: 0 0 0.8rem;
  font-family: "Orbitron", "Poppins", system-ui, sans-serif;
  font-size: clamp(1.1rem, 2vw + 0.55rem, 1.7rem);
  letter-spacing: 0.03em;
  color: #fff;
}

.ethics-list {
  margin: 0;
  padding-left: 1.2rem;
}

.ethics-list li + li {
  margin-top: 0.35rem;
}

.ethics-footer {
  margin: 0 auto 2.2rem;
  padding: 0 1rem;
  text-align: center;
  color: var(--gc-muted);
}

.ethics-footer p {
  margin: 0.25rem 0;
}

.ethics-footer a {
  color: var(--gc-cyan-dim);
  text-decoration: none;
}

.ethics-footer a:hover {
  color: #fff;
}

/* ─── Ethics hub page (ethics.html) ─────────────────────────────────── */

.ethics-page--hub .ethics-hub-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 6rem) 1.25rem clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}

.ethics-hub-hero__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0046ad 0%, #3b82f6 38%, #c8102e 72%, #ff4d6d 100%);
  box-shadow: 0 0 28px rgba(0, 70, 173, 0.4);
}

.ethics-hub-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 70, 173, 0.16), transparent 58%),
    radial-gradient(ellipse 45% 35% at 90% 80%, rgba(200, 16, 46, 0.1), transparent 55%);
  pointer-events: none;
}

.ethics-hub-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
}

.ethics-hub-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.15rem);
  letter-spacing: 0.28em;
  color: rgba(0, 212, 255, 0.78);
}

.ethics-hub-hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: "Orbitron", "Poppins", system-ui, sans-serif;
  font-size: clamp(1.85rem, 4.5vw + 0.5rem, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.08;
  color: #fff;
}

.ethics-hub-hero__line--accent {
  background: linear-gradient(90deg, #7dd3fc 0%, #fff 45%, #fda4af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ethics-hub-hero__subtitle {
  margin: 1.1rem auto 0;
  max-width: 42rem;
  font-size: clamp(0.98rem, 1.1vw + 0.72rem, 1.15rem);
  line-height: 1.65;
  color: var(--gc-muted);
}

.ethics-hub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ethics-hub-hero__actions .welcome-cta-site {
  margin-top: 0;
}

.ethics-hub-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ethics-hub-strip li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.ethics-hub {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ethics-section {
  position: relative;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.2rem, 3vw, 1.65rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(18, 22, 34, 0.94), rgba(8, 10, 16, 0.98));
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ethics-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #0046ad, #c8102e);
  opacity: 0.85;
}

.ethics-section--lead {
  border-color: rgba(0, 212, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(0, 70, 173, 0.12), rgba(8, 10, 16, 0.98));
}

.ethics-section__head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.ethics-section__kicker {
  flex: 0 0 auto;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: rgba(0, 212, 255, 0.55);
}

.ethics-section__title {
  margin: 0;
  font-family: "Orbitron", "Poppins", system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.8vw + 0.45rem, 1.45rem);
  letter-spacing: 0.04em;
  color: #fff;
}

.ethics-section__foot {
  margin: 1rem 0 0;
}

.ethics-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.ethics-pillar {
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s, transform 0.2s;
}

.ethics-pillar:hover {
  border-color: rgba(0, 212, 255, 0.22);
  transform: translateY(-2px);
}

.ethics-pillar__num {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: rgba(200, 16, 46, 0.75);
}

.ethics-pillar__title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.ethics-pillar__body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.ethics-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.ethics-label {
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.ethics-label--news {
  border-color: rgba(0, 70, 173, 0.35);
  background: rgba(0, 70, 173, 0.1);
}

.ethics-label--matches {
  border-color: rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.06);
}

.ethics-label--edits {
  border-color: rgba(200, 16, 46, 0.32);
  background: rgba(200, 16, 46, 0.08);
}

.ethics-label--community {
  border-color: rgba(245, 197, 24, 0.28);
  background: rgba(245, 197, 24, 0.06);
}

.ethics-hub__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.ethics-checklist {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ethics-checklist li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.ethics-checklist li + li {
  margin-top: 0.5rem;
}

.ethics-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgba(0, 212, 255, 0.85);
  font-weight: 700;
}

.ethics-channel-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.ethics-channel-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.ethics-channel-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.ethics-channel-list a:hover,
.ethics-channel-list a:focus-visible {
  color: #00d4ff;
}

.ethics-channel-list__icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ethics-channel-list__icon--ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.ethics-channel-list__icon--yt {
  background: #ff0000;
  font-size: 0.65rem;
}

.ethics-channel-list__icon--tt {
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
  color: #050505;
  font-weight: 800;
}

.ethics-inline-cta {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gc-cyan-dim);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.ethics-inline-cta:hover,
.ethics-inline-cta:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.ethics-contact-card {
  position: relative;
  margin-top: 0.5rem;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 70, 173, 0.7), rgba(200, 16, 46, 0.65));
  overflow: hidden;
}

.ethics-contact-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.2), transparent 55%);
  pointer-events: none;
}

.ethics-contact-card__inner {
  position: relative;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(12, 16, 26, 0.98), rgba(6, 8, 14, 0.99));
}

.ethics-contact-card__inner::before {
  display: none;
}

.ethics-contact-card .ethics-section__title {
  margin-bottom: 0.65rem;
}

.ethics-contact-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.ethics-contact-card .welcome-link-btn--primary {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
}

.ethics-page--hub .welcome-prose a {
  color: var(--gc-cyan-dim);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.3);
}

.ethics-page--hub .welcome-prose a:hover,
.ethics-page--hub .welcome-prose a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  .ethics-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ethics-hub__split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ethics-pillars,
  .ethics-labels {
    grid-template-columns: 1fr;
  }

  .ethics-hub-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ethics-hub-hero__actions .welcome-link-btn,
  .ethics-hub-hero__actions .welcome-cta-site {
    width: 100%;
    justify-content: center;
  }

  .ethics-contact-card__links {
    flex-direction: column;
  }

  .ethics-contact-card__links .welcome-link-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .welcome-join-anchor {
    top: 0.75rem;
    right: 0.75rem;
  }

  .welcome-join-trigger {
    font-size: 0.65rem;
    padding: 0.55rem 0.95rem;
  }

  .welcome-logo-crop--landing,
  .welcome-logo-crop--landing .welcome-logo {
    max-height: min(42vh, 420px);
  }

  .welcome-hero {
    gap: clamp(1.75rem, 5vh, 3.5rem);
  }

  .welcome-hero-copy {
    padding-bottom: clamp(1rem, 3vh, 2rem);
  }

  .welcome-hero-title {
    font-size: clamp(0.78rem, 5.2vw + 0.32rem, 2.4rem);
    letter-spacing: 0.03em;
  }

  .welcome-logo-crop {
    max-height: min(70vh, 820px);
  }

  .welcome-logo {
    max-height: min(70vh, 820px);
  }

  .welcome-drawer-inner {
    padding: 1.35rem 1.2rem 1.35rem;
  }

  .ethics-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ethics-hero-actions .welcome-link-btn,
  .ethics-hero-actions .welcome-cta-site {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-hero-title__text,
  .welcome-hero-title__line:nth-child(2).welcome-hero-title__text {
    animation: none;
    filter: none;
  }

  .welcome-logo-crop--electric {
    animation: none;
  }

  .welcome-media-slot__frame--pulse {
    animation: none;
  }

  .welcome-qa-block,
  .welcome-reveal-slide {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Leaderboard page ──────────────────────────────────────────────── */

.leaderboard-main {
  max-width: 880px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.leaderboard-self {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 212, 255, 0.02));
  border-radius: 14px;
}

.leaderboard-self__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gc-text);
}

.leaderboard-self__text strong {
  color: var(--gc-cyan);
  font-weight: 700;
}

.leaderboard-card {
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.leaderboard-status {
  margin: 0 0 1rem;
  color: var(--gc-muted);
  font-size: 0.92rem;
}

.leaderboard-status.is-error {
  color: #fb7185;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  counter-reset: lb-counter;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 3rem 3rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.leaderboard-row:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.28);
  transform: translateX(2px);
}

.leaderboard-row.is-self {
  border-color: rgba(245, 197, 24, 0.45);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.08), rgba(245, 197, 24, 0.02));
}

.leaderboard-rank {
  font-family: 'Orbitron', 'Poppins', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gc-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

.leaderboard-rank--top {
  color: var(--gc-yellow);
  text-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
}

.leaderboard-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gc-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-avatar-svg,
.leaderboard-avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.leaderboard-name-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.leaderboard-name-block:hover .leaderboard-name {
  color: var(--gc-cyan);
}

.leaderboard-name {
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}

.leaderboard-id {
  font-family: 'Orbitron', 'Poppins', system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gc-muted);
}

.leaderboard-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gc-text);
  text-align: right;
  white-space: nowrap;
}

.leaderboard-score-unit {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gc-muted);
  margin-left: 0.15rem;
}

.leaderboard-rules {
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 18px;
}

.leaderboard-rules .ethics-list {
  margin-top: 0.65rem;
}

.lb-rules-intro {
  margin: 0.65rem 0 1.25rem;
  color: var(--gc-muted);
}

.lb-rules-subhead {
  margin: 1.35rem 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.lb-rules-subhead:first-of-type {
  margin-top: 0.25rem;
}

.lb-rules-note {
  margin: 0.65rem 0 0;
  color: var(--gc-muted);
}

@media (max-width: 600px) {
  .leaderboard-row {
    grid-template-columns: 2.4rem 2.6rem 1fr auto;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
  }
  .leaderboard-avatar { width: 2.6rem; height: 2.6rem; }
  .leaderboard-name { font-size: 0.92rem; }
  .leaderboard-score { font-size: 0.92rem; }
  .leaderboard-card,
  .leaderboard-rules { padding: 1.1rem 1rem 1.25rem; }
}

/* ─── Public profile page ───────────────────────────────────────────── */

.profile-main {
  max-width: 760px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
}

.profile-status-card {
  padding: 1.5rem 1.5rem;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 16px;
  text-align: center;
}

.profile-status-card.is-error {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(251, 113, 133, 0.06);
}

.profile-status-card p {
  margin: 0 0 1rem;
  color: var(--gc-text);
}

.profile-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.profile-card {
  padding: 1.75rem 1.75rem 1.25rem;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.profile-avatar {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 212, 255, 0.32);
  background: var(--gc-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.18);
}

.profile-avatar-svg,
.profile-avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.profile-name {
  margin: 0;
  font-family: 'Orbitron', 'Poppins', system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.profile-id-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
}

.profile-id {
  font-family: 'Orbitron', 'Poppins', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gc-cyan);
  padding: 0.18rem 0.55rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 999px;
}

.profile-rank {
  font-family: 'Orbitron', 'Poppins', system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gc-yellow);
  padding: 0.18rem 0.55rem;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.32);
  border-radius: 999px;
}

.profile-stats {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
}

.profile-stat dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gc-muted);
}

.profile-stat dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gc-text);
}

.profile-stat-unit {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gc-muted);
  margin-left: 0.15rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.profile-events {
  margin-top: 1.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-events .ethics-heading {
  margin-bottom: 0.85rem;
}

.profile-events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.profile-event {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.9rem;
}

.profile-event-reason {
  color: var(--gc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-event-delta {
  font-weight: 700;
  color: var(--gc-cyan);
  white-space: nowrap;
}

.profile-event-time {
  color: var(--gc-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ─── Badge rail (profile page) ─────────────────────────────────────────── */
.profile-badges {
  margin-top: 1.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-badges-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
  flex-wrap: wrap;
}

.profile-badges-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.profile-badges-count {
  font-size: 0.82rem;
  color: var(--gc-muted);
  font-variant-numeric: tabular-nums;
}

.profile-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.profile-badge-card {
  position: relative;
  padding: 0.95rem 0.85rem 0.8rem;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(0, 212, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(0, 212, 255, 0.18);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.profile-badge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 212, 255, 0.18);
}

.profile-badge-card.is-locked {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
  filter: grayscale(0.85);
  opacity: 0.55;
}

.profile-badge-card.is-locked:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 0.78;
}

.profile-badge-icon {
  font-size: 2rem;
  line-height: 1;
}

.profile-badge-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gc-text);
  letter-spacing: 0.02em;
}

.profile-badge-desc {
  font-size: 0.74rem;
  color: var(--gc-muted);
  line-height: 1.3;
  min-height: 2.6em;
}

.profile-badge-meta {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: rgba(0, 212, 255, 0.78);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-badge-card.is-locked .profile-badge-meta {
  color: rgba(255, 255, 255, 0.45);
}

.profile-badges-empty {
  margin: 0;
  padding: 1.2rem 1rem;
  text-align: center;
  color: var(--gc-muted);
  font-size: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* ─── Corner notification toasts (cornerist-toast.js) ─────────────────── */
.gc-toast-container {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.gc-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(11, 19, 32, 0.96),
    rgba(7, 13, 23, 0.96)
  );
  border: 1px solid rgba(0, 212, 255, 0.32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 212, 255, 0.12);
  color: #f4f4f5;
  font-family: inherit;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.gc-toast--in {
  transform: translateX(0);
  opacity: 1;
}

.gc-toast--out {
  transform: translateX(120%);
  opacity: 0;
}

.gc-toast--badge {
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 209, 102, 0.18);
  background: linear-gradient(
    135deg,
    rgba(28, 24, 13, 0.97),
    rgba(11, 19, 32, 0.97)
  );
}

.gc-toast-icon {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.gc-toast--score .gc-toast-icon {
  color: var(--gc-cyan, #00d4ff);
}

.gc-toast-body {
  min-width: 0;
}

.gc-toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-toast--badge .gc-toast-title {
  color: #ffd166;
}

.gc-toast-subtitle {
  margin-top: 0.12rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-toast-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.gc-toast-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .gc-toast {
    transition: opacity 0.18s ease;
    transform: none;
  }
  .gc-toast--in,
  .gc-toast--out {
    transform: none;
  }
}

@media (max-width: 600px) {
  .gc-toast-container {
    right: 0.6rem;
    bottom: 0.7rem;
    left: 0.6rem;
    width: auto;
  }
}

/* ─── Loading skeletons (Phase 3 polish) ────────────────────────────────── */
@keyframes gc-skel-shimmer {
  0%   { background-position: -240px 0; }
  100% { background-position:  240px 0; }
}

.gc-skel {
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(0, 212, 255, 0.16) 40%,
    rgba(255, 255, 255, 0.04) 80%
  );
  background-size: 480px 100%;
  animation: gc-skel-shimmer 1.4s infinite linear;
  color: transparent;
  user-select: none;
}

.gc-skel--block {
  display: block;
}

.gc-skel--text {
  height: 0.85em;
  border-radius: 4px;
}

.gc-skel--title {
  height: 1.4em;
  border-radius: 6px;
}

.gc-skel--avatar {
  border-radius: 50%;
}

.gc-skel--card {
  height: 100%;
  min-height: 240px;
  border-radius: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .gc-skel { animation: none; }
}

/* Leaderboard row skeleton — matches the live row layout closely. */
.leaderboard-row.is-skeleton {
  pointer-events: none;
}

.leaderboard-row.is-skeleton .leaderboard-rank,
.leaderboard-row.is-skeleton .leaderboard-name,
.leaderboard-row.is-skeleton .leaderboard-score {
  color: transparent;
}

/* Profile badges grid skeleton */
.profile-badges-grid.is-skeleton .profile-badge-card {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  filter: none;
  opacity: 1;
}

.profile-badges-grid.is-skeleton .profile-badge-icon,
.profile-badges-grid.is-skeleton .profile-badge-name,
.profile-badges-grid.is-skeleton .profile-badge-desc,
.profile-badges-grid.is-skeleton .profile-badge-meta {
  color: transparent !important;
}

/* Comments list skeleton (article page) */
.comment-skeleton {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 0.55rem;
}

.comment-skeleton__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
}

.comment-skeleton__lines {
  display: grid;
  gap: 0.4rem;
  align-content: center;
}

.comment-skeleton__line { height: 0.85em; }

/* News card skeleton — matches grid-stretched .news-card height. */
.news-card.is-skeleton {
  pointer-events: none;
  animation: gc-skel-shimmer 1.4s infinite linear;
  background: rgba(255, 255, 255, 0.02);
  background-size: 480px 100%;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(0, 212, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.04) 80%
  );
  border-color: rgba(255, 255, 255, 0.05);
  min-height: 22rem;
  height: 100%;
}

.news-card.is-skeleton * {
  visibility: hidden;
}

@media (max-width: 600px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .profile-meta { align-items: center; }
  .profile-id-row { justify-content: center; }
  .profile-stats { justify-content: center; }
  .profile-actions { justify-content: center; }
  .profile-events { text-align: left; }
  .profile-card { padding: 1.4rem 1.1rem 1.1rem; }
  .profile-avatar { width: 6.5rem; height: 6.5rem; }
  .profile-event {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.55rem 0.7rem;
  }
  .profile-event-time { font-size: 0.72rem; }
}

/* ─── Recent contributions feed (profile page) ──────────────────────────── */
.profile-feed,
.profile-bookmarks {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.18);
}

.profile-feed-list,
.profile-bookmarks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.profile-feed-item {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-feed-item:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.22);
}

.profile-feed-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  background: rgba(0, 212, 255, 0.12);
  border-radius: 50%;
  font-size: 0.85rem;
  color: #6affff;
}

.profile-feed-item--like .profile-feed-icon {
  background: rgba(251, 113, 133, 0.16);
  color: #ffb1c2;
}

.profile-feed-item--bookmark .profile-feed-icon {
  background: rgba(255, 220, 100, 0.16);
  color: #ffe084;
}

.profile-feed-body {
  min-width: 0;
}

.profile-feed-headline {
  margin: 0;
  font-size: 0.92rem;
  color: #cdd5e0;
  word-break: break-word;
}

.profile-feed-verb {
  color: rgba(255, 255, 255, 0.6);
}

.profile-feed-link {
  color: #6affff;
  text-decoration: none;
  font-weight: 600;
}

.profile-feed-link:hover {
  text-decoration: underline;
}

.profile-feed-link.is-missing {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  cursor: default;
}

.profile-feed-quote {
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.55rem;
  background: rgba(0, 212, 255, 0.05);
  border-left: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 0 6px 6px 0;
  font-size: 0.85rem;
  color: #e9eef5;
  font-style: italic;
}

.profile-feed-meta {
  margin: 0.3rem 0 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
}

.profile-feed-empty,
.profile-bookmarks-empty {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  font-style: italic;
}

/* ─── Bookmarks rail ──────────────────────────────────────────────────── */
.profile-bookmark-item {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.profile-bookmark-item:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.28);
  transform: translateY(-1px);
}

.profile-bookmark-link {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  text-decoration: none;
  color: inherit;
}

.profile-bookmark-thumb {
  width: 4.2rem;
  height: 3.2rem;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.profile-bookmark-text { min-width: 0; }

.profile-bookmark-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f4f4f5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.profile-bookmark-meta {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 600px) {
  .profile-feed-item {
    grid-template-columns: 1.6rem 1fr;
    padding: 0.55rem 0.65rem;
  }
  .profile-bookmark-link {
    grid-template-columns: 3.4rem 1fr;
  }
  .profile-bookmark-thumb {
    width: 3.4rem;
    height: 2.6rem;
  }
}

/* ─── Keyboard shortcut help popover ────────────────────────────────────── */
.gc-shortcuts-help {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: rgba(4, 8, 16, 0.62);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  transition: opacity 0.18s ease;
  padding: 1rem;
}

.gc-shortcuts-help.is-open { opacity: 1; }

.gc-shortcuts-help__panel {
  position: relative;
  max-width: 26rem;
  width: 100%;
  background: linear-gradient(135deg, rgba(11, 19, 32, 0.96), rgba(7, 13, 23, 0.96));
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 212, 255, 0.12);
  color: #f4f4f5;
  padding: 1.4rem 1.5rem 1.2rem;
  font-family: inherit;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}

.gc-shortcuts-help.is-open .gc-shortcuts-help__panel {
  transform: translateY(0) scale(1);
}

.gc-shortcuts-help__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #00d4ff, #6affff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gc-shortcuts-help__close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  background: transparent;
  border: 0;
  color: #cdd5e0;
  font-size: 1.4rem;
  line-height: 1;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.gc-shortcuts-help__close:hover,
.gc-shortcuts-help__close:focus-visible {
  background: rgba(0, 212, 255, 0.16);
  color: #ffffff;
  outline: none;
}

.gc-shortcuts-help__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.55rem;
  margin: 0;
  font-size: 0.92rem;
}

.gc-shortcuts-help__list dt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.gc-shortcuts-help__list dd {
  margin: 0;
  color: #cdd5e0;
  align-self: center;
}

.gc-shortcuts-help__list kbd {
  display: inline-block;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.32);
  color: #e9eef5;
  padding: 0.12rem 0.45rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) inset;
  min-width: 1.6rem;
  text-align: center;
}

.gc-shortcuts-help__hint {
  margin: 1rem 0 0;
  color: #95a1b2;
  font-size: 0.78rem;
}

/* Make navigable items show a clear focus ring while using j/k. */
.news-card:focus-visible,
.leaderboard-row:focus-visible,
[data-gc-nav-item]:focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.85);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .gc-shortcuts-help,
  .gc-shortcuts-help__panel { transition: none; }
}
