/* BIBI Gold Room.
   Direction C from the 2026-09-15 redesign. Values here are lifted from the artboards in
   the games repo (_docs/design/2026-09-15-bibi-games-redesign/DirectionC.dc.html), not
   rounded to a grid. The look rests on four things: a deep green-black ground, one
   champagne gold, hairline rules instead of boxes, and game art that bleeds behind a
   section under a scrim rather than sitting in a card. */

:root {
  --gr-ground: #070B08;
  --gr-gold: #D6B871;
  --gr-gold-bright: #EBD29A;
  --gr-rule: rgba(214, 184, 113, 0.22);
  --gr-rule-soft: rgba(214, 184, 113, 0.16);
  --gr-text: #EDE7DC;
  /* Body tones, lifted since the artboards. Those were drawn as flat art; on a real screen
     the same greys on a near-black ground read as grey smudge, not as text. */
  --gr-muted: #C2C8BB;
  --gr-dim: #AAB2A4;
  --gr-faint: #949C90;
  --gr-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --gr-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --gr-gutter: 64px;
  --gr-max: 1440px;
}

/* Weight 400, not the 300 the artboards used, and no antialiased override.
   Both were wrong on a dark ground for the same reason: light strokes on black bloom into
   the background and lose their edges, and -webkit-font-smoothing: antialiased thins every
   stroke further. Together they made ordinary paragraphs look out of focus. Jost at 400 is
   still the same typeface and the same page; it is simply in focus. */
body.bibi-goldroom {
  margin: 0;
  background: var(--gr-ground);
  color: var(--gr-text);
  font-family: var(--gr-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
}

.bibi-goldroom a { color: var(--gr-gold); text-decoration: none; }
.bibi-goldroom a:hover { color: var(--gr-gold-bright); }
.bibi-goldroom img { max-width: 100%; }

/* The browser hides [hidden] with `display: none`, and any author rule that sets a display
   beats it — .gr-card is `display: flex`, so the catalogue's search set the attribute on
   every non-matching card and not one of them went away. Two classes here, so this wins
   against the single-class rules that caused it. */
.bibi-goldroom [hidden] { display: none; }

.gr-shell { max-width: var(--gr-max); margin: 0 auto; overflow: hidden; }
.gr-pad { padding-left: var(--gr-gutter); padding-right: var(--gr-gutter); }

.gr-serif { font-family: var(--gr-display); font-weight: 400; }
.gr-caps {
  font-family: var(--gr-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
}

/* ---------- nav ---------- */
.gr-nav {
  display: flex; align-items: center; gap: 44px;
  height: 84px; border-bottom: 1px solid var(--gr-rule);
}
.gr-nav__logo { height: 26px; width: auto; display: block; }
.gr-nav__links { display: flex; gap: 32px; color: var(--gr-dim); margin: 0; padding: 0; list-style: none; }
.gr-nav__links a { color: inherit; }
.gr-nav__links .current-menu-item > a, .gr-nav__links a:hover { color: var(--gr-gold); }
.gr-nav__spacer { flex-grow: 1; }
.gr-nav__cta { color: var(--gr-gold); border: 1px solid rgba(214, 184, 113, 0.55); padding: 12px 22px; }

/* ---------- hero ---------- */
.gr-hero { position: relative; min-height: 620px; overflow: hidden; }
.gr-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gr-hero__scrim-radial {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 78% 40%, rgba(7,11,8,0) 0%, rgba(7,11,8,0.55) 48%, var(--gr-ground) 86%);
}
.gr-hero__scrim-linear {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gr-ground) 14%, rgba(7,11,8,0.6) 44%, rgba(7,11,8,0) 72%);
}
.gr-hero__body {
  position: relative; display: flex; flex-direction: column; gap: 26px;
  padding-top: 108px; padding-bottom: 72px; max-width: 660px;
}
.gr-hero__eyebrow { color: var(--gr-gold); }
.gr-hero h1 { margin: 0; font-weight: 300; font-size: 82px; line-height: 0.95; letter-spacing: -0.012em; }
.gr-hero h1 em { font-style: italic; color: var(--gr-gold); }
.gr-hero__rule { width: 96px; height: 1px; background: rgba(214, 184, 113, 0.55); }
.gr-hero__lede { margin: 0; font-size: 19px; line-height: 1.7; color: #C3C9BE; max-width: 500px; text-wrap: pretty; }
/* The three beats under the home headline. Brighter and larger than a lede because it is
   part of the claim, not an explanation of it. */
.gr-hero__lede--creed { font-size: 21px; line-height: 1.6; color: var(--gr-text); max-width: 560px; text-wrap: balance; }
.gr-hero__actions { display: flex; align-items: center; gap: 26px; padding-top: 8px; flex-wrap: wrap; }

/* Scoped through .bibi-goldroom on purpose. Two rules sit above this one and both have
   to be out-specified: hello-elementor's bare `a` (weaker) and our own `.bibi-goldroom a`
   (0,1,1). At a plain .gr-btn the gold link colour won and the button painted gold text
   on a gold block — an invisible label on the site's main call to action. */
.bibi-goldroom a.gr-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--gr-ground); background: var(--gr-gold); padding: 16px 30px; }
.bibi-goldroom a.gr-btn:hover { color: var(--gr-ground); background: var(--gr-gold-bright); }

