/* Game Trainer Club — locker-plaque identity.
   Brass tag on night felt. Not the old lime/glass hub, not a SaaS card kit. */

:root {
  --bg: #101612;
  --bg-2: #171e19;
  --panel: #1c2620;
  --panel-2: #24302a;
  --panel-3: #2c3a32;
  --line: rgba(212, 168, 75, 0.28);
  --line-2: rgba(243, 238, 228, 0.14);
  --txt: #f3eee4;
  --txt-2: #c9c0ae;
  --dim: #8d8676;
  --acc: #d4a84b;
  --acc-2: #7ea6ff;
  --acc-rgb: 212, 168, 75;
  --acc-2-rgb: 126, 166, 255;
  --acc-dim: rgba(212, 168, 75, 0.16);
  --lime: #d4a84b;
  --ok: #7dba7a;
  --display: "Unbounded", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 3px;
  --radius-sm: 2px;
  --shell: 1280px;
  --header-h: 64px;
}

html { background: #0c110e; }

body.club {
  background: #0c110e;
  color: var(--txt);
}

body.club .bg-aura,
body.club .bg-floor {
  display: none;
}

body.club .site-bg {
  display: block;
  z-index: 0;
  background: #0c110e url("../video/hub-bg.jpg") center / cover no-repeat;
}

body.club .site-bg-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.86) contrast(1.04) brightness(0.82) sepia(0.06);
}

body.club::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(212, 168, 75, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(12, 17, 14, 0.2) 0%, rgba(12, 17, 14, 0.4) 48%, rgba(12, 17, 14, 0.66) 100%);
}

html body.club::after {
  z-index: 1;
  opacity: 0.04;
}

body.club .top { z-index: 40; }
body.club main,
body.club .foot {
  position: relative;
  z-index: 2;
}
body.club .tabbar { z-index: 45; }

body.club .top {
  background: rgba(21, 28, 24, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

body.club .top .shell {
  align-items: center;
  gap: 18px;
}

body.club .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--txt);
  flex-shrink: 0;
  padding: 2px 0;
  transition: transform 0.32s cubic-bezier(0.22, 0.7, 0.2, 1), filter 0.32s ease;
}

body.club .brand:hover {
  color: var(--txt);
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 14px rgba(var(--acc-rgb), 0.22));
}

body.club .brand .md-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

body.club .brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: nowrap;
}

body.club .brand-tag {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0c120e;
  line-height: 1;
  padding: 5px 9px 4px;
  border-radius: 2px;
  background: linear-gradient(
    105deg,
    #9bdc3a 0%,
    var(--acc) 38%,
    #e8d06a 68%,
    var(--acc) 100%
  );
  background-size: 220% 100%;
  animation: club-brand-tag-sheen 4.8s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(var(--acc-rgb), 0.35),
    0 6px 16px -6px rgba(var(--acc-rgb), 0.55);
}

body.club .brand-name {
  font-family: var(--display);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  animation: club-brand-name-glow 3.6s ease-in-out infinite;
}

body.club .brand:hover .brand-name {
  animation-duration: 2.2s;
}

body.club .brand small { display: none; }

@keyframes club-brand-tag-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes club-brand-name-glow {
  0%, 100% {
    text-shadow: 0 0 0 transparent;
    opacity: 0.94;
  }
  50% {
    text-shadow: 0 0 18px rgba(var(--acc-rgb), 0.35);
    opacity: 1;
  }
}

body.club .nav a {
  font-size: 14px;
  color: var(--txt-2);
}

body.club .nav a.on,
body.club .nav a:hover {
  color: var(--txt);
}

body.club .lang-pair {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
}

body.club .lang-pair a {
  padding: 6px 10px;
  font-size: 13px;
  color: var(--txt-2);
  text-decoration: none;
}

body.club .lang-pair a.on {
  background: var(--acc);
  color: #101612;
  font-weight: 700;
}

body.club .btn.primary {
  background: var(--acc);
  color: #101612;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
}

body.club .card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(243, 238, 228, 0.08);
  box-shadow: none;
}

body.club .card:hover {
  border-color: var(--acc);
}

body.club .foot {
  margin-top: 48px;
  padding: 32px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(18, 24, 20, 0.92);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}

body.club .foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
}

body.club .foot-lead {
  margin: 10px 0 0;
  max-width: 26rem;
  line-height: 1.55;
  font-size: 13px;
  color: var(--txt-2);
}

body.club .foot-heading {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-2);
}

body.club .foot-brand {
  gap: 10px;
  font-size: 18px;
  color: var(--txt);
}

body.club .foot-brand-name {
  line-height: 1.15;
}

body.club .foot-brand .md-mark {
  width: 32px;
  height: 32px;
}

body.club .foot-col-channels {
  gap: 10px;
}

