:root {
  color-scheme: only light;
  --ink: #16242d;
  --midnight: #0c1f2a;
  --slate: #3b5666;
  --mist: #f6fbff;
  --fog: #5e7484;
  --accent: #5ff8ff;
  --accent-soft: #d7fbff;
  --sea: #12ccff;
  --sea-soft: #c9f4ff;
  --neon-blue: rgba(18, 204, 255, 0.55);
  --neon-cyan: rgba(90, 255, 227, 0.45);
  --neon-pink: rgba(255, 90, 203, 0.32);
  --glass: rgba(255, 255, 255, 0.78);
  --border: rgba(54, 126, 160, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 22px 40px rgba(28, 88, 120, 0.12);
  --neon-glow: 0 0 16px rgba(18, 204, 255, 0.35), 0 0 32px rgba(90, 255, 227, 0.2);
  --transition: 0.25s ease;
  font-size: 16px;
}

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

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(18, 204, 255, 0.16), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255, 90, 203, 0.12), transparent 42%),
    radial-gradient(circle at top, #ffffff 0%, #f5faff 48%, #eaf4fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
  touch-action: pan-x pan-y pinch-zoom;
}


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

main {
  padding: 0 6vw 6rem;
  padding-top: 92px;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  mix-blend-mode: normal;
}

.orb-one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(47, 165, 214, 0.35), rgba(47, 165, 214, 0));
  top: -120px;
  left: -120px;
}

.orb-two {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(95, 199, 238, 0.32), rgba(95, 199, 238, 0));
  bottom: -140px;
  right: -160px;
}

.orb-three {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(47, 165, 214, 0.22), rgba(47, 165, 214, 0));
  top: 40%;
  right: 15%;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 94%, rgba(32, 90, 120, 0.05) 96%),
    linear-gradient(90deg, transparent 94%, rgba(32, 90, 120, 0.05) 96%);
  background-size: 120px 120px;
  opacity: 0.5;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.2rem 5vw 0.95rem;
  min-height: 108px;
  background:
    linear-gradient(135deg, #071620, #163a54),
    radial-gradient(circle at 15% 0%, rgba(18, 204, 255, 0.25), transparent 55%);
  border-bottom: 1px solid rgba(18, 204, 255, 0.25);
  z-index: 100;
  box-shadow:
    0 8px 30px rgba(3, 9, 15, 0.25),
    0 0 24px rgba(18, 204, 255, 0.2);
  color: #f5f7fb;
  transition:
    padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.site-header.is-scrolled {
  padding: 0.6rem 5vw;
  min-height: 70px;
  background: rgba(7, 22, 32, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(18, 204, 255, 0.15);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.site-header.is-scrolled .brand-subtitle {
  display: none;
}

.header-surface {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 204, 255, 0.9), rgba(90, 255, 227, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #0d2b38;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 -2px 0 rgba(20, 40, 70, 0.2),
    0 0 14px rgba(18, 204, 255, 0.5);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.header-utility {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #f5f7fb;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, border 0.2s ease;
}

.header-utility:hover,
.header-utility:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.header-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0.4rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.header-toggle span:nth-child(1) {
  width: 100%;
}

.header-toggle span:nth-child(2) {
  width: 100%;
}

.header-toggle span:nth-child(3) {
  width: 100%;
}

.header-toggle.is-open {
  background: rgba(255, 255, 255, 0.2);
}

.header-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.axis-nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: rgba(18, 204, 255, 0.08);
  border-radius: 999px;
  padding: 0.4rem;
  border: 1px solid rgba(18, 204, 255, 0.28);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(18, 204, 255, 0.18);
}

@media (max-width: 900px) {
  .header-surface {
    flex-direction: row;
    gap: 0.8rem;
  }

  .site-header {
    padding: 0.9rem 5vw 0.75rem;
    min-height: 92px;
  }

  .header-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    gap: 7px;
    padding: 0.5rem;
  }

  .header-toggle span {
    height: 3px;
  }

  .axis-nav {
    position: absolute;
    top: 100%;
    right: 5vw;
    left: auto;
    margin-top: 0.8rem;
    flex-direction: column;
    display: none;
    background: rgba(7, 22, 32, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(18, 204, 255, 0.3);
    padding: 1rem;
    gap: 0.5rem;
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(18, 204, 255, 0.2);
    border-radius: 16px;
    min-width: 280px;
    width: max-content;
    max-width: calc(100vw - 10vw);
  }

  .axis-nav.is-open {
    display: flex;
  }

  .axis-indicator {
    display: none;
  }

  .header-utility {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
  }

  .header-utility.is-help {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  .header-utility.is-help::before {
    content: "?";
    font-size: 1rem;
    font-weight: 700;
    color: #f5f7fb;
  }

  .axis-link {
    text-align: left;
    font-size: 0.95rem;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(18, 204, 255, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    width: 100%;
    display: block;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .axis-link:hover,
  .axis-link:focus {
    background: rgba(18, 204, 255, 0.15);
    border-color: rgba(18, 204, 255, 0.4);
  }

  .axis-link:active {
    background: rgba(18, 204, 255, 0.25);
    border-color: rgba(18, 204, 255, 0.5);
  }

  .axis-link.is-active {
    background: rgba(18, 204, 255, 0.25);
    border-color: rgba(18, 204, 255, 0.5);
    box-shadow: 0 0 12px rgba(18, 204, 255, 0.3);
  }

  .search-panel.is-collapsible {
    position: relative;
    padding: 1.8rem;
  }

  .search-panel.is-collapsible.is-collapsed {
    box-shadow: 0 8px 16px rgba(23, 60, 86, 0.06);
  }

  .search-panel.is-collapsible .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    color: var(--midnight);
  }

  .search-panel.is-collapsible.is-collapsed .search-body {
    display: none;
  }

  .search-controls {
    grid-template-columns: 1fr;
    margin-bottom: 1.2rem;
  }

  .filters {
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .brand-title-sub,
  .brand-title-main {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-title-sub {
    font-size: 0.62rem;
  }

  .brand-title-main {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
  }
}

.axis-link {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: #f5f7fb;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
  position: relative;
  z-index: 1;
}

.axis-link:hover,
.axis-link:focus-visible {
  background: rgba(18, 204, 255, 0.22);
  border-color: rgba(18, 204, 255, 0.5);
  box-shadow: 0 0 12px rgba(18, 204, 255, 0.25);
}

.axis-link.is-active {
  background: linear-gradient(135deg, rgba(18, 204, 255, 0.3), rgba(90, 255, 227, 0.12));
  border-color: rgba(18, 204, 255, 0.6);
  box-shadow: 0 0 16px rgba(18, 204, 255, 0.3);
}

.axis-indicator {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(18, 204, 255, 0.22);
  border: 1px solid rgba(18, 204, 255, 0.5);
  box-shadow:
    0 6px 14px rgba(8, 20, 30, 0.25),
    0 0 18px rgba(18, 204, 255, 0.25);
  transition: none;
  pointer-events: none;
  will-change: transform, width;
  opacity: 0;
}

.axis-nav.is-ready .axis-indicator {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.axis-nav.is-animated .axis-indicator {
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), width 0.45s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.2s ease;
}

.axis-nav.no-highlight .axis-indicator {
  display: none;
}

#apply,
#post,
#register,
#discover {
  scroll-margin-top: var(--header-offset, 96px);
}

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.1;
  min-width: 0;
}

.brand-title-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
}

.brand-title-main {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  min-width: 0;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
  max-height: 50px;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.site-header.is-scrolled .brand-subtitle {
  opacity: 0;
  max-height: 0;
  margin: 0;
}

.header-meta {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 165, 214, 0.12);
  color: #2b6b89;
  font-size: 0.8rem;
  border: 1px solid rgba(47, 165, 214, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.meta-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f6e8e;
  font-size: 0.7rem;
  font-weight: 600;
}

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(47, 165, 214, 0.08);
  border: 1px solid rgba(47, 165, 214, 0.18);
  box-shadow: 0 12px 26px rgba(31, 89, 120, 0.1);
  font-size: 0.95rem;
}

.nav-links a {
  transition: var(--transition);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 165, 214, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: var(--slate);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(47, 165, 214, 0.16);
}

.nav-pill:hover {
  transform: translateY(-1px);
  background: var(--sea-soft);
  color: var(--ink);
}

.nav-pill.accent {
  background: linear-gradient(135deg, var(--sea), var(--accent));
  border: none;
  color: #0d2b38;
  box-shadow: 0 12px 26px rgba(47, 165, 214, 0.28);
}

.nav-pill.accent:hover {
  color: var(--midnight);
}

.nav-pill.is-active {
  background: var(--sea-soft);
  border-color: rgba(47, 165, 214, 0.6);
  color: var(--ink);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.page-hero {
  padding: 3rem 0 1.4rem;
  display: grid;
  gap: 1rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  color: var(--ink);
}

.page-hero p {
  color: var(--fog);
  max-width: 42rem;
}

.usage-hero {
  padding: 2.8rem 0 2.2rem;
}

.usage-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
  align-items: center;
}

.usage-hero-copy .lead {
  color: var(--fog);
  line-height: 1.7;
  margin: 1rem 0 1.6rem;
}

.usage-hero-panel {
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 204, 255, 0.28);
  box-shadow:
    0 18px 32px rgba(23, 60, 86, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 1.2rem;
}

.usage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f2733;
  background: rgba(18, 204, 255, 0.18);
  border: 1px solid rgba(18, 204, 255, 0.4);
}

.usage-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--slate);
}

.usage-actions {
  padding: 3rem 0 2.5rem;
}

.usage-steps {
  padding: 2.5rem 0 3rem;
}

.usage-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.usage-step-card {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(23, 60, 86, 0.08);
  display: grid;
  gap: 0.9rem;
}

.usage-step-card ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--slate);
}

.usage-step-link {
  color: #0b5f84;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
  font-weight: 700;
}

.usage-step-link:hover,
.usage-step-link:focus-visible {
  color: #0a7cab;
}

.usage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 37, 49, 0.7);
}

.usage-note {
  padding: 1rem 0 3.2rem;
}

.note-card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 245, 252, 0.9));
  border: 1px solid rgba(18, 204, 255, 0.35);
  box-shadow: 0 14px 26px rgba(23, 60, 86, 0.08);
  display: grid;
  gap: 0.8rem;
}

.note-card p {
  color: var(--fog);
  margin: 0;
}

.detail-hero {
  padding: 3rem 0 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 1rem;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.detail-title h1 {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  color: var(--ink);
}

.detail-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--sea), var(--accent));
  color: #0d2b38;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 24px rgba(47, 165, 214, 0.25);
  overflow: hidden;
}

.detail-hero.is-pro .detail-logo {
  background-color: #1e2a32;
  color: #f2ddaa;
  border-color: rgba(216, 177, 96, 0.55);
  box-shadow: 0 16px 30px rgba(5, 8, 10, 0.55);
}

.detail-hero.is-tournament .detail-logo {
  background-color: #f5c467;
  color: #6b3a00;
  border-color: rgba(216, 150, 62, 0.55);
  box-shadow: 0 16px 30px rgba(176, 120, 34, 0.25);
}

.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
  align-items: center;
}

.detail-pace {
  font-size: 0.8rem;
  color: var(--fog);
}

.detail-hero.is-pro .detail-pace {
  color: rgba(245, 247, 250, 0.72);
}

.detail-hero.is-tournament .detail-pace {
  color: #6a5238;
}

.detail-desc {
  color: var(--fog);
  line-height: 1.7;
  max-width: 40rem;
}

.detail-hero.is-pro .detail-desc {
  color: rgba(245, 247, 250, 0.78);
}

.detail-hero.is-tournament .detail-desc {
  color: #5b4630;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.detail-tags span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #cfeafb;
  border: 1px solid #8fd1ea;
  font-size: 0.8rem;
  color: #17556c;
}

.detail-hero.is-pro .detail-tags span,
.detail-content.is-pro .detail-tags span {
  background: #222a30;
  border: 1px solid #f2d18b;
  color: #f9e9c0;
}

.detail-hero.is-tournament .detail-tags span,
.detail-content.is-tournament .detail-tags span {
  background: #ffe5a3;
  border: 1px solid #d9942e;
  color: #5a3506;
}

.detail-tags.is-compact span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.detail-panel {
  display: grid;
  gap: 1rem;
}

.detail-info-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 14px 26px rgba(23, 60, 86, 0.08);
  display: grid;
  gap: 0.6rem;
}