/* ---------- key numbers ---------- */
.gr-figures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--gr-rule); border-bottom: 1px solid var(--gr-rule);
}
.gr-figures--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gr-figure { display: flex; flex-direction: column; gap: 10px; padding: 34px 34px 34px 0; border-right: 1px solid var(--gr-rule-soft); }
.gr-figure + .gr-figure { padding-left: 34px; }
.gr-figure:last-child { border-right: 0; padding-right: 0; }
.gr-figure__label { font-size: 11px; color: var(--gr-dim); }
.gr-figure__value { font-family: var(--gr-display); font-size: 46px; line-height: 1; font-weight: 400; }
.gr-figure__value--gold { color: var(--gr-gold); }
.gr-figure__note { font-size: 16px; line-height: 1.7; color: var(--gr-muted); }

/* ---------- data table + mechanics ---------- */
.gr-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 88px; padding-top: 70px; }
.gr-section-title { margin: 0 0 26px; color: var(--gr-gold); }
.gr-rows { display: flex; flex-direction: column; }
.gr-row { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--gr-rule-soft); font-size: 16px; }
.gr-row:last-child { border-bottom: 0; }
.gr-row__key { color: var(--gr-muted); }
.gr-row__value--gold { color: var(--gr-gold); font-weight: 500; }

.gr-mechanics { display: flex; flex-direction: column; gap: 28px; }
.gr-mechanic { display: flex; gap: 20px; }
.gr-mechanic__numeral { font-family: var(--gr-display); font-size: 26px; color: var(--gr-gold); line-height: 1.1; min-width: 34px; }
.gr-mechanic__name { font-family: var(--gr-display); font-size: 25px; font-weight: 500; display: block; margin-bottom: 7px; }
.gr-mechanic__text { font-size: 14.5px; line-height: 1.7; color: var(--gr-muted); }

/* ---------- catalogue ---------- */
.gr-filters { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 28px 0; border-bottom: 1px solid var(--gr-rule); }
.gr-search { flex: 1 1 280px; background: transparent; border: 0; border-bottom: 1px solid var(--gr-rule); color: var(--gr-text); font-family: var(--gr-body); font-size: 16px; padding: 10px 0; }
.gr-search::placeholder { color: var(--gr-faint); }
.gr-search:focus { outline: none; border-bottom-color: var(--gr-gold); }
.gr-pill { background: transparent; border: 1px solid var(--gr-rule); color: var(--gr-dim); padding: 10px 18px; cursor: pointer; font-family: var(--gr-body); }
.gr-pill[aria-pressed="true"] { color: var(--gr-ground); background: var(--gr-gold); border-color: var(--gr-gold); }
.gr-select { background: transparent; border: 1px solid var(--gr-rule); color: var(--gr-dim); padding: 10px 14px; font-family: var(--gr-body); }
.gr-select option { background: var(--gr-ground); }
.gr-count { color: var(--gr-dim); font-size: 14px; }

.gr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 48px 0 0; }
/* A class, not an inline style on the element. Inline beats every media query, so the
   three-up related row stayed three-up at 390px and the titles collided. */
.gr-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; }
.gr-grid--flush { padding-top: 0; }
.gr-card { display: flex; flex-direction: column; gap: 14px; }
.gr-card__art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #0D120E; }
.gr-card__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gr-card__name { font-family: var(--gr-display); font-size: 23px; font-weight: 500; color: var(--gr-text); }
.gr-card__rtp { color: var(--gr-gold); font-size: 11px; }
.gr-empty { padding: 64px 0; color: var(--gr-muted); text-align: center; }

/* ---------- cta + footer ---------- */
.gr-cta { position: relative; margin-top: 72px; min-height: 220px; overflow: hidden; }
.gr-cta__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.gr-cta__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gr-ground) 34%, rgba(7,11,8,0.68) 100%); }
.gr-cta__body { position: relative; display: flex; align-items: center; gap: 40px; padding-top: 58px; padding-bottom: 58px; flex-wrap: wrap; }
.gr-cta h2 { margin: 0 0 10px; font-family: var(--gr-display); font-size: 40px; font-weight: 300; line-height: 1.05; }
.gr-cta p { margin: 0; font-size: 17px; color: var(--gr-muted); }

