/* =====================================================================
   TEAMHTW identity — loaded after style.css and overrides it.
   Royal jackpot look taken from the crown logo and the 21 GEMS promo:
   chunky rounded letters, gold sunburst, ribbon banner, bevelled 3D gold
   buttons that press down, cut-diamond cards with a gold rim, gem bullets.
   ===================================================================== */
:root {
    --font-heading: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
    --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    --gold-hi: #fff3b0;
    --gold-1: #ffd23f;
    --gold-2: #f2a900;
    --gold-3: #c98500;
    --gold-edge: #7a4c00;
    --gold-ink: #2a1700;
    --gold-face: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold-1) 30%, var(--gold-2) 66%, var(--gold-3) 100%);
    --gold-rim: linear-gradient(160deg, #fff0a0 0%, #d39a17 22%, #8a5c00 45%, #ffe28a 62%, #b98208 82%, #fff3b0 100%);
    --onyx: linear-gradient(180deg, rgba(38, 28, 6, .97), rgba(12, 8, 0, .98));
    --cut: 16px;
}
body { font-family: var(--font-body); }

/* chunky gold headline text, bevelled with stacked shadows */
.htw-gold-text,
.section-header h2,
.events-title,
.playsmall-head h2,
.buysell-title,
.footer-brand-name,
.nav-logo {
    font-family: var(--font-heading) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    letter-spacing: .02em;
    background: linear-gradient(180deg, #fffbe0 0%, var(--gold-1) 42%, var(--gold-2) 70%, #b06f00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 0 #5e3a00) drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
.events-title .events-highlight { -webkit-text-fill-color: transparent; background: inherit; -webkit-background-clip: text; background-clip: text; }
.section-header h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.section-header .overline,
.playsmall-over,
.world-label { font-family: var(--font-heading); font-weight: 400; letter-spacing: .14em; color: var(--gold-1); }
.hero-sub { font-family: var(--font-body) !important; font-style: normal !important; font-weight: 700 !important; color: #f6e7bd; }

/* ---------- nav ---------- */
.nav-logo { display: flex; align-items: center; gap: 9px; font-size: 1.45rem; }
.nav-logo .nav-crest {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 0 2px #ffd54a, 0 0 14px rgba(255, 196, 0, .55);
    filter: none;
}
.nav-links a { font-family: var(--font-body); font-weight: 800; }

/* ---------- hero: crest, sunburst, twinkling gems, ribbon ---------- */
.hero { position: relative; overflow: hidden; padding-top: 110px; }
.htw-burst {
    position: absolute; left: 50%; top: 44%; width: min(1400px, 190vw); aspect-ratio: 1; z-index: -1;
    transform: translate(-50%, -50%); pointer-events: none;
    -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 26%, transparent 55%);
    mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 26%, transparent 55%);
}
.htw-rays {
    position: absolute; inset: 0; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 205, 60, .13) 0deg 5deg, rgba(255, 205, 60, 0) 5deg 15deg);
    animation: htwSpin 90s linear infinite;
}
.htw-burst::after {
    content: ''; position: absolute; inset: 30%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 90, .38), rgba(255, 170, 0, .1) 45%, transparent 70%);
}
.htw-gems { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.htw-gems i {
    position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
    background: linear-gradient(135deg, #fffbe0 0%, #ffd23f 38%, #e09a00 62%, #fff3b0 100%);
    clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
    filter: drop-shadow(0 0 6px rgba(255, 210, 80, .9));
    opacity: .2; transform: scale(.6);
    animation: htwTwinkle 3.2s ease-in-out var(--d) infinite;
}
.htw-crest {
    width: clamp(190px, 30vw, 290px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
    margin: 6px auto 18px; display: block;
    box-shadow: 0 0 0 4px #ffd54a, 0 0 0 9px rgba(122, 76, 0, .9), 0 0 0 11px #ffe58a,
        0 0 50px rgba(255, 190, 0, .55), 0 24px 50px rgba(0, 0, 0, .6);
    animation: fadeUp .8s ease .1s both, htwFloat 5s ease-in-out 1s infinite;
}
.htw-sr {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-badge {
    font-family: var(--font-body); font-weight: 800; color: var(--gold-ink);
    background: var(--gold-face); border: 1px solid #fff0a8; border-radius: 999px;
    box-shadow: 0 3px 0 var(--gold-edge), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.hero-badge .dot { background: #1fbf4f; box-shadow: 0 0 0 3px rgba(31, 191, 79, .25); }

.world-display {
    background: none !important; border: 0 !important; box-shadow: none !important;
    backdrop-filter: none; -webkit-backdrop-filter: none; padding: 6px 10px 0; min-width: 0; overflow: visible;
}
.world-display::before, .world-display::after { display: none; }
.htw-ribbon {
    position: relative; display: inline-block; margin: 8px 42px 18px; padding: 12px 38px 14px;
    background: var(--gold-face);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -4px 0 rgba(130, 78, 0, .55),
        0 12px 26px rgba(0, 0, 0, .5), 0 0 34px rgba(255, 190, 0, .28);
}
.htw-ribbon::before, .htw-ribbon::after {
    content: ''; position: absolute; top: 12px; bottom: -12px; width: 40px; z-index: -1;
    background: linear-gradient(180deg, #e6a200, #8d5800);
}
.htw-ribbon::before { left: -34px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30% 50%); }
.htw-ribbon::after { right: -34px; clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%); }
.htw-ribbon .htw-fold { position: absolute; bottom: -12px; width: 14px; height: 12px; background: #5a3700; }
.htw-ribbon .htw-fold.l { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.htw-ribbon .htw-fold.r { right: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.htw-ribbon .world-name {
    margin: 0; font-family: var(--font-heading); font-weight: 400; letter-spacing: .05em;
    font-size: clamp(1.9rem, 5.4vw, 3rem); line-height: 1.05; color: var(--gold-ink);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .65), 0 -1px 0 rgba(120, 70, 0, .35);
    word-break: break-word;
}
.world-updated { font-size: .82rem; color: #d9c48e; margin-bottom: 10px; font-weight: 700; }
.world-players {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content;
    margin: 0 auto 18px; padding: 6px 16px; border-radius: 999px; color: #fff8e1; font-weight: 800;
    background: var(--onyx); border: 1.5px solid #d9a521; box-shadow: 0 3px 0 #4a2f00;
}
.world-players .player-icon { font-family: var(--font-heading); font-weight: 400; letter-spacing: .04em; }
.world-players #player-count { font-family: var(--font-heading); font-size: 1.15rem; color: var(--gold-1); }
.world-players [data-i18n="players-online"] { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- bevelled 3D buttons that press down ---------- */
.btn-p, .copy-btn, .buysell-btn, .event-tab.active, .nav-buysell, .whatsapp-channel-box, .watch-now-btn {
    font-family: var(--font-heading) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .06em;
    color: var(--gold-ink) !important; background: var(--gold-face) !important;
    border: 2px solid #fff0a8 !important; border-radius: 14px;
    box-shadow: 0 6px 0 var(--gold-edge), 0 10px 20px rgba(0, 0, 0, .45),
        inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(150, 90, 0, .45) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    transition: transform .08s ease, box-shadow .08s ease, filter .15s ease !important;
}
.btn-p, .btn-s { padding: 13px 30px 14px; font-size: 1.02rem; }
.btn-p:hover, .copy-btn:hover, .buysell-btn:hover, .nav-buysell:hover, .whatsapp-channel-box:hover {
    transform: translateY(-2px) !important; filter: brightness(1.07);
    box-shadow: 0 8px 0 var(--gold-edge), 0 14px 24px rgba(0, 0, 0, .45),
        inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(150, 90, 0, .45) !important;
}
.btn-p:active, .copy-btn:active, .buysell-btn:active, .event-tab:active, .nav-buysell:active, .whatsapp-channel-box:active, .btn-s:active {
    transform: translateY(5px) !important;
    box-shadow: 0 1px 0 var(--gold-edge), 0 3px 8px rgba(0, 0, 0, .4),
        inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(150, 90, 0, .4) !important;
}
/* the dark one: onyx with a gold rim */
.btn-s, .event-tab, .event-nav-btn, .lang-toggle {
    font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: .06em;
    color: var(--gold-1) !important; background: var(--onyx) !important;
    border: 2px solid #d9a521 !important; border-radius: 14px;
    box-shadow: 0 5px 0 #4a2f00, 0 9px 18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 230, 150, .25) !important;
    transition: transform .08s ease, box-shadow .08s ease, filter .15s ease !important;
}
.btn-s:hover, .event-tab:hover, .event-nav-btn:hover, .lang-toggle:hover { transform: translateY(-2px) !important; filter: brightness(1.2); }
.event-nav-btn:active, .lang-toggle:active { transform: translateY(4px) !important; box-shadow: 0 1px 0 #4a2f00 !important; }
.event-tab, .lang-toggle { border-radius: 10px; }
.event-tab.active { border-radius: 10px; }
.copy-btn { padding: 10px 22px; font-size: .9rem; }
.copy-btn.copied { filter: hue-rotate(70deg) saturate(.9); }
.copy-btn svg, .buysell-btn svg { stroke: currentColor; }
.nav-buysell { border-radius: 999px; padding-top: 6px; padding-bottom: 7px; box-shadow: 0 4px 0 var(--gold-edge), inset 0 2px 0 rgba(255, 255, 255, .7) !important; }
.nav-buysell:hover { box-shadow: 0 5px 0 var(--gold-edge), inset 0 2px 0 rgba(255, 255, 255, .7) !important; }
.nav-buysell-arrow { color: var(--gold-ink); }
.whatsapp-channel-box { border-radius: 999px; }
.whatsapp-channel-box .wa-channel-icon { color: #0b7a34; }

/* ---------- cut-diamond cards with a gold rim ---------- */
.rule-card, .social-card, .buysell-card, .event-info-dropdown {
    position: relative; isolation: isolate;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    background: var(--gold-rim) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
        calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.rule-card::before, .social-card::before, .buysell-card::before, .event-info-dropdown::before {
    content: '' !important; position: absolute; inset: 2px !important; height: auto !important; width: auto !important;
    opacity: 1 !important; z-index: -1; background: var(--onyx) !important;
    clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px),
        calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
}
/* a soft gold sheen across the top of each card */
.rule-card::after, .social-card::after, .buysell-card::after {
    content: '' !important; position: absolute; left: 2px; right: 2px; top: 2px; height: 70px !important; bottom: auto !important;
    z-index: -1; opacity: 1 !important; pointer-events: none;
    background: radial-gradient(70% 100% at 50% 0%, rgba(255, 200, 60, .16), transparent 70%) !important;
}
.rule-card:hover, .social-card:hover, .buysell-card:hover { filter: brightness(1.1); }
.event-info-dropdown { --cut: 12px; }
.event-info-btn { font-family: var(--font-heading); font-weight: 400; letter-spacing: .04em; color: var(--gold-1); background: none !important; border: 0 !important; }
.card-icon {
    background: var(--gold-face) !important; color: var(--gold-ink) !important; border: 2px solid #fff0a8;
    box-shadow: 0 4px 0 var(--gold-edge), inset 0 2px 0 rgba(255, 255, 255, .6);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0 !important;
    width: 58px !important; height: 58px !important;
}
.card-icon-img { width: 70% !important; height: 70% !important; }
.rule-card h3 { font-family: var(--font-heading); font-weight: 400; letter-spacing: .03em; font-size: 1.5rem; color: #fff6d6; }
.tag {
    font-family: var(--font-heading); font-weight: 400; letter-spacing: .08em;
    color: var(--gold-ink) !important; background: var(--gold-face) !important; border-radius: 6px;
    box-shadow: 0 2px 0 var(--gold-edge);
}
.sn { font-family: var(--font-heading); font-weight: 400; letter-spacing: .03em; font-size: 1.15rem; }
.social-icon { border-radius: 14px; }
.buysell-number { -webkit-text-fill-color: rgba(255, 210, 80, .1); }

/* gem bullets in the rules */
.ri {
    width: 12px; height: 14px; margin-top: 4px; opacity: 1 !important; font-size: 0 !important;
    background: linear-gradient(135deg, #fffbe0 0%, var(--gold-1) 40%, #c98500 70%, #fff0a8 100%);
    clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
    filter: drop-shadow(0 0 3px rgba(255, 200, 60, .7));
}
.ri::before { content: none !important; }
.rr { color: var(--gold-1); font-weight: 800; }
.rr.pos { color: #4fe08a; }

/* events carousel frame */
.events-carousel { border-radius: 18px; box-shadow: 0 0 0 2px #d9a521, 0 0 0 6px rgba(74, 47, 0, .9), 0 0 0 8px #ffe58a, 0 20px 50px rgba(0, 0, 0, .55); }

@keyframes htwSpin { to { transform: rotate(360deg); } }
@keyframes htwFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes htwTwinkle {
    0%, 100% { opacity: .15; transform: scale(.55) rotate(0deg); }
    45% { opacity: 1; transform: scale(1) rotate(8deg); }
    60% { opacity: .9; transform: scale(.95) rotate(0deg); }
}
@media (max-width: 640px) {
    .htw-ribbon { margin: 8px 30px 16px; padding: 10px 22px 12px; }
    .htw-ribbon::before { left: -26px; width: 30px; }
    .htw-ribbon::after { right: -26px; width: 30px; }
    .hero { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
    .htw-rays, .htw-gems i, .htw-crest { animation: none !important; }
    .htw-gems i { opacity: .6; transform: none; }
}

/* contact cards: centred, so a single card (links not set yet) doesn't sit on the left */
.social-grid { display: flex !important; flex-wrap: wrap; justify-content: center; }
.social-grid .social-card { flex: 0 1 230px; }
.events-title { font-size: 1.6rem !important; }
