/* Public BOA player info — /boas/info/* (separate from gated /faq/) */

html:has(body.got-public-info-page) {
  scroll-behavior: smooth;
}

body.got-public-info-page {
  padding-bottom: 48px;
}

.pub-info-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.pub-info-hero {
  text-align: center;
  margin-bottom: 24px;
}

.pub-info-hero .boa-hero-logo {
  max-width: min(160px, 46vw);
  margin: 0 auto 18px;
  display: block;
}

.pub-info-hero h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 8px;
}

.pub-info-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sub-nav */
.pub-info-nav {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 24px;
  position: sticky;
  top: 8px;
  z-index: 20;
}

.pub-info-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-info-nav-list a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(196, 160, 53, 0.28);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(42, 48, 32, 0.95) 0%, rgba(26, 30, 22, 0.98) 100%);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.2;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pub-info-nav-list a:hover,
.pub-info-nav-list a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-bright);
  outline: none;
}

.pub-info-nav-list a.is-active {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-dim);
}

.pub-info-nav-list a.pub-info-nav-staff {
  border-style: dashed;
  border-color: rgba(154, 150, 136, 0.45);
  color: var(--muted);
  margin-left: auto;
}

.pub-info-nav-list a.pub-info-nav-staff:hover,
.pub-info-nav-list a.pub-info-nav-staff:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* Cards / sections */
.pub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
  min-height: 110px;
}

.pub-card:hover,
.pub-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.pub-card-label {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.pub-card-desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

.pub-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 20px;
  margin-bottom: 16px;
  scroll-margin-top: 96px;
  overflow: hidden;
}

#player-faq {
  scroll-margin-top: 96px;
}

.pub-section h2 {
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.pub-section h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 18px 0 8px;
}

.pub-section p,
.pub-section li {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
}

.pub-section ul,
.pub-section ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.pub-section a,
.pub-faq-a a {
  color: var(--link);
}

.pub-section a:hover,
.pub-faq-a a:hover {
  color: var(--link-hover);
}

.pub-ext::after {
  content: ' ↗';
  font-size: 0.75em;
  opacity: 0.75;
}

.pub-placeholder {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px dashed rgba(196, 160, 53, 0.45);
  border-radius: 4px;
  background: rgba(196, 160, 53, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.pub-callout {
  background: var(--gold-dim);
  border: 1px solid rgba(196, 160, 53, 0.35);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pub-callout strong {
  color: var(--accent-bright);
}

/* Process steps */
.pub-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pub-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pub-step-num {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 4.5rem;
}

.pub-step-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

/* Compare cards */
.pub-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pub-compare-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}

.pub-compare-card h3 {
  margin-top: 0;
}

.pub-compare-card .pub-quote {
  font-size: 1rem;
  color: var(--accent-bright);
  margin: 0 0 10px;
  font-weight: 600;
}

/* Checklist */
.pub-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-checklist li {
  position: relative;
  padding: 10px 12px 10px 36px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pub-checklist li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  box-sizing: border-box;
}

/* Discord / CTA */
.pub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pub-discord-btn,
a.pub-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid rgba(88, 101, 242, 0.55);
  background: linear-gradient(180deg, #5865f2 0%, #4752c4 100%);
  color: #fff !important;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.pub-discord-btn:hover,
a.pub-discord-btn:hover {
  filter: brightness(1.06);
}

.pub-btn-secondary,
a.pub-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.28);
  color: var(--accent-bright) !important;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub-btn-secondary:hover,
a.pub-btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.pub-btn-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.pub-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pub-link-list a {
  display: block;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--link);
}

.pub-link-list a:hover {
  border-color: var(--accent);
  color: var(--link-hover);
}

.pub-guide-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pub-guide-topics li {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pub-guide-topics strong {
  display: block;
  color: var(--accent-bright);
  margin-bottom: 4px;
  font-family: var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.pub-guide-topics span {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
  display: block;
}

/* Public FAQ accordion */
.pub-faq-category {
  margin-bottom: 22px;
}

.pub-faq-category-title {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 28px 0 14px;
  padding: 0 0 10px 14px;
  border-radius: 0;
  background: none;
  border-left: 3px solid var(--gold);
  border-bottom: 1px solid rgba(196, 160, 53, 0.45);
  color: var(--gold);
  text-shadow: 0 0 18px rgba(196, 160, 53, 0.22);
}

.pub-faq-category:first-child .pub-faq-category-title {
  margin-top: 0;
}

.pub-faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.pub-faq-item.is-open {
  border-color: var(--border-light);
}

.pub-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.pub-faq-item:nth-of-type(odd) .pub-faq-q {
  background-color: #182412;
}

.pub-faq-item:nth-of-type(even) .pub-faq-q {
  background-color: #10180c;
}

.pub-faq-item:nth-of-type(odd) .pub-faq-q-text {
  color: var(--accent-bright);
}

.pub-faq-item:nth-of-type(even) .pub-faq-q-text {
  color: #7d9a4a;
}

.pub-faq-q:hover,
.pub-faq-q:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.pub-faq-q-text {
  flex: 1;
  min-width: 0;
}

.pub-faq-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pub-faq-permalink {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-deep);
  color: var(--muted);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s, background 0.15s;
}

.pub-faq-q:hover .pub-faq-permalink,
.pub-faq-item.is-open .pub-faq-permalink,
.pub-faq-permalink:focus-visible {
  opacity: 1;
}

.pub-faq-permalink:hover,
.pub-faq-permalink[data-copied='1'] {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.pub-faq-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pub-faq-item.is-open .pub-faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-bright);
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 2px 8px rgba(143, 166, 82, 0.15);
}

.pub-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pub-faq-a-inner {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  background-color: #080908;
  background-image: url("/assets/images/faq-answer-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pub-faq-a-inner p {
  margin: 0 0 0.75em;
  font-size: 0.92rem;
  line-height: 1.65;
}

.pub-faq-a-inner p:last-child {
  margin-bottom: 0;
}

.pub-faq-a-inner ul {
  margin: 0 0 0.75em;
  padding-left: 1.2rem;
}

.pub-subnote {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(196, 160, 53, 0.08);
  border-radius: 0 6px 6px 0;
}

.pub-wiki-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid rgba(196, 160, 53, 0.45);
  background: linear-gradient(180deg, rgba(42, 48, 32, 0.98) 0%, rgba(26, 30, 22, 1) 100%);
  color: var(--accent-bright) !important;
  text-decoration: none !important;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.pub-wiki-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--gold) !important;
}

.pub-section-img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin: 0 0 14px;
}

.pub-img-right {
  margin-left: auto;
  margin-right: 0;
  width: auto;
  max-width: min(100%, 420px);
}

.pub-section > img:not(.pub-section-img) {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin: 0 0 14px;
}

.pub-expect-card {
  margin-top: 12px;
  padding: 16px 16px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pub-expect-card p {
  margin: 0 0 10px;
}

.pub-expect-lead {
  color: var(--accent-bright);
  margin-top: 8px !important;
}

.pub-expect-card ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.pub-footnote {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .pub-compare {
    grid-template-columns: 1fr;
  }

  .pub-info-hero h1 {
    font-size: 1.35rem;
  }

  .pub-info-nav {
    position: static;
  }

  .pub-steps li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pub-img-right {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.got-public-info-page) {
    scroll-behavior: auto;
  }

  .pub-card {
    transition: none;
  }

  .pub-faq-chevron,
  .pub-faq-a {
    transition: none !important;
  }

  .pub-faq-a-inner {
    background-image: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
