/* ==========================================================================
   GraalGuide design system - "inside the HUD"
   Built directly off GraalOnline Era's actual in-game chrome: dark rounded
   icon-slot tiles, semi-transparent dialog panels, the glossy skeuomorphic
   OK-button, nameplate text (white + black outline), and the magenta/cyan
   spawn-circle glow the game itself uses under players' feet.
   ========================================================================== */

:root {
    /* One color, deliberately: blue, matching the Freeze mascot, plus
       black and white doing the rest of the work as neutrals. No gold,
       purple, green, or orange anywhere in the system - hierarchy comes
       from shade (light/medium/dark blue) and from white, not from a
       second hue. */
    --brand: #3b82f6;      /* blue: matches the Freeze mascot, the brand identity */
    --brand-light: #7aa9fa;
    --brand-dark: #2563eb;

    --glow-a: var(--brand-light);  /* accent, hover states */
    --glow-b: var(--brand-dark);   /* accent, secondary fills */
    --info-blue: #3b82f6;
    --badge-red: #3b82f6;
    --star-gold: #ffffff;  /* name is legacy from the gold-accent era; stars/ratings are white now */

    --chrome-bg: #101010;
    --chrome-elevated: #181818;
    --panel: rgba(24, 24, 24, 0.92);
    --panel-solid: #1c1c1c;
    --tile-bg: rgba(255, 255, 255, 0.05);
    --tile-bg-hover: rgba(255, 255, 255, 0.10);
    --tile-border: rgba(255, 255, 255, 0.13);
    --border-color: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.24);
    --text-color: #f0f0ee;
    --text-muted: #98988f;

    --primary-color: var(--brand);
    --secondary-color: var(--glow-b);
    --accent-color: var(--info-blue);
    --dark-bg: var(--chrome-bg);
    --darker-bg: var(--chrome-elevated);
    --card-bg: var(--panel-solid);

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-title: 'Anton', var(--font-display), sans-serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.6rem;

    /* Nameplate: bold white text with a black outline, like in-game
       player nametags rendered over any background. */
    --nameplate-shadow:
        -1.5px -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        1.5px 1.5px 0 #000,
        0 4px 12px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
    --chrome-bg: #f0efe9;
    --chrome-elevated: #e5e3da;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-solid: #ffffff;
    --tile-bg: rgba(16, 16, 16, 0.05);
    --tile-bg-hover: rgba(16, 16, 16, 0.10);
    --tile-border: rgba(16, 16, 16, 0.14);
    --border-color: rgba(16, 16, 16, 0.10);
    --border-strong: rgba(16, 16, 16, 0.26);
    --text-color: #181816;
    --text-muted: #5c5c54;

    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #2563eb;
    --dark-bg: var(--chrome-bg);
    --darker-bg: var(--chrome-elevated);
    --card-bg: var(--panel-solid);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--chrome-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-size: var(--font-md);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    position: relative;
    background-image:
        radial-gradient(ellipse 1000px 600px at 50% 0%, rgba(255, 255, 255, 0.035), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-repeat: no-repeat, repeat;
    background-attachment: scroll, fixed;
}

/* Custom scrollbar + selection, tuned to the gold/dark palette */
::selection {
    background: var(--brand);
    color: #101010;
}

html {
    scrollbar-color: var(--tile-border) var(--chrome-bg);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: var(--chrome-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--tile-border);
    border-radius: 10px;
    border: 2px solid var(--chrome-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark);
}

/* Ambient HUD watermark: faint echoes of the game's own virtual-joystick
   rings, fixed in the bottom corners of every page. Decorative only. */
body::before,
body::after {
    content: '';
    position: fixed;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 0 34px rgba(255, 255, 255, 0.022),
        0 0 0 68px rgba(255, 255, 255, 0.014);
    pointer-events: none;
    z-index: 0;
}

body::before {
    left: -60px;
}

