@import url("./visual-foundations.css?v=20260906-visual-refinement-v1");
:root { color-scheme: dark; --bg: var(--brand-bg); --text: var(--brand-text); --muted: #bebfbe; --gold: var(--brand-accent); --gold-light: var(--brand-accent-light); --line: #353738; --max: 1440px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-color: #776339 #141617; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--brand-font); }
::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 50; padding: 14px; background: var(--gold); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.public-header { position: relative; z-index: 30; display: flex; align-items: center; gap: 36px; min-height: 82px; padding: 0 max(40px,calc((100vw - var(--max))/2)); border-bottom: 1px solid #b696493b; background: #090a0bf2; }
.brand, .footer-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand span,.footer-brand span { display: grid; }
.brand strong { font-size: 28px; font-weight: 800; letter-spacing: .05em; line-height: 1.1; }
.brand small { font-size: 10px; letter-spacing: .24em; margin-top: 4px; }
.main-nav { display: flex; gap: 32px; margin-left: 30px; }
.main-nav a { display: grid; align-items: center; min-height: 48px; font-weight: 650; }
.main-nav a:hover { color: var(--gold-light); }
.login-button,.session-profile { margin-left: auto; flex-shrink: 0; }
.login-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 22px; border: 1px solid var(--gold); border-radius: 8px; color: var(--gold-light); font-size: 13px; font-weight: 800; box-shadow: 0 6px 22px #0005; }
.login-button:hover { background: #e0b95615; box-shadow: 0 8px 24px #0008; }
.session-profile { display: flex; gap: 10px; align-items: center; max-width: 230px; }
.session-profile-avatar { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; display: grid; place-items: center; background: #4d3f20; }
.session-profile > span:last-child { min-width: 0; display: grid; }
.session-profile strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.session-profile small { color: var(--muted); font-size: 11px; }
.public-menu-button { display: none; }
.hero { min-height: 410px; display: flex; align-items: center; padding: 50px max(40px,calc((100vw - var(--max))/2)); position: relative; background: linear-gradient(90deg,#090a0b59,transparent 75%),url('/public/home-community-hero-v1.webp') center 52%/cover; border-bottom: 1px solid #6a5c3266; }
.hero-copy { position: relative; max-width: 800px; padding-bottom: 12px; }
.hero h1 { margin: 0; font-size: clamp(36px,4.15vw,64px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 4px 20px #0008; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p { max-width: 680px; font-size: 16px; margin: 18px 0 24px; color: #ededed; text-shadow: 0 2px 10px #000; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.primary-action,.secondary-action { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px; padding: 12px 26px; border-radius: 8px; font-size: 14px; font-weight: 800; transition: box-shadow .2s ease,background-color .2s ease; }
.primary-action { color: #111008; background: linear-gradient(180deg,#f7d675,#d5aa42); border: 1px solid #ffdf83; box-shadow: 0 8px 24px #0008,inset 0 1px 0 #ffe89f; }
.primary-action:hover { box-shadow: 0 10px 28px #000b,inset 0 1px 0 #fff1c2; background: var(--gold-light); }
.secondary-action { border: 1px solid #dddcd1; background: #090a0b91; }
.secondary-action:hover { background: #25241d; }
.force-section,.live-section,.promote-section,footer { width: min(calc(100% - 80px),var(--max)); margin: 0 auto; }
.force-section { padding: 22px 0 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
h2 { margin: 0; font-size: clamp(25px,2.6vw,38px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.force-section .section-heading > p { font-size: 13px; }
.force-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.force-card { position: relative; display: grid; grid-template-columns: 34% 1fr; min-height: 166px; overflow: hidden; border: 2px solid #d4b159; border-radius: 14px; background: #101213; box-shadow: 0 10px 28px #0007,inset 0 1px 0 #f8d87566; }
.force-identity { display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; text-shadow: 0 2px 8px #000; background: linear-gradient(90deg,transparent 40%,#101213),linear-gradient(0deg,#090a0b99,transparent 75%),url('/public/home-community-hero-v1.webp') 53% 38%/auto 220px; }
.force-valley .force-identity { background-image: linear-gradient(90deg,transparent 40%,#101213),linear-gradient(0deg,#090a0ba8,transparent 75%),url('/public/home-valley-landscape-v1.webp'); background-position: center,center,37% 28%; background-size: auto,auto,auto 210px; }
.force-identity h3 { margin: 0; font-size: clamp(25px,3.15vw,48px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.force-identity > span { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; margin-top: 8px; }
.force-metrics { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; align-content: center; margin: 0; padding: 20px 16px 20px 0; }
.force-metrics > div { display: flex; flex-direction: column-reverse; justify-content: center; align-items: center; padding: 2px 12px; min-width: 0; }
.force-metrics > div + div { border-left: 1px solid #a38b494d; }
.force-metrics dt { font-size: 13px; margin-top: 7px; text-align: center; white-space: nowrap; }
.force-metrics dd { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: clamp(29px,3vw,46px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.force-metrics > div:first-child dd { color: var(--gold-light); }
.force-metrics svg { width: 27px; height: 27px; }
.duty-dot { width: 12px; height: 12px; border-radius: 50%; background: #39d98a; }
.is-unavailable .duty-dot { background: #87898c; }
.force-status { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 28px; margin-top: 9px; }
.force-status p,.force-explanation { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.force-explanation { color: #b2b3b5; }
#force-retry { background: transparent; border: 1px solid #7e6b39; border-radius: 6px; padding: 8px 12px; color: var(--gold-light); }
.live-section { padding: 22px 0 30px; border-top: 1px solid #353738; }
.live-controls { display: grid; gap: 8px; justify-items: end; }
.live-filters { display: flex; gap: 10px; }
.live-filters button { min-width: 82px; min-height: 38px; padding: 8px 16px; border: 1px solid #494b4d; border-radius: 8px; background: #141617; font-size: 12px; font-weight: 750; }
.live-filters button.active { border-color: #f4d27a; background: linear-gradient(#f5d47f,#d5aa42); color: #171307; box-shadow: 0 5px 14px #0005; }
.live-filters button:hover:not(.active) { border-color: var(--gold); }
.live-summary { font-size: 11px; color: var(--muted); }
.live-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.live-card { overflow: hidden; border: 1px solid #484b4d; border-radius: 10px; background: #141617; transition: box-shadow .2s ease,border-color .2s ease; }
.live-card:hover { border-color: #b59b54; box-shadow: 0 12px 26px #0008; }
.live-thumb { display: block; position: relative; aspect-ratio: 2.7/1; overflow: hidden; background: #22272b; }
.live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-badge,.card-guild-badge { position: absolute; top: 10px; padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.live-badge { left: 10px; color: white; background: #c62e39; }
.card-guild-badge { right: 10px; color: white; background: #090a0bdb; }
.live-info { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.live-info > div:first-child { min-width: 0; display: grid; gap: 4px; }
.live-info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-info span { color: var(--muted); font-size: 11px; }
.live-card-actions { display: grid; flex-shrink: 0; gap: 5px; text-align: center; }
.live-card-actions a { border: 1px solid #8b8d8b; border-radius: 6px; padding: 8px 10px; font-size: 11px; font-weight: 700; }
.card-player-action { border: 0; background: transparent; padding: 4px; color: var(--gold-light); font-size: 11px; }
.featured-live { display: grid; grid-template-columns: 2fr 1fr; overflow: hidden; margin: 0 0 20px; background: #141617; border: 1px solid #7f703e; border-radius: 12px; }
.featured-player { position: relative; aspect-ratio: 16/9; }
.featured-player-launch,.featured-player iframe { display: block; position: relative; width: 100%; height: 100%; border: 0; background: #090a0b; padding: 0; }
.featured-player-launch img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.featured-player-play { position: absolute; top: 40%; left: 46%; color: var(--gold-light); }
.featured-player-play svg { width: 40px; height: 40px; fill: currentColor; }
.featured-player-label { position: absolute; bottom: 20%; left: 0; width: 100%; font-weight: 750; }
.featured-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px; gap: 24px; }
.featured-copy > div { display: grid; gap: 10px; }
.featured-copy strong { font-size: 24px; overflow-wrap: anywhere; }
.featured-copy span { color: var(--muted); }
.featured-copy a { color: var(--gold-light); text-decoration: underline; }
.live-empty { display: grid; justify-items: center; gap: 12px; padding: 42px 20px; border: 1px dashed #595044; border-radius: 12px; text-align: center; color: var(--muted); }
.live-empty strong { color: var(--text); font-size: 18px; }
.empty-icon { display: none; }
.live-skeleton { aspect-ratio: 16/11; border-radius: 10px; background: #191b1d; }
.promote-section { display: grid; grid-template-columns: 1fr 1.8fr; gap: 35px; align-items: center; padding: 28px 32px; background: #141617; border: 1px solid #676043; border-radius: 12px; }
.promote-section .eyebrow { display: none; }
.promote-section h2 { font-size: 24px; color: var(--gold-light); }
.promote-section p { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
.promote-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.promote-steps li > span { display: none; }
.promote-steps strong { font-size: 13px; }
.promote-steps p { font-size: 12px; }
.promote-section code { color: var(--gold-light); }
footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); }
.footer-brand img { width: 30px; height: 30px; object-fit: contain; }
.footer-brand strong { font-size: 13px; color: var(--text); }
.footer-brand small { font-size: 9px; letter-spacing: .12em; }
footer p,footer > small { font-size: 11px; }
@media (max-width: 1100px) {
  .public-header { gap: 20px; padding: 10px 24px; }
  .brand strong { font-size: 23px; }
  .brand img { width: 50px; height: 50px; }
  .main-nav { margin-left: 0; gap: 18px; }
  .main-nav a { font-size: 12px; }
  .hero { padding: 50px 30px; min-height: 380px; }
  .force-section,.live-section,.promote-section,footer { width: calc(100% - 48px); }
  .force-card { grid-template-columns: 28% 1fr; }
  .force-identity { padding: 14px; }
  .force-metrics { padding-right: 8px; }
  .force-metrics > div { padding: 0 7px; }
  .force-metrics dt { white-space: normal; font-size: 12px; }
  .force-metrics dd { gap: 6px; }
  .force-metrics svg { width: 20px; }
  .live-info { align-items: flex-start; flex-direction: column; }
  .live-card-actions { width: 100%; grid-template-columns: 1fr 1fr; }
  .promote-section { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .public-header { min-height: 76px; gap: 12px; padding: 10px 18px; flex-wrap: wrap; }
  .brand img { width: 42px; height: 42px; }
  .brand { gap: 9px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 7px; letter-spacing: .16em; }
  .login-button { font-size: 11px; min-height: 42px; padding: 8px 12px; }
  .public-menu-button { display: grid; place-items: center; background: transparent; border: 1px solid #555043; width: 42px; height: 42px; border-radius: 7px; margin-left: auto; order: 3; }
  .public-menu-button > span:first-child { width: 17px; height: 2px; background: var(--text); box-shadow: 0 6px 0 var(--text),0 -6px 0 var(--text); }
  .main-nav { display: none; width: 100%; order: 4; }
  .public-nav-open .main-nav { display: flex; justify-content: space-between; }
  .main-nav a { font-size: 13px; }
  .session-profile { max-width: 135px; }
  .session-profile > span:last-child { display: none; }
  .hero { min-height: 430px; align-items: flex-end; padding: 110px 22px 34px; background-position: center,67% center; background-image: linear-gradient(0deg,#090a0bef,#090a0b42 85%),url('/public/home-community-hero-v1.webp'); }
  .hero-copy { max-width: 100%; padding: 0; }
  .hero h1 { font-size: clamp(32px,7vw,46px); }
  .hero h1 br { display: none; }
  .hero p { font-size: 14px; max-width: 42ch; }
  .hero-actions { gap: 10px; }
  .primary-action,.secondary-action { padding: 12px 16px; min-height: 48px; font-size: 12px; }
  .force-section,.live-section,.promote-section,footer { width: calc(100% - 36px); }
  .force-section { padding-top: 26px; }
  .section-heading { flex-wrap: wrap; gap: 12px; }
  .force-section .section-heading { display: block; }
  .force-section .section-heading > p { margin-top: 9px; font-size: 12px; }
  .force-grid { grid-template-columns: 1fr; gap: 12px; }
  .force-card { min-height: 138px; grid-template-columns: 30% 1fr; }
  .force-identity h3 { font-size: 30px; }
  .force-identity > span { font-size: 8px; }
  .force-metrics dd { font-size: 34px; }
  .force-metrics dt { font-size: 11px; }
  .force-status { align-items: center; flex-wrap: wrap; }
  .force-explanation { margin-top: 3px; font-size: 11px; }
  .live-controls { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .live-filters { gap: 8px; }
  .live-filters button { min-height: 44px; min-width: 72px; }
  .live-thumb { aspect-ratio: 16/9; }
  .live-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .live-card-actions { grid-template-columns: 1fr; }
  .live-card-actions a,.card-player-action { min-height: 40px; display: grid; place-items: center; }
  .featured-live { grid-template-columns: 1fr; }
  .featured-copy { padding: 18px; }
  .promote-section { padding: 24px; }
  .promote-steps { grid-template-columns: 1fr; gap: 20px; }
  footer { flex-wrap: wrap; justify-content: center; text-align: center; padding: 28px 0; gap: 10px 20px; }
  footer p { width: 100%; margin: 0; }
}
@media (max-width: 440px) {
  .public-header { gap: 8px; padding: 10px 14px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 6px; }
  .brand img { width: 35px; height: 35px; }
  .login-button { font-size: 10px; padding: 8px; }
  .public-menu-button { width: 36px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero { min-height: 450px; }
  .hero h1 { font-size: 34px; }
  .force-card { grid-template-columns: 28% 1fr; }
  .force-identity { padding: 12px; }
  .force-identity h3 { font-size: 25px; }
  .force-metrics dd { font-size: 30px; }
  .force-metrics svg { width: 17px; height: 20px; }
  .duty-dot { width: 8px; height: 8px; }
  .live-grid { grid-template-columns: 1fr; }
  .live-info { flex-direction: row; align-items: center; }
  .live-card-actions { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }
