/*
Theme Name: JL Game
Theme URI: https://jlgame.ph/
Author: JL Game
Description: JL Game brand website with dedicated page templates and a responsive black and gold interface.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jlgame
*/

/* =========================================================
   01. Design tokens
   ========================================================= */

:root {
  color-scheme: dark;

  --jg-bg: #090b0e;
  --jg-bg-soft: #0e1115;

  --jg-surface: #13171c;
  --jg-surface-raised: #191e24;
  --jg-surface-hover: #1d232a;

  --jg-text: #f5f3ec;
  --jg-text-soft: #d4d7d9;
  --jg-muted: #a4acb5;
  --jg-muted-dark: #858e99;

  --jg-gold: #dfbb70;
  --jg-gold-light: #f5dfaa;
  --jg-gold-deep: #b58b43;

  --jg-line: rgba(255, 255, 255, 0.09);
  --jg-line-strong: rgba(255, 255, 255, 0.15);
  --jg-line-gold: rgba(223, 187, 112, 0.30);

  --jg-gold-wash: rgba(223, 187, 112, 0.075);
  --jg-gold-glow: rgba(223, 187, 112, 0.12);

  --jg-success: #a7d9bb;

  --jg-font: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;

  --jg-width: 1220px;
  --jg-reading-width: 820px;

  --jg-header-height: 88px;
  --jg-dock-height: 86px;

  --jg-radius-sm: 10px;
  --jg-radius-md: 16px;
  --jg-radius-lg: 22px;
  --jg-radius-xl: 28px;

  --jg-shadow-card:
    0 14px 38px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  --jg-shadow-hover:
    0 22px 50px rgba(0, 0, 0, 0.30),
    0 0 26px rgba(223, 187, 112, 0.035);

  --jg-transition: 180ms ease;
}

/* =========================================================
   02. Reset and accessibility
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--jg-header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  background: var(--jg-bg);
  color: var(--jg-text);
  font-family: var(--jg-font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.jg-menu-is-open {
  overscroll-behavior-y: contain;
}

::selection {
  background: rgba(223, 187, 112, 0.28);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--jg-gold-light);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
a,
summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button,
input,
textarea,
select {
  max-width: 100%;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  flex-shrink: 0;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--jg-text);
  overflow-wrap: break-word;
}

p,
li,
td,
th {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--jg-gold);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.jg-sr-only,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jg-skip-link {
  position: fixed;
  z-index: 1000;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  border-radius: var(--jg-radius-sm);
  background: var(--jg-gold-light);
  color: #17130a;
  font-size: 14px;
  font-weight: 700;
}

.jg-skip-link:focus {
  top: 12px;
  color: #17130a;
}

/* =========================================================
   03. Layout and typography
   ========================================================= */

.jg-container {
  width: min(
    var(--jg-width),
    calc(100% - 48px)
  );
  margin-inline: auto;
}

.jg-container--narrow {
  max-width: 980px;
}

.jg-section {
  position: relative;
  padding-block: 68px;
}

.jg-section--soft {
  border-block: 1px solid var(--jg-line);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.014),
      transparent
    ),
    var(--jg-bg-soft);
}

.jg-section--compact {
  padding-block: 40px;
}

.jg-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.jg-section-head__main {
  min-width: 0;
  max-width: 740px;
}

.jg-section-head__aside {
  flex: 0 1 360px;
  margin: 0 0 4px;
  color: var(--jg-muted);
  font-size: 14px;
  line-height: 1.85;
}

.jg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--jg-gold);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.jg-eyebrow::before {
  content: "";
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 2px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    var(--jg-gold-deep),
    var(--jg-gold-light)
  );
}

.jg-title {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 700;
  line-height: 1.20;
  letter-spacing: -1.2px;
}

.jg-lead {
  margin-bottom: 0;
  color: var(--jg-muted);
  font-size: 17px;
  line-height: 1.9;
}

.jg-gold {
  color: var(--jg-gold);
}

.jg-muted {
  color: var(--jg-muted);
}

.jg-small {
  font-size: 13px;
  line-height: 1.8;
}

.jg-center {
  text-align: center;
}

.jg-divider {
  height: 1px;
  margin-block: 28px;
  border: 0;
  background: var(--jg-line);
}

/* =========================================================
   04. Header and image logo
   ========================================================= */

.jg-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--jg-line);
  background: rgba(9, 11, 14, 0.96);
}

@supports (
  (-webkit-backdrop-filter: blur(18px)) or
  (backdrop-filter: blur(18px))
) {
  .jg-header {
    background: rgba(9, 11, 14, 0.88);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}

.jg-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--jg-header-height);
}

.jg-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;
  line-height: 1;
}

.jg-brand img,
.jg-brand .custom-logo {
  display: block;
  width: 202px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.jg-brand .custom-logo-link {
  display: block;
}

.jg-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--jg-gold-light);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.8px;
}

.jg-logo-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--jg-line-gold);
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      rgba(223, 187, 112, 0.17),
      rgba(223, 187, 112, 0.025)
    );
  color: var(--jg-gold);
  box-shadow:
    inset 0 1px 0 rgba(245, 223, 170, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.14);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -1px;
}

.jg-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.jg-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--jg-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--jg-transition);
}

.jg-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 10px;
  background: var(--jg-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--jg-transition);
}

.jg-nav a:hover,
.jg-nav a[aria-current="page"] {
  color: var(--jg-gold-light);
}

.jg-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.jg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jg-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--jg-line-gold);
  border-radius: 12px;
  background: var(--jg-surface);
  color: var(--jg-gold-light);
}

.jg-menu-toggle svg {
  width: 22px;
  height: 22px;
}

.jg-menu-toggle .jg-menu-close {
  display: none;
}

.jg-menu-toggle[aria-expanded="true"] .jg-menu-open {
  display: none;
}

.jg-menu-toggle[aria-expanded="true"] .jg-menu-close {
  display: block;
}

/* =========================================================
   05. Buttons
   ========================================================= */

.jg-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.jg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 12px 22px;
  overflow: hidden;
  border: 1px solid rgba(245, 223, 170, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(
      115deg,
      #f1d89b 0%,
      #dfbb70 48%,
      #c79e54 100%
    );
  color: #21190c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 7px 20px rgba(181, 139, 67, 0.09);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--jg-transition),
    border-color var(--jg-transition),
    box-shadow var(--jg-transition);
}

.jg-btn:hover {
  transform: translateY(-2px);
  border-color: var(--jg-gold-light);
  color: #171208;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 10px 28px rgba(181, 139, 67, 0.17);
}

.jg-btn:active {
  transform: translateY(0);
}

.jg-btn svg {
  width: 18px;
  height: 18px;
}