body::after {
    right: -60px;
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
    border-color: rgba(20, 10, 40, 0.05);
    box-shadow:
        0 0 0 34px rgba(20, 10, 40, 0.02),
        0 0 0 68px rgba(20, 10, 40, 0.012);
}

header, .hero, .showcase, .container, footer {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, .logo, .stat-number, .btn {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Scroll reveal - class is added by JS only, so content stays visible
   with no JS at all. */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------------------------------- Header --------------------------------- */

header {
    background: rgba(10, 10, 13, 0.82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: white;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] header {
    background: rgba(240, 239, 233, 0.88);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    /* Deliberately the OS system-UI font, not var(--font-body)/Inter - this
       is what the logo happened to render as on a page that hadn't loaded
       the Google Fonts link, and it read better than Inter for the
       wordmark specifically. Kept explicit here rather than depending on
       Inter silently failing to load. */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-2xl);
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.logo a {
    color: var(--text-color);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

.logo-img {
    width: auto;
    height: 30px;
    margin-right: 8px;
    flex-shrink: 0;
    flex-grow: 0;
    vertical-align: middle;
}

.logo span {
    color: var(--brand-light);
}

/* Desktop only - the max-width:1100px query below overrides this back to
   a fixed dropdown panel. Giving nav the flex-grow itself (rather than
   relying on space-between, which was cramming it against the language/
   theme controls) centers it in whatever room is left between the logo
   group and the header actions, instead of hugging either edge. */
@media (min-width: 1101px) {
    nav {
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

nav ul {
    display: flex;
    list-style: none;
    position: relative;
}

nav ul li {
    margin-left: 6px;
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    font-size: var(--font-sm);
}

nav ul li a:hover {
    background: var(--tile-bg-hover);
    color: var(--text-color);
}

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

/* HUD quick-slot icon tile: matches the chat/avatar/item buttons in the
   game's own touchscreen HUD - rounded dark tile, subtle bevel border. */
.theme-toggle,
.language-btn {
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-toggle {
    color: var(--text-color);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--tile-bg-hover);
    border-color: var(--border-strong);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: inline-block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: inline-block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
    transition: color 0.2s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    color: var(--primary-color);
}

.menu-icon-svg {
    width: 26px;
    height: 26px;
}

/* Language selector */
.language-selector {
    position: relative;
}

.language-btn {
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    font-size: var(--font-sm);
    height: 40px;
}

.language-btn:hover {
    background: var(--tile-bg-hover);
    border-color: var(--border-strong);
}

.language-btn img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    margin-right: 8px;
    border-radius: 2px;
}

/* Dialog panel: the semi-transparent rounded box the game uses for its
   own "You've won an Event Coin!" style notifications. */
.language-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    width: 150px;
    z-index: 1000;
    margin-top: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.language-options.active {
    display: block;
}

.language-options a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    transition: all 0.2s ease;
    font-size: var(--font-sm);
}

.language-options a:hover {
    background: var(--tile-bg-hover);
}

.language-options a img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 2px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    width: max-content;
    min-width: 230px;
    max-width: 320px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    border-radius: 14px;
    list-style: none;
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid var(--border-strong);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    color: var(--text-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    font-weight: normal !important;
    font-size: var(--font-sm);
    white-space: nowrap;
}

.menu-icon {
    width: 24px;
    height: 24px;
    padding: 5px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid var(--tile-border);
    background: var(--tile-bg);
    box-sizing: content-box;
}

.dropdown-menu a:hover {
    background-color: var(--tile-bg-hover);
    color: var(--brand-light) !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ----------------------------------- Hero ---------------------------------- */

.hero {
    background:
        radial-gradient(ellipse 550px 320px at 12% 25%, rgba(59, 130, 246, 0.14), transparent 65%),
        radial-gradient(ellipse 550px 320px at 90% 70%, rgba(59, 130, 246, 0.14), transparent 65%),
        linear-gradient(rgba(4, 4, 4, 0.88), rgba(4, 4, 4, 0.94)),
        url('../../image/a/map.png') center/cover no-repeat;
    padding: 110px 0 95px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-position: center;
    transform: scale(1.08);
    animation: hero-drift 40s ease-in-out infinite alternate;
    z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
}

@keyframes hero-drift {
    0% { transform: scale(1.08) translate(0, 0); }
    100% { transform: scale(1.14) translate(-1.5%, -1.5%); }
}

[data-theme="light"] .hero {
    background:
        radial-gradient(ellipse 550px 320px at 12% 25%, rgba(59, 130, 246, 0.12), transparent 65%),
        radial-gradient(ellipse 550px 320px at 90% 70%, rgba(59, 130, 246, 0.12), transparent 65%),
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)),
        url('../../image/a/map.png') center/cover no-repeat;
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--brand-light);
    background: rgba(16, 16, 16, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 7px 16px 7px 10px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.hero-kicker img {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
}

/* The marquee moment: a gold-embossed poster title, straight off the
   game's own key art lettering. */
.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(2.75rem, 7vw, 4.75rem);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.02;
    color: var(--brand-light);
    filter:
        drop-shadow(0 3px 0 #1e2a4a)
        drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55))
        drop-shadow(0 12px 34px rgba(59, 130, 246, 0.3));
}

.hero p {
    font-size: var(--font-lg);
    max-width: 700px;
    margin: 0 auto 30px;
    color: #d6d6ce;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Compact hero: same photo-background identity, sized to match
   .page-header for interior pages (Guides - How To) instead of the
   homepage's bigger flagship scale. */
.hero.hero-compact {
    padding: 70px 0;
}

.hero.hero-compact h1 {
    font-size: var(--font-3xl);
}

/* Primary CTA: the game's own glossy dialog-button mechanics (hard border,
   gradient sheen, "pressed" drop-shadow edge), in gold - the one dominant
   hero color that ties back to the title lettering and currency icons. */
.btn {
    display: inline-block;
    background: var(--brand);
    color: #ffffff;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: var(--font-sm);
    text-align: center;
    margin: 5px;
    transition: all 0.2s ease;
    border: 2px solid #1e3a8a;
    cursor: pointer;
    box-shadow: 0 4px 0 #1e3a8a, 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn:hover {
    background: var(--brand-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1e3a8a, 0 12px 26px rgba(59, 130, 246, 0.38);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1e3a8a, 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* De-emphasized credit tag inside a button label, e.g. "Gani Preview by GraalGuide" */
.btn-credit {
    font-size: 0.7em;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    opacity: 0.75;
}

/* Secondary: solid fill, same treatment as primary/accent - never the
   near-invisible low-opacity tile this used to be. A button with no
   readable contrast against its background is a real usability bug, not
   a style choice, so this stays solid and theme-aware (blue in dark
   mode, green in light mode, both already-established design tokens). */
.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-secondary:hover {
    background: var(--glow-a);
    color: white;
    filter: brightness(1.12);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* Accent: police blue, for informational/external actions (e.g. Discord) */
.btn-accent {
    background: var(--info-blue);
    color: #071733;
    border: 2px solid #0a2e6b;
    box-shadow: 0 4px 0 #0a2e6b, 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-accent:hover {
    background: #60a5fa;
    color: #071733;
    box-shadow: 0 6px 0 #0a2e6b, 0 12px 24px rgba(37, 99, 235, 0.35);
}

/* -------------------------- Showcase: stats + gallery ---------------------- */

.showcase {
    padding: 55px 0 65px;
}

.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 45px;
    text-align: center;
}

.stat-item {
    padding: 0 32px;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border-color);
}

.stat-item .stat-number {
    font-family: var(--font-title);
    font-size: var(--font-4xl);
    font-weight: 400;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--brand-light);
    line-height: 1.2;
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

[data-theme="light"] .stat-item .stat-number {
    color: #2563eb;
    text-shadow: none;
}

.stat-item .stat-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.showcase-heading {
    text-align: center;
    margin-bottom: 30px;
}

.showcase-heading h2 {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.showcase-heading p {
    color: var(--text-muted);
    font-size: var(--font-md);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    margin-bottom: 38px;
}

/* Item-slot: an actual in-game inventory quick-slot tile - dark rounded
   square with a beveled top highlight, sprite centered inside. */
.showcase-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    display: block;
    background-size: cover;
    background-position: top center;
    position: relative;
}

/* Head sprite sheets are stacked multi-angle frames (32px each); frame 1
   (the plain top of the sheet) is the back of the head with no face, so
   the front-facing frame (3rd frame, 64px down) needs an explicit pull
   instead of the default top-crop. Bodies don't have this problem. */
.showcase-thumb[data-type="head"] {
    background-position: center 12.12%;
}

.showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    image-rendering: pixelated;
}

/* Rare-item shimmer sweep, MMO-loot style */
.showcase-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.showcase-thumb:hover::after {
    left: 150%;
}

/* Loot-rarity glow: gold (rare) / green (common) tiers, alternating */
.showcase-thumb:nth-child(odd):hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), 0 10px 24px rgba(59, 130, 246, 0.35);
}

.showcase-thumb:nth-child(even):hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--glow-b);
    box-shadow: 0 0 0 1px var(--glow-b), 0 10px 24px rgba(59, 130, 246, 0.35);
}

