/* xeguide1 (30-11-2026): /guide. Everything starts with .xg- ; same family as the Tribe Events page (xe-events.css).
   xeguide2 (Mortimer: «hazlo PREMIUM»): --ac is the accent of a section, --tc the colour of a tribe; the official logo and
   the tribes' official emblems; an image is never stretched (object-fit: contain, its own ratio). */
.xg [hidden] { display: none !important; }
.xg { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 20px 64px; color: #fff; }
.xg img { max-width: 100%; height: auto; object-fit: contain; }

.xg-hero { position: relative; text-align: center; padding: 18px 10px 8px; isolation: isolate; }
.xg-hero::before { content: ''; position: absolute; z-index: -1; left: 50%; top: -10px; width: min(760px, 100%); height: 340px; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(249, 115, 22, 0.28), transparent 70%), radial-gradient(closest-side at 22% 60%, rgba(147, 112, 219, 0.25), transparent 70%),
        radial-gradient(closest-side at 78% 60%, rgba(79, 125, 255, 0.25), transparent 70%); filter: blur(8px); }
.xg-hero-logo { display: block; width: clamp(150px, 26vw, 220px); margin: 0 auto 6px; filter: drop-shadow(0 12px 30px rgba(249, 115, 22, 0.45)); animation: xg-float 6s ease-in-out infinite; }
.xg-hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.3rem); font-weight: 900; letter-spacing: 0.04em; line-height: 1.05; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45); }
.xg-hero h1 span { background: linear-gradient(100deg, #f97316, #ffc27a 55%, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xg-hero p { margin: 12px auto 0; max-width: 620px; color: rgba(255, 255, 255, 0.82); font-size: 1.04rem; line-height: 1.55; }
.xg-hero-tribes { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.xg-hero-tribes img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px var(--tc)); }
.xg-search { position: relative; display: block; max-width: 540px; margin: 20px auto 0; }
.xg-search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 1rem; line-height: 1; pointer-events: none; }
.xg-search input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 10px 20px 10px 48px; border-radius: 999px; font: inherit; font-size: 1rem; color: #fff;
    background: rgba(8, 11, 28, 0.78); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06); color-scheme: dark;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.xg-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.xg-search input:focus { outline: none; border-color: #fb923c; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22), 0 10px 34px rgba(0, 0, 0, 0.35); }

.xg-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 28px; }
.xg-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 15px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; text-decoration: none;
    color: rgba(255, 255, 255, 0.86); background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 12%, rgba(10, 14, 32, 0.7)), rgba(10, 14, 32, 0.7));
    border: 1px solid color-mix(in srgb, var(--ac) 38%, rgba(255, 255, 255, 0.08)); transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s; }
.xg-chip:hover { color: #fff; border-color: var(--ac); transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--ac) 28%, transparent); }
.xg-chip-img { width: 26px; height: 18px; }
.xg-ico { font-style: normal; line-height: 1; }
.xg-chip:focus-visible, .xg-btn:focus-visible, .xg-anchor:focus-visible, .xg-tribe:focus-visible { outline: 2px solid #fb923c; outline-offset: 2px; }

.xg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.xg-card { position: relative; padding: 24px 24px 22px; border-radius: 22px; scroll-margin-top: 110px; overflow: hidden; isolation: isolate;
    background: radial-gradient(130% 90% at 0% 0%, color-mix(in srgb, var(--ac) 16%, transparent), transparent 58%), linear-gradient(180deg, rgba(18, 26, 58, 0.9), rgba(8, 11, 28, 0.92));
    border: 1px solid color-mix(in srgb, var(--ac) 26%, rgba(255, 255, 255, 0.08)); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.xg-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--ac), color-mix(in srgb, var(--ac) 10%, transparent)); }
.xg-card:hover { border-color: color-mix(in srgb, var(--ac) 60%, transparent); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 34px color-mix(in srgb, var(--ac) 16%, transparent); transform: translateY(-2px); }
.xg-card.is-target { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac), 0 18px 50px color-mix(in srgb, var(--ac) 28%, transparent); }
.xg-card--wide { grid-column: 1 / -1; }
.xg-card-head { display: flex; align-items: center; gap: 14px; }
.xg-badge { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; font-size: 1.5rem; line-height: 1;
    background: linear-gradient(145deg, color-mix(in srgb, var(--ac) 34%, transparent), color-mix(in srgb, var(--ac) 8%, transparent));
    border: 1px solid color-mix(in srgb, var(--ac) 55%, transparent); box-shadow: 0 8px 22px color-mix(in srgb, var(--ac) 24%, transparent); }
