/* fretfight — support page (/support).
 *
 * Only this page loads this file. Tokens, typography and buttons come from
 * `styles.css`, so the page stays visually consistent with the landing and the
 * player account pages without new fonts or libraries.
 */

.support-shell {
  padding-bottom: 0;
}

.support-footer {
  padding-top: 0;
}

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

.support-root {
  min-height: 40vh;
  overflow-wrap: anywhere;
}

.support-root[aria-busy="true"] {
  opacity: 0.75;
}

.support-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 40px 0;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
}

.support-state h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.support-state p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- shared section shell ---------- */

.support-section {
  margin-top: clamp(38px, 6vw, 68px);
}

.support-section:first-child {
  margin-top: 0;
}

.support-title {
  margin: 0;
  font-size: clamp(1.4rem, 3.1vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.support-title p {
  margin: 0;
}

.support-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.16rem);
  line-height: 1.5;
}

.support-subtitle p {
  margin: 0;
}

.support-prose {
  margin-top: 16px;
  color: #d6dfe9;
  font-size: 0.98rem;
  line-height: 1.65;
}

.support-prose p {
  margin: 0 0 12px;
}

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

.support-prose ul,
.support-prose ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.support-prose li {
  margin: 0 0 6px;
}

.support-prose a,
.support-card a,
.faq-panel a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-prose--muted {
  color: var(--muted);
}

.support-head {
  max-width: 760px;
}

/* ---------- hero ---------- */

.support-hero {
  margin-top: 34px;
}

.support-hero__inner {
  position: relative;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 12% 0%, rgba(243, 196, 81, 0.16), transparent 46%),
    linear-gradient(165deg, rgba(18, 27, 37, 0.96), rgba(7, 12, 17, 0.96));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
}

.support-hero__inner .support-title {
  margin-top: 6px;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 800;
}

.support-hero .kicker {
  margin-bottom: 4px;
}

.support-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.support-methods__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}

.support-methods__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.support-method-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  color: var(--gold);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.support-method-link:hover {
  color: var(--gold-strong);
}

/* ---------- duels ---------- */

.support-duels__card {
  position: relative;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(243, 196, 81, 0.32);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(155deg, rgba(243, 196, 81, 0.11), rgba(9, 14, 20, 0.96) 55%),
    var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 26px 60px rgba(0, 0, 0, 0.38);
}

.support-duels__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--gold), rgba(243, 196, 81, 0));
}

.support-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border: 1px solid rgba(243, 196, 81, 0.4);
  border-radius: 999px;
  background: rgba(243, 196, 81, 0.12);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.support-badge p {
  margin: 0;
}

.support-prose--lead {
  margin-top: 18px;
  font-size: clamp(1rem, 1.7vw, 1.1rem);
}

.support-closing {
  margin: 22px 0 0;
  color: var(--gold);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.support-closing p {
  margin: 0;
}

.support-duels__button {
  margin-top: 24px;
}

.support-duels__button p {
  margin: 0;
}

/* ---------- card grids ---------- */

.support-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  margin-top: 26px;
}

.support-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(16, 24, 33, 0.92), rgba(8, 13, 18, 0.94));
  transition: transform 160ms ease, border-color 160ms ease;
}

.support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 196, 81, 0.32);
}

.support-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border: 1px solid rgba(243, 196, 81, 0.28);
  border-radius: 12px;
  background: rgba(243, 196, 81, 0.08);
  color: var(--gold);
}

.support-icon-svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-card__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.support-card__title p {
  margin: 0;
}

.support-card__text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.support-card__text p {
  margin: 0;
}

.support-card__link {
  margin-top: 14px;
  font-size: 0.87rem;
  font-weight: 600;
}

.support-card__link p {
  margin: 0;
}

/* ---------- why ---------- */

.support-why {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.support-ideas {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.support-ideas__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 600;
}

.support-ideas__item span:last-child p {
  margin: 0;
}

.support-ideas__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(110, 231, 168, 0.12);
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.support-faq__list {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item__heading {
  margin: 0;
}

.faq-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.faq-trigger:hover {
  background: rgba(243, 196, 81, 0.05);
}

.faq-trigger:focus-visible {
  outline: 2px solid rgba(243, 196, 81, 0.7);
  outline-offset: -2px;
}

.faq-question p {
  margin: 0;
}

.faq-sign {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, opacity 160ms ease;
}

.faq-sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .faq-sign::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-panel {
  padding: 0 20px 20px;
}

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

.faq-panel .support-prose {
  margin-top: 0;
  color: #d6dfe9;
  font-size: 0.93rem;
}

/* ---------- CTA ---------- */

.support-cta__inner {
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(243, 196, 81, 0.3);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 88% 0%, rgba(243, 196, 81, 0.18), transparent 52%),
    linear-gradient(160deg, rgba(24, 33, 44, 0.96), rgba(7, 12, 17, 0.96));
}

.support-slogan {
  margin: 26px 0 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.support-slogan p {
  margin: 0;
}

/* ---------- custom HTML/CSS fragment ---------- */

.support-custom {
  padding-top: 8px;
}

.support-custom h2,
.support-custom h3 {
  margin: 24px 0 10px;
  letter-spacing: -0.01em;
}

.support-custom p {
  margin: 0 0 12px;
  color: #d6dfe9;
}

.support-custom ul,
.support-custom ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.support-custom a {
  color: var(--gold);
}

/* ---------- footer ---------- */

.support-footer-note {
  margin-top: 26px;
  color: rgba(141, 156, 171, 0.75);
  font-size: 0.8rem;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .support-hero {
    margin-top: 22px;
  }

  .support-hero__inner,
  .support-duels__card,
  .support-why,
  .support-cta__inner {
    padding: 22px 18px;
  }

  .support-methods {
    flex-direction: column;
    align-items: stretch;
  }

  .support-methods__item,
  .support-methods .btn {
    width: 100%;
  }

  .support-methods .btn {
    justify-content: center;
  }

  .faq-trigger {
    padding: 15px 16px;
  }

  .faq-panel {
    padding: 0 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-card:hover {
    transform: none;
  }
}
