/* Inner pages /xx/game/, /xx/world/, /xx/classes/ (inner-pages, 2026-12-01). Hand-written like
   home.css (the Tailwind build in app.css is precompiled); builds on the h- components inside
   .h-home and adds g- classes. Brand tokens only. */
.g-page .h-section { padding-block: 64px; }
@media (min-width: 1024px) { .g-page .h-section { padding-block: 96px; } }
.g-page [hidden] { display: none !important; }
.g-alt { background: var(--h-ink-3); }
.g-soft { background: radial-gradient(circle at 50% 0%, rgba(198, 161, 91, 0.08), transparent 55%), var(--h-ink); }

/* Fact row + skill chain */
.g-facts { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--h-line); background: var(--h-line); }
@media (min-width: 900px) { .g-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.g-facts li { padding: 22px 20px; background: var(--h-ink-2); }
.g-facts b { display: block; font-family: "Cinzel", serif; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: 0.08em; color: var(--h-gold-2); }
.g-facts span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--h-mute); }
.g-facts p { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--h-text); }
.g-chain { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: g-chain; }
@media (min-width: 900px) { .g-chain { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
.g-chain li { position: relative; padding: 18px 20px; border: 1px solid var(--h-line); background: linear-gradient(160deg, rgba(198, 161, 91, 0.08), transparent 60%), var(--h-ink-2); }
@media (min-width: 900px) {
  .g-chain li + li { border-left: 0; }
  .g-chain li:not(:last-child)::after { content: ""; position: absolute; z-index: 2; top: 50%; right: -7px; width: 12px; height: 12px; border-top: 1px solid var(--h-gold); border-right: 1px solid var(--h-gold); background: var(--h-ink-2); transform: translateY(-50%) rotate(45deg); }
}
.g-chain small { display: block; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--h-gold); }
.g-chain b { display: block; margin-top: 6px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--h-cream); }
.g-chain em { display: inline-block; margin-top: 8px; padding: 2px 8px; border: 1px solid rgba(198, 161, 91, 0.4); font-family: "Cinzel", serif; font-style: normal; font-size: 12px; letter-spacing: 0.08em; color: var(--h-gold-2); }
.g-chain p { margin: 10px 0 0; font-size: 13px; line-height: 1.65; color: var(--h-text); }

/* Point lists inside cards */
.g-points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.g-points li { padding-left: 14px; border-left: 1px solid rgba(198, 161, 91, 0.45); font-size: 13.5px; line-height: 1.65; color: var(--h-text); }
.g-points li b { color: var(--h-cream); font-weight: 500; }
.g-page .h-sys > div:last-child { padding: 22px 24px 26px; }
.g-sys-4 { margin-top: 18px; }
@media (min-width: 1024px) { .g-sys-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-kick { margin: 0 0 6px; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--h-gold); }

/* CTA strip */
.g-cta { display: grid; gap: 12px; }
@media (min-width: 640px) { .g-cta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .g-cta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.g-cta a { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 18px; border: 1px solid var(--h-line); background: var(--h-ink-2); color: inherit; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.g-cta a:hover { border-color: rgba(198, 161, 91, 0.55); background: rgba(198, 161, 91, 0.08); }
.g-cta a.is-gold { border-color: var(--h-gold); background: linear-gradient(180deg, rgba(243, 227, 182, 0.14), rgba(198, 161, 91, 0.08)); }
.g-cta img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.g-cta span { flex: 1; min-width: 0; }
.g-cta b { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.3rem; line-height: 1.15; color: var(--h-cream); }
.g-cta small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--h-mute); }
.g-cta i { font-style: normal; color: var(--h-gold); }

/* Empires */
.g-empire-meta { margin: 16px 0 0; display: grid; gap: 8px; font-size: 13px; }
.g-empire-meta div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--h-line); }
.g-empire-meta dt { color: var(--h-mute); }
.g-empire-meta dd { margin: 0; color: var(--h-cream); text-align: right; }
.g-empire-meta i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--tone); vertical-align: -1px; }
.g-note { margin-top: 22px; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid rgba(198, 161, 91, 0.35); background: rgba(198, 161, 91, 0.06); }
.g-note img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.g-note b { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.25rem; color: var(--h-cream); }
.g-note p { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--h-text); }

/* Level path (filterable) */
.g-filter { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.g-filter button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--h-line); background: rgba(7, 6, 5, 0.5); color: var(--h-gold-2); font: inherit; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.g-filter button:hover { border-color: rgba(198, 161, 91, 0.5); }
.g-filter button[aria-pressed="true"] { border-color: var(--h-gold); background: rgba(198, 161, 91, 0.14); color: var(--h-cream); }
.g-filter small { margin-left: 6px; color: var(--h-mute); letter-spacing: 0.06em; }
.g-zones { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.g-zone { position: relative; display: flex; flex-direction: column; border: 1px solid var(--h-line); background: var(--h-ink-2); }
.g-zone-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.g-zone-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--h-ink-2), transparent 45%); }
.g-zone-body { position: relative; margin-top: -26px; padding: 0 18px 20px; }
.g-zone h3 { margin: 10px 0 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: var(--h-cream); }
.g-zone p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--h-text); }
.g-zone .h-lv { background: rgba(7, 6, 5, 0.85); }
.g-chips { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.g-chips li { padding: 3px 9px; border: 1px solid rgba(198, 161, 91, 0.28); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--h-gold-2); }
.g-band { display: block; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--h-mute); }

