@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f3f6fa;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-strong: #eef3f8;
  --surface-muted: #f7f9fc;
  --text: #0f1724;
  --text-secondary: #243247;
  --graphite: #152033;
  --muted: #425268;
  --line: rgba(21, 32, 51, 0.14);
  --line-strong: rgba(14, 110, 184, 0.22);
  --accent: #c92832;
  --accent-soft: rgba(201, 40, 50, 0.08);
  --accent-glow: rgba(201, 40, 50, 0.16);
  --bayside: #0e6eb8;
  --bayside-deep: #0a3d6e;
  --bayside-soft: rgba(14, 110, 184, 0.08);
  --bayside-glow: rgba(14, 110, 184, 0.14);
  --gunmetal: #5c6572;
  --pearl: #dce4ee;
  --pearl-bright: #ffffff;
  --stripe-mid: #d8e0ea;
  --warm-metal: #8d8173;
  --badge-text: #f4f7fb;
  --glass: rgba(255, 255, 255, 0.88);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 16px 40px rgba(21, 32, 51, 0.07);
  --shadow-glow: 0 14px 36px rgba(14, 110, 184, 0.1);
  --max-width: 1140px;
  --display-font: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --body-font: "Outfit", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  background:
    radial-gradient(circle at 12% -2%, rgba(14, 110, 184, 0.07), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(201, 40, 50, 0.04), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(220, 228, 238, 0.55), transparent 36rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.theme-r32 {
  background-color: var(--bg);
}

body::after {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
  content: "";
  background: linear-gradient(
    90deg,
    var(--accent) 0 33%,
    var(--stripe-mid) 33% 66%,
    var(--bayside) 66% 100%
  );
  box-shadow: 0 1px 10px rgba(14, 110, 184, 0.18);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.9;
  background:
    radial-gradient(circle at 78% 16%, rgba(14, 110, 184, 0.05), transparent 20rem),
    radial-gradient(circle at 10% 78%, rgba(201, 40, 50, 0.03), transparent 16rem);
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.theme-r32::after {
  position: fixed;
  top: 52%;
  right: -1rem;
  z-index: -1;
  color: rgba(14, 110, 184, 0.025);
  font-family: var(--display-font);
  font-size: clamp(11rem, 24vw, 18rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  pointer-events: none;
  transform: translateY(-50%) rotate(-90deg);
  content: "32 GT-R";
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 3px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(14, 110, 184, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* 日本語コメント: 公式エンブレムは使わず、32 GT-R の独自バッジで日産R32と分かる見た目にします。 */
.brand-mark {
  display: grid;
  gap: 2px;
  width: 54px;
  padding: 8px 7px 7px;
  border: 1px solid rgba(26, 127, 212, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #6f7884 0%, var(--gunmetal) 42%, var(--graphite) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -8px 16px rgba(0, 0, 0, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.28);
  color: var(--badge-text);
  line-height: 1;
  text-align: center;
}

.brand-mark-top {
  font-family: var(--display-font);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-mark-gtr {
  padding-top: 2px;
  border-top: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.brand-mark--footer {
  width: 46px;
  margin-bottom: 10px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-model {
  color: var(--graphite);
  font-family: var(--display-font);
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-era {
  color: var(--bayside-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--bayside-soft);
  box-shadow: inset 0 0 0 1px rgba(14, 110, 184, 0.18);
  color: var(--bayside-deep);
}

.auth-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.auth-status-label {
  color: var(--graphite);
  font-weight: 850;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: center;
  min-height: min(88vh, 820px);
  padding: 56px 0 64px;
}

.hero--r32 {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) minmax(240px, 0.72fr);
  gap: 24px;
}

.hero-stage {
  display: contents;
}

.hero--r32 .hero-copy {
  grid-column: 1;
}

.hero--r32 .hero-visual {
  grid-column: 2;
}

.hero--r32 .member-hero-card,
.hero--r32 .hero-card {
  grid-column: 3;
}

.hero-visual {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 8% 4% 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bayside-glow), transparent 68%);
  filter: blur(28px);
  content: "";
}

.hero-visual::after {
  position: absolute;
  right: 10%;
  bottom: 16%;
  z-index: 2;
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 43, 53, 0.55) 0%, rgba(212, 43, 53, 0.08) 52%, transparent 72%);
  box-shadow:
    2.4em 0 0 -0.2em rgba(212, 43, 53, 0.42),
    2.4em 0 24px rgba(212, 43, 53, 0.18);
  filter: blur(0.2px);
  pointer-events: none;
  content: "";
}

.hero-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(14, 110, 184, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 28% 10%, rgba(14, 110, 184, 0.08), transparent 44%),
    var(--surface);
  box-shadow:
    var(--shadow-soft),
    var(--shadow-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-visual figcaption,
.model-spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.model-spec-strip span,
.hero-visual figcaption span {
  padding: 8px 13px;
  border: 1px solid rgba(14, 110, 184, 0.16);
  border-radius: 999px;
  background: var(--surface);
  color: var(--bayside-deep);
  font-family: var(--display-font);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-spec-strip span:nth-child(2),
.hero-visual figcaption span:nth-child(2) {
  border-color: rgba(201, 40, 50, 0.24);
  background: rgba(201, 40, 50, 0.06);
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--bayside-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--gtr {
  color: var(--accent);
}

.open-date-badge {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 15px;
  border: 1px solid rgba(14, 110, 184, 0.18);
  border-radius: 999px;
  background: var(--bayside-soft);
  color: var(--bayside-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.conversion-note {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--graphite);
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 .gtr-accent,
.hero-title-accent {
  color: var(--accent);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

h2 {
  margin-bottom: 16px;
  color: var(--graphite);
  font-family: var(--display-font);
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-lead,
.section-heading p,
.split > div > p,
.panel > p,
.cta p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 24px;
}

.hero-stats div {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-top: 2px solid rgba(14, 110, 184, 0.45);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(14, 110, 184, 0.05), transparent 100%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-stats div:nth-child(2) {
  border-top-color: rgba(201, 40, 50, 0.45);
  background:
    linear-gradient(180deg, rgba(201, 40, 50, 0.05), transparent 100%),
    var(--surface);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
}

.hero-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #e33a44 0%, var(--accent) 48%, #961820 100%);
  border-color: rgba(212, 43, 53, 0.55);
  box-shadow: 0 14px 34px var(--accent-glow);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, #ef4e57 0%, #e33a44 100%);
  box-shadow: 0 18px 40px rgba(212, 43, 53, 0.34);
  color: white;
}

.button-secondary {
  border-color: rgba(14, 110, 184, 0.2);
  background: var(--surface);
  color: var(--bayside-deep);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(14, 110, 184, 0.34);
  background: var(--bayside-soft);
  color: var(--bayside-deep);
}

.hero-card,
.card,
.notice,
.panel,
.affiliate-card,
.cta {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 28px;
  background:
    radial-gradient(circle at 88% 6%, rgba(201, 40, 50, 0.06), transparent 9rem),
    radial-gradient(circle at 10% 92%, rgba(14, 110, 184, 0.08), transparent 10rem),
    var(--surface);
  backdrop-filter: blur(12px);
  transform: none;
  box-shadow: var(--shadow-soft);
}

.member-hero-card {
  border-color: rgba(14, 110, 184, 0.16);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-kicker {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fact-list li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  line-height: 1.65;
}

.fact-list strong {
  color: var(--text);
  font-weight: 700;
}

.palette-card {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.palette-card span,
.palette-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.swatch {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.swatch-gunmetal {
  background: linear-gradient(145deg, #7b838d, var(--gunmetal) 42%, #252a31);
}

.swatch-graphite {
  background: linear-gradient(145deg, #424953, var(--graphite) 58%, #090b0f);
}

.swatch-pearl {
  background: linear-gradient(145deg, #ffffff, var(--pearl) 54%, #8e98a4);
}

.swatch-red {
  background: linear-gradient(145deg, #ff6b6b, var(--accent) 52%, #69181d);
}

.visitor-counter {
  display: grid;
  gap: 2px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.visitor-counter span,
.visitor-counter small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visitor-counter strong {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.notice {
  padding: 18px 22px;
  margin-bottom: 70px;
  color: var(--muted);
}

.garage-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  margin: 10px 0 28px;
  border: 1px solid rgba(212, 55, 63, 0.34);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 12%, rgba(212, 55, 63, 0.28), transparent 12rem),
    linear-gradient(145deg, rgba(216, 221, 226, 0.09), transparent 44%),
    var(--surface);
  box-shadow:
    0 0 0 1px rgba(216, 221, 226, 0.05),
    0 26px 90px rgba(0, 0, 0, 0.26);
}

.garage-cta h2 {
  margin-bottom: 14px;
}

.garage-cta p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.garage-cta-actions {
  display: grid;
  gap: 12px;
  min-width: min(320px, 100%);
}

.notice strong {
  color: var(--text);
}

.affiliate-disclosure {
  margin-top: -52px;
  background:
    linear-gradient(135deg, rgba(212, 55, 63, 0.14), transparent 48%),
    var(--surface);
}

.visitor-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  gap: 18px;
  align-items: stretch;
}

.world-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(216, 221, 226, 0.34);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.map-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 44% 40%, rgba(212, 55, 63, 0.12), transparent 9rem);
  pointer-events: none;
}

.world-map-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.map-connector-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-connector-layer line {
  stroke: rgba(212, 55, 63, 0.86);
  stroke-linecap: round;
  stroke-width: 0.35;
  filter: drop-shadow(0 0 2px rgba(212, 55, 63, 0.55));
  vector-effect: non-scaling-stroke;
}

.landmass {
  position: absolute;
  border: 1px solid rgba(216, 221, 226, 0.12);
  background:
    linear-gradient(145deg, rgba(216, 221, 226, 0.16), transparent 42%),
    rgba(89, 97, 109, 0.28);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.22));
  opacity: 0.72;
}

.landmass-europe {
  top: 29%;
  left: 16%;
  width: 19%;
  height: 20%;
  border-radius: 60% 38% 46% 50%;
  transform: rotate(-12deg);
}

.landmass-africa {
  top: 46%;
  left: 24%;
  width: 16%;
  height: 30%;
  border-radius: 48% 52% 62% 42%;
  transform: rotate(8deg);
}

.landmass-asia {
  top: 25%;
  left: 41%;
  width: 31%;
  height: 28%;
  border-radius: 62% 34% 52% 40%;
  transform: rotate(4deg);
}

.landmass-oceania {
  top: 66%;
  left: 62%;
  width: 15%;
  height: 13%;
  border-radius: 56% 40% 48% 54%;
  transform: rotate(-8deg);
}

.landmass-americas {
  top: 25%;
  right: 7%;
  width: 18%;
  height: 48%;
  border-radius: 52% 42% 54% 46%;
  transform: rotate(12deg);
}

.map-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 92px;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(212, 55, 63, 0.46);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12px 12px, rgba(212, 55, 63, 0.3), transparent 2.2rem),
    var(--surface-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.map-marker::before {
  position: absolute;
  top: -7px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(212, 55, 63, 0.95);
  content: "";
}

.map-marker span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-marker strong {
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1;
}

.map-marker span,
.map-marker strong,
.map-marker em {
  position: relative;
  z-index: 2;
}

.map-marker em,
.region-row em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-marker em b,
.region-row em b {
  color: var(--graphite);
}

.map-marker.is-current-region {
  border-color: rgba(216, 221, 226, 0.72);
  box-shadow:
    0 0 0 1px rgba(216, 221, 226, 0.18),
    0 0 34px rgba(212, 55, 63, 0.42),
    0 18px 40px rgba(0, 0, 0, 0.3);
}

.marker-europe {
  top: 26%;
  left: 12%;
}

.marker-japan {
  top: 36%;
  left: 55%;
}

.marker-east-asia {
  top: 23%;
  left: 24%;
}

.marker-southeast-asia {
  top: 56%;
  left: 40%;
}

.marker-oceania {
  top: 68%;
  left: 36%;
}

.marker-north-america {
  top: 22%;
  right: 16%;
}

.marker-latin-america {
  top: 57%;
  right: 7%;
}

.region-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(216, 221, 226, 0.08), transparent 40%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.region-row {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.region-row span,
.region-note {
  color: var(--muted);
}

.region-row strong {
  color: var(--text);
  font-size: 1.25rem;
}

.region-note {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.section {
  padding: 70px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2 {
  color: var(--graphite);
}

.grid,
.guide-index,
.affiliate-grid,
.mini-grid {
  display: grid;
  gap: 18px;
}

.guide-index {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.guide-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(26, 127, 212, 0.06), transparent 36%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.guide-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: auto;
  padding: 6px 11px;
  border: 1px solid rgba(212, 43, 53, 0.28);
  border-radius: 999px;
  background: rgba(212, 43, 53, 0.08);
  color: #ff8a90;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.guide-card h3 {
  margin-top: 34px;
  color: var(--text);
  line-height: 1.3;
}

.guide-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: rgba(26, 127, 212, 0.34);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(26, 127, 212, 0.08);
  transform: translateY(-3px);
}

.random-garage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.random-garage-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(216, 221, 226, 0.08), transparent 42%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.random-garage-cover {
  display: grid;
  min-height: 220px;
  place-items: center;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-decoration: none;
}

.random-garage-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.random-garage-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.random-garage-body h3 a {
  text-decoration: none;
}

.random-garage-body p,
.random-garage-body span {
  margin-bottom: 0;
  color: var(--muted);
}

.random-garage-body strong {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(212, 55, 63, 0.38);
  border-radius: 999px;
  color: var(--graphite);
  font-size: 0.8rem;
}

.community-feed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.community-feed-item,
.community-feed-empty {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 12%, rgba(212, 55, 63, 0.16), transparent 7rem),
    linear-gradient(145deg, rgba(216, 221, 226, 0.07), transparent 40%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.community-feed-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
}

.community-feed-media {
  display: grid;
  min-height: 92px;
  overflow: hidden;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
}

.community-feed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-feed-icon {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-feed-item span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-feed-item h3,
.community-feed-item p {
  margin-bottom: 8px;
}

.community-feed-item h3 a {
  text-decoration: none;
}

.community-feed-item p,
.community-feed-item small,
.community-feed-empty p {
  color: var(--muted);
}

.community-feed-empty {
  padding: clamp(22px, 4vw, 34px);
}

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

.card,
.affiliate-card {
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(216, 221, 226, 0.06), transparent 38%),
    var(--surface);
}

.feature-section,
.timeline-section,
.global-section {
  position: relative;
}

.article-page {
  padding: 42px 0 80px;
}

.r32-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 26px;
  border: 1px solid rgba(26, 127, 212, 0.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(212, 43, 53, 0.1), transparent 10rem),
    radial-gradient(circle at 8% 88%, rgba(26, 127, 212, 0.14), transparent 12rem),
    var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.r32-masthead-copy {
  display: grid;
  gap: 14px;
}

.r32-masthead-visual {
  margin: 0;
}

.r32-masthead-visual img {
  display: block;
  width: 100%;
  border: 1px solid rgba(18, 104, 179, 0.42);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.article-hero {
  position: relative;
  padding: clamp(42px, 8vw, 92px) 0;
  padding-left: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid rgba(18, 104, 179, 0.18);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--accent), var(--bayside)) 1;
}

.article-hero::before {
  display: block;
  width: 132px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 34%, var(--stripe-mid) 34% 67%, var(--bayside) 67% 100%);
  content: "";
}

.article-hero h1 {
  max-width: 960px;
}

.article-hero p {
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 0.72fr);
  gap: 28px;
  align-items: start;
}

.owner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 28px;
  align-items: start;
  padding: clamp(42px, 8vw, 92px) 0;
}

.owner-hero h1 {
  max-width: 760px;
}

.owner-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
}

.owner-profile-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(212, 55, 63, 0.3);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 12%, rgba(212, 55, 63, 0.18), transparent 8rem),
    linear-gradient(145deg, rgba(216, 221, 226, 0.08), transparent 42%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.owner-profile-card > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-serial {
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(212, 55, 63, 0.38);
  border-radius: 999px;
  background: rgba(212, 55, 63, 0.1);
}

.member-serial strong {
  color: var(--graphite);
}

.owner-profile-card > strong {
  color: var(--text);
  font-size: 1.25rem;
}

.owner-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owner-stat-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.owner-stat-grid b {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
}

.owner-stat-grid small {
  color: var(--muted);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.toc-card strong {
  color: var(--text);
}

.toc-card a {
  color: var(--muted);
  text-decoration: none;
}

.toc-card a:hover,
.toc-card a:focus-visible {
  color: var(--text);
}

.article-stack {
  display: grid;
  gap: 18px;
}

.article-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(216, 221, 226, 0.07), transparent 40%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.article-card p {
  color: var(--muted);
}

.article-card p:last-child,
.check-list {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
  color: var(--muted);
}

.narrow-page {
  max-width: 760px;
  margin-inline: auto;
}

.form-card,
.flash-message,
.form-errors,
.empty-state {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(216, 221, 226, 0.07), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.form-card {
  display: grid;
  gap: 18px;
}

.trust-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.trust-panel div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
}

.trust-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--graphite);
}

.trust-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.wide-form {
  max-width: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

.form-card select {
  appearance: none;
}

.form-card textarea {
  resize: vertical;
}

.form-errors {
  margin-bottom: 18px;
  border-color: rgba(212, 55, 63, 0.45);
}

.form-errors p,
.flash-message {
  color: var(--graphite);
}

.garage-grid,
.car-photo-grid,
.photo-manage-grid {
  display: grid;
  gap: 18px;
}

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

.empty-garage-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.empty-garage-panel .empty-state {
  display: grid;
  align-content: center;
}

.sample-garage-card {
  border-color: rgba(212, 55, 63, 0.36);
}

.garage-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(26, 127, 212, 0.05), transparent 30%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.garage-card:hover {
  border-color: rgba(26, 127, 212, 0.28);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  transform: translateY(-2px);
}

.garage-cover {
  display: grid;
  min-height: 220px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(14, 110, 184, 0.08), transparent 10rem),
    var(--surface-strong);
  color: var(--muted);
  text-decoration: none;
}

.garage-cover img,
.car-photo-grid img,
.photo-manage-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.garage-card-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.garage-card-body h2 {
  font-size: 1.5rem;
}

.garage-card-body h2 a {
  text-decoration: none;
}

.garage-card-body p,
.garage-card-body span {
  color: var(--text-secondary);
  line-height: 1.6;
}

.garage-like-count {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(212, 55, 63, 0.38);
  border-radius: 999px;
  color: var(--graphite) !important;
  font-size: 0.8rem;
  font-weight: 900;
}

.like-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.like-panel strong {
  color: var(--text);
  font-size: 1.08rem;
}

.like-button {
  border: 1px solid rgba(212, 55, 63, 0.5);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(212, 55, 63, 0.12);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.like-button.is-liked {
  background: linear-gradient(135deg, var(--accent), #ff6b70);
  color: white;
}

.like-button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.like-note {
  color: var(--muted);
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(212, 55, 63, 0.38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 18%, rgba(212, 55, 63, 0.22), transparent 8rem),
    linear-gradient(145deg, rgba(216, 221, 226, 0.08), transparent 42%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.share-panel h2 {
  margin-bottom: 10px;
}

.share-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-actions-inline {
  margin-top: 18px;
}

.invite-template-card {
  display: grid;
  gap: 14px;
  max-width: 820px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(216, 221, 226, 0.07), transparent 40%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.invite-template-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  padding: 16px;
  resize: vertical;
}

.invite-template-card .button {
  width: fit-content;
}

.comments-section {
  margin-top: 52px;
}

.comment-form {
  margin-bottom: 22px;
}

.comment-form .button {
  width: fit-content;
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(216, 221, 226, 0.07), transparent 40%),
    var(--surface);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
}

.comment-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 12px;
}

.comment-card strong {
  color: var(--text);
}

.comment-card span,
.comment-card p {
  color: var(--muted);
}

.comment-card p {
  margin-bottom: 0;
}

.car-photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.car-photo-grid img,
.empty-photo {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.empty-photo {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.photo-manage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-manage-grid label {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.photo-manage-grid img {
  aspect-ratio: 4 / 3;
}

.photo-manage-grid span {
  padding: 10px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 42px;
}

.admin-stat-grid article,
.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(216, 221, 226, 0.07), transparent 40%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.admin-stat-grid article {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.admin-stat-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-stat-grid strong {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.admin-section {
  margin-top: 52px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table td,
.admin-table small {
  color: var(--muted);
}

.admin-table a {
  color: var(--text);
  font-weight: 850;
}

.admin-danger {
  border-color: rgba(212, 55, 63, 0.5);
  color: var(--text);
}

.feature-section::before,
.global-section::before {
  position: absolute;
  inset: 34px -18px auto auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(212, 55, 63, 0.24);
  border-radius: 50%;
  content: "";
  opacity: 0.7;
}

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

.risk-map article,
.timeline article,
.global-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(216, 221, 226, 0.08), transparent 42%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.risk-map article {
  min-height: 250px;
  padding: 22px;
}

.risk-map span,
.timeline span {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 6px 10px;
  border: 1px solid rgba(212, 55, 63, 0.4);
  border-radius: 999px;
  color: var(--graphite);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.risk-map p,
.timeline p,
.global-grid span {
  margin-bottom: 0;
  color: var(--muted);
}

.card p,
.affiliate-card p,
.issue-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.step {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.issue-list {
  display: grid;
  gap: 16px;
}

.issue-list article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.panel {
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(89, 97, 109, 0.22), transparent 42%),
    var(--surface);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 0.72fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
}

.timeline span {
  margin-bottom: 0;
}

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

.global-grid article {
  padding: 22px;
}

.global-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.08rem;
}

.mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.mini-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.mini-grid strong,
.mini-grid span {
  display: block;
}

.mini-grid span {
  margin-top: 6px;
  color: var(--muted);
}

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

.affiliate-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 42%),
    var(--surface);
}

.affiliate-card h3,
.affiliate-card p {
  margin-bottom: 0;
}

.affiliate-label {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--graphite);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  color: var(--text);
  font-weight: 850;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.affiliate-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.pending-link {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(212, 55, 63, 0.38);
  border-radius: 999px;
  background: rgba(212, 55, 63, 0.1);
  color: var(--graphite);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtle-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration-color: rgba(168, 178, 193, 0.55);
}

.affiliate-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.affiliate-note strong {
  color: var(--text);
}

.cta {
  padding: clamp(32px, 5vw, 56px);
  margin: 52px 0 72px;
  border-color: rgba(14, 110, 184, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 40, 50, 0.05), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(14, 110, 184, 0.06), transparent 38%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.cta a {
  color: var(--text);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(14, 110, 184, 0.04)),
    linear-gradient(90deg, rgba(201, 40, 50, 0.03), transparent 40%);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-r32 .model-spec-strip {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer-brand {
  display: grid;
  gap: 8px;
}

.site-footer-model {
  margin: 0;
  color: var(--graphite);
  font-family: var(--display-font);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-disclaimer {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .hero--r32 {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 40px 0 48px;
  }

  .hero--r32 .hero-copy,
  .hero--r32 .hero-visual,
  .hero--r32 .member-hero-card,
  .hero--r32 .hero-card {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 48px;
  }

  .theme-r32::after {
    display: none;
  }

  .guide-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visitor-map-layout {
    grid-template-columns: 1fr;
  }

  .world-map {
    min-height: 420px;
  }

  .garage-cta {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    justify-content: flex-start;
  }

  .nav {
    justify-content: flex-start;
    gap: 4px;
  }

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

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

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .site-footer-r32 {
    grid-template-columns: 1fr;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-r32 .model-spec-strip {
    justify-content: flex-start;
  }

  .r32-masthead {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .hero--r32,
  .split,
  .garage-cta,
  .share-panel,
  .owner-hero,
  .trust-panel,
  .empty-garage-panel,
  .visitor-map-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    transform: none;
  }

  .hero--r32 .hero-copy,
  .hero--r32 .hero-visual,
  .hero--r32 .member-hero-card,
  .hero--r32 .hero-card {
    grid-column: auto;
  }

  .brand-model {
    font-size: 0.92rem;
  }

  .brand-era {
    font-size: 0.64rem;
  }

  .cards,
  .guide-index,
  .community-feed-list,
  .random-garage-grid,
  .garage-grid,
  .admin-stat-grid,
  .car-photo-grid,
  .photo-manage-grid,
  .risk-map,
  .global-grid,
  .affiliate-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

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

  .toc-card {
    position: static;
  }

  .world-map {
    min-height: 470px;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 22px, var(--max-width));
  }

  .hero {
    padding-top: 46px;
  }

  .hero-actions,
  .garage-cta-actions,
  .button {
    width: 100%;
  }

  .cards,
  .guide-index,
  .community-feed-list,
  .random-garage-grid,
  .garage-grid,
  .admin-stat-grid,
  .car-photo-grid,
  .photo-manage-grid,
  .hero-stats,
  .risk-map,
  .global-grid,
  .affiliate-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .world-map {
    min-height: 620px;
  }

  .map-marker {
    min-width: 92px;
  }

  .marker-europe {
    top: 17%;
    left: 8%;
  }

  .marker-east-asia {
    top: 24%;
    left: 12%;
  }

  .marker-japan {
    top: 34%;
    left: 58%;
  }

  .marker-southeast-asia {
    top: 49%;
    left: 28%;
  }

  .marker-oceania {
    top: 61%;
    left: 51%;
  }

  .marker-north-america {
    top: 74%;
    right: 24%;
  }

  .marker-latin-america {
    top: 84%;
    right: 10%;
  }
}

.founder-badge {
  max-width: 720px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(14, 110, 184, 0.14);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.founder-badge strong {
  color: var(--graphite);
  font-weight: 700;
}

.community-join-cta {
  margin-top: 0;
}

.share-community-section {
  margin-top: 0;
}

.share-community-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.share-community-card textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.share-community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sticky-join-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(14, 110, 184, 0.14);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(16px) saturate(140%);
}

.sticky-join-bar p {
  margin: 0;
  color: var(--graphite);
  font-weight: 850;
}

.sticky-join-bar[hidden] {
  display: none;
}

body:has(.sticky-join-bar:not([hidden])) {
  padding-bottom: 92px;
}

@media (max-width: 720px) {
  .sticky-join-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .sticky-join-bar .button {
    width: 100%;
    justify-content: center;
  }
}