.xg-badge--logo { width: 84px; height: 60px; background: rgba(4, 6, 18, 0.55); }
.xg-badge--logo img { width: 68px; height: 48px; filter: drop-shadow(0 4px 10px rgba(249, 115, 22, 0.5)); }
.xg-card-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.32rem; font-weight: 800; line-height: 1.2; letter-spacing: 0.01em; }
.xg-anchor { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 800; text-decoration: none;
    color: rgba(255, 255, 255, 0.3); transition: color 0.18s, background 0.18s; }
.xg-anchor:hover { color: var(--ac); background: rgba(255, 255, 255, 0.06); }
.xg-lead { margin: 14px 0 0; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.xg-facts { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.xg-card--wide .xg-facts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 26px; }
.xg-facts li { position: relative; padding-left: 20px; font-size: 0.95rem; line-height: 1.6; color: rgba(255, 255, 255, 0.74); overflow-wrap: anywhere; }
.xg-facts li::before { content: ''; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--ac); box-shadow: 0 0 8px var(--ac); }
.xg-facts b { color: #fff; font-weight: 700; }
.xg-facts b.xg-t { display: inline-flex; align-items: center; gap: 5px; vertical-align: baseline; color: color-mix(in srgb, var(--tc) 78%, #fff); text-shadow: 0 0 14px color-mix(in srgb, var(--tc) 45%, transparent); white-space: nowrap; }
.xg-t img { width: 18px; height: 18px; align-self: center; }
.xg-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.xg-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; text-decoration: none;
    color: #fff; background: color-mix(in srgb, var(--ac) 14%, rgba(255, 255, 255, 0.04)); border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent);
    transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.xg-btn:hover { background: color-mix(in srgb, var(--ac) 28%, rgba(255, 255, 255, 0.04)); border-color: var(--ac); transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--ac) 25%, transparent); }

/* the five tribes: official emblem, name and button in the tribe's colour */
.xg-tribes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.xg-tribe { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 18px 12px 16px; border-radius: 18px; text-align: center; text-decoration: none; color: #fff; overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--tc) 26%, transparent), transparent 70%), rgba(6, 9, 24, 0.72);
    border: 1px solid color-mix(in srgb, var(--tc) 42%, transparent); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.xg-tribe:hover { transform: translateY(-4px); border-color: var(--tc); box-shadow: 0 16px 36px color-mix(in srgb, var(--tc) 30%, transparent); }
.xg-tribe-emblem { width: 84px; height: 84px; margin-bottom: 6px; filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--tc) 60%, transparent)); transition: transform 0.25s; }
.xg-tribe:hover .xg-tribe-emblem { transform: scale(1.07); }
.xg-tribe-name { font-size: 1.2rem; font-weight: 900; letter-spacing: 0.03em; color: color-mix(in srgb, var(--tc) 80%, #fff); text-shadow: 0 0 18px color-mix(in srgb, var(--tc) 50%, transparent); }
.xg-tribe-aka { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.xg-tribe-vibe { margin-top: 6px; font-size: 0.86rem; font-weight: 700; color: #fff; }
.xg-tribe-text { font-size: 0.82rem; line-height: 1.45; color: rgba(255, 255, 255, 0.68); }
.xg-tribe-go { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; color: #0b0e1c;
    background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #fff)); }

.xg-empty { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; border-radius: 18px; text-align: center; color: rgba(255, 255, 255, 0.7);
    background: rgba(10, 14, 32, 0.5); border: 1px dashed rgba(255, 255, 255, 0.16); }
.xg-empty-ico { font-size: 2.2rem; line-height: 1; }
.xg-empty b { font-size: 1.1rem; color: #fff; }

@media (max-width: 980px) { .xg-tribes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .xg-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .xg { padding: 0 12px 44px; }
    .xg-index { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: -12px; margin-right: -12px; padding: 4px 12px 10px; scrollbar-width: none; }
    .xg-index::-webkit-scrollbar { display: none; }
    .xg-chip { flex: none; }
    .xg-card { padding: 20px 16px 18px; }
    .xg-links .xg-btn { flex: 1 1 auto; justify-content: center; }
    .xg-tribes { grid-template-columns: 1fr; }
    .xg-tribe { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 14px; padding: 14px; }
    .xg-tribe-emblem { grid-row: 1 / span 5; width: 64px; height: 64px; margin: 0; align-self: center; }
    .xg-tribe-vibe { margin-top: 2px; }
    .xg-tribe-go { margin-top: 8px; }
    .xg-badge--logo { width: 70px; height: 52px; }
    .xg-badge--logo img { width: 58px; height: 41px; }
}
@keyframes xg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .xg-hero-logo { animation: none; } .xg-card, .xg-chip, .xg-btn, .xg-anchor, .xg-tribe, .xg-tribe-emblem { transition: none; } .xg-card:hover, .xg-tribe:hover, .xg-chip:hover, .xg-btn:hover { transform: none; } }