.showcase-thumb.rotating {
    opacity: 0;
}

.showcase-cta {
    text-align: center;
}

@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .stats-bar {
        gap: 0 10px;
    }

    .stat-item {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .showcase {
        padding: 35px 0 40px;
    }

    .showcase-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .stat-item {
        padding: 0 10px 15px;
    }
}

/* ------------------------------- World band --------------------------------- */
/* A real screenshot of players hanging out, used as a full-bleed section
   background - the same move minecraft.wiki makes with actual block/mob
   textures instead of stock photography. This is the site's "there's a
   whole city in here" moment. */

.world-band {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(16, 16, 16, 0.5) 0%, rgba(16, 16, 16, 0.86) 65%, var(--chrome-bg) 100%),
        url('../../image/a/upl.jpg') center 25% / cover no-repeat;
    background-attachment: fixed;
}

[data-theme="light"] .world-band {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 65%, var(--chrome-bg) 100%),
        url('../../image/a/upl.jpg') center 25% / cover no-repeat;
    background-attachment: fixed;
}

.world-band-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.world-band h2 {
    font-family: var(--font-title);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    letter-spacing: 0.01em;
    color: #ffffff;
    text-shadow: var(--nameplate-shadow);
    margin-bottom: 16px;
}

.world-band p {
    color: #e4e4dc;
    font-size: var(--font-lg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .world-band {
        padding: 55px 0;
        background-attachment: scroll;
    }
}

/* ---------------------------- Gallery item-slots ----------------------------- */
/* Shared across heads.html/bodies.html/hats.html - same item-slot treatment
   as the homepage showcase grid, so the actual gallery content (not just
   the header/hero) carries the identity through. */

.head-item, .body-item, .hat-item {
    background: var(--tile-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--tile-border);
    position: relative;
}

.head-item::after, .body-item::after, .hat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.head-item:hover::after, .body-item:hover::after, .hat-item:hover::after {
    left: 150%;
}

.head-item:nth-child(odd):hover, .body-item:nth-child(odd):hover, .hat-item:nth-child(odd):hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), 0 10px 24px rgba(59, 130, 246, 0.3);
}

