/* HumbleServers game pages (/minecraft/, /rust/, …, /games/), redesign v2 (2026-10-03; v2: the popular plan's accent follows the card's corners). Loaded after
   hs-site-v1.css and hs-docs-v2.css (the prose, guide lists and help band come from there); rendered by
   scripts/site-games.py. */

/* ---------- hero: the game's art full bleed, the pitch on the left ---------- */
.ghero { position: relative; z-index: 3; min-height: min(78svh, 700px); display: flex; align-items: flex-end; padding: 150px 0 64px; isolation: isolate; }
.ghero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ghero-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: gpush 18s ease-out both; }
@keyframes gpush { from { transform: scale(1.1); } to { transform: scale(1.02); } }
.ghero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.96) 0%, rgba(6, 10, 18, 0.82) 34%, rgba(6, 10, 18, 0.25) 66%, rgba(6, 10, 18, 0.1) 100%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.55) 0%, transparent 26%, transparent 62%, var(--void) 100%),
    radial-gradient(45% 60% at 8% 80%, rgba(7, 150, 221, 0.24), transparent 70%);
}
.ghero-in { max-width: 640px; }
.ghero-id { display: flex; align-items: center; gap: 14px; }
.ghero-id img { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }
.ghero h1 { margin: 22px 0 16px; font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ghero h1 span { display: block; background: linear-gradient(92deg, #7dd3fc, #38bdf8 45%, #0796dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ghero .lede { max-width: 540px; }
.gfacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.gfacts li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hull-2); background: rgba(9, 14, 23, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 0.78rem/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.gfacts li b { color: #fff; }
.gfacts svg { width: 14px; height: 14px; color: var(--sky); }
.gcrumbs { margin-bottom: 8px; }

/* ---------- sections ---------- */
/* Only top and bottom: the element is also a .wrap, whose side gutter must stay (v3 fix). */
.gsec { padding-top: 70px; padding-bottom: 70px; }
.gsec + .gsec { padding-top: 20px; }
.ghead { max-width: 700px; margin-bottom: 34px; }
.ghead h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; }
.ghead p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.ghead p a { font-weight: 600; }
.gnote { max-width: 760px; margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
.gnote a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.gnote svg { width: 14px; height: 14px; }
/* Parts of one section (cards, then the long read, then a note) keep their distance. */
.gsec > :not(.ghead) + :not(.ghead) { margin-top: 44px; }

/* Plans: one card each, the store's live price, straight into the store. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plans.n1 { grid-template-columns: minmax(0, 480px); }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 20px; border: 1px solid var(--hull-2); overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 36, 0.92), rgba(9, 14, 23, 0.92)); transition: border-color 0.3s var(--ease), transform 0.3s var(--out);
}
.plan:hover { border-color: rgba(56, 189, 248, 0.4); transform: translateY(-3px); }
.plan.is-pop { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 30px 60px -30px rgba(7, 150, 221, 0.6); }
/* The accent sits inside the card and is clipped by its rounded corners, so it follows the curve. */
.plan.is-pop::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 1.25rem; font-weight: 700; }
.plan .tier-tag { flex-shrink: 0; }
.plan-desc { margin-top: 6px; min-height: 2.9em; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan-price b { font: 800 2.3rem/1 var(--display); letter-spacing: -0.03em; }
.plan-price span { font: 500 0.86rem/1 var(--mono); color: var(--muted); }
.plan-ahead { font: 500 0.74rem/1.3 var(--mono); color: var(--green); }
.plan ul { display: grid; gap: 9px; margin: 18px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--hull-2); list-style: none; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); }
.plan li svg { width: 16px; height: 16px; margin-top: 1px; color: var(--sky); flex-shrink: 0; }
.plan .btn { margin-top: auto; }

/* Facts as cards with an icon. */
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; border: 1px solid var(--hull-2); background: rgba(11, 17, 28, 0.85); color: var(--ink); }
a.gcard { transition: border-color 0.25s, transform 0.25s var(--out); }
a.gcard:hover { border-color: rgba(56, 189, 248, 0.42); transform: translateY(-2px); color: var(--ink); }
.gcard .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); color: var(--sky); }
.gcard .ico svg { width: 20px; height: 20px; }
.gcard h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.gcard p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.gcard .more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 0.84rem; font-weight: 600; color: var(--sky); }
.gcard .more svg { width: 14px; height: 14px; }

/* Long-form parts: the guides' prose, in a readable column. */
.gprose { max-width: 780px; }
.gprose.prose h2:first-child { margin-top: 0; }

/* FAQ: native details, no script needed. */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border-radius: 16px; border: 1px solid var(--hull-2); background: rgba(11, 17, 28, 0.85); transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(56, 189, 248, 0.35); }
.faq summary { display: flex; align-items: center; gap: 14px; padding: 17px 20px; cursor: pointer; list-style: none; font-weight: 600; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 22px; height: 22px; margin-left: auto; flex-shrink: 0; border-radius: 7px; background: rgba(56, 189, 248, 0.12)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/13px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: var(--ink-2); line-height: 1.65; }
.faq .a p + p { margin-top: 0.7em; }
.faq .a a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

/* The game list (/games/): one art tile per game. */
.gtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gtile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 260px; padding: 22px; border-radius: 22px; overflow: hidden; isolation: isolate; border: 1px solid var(--hull-2); color: #fff; transition: border-color 0.3s, transform 0.3s var(--out); }
.gtile:hover { border-color: rgba(56, 189, 248, 0.5); transform: translateY(-3px); color: #fff; }
.gtile-art { position: absolute; inset: 0; z-index: -1; }
.gtile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.gtile:hover .gtile-art img { transform: scale(1.06); }
.gtile-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 18, 0.05) 20%, rgba(6, 10, 18, 0.92) 100%); }
.gtile img.lg { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
.gtile h2, .gtile h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.gtile small { font: 500 0.82rem/1.2 var(--mono); color: var(--ink-2); }
.gtile small b { color: #fff; }
.gtile p { color: var(--ink-2); font-size: 0.9rem; line-height: 1.45; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.gtile .more { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.84rem; font-weight: 600; color: var(--sky-soft); }
.gtile .more svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.gtile:hover .more svg { transform: translateX(3px); }
.gpack { min-height: 300px; }

/* Closing call: this game's art behind one button. */
.gcta { position: relative; margin: 30px 0 70px; border-radius: 26px; overflow: hidden; isolation: isolate; border: 1px solid rgba(56, 189, 248, 0.25); }
.gcta-art { position: absolute; inset: 0; z-index: -2; }
.gcta-art img { width: 100%; height: 100%; object-fit: cover; }
.gcta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 10, 18, 0.95) 0%, rgba(6, 10, 18, 0.75) 55%, rgba(6, 10, 18, 0.35) 100%), linear-gradient(0deg, rgba(7, 150, 221, 0.2), transparent 60%); }
.gcta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px 40px; }
.gcta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; }
.gcta p { margin-top: 8px; color: var(--ink-2); }

@media (max-width: 1080px) {
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ghero { min-height: 0; padding: 118px 0 40px; }
  .ghero::before { background: linear-gradient(180deg, rgba(6, 10, 18, 0.45) 0%, rgba(6, 10, 18, 0.7) 40%, rgba(6, 10, 18, 0.96) 75%, var(--void) 100%); }
  .gsec { padding-top: 50px; padding-bottom: 50px; }
  .gcards, .gtiles { grid-template-columns: minmax(0, 1fr); }
  .plans.n1 { grid-template-columns: minmax(0, 1fr); }
  .gcta-in { padding: 30px 22px; }
  .gcta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ghero-art img { animation: none; transform: none; } }