.jg-btn--secondary {
  border-color: var(--jg-line-gold);
  background:
    linear-gradient(
      135deg,
      rgba(223, 187, 112, 0.055),
      rgba(223, 187, 112, 0.01)
    ),
    #14181d;
  color: var(--jg-gold-light);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.jg-btn--secondary:hover {
  border-color: rgba(223, 187, 112, 0.58);
  color: #fff0c9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.jg-btn--ghost {
  border-color: var(--jg-line-strong);
  background: transparent;
  color: var(--jg-text-soft);
  box-shadow: none;
}

.jg-btn--ghost:hover {
  border-color: var(--jg-line-gold);
  color: var(--jg-gold-light);
  box-shadow: none;
}

.jg-btn--small {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
}

.jg-btn--full {
  width: 100%;
}

.jg-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.jg-btn[aria-disabled="true"]:hover {
  transform: none;
}

/* =========================================================
   06. Unified icons
   ========================================================= */

.jg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(223, 187, 112, 0.27);
  border-radius: 15px;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(245, 223, 170, 0.15),
      transparent 68%
    ),
    linear-gradient(
      145deg,
      #28251e,
      #181b1d 85%
    );
  color: var(--jg-gold-light);
  box-shadow:
    inset 0 1px 0 rgba(245, 223, 170, 0.10),
    0 7px 18px rgba(0, 0, 0, 0.12);
}

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

.jg-icon--small {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.jg-icon--small svg {
  width: 19px;
  height: 19px;
}

.jg-icon--large {
  flex-basis: 62px;
  width: 62px;
  height: 62px;
  border-radius: 19px;
}

.jg-icon--large svg {
  width: 29px;
  height: 29px;
}

.jg-inline-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   07. Home hero
   ========================================================= */

.jg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 62px 54px;
  background:
    radial-gradient(
      ellipse at 88% 5%,
      rgba(181, 139, 67, 0.13),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      #0d1014,
      var(--jg-bg)
    );
}

.jg-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -270px;
  right: -150px;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(223, 187, 112, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.jg-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -190px;
  right: -70px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(223, 187, 112, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.jg-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 66px;
}

.jg-hero-copy {
  min-width: 0;
}

.jg-hero h1 {
  margin: 19px 0 22px;
  max-width: 760px;
  font-size: clamp(40px, 4.7vw, 66px);
  font-weight: 750;
  line-height: 1.10;
  letter-spacing: -2.2px;
}

.jg-hero h1 span {
  color: var(--jg-gold);
}

@supports (-webkit-background-clip: text) {
  .jg-hero h1 .jg-gold-gradient {
    background: linear-gradient(
      110deg,
      #fff0c5,
      #dfbb70 65%,
      #bd944b
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.jg-hero-description {
  max-width: 570px;
  margin-bottom: 26px;
  color: var(--jg-muted);
  font-size: 16px;
  line-height: 1.9;
}

.jg-hero .jg-actions {
  margin-bottom: 17px;
}

.jg-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--jg-muted-dark);
  font-size: 11px;
  line-height: 1.8;
}

.jg-hero-note svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--jg-gold);
}

/* =========================================================
   08. First-screen access card
   ========================================================= */

.jg-access-card {
  position: relative;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(223, 187, 112, 0.33);
  border-radius: var(--jg-radius-xl);
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(223, 187, 112, 0.10),
      transparent 58%
    ),
    linear-gradient(
      145deg,
      #1a1f23,
      #11151a 72%
    );
  box-shadow:
    0 25px 65px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(245, 223, 170, 0.07);
}

.jg-access-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 223, 170, 0.8),
    transparent
  );
  pointer-events: none;
}

.jg-access-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.jg-access-label {
  color: var(--jg-gold);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.jg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid var(--jg-line-gold);
  border-radius: 30px;
  background: rgba(223, 187, 112, 0.045);
  color: var(--jg-gold-light);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.jg-access-domain {
  margin: 17px 0 5px;
  color: var(--jg-text);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

.jg-access-description {
  margin-bottom: 21px;
  color: var(--jg-muted);
  font-size: 12px;
  line-height: 1.8;
}

.jg-route-list {
  display: grid;
  gap: 11px;
}

.jg-route {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 76px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 15px;
  background:
    linear-gradient(
      110deg,
      rgba(223, 187, 112, 0.045),
      transparent 70%
    ),
    rgba(255, 255, 255, 0.018);
  transition:
    background var(--jg-transition),
    border-color var(--jg-transition),
    transform var(--jg-transition);
}

.jg-route:hover {
  transform: translateX(3px);
  border-color: rgba(223, 187, 112, 0.43);
  background-color: rgba(223, 187, 112, 0.045);
}

.jg-route-number {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(223, 187, 112, 0.23);
  border-radius: 11px;
  background: rgba(223, 187, 112, 0.04);
  color: var(--jg-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.jg-route-copy {
  min-width: 0;
}

.jg-route-title {
  display: block;
  color: var(--jg-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.jg-route-description {
  display: block;
  margin-top: 3px;
  color: var(--jg-muted);
  font-size: 10px;
  line-height: 1.6;
}

.jg-route-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  margin-left: auto;
  border: 1px solid rgba(223, 187, 112, 0.18);
  border-radius: 50%;
  color: var(--jg-gold);
}

.jg-route-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jg-access-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--jg-line);
  color: var(--jg-muted-dark);
  font-size: 10px;
  line-height: 1.7;
}

.jg-access-footer svg {
  width: 14px;
  height: 14px;
  color: var(--jg-gold);
}

/* =========================================================
   09. Brand information strip
   ========================================================= */

.jg-brand-strip {
  border-block: 1px solid var(--jg-line);
  background: rgba(255, 255, 255, 0.012);
}

.jg-brand-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jg-brand-point {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 20px 22px;
  border-right: 1px solid var(--jg-line);
}

.jg-brand-point:first-child {
  padding-left: 0;
}

.jg-brand-point:last-child {
  padding-right: 0;
  border-right: 0;
}

.jg-brand-point svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  color: var(--jg-gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jg-brand-point strong {
  display: block;
  color: var(--jg-text-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.jg-brand-point small {
  display: block;
  margin-top: 2px;
  color: var(--jg-muted-dark);
  font-size: 10px;
  line-height: 1.5;
}

/* =========================================================
   10. Card grids
   ========================================================= */

.jg-grid {
  display: grid;
  gap: 20px;
}

.jg-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jg-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jg-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--jg-line);
  border-radius: var(--jg-radius-lg);
  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(255, 255, 255, 0.026),
      transparent 65%
    ),
    linear-gradient(
      150deg,
      #171c22,
      #11151a
    );
  box-shadow: var(--jg-shadow-card);
  transition:
    transform var(--jg-transition),
    border-color var(--jg-transition),
    box-shadow var(--jg-transition);
}

a.jg-card:hover,
.jg-card--interactive:hover {
  transform: translateY(-5px);
  border-color: rgba(223, 187, 112, 0.40);
  color: inherit;
  box-shadow: var(--jg-shadow-hover);
}

.jg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.jg-card-index {
  color: rgba(223, 187, 112, 0.58);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.jg-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.4px;
}

.jg-card p {
  margin-bottom: 23px;
  color: var(--jg-muted);
  font-size: 13px;
  line-height: 1.9;
}

.jg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--jg-line);
  color: var(--jg-gold);
  font-size: 11px;
  font-weight: 600;
}

.jg-card-footer svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jg-card--featured {
  border-color: rgba(223, 187, 112, 0.34);
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(223, 187, 112, 0.10),
      transparent 65%
    ),
    linear-gradient(
      150deg,
      #1d211f,
      #12161b
    );
}