.head-item:nth-child(even):hover, .body-item:nth-child(even):hover, .hat-item:nth-child(even):hover {
    transform: translateY(-5px);
    border-color: var(--glow-b);
    box-shadow: 0 0 0 1px var(--glow-b), 0 10px 24px rgba(59, 130, 246, 0.35);
}

.head-gallery, .body-display, .hat-display {
    background: var(--chrome-bg);
}

.head {
    border-color: var(--tile-border);
}

/* about-me.html profile photo ring - the page's old inline CSS referenced
   --primary-color/--secondary-color directly, which now resolve to gold/
   green instead of the original purple/teal, so it needs an explicit
   solid-gold override here rather than being left to leak through. */
.profile-image {
    background: var(--brand);
    border-color: var(--brand);
}

/* ------------------------------- Page header --------------------------------- */
/* Interior pages (galleries, calculators, guides) use .page-header instead
   of .hero - same photo-background identity, smaller scale since these
   aren't the homepage. */

.page-header {
    background: var(--primary-color);
    padding: 70px 0;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .page-header {
    background: var(--primary-color);
    color: #fff;
}

.page-header h1 {
    font-family: var(--font-title);
    font-size: var(--font-3xl);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 15px;
    font-weight: 400;
    position: relative;
    color: var(--brand-light);
    filter:
        drop-shadow(0 2px 0 #1e2a4a)
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: var(--font-lg);
    color: #d6d6ce;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    position: relative;
}

/* ------------------------------- Resource hub -------------------------------- */
/* Homepage: every tool/guide on the site, one click away, grouped by which
   Graal game it applies to. */

.resource-hub {
    padding: 10px 0 55px;
}

.resource-group {
    margin-bottom: 40px;
}

.resource-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.resource-group-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--brand);
    border-radius: 2px;
    flex-shrink: 0;
}