.gr-footer { display: flex; align-items: center; gap: 26px; padding-top: 26px; padding-bottom: 26px; font-size: 14px; color: var(--gr-faint); border-top: 1px solid var(--gr-rule); flex-wrap: wrap; }
.gr-footer a { color: inherit; }
.gr-footer__spacer { flex-grow: 1; }

/* ---------- pages still authored in Elementor ---------- */
.gr-prose { padding-top: 64px; padding-bottom: 80px; font-size: 18px; line-height: 1.8; color: var(--gr-muted); }
.gr-prose h1, .gr-prose h2, .gr-prose h3 { font-family: var(--gr-display); font-weight: 300; color: var(--gr-text); }
/* Only the big one carries the light weight. Below about 40px a 300-weight serif on this
   ground stops looking delicate and starts looking faint. */
.gr-prose h2, .gr-prose h3 { font-weight: 400; }
.gr-prose h1 { font-size: 56px; line-height: 1.05; }

/* ---------- long-form copy: the legal pages and the integration document ---------- */
.gr-prose { max-width: 860px; }
.gr-prose h2 { font-size: 30px; margin: 44px 0 12px; }
.gr-prose h3 { font-size: 22px; margin: 32px 0 10px; }
.gr-prose h1 + h2 { margin-top: 24px; }
.gr-prose ul, .gr-prose ol { padding-left: 20px; }
.gr-prose li { margin: 6px 0; }
.gr-prose li > p { margin: 0; }
.gr-prose hr { border: 0; border-top: 1px solid var(--gr-rule-soft); margin: 44px 0; }
.gr-prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--gr-rule); color: var(--gr-text); }
.gr-prose strong { color: var(--gr-text); font-weight: 500; }
.gr-lede { font-size: 22px; line-height: 1.6; color: var(--gr-text); max-width: 640px; }

/* Tables carry real content on both legal pages and most of the API contract, so they get
   the same treatment everywhere and scroll rather than squeeze on a phone. */
.gr-prose table, .gr-doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.gr-prose thead th, .gr-doc thead th {
  text-align: left; color: var(--gr-gold); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px;
  padding: 10px 14px 10px 0; border-bottom: 1px solid var(--gr-rule);
}
.gr-prose td, .gr-doc td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--gr-rule-soft); vertical-align: top; }

/* ---------- the partner area ---------- */
.gr-access {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 72px; padding-top: 48px; padding-bottom: 96px; align-items: start;
}
.gr-access__intro { font-size: 18px; line-height: 1.8; color: var(--gr-muted); max-width: 620px; }
.gr-access__intro h2 { font-family: var(--gr-display); font-weight: 400; color: var(--gr-text); font-size: 26px; margin: 36px 0 8px; }
.gr-access__intro a { text-decoration: underline; text-underline-offset: 3px; }

.gr-ticks { list-style: none; margin: 28px 0; padding: 0; }
.gr-ticks li { position: relative; padding-left: 26px; margin: 14px 0; font-size: 17px; line-height: 1.6; color: var(--gr-text); }
.gr-ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 1px; background: var(--gr-gold); }

.gr-note { font-size: 15px; line-height: 1.7; color: var(--gr-faint); }
.gr-note a { text-decoration: underline; text-underline-offset: 3px; }

.gr-message { padding: 14px 18px; border-left: 2px solid var(--gr-gold); background: rgba(214,184,113,0.06); font-size: 16px; line-height: 1.6; color: var(--gr-text); }
.gr-message--bad { border-left-color: #C96A5A; background: rgba(201,106,90,0.08); }

.gr-panel { border: 1px solid var(--gr-rule-soft); padding: 32px; margin-bottom: 24px; background: rgba(255,255,255,0.012); }
.gr-panel h2 { margin: 0 0 18px; font-size: 26px; color: var(--gr-text); }
.gr-panel p { color: var(--gr-muted); line-height: 1.7; }
.gr-panel__rule { border: 0; border-top: 1px solid var(--gr-rule-soft); margin: 26px 0 20px; }

/* One set of rules for our form and for wp_login_form(), which brings its own markup. */
.gr-field, .gr-form p, #bibi-login p { margin: 0 0 18px; }
.gr-field label, .gr-form label, #bibi-login label {
  display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gr-dim);
}
.gr-form input[type="text"], .gr-form input[type="email"], .gr-form input[type="url"],
.gr-form textarea, #bibi-login input[type="text"], #bibi-login input[type="password"] {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--gr-rule-soft); border-radius: 0;
  color: var(--gr-text); font-family: var(--gr-body); font-size: 16px; font-weight: 400;
}
.gr-form input:focus, .gr-form textarea:focus, #bibi-login input:focus {
  outline: none; border-color: var(--gr-gold); background: rgba(0,0,0,0.4);
}
.gr-form textarea { resize: vertical; }
#bibi-login .login-remember label { display: inline; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--gr-muted); }
#bibi-login .login-submit input[type="submit"] {
  display: inline-block; padding: 14px 28px; background: var(--gr-gold); color: var(--gr-ground);
  border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--gr-body); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