.jg-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 223, 170, 0.70),
    transparent
  );
}

/* =========================================================
   11. WebP image positions
   Actual image paths will be defined in the PHP templates.
   ========================================================= */

.jg-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--jg-line-gold);
  border-radius: var(--jg-radius-xl);
  background:
    radial-gradient(
      ellipse at 70% 25%,
      rgba(223, 187, 112, 0.14),
      transparent 60%
    ),
    linear-gradient(
      145deg,
      #1c2227,
      #0e1217
    );
  box-shadow: var(--jg-shadow-card);
}

.jg-visual--wide {
  aspect-ratio: 16 / 9;
}

.jg-visual--square {
  aspect-ratio: 1 / 1;
}

.jg-visual--portrait {
  aspect-ratio: 2 / 3;
}

.jg-visual--phone {
  aspect-ratio: 9 / 16;
  width: min(100%, 300px);
  margin-inline: auto;
  border-radius: 30px;
}

.jg-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jg-visual--cover img {
  object-fit: cover;
}

.jg-visual-decoration {
  position: absolute;
  z-index: 0;
  width: 70%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(223, 187, 112, 0.13);
  border-radius: 50%;
  transform: rotate(-20deg);
  pointer-events: none;
}

.jg-visual-decoration::before,
.jg-visual-decoration::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(223, 187, 112, 0.08);
  border-radius: 50%;
}

.jg-visual-decoration::before {
  inset: 12%;
}

.jg-visual-decoration::after {
  inset: 25%;
}

.jg-visual-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 100%;
  padding: 30px;
  text-align: center;
}

.jg-visual-fallback .jg-icon {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  border-radius: 22px;
}

.jg-visual-fallback .jg-icon svg {
  width: 34px;
  height: 34px;
}

.jg-visual-brand {
  color: var(--jg-gold-light);
  font-size: clamp(23px, 3vw, 38px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 1px;
}

.jg-visual-caption {
  color: var(--jg-muted);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.jg-figure-caption {
  margin-top: 12px;
  padding-inline: 4px;
  color: var(--jg-muted-dark);
  font-size: 11px;
  line-height: 1.8;
}

.jg-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 58px;
}

.jg-split-copy {
  min-width: 0;
}

.jg-split-copy p {
  color: var(--jg-muted);
  font-size: 14px;
  line-height: 1.95;
}

.jg-split-copy .jg-actions {
  margin-top: 24px;
}

/* =========================================================
   12. Lists, steps and notices
   ========================================================= */

.jg-check-list {
  display: grid;
  gap: 15px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.jg-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--jg-text-soft);
  font-size: 13px;
  line-height: 1.85;
}

.jg-check-list .jg-inline-icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: var(--jg-gold);
}

.jg-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: jg-step;
}

.jg-step {
  position: relative;
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--jg-line);
  border-radius: var(--jg-radius-lg);
  background: var(--jg-surface);
  counter-increment: jg-step;
}

.jg-step::before {
  content: counter(jg-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid var(--jg-line-gold);
  border-radius: 13px;
  background: var(--jg-gold-wash);
  color: var(--jg-gold);
  font-size: 12px;
  font-weight: 700;
}

.jg-step h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.5;
}

.jg-step p {
  margin-bottom: 0;
  color: var(--jg-muted);
  font-size: 13px;
  line-height: 1.9;
}

.jg-notice {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 21px 23px;
  border: 1px solid rgba(223, 187, 112, 0.22);
  border-left: 3px solid var(--jg-gold);
  border-radius: var(--jg-radius-md);
  background:
    linear-gradient(
      110deg,
      rgba(223, 187, 112, 0.075),
      rgba(223, 187, 112, 0.018)
    ),
    #111519;
}

.jg-notice > svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin-top: 3px;
  color: var(--jg-gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jg-notice p {
  margin-bottom: 0;
  color: var(--jg-text-soft);
  font-size: 12px;
  line-height: 1.9;
}

.jg-notice strong {
  color: var(--jg-gold-light);
}

.jg-notice a {
  color: var(--jg-gold-light);
  text-decoration: underline;
}

/* =========================================================
   13. Inner page hero and breadcrumbs
   ========================================================= */

.jg-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 11px;
  padding-block: 21px 0;
  color: var(--jg-muted-dark);
  font-size: 11px;
  line-height: 1.8;
}

.jg-breadcrumbs a {
  color: var(--jg-muted);
}

.jg-breadcrumbs a:hover {
  color: var(--jg-gold-light);
}

.jg-breadcrumbs svg {
  width: 11px;
  height: 11px;
  color: var(--jg-muted-dark);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.jg-breadcrumbs [aria-current="page"] {
  color: var(--jg-gold);
}

.jg-page-hero {
  padding-block: 36px 44px;
  border-bottom: 1px solid var(--jg-line);
  background:
    radial-gradient(
      ellipse at 90% 0%,
      rgba(181, 139, 67, 0.085),
      transparent 65%
    );
}

.jg-page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 55px;
}

.jg-page-hero-copy {
  min-width: 0;
}

.jg-page-hero h1 {
  max-width: 900px;
  margin: 17px 0 20px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: -1.6px;
}

.jg-page-hero .jg-lead {
  max-width: 720px;
  font-size: 15px;
}

.jg-page-hero .jg-actions {
  margin-top: 24px;
}

.jg-page-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  color: var(--jg-muted-dark);
  font-size: 10px;
  line-height: 1.7;
}

.jg-page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.jg-page-hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--jg-gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jg-page-hero--text .jg-page-hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.jg-page-hero--text .jg-page-hero-copy {
  max-width: 900px;
}

/* =========================================================
   14. Long-form content and page navigation
   ========================================================= */

.jg-content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  padding-block: 46px 68px;
}

.jg-sidebar {
  position: sticky;
  top: calc(var(--jg-header-height) + 24px);
  min-width: 0;
}

.jg-toc {
  padding: 23px;
  border: 1px solid var(--jg-line);
  border-radius: var(--jg-radius-lg);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.018),
      transparent
    ),
    var(--jg-surface);
}

.jg-toc-title {
  display: block;
  margin-bottom: 17px;
  color: var(--jg-gold);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.jg-toc ol,
.jg-toc ul {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 290px);
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #655332 transparent;
}

.jg-toc a {
  display: block;
  padding-left: 12px;
  border-left: 1px solid var(--jg-line-strong);
  color: var(--jg-muted);
  font-size: 11px;
  line-height: 1.75;
  transition:
    color var(--jg-transition),
    border-color var(--jg-transition);
}

.jg-toc a:hover,
.jg-toc a[aria-current="location"] {
  border-left-color: var(--jg-gold);
  color: var(--jg-gold-light);
}

.jg-sidebar-note {
  margin-top: 16px;
  padding-inline: 5px;
  color: var(--jg-muted-dark);
  font-size: 10px;
  line-height: 1.9;
}