.detail-hero.is-pro .detail-info-card,
.detail-content.is-pro .detail-info-card {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(145deg, #0b0f12 0%, #151f25 55%, #0a0e12 100%);
  border: 1px solid rgba(216, 177, 96, 0.38);
  box-shadow:
    0 24px 40px rgba(5, 8, 10, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.detail-hero.is-pro .detail-label,
.detail-content.is-pro .detail-label,
.detail-hero.is-pro .detail-value,
.detail-content.is-pro .detail-value {
  color: rgba(245, 247, 250, 0.86);
}

.detail-hero.is-tournament .detail-info-card,
.detail-content.is-tournament .detail-info-card {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(140deg, rgba(255, 252, 242, 0.98), rgba(245, 200, 116, 0.6));
  border: 1px solid rgba(216, 150, 62, 0.45);
  box-shadow:
    0 18px 32px rgba(176, 120, 34, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}


.detail-hero.is-tournament .detail-label,
.detail-content.is-tournament .detail-label,
.detail-hero.is-tournament .detail-value,
.detail-content.is-tournament .detail-value {
  color: #5b4630;
}


.detail-hero.is-pro .badge {
  background: linear-gradient(135deg, #0b0f12, #1e2a32);
  color: #f2ddaa;
  border: 1px solid rgba(216, 177, 96, 0.55);
  box-shadow: none;
}

.detail-hero.is-tournament .badge {
  background: linear-gradient(135deg, #fff1c7, #f5c467);
  color: #6b3a00;
  border: 1px solid rgba(216, 150, 62, 0.45);
}

.detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}

.detail-value {
  color: var(--slate);
  line-height: 1.6;
}

.detail-link {
  color: #1d8bb0;
  font-weight: 600;
}

.detail-hero.is-pro .detail-link,
.detail-content.is-pro .detail-link {
  color: #f2ddaa;
}

.detail-hero.is-tournament .detail-link,
.detail-content.is-tournament .detail-link {
  color: #8a5a10;
}

.detail-content {
  padding-bottom: 3rem;
  display: grid;
  gap: 1.5rem;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.detail-gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(46, 103, 126, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 28px rgba(23, 60, 86, 0.12);
  min-height: 160px;
}

.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-list {
  display: grid;
  gap: 0.7rem;
}

.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(47, 165, 214, 0.2);
}

.detail-content.is-pro .member-item {
  background: rgba(13, 19, 24, 0.78);
  border: 1px solid rgba(216, 177, 96, 0.28);
}

.detail-content.is-tournament .member-item {
  background: rgba(255, 250, 238, 0.9);
  border: 1px solid rgba(216, 150, 62, 0.25);
}

.member-meta {
  display: grid;
  gap: 0.2rem;
}

.member-name {
  font-weight: 600;
  color: var(--ink);
}

.detail-content.is-pro .member-name {
  color: rgba(245, 247, 250, 0.9);
}

.detail-content.is-pro .member-role {
  color: rgba(245, 247, 250, 0.7);
}

.detail-content.is-tournament .member-name {
  color: #4b2b00;
}

.detail-content.is-tournament .member-role {
  color: #6a5238;
}

.member-role {
  font-size: 0.75rem;
  color: var(--fog);
}

.member-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 165, 214, 0.12);
  color: #1b6f8e;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.detail-content.is-pro .member-tag {
  background: rgba(216, 177, 96, 0.18);
  color: #f2ddaa;
}

.detail-content.is-tournament .member-tag {
  background: rgba(255, 232, 188, 0.7);
  color: #6b3a00;
}

.member-empty {
  color: var(--fog);
}

.auth-panel {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(47, 165, 214, 0.35);
  background: rgba(233, 247, 252, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}


.hero-copy h1 {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--sea);
  margin-bottom: 0.8rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--fog);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.primary,
.ghost {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
}

.primary {
  background: linear-gradient(135deg, var(--sea), var(--accent));
  color: #0d2b38;
  box-shadow: 0 12px 30px rgba(47, 165, 214, 0.28);
}

.primary:hover {
  transform: translateY(-2px);
}

.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.primary.is-disabled,
.ghost.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.ghost {
  border: 1px solid rgba(47, 165, 214, 0.4);
  color: var(--slate);
  background: rgba(255, 255, 255, 0.7);
}

.ghost:hover {
  background: var(--sea-soft);
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat-number {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: 2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fog);
}

.hero-panel {
  display: grid;
  gap: 1.5rem;
}

.panel-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-card.highlight {
  background: linear-gradient(160deg, rgba(47, 165, 214, 0.2), rgba(95, 199, 238, 0.2));
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.panel-text {
  color: var(--fog);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.panel-chip {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--sea-soft);
  color: var(--slate);
  font-size: 0.8rem;
}

.clan-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.clan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(244, 250, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 18px rgba(20, 40, 70, 0.08);
}

.panel-card.highlight .clan-item {
  background: rgba(255, 255, 255, 0.65);
}

.clan-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.clan-logo {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #1d2b38;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(191, 214, 240, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.clan-logo img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  z-index: 1;
}

.clan-logo.has-image {
  position: relative;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.95);
}

.detail-logo.clan-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sea), var(--accent));
  color: #0d2b38;
  box-shadow: 0 12px 24px rgba(47, 165, 214, 0.25);
}

.clan-logo.has-image span {
  opacity: 0;
}

.logo-upload-preview {
  margin-top: 0.55rem;
  width: 96px;
  height: 96px;
  border-radius: 18px;
}

.logo-upload-preview span {
  font-size: 1rem;
}

.clan-info {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.clan-info strong {
  font-size: 0.95rem;
}

.clan-info span {
  color: var(--fog);
  font-size: 0.82rem;
}

.clan-badge {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(60, 130, 195, 0.12);
  color: var(--slate);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(60, 130, 195, 0.15);
  white-space: nowrap;
}

.panel-card.highlight .clan-badge {
  background: rgba(20, 70, 120, 0.12);
}

.paths {
  margin: 5rem 0;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.path-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.path-label {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.path-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.path-card p {
  color: var(--fog);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.path-links {
  margin-top: 1.2rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.section-head.stack {
  grid-template-columns: 1fr;
  gap: 0.6rem;
  align-items: start;
}

.section-head.stack h2 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  white-space: nowrap;
}

.section-head h2 {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-sub {
  color: var(--fog);
  font-size: 0.94rem;
  line-height: 1.7;
}

.discover {
  padding: 2.2rem 0 3.2rem;
}

.search-panel {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
  box-shadow: 0 16px 30px rgba(23, 60, 86, 0.08);
  overflow: visible;
}

.search-panel.is-collapsible .search-toggle {
  display: none;
}

.search-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.search-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: none;
  padding: 0;
  padding-right: 45px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--midnight);
  cursor: pointer;
  max-width: calc(100% - 45px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-toggle svg {
  flex-shrink: 0;
}

.search-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(46, 103, 126, 0.08);
  color: var(--midnight);
  cursor: pointer;
  transition: all 0.2s ease;
  position: absolute;
  top: -8px;
  right: -8px;
}

.search-close:hover {
  background: rgba(46, 103, 126, 0.15);
  transform: scale(1.05);
}

.search-close:active {
  transform: scale(0.95);
}

.search-panel.is-collapsible .search-body {
  display: grid;
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .axis-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0.02em;
  }

  .search-panel.is-collapsible .search-toggle {
    display: inline-flex;
  }

  .search-panel.is-collapsible.is-collapsed .search-toggle {
    margin-top: 0.25rem;
  }

  .search-panel.is-collapsible:not(.is-collapsed) .search-toggle {
    margin-top: 0.25rem;
  }

  .search-panel.is-collapsible:not(.is-collapsed) .search-close {
    display: flex;
  }

  .search-panel.is-collapsible.is-collapsed .search-close {
    display: none;
  }

  .search-panel.is-collapsible:not(.is-collapsed) .search-header {
    margin-bottom: 1rem;
  }

  .search-panel.is-collapsible .search-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
    position: relative;
  }

  .search-panel.is-collapsible .search-body::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    pointer-events: none;
    display: block;
    margin-top: -40px;
  }

  .search-panel.is-collapsible .search-body::-webkit-scrollbar {
    width: 6px;
  }

  .search-panel.is-collapsible .search-body::-webkit-scrollbar-track {
    background: rgba(46, 103, 126, 0.08);
    border-radius: 3px;
  }

  .search-panel.is-collapsible .search-body::-webkit-scrollbar-thumb {
    background: rgba(46, 103, 126, 0.3);
    border-radius: 3px;
  }

  .search-panel.is-collapsible .search-body::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 103, 126, 0.5);
  }
}

.search-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.search-field label {
  font-size: 0.85rem;
  color: var(--fog);
}

.search-field input {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(46, 103, 126, 0.2);
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
}

.search-field select {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(46, 103, 126, 0.2);
  background-color: #ffffff;
  color: var(--ink);
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  font-size: 16px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(43, 107, 137, 0.8) 50%),
    linear-gradient(135deg, rgba(43, 107, 137, 0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 1.25rem) 52%,
    calc(100% - 0.95rem) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.search-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  align-self: end;
  flex-wrap: wrap;
}

.result-count {
  font-size: 0.8rem;
  color: var(--fog);
  white-space: nowrap;
}

.ghost.compact {
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: flex-start;
}

.filters > .filter-group {
  flex: 0 0 240px;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
}

.filter-group.is-collapsible {
  position: relative;
  align-self: start;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(46, 103, 126, 0.18);
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.7);
}

.filter-group.is-collapsible .chips {
  display: none;
}

.filter-group.is-collapsible[open] .chips {
  display: flex;
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  top: calc(100% + 0.6rem);
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(46, 103, 126, 0.18);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 28px rgba(23, 60, 86, 0.12);
  z-index: 3;
}

.filter-group.is-collapsible[open] {
  z-index: 4;
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--fog);
  list-style: none;
  padding: 0.2rem 0.3rem;
}

.filter-summary::-webkit-details-marker {
  display: none;
}

.filter-summary::marker {
  content: "";
}

.filter-group.is-collapsible[open] .filter-summary {
  margin-bottom: 0;
}

.filter-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-summary-count {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 165, 214, 0.14);
  color: var(--slate);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(47, 165, 214, 0.2);
  white-space: nowrap;
}

.filter-summary-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(47, 165, 214, 0.6);
  border-bottom: 2px solid rgba(47, 165, 214, 0.6);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.filter-group.is-collapsible[open] .filter-summary-chevron {
  transform: rotate(225deg);
}

.filter-group p {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--fog);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-option {
  position: relative;
  display: inline-flex;
}

.tag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-option span {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 103, 126, 0.2);
  background: #ffffff;
  color: var(--slate);
  font-size: 0.8rem;
  transition: var(--transition);
}

.tag-option:hover span {
  border-color: rgba(47, 165, 214, 0.6);
  color: var(--ink);
}

.tag-option input:checked + span {
  background: var(--sea-soft);
  border-color: rgba(47, 165, 214, 0.6);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(47, 165, 214, 0.2);
}

.tag-option input:focus-visible + span {
  outline: 2px solid rgba(47, 165, 214, 0.6);
  outline-offset: 2px;
}

.chip {
  border: 1px solid rgba(46, 103, 126, 0.2);
  background: #ffffff;
  color: var(--slate);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.chip.active,
.chip:hover {
  background: var(--sea-soft);
  border-color: rgba(47, 165, 214, 0.6);
  color: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
  gap: 1.5rem;
  justify-content: flex-start;
}

.card-compact {
  display: none;
  gap: 0.35rem;
}

.card-compact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: var(--fog);
  margin: 0;
}

.card-compact-row span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(46, 103, 126, 0.7);
}

.card-compact-row strong {
  color: var(--midnight);
  font-weight: 700;
  font-size: 0.82rem;
}

.clan-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.96) 100%);
  border: 1px solid rgba(46, 103, 126, 0.12);
  --card-desc-fade: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px rgba(23, 60, 86, 0.04),
    0 10px 20px rgba(23, 60, 86, 0.06);
  aspect-ratio: 1 / 1.1;
  width: 100%;
  overflow: hidden;
}

.clan-card.hidden {
  display: none;
}

.clan-card.is-paged-out {
  display: none;
}

.clan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 165, 214, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.clan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 165, 214, 0.25);
  box-shadow:
    0 8px 16px rgba(23, 60, 86, 0.08),
    0 20px 40px rgba(47, 165, 214, 0.15);
}

.clan-card:hover::before {
  opacity: 1;
}

.clan-card.pro {
  --pro-gold: #e8c470;
  --pro-gold-soft: rgba(232, 196, 112, 0.22);
  --pro-ink: #0c1116;
  --card-desc-fade: rgba(20, 26, 32, 0.95);
  border: 1px solid rgba(232, 196, 112, 0.5);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(232, 196, 112, 0.12), transparent 50%),
    linear-gradient(145deg, #141a20 0%, #1e2832 45%, #141a20 100%);
  color: #f8f9fa;
  box-shadow:
    0 8px 16px rgba(5, 8, 10, 0.4),
    0 20px 40px rgba(5, 8, 10, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.clan-card.pro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(232, 196, 112, 0.15) 0%, transparent 50%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  opacity: 1;
  pointer-events: none;
}

.clan-card.pro::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 112, 0.15);
  pointer-events: none;
}

.clan-card.pro:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 196, 112, 0.7);
  box-shadow:
    0 12px 24px rgba(4, 6, 8, 0.5),
    0 28px 56px rgba(4, 6, 8, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.clan-card.pro .card-title {
  letter-spacing: 0.02em;
  color: #ffffff;
}

.clan-card.pro .card-meta {
  color: rgba(248, 249, 250, 0.8);
}

.clan-card.pro .card-desc {
  color: rgba(248, 249, 250, 0.92);
}

.clan-card.pro .card-tags span {
  background: rgba(232, 196, 112, 0.15);
  color: rgba(248, 249, 250, 0.9);
  border: 1px solid rgba(232, 196, 112, 0.3);
}


.card-top {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: calc(50% - 2rem);
  padding-left: calc(50% + 0.5rem);
}

.card-identity {
  display: contents;
}

.clan-card .clan-logo {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: calc(50% - 2rem);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  font-size: 1.8rem;
  box-shadow:
    0 2px 8px rgba(23, 60, 86, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
}

.clan-card .clan-logo.has-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.95);
}