/* Bosses */
.g-boss-grid { margin-top: 40px; display: grid; gap: 14px; }
@media (min-width: 768px) { .g-boss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-boss { display: flex; flex-direction: column; border: 1px solid var(--h-line); background: var(--h-ink-2); }
.g-boss-img { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.g-boss-img img { transition: transform 0.6s; }
.g-boss:hover .g-boss-img img { transform: scale(1.04); }
.g-boss-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--h-ink-2) 2%, transparent 50%); }
.g-boss-body { position: relative; margin-top: -40px; padding: 0 22px 24px; }
.g-boss-body small { display: block; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--h-gold); }
.g-boss-body h3 { margin: 6px 0 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.9rem; color: var(--h-cream); }
.g-boss-body dl { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.g-boss-body dt { display: inline; color: var(--h-mute); }
.g-boss-body dd { display: inline; margin: 0 0 0 6px; color: var(--h-cream); }
.g-boss-body p { margin: 12px 0 0; padding-left: 14px; border-left: 1px solid rgba(198, 161, 91, 0.45); font-size: 13.5px; line-height: 1.7; color: var(--h-text); }
.g-foot { margin: 18px 0 0; font-size: 13px; line-height: 1.7; color: var(--h-mute); }

/* Two info cards (guild lands, metin stones) */
.g-split { margin-top: 40px; display: grid; gap: 14px; }
@media (min-width: 900px) { .g-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-info { padding: 26px; border: 1px solid var(--h-line); background: linear-gradient(140deg, rgba(198, 161, 91, 0.07), transparent 55%), var(--h-ink-2); }
.g-info-head { display: flex; align-items: center; gap: 14px; }
.g-info-head img { width: 48px; height: 48px; flex: none; object-fit: contain; }
.g-info h3 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.7rem; color: var(--h-cream); }
.g-info > p { margin: 14px 0 0; font-size: 14px; line-height: 1.75; color: var(--h-text); }

/* Classes */
.g-class-grid { margin-top: 40px; display: grid; gap: 22px; }
@media (min-width: 1024px) { .g-class-grid { grid-template-columns: 210px minmax(0, 1fr); align-items: start; } }
.g-class-top { display: grid; gap: 18px; }
@media (min-width: 1024px) { .g-class-top { grid-template-columns: minmax(0, 1fr) 320px; } .g-class-top .h-class-stage { min-height: 460px; } }
.g-meta { margin: 18px 0 0; display: grid; gap: 1px; border: 1px solid var(--h-line); background: var(--h-line); }
@media (min-width: 768px) { .g-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-meta div { padding: 16px 18px; background: var(--h-ink-2); }
.g-meta dt { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--h-gold); }
.g-meta dd { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--h-cream); }
.g-meta .g-chips { margin-top: 2px; }
.g-paths { margin-top: 18px; display: grid; gap: 14px; }
@media (min-width: 768px) { .g-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-path { padding: 22px 22px 24px; border: 1px solid var(--h-line); background: linear-gradient(160deg, rgba(198, 161, 91, 0.08), transparent 55%), var(--h-ink-2); }
.g-path h4 { margin: 4px 0 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--h-cream); }
.g-path > p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--h-text); }
.g-path dl { margin: 14px 0 0; display: grid; gap: 10px; }
.g-path dt { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--h-gold); }
.g-path dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--h-text); }
.g-skills { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.g-skills li { padding: 4px 10px; border: 1px solid rgba(198, 161, 91, 0.3); background: rgba(7, 6, 5, 0.45); font-size: 12.5px; color: var(--h-gold-2); }

/* Comparison */
.g-compare-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--h-line); background: var(--h-ink-2); scrollbar-color: var(--h-gold) transparent; scrollbar-width: thin; }
.g-compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.g-compare th,
.g-compare td { padding: 16px 18px; border-bottom: 1px solid var(--h-line); text-align: left; vertical-align: middle; }
.g-compare tr:last-child td,
.g-compare tr:last-child th { border-bottom: 0; }
.g-compare thead th { font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--h-gold); background: rgba(198, 161, 91, 0.06); }
.g-compare tbody th { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.35rem; color: var(--h-cream); white-space: nowrap; }
.g-compare tbody th small { display: block; font-family: "Outfit", sans-serif; font-weight: 400; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--h-mute); }
.g-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.g-dots i { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(198, 161, 91, 0.5); }
.g-dots i.on { background: linear-gradient(180deg, var(--h-gold-2), var(--h-gold)); border-color: var(--h-gold); }
.g-compare td small { display: block; margin-top: 4px; font-size: 11px; color: var(--h-mute); }

@media (prefers-reduced-motion: reduce) { .g-page img { transition: none !important; } }
