/*==================================================
    BEASTGATE PAGE (15 Nov 2026) — js/beastgate.js
==================================================*/
#beastgatePage{ position:relative; }
#beastgateRoot{ display:flex; flex-direction:column; gap:14px; }

/* tabs on top */
.gt-tabs{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:6px; padding:4px; border-radius:14px; background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.08); }
.gt-tabs button{ min-height:42px; padding:8px 10px; border-radius:10px; font:inherit; font-size:14px; font-weight:800; cursor:pointer; color:#b9c3e6;
    background:transparent; border:1px solid transparent; white-space:nowrap; transition:background .15s, color .15s; }
.gt-tabs button:hover{ color:#fff; background:rgba(139,63,255,.14); }
.gt-tabs button.active{ color:#fff; background:linear-gradient(100deg, #6B3BFF, #8b3fff); border-color:#8b3fff; box-shadow:0 4px 14px rgba(107,59,255,.35); }

/* the gate art */
.gt-gate{ position:relative; width:230px; height:230px; margin:auto; }
.gt-ring{ position:absolute; border-radius:50%; border:3px solid var(--c); inset:0; transition:opacity .6s, transform .6s; color:var(--c); }
.gt-ring.r1{ border-style:dashed; animation:gtSpin 40s linear infinite; }
.gt-ring.r2{ inset:22px; border-style:dotted; animation:gtSpin 30s linear infinite reverse; }
.gt-ring.r3{ inset:44px; border-style:dashed; animation:gtSpin 22s linear infinite; }
.gt-ring.r4{ inset:66px; animation:gtSpin 16s linear infinite reverse; }
.gt-ring em{ position:absolute; top:-11px; left:50%; transform:translateX(-50%); font-style:normal; font-family:Orbitron, sans-serif; font-size:10px; font-weight:800;
    padding:2px 6px; border-radius:999px; color:#0b0820; background:var(--c); }
.gt-ring:not(.off){ filter:drop-shadow(0 0 6px var(--c)); }
.gt-ring.now{ border-width:4px; animation-duration:8s; filter:drop-shadow(0 0 12px var(--c)); }
.gt-ring.off{ opacity:.1; transform:scale(1.08); animation:none; }
.gt-ring.off em{ display:none; }
.gt-core{ position:absolute; inset:86px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center;
    background:radial-gradient(circle, color-mix(in srgb, var(--c) 30%, #1a1240), #0b0820 75%); border:2px solid var(--c);
    box-shadow:0 0 22px -4px var(--c), inset 0 0 18px rgba(0,0,0,.8); animation:gtPulse 2.4s ease-in-out infinite; }
.gt-core b{ font-family:Orbitron, sans-serif; font-size:24px; line-height:1; color:#fff; text-shadow:0 0 10px var(--c); }
.gt-core span{ margin-bottom:3px; font-size:9px; font-weight:800; color:var(--c); text-transform:uppercase; letter-spacing:.1em; }
.gt-gate.open .gt-core{ background:radial-gradient(circle, #fff3c4, #ffb800 50%, #6b3bff); }
.gt-core-open{ color:#1a0c00 !important; font-size:15px !important; text-shadow:none !important; }
@keyframes gtSpin{ to{ transform:rotate(360deg); } }
@keyframes gtPulse{ 0%,100%{ box-shadow:0 0 14px -6px var(--c), inset 0 0 18px rgba(0,0,0,.8); } 50%{ box-shadow:0 0 30px 0 var(--c), inset 0 0 18px rgba(0,0,0,.8); } }

/* loading */
.gt-loading{ display:flex; flex-direction:column; align-items:center; gap:16px; padding:40px 10px; }
.gt-loading p{ margin:0; font-family:Orbitron, sans-serif; font-size:14px; letter-spacing:.12em; text-transform:uppercase; color:#b79bff; animation:gtBlink 1.4s ease-in-out infinite; }
.gt-gate.loading .gt-ring{ animation-duration:3s; }
.gt-gate.loading .gt-ring.r2, .gt-gate.loading .gt-ring.r4{ animation-duration:2s; }
@keyframes gtBlink{ 50%{ opacity:.35; } }

/* hero */
.gt-hero{ display:grid; grid-template-columns:260px minmax(0,1fr); gap:20px; align-items:center; padding:18px; border-radius:18px;
    background:radial-gradient(ellipse at 20% 50%, rgba(139,63,255,.25), transparent 60%), linear-gradient(160deg, rgba(20,16,48,.96), rgba(8,8,22,.96));
    border:1px solid rgba(139,63,255,.55); box-shadow:0 0 30px -12px rgba(139,63,255,.8); }
.gt-hero-info{ display:flex; flex-direction:column; gap:12px; min-width:0; }
.gt-kicker{ font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#b79bff; }
.gt-hero-info h3{ margin:0; font-family:Orbitron, sans-serif; font-size:26px; letter-spacing:.04em;
    background:linear-gradient(90deg, #00e5ff, #8b3fff, #ff3df2); -webkit-background-clip:text; background-clip:text; color:transparent; }
.gt-pot{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.gt-pot > div, .gt-ends, .gt-me > div{ display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:12px; background:rgba(0,0,0,.32); border:1px solid rgba(255,255,255,.1); min-width:0; }
.gt-pot span, .gt-ends span, .gt-me span{ font-size:11px; color:#9fb3d6; text-transform:uppercase; letter-spacing:.06em; }
.gt-pot b{ font-family:Orbitron, sans-serif; font-size:22px; color:#ffd76a; }
.gt-pot > div:last-child b{ color:#ffb347; }
.gt-pot small, .gt-ends small, .gt-me small, .gt-join small{ font-size:11px; color:#b7c0dd; }
.gt-join{ display:flex; flex-direction:column; gap:6px; padding:10px 12px; border-radius:12px; background:rgba(255,94,138,.07); border:1px solid rgba(255,94,138,.35); }
.gt-now{ display:flex; flex-direction:column; gap:6px; padding:10px 12px; border-radius:12px; background:color-mix(in srgb, var(--c) 8%, rgba(0,0,0,.3)); border:1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.gt-now .gt-join-top span{ color:#c9d1ea; }
.gt-ok{ color:#ffd76a !important; }
.gt-lists .gt-empty{ margin-top:6px; }
.gt-join.ok{ background:rgba(61,255,138,.07); border-color:rgba(61,255,138,.4); }
.gt-join-top{ display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.gt-join-top b{ color:#fff; font-size:14px; }
.gt-join-top span{ font-size:12px; color:#ff9db2; }
.gt-join.ok .gt-join-top span{ color:#7dffb0; }
.gt-ends{ flex-direction:row !important; align-items:baseline; gap:10px !important; flex-wrap:wrap; }
.gt-ends b{ font-family:Orbitron, sans-serif; font-size:18px; color:#00e5ff; }

.gt-me{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.gt-me b{ color:#fff; font-size:14px; }
.gt-warn{ margin:0; padding:10px 12px; border-radius:10px; font-size:13px; color:#ffd76a; background:rgba(255,215,106,.08); border:1px solid rgba(255,215,106,.35); }

/* seal track: I II III IV */
.gt-track{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; }
.gt-step{ display:grid; grid-template-columns:34px minmax(0,1fr); grid-template-rows:auto auto; column-gap:8px; align-items:center; text-align:left;
    padding:8px 10px; border-radius:12px; cursor:pointer; font:inherit; color:#b7c0dd; background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.1); transition:border-color .15s, background .15s; }
.gt-step i{ grid-row:1 / 3; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-style:normal;
    font-family:Orbitron, sans-serif; font-size:12px; font-weight:800; color:var(--c); border:2px solid var(--c); }
.gt-step span{ font-size:13px; font-weight:800; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gt-step small{ font-size:11px; }
.gt-step.done i{ background:var(--c); color:#0b0820; }
.gt-step.done small{ color:#ffd76a; }
.gt-step.live{ border-color:color-mix(in srgb, var(--c) 60%, transparent); }
.gt-step.live small{ color:#7dffb0; }
.gt-step.live i{ box-shadow:0 0 10px var(--c); animation:gtBlink 1.6s ease-in-out infinite; }
.gt-step.lock{ opacity:.55; }
.gt-step.active{ background:color-mix(in srgb, var(--c) 14%, rgba(0,0,0,.3)); border-color:var(--c); box-shadow:0 0 14px -4px var(--c); }

/* the seal shown */
.gt-seal-host.rise{ animation:gtRise .45s ease-out; }
#gtArtBox{ display:flex; }
@keyframes gtRise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
.gt-seal{ display:flex; flex-direction:column; gap:12px; padding:16px; border-radius:16px;
    background:linear-gradient(160deg, rgba(20,24,48,.95), rgba(10,12,26,.95)); border:1px solid color-mix(in srgb, var(--c) 55%, transparent);
    box-shadow:0 0 26px -10px var(--c); }
.gt-seal.is-locked{ opacity:.6; }
.gt-seal.is-broken{ background:linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, rgba(10,12,26,.95)), rgba(10,12,26,.95)); }
.gt-seal-head{ display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:12px; align-items:center; }
.gt-rune{ width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    border:2px solid var(--c); box-shadow:0 0 12px var(--c), inset 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); }
.gt-rune span{ font-family:Orbitron, sans-serif; font-weight:800; color:var(--c); font-size:15px; }
.gt-seal-name b{ display:block; color:#fff; font-size:18px; }
.gt-seal-name small{ font-size:12px; color:#9fb3d6; }
.gt-tag{ font-size:11px; font-weight:800; padding:4px 9px; border-radius:999px; white-space:nowrap; }
.gt-tag.live{ color:#7dffb0; background:rgba(61,255,138,.1); border:1px solid rgba(61,255,138,.4); }
.gt-tag.done{ color:#ffd76a; background:rgba(255,215,106,.1); border:1px solid rgba(255,215,106,.4); }
.gt-tag.lock{ color:#b7c0dd; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.15); }
.gt-prize{ display:flex; gap:8px; flex-wrap:wrap; }
.gt-prize span{ display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:#fff; padding:5px 9px; border-radius:9px; background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.1); }
.gt-prize .gt-mine{ margin-left:auto; color:#b7c0dd; }
.gt-coin{ width:10px; height:10px; border-radius:50%; flex:0 0 auto; }
.gt-coin.bt{ background:#c86bff; box-shadow:0 0 6px #c86bff; }
.gt-coin.ac{ background:#ffb347; box-shadow:0 0 6px #ffb347; }

.gt-bar{ position:relative; height:24px; border-radius:999px; background:rgba(0,0,0,.4); border:1px solid rgba(255,255,255,.1); overflow:hidden; }
.gt-bar i{ position:absolute; left:0; top:0; bottom:0; border-radius:999px; background:linear-gradient(90deg, color-mix(in srgb, var(--c, #8b3fff) 55%, #6B3BFF), var(--c, #8b3fff)); box-shadow:0 0 12px var(--c, #8b3fff); transition:width .5s; }
.gt-bar span{ position:relative; display:block; text-align:center; font-size:12px; font-weight:800; line-height:22px; color:#fff; text-shadow:0 1px 2px #000; }
.gt-bar.thin{ height:8px; }
.gt-join .gt-bar i{ --c:#3dff8a; }

/* give: one row per material */
.gt-mrows{ display:flex; flex-direction:column; gap:8px; }
.gt-mrow{ display:grid; grid-template-columns:minmax(0,1fr) 150px 72px; gap:8px; align-items:center; padding:8px 10px; border-radius:12px; background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.1); }
.gt-mrow-name{ display:flex; align-items:center; gap:10px; min-width:0; }
.gt-mrow-name img{ width:34px; height:34px; flex:0 0 auto; }
.gt-mrow-name b{ display:block; color:#fff; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gt-mrow-name small{ font-size:11px; color:#9fb3d6; }
.gt-mrow input{ min-width:0; width:100%; height:40px; padding:0 10px; border-radius:10px; font:inherit; font-size:15px; font-weight:700; color:#fff; background:rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.15); box-sizing:border-box; }
.gt-mrow input:focus{ outline:none; border-color:var(--c); }
.gt-max{ height:40px; padding:0 10px; border-radius:10px; font:inherit; font-size:13px; font-weight:800; cursor:pointer; color:#fff; background:rgba(139,63,255,.15); border:1px solid rgba(139,63,255,.5); }
.gt-max:disabled{ opacity:.4; cursor:not-allowed; }
.gt-give-bar{ display:grid; grid-template-columns:minmax(0,1fr) 160px; gap:12px; align-items:center; padding:10px 12px; border-radius:12px; background:rgba(139,63,255,.08); border:1px solid rgba(139,63,255,.35); }
.gt-give-bar > div{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.gt-give-bar span{ font-size:11px; color:#9fb3d6; text-transform:uppercase; letter-spacing:.06em; }
.gt-give-bar b{ font-family:Orbitron, sans-serif; font-size:18px; color:#fff; }
.gt-give-bar small{ font-size:11px; color:#b7c0dd; }
.gt-give-bar.over{ background:rgba(255,94,138,.08); border-color:rgba(255,94,138,.45); }
.gt-give-bar.over small{ color:#ff9db2; }
.gt-go{ height:44px; width:100% !important; margin:0 !important; }
.gt-go:disabled{ opacity:.45; cursor:not-allowed; }
.gt-broken, .gt-locked, .gt-done-cap{ display:flex; flex-direction:column; gap:3px; padding:12px; border-radius:12px; background:rgba(0,0,0,.28); border:1px dashed rgba(255,255,255,.15); font-size:13px; color:#b7c0dd; }
.gt-broken b{ color:#ffd76a; font-size:15px; }
.gt-done-cap{ border-style:solid; border-color:rgba(61,255,138,.35); background:rgba(61,255,138,.06); }
.gt-done-cap b{ color:#7dffb0; font-size:15px; }
.gt-locked{ text-align:center; padding:20px 12px; }

/* other tabs */
.gt-lists{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.gt-box{ display:flex; flex-direction:column; gap:6px; padding:14px; border-radius:14px; background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.1); min-width:0; }
.gt-box h4{ margin:0 0 4px; font-size:13px; color:#fff; text-transform:uppercase; letter-spacing:.08em; }
.gt-row{ display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:8px; background:rgba(255,255,255,.03); font-size:13px; color:#d7dcef; min-width:0; }
.gt-row img{ width:18px; height:18px; flex:0 0 auto; }
.gt-row em{ font-style:normal; flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gt-row b{ flex:0 0 auto; color:#fff; }
.gt-row.you{ border:1px solid rgba(61,255,138,.35); }
.gt-row.you b{ color:#7dffb0; }
.gt-pos{ flex:0 0 26px; font-weight:800; color:#b79bff; }
.gt-empty{ margin:0; font-size:12px; color:#9fb3d6; }
.gt-how ul{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:7px; font-size:14px; color:#c9d1ea; line-height:1.45; }
.gt-pts{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; margin-top:8px; }
.gt-pts > div{ display:flex; flex-direction:column; gap:6px; padding:10px; border-radius:12px; background:rgba(0,0,0,.3); border:1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.gt-pts b{ color:var(--c); font-family:Orbitron, sans-serif; font-size:13px; }
.gt-pt{ display:flex; align-items:center; gap:6px; font-size:12px; color:#d7dcef; min-width:0; }
.gt-pt img{ width:18px; height:18px; flex:0 0 auto; display:block; }
.gt-pt em{ font-style:normal; flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gt-pt b{ flex:0 0 auto; font-family:inherit !important; font-size:12px !important; color:#fff !important; }
.gt-pts small{ margin-top:auto; font-size:11px; color:#9fb3d6; }

/* break animation */

@media (max-width:900px){
    .gt-hero{ grid-template-columns:1fr; }
}
@media (max-width:760px){
    .gt-me, .gt-lists{ grid-template-columns:1fr; }
    .gt-track{ grid-template-columns:repeat(4, minmax(0,1fr)); gap:5px; }
    .gt-step{ grid-template-columns:1fr; justify-items:center; text-align:center; padding:8px 4px; row-gap:4px; }
    .gt-step i{ grid-row:auto; }
    .gt-step span{ font-size:11px; max-width:100%; }
    .gt-step small{ display:none; }
    .gt-pts{ grid-template-columns:1fr 1fr; }
    .gt-tabs{ grid-template-columns:1fr 1fr; }
    .gt-mrow{ grid-template-columns:minmax(0,1fr) 64px; }
    .gt-mrow-name{ grid-column:1 / -1; }
    .gt-give-bar{ grid-template-columns:1fr; }
    .gt-prize .gt-mine{ margin-left:0; }
}
@media (max-width:420px){
    .gt-pot{ grid-template-columns:1fr; }
}
#gtWarnBox:empty{ display:none; }

/* 15 Nov 2026: art slots (assets/beastgate/*.png); the numeral shows until the art is there */
.gt-emb{ width:100%; height:100%; object-fit:contain; display:block; }
.gt-emb + .gt-num{ display:none; }
.gt-rune{ overflow:hidden; }
.gt-rune .gt-emb{ width:120%; height:120%; }
.gt-rune .gt-num{ font-family:Orbitron, sans-serif; font-weight:800; color:var(--c); font-size:15px; }
.gt-step i .gt-emb{ width:130%; height:130%; }

.gt-cicon{ width:18px; height:18px; flex:0 0 auto; vertical-align:-3px; margin-right:6px; }
.gt-pot b .gt-cicon{ width:24px; height:24px; vertical-align:-4px; }
.gt-grow{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 12px; border-radius:12px;
    background:rgba(61,255,138,.06); border:1px solid rgba(61,255,138,.3); }
.gt-grow b{ color:#fff; font-size:14px; }
.gt-grow span{ font-size:12px; color:#7dffb0; }

/* Beastgate mails in the Mailbox */
.mail-reward-row.gt-mail{ position:relative; display:flex !important; flex-direction:column; gap:8px; text-align:left;
    background:linear-gradient(150deg, rgba(107,59,255,.28), rgba(0,229,255,.08) 60%, rgba(10,8,26,.9)) !important;
    border:1px solid rgba(139,63,255,.75) !important; box-shadow:0 0 18px -6px rgba(139,63,255,.9), inset 0 1px 0 rgba(255,255,255,.08); }
.mail-reward-row.gt-mail-win{ border-color:rgba(255,215,106,.8) !important; box-shadow:0 0 20px -6px rgba(255,215,106,.8); }
.mail-reward-row.gt-mail > span{ display:flex; flex-direction:column; gap:6px; }
.gt-mail-head{ display:flex !important; flex-direction:row !important; align-items:center; gap:8px; }
.gt-mail-head img{ width:30px; height:30px; flex:0 0 auto; filter:drop-shadow(0 0 6px rgba(139,63,255,.8)); }
.gt-mail-dot{ width:14px; height:14px; border-radius:50%; flex:0 0 auto; background:radial-gradient(circle, #fff, #8b3fff 60%); box-shadow:0 0 10px #8b3fff; }
.gt-mail-head em{ font-style:normal; font-family:Orbitron, sans-serif; font-size:12px; font-weight:800; letter-spacing:.12em;
    background:linear-gradient(90deg, #00e5ff, #b26bff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.gt-mail-head small{ margin-left:auto; font-size:10px; font-weight:800; padding:3px 8px; border-radius:999px; color:#7dffb0; background:rgba(61,255,138,.1); border:1px solid rgba(61,255,138,.4); }
.gt-mail-win .gt-mail-head small{ color:#ffd76a; background:rgba(255,215,106,.1); border-color:rgba(255,215,106,.45); }
.gt-mail-text{ font-size:12px; color:#cfd6f0; line-height:1.35; }
.mail-reward-row.gt-mail > strong{ font-size:15px; color:#fff; }
.gt-pot b{ display:flex; align-items:center; gap:8px; }
.gt-pot b .gt-cicon{ margin:0; }
.gt-mail-head small{ white-space:nowrap; }

/* 15 Nov 2026: the gate art with 4 locks (assets/beastgate/gate.png / gate-open.png) */
.gt-gate{ width:250px; height:250px; }
.gt-gate-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 0 18px rgba(139,63,255,.55)); }
.gt-gate.open .gt-gate-img{ filter:drop-shadow(0 0 26px rgba(0,229,255,.7)); animation:gtPulseImg 3s ease-in-out infinite; }
.gt-gate.loading .gt-gate-img{ animation:gtPulseImg 1.4s ease-in-out infinite; }
@keyframes gtPulseImg{ 50%{ transform:scale(1.03); filter:drop-shadow(0 0 30px rgba(178,107,255,.9)); } }
.gt-lock{ position:absolute; width:16%; height:16%; transform:translate(-50%, -50%); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.gt-lock b{ position:absolute; bottom:-10px; font-family:Orbitron, sans-serif; font-size:9px; font-weight:800; padding:1px 5px; border-radius:999px; color:#0b0820; background:var(--c); box-shadow:0 0 8px var(--c); }
.gt-lock.lock b{ opacity:.55; }
.gt-lock.now{ border:2px solid var(--c); box-shadow:0 0 14px var(--c), inset 0 0 10px var(--c); animation:gtLockPulse 1.6s ease-in-out infinite; }
@keyframes gtLockPulse{ 50%{ transform:translate(-50%, -50%) scale(1.18); box-shadow:0 0 24px var(--c), inset 0 0 14px var(--c); } }
.gt-lock.done{ width:20%; height:20%; }
.gt-lock.done img{ width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 0 10px var(--c)); animation:gtPop .5s ease-out; }
@keyframes gtPop{ from{ transform:scale(.3); opacity:0; } to{ transform:none; opacity:1; } }

/* 15 Nov 2026: seal break animation v2: the seal shakes, cracks run across it, it bursts
   into 5 pieces with a flash and a shock wave, then the next seal is named */
.gt-fx{ position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center; background:rgba(4,2,14,0); transition:background .3s; }
.gt-fx.go{ background:rgba(4,2,14,.82); }
.gt-fx.out{ opacity:0; transition:opacity .4s; }
.gt-fx-box{ display:flex; flex-direction:column; align-items:center; gap:22px; text-align:center; padding:20px; }
.gt-fx-stage{ position:relative; width:min(220px, 56vw); height:min(220px, 56vw); }
.gt-fx-stage > *{ position:absolute; inset:0; }
.gt-fx-glow{ border-radius:50%; background:radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 65%); opacity:0; }
.gt-fx-seal{ display:flex; align-items:center; justify-content:center; transform:scale(.3); opacity:0; }
.gt-fx-seal img{ width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 0 16px var(--c)); }
.gt-fx-seal .gt-fx-num{ position:absolute; font-family:Orbitron, sans-serif; font-size:64px; font-weight:800; color:#fff; text-shadow:0 0 20px var(--c); }
.gt-fx-seal img + .gt-fx-num{ display:none; }
.gt-fx-cracks{ width:100%; height:100%; overflow:visible; }
.gt-fx-cracks path{ fill:none; stroke:#fff; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:90; stroke-dashoffset:90; filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px var(--c)); }
.gt-fx-piece{ background-position:center; background-size:contain; background-repeat:no-repeat; opacity:0; filter:drop-shadow(0 0 10px var(--c)); }
.gt-fx-flash{ border-radius:50%; background:radial-gradient(circle, #fff 0%, color-mix(in srgb, var(--c) 70%, #fff) 25%, transparent 60%); opacity:0; transform:scale(.4); }
.gt-fx-wave{ border-radius:50%; border:3px solid var(--c); opacity:0; transform:scale(.5); box-shadow:0 0 20px var(--c); }
.gt-fx-stage i{ inset:auto; left:50%; top:50%; width:14px; height:20px; margin:-10px 0 0 -7px; opacity:0; background:var(--c); clip-path:polygon(50% 0, 100% 40%, 70% 100%, 0 70%); box-shadow:0 0 10px var(--c); }
.gt-fx-text{ display:flex; flex-direction:column; gap:6px; opacity:0; transform:translateY(12px); }
.gt-fx-text b{ font-family:Orbitron, sans-serif; font-size:32px; letter-spacing:.08em; color:#fff; text-shadow:0 0 22px var(--c); }
.gt-fx-text small{ font-size:13px; color:#b79bff; text-transform:uppercase; letter-spacing:.1em; }
.gt-fx-text span{ font-size:16px; font-weight:700; color:var(--n); }

.gt-fx.go .gt-fx-glow{ animation:gtFxGlow 1.4s .2s ease-in forwards; }
.gt-fx.go .gt-fx-seal{ animation:gtFxIn .45s ease-out forwards, gtFxShake .09s .55s linear 9, gtFxHide .05s 1.4s forwards; }
.gt-fx.go .gt-fx-cracks path{ animation:gtFxCrack .7s ease-in forwards; }
.gt-fx.go .gt-fx-cracks path:nth-child(1){ animation-delay:.55s; } .gt-fx.go .gt-fx-cracks path:nth-child(2){ animation-delay:.7s; }
.gt-fx.go .gt-fx-cracks path:nth-child(3){ animation-delay:.82s; } .gt-fx.go .gt-fx-cracks path:nth-child(4){ animation-delay:.95s; }
.gt-fx.go .gt-fx-cracks path:nth-child(5){ animation-delay:1.05s; }
.gt-fx.go .gt-fx-piece{ animation:gtFxPiece 1.1s 1.4s cubic-bezier(.2,.7,.3,1) forwards; }
.gt-fx.go .gt-fx-flash{ animation:gtFxFlash .6s 1.38s ease-out forwards; }
.gt-fx.go .gt-fx-wave{ animation:gtFxWave .9s 1.4s ease-out forwards; }
.gt-fx.go .gt-fx-stage i{ animation:gtShard .9s 1.42s ease-out forwards; }
.gt-fx.go .gt-fx-text{ animation:gtRiseIn .5s 1.75s ease-out forwards; }
@keyframes gtFxIn{ to{ transform:scale(1); opacity:1; } }
@keyframes gtFxShake{ 0%{ transform:translate(0,0) rotate(0); } 25%{ transform:translate(-4px,2px) rotate(-2deg); } 50%{ transform:translate(4px,-3px) rotate(2deg); } 75%{ transform:translate(-3px,-2px) rotate(-1deg); } 100%{ transform:translate(0,0); } }
@keyframes gtFxHide{ to{ opacity:0; } }
@keyframes gtFxGlow{ 60%{ opacity:.9; transform:scale(1.15); } 100%{ opacity:0; transform:scale(1.6); } }
@keyframes gtFxCrack{ to{ stroke-dashoffset:0; } }
@keyframes gtFxPiece{ 0%{ opacity:1; transform:none; } 100%{ opacity:0; transform:translate(var(--tx), var(--ty)) rotate(var(--r)) scale(.85); } }
@keyframes gtFxFlash{ 0%{ opacity:0; transform:scale(.4); } 30%{ opacity:1; transform:scale(1.1); } 100%{ opacity:0; transform:scale(1.8); } }
@keyframes gtFxWave{ 0%{ opacity:1; transform:scale(.5); } 100%{ opacity:0; transform:scale(2.4); } }
@keyframes gtShard{ 0%{ opacity:1; transform:rotate(var(--a)) translateY(0); } 100%{ opacity:0; transform:rotate(var(--a)) translateY(calc(-1 * var(--d))) rotate(200deg); } }
@keyframes gtRiseIn{ to{ opacity:1; transform:none; } }
@media (max-width:420px){ .gt-fx-text b{ font-size:22px; } .gt-fx-text span{ font-size:14px; } }

/* 15 Nov 2026: round history + coin chips */
.gt-cur-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; }
.gt-cur-grid > div{ display:flex; flex-direction:column; gap:2px; padding:9px 11px; border-radius:10px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); min-width:0; }
.gt-cur-grid span{ font-size:11px; color:#9fb3d6; text-transform:uppercase; letter-spacing:.06em; }
.gt-cur-grid b{ font-size:13px; color:#fff; }
.gt-table-wrap{ overflow-x:auto; border-radius:12px; border:1px solid rgba(255,255,255,.08); }
.gt-table{ width:100%; border-collapse:collapse; font-size:13px; color:#d7dcef; }
.gt-table th{ text-align:left; padding:10px; font-size:11px; color:#9fb3d6; text-transform:uppercase; letter-spacing:.06em; background:rgba(139,63,255,.12); white-space:nowrap; }
.gt-table td{ padding:10px; border-top:1px solid rgba(255,255,255,.06); white-space:nowrap; vertical-align:middle; }
.gt-table tr.closed td{ opacity:.7; }
.gt-table td b{ color:#fff; }
.gt-dim{ color:#7f8aa8; }
.gt-seals-mini{ display:inline-flex; gap:4px; }
.gt-seals-mini i{ font-style:normal; font-family:Orbitron, sans-serif; font-size:9px; font-weight:800; width:22px; height:22px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:var(--c); border:1px solid color-mix(in srgb, var(--c) 40%, transparent); opacity:.45; }
.gt-seals-mini i.on{ opacity:1; color:#0b0820; background:var(--c); box-shadow:0 0 8px var(--c); }
.gt-chip{ display:inline-flex; align-items:center; gap:5px; padding:3px 9px; margin:2px 4px 2px 0; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.gt-chip .gt-cicon{ width:16px; height:16px; margin:0; }
.gt-chip.bt{ color:#e7c6ff; background:rgba(200,107,255,.16); border:1px solid rgba(200,107,255,.55); }
.gt-chip.ac{ color:#ffd38a; background:rgba(255,179,71,.14); border:1px solid rgba(255,179,71,.55); }
.gt-chip.back, .gt-chip.mats{ color:#9dffc4; background:rgba(61,255,138,.1); border:1px solid rgba(61,255,138,.4); white-space:normal; }
.gt-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.gt-chip.big{ font-size:15px; padding:6px 12px; text-shadow:0 0 10px currentColor; }
.gt-chip.big b{ font-family:Orbitron, sans-serif; font-size:16px; color:#fff; }
.gt-chip.big .gt-cicon{ width:22px; height:22px; }
.gt-pager{ display:flex; align-items:center; justify-content:center; gap:12px; margin-top:10px; }
.gt-pager span{ font-size:13px; color:#c9d1ea; }
.gt-pager button{ min-width:96px; height:36px; border-radius:10px; font:inherit; font-size:13px; font-weight:800; cursor:pointer; color:#fff; background:linear-gradient(100deg, #6B3BFF, #8b3fff); border:1px solid #8b3fff; }
.gt-pager button:disabled{ opacity:.35; cursor:not-allowed; }
@media (max-width:760px){
    .gt-cur-grid{ grid-template-columns:1fr 1fr; }
    .gt-table thead{ display:none; }
    .gt-table, .gt-table tbody, .gt-table tr, .gt-table td{ display:block; width:100%; box-sizing:border-box; }
    .gt-table tr{ padding:8px 4px; border-top:1px solid rgba(255,255,255,.08); }
    .gt-table td{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:5px 8px; border:0; white-space:normal; text-align:right; }
    .gt-table td::before{ content:attr(data-l); font-size:11px; color:#9fb3d6; text-transform:uppercase; letter-spacing:.05em; text-align:left; }
}
.gt-chip.big{ color:#fff !important; text-shadow:none; opacity:1 !important; }
.gt-chip.big.bt{ background:linear-gradient(100deg, rgba(200,107,255,.35), rgba(107,59,255,.25)); box-shadow:0 0 12px rgba(200,107,255,.45); }
.gt-chip.big.ac{ background:linear-gradient(100deg, rgba(255,179,71,.32), rgba(255,140,0,.18)); box-shadow:0 0 12px rgba(255,179,71,.4); }
.mail-reward-row.gt-mail strong, .mail-reward-row.gt-mail .gt-chips{ opacity:1 !important; }
.gt-table td[data-l="You"]{ white-space:normal; min-width:200px; }

/* 15 Nov 2026: Burns leaderboard */
.gt-burns{ gap:10px; }
.gt-subtabs{ display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:4px; border-radius:12px; background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.08); }
.gt-subtabs button{ min-height:38px; border-radius:9px; font:inherit; font-size:13px; font-weight:800; cursor:pointer; color:#b9c3e6; background:transparent; border:1px solid transparent; }
.gt-subtabs button.active{ color:#fff; background:linear-gradient(100deg, #6B3BFF, #8b3fff); border-color:#8b3fff; }
.gt-pad{ padding:18px 4px; text-align:center; }
.gt-lb tr.me td{ background:rgba(61,255,138,.08); }
.gt-lb .gt-mine-row tr td{ background:rgba(61,255,138,.1); border-bottom:2px solid rgba(61,255,138,.35); }
.gt-rank{ display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; padding:0 6px; border-radius:8px; font-family:Orbitron, sans-serif; font-size:12px; font-weight:800; color:#c9d1ea; background:rgba(255,255,255,.05); }
.gt-medal.m1{ color:#1a1000; background:linear-gradient(135deg, #fff1a8, #ffb800); box-shadow:0 0 12px rgba(255,184,0,.6); }
.gt-medal.m2{ color:#111; background:linear-gradient(135deg, #ffffff, #b8c2d6); box-shadow:0 0 10px rgba(200,210,230,.5); }
.gt-medal.m3{ color:#1a0a00; background:linear-gradient(135deg, #ffcf9e, #cd7f32); box-shadow:0 0 10px rgba(205,127,50,.5); }
.gt-you{ font-size:10px; font-weight:800; padding:2px 7px; border-radius:999px; color:#7dffb0; border:1px solid rgba(61,255,138,.45); background:rgba(61,255,138,.1); }
.gt-units{ display:inline-flex; gap:4px; }
.gt-units i{ font-style:normal; min-width:38px; padding:3px 6px; border-radius:7px; text-align:center; font-size:11px; font-weight:800; color:#6c7591; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07); }
.gt-units i.on{ color:#fff; border-color:color-mix(in srgb, var(--c) 60%, transparent); background:color-mix(in srgb, var(--c) 16%, transparent); }
.gt-pts-n{ font-family:Orbitron, sans-serif; color:#d6b8ff !important; }
.gt-burnt{ display:inline-flex; align-items:center; gap:6px; }
.gt-burnt img{ width:20px; height:20px; }
.gt-burnt b{ color:#fff; }
@media (max-width:760px){
    .gt-units i{ min-width:30px; }
    .gt-lb td[data-l="Share now"]{ flex-wrap:wrap; justify-content:flex-end; }
}
/* phone: compact leaderboard rows (not one tall card per player) */
@media (max-width:760px){
    .gt-lb tr{ display:grid !important; grid-template-columns:auto minmax(0,1fr) auto; column-gap:10px; row-gap:6px; align-items:center; padding:9px 10px !important; }
    .gt-lb td{ display:block !important; padding:0 !important; text-align:left !important; width:auto !important; }
    .gt-lb td::before{ display:none; }
    .gt-lb-top td:nth-child(1){ grid-column:1; grid-row:1 / 3; }
    .gt-lb-top td:nth-child(2){ grid-column:2; grid-row:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .gt-lb-top td:nth-child(4){ grid-column:3; grid-row:1; text-align:right !important; }
    .gt-lb-top td:nth-child(3){ grid-column:2; grid-row:2; }
    .gt-lb-top td:nth-child(5){ grid-column:3; grid-row:2; display:flex !important; flex-direction:column; align-items:flex-end; }
    .gt-lb-top td:nth-child(5) .gt-chip{ margin:1px 0; font-size:11px; padding:2px 7px; }
    .gt-lb-top .gt-units i{ min-width:0; padding:2px 5px; font-size:10px; }
    .gt-lb-latest td:nth-child(2){ grid-column:1 / 3; grid-row:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .gt-lb-latest td:nth-child(1){ grid-column:3; grid-row:1; text-align:right !important; font-size:11px; }
    .gt-lb-latest td:nth-child(3){ grid-column:1 / 3; grid-row:2; }
    .gt-lb-latest td:nth-child(4){ grid-column:3; grid-row:2; text-align:right !important; }
}
@media (max-width:760px){
    .gt-lb tr.me, .gt-lb .gt-mine-row tr{ background:rgba(61,255,138,.1); border:1px solid rgba(61,255,138,.35) !important; border-radius:10px; }
    .gt-lb tr.me td, .gt-lb .gt-mine-row tr td{ background:transparent !important; border:0 !important; }
}
/* mail: the materials that came back */
.mail-reward-row.gt-mail > strong{ display:flex; flex-direction:column; gap:10px; }
.gt-back{ display:flex; flex-direction:column; gap:7px; padding:9px 10px; border-radius:12px; background:rgba(61,255,138,.08); border:1px dashed rgba(61,255,138,.5); }
.gt-back-head{ display:flex; flex-wrap:wrap; align-items:baseline; gap:6px; font-size:13px; font-weight:800; color:#7dffb0; }
.gt-back-head small{ font-size:11px; font-weight:600; color:#b9e8cc; }
.gt-back-list{ display:flex; flex-wrap:wrap; gap:6px; }
.gt-mchip{ display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:10px; background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.14); }
.gt-mchip img{ width:24px; height:24px; flex:0 0 auto; }
.gt-mchip b{ font-family:Orbitron, sans-serif; font-size:15px; color:#fff; }
.gt-mchip em{ font-style:normal; font-size:13px; font-weight:700; color:#e6ecff; }
/* a Beastgate mail takes the whole row of the Mailbox (it holds more than a plain reward) */
.mail-reward-row.gt-mail{ grid-column:1 / -1; min-width:0; justify-content:flex-start !important; align-items:stretch !important; overflow:hidden; }
.mail-reward-row.gt-mail *{ min-width:0; overflow-wrap:anywhere; }
.gt-mail-head{ flex-wrap:wrap; }
/* the loading gate: big */
.gt-loading{ padding:30px 10px 40px; }
.gt-gate.loading{ width:min(380px, 80vw); height:min(380px, 80vw); }
.gt-loading p{ font-size:16px; }

/* 15 Nov 2026: mainnet launch, "The Gate opens in" */
.gt-ends.soon{ border-color: rgba(178,107,255,.55); box-shadow: 0 0 18px rgba(139,63,255,.25) inset; }
.gt-ends.soon b{ color: #d9b8ff; }

/* 18 Nov 2026 (Jas): 5 seals (the Neon Seal first) */
.gt-track:has(> .gt-step:nth-child(5)){ grid-template-columns:repeat(5, minmax(0,1fr)); }
@media (max-width:700px){ .gt-track:has(> .gt-step:nth-child(5)){ grid-template-columns:repeat(5, minmax(0,1fr)); gap:4px; } .gt-track:has(> .gt-step:nth-child(5)) .gt-step span{ font-size:11px; } }
.gt-emb-neon{ object-fit:contain; padding:12%; filter:drop-shadow(0 0 8px rgba(0,229,255,.6)); }

/* 18 Nov 2026 (Jas): Seal IV sits in the middle of the gate (the art has no lock there, so it is drawn) */
.gt-lock.mid{ width:13%; height:13%; }
.gt-lock.mid.lock, .gt-lock.mid.now{ background:radial-gradient(circle, rgba(18,8,40,.92) 55%, rgba(18,8,40,.6) 100%); border:2px solid color-mix(in srgb, var(--c) 70%, transparent); box-shadow:0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.gt-lock.mid .gt-mid-ic{ width:46%; height:46%; color:var(--c); filter:drop-shadow(0 0 6px var(--c)); }
.gt-lock.mid.lock .gt-mid-ic{ opacity:.75; }
.gt-lock.mid.done{ width:18%; height:18%; }