.clan-card .card-title {
  font-size: 1.1rem;
  line-height: 1.3;
  min-height: calc(1.1rem * 1.3 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clan-card .badge,
.clan-card .recruit-pill {
  align-self: flex-start;
}

.clan-card .card-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.clan-card:hover .clan-logo {
  transform: scale(1.05);
  box-shadow:
    0 4px 12px rgba(23, 60, 86, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.clan-card.pro .clan-logo {
  background-color: rgba(232, 196, 112, 0.12);
  border: 1px solid rgba(232, 196, 112, 0.4);
  color: #f8e4b8;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card-title {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #0f2733;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card-top > .badge,
.card-top > .recruit-pill {
  flex: 0 0 auto;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(47, 165, 214, 0.15) 0%, rgba(47, 165, 214, 0.08) 100%);
  color: #1b6f8e;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(47, 165, 214, 0.2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(47, 165, 214, 0.08);
}

.recruit-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(56, 196, 120, 0.18);
  color: #1f6f49;
  border: 1px solid rgba(31, 111, 73, 0.2);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.recruit-pill.is-closed {
  background: rgba(220, 38, 38, 0.12);
  color: #b42318;
  border-color: rgba(220, 38, 38, 0.28);
}

.recruit-pill.scout-pill {
  background: rgba(216, 177, 96, 0.18);
  color: #7a4d00;
  border-color: rgba(216, 177, 96, 0.4);
}

.clan-card.pro .recruit-pill {
  background: rgba(216, 177, 96, 0.18);
  color: #f2ddaa;
  border-color: rgba(216, 177, 96, 0.4);
}

.clan-card.pro .recruit-pill.is-closed {
  background: rgba(86, 98, 110, 0.32);
  color: rgba(245, 247, 250, 0.72);
  border-color: rgba(245, 247, 250, 0.2);
}

.clan-card.pro .recruit-pill.scout-pill {
  background: rgba(216, 177, 96, 0.22);
  color: #f6e3b5;
  border-color: rgba(216, 177, 96, 0.45);
}

.detail-hero.is-pro .recruit-pill.scout-pill {
  background: #e4c27a;
  color: #2a1a06;
  border-color: rgba(216, 177, 96, 0.9);
}

.detail-hero.is-tournament .recruit-pill.scout-pill {
  background: rgba(255, 248, 230, 0.9);
  color: #6b3a00;
  border-color: rgba(216, 150, 62, 0.45);
}

.badge.pro {
  background: linear-gradient(135deg, rgba(232, 196, 112, 0.25), rgba(232, 196, 112, 0.15));
  color: #f8e4b8;
  border: 1px solid rgba(232, 196, 112, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.clan-card[data-category="tournament"] .badge {
  background: linear-gradient(135deg, #fff1c7, #f5c467);
  color: #6b3a00;
  border: 1px solid rgba(216, 150, 62, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clan-card[data-category="tournament"] {
  border: 1px solid rgba(216, 150, 62, 0.55);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(140deg, rgba(255, 252, 242, 0.98), rgba(245, 200, 116, 0.55));
  box-shadow:
    0 22px 36px rgba(176, 120, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.clan-card[data-category="tournament"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background:
    linear-gradient(120deg, rgba(255, 246, 219, 0.9), transparent 58%),
    linear-gradient(210deg, rgba(194, 132, 48, 0.12), transparent 45%);
  opacity: 0.7;
  pointer-events: none;
}

.clan-card[data-category="tournament"]::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-md) - 12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 0 0 1px rgba(216, 150, 62, 0.18);
  opacity: 0.55;
  pointer-events: none;
}

.clan-card[data-category="tournament"]:hover {
  transform: translateY(-5px);
  border-color: rgba(191, 126, 40, 0.75);
  box-shadow:
    0 26px 40px rgba(163, 109, 31, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.clan-card[data-category="tournament"] .card-title {
  color: #4b2b00;
}

.clan-card[data-category="tournament"] .card-meta,
.clan-card[data-category="tournament"] .card-desc {
  color: #5b4630;
}

.clan-card[data-category="tournament"] .card-tags span {
  background: rgba(255, 248, 230, 0.85);
  color: #5b4630;
  border: 1px solid rgba(216, 150, 62, 0.25);
}

.clan-card[data-category="i-mythic"] .badge {
  background: linear-gradient(135deg, #f6d66a 0%, #f0c854 100%);
  color: #6b4a00;
  border: 1px solid rgba(246, 214, 106, 0.4);
}

.clan-card[data-category="g-mythic"] .badge {
  background: linear-gradient(135deg, #e6d3ff 0%, #d9c5ff 100%);
  color: #5a2d91;
  border: 1px solid rgba(230, 211, 255, 0.5);
}

.clan-card[data-category="h-mythic"] .badge {
  background: linear-gradient(135deg, #d8f2ff 0%, #c5eaff 100%);
  color: #1b6a8a;
  border: 1px solid rgba(216, 242, 255, 0.5);
}

.clan-card[data-category="mythic"] .badge {
  background: linear-gradient(135deg, #ffe781 0%, #ffd954 100%);
  color: #7a5b00;
  border: 1px solid rgba(255, 231, 129, 0.5);
}

.clan-card[data-category="legend"] .badge {
  background: linear-gradient(135deg, #ffd39a 0%, #ffc87d 100%);
  color: #8f4b00;
  border: 1px solid rgba(255, 211, 154, 0.5);
}

.clan-card[data-category="epic"] .badge {
  background: linear-gradient(135deg, #d8f28a 0%, #c9ed74 100%);
  color: #4a6814;
  border: 1px solid rgba(216, 242, 138, 0.5);
}

.clan-card[data-category="below-epic"] .badge {
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  color: #59636b;
  border: 1px solid rgba(89, 99, 107, 0.25);
}

.card-meta {
  color: #5a6b7c;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

.card-desc {
  color: #3a4d5c;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  font-size: 0.9rem;
}

.card-desc.is-clamped::after {
  content: "… 続き";
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 0.8rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--card-desc-fade) 65%);
  font-size: 0.75rem;
  font-weight: 600;
  color: currentColor;
  pointer-events: none;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-tags span {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: rgba(47, 165, 214, 0.08);
  font-size: 0.75rem;
  color: #2a5566;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 500;
  border: 1px solid rgba(47, 165, 214, 0.12);
  transition: all 0.2s ease;
}

.card-tags span:hover {
  background: rgba(47, 165, 214, 0.15);
  border-color: rgba(47, 165, 214, 0.25);
}

.card-tags .card-tags-more {
  background: rgba(47, 165, 214, 0.2);
  color: #1b6f8e;
  font-weight: 600;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: auto;
}

.card-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(29, 139, 176, 0.12);
  color: #0d3343;
  font-weight: 700;
  border: 1px solid rgba(29, 139, 176, 0.3);
  transition: var(--transition);
}

.card-detail:hover {
  color: #0b2a36;
  border-color: rgba(29, 139, 176, 0.55);
  background: rgba(29, 139, 176, 0.2);
  transform: translateY(-1px);
}

.card-link {
  color: #1d8bb0;
  font-weight: 600;
  margin-top: 0.4rem;
}

.card-actions .card-link {
  margin-top: 0;
}

.clan-card.pro .card-link {
  color: #f2ddaa;
}

.recruit {
  padding: 2.2rem 0 3.2rem;
}

.recruit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.recruit-card {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  min-height: 170px;
  box-shadow: 0 12px 24px rgba(23, 60, 86, 0.08);
}

.recruit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.recruit-card p {
  color: var(--fog);
  line-height: 1.6;
}

.scout {
  padding: 2.2rem 0 3.2rem;
}

.scout-card .badge {
  background: rgba(18, 204, 255, 0.18);
  color: #1a7f96;
  border: 1px solid rgba(18, 204, 255, 0.35);
}

.scout-card .clan-logo {
  background: rgba(18, 204, 255, 0.12);
  border: 1px solid rgba(18, 204, 255, 0.25);
  color: #1b6f8e;
}

.scout-empty {
  margin-top: 1.5rem;
  color: var(--fog);
}

.discover-empty {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #dce6f2;
  background: rgba(255, 255, 255, 0.82);
  color: var(--fog);
}

.apply {
  padding: 2.2rem 0 3.2rem;
}

.apply-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.apply-tab {
  border: 1px solid rgba(47, 165, 214, 0.4);
  background: rgba(255, 255, 255, 0.8);
  color: var(--slate);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.apply-tab.is-active {
  background: var(--sea-soft);
  border-color: rgba(47, 165, 214, 0.6);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(47, 165, 214, 0.18);
}

.apply-tab:focus-visible {
  outline: 2px solid rgba(47, 165, 214, 0.6);
  outline-offset: 2px;
}

.edit {
  padding: 0.6rem 0 3.2rem;
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.apply-grid .apply-panel {
  display: none;
}

.apply-grid .apply-panel.is-active {
  display: flex;
}

.apply-grid .form-card {
  width: min(100%, 560px);
}

.form-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stepper-label {
  font-size: 0.8rem;
  color: var(--fog);
  font-weight: 600;
}

.stepper-dots {
  display: flex;
  gap: 0.4rem;
}

.stepper-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(46, 103, 126, 0.25);
}

.stepper-dot.is-active {
  background: var(--sea);
  box-shadow: 0 0 0 4px rgba(47, 165, 214, 0.15);
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.form-step.is-active {
  display: flex;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
}

.form-step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-step-grid .span-full {
  grid-column: 1 / -1;
}

.form-step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.form-step-actions [data-step-prev] {
  margin-right: auto;
}

.form-step-actions .primary,
.form-step-actions .ghost {
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  box-shadow: none;
  transform: none;
}

.form-step-actions .primary:hover,
.form-step-actions .ghost:hover {
  transform: none;
}

.form-step-actions .primary {
  box-shadow: 0 8px 18px rgba(18, 204, 255, 0.22);
}

.form-step-actions .ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(18, 204, 255, 0.28);
}

.edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.edit-form {
  position: relative;
}

.edit-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.edit-lock {
  position: absolute;
  inset: 1.6rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 24, 32, 0.72);
  color: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.edit-form.is-locked .edit-lock {
  opacity: 1;
  pointer-events: auto;
}

.edit-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(47, 165, 214, 0.25);
}

.edit-help {
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 165, 214, 0.08);
  border: 1px dashed rgba(47, 165, 214, 0.25);
}

.edit-link-panel {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 165, 214, 0.08);
  border: 1px dashed rgba(47, 165, 214, 0.3);
}

.edit-link-panel[hidden] {
  display: none;
}

.edit-link-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.edit-link-row input {
  flex: 1;
  min-width: 0;
}

.edit-message.is-error {
  color: #b54a3a;
}

.edit-message.is-success {
  color: #1f6f49;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.member-grid {
  display: grid;
  gap: 0.8rem;
}

.member-label {
  font-weight: 600;
  color: var(--fog);
}

.add-member {
  align-self: flex-start;
  margin-top: 0.4rem;
}

.add-member.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.apply-tier {
  align-self: flex-start;
  margin-top: 0.2rem;
}

.apply-tier.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.apply-tier-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.apply-tier.is-open .apply-tier-icon {
  transform: rotate(180deg);
}

.apply-tier-panel {
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(47, 165, 214, 0.5);
  background: rgba(47, 165, 214, 0.08);
  display: none;
  gap: 0.6rem;
}

.apply-tier-panel.is-open {
  display: grid;
}

.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
}

.member-row label {
  min-width: 0;
}

.member-row select,
.member-row input {
  width: 100%;
}

.remove-member {
  align-self: end;
  padding: 0.45rem 0.9rem;
}

.form-card {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 12px 24px rgba(23, 60, 86, 0.08);
}

.form-card h3 {
  font-size: 1.2rem;
}

.form-note {
  margin-top: -0.4rem;
  font-size: 0.8rem;
  color: var(--fog);
}

.form-card label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--fog);
  font-size: 0.85rem;
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--fog);
  font-size: 0.85rem;
  min-width: 0;
}

.field-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fog);
}

.hint {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(63, 116, 138, 0.8);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.char-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fog);
  white-space: nowrap;
}

.char-count.is-over {
  color: #b42318;
}

.form-error {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b42318;
  min-height: 1em;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(46, 103, 126, 0.2);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
}

.form-card input[readonly] {
  background: rgba(255, 255, 255, 0.72);
  color: rgba(58, 86, 102, 0.8);
}

.form-card select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 8l5 5 5-5' fill='none' stroke='%235e7484' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px;
  padding-right: 2.4rem;
}

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

.form-card select[multiple] {
  appearance: auto;
  min-height: 8rem;
  padding: 0.6rem 0.8rem;
  background-image: none;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.search-field input:focus {
  outline: none;
  border-color: rgba(47, 165, 214, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 165, 214, 0.15);
}

.cta {
  margin-top: 2rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(47, 165, 214, 0.18), rgba(95, 199, 238, 0.2));
  border: 1px solid rgba(47, 165, 214, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta h2 {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.cta p {
  color: var(--fog);
  max-width: 32rem;
}

.site-footer {
  position: relative;
  padding: 2.2rem 6vw 2.4rem;
  color: var(--slate);
  background:
    radial-gradient(circle at 18% 8%, rgba(18, 204, 255, 0.2), transparent 55%),
    radial-gradient(circle at 86% 0%, rgba(90, 255, 227, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 245, 252, 0.9));
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 204, 255, 0.35), transparent);
}

.footer-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 2rem;
  padding: 1.8rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 204, 255, 0.3);
  box-shadow:
    0 20px 44px rgba(31, 89, 120, 0.12),
    0 0 20px rgba(18, 204, 255, 0.18);
}

.footer-brand p {
  margin: 0.6rem 0 0.9rem;
  color: rgba(70, 94, 108, 0.85);
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(18, 204, 255, 0.25);
}

.footer-logo {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(18, 204, 255, 0.18);
  border: 1px solid rgba(18, 204, 255, 0.45);
  color: #156f8a;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(18, 204, 255, 0.22);
}

.footer-sub {
  font-size: 0.85rem;
  color: rgba(78, 102, 116, 0.75);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: rgba(78, 102, 116, 0.7);
}


.status-pill {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 165, 214, 0.16);
  border: 1px solid rgba(47, 165, 214, 0.4);
  color: #1f6e8e;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

.footer-col h4 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: rgba(17, 37, 49, 0.9);
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  padding: 0.2rem 0;
  color: rgba(58, 86, 102, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #0f2733;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(74, 98, 112, 0.85);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  color: rgba(74, 98, 112, 0.7);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: rgba(58, 86, 102, 0.9);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  color: #0f2733;
  border-bottom-color: rgba(47, 165, 214, 0.6);
}

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

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head.stack h2 {
    white-space: normal;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }


  .edit-grid {
    grid-template-columns: 1fr;
  }

  .header-surface {
    justify-items: start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-meta {
    justify-self: start;
  }

  .search-actions {
    justify-content: flex-start;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-surface {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 980px) and (min-width: 901px) {
  .header-surface {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  main {
    padding: 0 4vw 5rem;
    padding-top: 82px;
  }

  .form-card {
    padding: 1.2rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .header-surface {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .nav-links {
    gap: 0.6rem;
  }

  .header-meta {
    flex-wrap: wrap;
  }

  .member-row {
    grid-template-columns: 1fr;
  }

  .remove-member {
    justify-self: flex-start;
  }

  .footer-surface {
    padding: 1.6rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .edit-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .card-top {
    flex-wrap: wrap;
  }

  .card-badges {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .card-title {
    white-space: normal;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .clan-card {
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 0.5rem 1rem;
    aspect-ratio: auto;
  }

  .clan-card .card-top {
    display: contents;
    padding-left: 0;
    min-height: auto;
  }

  .clan-card .card-identity {
    display: contents;
  }

  .clan-card .clan-logo {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 12px;
    font-size: 1.1rem;
    align-self: end;
    overflow: hidden;
    /* 元に戻す場合: grid-row: 1 / 5; align-self: center; */
  }

  .clan-card .card-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem;
    -webkit-line-clamp: 1;
    align-self: end;
    margin-top: 0.5rem;
  }

  .clan-card .card-top .badge,
  .clan-card .card-top .recruit-pill,
  .clan-card .card-top .card-badges {
    grid-column: 2;
    grid-row: 2;
  }

  .clan-card .card-meta,
  .clan-card .card-desc {
    display: none;
  }

  .clan-card .card-tags {
    display: none;
  }

  .card-compact {
    grid-column: 2;
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .card-compact-row {
    background: rgba(47, 165, 214, 0.06);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(47, 165, 214, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .card-compact-row span {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4a7d8f;
    font-weight: 600;
  }

  .card-compact-row strong {
    font-size: 0.7rem;
    color: #0f2733;
    font-weight: 700;
    line-height: 1.25;
  }

  .clan-card .card-actions {
    grid-column: 1;
    grid-row: 4;
    padding: 0.3rem 0 0;
    margin-top: 0;
    justify-self: stretch;
    /* 元に戻す場合: grid-column: 2; */
  }

  .detail-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-logo {
    width: 72px;
    height: 72px;
  }
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  min-width: min(86vw, 360px);
  max-width: 90vw;
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(16, 42, 58, 0.95), rgba(23, 66, 82, 0.92));
  color: #eef7fb;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow:
    0 24px 64px rgba(10, 30, 44, 0.35),
    0 2px 8px rgba(10, 30, 44, 0.18);
  backdrop-filter: blur(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 1500;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pagination {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
}

.page-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.page-status {
  font-weight: 600;
  color: var(--fog);
}

.page-meta {
  color: var(--fog);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

.toast.is-error {
  background: linear-gradient(135deg, rgba(84, 24, 40, 0.96), rgba(117, 34, 57, 0.94));
  border-color: rgba(255, 168, 168, 0.35);
}

.toast.is-success {
  background: linear-gradient(135deg, rgba(16, 63, 72, 0.96), rgba(23, 93, 98, 0.94));
  border-color: rgba(145, 235, 216, 0.35);
}

/* Floating search button for mobile */
.floating-search-btn {
  position: fixed;
  top: 140px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(23, 60, 86, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  color: var(--midnight);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.floating-search-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 32px rgba(23, 60, 86, 0.24);
  transform: scale(1.05);
}

.floating-search-btn:active {
  transform: scale(0.95);
}

.floating-search-btn.is-visible {
  display: flex;
}

@media (max-width: 900px) {
  .floating-search-btn.is-visible {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .floating-search-btn {
    transition: none !important;
  }
}


@media (max-width: 900px) {
  /* Prevent iOS Safari auto-zoom on focus: keep form controls at 16px+ */
  .form-card input,
  .form-card select,
  .form-card textarea {
    font-size: 16px;
  }
}

/* ===== 2026 Mobile-First White Refresh ===== */
:root {
  --ink: #141922;
  --midnight: #141922;
  --slate: #445161;
  --fog: #6f7c8d;
  --mist: #ffffff;
  --accent: #ff7a59;
  --accent-soft: #fff1ec;
  --sea: #17b5c8;
  --sea-soft: #ebfcff;
  --border: #e6ebf2;
  --glass: rgba(255, 255, 255, 0.88);
  --shadow: 0 12px 38px rgba(15, 30, 54, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

body {
  background:
    radial-gradient(1200px 620px at 15% -10%, #fef3ee 0%, rgba(254, 243, 238, 0) 60%),
    radial-gradient(1200px 620px at 95% 0%, #ebfaff 0%, rgba(235, 250, 255, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--ink);
}

.ambient {
  opacity: 0.56;
}

.grid {
  background-image: linear-gradient(transparent 94%, rgba(69, 90, 120, 0.045) 96%),
    linear-gradient(90deg, transparent 94%, rgba(69, 90, 120, 0.045) 96%);
}

.site-header,
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(18, 28, 45, 0.06);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.header-utility,
.header-toggle,
.axis-nav,
.axis-link {
  color: var(--ink);
}

.header-utility {
  background: #fff;
  border-color: var(--border);
}

.axis-nav {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(17, 34, 60, 0.08);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.section-head {
  gap: 0.95rem;
}

.section-sub {
  color: var(--slate);
  font-size: 0.94rem;
}

.eyebrow {
  color: var(--sea);
}

.search-panel,
.form-card,
.clan-card,
.detail-info-card,
.auth-panel {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.search-panel {
  border-radius: var(--radius-lg);
}

.search-toggle {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.search-controls {
  gap: 0.8rem;
}

.search-field input,
.search-field select,
.form-card input,
.form-card select,
.form-card textarea {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
}

.search-field input:focus,
.search-field select:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: #22b7c9;
  box-shadow: 0 0 0 4px rgba(23, 181, 200, 0.12);
}

.chip {
  border-radius: 999px;
  border: 1px solid #dfe7f0;
  background: #fff;
}

.chip.active {
  background: #f2fbfd;
  border-color: #73dce7;
  color: #0b6f7f;
}

.card-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.clan-card {
  border-radius: 18px;
  padding: 0.95rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: riseIn 0.34s ease both;
}

.clan-card::before,
.clan-card::after {
  display: none;
}

.clan-card .card-title,
.card-title {
  color: var(--ink);
  font-weight: 700;
}

.clan-card .card-meta {
  color: #5e6c7e;
}

.clan-card .card-desc {
  color: #6a7688;
}

.clan-card .card-tags span {
  background: #f4f7fb;
  border: 1px solid #e5ebf2;
  color: #435061;
}

.card-actions .card-link,
.primary {
  background: linear-gradient(135deg, #ffd7c8, #ff7a59);
  color: #3a1c13;
  box-shadow: 0 10px 20px rgba(255, 122, 89, 0.24);
}

.card-detail,
.ghost {
  border-color: #d6e0ec;
  background: #fff;
  color: #2e3948;
}

.apply-tabs {
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.apply-tab {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid #dce3ec;
  background: #fff;
  color: #374455;
}

.apply-tab.is-active {
  background: #eefbfe;
  border-color: #7ddbe5;
  color: #0e6a79;
}

.apply-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.toast.is-success {
  background: linear-gradient(135deg, #f2fffb, #d7f8f1);
  color: #135f53;
  border-color: #9de5d8;
}

.toast.is-error {
  background: linear-gradient(135deg, #fff4f1, #ffe4de);
  color: #8f3b2d;
  border-color: #ffc1b5;
}

.floating-search-btn {
  width: 52px;
  height: 52px;
  top: auto;
  bottom: 90px;
  right: 14px;
  border: 1px solid #dce4ee;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2a39;
}

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

@media (min-width: 980px) {
  .discover {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem 1.1rem;
    align-items: start;
  }

  .discover .section-head,
  .discover .discover-empty,
  .discover .pagination {
    grid-column: 1 / -1;
  }

  .discover .search-panel {
    position: sticky;
    top: calc(var(--header-offset, 96px));
    max-height: calc(100vh - var(--header-offset, 96px) - 16px);
    overflow: auto;
  }

  .discover .search-panel .search-close,
  .discover .search-panel .search-toggle {
    display: none !important;
  }

  .discover .search-panel .search-body {
    max-height: none;
    overflow: visible;
    padding-top: 1rem;
  }

  .discover .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apply-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 1240px) {
  .discover .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== 2026 Pop Accent + Header Contrast Fix ===== */
:root {
  --accent: #ff5f8f;
  --accent-soft: #ffeaf1;
  --sea: #00c2d6;
  --sea-soft: #e9fdff;
}

body {
  background:
    radial-gradient(900px 500px at 10% -8%, #fff1f6 0%, rgba(255, 241, 246, 0) 62%),
    radial-gradient(900px 500px at 92% 0%, #eafcff 0%, rgba(234, 252, 255, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.primary,
.card-actions .card-link {
  background: linear-gradient(135deg, #ff7a9f, #ff975c);
  color: #3b1a18;
  box-shadow: 0 12px 24px rgba(255, 112, 134, 0.3);
}

.primary:hover,
.card-actions .card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 112, 134, 0.34);
}

.chip.active,
.apply-tab.is-active {
  background: linear-gradient(135deg, #fff0f6, #eafcff);
  border-color: #8be0ea;
  color: #0e6a79;
}

.card-tags span {
  background: #fff2f7;
  border-color: #ffd6e4;
  color: #83435a;
}

.site-header,
.site-header.is-scrolled {
  color: #1a2330;
}

.brand,
.brand-title,
.brand-title-sub,
.brand-title-main,
.brand-subtitle {
  color: #1a2330;
}

.brand-title-sub {
  color: #657385;
}

.brand-subtitle {
  color: #6f7c8d;
}

.header-utility,
.header-utility.is-help,
.axis-link {
  color: #253144;
}

.header-utility.is-help::before {
  color: #253144;
}

.axis-link {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(33, 61, 88, 0.08);
}

.axis-link:hover,
.axis-link:focus-visible {
  background: linear-gradient(135deg, #fff0f6, #ebfbff);
  border-color: #9adfe8;
  box-shadow: 0 8px 16px rgba(18, 93, 128, 0.12);
}

.axis-link.is-active {
  background: linear-gradient(135deg, #ffdce8, #dff9ff);
  border-color: #7fd8e4;
  color: #0f5462;
}

.header-toggle span {
  background: #243042;
}

/* ===== 2026 Candy Pop Theme ===== */
:root {
  --accent: #ff4f86;
  --accent-soft: #ffe8f1;
  --sea: #00bcd4;
  --sea-soft: #e5fbff;
  --ink: #1f2430;
}

body {
  background:
    radial-gradient(820px 420px at -10% 5%, rgba(255, 114, 156, 0.22), transparent 62%),
    radial-gradient(700px 420px at 105% 8%, rgba(0, 199, 255, 0.2), transparent 58%),
    radial-gradient(900px 480px at 50% 120%, rgba(255, 188, 79, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.grid {
  opacity: 0.72;
}

.search-panel,
.form-card,
.clan-card,
.detail-info-card,
.auth-panel {
  border: 1px solid rgba(225, 171, 198, 0.36);
  box-shadow:
    0 12px 34px rgba(36, 51, 83, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.site-header,
.site-header.is-scrolled {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at 4% 0%, rgba(255, 114, 156, 0.18), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(0, 199, 255, 0.16), transparent 45%);
}

.primary,
.card-actions .card-link {
  background: linear-gradient(135deg, #ff5b91 0%, #ff8b65 52%, #ffc164 100%);
  color: #401f1a;
  border: 1px solid rgba(255, 96, 141, 0.28);
}

.card-detail,
.ghost {
  border: 1px solid #dfd8ff;
  background: linear-gradient(135deg, #ffffff 0%, #f7f4ff 100%);
  color: #393f66;
}

.chip {
  border-color: #f0d5e2;
  background: #fff;
}

.chip.active,
.apply-tab.is-active {
  background: linear-gradient(135deg, #ffeaf2 0%, #eaffff 100%);
  border-color: #9ee3eb;
  color: #0f6471;
}

.apply-tab {
  background: linear-gradient(135deg, #ffffff 0%, #fff4fb 100%);
  border-color: #efdae7;
}

.clan-card:nth-child(4n + 1) {
  background: linear-gradient(180deg, rgba(255, 247, 251, 0.94), rgba(255, 255, 255, 0.9));
}

.clan-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, rgba(241, 252, 255, 0.94), rgba(255, 255, 255, 0.9));
}

.clan-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, rgba(255, 251, 239, 0.94), rgba(255, 255, 255, 0.9));
}

.clan-card:nth-child(4n + 4) {
  background: linear-gradient(180deg, rgba(247, 247, 255, 0.94), rgba(255, 255, 255, 0.9));
}

.card-tags span {
  background: linear-gradient(135deg, #fff4f8 0%, #eefcff 100%);
  border-color: #f5d7e6;
  color: #74415a;
}

.badge,
.recruit-pill {
  border-radius: 999px;
}

.floating-search-btn {
  background: linear-gradient(135deg, rgba(255, 248, 251, 0.97), rgba(239, 252, 255, 0.94));
  border-color: #f0d5e5;
}

/* ===== 2026 Hyper Pop Boost ===== */
:root {
  --accent: #ff3f7f;
  --sea: #00d5ff;
}

body {
  background:
    radial-gradient(860px 460px at -8% -4%, rgba(255, 60, 132, 0.32), transparent 60%),
    radial-gradient(760px 420px at 108% 0%, rgba(0, 213, 255, 0.3), transparent 58%),
    radial-gradient(920px 500px at 46% 118%, rgba(255, 182, 47, 0.24), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.orb-one {
  background: radial-gradient(circle, rgba(255, 64, 143, 0.48), rgba(255, 64, 143, 0));
}

.orb-two {
  background: radial-gradient(circle, rgba(0, 213, 255, 0.42), rgba(0, 213, 255, 0));
}

.orb-three {
  background: radial-gradient(circle, rgba(255, 189, 79, 0.3), rgba(255, 189, 79, 0));
}

.site-header,
.site-header.is-scrolled {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 0% 0%, rgba(255, 60, 132, 0.2), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(0, 213, 255, 0.18), transparent 40%);
}

.primary,
.card-actions .card-link {
  background: linear-gradient(130deg, #ff3f7f 0%, #ff6f50 38%, #ffb347 68%, #00cfff 100%);
  color: #35120f;
  border: 1px solid rgba(255, 90, 130, 0.34);
  box-shadow:
    0 14px 30px rgba(255, 75, 130, 0.32),
    0 2px 0 rgba(255, 255, 255, 0.45) inset;
}

.primary:hover,
.card-actions .card-link:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(255, 75, 130, 0.38);
}

.card-detail,
.ghost {
  background: linear-gradient(130deg, #ffffff 0%, #f8f1ff 45%, #eefcff 100%);
  border: 1px solid #e4d9ff;
  color: #343d73;
}

.search-panel,
.form-card,
.clan-card,
.detail-info-card,
.auth-panel {
  border: 1px solid rgba(238, 150, 192, 0.42);
  box-shadow:
    0 16px 38px rgba(33, 53, 92, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset;
}

.clan-card {
  transform-origin: center;
}

.clan-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
}

.clan-card:nth-child(4n + 1) {
  background: linear-gradient(160deg, rgba(255, 236, 246, 0.98), rgba(255, 255, 255, 0.92));
}

.clan-card:nth-child(4n + 2) {
  background: linear-gradient(160deg, rgba(232, 252, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.clan-card:nth-child(4n + 3) {
  background: linear-gradient(160deg, rgba(255, 246, 225, 0.98), rgba(255, 255, 255, 0.92));
}

.clan-card:nth-child(4n + 4) {
  background: linear-gradient(160deg, rgba(241, 238, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.chip.active,
.apply-tab.is-active {
  background: linear-gradient(130deg, #ffe5f0 0%, #e9fcff 52%, #fff4dc 100%);
  border-color: #7be0ea;
  color: #0a5f6c;
}

.card-tags span {
  background: linear-gradient(130deg, #ffe8f2, #ecfbff);
  border-color: #f5cce0;
  color: #7d3356;
}

.floating-search-btn {
  background: linear-gradient(140deg, #fff2f8 0%, #edfaff 60%, #fff7e8 100%);
  border-color: #efcfe0;
  box-shadow: 0 12px 26px rgba(255, 86, 142, 0.22);
}

/* ===== 2026 Vivid Triad Focus ===== */
:root {
  --accent: #ff2d55;
  --sea: #00cfff;
}

body {
  background:
    radial-gradient(760px 340px at -8% -6%, rgba(255, 45, 85, 0.12), transparent 64%),
    radial-gradient(760px 340px at 106% 0%, rgba(0, 207, 255, 0.11), transparent 62%),
    radial-gradient(860px 380px at 50% 114%, rgba(255, 196, 0, 0.1), transparent 64%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.site-header,
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid #e6eaf2;
}

.eyebrow {
  color: var(--sea);
}

.primary,
.card-actions .card-link {
  background: linear-gradient(135deg, #ff2d55 0%, #ff6a00 52%, #ffc400 100%);
  color: #32140d;
  border: 1px solid rgba(255, 45, 85, 0.34);
  box-shadow: 0 14px 28px rgba(255, 45, 85, 0.3);
}

.card-detail,
.ghost {
  border: 1px solid #dbe2f0;
  background: #fff;
  color: #273247;
}

.badge,
.recruit-pill,
.scout-pill {
  background: #fff;
  border: 1px solid #e1e7f2;
  color: #2b374b;
}

.clan-card[data-category="pro"] .badge,
.clan-card[data-category="tournament"] .badge {
  background: linear-gradient(135deg, #ff2d55 0%, #00cfff 100%);
  color: #fff;
  border-color: transparent;
}

.chip.active,
.apply-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.12), rgba(0, 207, 255, 0.14));
  border-color: #79dbec;
  color: #0e6170;
}

.card-tags span {
  background: #fff;
  border: 1px solid #ffd3de;
  color: #9d2444;
}

.clan-card:nth-child(4n + 1) {
  background: linear-gradient(180deg, rgba(255, 241, 246, 0.94), rgba(255, 255, 255, 0.92));
}

.clan-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, rgba(238, 251, 255, 0.94), rgba(255, 255, 255, 0.92));
}

.clan-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, rgba(255, 249, 229, 0.94), rgba(255, 255, 255, 0.92));
}

.clan-card:nth-child(4n + 4) {
  background: linear-gradient(180deg, rgba(246, 242, 255, 0.94), rgba(255, 255, 255, 0.92));
}

.axis-link.is-active {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.15), rgba(0, 207, 255, 0.16));
  border-color: #7ddae9;
  color: #0c5c69;
}

.floating-search-btn {
  background: linear-gradient(140deg, #fff1f6 0%, #ecf9ff 58%, #fff8e8 100%);
  border: 1px solid #ecd5de;
}

/* ===== 2026 Primary Pop (Coffee-Fes inspired) ===== */
:root {
  --accent: #e6002d;
  --sea: #0066ff;
  --ink: #111111;
  --slate: #2d2d2d;
  --fog: #5a5a5a;
}

body {
  background:
    linear-gradient(150deg, rgba(230, 0, 45, 0.1) 0 18%, transparent 18% 100%),
    linear-gradient(330deg, rgba(0, 102, 255, 0.1) 0 16%, transparent 16% 100%),
    linear-gradient(15deg, rgba(255, 214, 0, 0.12) 0 14%, transparent 14% 100%),
    #ffffff;
}

.ambient,
.orb,
.grid {
  display: none;
}

.site-header,
.site-header.is-scrolled {
  background: #ffffff;
  border-bottom: 2px solid #111111;
  box-shadow: 0 4px 0 rgba(17, 17, 17, 0.08);
}

.brand,
.brand-title,
.brand-title-sub,
.brand-title-main,
.brand-subtitle,
.header-utility,
.axis-link {
  color: #111111;
}

.header-utility,
.header-toggle,
.axis-link,
.ghost,
.card-detail {
  border: 2px solid #111111;
  background: #ffffff;
  box-shadow: none;
}

.header-toggle span {
  background: #111111;
}

.axis-link.is-active {
  background: #ffd600;
  border-color: #111111;
  color: #111111;
}

.eyebrow {
  color: var(--sea);
}

.search-panel,
.form-card,
.clan-card,
.detail-info-card,
.auth-panel {
  background: #ffffff;
  border: 2px solid #111111;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.08);
}

.primary,
.card-actions .card-link {
  background: #e6002d;
  color: #ffffff;
  border: 2px solid #111111;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.2);
}

.primary:hover,
.card-actions .card-link:hover {
  background: #0066ff;
  transform: translateY(-1px);
}

.apply-tab,
.chip {
  border: 2px solid #111111;
  background: #ffffff;
  color: #111111;
}

.apply-tab.is-active,
.chip.active {
  background: #ffd600;
  color: #111111;
  border-color: #111111;
}

.card-tags span {
  background: #ffffff;
  border: 2px solid #111111;
  color: #111111;
}

.badge,
.recruit-pill,
.scout-pill {
  background: #0066ff;
  color: #ffffff;
  border: 2px solid #111111;
}

.clan-card[data-category="pro"] .badge,
.clan-card[data-category="tournament"] .badge {
  background: #e6002d;
}

.floating-search-btn {
  background: #ffd600;
  color: #111111;
  border: 2px solid #111111;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.18);
}

.toast {
  border: 2px solid #111111;
  background: #ffffff;
  color: #111111;
}

.toast.is-success {
  background: #e9fff1;
  border-color: #111111;
  color: #111111;
}

.toast.is-error {
  background: #ffe9ee;
  border-color: #111111;
  color: #111111;
}

/* ===== 2026 Pure RGB Pop ===== */
:root {
  --accent: #ff1a1a;
  --sea: #0057ff;
}

body {
  background:
    linear-gradient(145deg, rgba(255, 26, 26, 0.11) 0 16%, transparent 16% 100%),
    linear-gradient(325deg, rgba(0, 87, 255, 0.11) 0 14%, transparent 14% 100%),
    linear-gradient(20deg, rgba(255, 214, 0, 0.13) 0 13%, transparent 13% 100%),
    #ffffff;
}

.eyebrow {
  color: var(--sea);
}

.site-header,
.site-header.is-scrolled {
  background: #ffffff;
  border-bottom: 2px solid #111111;
}

.primary,
.card-actions .card-link {
  background: #ff1a1a;
  color: #ffffff;
  border: 2px solid #111111;
}

.primary:hover,
.card-actions .card-link:hover {
  background: #0057ff;
}

.apply-tab.is-active,
.chip.active,
.axis-link.is-active {
  background: #ffd600;
  color: #111111;
  border-color: #111111;
}

.badge,
.recruit-pill,
.scout-pill {
  background: #0057ff;
  color: #ffffff;
  border: 2px solid #111111;
}

.clan-card[data-category="pro"] .badge,
.clan-card[data-category="tournament"] .badge {
  background: #ff1a1a;
}

.card-tags span {
  background: #ffffff;
  color: #111111;
  border: 2px solid #111111;
}

.clan-card:nth-child(4n + 1) {
  background: linear-gradient(180deg, rgba(255, 242, 242, 0.96), rgba(255, 255, 255, 0.92));
}

.clan-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.clan-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, rgba(255, 252, 232, 0.96), rgba(255, 255, 255, 0.92));
}

.clan-card:nth-child(4n + 4) {
  background: #ffffff;
}

.floating-search-btn {
  background: #ffd600;
  color: #111111;
  border: 2px solid #111111;
}

/* ===== 2026 RGB Site / Neutral Cards ===== */
.search-panel,
.form-card,
.clan-card,
.detail-info-card,
.auth-panel {
  background: #ffffff;
  border-color: #e6ebf2;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.clan-card {
  background: #ffffff;
}

.clan-card:nth-child(4n + 1),
.clan-card:nth-child(4n + 2),
.clan-card:nth-child(4n + 3),
.clan-card:nth-child(4n + 4) {
  background: #ffffff;
}

.card-tags span,
.badge,
.recruit-pill,
.scout-pill {
  border-width: 1px;
  border-color: #dfe6ef;
}

/* Keep category color-coding only on badges/pills */
.clan-card[data-category="pro"] .badge {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.clan-card[data-category="tournament"] .badge {
  background: #1f2937;
  color: #ffffff;
  border-color: #1f2937;
}

.clan-card[data-category="i-mythic"] .badge,
.clan-card[data-category="g-mythic"] .badge,
.clan-card[data-category="h-mythic"] .badge,
.clan-card[data-category="mythic"] .badge,
.clan-card[data-category="legend"] .badge,
.clan-card[data-category="epic"] .badge,
.clan-card[data-category="below-epic"] .badge {
  background: #f2f4f8;
  color: #253144;
  border-color: #e1e7f0;
}

/* ===== 2026 RGB Site / Neutral Cards v2 ===== */
body {
  background:
    linear-gradient(145deg, rgba(0, 87, 255, 0.12) 0 16%, transparent 16% 100%),
    linear-gradient(325deg, rgba(230, 0, 45, 0.1) 0 14%, transparent 14% 100%),
    linear-gradient(20deg, rgba(255, 214, 0, 0.12) 0 13%, transparent 13% 100%),
    #ffffff;
}

/* Force cards/tags/badges neutral until category coloring is defined */
.clan-card,
.clan-card:nth-child(4n + 1),
.clan-card:nth-child(4n + 2),
.clan-card:nth-child(4n + 3),
.clan-card:nth-child(4n + 4),
.card-tags span,
.badge,
.recruit-pill,
.scout-pill {
  background: #ffffff;
  color: #111111;
  border: 1px solid #e1e7f0;
}

/* ===== 2026 RGB Site / Footer Reset ===== */
body {
  background:
    linear-gradient(145deg, rgba(0, 87, 255, 0.2) 0 18%, transparent 18% 100%),
    linear-gradient(325deg, rgba(230, 0, 45, 0.16) 0 16%, transparent 16% 100%),
    linear-gradient(20deg, rgba(255, 214, 0, 0.16) 0 14%, transparent 14% 100%),
    #ffffff;
}

.site-footer {
  background: #ffffff;
  color: #111111;
  border-top: 2px solid #111111;
}

.site-footer::before {
  background: #111111;
}

.footer-surface {
  background: #ffffff;
  border: 2px solid #111111;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.08);
}

.footer-mark,
.footer-sub,
.footer-meta,
.footer-col h4,
.footer-col a,
.footer-list,
.footer-bottom,
.footer-links a,
.footer-brand p {
  color: #111111;
}

.footer-col a:hover,
.footer-links a:hover {
  color: #0066ff;
}

.footer-logo,
.status-pill {
  background: #ffd600;
  border: 2px solid #111111;
  color: #111111;
  box-shadow: none;
}

/* ===== 2026 CTA Blue + Scout Mobile Grid ===== */
.form-step-actions .primary,
.form-card button.primary,
.form-card .primary {
  background: #0057ff;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.18);
}

.form-step-actions .primary:hover,
.form-card button.primary:hover,
.form-card .primary:hover {
  background: #003fd1;
}

@media (min-width: 980px) {
  .scout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem 1.1rem;
    align-items: start;
  }

  .scout .section-head,
  .scout .scout-empty {
    grid-column: 1 / -1;
  }

  .scout .search-panel {
    position: sticky;
    top: calc(var(--header-offset, 96px));
    max-height: calc(100vh - var(--header-offset, 96px) - 16px);
    overflow: auto;
  }

  .scout .search-panel .search-close,
  .scout .search-panel .search-toggle {
    display: none !important;
  }

  .scout .search-panel .search-body {
    max-height: none;
    overflow: visible;
    padding-top: 1rem;
  }

  .scout .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) {
  .scout .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== 2026 Discord Login Button ===== */
button[data-auth-login="discord"] {
  background: #5865f2;
  color: #ffffff;
  border: 2px solid #111111;
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.16);
}

button[data-auth-login="discord"]:hover {
  background: #4652d6;
}

button[data-auth-login="discord"].is-logged-in {
  background: #ffffff;
  color: #5865f2;
  border-color: #5865f2;
  box-shadow: none;
}

/* ===== 2026 Prevent Mobile Auto-Zoom ===== */
input,
select,
textarea {
  font-size: 16px;
}

/* ===== 2026 Brand Logo ===== */
.brand {
  gap: 0.8rem;
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .brand-logo {
    height: 34px;
  }
}

/* NOTE: header/mobile sizing rules are centralized in the Step 1-5 blocks near file end. */

/* ===== 2026 Card Base: White + Black ===== */
.clan-card,
.scout-card {
  background: #ffffff !important;
  border: 1px solid #d9e0ea !important;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08) !important;
}

.clan-card .card-title,
.scout-card .card-title,
.clan-card .card-meta,
.scout-card .card-meta,
.clan-card .card-desc,
.scout-card .card-desc,
.clan-card .card-detail,
.scout-card .card-detail,
.clan-card .card-link,
.scout-card .card-link {
  color: #111111 !important;
}

.clan-card .card-tags span,
.scout-card .card-tags span {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #d9e0ea !important;
}

.clan-card .badge,
.scout-card .badge,
.clan-card .recruit-pill,
.scout-card .recruit-pill,
.clan-card .scout-pill,
.scout-card .scout-pill {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #d9e0ea !important;
}

/* ===== 2026 Intro Text Size ===== */
.card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ===== 2026 Intro Text Size Fine Tune ===== */
.card-desc {
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ===== 2026 Recruit Status Ribbon ===== */
.clan-card {
  position: relative;
  overflow: hidden;
}

.clan-card .recruit-pill,
.clan-card .scout-pill {
  position: absolute !important;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.32rem 0.72rem 0.34rem;
  border-radius: 12px 0 0 0;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  z-index: 3;
}

/* 募集中 */
.clan-card .recruit-pill {
  background: #12a150 !important;
}

/* 募集停止 */
.clan-card .recruit-pill.is-closed {
  background: #d92d20 !important;
}

/* スカウトのみ */
.clan-card .scout-pill,
.clan-card .recruit-pill.scout-pill {
  background: #111111 !important;
}

/* ===== 2026 Detail Button Refresh ===== */
.card-actions .card-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #cdd7e5;
  background: linear-gradient(180deg, #ffffff, #f5f8fc);
  color: #1f2a3a !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-actions .card-detail::after {
  content: "\2192";
  font-size: 0.8rem;
  line-height: 1;
}

.card-actions .card-detail:hover {
  transform: translateY(-1px);
  border-color: #9fb5d0;
  box-shadow: 0 6px 14px rgba(28, 49, 79, 0.12);
}

/* ===== 2026 Card Meta/Tag/Intro Refresh ===== */
.clan-card,
.scout-card {
  gap: 0.52rem;
}

.clan-card .card-top,
.scout-card .card-top {
  gap: 0.32rem;
}

.clan-card .badge,
.scout-card .badge {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #cfd9e6;
  background: #f6f8fb;
  color: #202938;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
}

.clan-card .card-tags,
.scout-card .card-tags {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.06rem;
}

.clan-card .card-tags span,
.scout-card .card-tags span {
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #d8e1ed;
  background: #ffffff;
  color: #1e2735;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.15;
}

.clan-card .card-desc,
.scout-card .card-desc {
  order: 3;
  margin-top: 0.08rem;
  padding: 0.46rem 0.55rem;
  border-radius: 10px;
  border: 1px solid #e4ebf4;
  background: #fafbfd;
  color: #1e2735;
  font-size: 0.74rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.clan-card .card-actions,
.scout-card .card-actions {
  order: 4;
}

/* ===== 2026 Card Stable Spacing ===== */
.clan-card .card-top,
.scout-card .card-top,
.clan-card .card-tags,
.scout-card .card-tags,
.clan-card .card-desc,
.scout-card .card-desc,
.clan-card .card-actions,
.scout-card .card-actions {
  padding-left: calc(50% + 0.5rem);
}

.clan-card .card-tags,
.scout-card .card-tags {
  min-height: 2.05rem;
  align-items: center;
}

.clan-card .card-tags:empty::before,
.scout-card .card-tags:empty::before {
  content: "";
  display: block;
  height: 1.2rem;
}

.clan-card .card-desc,
.scout-card .card-desc {
  min-height: 3.3rem;
}

.clan-card .card-actions,
.scout-card .card-actions {
  min-height: 2.2rem;
  align-items: center;
}

/* ===== 2026 Card Layout Polish ===== */
.clan-card .card-top,
.scout-card .card-top {
  padding-top: 0.28rem;
}

.clan-card .card-title,
.scout-card .card-title {
  margin-top: 0.14rem;
}

.clan-card .card-desc,
.scout-card .card-desc {
  text-align: left !important;
}

.clan-card .card-actions,
.scout-card .card-actions {
  justify-content: flex-start !important;
  padding-right: 5.3rem;
}

.clan-card .card-actions .card-detail,
.scout-card .card-actions .card-detail {
  margin-right: auto;
}

/* ===== 2026 Card Action/Intro Hotfix ===== */
.clan-card .card-actions .card-detail,
.scout-card .card-actions .card-detail {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.clan-card .card-actions,
.scout-card .card-actions {
  justify-content: flex-start !important;
}

.clan-card .card-desc,
.scout-card .card-desc {
  text-align: left !important;
}

@media (max-width: 900px) {
  .clan-card .card-actions,
  .scout-card .card-actions {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ===== 2026 PC Card/Button Alignment Fix ===== */
.clan-card .card-actions,
.scout-card .card-actions {
  padding-left: 1rem !important;
  padding-right: 5.3rem !important;
}

.clan-card .card-actions .card-detail,
.scout-card .card-actions .card-detail {
  align-self: flex-start;
}

/* ===== 2026 Intro Message Field Fix ===== */
.form-card textarea,
textarea[name="description"],
textarea[name="message"],
textarea[name="intro"] {
  text-align: left !important;
}

@media (max-width: 900px) {
  .clan-card .card-actions,
  .scout-card .card-actions {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ===== 2026 Desktop Fine Tune (Button + Intro Box) ===== */
@media (min-width: 901px) {
  .clan-card .card-actions,
  .scout-card .card-actions {
    padding-left: 0.35rem !important;
    padding-right: 5.3rem !important;
  }

  .clan-card .card-actions .card-detail,
  .scout-card .card-actions .card-detail {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .clan-card .card-desc,
  .scout-card .card-desc {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    text-align: left !important;
  }

  .form-card textarea {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
}

/* ===== 2026 Tag Packing: up to 3 per row ===== */
.clan-card .card-tags,
.scout-card .card-tags {
  justify-content: flex-start;
  align-content: flex-start;
  gap: 0.28rem;
}

.clan-card .card-tags span,
.scout-card .card-tags span {
  flex: 0 1 calc((100% - 0.56rem) / 3);
  max-width: calc((100% - 0.56rem) / 3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 2026 Tag Position: start under icon ===== */
@media (min-width: 901px) {
  .clan-card .card-tags,
  .scout-card .card-tags {
    padding-left: 0.35rem !important;
    margin-top: -0.05rem;
  }
}

/* ===== 2026 Tag Overlap/Truncate Fix (Desktop) ===== */
@media (min-width: 901px) {
  .clan-card .card-tags,
  .scout-card .card-tags {
    margin-top: 0.74rem !important;
  }

  .clan-card .card-tags span,
  .scout-card .card-tags span {
    flex: 0 1 auto !important;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

/* ===== 2026 Scout Rank Ribbon ===== */
.scout-card .scout-rank-pill {
  background: #0057ff !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  max-width: 58%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 2026 Scout Card Collision Fix ===== */
.scout-card .badge {
  display: none !important;
}

.scout-card .card-tags {
  min-height: 0 !important;
  align-items: flex-start !important;
  margin-bottom: 0.32rem;
}

.scout-card .card-desc {
  min-height: 2.4rem !important;
  padding-top: 0.36rem !important;
  padding-bottom: 0.36rem !important;
}

.scout-card .scout-rank-pill {
  max-width: 46% !important;
  font-size: 0.62rem !important;
  padding: 0.26rem 0.5rem 0.28rem !important;
}

@media (max-width: 900px) {
  .scout-card .scout-rank-pill {
    max-width: 52% !important;
    font-size: 0.64rem !important;
  }
}

/* ===== 2026 Scout Ribbon/Desc Consistency Tweak ===== */
.scout-card .scout-rank-pill {
  max-width: 54% !important;
}

.scout-card .card-tags {
  min-height: 4.1rem !important;
}

/* ===== 2026 Scout Vertical Balance Fine Tune ===== */
.scout-card .card-tags {
  min-height: 3.2rem !important;
}

/* ===== 2026 Scout Desc Micro Lift ===== */
.scout-card .card-desc {
  margin-top: 0 !important;
}

.scout-card .card-actions {
  margin-top: 0.12rem !important;
}

/* ===== 2026 Mobile Scout Card Layout Fix ===== */
@media (max-width: 640px) {
  .scout-card {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none !important;
    gap: 0.5rem;
    padding: 0.9rem !important;
  }

  .scout-card .card-top {
    display: block !important;
    padding-left: 0 !important;
    min-height: auto !important;
  }

  .scout-card .card-identity {
    display: grid !important;
    grid-template-columns: 108px 1fr;
    gap: 0.6rem;
    align-items: start;
  }

  .scout-card .clan-logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1;
    grid-row: 1;
    width: 108px !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
  }

  .scout-card .card-title {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0.12rem !important;
    font-size: 1.02rem;
    -webkit-line-clamp: 2;
    min-height: auto;
  }

  .scout-card .card-meta,
  .scout-card .card-desc {
    display: block !important;
  }

  .scout-card .card-tags {
    display: flex !important;
    flex-wrap: wrap;
    padding-left: 0 !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.2rem !important;
    min-height: 0 !important;
  }

  .scout-card .card-tags span {
    flex: 0 1 auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.7rem;
  }

  .scout-card .card-desc {
    min-height: 2.15rem !important;
    margin-top: 0 !important;
  }

  .scout-card .card-actions {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0.08rem !important;
  }

  .scout-card .scout-rank-pill {
    max-width: 54% !important;
    font-size: 0.58rem !important;
    padding: 0.24rem 0.44rem 0.26rem !important;
  }
}

/* ===== 2026 Mobile Scout Card: match Clan Card layout ===== */
@media (max-width: 640px) {
  .scout-card {
    padding: 1.2rem !important;
    display: grid !important;
    grid-template-columns: 35% 1fr !important;
    gap: 0.5rem 1rem !important;
    aspect-ratio: auto !important;
  }

  .scout-card .card-top {
    display: contents !important;
    padding-left: 0 !important;
    min-height: auto !important;
  }

  .scout-card .card-identity {
    display: contents !important;
  }

  .scout-card .clan-logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    border-radius: 12px;
    align-self: end;
    overflow: hidden;
  }

  .scout-card .card-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem !important;
    -webkit-line-clamp: 1;
    min-height: auto !important;
    align-self: end;
    margin-top: 0.5rem !important;
  }

  .scout-card .card-meta {
    display: none !important;
  }

  .scout-card .card-tags {
    grid-column: 2;
    grid-row: 2;
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  .scout-card .card-tags span {
    font-size: 0.62rem !important;
    padding: 0.18rem 0.42rem !important;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .scout-card .card-desc {
    grid-column: 2;
    grid-row: 3;
    min-height: 0 !important;
    margin-top: 0 !important;
    padding: 0.35rem 0.45rem !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2;
  }

  .scout-card .card-actions {
    grid-column: 1;
    grid-row: 4;
    padding: 0.3rem 0 0 !important;
    margin-top: 0 !important;
    justify-self: stretch;
  }

  .scout-card .card-detail {
    min-height: 30px;
    padding: 0.3rem 0.62rem !important;
    font-size: 0.68rem !important;
  }

  .scout-card .scout-rank-pill {
    max-width: 48% !important;
    font-size: 0.55rem !important;
    padding: 0.22rem 0.4rem 0.24rem !important;
  }
}

/* ===== 2026 Mobile Scout CTA/Ribbon Size Up ===== */
@media (max-width: 640px) {
  .scout-card .card-detail {
    min-height: 32px;
    padding: 0.34rem 0.72rem !important;
    font-size: 0.72rem !important;
  }

  .scout-card .scout-rank-pill {
    max-width: 56% !important;
    font-size: 0.6rem !important;
    padding: 0.26rem 0.48rem 0.28rem !important;
  }
}

/* ===== 2026 Rank Color Mapping (Category Badge + Highest Rank Ribbon) ===== */
.clan-card .badge,
.scout-card .scout-rank-pill {
  color: #ffffff !important;
}

.clan-card[data-category="below-epic"] .badge,
.scout-card[data-rank="below-epic"] .scout-rank-pill {
  background: #aeb4bf !important;
}

.clan-card[data-category="epic"] .badge,
.scout-card[data-rank="epic"] .scout-rank-pill {
  background: #8fcf35 !important;
}

.clan-card[data-category="legend"] .badge,
.scout-card[data-rank="legend"] .scout-rank-pill {
  background: #ff8a00 !important;
}

.clan-card[data-category="h-mythic"] .badge,
.scout-card[data-rank="h-mythic"] .scout-rank-pill {
  background: #42bfff !important;
}

.clan-card[data-category="mythic"] .badge,
.scout-card[data-rank="mythic"] .scout-rank-pill {
  background: #1f8cff !important;
}

.clan-card[data-category="g-mythic"] .badge,
.scout-card[data-rank="g-mythic"] .scout-rank-pill {
  background: #7b49ff !important;
}

.clan-card[data-category="i-mythic"] .badge,
.scout-card[data-rank="i-mythic"] .scout-rank-pill {
  background: #c8a128 !important;
}

.clan-card[data-category="tournament"] .badge {
  background: #e53935 !important;
}

.clan-card[data-category="pro"] .badge {
  background: #111111 !important;
}

/* ===== 2026 Mobile Clan Title Vertical Nudge ===== */
@media (max-width: 640px) {
  .clan-card .card-title {
    margin-top: 0.72rem !important;
  }
}

/* ===== 2026 Mobile Clan Title Lower Position (Strong Override) ===== */
@media (max-width: 640px) {
  .clan-card .card-title {
    align-self: start !important;
    margin-top: 0.98rem !important;
  }
}

/* ===== 2026 Mobile Clan Title Position Hard Fix ===== */
@media (max-width: 640px) {
  .clan-card .card-title {
    position: relative !important;
    top: 0.86rem !important;
    margin-top: 0.5rem !important;
  }
}

/* ===== 2026 Mobile Clan Tags Placement Fix ===== */
@media (max-width: 640px) {
  .clan-card .card-actions {
    grid-column: 1;
    grid-row: 4;
    padding-top: 0 !important;
    margin-top: 0 !important;
    align-self: center;
  }

  .clan-card .card-tags {
    display: flex !important;
    grid-column: 2;
    grid-row: 4;
    padding-left: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    gap: 0.22rem;
    align-items: center;
    justify-content: flex-start;
    align-content: center;
  }

  .clan-card .card-tags span {
    flex: 0 1 auto !important;
    max-width: 4.4rem;
    font-size: 0.62rem !important;
    padding: 0.16rem 0.4rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .clan-card .card-tags span:nth-child(n + 4) {
    display: none !important;
  }
}

/* ===== 2026 Mobile Clan Tags: show 2 + count ===== */
@media (max-width: 640px) {
  .clan-card .card-tags span[hidden] {
    display: none !important;
  }

  .clan-card .card-tags span.card-tags-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    max-width: none;
    padding: 0.16rem 0.42rem !important;
  }
}

/* ===== 2026 Mobile Text Overflow Guard ===== */
@media (max-width: 640px) {
  .clan-card:not(.scout-card) .card-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    max-width: 100%;
  }

  .clan-card:not(.scout-card) .card-compact-row strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scout-card .card-title {
    position: relative !important;
    top: 0 !important;
    margin-top: 0.06rem !important;
    align-self: start !important;
  }
}

@media (max-width: 900px) {
  .section-sub {
    font-size: 0.88rem;
  }
}

/* Header/Menu border reset: remove thick black outlines */
.site-header,
.site-header.is-scrolled {
  border-bottom: 1px solid var(--border) !important;
}

.header-toggle,
.header-utility,
.header-utility.is-help,
.axis-nav {
  border: 1px solid var(--border) !important;
}

/* Hamburger icon only: no surrounding frame */
.header-toggle {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Usage page refresh */
.usage-hero {
  padding: 2.1rem 0 1.4rem;
}

.usage-hero-grid {
  gap: 1.4rem;
  align-items: start;
}

.usage-hero-copy h1 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1.2;
}

.usage-hero-copy .lead {
  margin: 0.8rem 0 1.2rem;
}

.usage-hero-panel {
  padding: 1.2rem;
  gap: 0.9rem;
}

.usage-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.usage-checklist {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.usage-checklist li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--slate);
  font-size: 0.9rem;
}

.usage-checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.46rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--sea);
}

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

.usage-route-card {
  display: grid;
  gap: 0.8rem;
}

.usage-route-card .usage-links {
  margin-top: 0.2rem;
}

.usage-faq {
  padding: 0.8rem 0 3rem;
}

.usage-faq-list {
  display: grid;
  gap: 0.75rem;
}

.usage-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 0.95rem;
}

.usage-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.usage-faq-item p {
  margin-top: 0.6rem;
  color: var(--fog);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .usage-hero {
    padding: 1.4rem 0 0.9rem;
  }

  .usage-hero-grid,
  .usage-route-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .usage-hero-panel {
    padding: 1rem;
  }

  .usage-faq {
    padding-top: 0.4rem;
  }
}

/* ===== 2026 Mobile Clan Long Text Hard Fix ===== */
@media (max-width: 640px) {
  .clan-card:not(.scout-card) {
    overflow: hidden;
  }

  .clan-card:not(.scout-card) .card-title {
    justify-self: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }

  .clan-card:not(.scout-card) .card-compact {
    min-width: 0;
  }

  .clan-card:not(.scout-card) .card-compact-row {
    min-width: 0;
  }

  .clan-card:not(.scout-card) .card-compact-row strong {
    min-width: 0;
    width: 100%;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* ===== 2026 Desktop Clan Card Layout: Mobile-style + 2 columns ===== */
@media (min-width: 901px) {
  .card-grid:not([data-scout-list]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) {
    padding: 1.2rem !important;
    display: grid !important;
    grid-template-columns: 35% 1fr !important;
    gap: 0.5rem 1rem !important;
    aspect-ratio: auto !important;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-top {
    display: contents !important;
    padding-left: 0 !important;
    min-height: auto !important;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-identity {
    display: contents !important;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .clan-logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    border-radius: 12px;
    align-self: end;
    overflow: hidden;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem !important;
    -webkit-line-clamp: 1;
    min-height: auto !important;
    align-self: end;
    margin-top: 0.5rem !important;
    position: static !important;
    top: auto !important;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-top .badge,
  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-top .recruit-pill,
  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-top .card-badges {
    grid-column: 2;
    grid-row: 2;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-meta,
  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-desc {
    display: none !important;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-compact {
    display: grid !important;
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    min-width: 0;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-tags {
    display: flex !important;
    grid-column: 2;
    grid-row: 4;
    padding-left: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    gap: 0.24rem;
    align-items: center;
    justify-content: flex-start;
    align-content: center;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-tags span {
    flex: 0 1 auto !important;
    max-width: 5rem;
    font-size: 0.66rem !important;
    padding: 0.18rem 0.44rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-tags span:nth-child(n + 4) {
    display: none !important;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-actions {
    grid-column: 1;
    grid-row: 4;
    padding: 0 !important;
    margin-top: 0 !important;
    justify-self: stretch;
    align-self: center;
  }
}

/* ===== 2026 Desktop Clan Tags: show 2 + count ===== */
@media (min-width: 901px) {
  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-tags span:nth-child(n + 4):not(.card-tags-more) {
    display: none !important;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-tags span.card-tags-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    max-width: none;
    padding: 0.18rem 0.44rem !important;
  }
}

/* ===== 2026 Compact Info Spacing + Name Overflow Fix ===== */
.clan-card:not(.scout-card) .card-compact-row {
  justify-content: flex-start !important;
  gap: 0.28rem;
}

.clan-card:not(.scout-card) .card-compact-row span {
  flex: 0 0 auto;
}

.clan-card:not(.scout-card) .card-compact-row strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* ===== 2026 Desktop Compact Row Overflow Hard Fix ===== */
@media (min-width: 901px) {
  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-compact-row {
    min-width: 0;
    width: 100%;
  }

  .card-grid:not([data-scout-list]) .clan-card:not(.scout-card) .card-compact-row strong {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* ===== 2026 Mobile Scout Card Align with Clan Card ===== */
@media (max-width: 640px) {
  .scout-card {
    padding: 1.2rem !important;
    display: grid !important;
    grid-template-columns: 35% 1fr !important;
    gap: 0.5rem 1rem !important;
    aspect-ratio: auto !important;
  }

  .scout-card .card-top {
    display: contents !important;
    padding-left: 0 !important;
    min-height: auto !important;
  }

  .scout-card .card-identity {
    display: contents !important;
  }

  .scout-card .clan-logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    border-radius: 12px;
    align-self: end;
    overflow: hidden;
  }

  .scout-card .card-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem !important;
    -webkit-line-clamp: 1;
    min-height: auto !important;
    align-self: end !important;
    margin-top: 0.5rem !important;
    position: static !important;
    top: auto !important;
  }

  .scout-card .card-meta,
  .scout-card .card-desc {
    display: none !important;
  }

  .scout-card .card-tags {
    grid-column: 2;
    grid-row: 4;
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.22rem;
    padding-left: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    align-items: center;
    justify-content: flex-start;
    align-content: center;
  }

  .scout-card .card-tags span {
    flex: 0 1 auto !important;
    max-width: 4.4rem;
    font-size: 0.62rem !important;
    padding: 0.16rem 0.4rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .scout-card .card-tags span[hidden] {
    display: none !important;
  }

  .scout-card .card-tags span.card-tags-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    max-width: none;
  }

  .scout-card .card-actions {
    grid-column: 1;
    grid-row: 4;
    padding: 0 !important;
    margin-top: 0 !important;
    justify-self: stretch;
    align-self: center;
  }
}

/* ===== 2026 Scout Recruit Type Compact Row ===== */
.scout-card .scout-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.scout-card .scout-compact .card-compact-row {
  justify-content: flex-start;
  gap: 0.3rem;
}

.scout-card .scout-compact .card-compact-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .scout-card .scout-compact {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (max-width: 640px) {
  .scout-card .scout-compact {
    grid-column: 2;
    grid-row: 3;
  }
}

/* ===== 2026 Scout Rank Color Mapping On Badge ===== */
.scout-card[data-rank="below-epic"] .badge {
  background: #aeb4bf !important;
  color: #ffffff !important;
}

.scout-card[data-rank="epic"] .badge {
  background: #8fcf35 !important;
  color: #ffffff !important;
}

.scout-card[data-rank="legend"] .badge {
  background: #ff8a00 !important;
  color: #ffffff !important;
}

.scout-card[data-rank="h-mythic"] .badge {
  background: #42bfff !important;
  color: #ffffff !important;
}

.scout-card[data-rank="mythic"] .badge {
  background: #1f8cff !important;
  color: #ffffff !important;
}

.scout-card[data-rank="g-mythic"] .badge {
  background: #7b49ff !important;
  color: #ffffff !important;
}

.scout-card[data-rank="i-mythic"] .badge {
  background: #c8a128 !important;
  color: #ffffff !important;
}

/* ===== 2026 Scout Layout Recompose: Looking Badge + Intro Row + Rank Ribbon ===== */
.scout-card .badge {
  background: #1f8cff !important;
  color: #ffffff !important;
}

.scout-card .card-desc {
  display: none !important;
}

.scout-card .scout-compact .card-compact-row {
  justify-content: flex-start;
  gap: 0.28rem;
}

.scout-card .scout-compact .card-compact-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scout-card[data-rank="below-epic"] .scout-rank-pill {
  background: #aeb4bf !important;
}

.scout-card[data-rank="epic"] .scout-rank-pill {
  background: #8fcf35 !important;
}

.scout-card[data-rank="legend"] .scout-rank-pill {
  background: #ff8a00 !important;
}

.scout-card[data-rank="h-mythic"] .scout-rank-pill {
  background: #42bfff !important;
}

.scout-card[data-rank="mythic"] .scout-rank-pill {
  background: #1f8cff !important;
}

.scout-card[data-rank="g-mythic"] .scout-rank-pill {
  background: #7b49ff !important;
}

.scout-card[data-rank="i-mythic"] .scout-rank-pill {
  background: #c8a128 !important;
}

/* ===== 2026 Scout Looking Badge Visibility Fix ===== */
.scout-card .badge {
  display: inline-flex !important;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .scout-card .card-top .badge {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ===== 2026 Scout Looking Badge Tone Match ===== */
.scout-card .badge {
  background: #ffffff !important;
  border: 1px solid #d8e1ed !important;
  color: #1e2735 !important;
  box-shadow: none !important;
}

/* ===== 2026 Scout Looking Badge Final Color Lock ===== */
.scout-card[data-rank] .badge {
  background: #ffffff !important;
  border: 1px solid #d8e1ed !important;
  color: #1e2735 !important;
  box-shadow: none !important;
}

/* ===== 2026 Desktop Scout Card Match Clan Card ===== */
@media (min-width: 901px) {
  .card-grid[data-scout-list] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .card-grid[data-scout-list] .scout-card {
    padding: 1.2rem !important;
    display: grid !important;
    grid-template-columns: 35% 1fr !important;
    gap: 0.5rem 1rem !important;
    aspect-ratio: auto !important;
  }

  .card-grid[data-scout-list] .scout-card .card-top {
    display: contents !important;
    padding-left: 0 !important;
    min-height: auto !important;
  }

  .card-grid[data-scout-list] .scout-card .card-identity {
    display: contents !important;
  }

  .card-grid[data-scout-list] .scout-card .clan-logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    border-radius: 12px;
    align-self: end;
    overflow: hidden;
  }

  .card-grid[data-scout-list] .scout-card .card-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem !important;
    -webkit-line-clamp: 1;
    min-height: auto !important;
    align-self: end !important;
    margin-top: 0.5rem !important;
    position: static !important;
    top: auto !important;
  }

  .card-grid[data-scout-list] .scout-card .card-top .badge {
    grid-column: 2;
    grid-row: 2;
  }

  .card-grid[data-scout-list] .scout-card .card-meta,
  .card-grid[data-scout-list] .scout-card .card-desc {
    display: none !important;
  }

  .card-grid[data-scout-list] .scout-card .scout-compact {
    grid-column: 2;
    grid-row: 3;
    display: grid !important;
  }

  .card-grid[data-scout-list] .scout-card .card-tags {
    grid-column: 2;
    grid-row: 4;
    padding-left: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    gap: 0.24rem;
    align-items: center;
    justify-content: flex-start;
  }

  .card-grid[data-scout-list] .scout-card .card-actions {
    grid-column: 1;
    grid-row: 4;
    padding: 0 !important;
    margin-top: 0 !important;
    justify-self: stretch;
    align-self: center;
  }
}

/* ===== 2026 Desktop Scout Tags: show 2 + count ===== */
@media (min-width: 901px) {
  .card-grid[data-scout-list] .scout-card .card-tags span[hidden] {
    display: none !important;
  }

  .card-grid[data-scout-list] .scout-card .card-tags span.card-tags-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    max-width: none;
  }
}

/* NOTE: mobile readability and header tap targets are centralized in the Step 1-5 blocks near file end. */

/* Admin panel */
.admin-shell {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 2rem auto 4rem;
  display: grid;
  gap: 1rem;
}

.admin-auth-panel {
  margin: 0;
}

.admin-user-id-box {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}

.admin-user-id-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-user-id-row code {
  display: inline-block;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  background: rgba(13, 35, 47, 0.08);
  font-size: 0.8rem;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.admin-controls label {
  display: grid;
  gap: 0.4rem;
  color: var(--fog);
  font-size: 0.9rem;
}

.admin-controls select {
  min-width: 180px;
}

.admin-controls input {
  min-width: 280px;
  padding: 0.64rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.admin-summary {
  color: var(--fog);
  font-size: 0.92rem;
}

.admin-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
  background: rgba(255, 255, 255, 0.9);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-table th {
  color: var(--fog);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.admin-col-user {
  font-size: 0.75rem;
  color: var(--fog);
}

.admin-col-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-col-note {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ghost.is-danger {
  border-color: rgba(220, 53, 69, 0.4);
  color: #9f1a2a;
}

.ghost.is-danger:hover {
  background: rgba(220, 53, 69, 0.12);
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 34, 0.52);
}

.admin-modal-panel {
  position: relative;
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 3rem);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem;
}

.admin-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.admin-modal-head h3 {
  margin: 0;
}

.admin-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-modal-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--fog);
  font-size: 0.9rem;
}

.admin-modal-grid label.span-full {
  grid-column: 1 / -1;
}

.admin-modal-grid input,
.admin-modal-grid select,
.admin-modal-grid textarea {
  width: 100%;
}

.admin-modal-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* ===== Clan Detail Mobile-first Renewal ===== */
.clan-detail-page main {
  padding-inline: 1rem;
  padding-bottom: 4.2rem;
}

.clan-detail-page .detail-hero-v2 {
  --detail-accent: #21bfd9;
  --detail-accent-soft: rgba(33, 191, 217, 0.2);
  --detail-ink: #123545;
  --detail-glow: rgba(33, 191, 217, 0.32);
  padding: 1.2rem 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

.clan-detail-page .detail-hero-v2.is-pro {
  --detail-accent: #d8b160;
  --detail-accent-soft: rgba(216, 177, 96, 0.2);
  --detail-ink: #f4e3b9;
  --detail-glow: rgba(216, 177, 96, 0.34);
}

.clan-detail-page .detail-hero-v2.is-tournament {
  --detail-accent: #e3a644;
  --detail-accent-soft: rgba(227, 166, 68, 0.2);
  --detail-ink: #6b3a00;
  --detail-glow: rgba(227, 166, 68, 0.32);
}

.clan-detail-page .detail-hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1rem;
  background:
    radial-gradient(circle at 92% 14%, var(--detail-glow), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.8), transparent 52%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(15, 48, 67, 0.16);
}

.clan-detail-page .detail-hero-v2.is-pro .detail-hero-shell {
  background:
    radial-gradient(circle at 85% 12%, rgba(216, 177, 96, 0.2), transparent 48%),
    radial-gradient(circle at 12% 86%, rgba(255, 255, 255, 0.08), transparent 52%),
    linear-gradient(145deg, #0a0f13 0%, #151f26 56%, #0a0e12 100%);
  border: 1px solid rgba(216, 177, 96, 0.36);
  box-shadow:
    0 22px 36px rgba(5, 8, 10, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.clan-detail-page .detail-hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.36) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: detail-sheen 8s ease-in-out infinite;
}

.clan-detail-page .detail-hero-v2.is-pro .detail-hero-shell::after {
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
}

@keyframes detail-sheen {
  0%,
  72%,
  100% {
    transform: translateX(-120%);
  }
  82% {
    transform: translateX(120%);
  }
}

.clan-detail-page .detail-title {
  align-items: flex-start;
  gap: 1rem;
}

.clan-detail-page .detail-logo.clan-logo {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  font-size: 1rem;
  box-shadow:
    0 16px 30px rgba(20, 63, 86, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.55);
  flex: 0 0 108px;
}

/* Detail page logo should keep whole image visible (no cover crop) */
.clan-detail-page .detail-logo.clan-logo.has-image {
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.95);
}

.clan-detail-page .detail-hero-v2.is-pro .detail-logo.clan-logo.has-image {
  background-color: rgba(10, 14, 18, 0.95);
}

.clan-detail-page .detail-title h1 {
  font-size: clamp(1.5rem, 7.8vw, 2rem);
  line-height: 1.2;
}

.clan-detail-page .detail-hero-v2.is-pro .detail-title h1 {
  color: #f6e8c3;
}

.clan-detail-page .detail-hero-v2.is-pro .detail-hero-shell .eyebrow {
  color: rgba(246, 232, 195, 0.82);
}

.clan-detail-page .detail-tags-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-top: 0.7rem;
  scrollbar-width: thin;
}

.clan-detail-page .detail-tags-scroll span {
  white-space: nowrap;
  border-color: rgba(33, 191, 217, 0.35);
  background: rgba(33, 191, 217, 0.14);
  color: #18485c;
}

.clan-detail-page .detail-hero-v2.is-pro .detail-tags-scroll span {
  border-color: rgba(216, 177, 96, 0.45);
  background: rgba(216, 177, 96, 0.2);
  color: #f4e3b9;
}

.clan-detail-page .detail-hero-v2.is-tournament .detail-tags-scroll span {
  border-color: rgba(227, 166, 68, 0.42);
  background: rgba(255, 232, 186, 0.78);
  color: #6b3a00;
}

.clan-detail-page .detail-actions-mobile {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.clan-detail-page .detail-actions-mobile .primary,
.clan-detail-page .detail-actions-mobile .ghost {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.clan-detail-page .detail-actions-mobile .primary {
  background: linear-gradient(135deg, #2bd0df 0%, #1ea1c3 100%);
  border: 1px solid rgba(18, 103, 128, 0.35);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(30, 121, 148, 0.28);
}

.clan-detail-page .detail-actions-mobile .primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(30, 121, 148, 0.34);
}

.clan-detail-page .detail-actions-mobile .ghost {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(58, 118, 146, 0.32);
  color: #214457;
}

.clan-detail-page .detail-actions-mobile .ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(37, 95, 121, 0.46);
}

.clan-detail-page .detail-hero-v2.is-pro .detail-actions-mobile .primary {
  background: linear-gradient(135deg, #d8b160 0%, #b38a42 100%);
  border-color: rgba(69, 52, 20, 0.45);
  color: #111111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.clan-detail-page .detail-hero-v2.is-pro .detail-actions-mobile .ghost {
  background: rgba(15, 21, 26, 0.82);
  border-color: rgba(216, 177, 96, 0.42);
  color: #f4e3b9;
}

.clan-detail-page .detail-panel-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.clan-detail-page .detail-info-card {
  border-radius: 18px;
  padding: 0.95rem;
  box-shadow: 0 12px 24px rgba(19, 56, 77, 0.12);
}

.clan-detail-page .detail-panel-v2 .detail-info-card {
  height: 100%;
  align-content: start;
}

.clan-detail-page .detail-roles-card [data-detail-roles] {
  min-height: 2.2rem;
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.55rem;
}

.clan-detail-page .detail-roles-card .detail-tags.is-compact span {
  font-size: 0.84rem;
  padding: 0.36rem 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.clan-detail-page .detail-condition-list {
  display: grid;
  gap: 0.55rem;
}

.clan-detail-page .detail-condition-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0.62rem;
  border-radius: 10px;
  background: rgba(238, 248, 253, 0.78);
  border: 1px solid rgba(33, 127, 161, 0.18);
}

.clan-detail-page .detail-condition-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #4a6978;
  white-space: nowrap;
}

.clan-detail-page .detail-condition-value {
  font-size: 0.84rem;
  color: #1f4253;
  font-weight: 600;
  text-align: right;
}

.clan-detail-page .detail-condition-item.is-time-row {
  align-items: flex-start;
}

.clan-detail-page .detail-condition-item.is-time-row .detail-condition-value {
  white-space: pre-line;
  line-height: 1.45;
}

.clan-detail-page .detail-hero-v2.is-pro .detail-condition-item,
.clan-detail-page .detail-content.is-pro .detail-condition-item {
  background: rgba(18, 24, 29, 0.72);
  border-color: rgba(216, 177, 96, 0.28);
}

.clan-detail-page .detail-hero-v2.is-pro .detail-condition-label,
.clan-detail-page .detail-content.is-pro .detail-condition-label {
  color: rgba(246, 236, 209, 0.78);
}

.clan-detail-page .detail-hero-v2.is-pro .detail-condition-value,
.clan-detail-page .detail-content.is-pro .detail-condition-value {
  color: #f4e3b9;
}

.clan-detail-page .detail-hero-v2.is-tournament .detail-condition-item,
.clan-detail-page .detail-content.is-tournament .detail-condition-item {
  background: rgba(255, 243, 214, 0.85);
  border-color: rgba(227, 166, 68, 0.28);
}

.clan-detail-page .detail-hero-v2.is-tournament .detail-condition-label,
.clan-detail-page .detail-content.is-tournament .detail-condition-label {
  color: #7a5830;
}

.clan-detail-page .detail-hero-v2.is-tournament .detail-condition-value,
.clan-detail-page .detail-content.is-tournament .detail-condition-value {
  color: #5d3a13;
}

.clan-detail-page .detail-content-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  padding-bottom: 2.5rem;
}

.clan-detail-page .detail-content-col {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.player-detail-page .detail-inline-field {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  flex-wrap: wrap;
  margin-top: 0.38rem;
  padding-left: 0.14rem;
}

.player-detail-page .detail-inline-field .detail-label {
  margin: 0;
  white-space: nowrap;
}

.player-detail-page .detail-inline-field .detail-tags {
  margin-top: 0;
  flex: 1 1 0;
}

@media (min-width: 1024px) {
  .player-detail-page .detail-inline-field {
    margin-top: 0.58rem;
    padding-left: 0.22rem;
  }
}

.clan-detail-page .detail-content-v2 .detail-info-card {
  align-self: start;
}

.clan-detail-page .detail-story-copy {
  color: #2f4e5f;
  line-height: 1.7;
}

.clan-detail-page .detail-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.clan-detail-page .detail-gallery-item {
  min-height: 120px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  cursor: zoom-in;
}

.clan-detail-page .detail-gallery-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.clan-detail-page .detail-gallery-item:focus-visible {
  outline: 2px solid rgba(33, 127, 161, 0.8);
  outline-offset: 2px;
}

.detail-gallery-lightbox[hidden] {
  display: none;
}

.detail-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 2vh 4vw;
}

.detail-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 28, 0.78);
  backdrop-filter: blur(2px);
}

.detail-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  max-height: 90vh;
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(12, 26, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.35);
}

.detail-gallery-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(90vh - 3.5rem);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
}

.detail-gallery-lightbox__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

body.is-gallery-lightbox-open {
  overflow: hidden;
}

[data-clan-detail].is-loading,
[data-player-detail].is-loading {
  position: relative;
}

[data-clan-detail].is-loading .detail-hero-shell,
[data-clan-detail].is-loading .detail-panel,
[data-player-detail].is-loading .detail-hero-shell,
[data-player-detail].is-loading .detail-panel {
  opacity: 0;
  pointer-events: none;
}

.detail-content.is-loading {
  visibility: hidden;
  opacity: 0;
}

[data-clan-detail].is-ready,
[data-player-detail].is-ready,
.detail-content.is-ready {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.14s ease;
}

.detail-hero-skeleton {
  display: none;
}

[data-clan-detail].is-loading .detail-hero-skeleton,
[data-player-detail].is-loading .detail-hero-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 24px;
  z-index: 2;
}

.detail-hero-skeleton .sk {
  display: block;
  height: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(210, 224, 235, 0.7), rgba(238, 246, 252, 0.95), rgba(210, 224, 235, 0.7));
  background-size: 240% 100%;
  animation: detail-skeleton-shimmer 1.15s linear infinite;
}

.detail-hero-skeleton .sk-eyebrow {
  width: 8rem;
  height: 0.72rem;
}

.detail-hero-skeleton .sk-title {
  width: min(24rem, 78%);
  height: 1.45rem;
}

.detail-hero-skeleton .sk-row {
  width: min(20rem, 68%);
  height: 0.88rem;
}

.detail-hero-skeleton .sk-chip {
  width: 6.5rem;
  height: 1.55rem;
}

.detail-hero-skeleton .sk-btn {
  width: 8.2rem;
  height: 2.2rem;
  margin-top: 0.45rem;
}

@keyframes detail-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-hero-skeleton .sk {
    animation: none;
  }
}

.clan-detail-page .member-item {
  border-radius: 12px;
}

@media (min-width: 768px) {
  .clan-detail-page main {
    padding-inline: 1.2rem;
  }

  .clan-detail-page .detail-logo.clan-logo {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    flex-basis: 120px;
  }

  .clan-detail-page .detail-actions-mobile {
    gap: 0.5rem;
  }

  .clan-detail-page .detail-actions-mobile .primary,
  .clan-detail-page .detail-actions-mobile .ghost {
    min-height: 48px;
    padding: 0.62rem 0.82rem;
    font-size: 0.82rem;
  }

  .clan-detail-page .detail-roles-card .detail-tags.is-compact span {
    font-size: 0.88rem;
    padding: 0.4rem 0.82rem;
  }

  .clan-detail-page .detail-panel-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clan-detail-page .detail-content-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .clan-detail-page main {
    padding-inline: 5vw;
  }

  .clan-detail-page .detail-logo.clan-logo {
    width: 132px;
    height: 132px;
    border-radius: 28px;
    flex-basis: 132px;
  }

  .clan-detail-page .detail-hero-v2 {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 1rem;
    align-items: stretch;
  }

  .clan-detail-page .detail-hero-shell {
    padding: 1.2rem;
  }

  .clan-detail-page .detail-panel-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .clan-detail-page .detail-condition-item.is-vc-row .detail-condition-value {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .clan-detail-page .detail-roles-card .detail-tags.is-compact span {
    font-size: 0.94rem;
    padding: 0.44rem 0.9rem;
  }

  .clan-detail-page .detail-content-v2 {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* ===== 2026 Typography Safety Step 1 ===== */
:root {
  --safe-fs-2xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.78rem);
  --safe-fs-xs: clamp(0.78rem, 0.74rem + 0.25vw, 0.86rem);
  --safe-fs-sm: clamp(0.86rem, 0.82rem + 0.3vw, 0.95rem);
}

@media (max-width: 900px) {
  .brand-subtitle {
    font-size: var(--safe-fs-2xs);
    line-height: 1.25;
  }

  .card-desc {
    font-size: var(--safe-fs-xs);
    line-height: 1.5;
  }

  .axis-link {
    font-size: var(--safe-fs-sm);
  }
}

/* ===== 2026 Tap Target Safety Step 2 ===== */
@media (max-width: 900px) {
  .header-toggle,
  .header-utility.is-help {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .header-toggle {
    padding: 0.42rem;
  }
}

/* ===== 2026 Header Consistency Step 3 ===== */
.site-header .brand-subtitle,
.site-header.is-scrolled .brand-subtitle {
  display: block;
  opacity: 1;
  max-height: none;
}

@media (max-width: 900px) {
  .site-header,
  .site-header.is-scrolled {
    padding: 0.5rem 3.5vw;
    min-height: 64px;
  }

  .site-header .header-surface {
    gap: 0.65rem;
  }

  .site-header .brand,
  .site-header.is-scrolled .brand {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
  }

  .site-header .brand-logo,
  .site-header.is-scrolled .brand-logo {
    height: 42px;
    margin-top: 0;
  }

  .site-header .brand-subtitle,
  .site-header.is-scrolled .brand-subtitle {
    font-size: clamp(0.58rem, 0.55rem + 0.16vw, 0.66rem);
    line-height: 1.15;
    max-width: 64vw;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .site-header .header-controls {
    gap: 0.55rem;
  }

  .site-header .axis-nav {
    right: 3.5vw;
    max-width: calc(100vw - 7vw);
    margin-top: 0.65rem;
  }
}

/* ===== 2026 Search Panel Consistency Step 4 ===== */
@media (max-width: 900px) {
  .discover .search-panel,
  .scout .search-panel {
    padding: 1rem;
    margin-bottom: 1.2rem;
    border-radius: 16px;
  }

  .discover .search-panel.is-collapsible .search-header,
  .scout .search-panel.is-collapsible .search-header {
    align-items: center;
    min-height: 44px;
  }

  .discover .search-panel.is-collapsible .search-toggle,
  .scout .search-panel.is-collapsible .search-toggle {
    min-height: 44px;
    width: calc(100% - 48px);
    padding: 0.58rem 0.8rem;
    font-size: 0.92rem;
  }

  .discover .search-panel .search-close,
  .scout .search-panel .search-close {
    width: 40px;
    height: 40px;
    top: 2px;
    right: 0;
  }

  .discover .search-panel.is-collapsible .search-body,
  .scout .search-panel.is-collapsible .search-body {
    max-height: min(62vh, 540px);
    padding-right: 0.35rem;
  }

  .discover .search-panel.is-collapsible.is-collapsed .search-body,
  .scout .search-panel.is-collapsible.is-collapsed .search-body {
    display: none;
  }

  .discover .search-controls,
  .scout .search-controls {
    margin-bottom: 1rem;
    gap: 0.9rem;
  }

  .discover .filters,
  .scout .filters {
    gap: 0.8rem;
  }

  .floating-search-btn {
    width: 52px;
    height: 52px;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 52px);
    right: 12px;
    border: none;
  }
}

/* ===== 2026 Desktop Sticky Parity Step 5 ===== */
@media (min-width: 980px) {
  .discover .search-panel,
  .scout .search-panel {
    position: sticky;
    top: calc(var(--header-offset, 96px));
    align-self: start;
    z-index: 2;
    max-height: calc(100vh - var(--header-offset, 96px) - 16px);
    overflow: auto;
  }
}

/* ===== 2026 Motion Delight Step 6 ===== */
.card-detail {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card-detail.is-pressing {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .card-detail {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ===== 2026 Scout Overflow Guard ===== */
.scout-card .scout-compact .card-compact-row {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.scout-card .scout-compact .card-compact-row span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.scout-card .scout-compact .card-compact-row strong {
  display: block;
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scout-card .card-top .badge {
  display: flex !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  justify-content: center;
  align-items: center;
  white-space: normal !important;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  max-height: 2.5em;
}

/* Filtering must win over high-specificity layout display rules */
.card-grid:not([data-scout-list]) .clan-card.hidden,
.card-grid:not([data-scout-list]) .clan-card.is-paged-out,
.card-grid:not([data-scout-list]) .clan-card.hidden:not(.scout-card),
.card-grid:not([data-scout-list]) .clan-card.is-paged-out:not(.scout-card),
.card-grid[data-scout-list] .scout-card.hidden,
.card-grid[data-scout-list] .scout-card.is-paged-out,
.clan-card.hidden,
.clan-card.is-paged-out,
.scout-card.hidden,
.scout-card.is-paged-out {
  display: none !important;
}