.jg-prose {
  width: 100%;
  max-width: var(--jg-reading-width);
  min-width: 0;
  color: var(--jg-text-soft);
  font-size: 15px;
  line-height: 1.95;
}

.jg-prose > :last-child {
  margin-bottom: 0;
}

.jg-prose h2 {
  margin: 35px 0 18px;
  color: var(--jg-text);
  font-size: clamp(25px, 2.6vw, 32px);
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.8px;
}

.jg-prose h3 {
  margin: 27px 0 12px;
  color: var(--jg-text);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.jg-prose h4 {
  margin: 22px 0 10px;
  color: var(--jg-gold-light);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
}

.jg-prose p {
  margin-bottom: 20px;
}

.jg-prose a:not(.jg-btn):not(.jg-related-link) {
  color: var(--jg-gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(223, 187, 112, 0.40);
}

.jg-prose a:not(.jg-btn):not(.jg-related-link):hover {
  color: #fff2d1;
  text-decoration-color: var(--jg-gold-light);
}

.jg-prose strong {
  color: var(--jg-text);
  font-weight: 650;
}

.jg-prose ul,
.jg-prose ol {
  margin-bottom: 24px;
  padding-left: 23px;
}

.jg-prose li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.jg-prose li::marker {
  color: var(--jg-gold);
}

.jg-prose blockquote {
  margin: 26px 0;
  padding: 20px 23px;
  border-left: 3px solid var(--jg-gold);
  border-radius: 0 13px 13px 0;
  background: var(--jg-gold-wash);
  color: var(--jg-text-soft);
}

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

.jg-prose section {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--jg-line);
  margin-bottom: 29px;
}

.jg-prose section > h2:first-child {
  margin-top: 0;
}

.jg-prose section > :last-child {
  margin-bottom: 0;
}

.jg-prose .jg-notice {
  margin-block: 25px;
}

.jg-prose .jg-notice p {
  margin-bottom: 0;
  font-size: 13px;
}

.jg-prose .jg-visual {
  margin-block: 26px;
  border-radius: var(--jg-radius-lg);
}

/* =========================================================
   15. Tables
   ========================================================= */

.jg-table-wrap {
  width: 100%;
  margin: 25px 0;
  overflow-x: auto;
  border: 1px solid var(--jg-line-strong);
  border-radius: var(--jg-radius-md);
  scrollbar-width: thin;
  scrollbar-color: #655332 transparent;
}

.jg-table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.8;
}

.jg-table caption {
  padding: 15px 18px;
  background: var(--jg-surface);
  color: var(--jg-text-soft);
  font-size: 12px;
  text-align: left;
  caption-side: top;
}

.jg-table th,
.jg-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--jg-line);
  text-align: left;
  vertical-align: top;
}

.jg-table th {
  background: #1b201f;
  color: var(--jg-gold-light);
  font-size: 12px;
  font-weight: 650;
}

.jg-table td {
  background: #11161b;
  color: var(--jg-text-soft);
}

.jg-table tbody tr:nth-child(even) td {
  background: #151a20;
}

.jg-table tbody tr:last-child td {
  border-bottom: 0;
}

/* =========================================================
   16. FAQ
   ========================================================= */

.jg-faq {
  margin-top: 42px;
}

.jg-faq-head {
  margin-bottom: 24px;
}

.jg-faq-head h2 {
  margin-top: 12px;
}

.jg-faq-list {
  display: grid;
  gap: 12px;
}

.jg-faq-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--jg-line);
  border-radius: var(--jg-radius-md);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.014),
      transparent
    ),
    var(--jg-surface);
  transition:
    border-color var(--jg-transition),
    background var(--jg-transition);
}

.jg-faq-item[open] {
  border-color: rgba(223, 187, 112, 0.32);
  background:
    linear-gradient(
      135deg,
      rgba(223, 187, 112, 0.04),
      transparent
    ),
    var(--jg-surface);
}

.jg-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 65px;
  padding: 19px 21px;
  color: var(--jg-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  list-style: none;
  cursor: pointer;
}

.jg-faq-item summary::-webkit-details-marker {
  display: none;
}

.jg-faq-item summary::marker {
  content: "";
}

.jg-faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(223, 187, 112, 0.24);
  border-radius: 8px;
  background: rgba(223, 187, 112, 0.045);
  color: var(--jg-gold);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.jg-faq-item[open] summary::after {
  content: "−";
}

.jg-faq-answer {
  padding: 0 21px 21px;
  color: var(--jg-muted);
  font-size: 13px;
  line-height: 1.95;
}

.jg-faq-answer p {
  margin-bottom: 15px;
}

.jg-faq-answer p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   17. Related pages and return-home button
   ========================================================= */

.jg-related {
  margin-top: 35px;
  padding-top: 26px;
  border-top: 1px solid var(--jg-line);
}

.jg-related-title {
  margin: 0 0 15px;
  color: var(--jg-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.jg-related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.jg-related-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: 7px 13px;
  border: 1px solid var(--jg-line-gold);
  border-radius: 30px;
  background: rgba(223, 187, 112, 0.025);
  color: var(--jg-gold-light);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background var(--jg-transition),
    border-color var(--jg-transition);
}

.jg-related-link:hover {
  border-color: rgba(223, 187, 112, 0.55);
  background: rgba(223, 187, 112, 0.07);
  color: #fff0c9;
}

.jg-related-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jg-back-home {
  margin-top: 32px;
}

/* =========================================================
   18. Support and contact
   ========================================================= */

.jg-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 25px;
  border: 1px solid var(--jg-line-gold);
  border-radius: var(--jg-radius-lg);
  background:
    linear-gradient(
      135deg,
      rgba(223, 187, 112, 0.065),
      transparent 75%
    ),
    var(--jg-surface);
}

.jg-contact-card__body {
  min-width: 0;
}

.jg-contact-card h3 {
  margin: 1px 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

.jg-contact-card p {
  margin-bottom: 13px;
  color: var(--jg-muted);
  font-size: 13px;
  line-height: 1.9;
}

.jg-contact-card a {
  color: var(--jg-gold-light);
  overflow-wrap: anywhere;
}

.jg-contact-card .jg-btn {
  margin-top: 5px;
}

/* =========================================================
   19. Footer
   ========================================================= */

.jg-footer {
  position: relative;
  padding-top: 49px;
  padding-bottom: calc(
    var(--jg-dock-height) + 30px + env(safe-area-inset-bottom)
  );
  border-top: 1px solid var(--jg-line-gold);
  background:
    radial-gradient(
      ellipse at 0% 100%,
      rgba(223, 187, 112, 0.035),
      transparent 60%
    ),
    #0c0f13;
}

.jg-footer-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.7fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 42px;
}

.jg-footer-brand {
  min-width: 0;
}

.jg-footer-brand .jg-brand {
  margin-bottom: 19px;
}

.jg-footer-brand .jg-brand img {
  width: 200px;
  max-height: 74px;
}

.jg-footer-description {
  max-width: 365px;
  margin-bottom: 15px;
  color: var(--jg-muted);
  font-size: 11px;
  line-height: 1.95;
}