body.club .foot-link {
  padding: 6px 0;
}

body.club .foot-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

body.club .foot-nav a {
  font-size: 13px;
  color: var(--dim);
}

body.club .foot-nav a:hover {
  color: var(--acc-2);
}

body.club .foot-bottom {
  margin-top: 26px;
  padding: 16px 0 8px;
  padding-right: clamp(16px, 12vw, 140px);
  border-top: 1px solid var(--line);
}

body.club .foot-copy {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}

@media (max-width: 900px) {
  body.club .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  body.club .foot-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body.club .foot-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  body.club .foot-nav {
    grid-template-columns: 1fr;
  }
  body.club .foot-bottom {
    padding-right: 16px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

body.club .tabbar a.on { color: var(--acc); }

/* Home: locker wall, not a stats hero */
.club-home { padding: 28px 0 64px; }

.club-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin: 0 auto 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  max-width: 52rem;
}

.club-plate h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 16ch;
}

.club-plate .lede {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--txt-2);
}

.club-plate-search {
  display: flex;
  gap: 8px;
  width: min(100%, 34rem);
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.club-plate-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--txt);
  font: inherit;
  padding: 8px 10px;
}

.club-plate-search input:focus { outline: none; }

.club-shelf-head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 18px;
  margin: 0 auto 18px;
}

.club-shelf-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.club-lockers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
}

.club-note {
  margin: 40px auto 0;
  max-width: 46rem;
  text-align: center;
}

.club-note h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.club-note p {
  margin: 0 auto;
  color: var(--txt-2);
  line-height: 1.6;
}

.club-langs {
  margin: 12px 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.club-langs a { color: var(--acc-2); }

html body.club .club-home .faq {
  max-width: 46rem;
  margin: 36px auto 0;
  text-align: left;
}

html body.club .club-home .faq h2 {
  text-align: center;
}

@media (max-width: 800px) {
  .club-plate { gap: 18px; }
  .club-plate h1 { max-width: none; }
}

/* Poster cards: overlay title, even rows, last row centered.
   Beats the late gotty.css "meta under image" rules. */
html body.club .club-lockers > .card,
html body.club .grid > .card {
  flex: 0 0 196px;
  width: 196px;
  max-width: 196px;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

html body.club .grid,
html body.club .grid.tight,
html body.club .grid.home-9,
html body.club .grid.home-10,
html body.club .grid.catalog-5 {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px !important;
}

html body.club .card {
  content-visibility: visible !important;
  contain: none !important;
}

html body.club .card .poster,
html body.club .grid .card .poster,
html body.club .club-lockers .card .poster {
  display: block !important;
  position: relative;
  aspect-ratio: 3 / 4 !important;
  height: auto !important;
  overflow: hidden;
  background: #101612;
}

html body.club .card .poster > img,
html body.club .grid .card .poster > img {
  position: absolute !important;
  inset: 0 !important;
  flex: none !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  object-fit: cover !important;
}

html body.club .card .shade {
  display: block !important;
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(12, 17, 14, 0.92) 74%);
  z-index: 2;
}

html body.club .card .meta {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  flex: none !important;
  background: none !important;
  border-top: 0 !important;
  padding: 12px 11px 10px !important;
  z-index: 3;
}

html body.club .card .name {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85) !important;
}

html body.club .card .feats {
  display: none;
}

html body.club .entry .side .card,
html body.club .entry .side .card .poster {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
}

html body.club .entry .side .card .poster {
  aspect-ratio: 16 / 9 !important;
}

html body.club .row,
html body.club .bar,
html body.club .catalog-search {
  justify-content: center;
}

html body.club .catalog-search {
  width: min(100%, 40rem);
  margin-left: auto;
  margin-right: auto;
}

html body.club h1,
html body.club .lead-text {
  text-align: center;
}

html body.club .lead-text {
  margin-left: auto;
  margin-right: auto;
  max-width: 46rem;
}

@media (max-width: 1100px) {
  html body.club .club-lockers > .card,
  html body.club .grid > .card {
    flex-basis: 172px;
    width: 172px;
    max-width: 172px;
  }
}

@media (max-width: 760px) {
  html body.club .club-lockers > .card,
  html body.club .grid > .card {
    flex-basis: calc(50% - 8px);
    width: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

html body.club .md-player-big {
  display: grid;
  width: 92px;
  height: 92px;
  border: 0;
  color: #fff;
  background: #ff0000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55), 0 0 0 9px rgba(255, 0, 0, .22);
}
html body.club .md-player-big svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}
html body.club .md-player.is-playing .md-player-big {
  opacity: 0;
  pointer-events: none;
}
html body.club .md-player-stage:hover .md-player-big {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  body.club * { animation: none !important; transition: none !important; }
  body.club .site-bg-video { display: none !important; }
}