.resource-group-title .badge {
    font-family: var(--font-body);
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--brand-light);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.resource-group.is-universal .resource-group-title .badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info-blue);
    border-color: rgba(59, 130, 246, 0.35);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.resource-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 8px;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    box-sizing: content-box;
}

.resource-text {
    min-width: 0;
}

.resource-card-title {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    font-size: var(--font-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-card-desc {
    display: block;
    color: var(--text-muted);
    font-size: var(--font-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .resource-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --------------------------------- Main content ----------------------------- */

.main-content {
    display: flex;
    margin: 45px 0;
    gap: 30px;
}

.articles {
    flex: 2;
}

/* Dialog-panel card: same semi-transparent rounded panel as the game's
   own notification/dialog boxes. */
.article {
    background: var(--panel);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    border: 1px solid var(--border-strong);
}

.article:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(15%) contrast(108%);
}

.notice-collage {
    width: 100%;
    height: 200px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    overflow: hidden;
    background: var(--chrome-bg);
}

.notice-collage div {
    background-size: cover;
    background-position: top center;
    image-rendering: pixelated;
    filter: grayscale(8%) contrast(105%);
}

@media (max-width: 480px) {
    .notice-collage {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

.article-content {
    padding: 22px;
}

.article h2 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
    font-size: var(--font-xl);
    letter-spacing: -0.01em;
}

.article-meta {
    color: var(--text-muted);
    font-size: var(--font-sm);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.article-meta svg {
    margin-right: 5px;
}

/* Notification-badge style pill, echoing the red circular unread badge */
.tag {
    display: inline-block;
    background: var(--tile-bg);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--font-xs);
    margin-right: 10px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid var(--tile-border);
}

.tag-news {
    background: rgba(59, 130, 246, 0.18);
    color: var(--info-blue);
    border-color: rgba(59, 130, 246, 0.35);
}

.tag-guide {
    background: rgba(59, 130, 246, 0.18);
    color: var(--star-gold);
    border-color: rgba(59, 130, 246, 0.35);
}

.tag-ec {
    background: rgba(59, 130, 246, 0.18);
    color: var(--star-gold);
    border-color: rgba(59, 130, 246, 0.35);
}

.tag-upload {
    background: rgba(96, 165, 250, 0.18);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.35);
}

.tag-tro {
    background: rgba(59, 130, 246, 0.18);
    color: var(--info-blue);
    border-color: rgba(59, 130, 246, 0.35);
}

.article p, .article ul {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: var(--font-md);
}

.article-cta {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
}

.article ul li {
    margin-left: 20px;
    margin-bottom: 5px;
}

/* ----------------------------------- Sidebar --------------------------------- */

.sidebar {
    flex: 1;
}

.sidebar-widget {
    background: var(--panel);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-strong);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 3px solid var(--brand);
    color: var(--text-color);
    font-weight: 700;
    font-size: var(--font-lg);
}

.ad-container {
    background: var(--chrome-bg);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    border: 1px dashed var(--border-color);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ad-label {
    display: block;
    text-align: center;
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.featured-list {
    list-style: none;
}

.featured-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.featured-list li:hover {
    background: var(--tile-bg);
    padding-left: 5px;
    border-radius: 8px;
}

.featured-list li:last-child {
    border-bottom: none;
}

.featured-list img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
    border: 1px solid var(--tile-border);
    background: var(--tile-bg);
    image-rendering: pixelated;
}

.featured-list a {
    color: var(--text-color);
    transition: all 0.2s ease;
    font-size: var(--font-md);
    font-weight: 500;
}

.featured-list a:hover {
    color: var(--brand-light);
}

/* ----------------------------------- Footer ---------------------------------- */

footer {
    background: var(--chrome-elevated);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--brand-light);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: var(--font-lg);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-section p, .footer-section li {
    color: var(--text-muted);
    font-size: var(--font-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: var(--font-md);
}

.footer-section ul li a:hover {
    color: var(--brand-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: var(--font-sm);
    color: var(--text-muted);
}

/* ------------------------------ Mobile nav actions --------------------------- */

.mobile-actions-container {
    display: none;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--chrome-elevated);
    gap: 10px;
    align-items: center;
}

/* ------------------------------ Favorites -------------------------------- */
/* Per-item save button (heads/bodies/hats) plus the "Favorites Only" filter
   toggle above each gallery grid. State lives in localStorage, shared across
   all three gallery types since image paths are unique. */

.favorites-bar {
    margin-bottom: 16px;
}

.favorites-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 9px 16px;
    color: var(--text-color);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorites-toggle:hover {
    border-color: var(--brand);
}

.favorites-toggle.active {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    transform: scale(1.1);
}

.fav-btn.active {
    color: var(--brand);
    background: rgba(0, 0, 0, 0.75);
}

/* ------------------------- Community dataset status --------------------- */
/* Shown while the large community-upload dataset is fetching, and left up
   (with a retry action) if the fetch fails, so a slow/broken connection
   doesn't silently show a tiny gallery as if it were the whole thing. */

.community-status {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--text-color);
    font-size: var(--font-sm);
}

.community-status-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.community-status.is-loading .community-status-icon {
    animation: community-status-pulse 1.4s ease-in-out infinite;
}

@keyframes community-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.community-status-retry {
    background: var(--brand);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-weight: 700;
    font-size: var(--font-xs);
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}

.mobile-actions-container .language-selector {
    flex: 1;
    margin: 0;
}

.mobile-actions-container .language-btn {
    width: 100%;
    justify-content: center;
}

.mobile-actions-container .theme-toggle {
    margin: 0;
    flex-shrink: 0;
}

.mobile-language-options {
    display: none;
    margin-top: 10px;
    background: var(--panel);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.mobile-language-options.active {
    display: block;
}

.mobile-language-options a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.mobile-language-options a:last-child {
    border-bottom: none;
}

.mobile-language-options a:hover {
    background: var(--tile-bg-hover);
}

.mobile-language-options a img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 2px;
}

/* ------------------------------------ Responsive ------------------------------ */

@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .articles {
        margin-right: 0;
    }

    .hero h1 {
        font-size: var(--font-3xl);
    }

    .hero p {
        font-size: var(--font-md);
    }
}

/* --------------------------------- Previewer teaser -------------------------- */
/* Promo strip pointing at the Gani Previewer, used on the heads/bodies/hats
   galleries and the upload guide - the pages where someone's most likely to
   want to test a combo before downloading or uploading it. */

.previewer-teaser {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.previewer-teaser:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.previewer-teaser-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.previewer-teaser-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.previewer-teaser-text strong {
    color: var(--brand-light);
    font-size: var(--font-md);
}

.previewer-teaser-text span {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.previewer-teaser-cta {
    color: var(--brand-light);
    font-weight: 700;
    font-size: var(--font-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .previewer-teaser-text span {
        display: none;
    }
}

@media (max-width: 1100px) {
    :root {
        --font-xs: 0.7rem;
        --font-sm: 0.8rem;
        --font-md: 0.9rem;
        --font-lg: 1rem;
        --font-xl: 1.1rem;
        --font-2xl: 1.3rem;
        --font-3xl: 1.5rem;
        --font-4xl: 1.9rem;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
    }

    nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100vh - 70px);
        background: var(--chrome-elevated);
        padding: 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        z-index: 999;
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        margin-top: 0;
    }

    nav ul li {
        margin: 6px 0;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin: 10px 0;
        border: none;
        background: var(--chrome-bg);
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .mobile-actions-container {
        display: flex;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: var(--font-2xl);
    }

    .btn {
        padding: 10px 20px;
        margin: 5px 0;
        display: block;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .article-img, .notice-collage {
        height: 180px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-xs: 0.65rem;
        --font-sm: 0.75rem;
        --font-md: 0.85rem;
        --font-lg: 0.95rem;
        --font-xl: 1.05rem;
        --font-2xl: 1.2rem;
        --font-3xl: 1.35rem;
        --font-4xl: 1.6rem;
    }

    .logo {
        font-size: var(--font-xl);
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: var(--font-xl);
    }

    .article-content {
        padding: 15px;
    }

    .sidebar-widget {
        padding: 15px;
    }

    .featured-list img {
        width: 35px;
        height: 35px;
    }

    footer {
        padding: 30px 0 15px;
    }

    .mobile-actions-container {
        gap: 8px;
    }

    .mobile-actions-container .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .mobile-actions-container .language-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        height: 36px;
    }
}

@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Share section - inline "share this page" block used on guide/calculator/gallery pages */
.share-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 20px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
}

.share-section-mascot {
    width: 56px;
    height: 56px;
    display: block;
    margin: 0 auto 10px;
}

.share-section-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-color);
}

.share-section-subtitle {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin: 0 0 20px;
}

.share-section-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.share-platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-weight: 700;
    font-size: var(--font-sm);
    color: white !important;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Icon-only by default - the label only shows itself again briefly for
   the "Copied!" confirmation, since that feedback matters more than the
   platform names do sitting there permanently. */
.share-btn-label {
    display: none;
}

.share-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-platform-btn:hover {
    transform: translateY(-3px);
    color: white !important;
    filter: brightness(1.1);
}

.share-discord { background: #5865f2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #26a5e4; }
.share-copy { background: #6b7280; }

.share-platform-btn.copied {
    background: #3ba55d !important;
    width: auto;
    padding: 12px 20px;
    border-radius: 30px;
}

.share-platform-btn.copied .share-btn-label {
    display: inline;
}

@media (max-width: 480px) {
    .share-section {
        padding: 24px 16px;
        margin: 24px auto;
    }

    .share-platform-btn {
        width: 42px;
        height: 42px;
    }

    .share-platform-btn.copied {
        padding: 10px 16px;
        font-size: var(--font-xs);
    }
}

/* Ad slots - consistent spacing/centering so units never sit flush
   against nav links or buttons (avoids accidental-click policy issues)
   and never cause layout jumps once they resolve. */
.ad-slot {
    margin: 32px auto;
    max-width: 970px;
    min-height: 100px;
    text-align: center;
    overflow: hidden;
}

.ad-slot-sidebar {
    margin: 0 0 24px;
    max-width: none;
}

.ad-slot-fluid {
    min-height: 250px;
}

/* ----------------------------- Header page title ------------------------------ */
/* "GraalGuide | Page Title" next to the logo, same pattern as previewer.html -
   tells you which page you're on without waiting for the hero to load. */
.header-page-title {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
    padding-left: 14px;
    border-left: 1px solid var(--border-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .header-page-title {
        display: none;
    }
}