.jg-footer-age {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--jg-muted-dark);
  font-size: 10px;
  line-height: 1.7;
}

.jg-footer-age-badge {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--jg-line-gold);
  border-radius: 50%;
  color: var(--jg-gold);
  font-size: 10px;
  font-weight: 700;
}

.jg-footer-heading {
  margin: 9px 0 19px;
  color: var(--jg-gold);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.jg-footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jg-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  color: var(--jg-muted);
  font-size: 11px;
  line-height: 1.7;
  transition: color var(--jg-transition);
}

.jg-footer-links a:hover {
  color: var(--jg-gold-light);
}

.jg-footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding-top: 23px;
  border-top: 1px solid var(--jg-line);
}

.jg-footer-bottom p {
  margin: 0;
  color: var(--jg-muted-dark);
  font-size: 10px;
  line-height: 1.9;
}

.jg-footer-bottom p:last-child {
  max-width: 530px;
  text-align: right;
}

/* =========================================================
   20. Fixed login and register bar
   ========================================================= */

.jg-account-dock {
  position: fixed;
  z-index: 150;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: var(--jg-dock-height);
  padding:
    12px
    0
    calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(223, 187, 112, 0.35);
  background: rgba(11, 14, 18, 0.98);
  box-shadow: 0 -12px 38px rgba(0, 0, 0, 0.22);
}

@supports (
  (-webkit-backdrop-filter: blur(18px)) or
  (backdrop-filter: blur(18px))
) {
  .jg-account-dock {
    background: rgba(11, 14, 18, 0.90);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}

.jg-account-dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.jg-dock-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.jg-dock-brand .jg-icon {
  width: 43px;
  height: 43px;
  flex-basis: 43px;
  border-radius: 13px;
}

.jg-dock-title {
  display: block;
  color: var(--jg-gold-light);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.jg-dock-description {
  display: block;
  margin-top: 2px;
  color: var(--jg-muted);
  font-size: 10px;
  line-height: 1.6;
}

.jg-dock-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.jg-dock-actions .jg-btn {
  min-width: 165px;
  min-height: 47px;
  padding-block: 10px;
}

.jg-dock-actions .jg-btn svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   21. Right-side floating controls
   ========================================================= */

.jg-floating {
  position: fixed;
  z-index: 90;
  right: 21px;
  bottom: calc(
    var(--jg-dock-height) + 19px + env(safe-area-inset-bottom)
  );
  display: grid;
  gap: 10px;
}

.jg-float-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(223, 187, 112, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(223, 187, 112, 0.075),
      transparent
    ),
    #151a20;
  color: var(--jg-gold-light);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition:
    transform var(--jg-transition),
    border-color var(--jg-transition),
    background var(--jg-transition);
}

.jg-float-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 187, 112, 0.65);
  background-color: #20251f;
  color: #fff0c9;
}

.jg-float-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   22. 404 page
   ========================================================= */

.jg-error {
  padding-block: 70px;
}

.jg-error-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 65px;
}

.jg-error-code {
  display: block;
  margin-bottom: 17px;
  color: var(--jg-gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 3px;
}

.jg-error h1 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 730;
  line-height: 1.13;
  letter-spacing: -1.6px;
}

.jg-error p {
  margin-bottom: 25px;
  color: var(--jg-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* =========================================================
   23. WordPress content compatibility
   ========================================================= */

.alignwide {
  max-width: 100%;
}

.alignfull {
  width: 100%;
  max-width: 100%;
}

.wp-caption {
  max-width: 100%;
  margin-block: 24px;
}

.wp-caption-text,
.wp-element-caption {
  margin-top: 10px;
  color: var(--jg-muted-dark);
  font-size: 11px;
  line-height: 1.8;
}

.wp-block-image {
  margin-block: 26px;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--jg-radius-md);
}

.wp-block-embed {
  margin-block: 26px;
}

.wp-block-embed iframe {
  width: 100%;
  max-width: 100%;
}

.jg-pagination,
.navigation.pagination {
  margin-block: 30px;
}

.page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 39px;
  min-height: 39px;
  margin: 4px;
  padding: 6px 11px;
  border: 1px solid var(--jg-line);
  border-radius: 10px;
  background: var(--jg-surface);
  color: var(--jg-muted);
  font-size: 12px;
}

.page-numbers.current {
  border-color: var(--jg-line-gold);
  color: var(--jg-gold-light);
}

.admin-bar .jg-header {
  top: 32px;
}

.admin-bar .jg-sidebar {
  top: calc(var(--jg-header-height) + 56px);
}

/* =========================================================
   24. Laptop and tablet
   ========================================================= */

@media (max-width: 1100px) {
  .jg-header-inner {
    gap: 22px;
  }

  .jg-nav {
    gap: 19px;
  }

  .jg-brand img,
  .jg-brand .custom-logo {
    width: 185px;
  }

  .jg-header-actions .jg-btn {
    padding-inline: 14px;
  }

  .jg-hero-inner {
    gap: 38px;
  }

  .jg-hero h1 {
    font-size: 54px;
  }

  .jg-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jg-content-grid {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 34px;
  }

  .jg-split,
  .jg-page-hero-inner {
    gap: 36px;
  }

  .jg-footer-grid {
    gap: 28px;
  }
}

@media (max-width: 960px) {
  :root {
    --jg-header-height: 78px;
  }

  .jg-section {
    padding-block: 52px;
  }

  .jg-header-actions {
    display: none;
  }

  .jg-nav {
    gap: 24px;
  }

  .jg-hero {
    padding-block: 45px;
  }

  .jg-hero h1 {
    font-size: 47px;
    letter-spacing: -1.6px;
  }

  .jg-hero-description {
    font-size: 14px;
  }

  .jg-access-card {
    padding: 23px;
    border-radius: 23px;
  }

  .jg-route {
    gap: 10px;
    padding: 12px;
  }

  .jg-route-title {
    font-size: 12px;
  }

  .jg-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jg-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jg-brand-point {
    padding-inline: 15px;
  }

  .jg-brand-point strong {
    font-size: 10px;
  }

  .jg-brand-point small {
    font-size: 9px;
  }

  .jg-content-grid {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 28px;
  }

  .jg-toc {
    padding: 19px;
  }

  .jg-footer-grid {
    grid-template-columns:
      minmax(0, 1.5fr)
      minmax(0, 1fr)
      minmax(0, 1fr);
  }

  .jg-footer-grid > :last-child {
    grid-column: 2 / 4;
  }

  .jg-footer-grid > :last-child .jg-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 20px;
  }
}

/* =========================================================
   25. Mobile
   ========================================================= */

