/* Public playing guides share the portal's theme, with a separate accent for each mode. */
.search-guide {
  --guide-accent: var(--accent);
  --guide-wash: color-mix(in srgb, var(--guide-accent) 8%, var(--panel));
}
.search-guide--friends { --guide-accent: var(--blue); }
.search-guide--tournament { --guide-accent: var(--gold); }

.search-guide .site-header {
  display: flex;
  min-height: 68px;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 0;
  padding: 12px max(20px, calc((100vw - 1200px) / 2));
}
.search-guide .brand {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 800;
}
.search-guide .site-header nav {
  display: flex;
  width: auto;
  order: 0;
  gap: 1.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--muted);
}
.search-guide .site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.search-guide .site-header nav a:hover { text-decoration: underline; }
.search-guide .site-header > .theme-control { display: block; }
.search-guide main {
  max-width: 1240px;
  margin: auto;
  padding: clamp(20px, 4vw, 48px) 20px 56px;
}

.search-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
  padding: clamp(24px, 4.5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--guide-wash);
  box-shadow: var(--shadow);
}
.search-guide--friends .search-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  background: var(--panel);
}
.search-guide--friends .search-hero-art { grid-column: 1; grid-row: 1; }
.search-guide--tournament .search-hero {
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  --ink: #f5f4ff;
  --muted: #c9c6e0;
  --line: #554575;
  --guide-accent: #cfff7b;
  --blue: #c3a9ff;
  --panel: #151529;
  color: var(--ink);
  background: radial-gradient(ellipse at 75% 20%, #33214b, transparent 68%), #11111f;
  padding: clamp(20px, 3vw, 38px);
}
.search-guide--tournament .search-hero .search-text-link { color: #dfcbff; }
.search-kicker {
  margin: 0 0 12px;
  color: var(--guide-accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.search-hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.search-guide--tournament .search-hero h1 { font-size: clamp(2.55rem, 4.6vw, 4.15rem); }
.search-lead {
  max-width: 38ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.55;
}
.search-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; }
.search-cta {
  display: inline-flex;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 16px;
  gap: 16px;
  border-radius: 10px;
  text-decoration: none;
}
.search-text-link { text-decoration: underline; text-underline-offset: .22em; font-weight: 700; }
.search-hero-art {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.search-hero-art img { display: block; width: 100%; height: auto; }
.search-guide--solo .search-hero-art img { aspect-ratio: 1.53; object-fit: cover; }
.search-guide--friends .search-hero-art img { aspect-ratio: 1.35; object-fit: cover; }

.search-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.search-facts div { padding: 16px clamp(12px, 3vw, 34px); }
.search-facts div + div { border-inline-start: 1px solid var(--line); }
.search-facts dt { font-size: clamp(.94rem, 1.7vw, 1.32rem); font-weight: 800; line-height: 1.2; }
.search-facts dd { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }

.search-demo {
  max-width: 880px;
  margin: 42px auto 0;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  scroll-margin-top: 16px;
}
.search-hero .search-demo { width: 100%; max-width: 525px; margin: 0 auto; padding: 12px; }
.search-demo h2 { margin: 0 0 12px; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: -.025em; }
.search-demo .search-kicker { margin-bottom: 5px; }
.search-demo-hook { margin: 0 0 10px; color: var(--muted); }
.search-hero .search-demo-copy { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.search-hero .search-demo-copy .search-kicker { order: 1; color: var(--blue); }
.search-hero .search-demo-hook { width: 100%; order: 2; }
.search-hero .search-demo h2 { margin-bottom: 5px; }
.search-demo video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #091525;
}
.search-demo figcaption { margin-top: 9px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.search-demo details { margin-top: 6px; line-height: 1.55; font-size: .86rem; }
.search-demo summary { padding-block: 4px; cursor: pointer; font-weight: 700; }

.search-body { margin: clamp(34px, 5vw, 60px) 0; }
.search-body > h2, .search-close h2 { margin: 0 0 20px; font-size: clamp(1.75rem, 3.2vw, 2.7rem); line-height: 1.1; letter-spacing: -.045em; }
.search-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.search-details section {
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.search-step { color: var(--guide-accent); font: 700 .8rem monospace; }
.search-details h3 { margin: 5px 0 10px; font-size: 1.2rem; line-height: 1.25; }
.search-details p { max-width: 57ch; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.search-body > p { margin: 20px 0 0; }
.search-close {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding: clamp(20px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--guide-wash);
}
.search-close h2 { margin: 0; }

.search-related { margin-top: 34px; }
.search-related h2 { margin: 0 0 12px; font-size: 1.16rem; }
.search-related ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.search-related a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 0; min-height: 44px; font-weight: 700; }
.search-related a:hover { text-decoration: underline; }
.search-related a span { color: var(--guide-accent); }
.search-guide a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.search-guide .site-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (max-width: 850px) {
  .search-guide .search-hero { grid-template-columns: minmax(0, 1fr); }
  .search-guide--friends .search-hero-art { grid-row: auto; }
  .search-hero h1, .search-guide--tournament .search-hero h1 { font-size: clamp(2.65rem, 8vw, 4rem); text-wrap: initial; }
  .search-guide .search-hero-art img { aspect-ratio: 2; }
  .search-hero .search-demo { max-width: 540px; }
}
@media (max-width: 560px) {
  .search-guide .site-header { padding-inline: 16px; gap: 4px 12px; }
  .search-guide .site-header nav { width: 100%; order: 3; justify-content: flex-start; }
  .search-guide main { padding-inline: 14px; }
  .search-guide .search-hero { padding: 20px; border-radius: 18px; }
  .search-facts div { padding: 11px 9px; }
  .search-facts dd { font-size: .75rem; }
  .search-details { grid-template-columns: minmax(0, 1fr); }
  .search-hero .search-demo { padding: 10px; }
}