#bibi-login .login-submit input[type="submit"]:hover { background: var(--gr-gold-bright); }
/* .gr-btn is written for an anchor, so a submit button inherits none of it and paints as
   bare text. Same look, stated once for the element that actually carries the class here. */
.bibi-goldroom button.gr-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0;
  color: var(--gr-ground); background: var(--gr-gold); padding: 16px 30px;
  font-family: var(--gr-body); font-weight: 500;
}
.bibi-goldroom button.gr-btn:hover { background: var(--gr-gold-bright); }
.gr-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- the integration document ---------- */
.gr-doc { max-width: 900px; padding-top: 40px; padding-bottom: 96px; font-size: 17px; line-height: 1.75; color: var(--gr-muted); }
.gr-doc h2 { font-family: var(--gr-display); font-weight: 400; color: var(--gr-text); font-size: 34px; margin: 56px 0 14px; padding-top: 20px; border-top: 1px solid var(--gr-rule-soft); }
.gr-doc h3 { font-family: var(--gr-display); font-weight: 400; color: var(--gr-text); font-size: 24px; margin: 36px 0 10px; }
.gr-doc h4 { color: var(--gr-gold); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin: 28px 0 8px; font-weight: 500; }
.gr-doc ul, .gr-doc ol { padding-left: 20px; }
.gr-doc li { margin: 6px 0; }
.gr-doc strong { color: var(--gr-text); font-weight: 500; }
.gr-doc hr { border: 0; border-top: 1px solid var(--gr-rule-soft); margin: 40px 0; }
.gr-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
  color: var(--gr-gold-bright); background: rgba(214,184,113,0.08); padding: 1px 5px;
}
.gr-doc pre {
  background: rgba(0,0,0,0.35); border: 1px solid var(--gr-rule-soft); border-left: 2px solid var(--gr-gold);
  padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.65;
}
.gr-doc pre code { background: none; padding: 0; color: var(--gr-text); }

.gr-doc__toc { border: 1px solid var(--gr-rule-soft); padding: 26px 30px; margin-bottom: 8px; }
.gr-doc__toc .gr-caps { color: var(--gr-gold); margin: 0 0 12px; }
.gr-doc__toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.gr-doc__toc ul ul { display: none; }
.gr-doc__toc li { margin: 5px 0; break-inside: avoid; }
.gr-doc__toc a { color: var(--gr-muted); }
.gr-doc__toc a:hover { color: var(--gr-gold); }

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  :root { --gr-gutter: 32px; }
  .gr-split { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .gr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gr-hero h1 { font-size: 64px; }
}

@media (max-width: 760px) {
  :root { --gr-gutter: 22px; }
  .gr-nav { gap: 20px; height: 68px; }
  .gr-nav__links { display: none; }
  .gr-hero { min-height: 0; }
  .gr-hero__art { position: relative; height: 320px; }
  .gr-hero__scrim-radial { background: radial-gradient(120% 70% at 50% 30%, rgba(7,11,8,0) 0%, rgba(7,11,8,0.6) 55%, var(--gr-ground) 92%); }
  .gr-hero__scrim-linear { background: linear-gradient(180deg, rgba(7,11,8,0) 30%, var(--gr-ground) 88%); }
  .gr-hero__body { padding-top: 0; margin-top: -90px; }
  .gr-hero h1 { font-size: 44px; }
  .gr-hero__lede--creed { font-size: 18px; }
  .gr-figures, .gr-figures--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-figure, .gr-figure + .gr-figure { padding: 24px 18px 24px 0; }
  /* Two per row here, so the rule to drop is every second one — :last-child left a
     hairline hanging off the right edge of the first column. */
  .gr-figure:nth-child(2n) { border-right: 0; }
  .gr-figure__value { font-size: 34px; }
  .gr-grid, .gr-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gr-cta__body { padding-top: 40px; padding-bottom: 40px; }
  .gr-cta h2 { font-size: 30px; }
  .gr-prose h1 { font-size: 38px; }
  .gr-access { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 64px; }
  .gr-panel { padding: 24px 20px; }
  .gr-doc h2 { font-size: 26px; }
  .gr-doc__toc ul { columns: 1; }
  .gr-prose table, .gr-doc table { display: block; overflow-x: auto; white-space: nowrap; }
}