@media (max-width: 760px) {
  :root {
    --jg-header-height: 74px;
    --jg-dock-height: 78px;
  }

  .jg-container {
    width: calc(100% - 32px);
  }

  .jg-section {
    padding-block: 38px;
  }

  .jg-section--compact {
    padding-block: 29px;
  }

  .jg-header-inner {
    gap: 14px;
    min-height: var(--jg-header-height);
  }

  .jg-brand img,
  .jg-brand .custom-logo {
    width: 178px;
    max-height: 62px;
  }

  .jg-logo-text {
    font-size: 24px;
  }

  .jg-logo-mark {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    font-size: 16px;
  }

  .jg-menu-toggle {
    display: inline-flex;
  }

  .jg-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-height: calc(
      100dvh - var(--jg-header-height) - var(--jg-dock-height) - 12px
    );
    padding: 12px 24px 18px;
    overflow-y: auto;
    border-bottom: 1px solid var(--jg-line-gold);
    background: #101419;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
  }

  .jg-nav.is-open {
    display: flex;
  }

  .jg-nav a {
    min-height: 48px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--jg-line);
    font-size: 14px;
  }

  .jg-nav a:last-child {
    border-bottom: 0;
  }

  .jg-nav a::after {
    display: none;
  }

  .jg-hero {
    padding-block: 29px 33px;
  }

  .jg-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .jg-eyebrow {
    gap: 8px;
    font-size: 9px;
    letter-spacing: 1.6px;
  }

  .jg-eyebrow::before {
    flex-basis: 18px;
    width: 18px;
  }

  .jg-hero h1 {
    margin: 16px 0;
    font-size: clamp(37px, 9.3vw, 50px);
    line-height: 1.12;
    letter-spacing: -1.4px;
  }

  .jg-hero-description {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.85;
  }

  .jg-hero .jg-actions {
    gap: 9px;
    margin-bottom: 13px;
  }

  .jg-hero .jg-btn {
    padding-inline: 18px;
    font-size: 12px;
  }

  .jg-hero-note {
    font-size: 10px;
  }

  .jg-access-card {
    padding: 21px;
    border-radius: 22px;
  }

  .jg-access-domain {
    margin-top: 12px;
    font-size: 31px;
  }

  .jg-access-description {
    margin-bottom: 16px;
    font-size: 11px;
  }

  .jg-route-list {
    gap: 9px;
  }

  .jg-route {
    min-height: 69px;
    padding: 12px;
    border-radius: 13px;
  }

  .jg-route-title {
    font-size: 12px;
  }

  .jg-route-description {
    font-size: 10px;
  }

  .jg-route-number {
    flex-basis: 33px;
    width: 33px;
    height: 33px;
    border-radius: 10px;
  }

  .jg-access-footer {
    margin-top: 14px;
    padding-top: 12px;
    font-size: 9px;
  }

  .jg-brand-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jg-brand-point {
    gap: 9px;
    padding: 15px 12px;
  }

  .jg-brand-point:first-child {
    padding-left: 0;
  }

  .jg-brand-point:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .jg-brand-point:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--jg-line);
  }

  .jg-brand-point:last-child {
    border-top: 1px solid var(--jg-line);
  }

  .jg-brand-point strong {
    font-size: 10px;
  }

  .jg-brand-point small {
    font-size: 9px;
  }

  .jg-brand-point svg {
    flex-basis: 19px;
    width: 19px;
    height: 19px;
  }

  .jg-section-head {
    display: block;
    margin-bottom: 23px;
  }

  .jg-section-head__aside {
    margin-top: 14px;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.85;
  }

  .jg-title {
    margin-top: 12px;
    font-size: 29px;
    letter-spacing: -0.8px;
  }

  .jg-grid {
    gap: 14px;
  }

  .jg-grid--2,
  .jg-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .jg-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .jg-card {
    padding: 24px;
    border-radius: 19px;
  }

  .jg-card-top {
    margin-bottom: 18px;
  }

  .jg-card h3 {
    font-size: 18px;
  }

  .jg-card p {
    font-size: 13px;
  }

  .jg-grid--4 .jg-card {
    padding: 18px;
  }

  .jg-grid--4 .jg-card h3 {
    font-size: 15px;
  }

  .jg-grid--4 .jg-card p {
    font-size: 11px;
  }

  .jg-grid--4 .jg-card-footer {
    font-size: 10px;
  }

  .jg-split,
  .jg-page-hero-inner,
  .jg-error-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
  }

  .jg-split-copy p {
    font-size: 14px;
  }

  .jg-visual {
    border-radius: 21px;
  }

  .jg-visual--phone {
    max-width: 255px;
    border-radius: 27px;
  }

  .jg-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .jg-step {
    padding: 23px;
    border-radius: 18px;
  }

  .jg-step::before {
    margin-bottom: 15px;
  }

  .jg-notice {
    gap: 12px;
    padding: 17px;
    border-radius: 13px;
  }

  .jg-notice p {
    font-size: 11px;
  }

  .jg-notice > svg {
    flex-basis: 19px;
    width: 19px;
    height: 19px;
  }

  .jg-breadcrumbs {
    padding-top: 17px;
    font-size: 10px;
  }

  .jg-page-hero {
    padding-block: 27px 31px;
  }

  .jg-page-hero h1 {
    margin: 14px 0 17px;
    font-size: clamp(33px, 8.6vw, 43px);
    line-height: 1.18;
    letter-spacing: -1px;
  }

  .jg-page-hero .jg-lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .jg-page-hero .jg-actions {
    margin-top: 20px;
  }

  .jg-page-hero-meta {
    margin-top: 17px;
    gap: 7px 13px;
    font-size: 9px;
  }

  .jg-content-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 29px 43px;
  }

  .jg-sidebar {
    position: static;
  }

  .jg-toc {
    padding: 20px;
    border-radius: 17px;
  }

  .jg-toc-title {
    margin-bottom: 13px;
  }

  .jg-toc ol,
  .jg-toc ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 17px;
    max-height: 195px;
  }

  .jg-toc a {
    padding-left: 9px;
    font-size: 10px;
  }

  .jg-sidebar-note {
    margin-top: 11px;
    font-size: 9px;
  }

  .jg-prose {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.95;
  }

  .jg-prose h2 {
    margin-top: 29px;
    font-size: 26px;
    line-height: 1.35;
    letter-spacing: -0.6px;
  }

  .jg-prose h3 {
    font-size: 18px;
  }

  .jg-prose p {
    margin-bottom: 18px;
  }

  .jg-prose section {
    padding-bottom: 22px;
    margin-bottom: 25px;
  }

  .jg-prose ul,
  .jg-prose ol {
    padding-left: 20px;
  }

  .jg-prose li {
    padding-left: 3px;
  }

  .jg-prose blockquote {
    padding: 17px 18px;
  }

  .jg-prose .jg-notice p {
    font-size: 12px;
  }

  .jg-table {
    font-size: 12px;
  }

  .jg-table th,
  .jg-table td {
    padding: 13px 15px;
  }

  .jg-faq {
    margin-top: 33px;
  }

  .jg-faq-item summary {
    gap: 15px;
    min-height: 63px;
    padding: 17px;
    font-size: 13px;
  }

  .jg-faq-answer {
    padding: 0 17px 18px;
    font-size: 12px;
  }

  .jg-related {
    margin-top: 28px;
    padding-top: 23px;
  }

  .jg-related-link {
    font-size: 10px;
  }

  .jg-back-home {
    margin-top: 27px;
  }

  .jg-contact-card {
    gap: 14px;
    padding: 21px;
    border-radius: 18px;
  }

  .jg-contact-card h3 {
    font-size: 17px;
  }

  .jg-contact-card p {
    font-size: 12px;
  }

  .jg-footer {
    padding-top: 36px;
  }

  .jg-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 22px;
  }

  .jg-footer-brand {
    grid-column: 1 / -1;
  }

  .jg-footer-grid > :last-child {
    grid-column: auto;
  }

  .jg-footer-grid > :last-child .jg-footer-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .jg-footer-description {
    max-width: 100%;
    font-size: 11px;
  }

  .jg-footer-brand .jg-brand img {
    width: 185px;
  }

  .jg-footer-heading {
    margin-bottom: 14px;
  }

  .jg-footer-links {
    gap: 8px;
  }

  .jg-footer-links a {
    min-height: 30px;
    font-size: 11px;
  }

  .jg-footer-bottom {
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
  }

  .jg-footer-bottom p:last-child {
    max-width: 100%;
    text-align: left;
  }

  .jg-account-dock {
    padding:
      10px
      0
      calc(10px + env(safe-area-inset-bottom));
  }

  .jg-account-dock-inner {
    display: block;
  }

  .jg-dock-brand {
    display: none;
  }

  .jg-dock-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    width: 100%;
  }

  .jg-dock-actions .jg-btn {
    min-width: 0;
    min-height: 48px;
    padding: 11px 15px;
    border-radius: 12px;
    font-size: 13px;
  }

  .jg-floating {
    right: 15px;
    gap: 9px;
    bottom: calc(
      var(--jg-dock-height) + 15px + env(safe-area-inset-bottom)
    );
  }

  .jg-float-btn {
    width: 41px;
    height: 41px;
    border-radius: 13px;
  }

  .jg-float-btn svg {
    width: 19px;
    height: 19px;
  }

  .jg-error {
    padding-block: 38px;
  }

  .jg-error h1 {
    font-size: 39px;
    letter-spacing: -1px;
  }

  .jg-error p {
    font-size: 13px;
  }

  .admin-bar .jg-header {
    top: 46px;
  }
}

/* =========================================================
   26. Small mobile
   ========================================================= */

@media (max-width: 380px) {
  .jg-container {
    width: calc(100% - 26px);
  }

  .jg-brand img,
  .jg-brand .custom-logo {
    width: 158px;
  }

  .jg-hero h1 {
    font-size: 35px;
  }

  .jg-hero .jg-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .jg-hero .jg-btn {
    width: 100%;
  }

  .jg-access-card {
    padding: 18px;
  }

  .jg-route {
    gap: 9px;
    padding: 11px;
  }

  .jg-route-description {
    font-size: 9px;
  }

  .jg-route-arrow {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
  }

  .jg-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .jg-grid--4 .jg-card {
    padding: 22px;
  }

  .jg-grid--4 .jg-card h3 {
    font-size: 17px;
  }

  .jg-grid--4 .jg-card p {
    font-size: 12px;
  }

  .jg-toc ol,
  .jg-toc ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .jg-page-hero h1 {
    font-size: 32px;
  }

  .jg-contact-card {
    flex-direction: column;
  }
}

/* =========================================================
   27. Motion and print accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  html,
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .jg-header,
  .jg-footer,
  .jg-account-dock,
  .jg-floating,
  .jg-sidebar,
  .jg-actions,
  .jg-back-home,
  .jg-related,
  .jg-brand-strip {
    display: none !important;
  }

  .jg-container {
    width: 100%;
    max-width: 100%;
  }

  .jg-hero,
  .jg-page-hero,
  .jg-section,
  .jg-content-grid {
    display: block;
    padding: 15px 0;
    border: 0;
    background: none !important;
  }

  .jg-prose {
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  li,
  strong,
  .jg-prose,
  .jg-lead,
  .jg-faq-answer {
    color: #111111 !important;
  }

  .jg-faq-item {
    border-color: #cccccc;
    background: #ffffff !important;
    break-inside: avoid;
  }

  .jg-faq-item summary {
    color: #111111;
  }

  .jg-faq-item summary::after {
    display: none;
  }

  .jg-faq-item::details-content {
    content-visibility: visible;
    display: block;
    height: auto;
  }

  .jg-visual,
  .jg-card,
  .jg-notice {
    box-shadow: none;
    break-inside: avoid;
  }

  a {
    color: #111111;
  }
}
/* Header platform buttons */
.jg-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jg-header-actions .jg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid #d6aa48;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}

.jg-header-actions .jg-btn-outline {
    color: #f2d589;
    background: #15130f;
}

.jg-header-actions .jg-btn-primary {
    color: #191205;
    background: linear-gradient(135deg, #ffe6a2, #d9ac45);
}

/* Fixed bottom platform buttons */
.jg-platform-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(221, 178, 78, .28);
    background: rgba(12, 12, 12, .96);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .35);
    backdrop-filter: blur(16px);
}

.jg-platform-dock a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    max-width: 260px;
    min-height: 48px;
    border: 1px solid #d6aa48;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}

.jg-platform-dock__register {
    color: #191205;
    background: linear-gradient(135deg, #ffe6a2, #d9ac45);
    box-shadow: 0 4px 16px rgba(217, 172, 69, .18);
}

.jg-platform-dock__login {
    color: #f2d589;
    background: linear-gradient(135deg, #242016, #14120f);
}

.jg-header-actions a:hover,
.jg-platform-dock a:hover {
    filter: brightness(1.1);
}

.jg-header-actions a:focus-visible,
.jg-platform-dock a:focus-visible {
    outline: 3px solid #fff0bd;
    outline-offset: 3px;
}

body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 480px) {
    .jg-header-actions {
        gap: 7px;
    }

    .jg-header-actions .jg-btn {
        min-height: 40px;
        padding: 9px 13px;
        font-size: 13px;
    }
}
/* ==============================
   Responsive platform buttons
   ============================== */

.jg-header-actions,
.jg-header-actions *,
.jg-platform-dock,
.jg-platform-dock * {
    box-sizing: border-box;
}

/* Top buttons */
.jg-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}

.jg-header-actions a.jg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 10px 17px;

    border: 1px solid #d6aa48;
    border-radius: 11px;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;

    transition: filter .2s ease;
}

.jg-header-actions a.jg-btn-outline {
    color: #f2d589;
    background: #15130f;
}

.jg-header-actions a.jg-btn-primary {
    color: #191205;
    background: linear-gradient(135deg, #ffe6a2, #d9ac45);
}

/* Bottom fixed buttons */
.jg-platform-dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 999;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    justify-content: center;
    align-items: stretch;
    gap: 12px;

    width: auto;
    max-width: 100%;
    margin: 0;

    padding: 10px 16px;
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));

    border-top: 1px solid rgba(221, 178, 78, .28);
    background: rgba(12, 12, 12, .97);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .3);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.jg-platform-dock > a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 46px;
    margin: 0;
    padding: 11px 12px;

    border: 1px solid #d6aa48;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition: filter .2s ease;
}

.jg-platform-dock__register {
    color: #191205;
    background: linear-gradient(135deg, #ffe6a2, #d9ac45);
}

.jg-platform-dock__login {
    color: #f2d589;
    background: linear-gradient(135deg, #242016, #14120f);
}

.jg-header-actions a:hover,
.jg-platform-dock a:hover {
    filter: brightness(1.1);
}

.jg-header-actions a:focus-visible,
.jg-platform-dock a:focus-visible {
    outline: 3px solid #fff0bd;
    outline-offset: 3px;
}

/* Leave space for the fixed bottom buttons */
body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

html {
    scroll-padding-bottom:
        calc(92px + env(safe-area-inset-bottom, 0px));
}

/* Tablet */
@media (max-width: 1024px) {
    .jg-header-actions {
        gap: 6px;
    }

    .jg-header-actions a.jg-btn {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 13px;
    }
}

/* Mobile: reduce header width */
@media (max-width: 600px) {
    .jg-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: 84px;
    }

    .jg-header-actions a.jg-btn {
        width: 100%;
        min-height: 34px;
        padding: 7px 9px;
        border-radius: 9px;
        font-size: 12px;
    }

    .jg-platform-dock {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-top: 9px;
        padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    }

    .jg-platform-dock > a {
        min-height: 46px;
        font-size: 14px;
        border-radius: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jg-header-actions a,
    .jg-platform-dock a {
        transition: none;
    }
}
/* =========================================
   JL GAME — 全站内容卡片与阅读排版
   ========================================= */

:root {
    --jl-card-bg: #141619;
    --jl-card-border: rgba(222, 181, 89, .22);
    --jl-card-gold: #f0d18b;
    --jl-card-text: #d6d9df;
    --jl-card-muted: #abb2be;
    --jl-card-radius: 20px;
}

/* 防止网格、长链接和图片撑开页面 */
:where(main) :where(
    article,
    section,
    .jg-card,
    .jg-content-card,
    .jg-prose,
    .jg-article
) {
    min-width: 0;
    box-sizing: border-box;
}

:where(main) :where(img, video) {
    max-width: 100%;
    height: auto;
}

/* 内容卡片
   结构选择器用于没有单独卡片 class 的正文章节 */
:where(main) :is(
    .jg-card,
    .jg-content-card,
    .jg-prose,
    .jg-article,
    section:has(> h2):has(> p),
    section:has(> h3):has(> p)
) {
    position: relative;
    min-width: 0;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid var(--jl-card-border);
    border-radius: var(--jl-card-radius);

    color: var(--jl-card-text);
    background:
        radial-gradient(
            ellipse at top left,
            rgba(210, 161, 57, .075),
            transparent 55%
        ),
        linear-gradient(145deg, #191b1f, #101215);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .035),
        0 12px 32px rgba(0, 0, 0, .16);

    overflow-wrap: anywhere;
}

/* 相邻正文章节留白 */
:where(main) section:has(> h2):has(> p)
+ section:has(> h2):has(> p) {
    margin-top: 24px;
}

/* 卡片标题 */
:where(main) :is(
    .jg-card,
    .jg-content-card,
    .jg-prose,
    .jg-article,
    section:has(> h2):has(> p),
    section:has(> h3):has(> p)
) > :is(h2, h3) {
    margin: 0 0 22px;
    padding: 0 0 16px;

    border-bottom: 1px solid rgba(222, 181, 89, .16);

    color: var(--jl-card-gold);
    font-family: inherit;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.02em;
    text-wrap: balance;
}

:where(main) h2 {
    font-size: clamp(23px, 2.6vw, 32px);
}

:where(main) h3 {
    font-size: clamp(19px, 2vw, 23px);
}

/* 正文：避免截图中一长块文字贴边 */
:where(main) :where(
    .jg-card,
    .jg-content-card,
    .jg-prose,
    .jg-article,
    article,
    section
) > p {
    max-width: 72ch;
    margin: 0 0 20px;

    color: var(--jl-card-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: .005em;
    overflow-wrap: anywhere;
}

/* 段落结束后去掉多余底部空白 */
:where(main) :where(
    .jg-card,
    .jg-content-card,
    .jg-prose,
    .jg-article,
    article,
    section
) > :last-child {
    margin-bottom: 0;
}

/* 文中强调与链接 */
:where(main) p strong,
:where(main) li strong {
    color: #f4e4bb;
    font-weight: 700;
}

:where(main) :is(p, li) a {
    color: #edcc81;
    text-decoration: underline;
    text-decoration-color: rgba(237, 204, 129, .45);
    text-underline-offset: 4px;
}

/* 列表 */
:where(main) :where(
    .jg-card,
    .jg-content-card,
    .jg-prose,
    .jg-article,
    article,
    section
) > :is(ul, ol) {
    margin: 18px 0 24px;
    padding-inline-start: 24px;

    color: var(--jl-card-text);
    font-size: 16px;
    line-height: 1.8;
}

:where(main) li + li {
    margin-top: 10px;
}

:where(main) li::marker {
    color: #dfb960;
}

/* FAQ：折叠卡片 */
:where(main) details {
    min-width: 0;
    margin: 0 0 12px;
    border: 1px solid rgba(222, 181, 89, .19);
    border-radius: 15px;
    background: linear-gradient(145deg, #191b1f, #111316);
    overflow-wrap: anywhere;
}

:where(main) details[open] {
    border-color: rgba(222, 181, 89, .4);
}

:where(main) details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    min-height: 64px;
    padding: 18px 22px;

    color: #f0ddb1;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

:where(main) details > summary::-webkit-details-marker {
    display: none;
}

:where(main) details > summary::after {
    content: "+";
    display: grid;
    flex: 0 0 28px;
    place-items: center;

    width: 28px;
    height: 28px;
    border: 1px solid rgba(222, 181, 89, .3);
    border-radius: 9px;

    color: #f0d18b;
    background: rgba(222, 181, 89, .07);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

:where(main) details[open] > summary::after {
    content: "−";
}

:where(main) details[open] > summary {
    border-bottom: 1px solid rgba(222, 181, 89, .12);
}

:where(main) details > :not(summary) {
    margin: 0;
    padding: 18px 22px;
    color: var(--jl-card-text);
    font-size: 15px;
    line-height: 1.85;
}

:where(main) details > summary:focus-visible {
    outline: 2px solid #edcc81;
    outline-offset: -4px;
    border-radius: 14px;
}

/* 手机 */
@media (max-width: 600px) {
    :root {
        --jl-card-radius: 16px;
    }

    :where(main) :is(
        .jg-card,
        .jg-content-card,
        .jg-prose,
        .jg-article,
        section:has(> h2):has(> p),
        section:has(> h3):has(> p)
    ) {
        padding: 22px 18px;
    }

    :where(main) :where(
        .jg-card,
        .jg-content-card,
        .jg-prose,
        .jg-article,
        article,
        section
    ) > p {
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.85;
    }

    :where(main) details > summary {
        gap: 12px;
        padding: 17px 16px;
        font-size: 15px;
    }

    :where(main) details > :not(summary) {
        padding: 16px;
    }
}