/* LONG888 — DRAGON REALM skin. Everything is scoped to html[data-skin="realm"] so the festival skins keep working.
   Idea: a dragon-skin wall (WebGL) with molten seams, lit by your finger; glass panels edged with rotating molten light. */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

#realmBg, #realmFx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
html[data-skin="realm"] #realmBg { display: block; z-index: 0; }
html[data-skin="realm"] #realmFx { display: block; z-index: 2; }

html[data-skin="realm"] {
  --display: "Poppins", -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --ember: #ff6a1f; --ember2: #ffb24a; --jade: #26e0a8; --glass: rgba(18, 9, 11, .58); --glass2: rgba(34, 15, 14, .52);
  --molten: conic-gradient(from var(--a), #ffd36b, rgba(255, 90, 31, .12) 18%, rgba(255, 211, 107, 0) 40%, rgba(255, 106, 31, .85) 62%, rgba(255, 211, 107, .08) 80%, #ffd36b);
}
/* the whole app floats over the living wall */
html[data-skin="realm"] body { background: #07060a; }
html[data-skin="realm"] .frame-root, html[data-skin="realm"] .app, html[data-skin="realm"] .main { background: transparent !important; }
html[data-skin="realm"] .app::before, html[data-skin="realm"] .app::after, html[data-skin="realm"] .main::before { background: none !important; }
html[data-skin="realm"].realm-gl .nm-scene, html[data-skin="realm"] .nm-scene { display: none; }
html[data-skin="realm"] .nm-lobby::before { display: none; }
html[data-skin="realm"] .nm-lobby { background: transparent; }
/* fallback if WebGL is missing: still a dark scaled wall */
html[data-skin="realm"]:not(.realm-gl) body { background: radial-gradient(120% 70% at 50% 0, #3a1208, #0a0508 70%), #07060a; }
html[data-skin="realm"]:not(.realm-gl) body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 50% 100%, transparent 8px, rgba(255, 170, 70, .1) 9px, transparent 11px) 0 0 / 28px 16px; z-index: 0; pointer-events: none; }

/* ---------- glass panels with rotating molten edge ---------- */
html[data-skin="realm"] .ad,
html[data-skin="realm"] .wallet,
html[data-skin="realm"] .cont,
html[data-skin="realm"] .pk,
html[data-skin="realm"] .prov,
html[data-skin="realm"] .marquee {
  border: 1.5px solid transparent !important; border-radius: 20px;
  background: linear-gradient(160deg, var(--glass), rgba(8, 4, 6, .66)) padding-box, var(--molten) border-box !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.35); backdrop-filter: blur(14px) saturate(1.35);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(255, 106, 31, .12) !important;
  animation: realmSpin 7s linear infinite; clip-path: none; color: var(--ink);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out;
}
html[data-skin="realm"] .pk:nth-child(2), html[data-skin="realm"] .prov:nth-child(2n) { animation-delay: -2.3s; }
html[data-skin="realm"] .pk:nth-child(3), html[data-skin="realm"] .prov:nth-child(3n) { animation-delay: -4.6s; }
@keyframes realmSpin { to { --a: 360deg; } }
/* glare that follows the finger */
html[data-skin="realm"] .pk::after, html[data-skin="realm"] .ad::after, html[data-skin="realm"] .wallet::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 220, 150, .22), transparent 55%); opacity: 0; transition: opacity .3s;
}
html[data-skin="realm"] .pk:hover::after, html[data-skin="realm"] .ad:hover::after, html[data-skin="realm"] .wallet:hover::after { opacity: 1; }

/* reveal: pure CSS so it never depends on observers */
@keyframes rvIn { from { opacity: 0; transform: translateY(26px) scale(.96); } }
html[data-skin="realm"] .rv { animation: rvIn .8s var(--rd, 0ms) cubic-bezier(.2, 1.1, .3, 1) both; }
html[data-skin="realm"] .rv.ad, html[data-skin="realm"] .rv.wallet, html[data-skin="realm"] .rv.cont, html[data-skin="realm"] .rv.pk, html[data-skin="realm"] .rv.prov, html[data-skin="realm"] .rv.marquee { animation: realmSpin 7s linear infinite, rvIn .8s var(--rd, 0ms) cubic-bezier(.2, 1.1, .3, 1) both; }

/* ---------- jackpot hero: pearl + dragon ---------- */
html[data-skin="realm"] .ad.jp { height: 176px; background: radial-gradient(120% 90% at 78% 40%, rgba(255, 106, 31, .38), transparent 60%), linear-gradient(160deg, rgba(40, 14, 10, .7), rgba(8, 4, 6, .7)) padding-box, var(--molten) border-box !important; }
html[data-skin="realm"] .ad.jp .side { font: 700 10px var(--display); letter-spacing: .14em; color: var(--ember2); text-transform: uppercase; z-index: 3; }
html[data-skin="realm"] .ad.jp .jp-body { position: absolute; left: 14px; right: auto; top: 44px; width: 58%; text-align: left; z-index: 3; }
html[data-skin="realm"] .ad.jp .jp-sub { text-align: left; font: 700 9.5px var(--display); letter-spacing: .24em; color: var(--ember2); }
html[data-skin="realm"] .ad.jp .jp-amt { justify-content: flex-start; margin-top: 2px; }
html[data-skin="realm"] .ad.jp .jp-amt small { font: 800 13px var(--display); color: var(--ember2); }
html[data-skin="realm"] .ad.jp .jp-amt b { font: 900 italic 27px/1.05 var(--display); background: linear-gradient(180deg, #fff6d6, #ffd36b 45%, #ff8a2a 75%, #c2440a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(255, 106, 31, .55)); }
html[data-skin="realm"] .ad.jp .jp-cd { justify-content: flex-start; gap: 6px; margin-top: 6px; }
html[data-skin="realm"] .ad.jp .jp-cd div { padding: 3px 7px; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 178, 74, .25); font-size: 12px; }
html[data-skin="realm"] .ad.jp .jp-cd span { margin: 0 0 0 1px; }
html[data-skin="realm"] .ad.jp .seal { display: none; }
html[data-skin="realm"] .ad.jp .jp-dragon { position: absolute; right: -6px; bottom: -4px; height: 112%; width: auto; max-width: 46%; object-fit: contain; z-index: 2; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); animation: realmBob 3.6s ease-in-out infinite; transform-origin: 50% 100%; pointer-events: none; }
@keyframes realmBob { 50% { transform: translateY(-7px) rotate(-1.2deg); } }
html[data-skin="realm"] .ad.jp .pearl { position: absolute; right: 41%; top: 72px; width: 34px; height: 34px; z-index: 4; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff7d0, #ffb24a 38%, #d4560a 72%, #5a1a04); box-shadow: 0 0 22px 6px rgba(255, 140, 40, .65), inset -4px -6px 10px rgba(80, 20, 0, .6); animation: realmFloat 3s ease-in-out infinite; }
html[data-skin="realm"] .ad.jp .pearl i { position: absolute; inset: 0; border-radius: 50%; }
html[data-skin="realm"] .ad.jp .pearl i:first-child { background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .55), transparent 30%); animation: realmRot 3.4s linear infinite; mix-blend-mode: screen; }
html[data-skin="realm"] .ad.jp .pearl i:last-child { inset: -9px; border: 1px solid rgba(255, 190, 90, .55); animation: realmRot 6s linear infinite reverse; border-top-color: transparent; border-bottom-color: transparent; }
@keyframes realmFloat { 50% { transform: translateY(-6px); } }
@keyframes realmRot { to { transform: rotate(360deg); } }

/* other banners keep their copy, new surface */
html[data-skin="realm"] .ad.split .bt b { font-family: var(--display); font-weight: 900; font-style: italic; letter-spacing: .01em; background: linear-gradient(180deg, #fff6d6, #ffc457 60%, #e0701a); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-skin="realm"] .ad .live { background: var(--ember); }
html[data-skin="realm"] .dots i { background: rgba(255, 220, 170, .25); }
html[data-skin="realm"] .dots i.on { background: var(--ember2); box-shadow: 0 0 10px var(--ember); }

/* ---------- ticker, wallet, continue ---------- */
html[data-skin="realm"] .marquee { height: 34px; border-radius: 99px; color: var(--ember2); }
html[data-skin="realm"] .wallet { padding: 14px 14px; margin-top: 14px; color: var(--ink); }
html[data-skin="realm"] .wallet .balance .lbl { color: var(--ember2); letter-spacing: .12em; text-transform: uppercase; font-size: 10px; }
html[data-skin="realm"] .wallet .balance .val { font: 900 24px var(--display); background: linear-gradient(180deg, #fff, #ffe2a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-skin="realm"] .w-acts { border-left: 1px solid rgba(255, 178, 74, .25); }
html[data-skin="realm"] .w-act { color: #ffe6bf; }
html[data-skin="realm"] .w-act i { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 178, 74, .3); color: var(--ember2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); border-radius: 0; width: 36px; height: 38px; }
html[data-skin="realm"] .w-act.pri i { background: linear-gradient(160deg, #ffd36b, #ff6a1f); color: #3a1204; border-color: transparent; box-shadow: none; filter: drop-shadow(0 0 8px rgba(255, 106, 31, .8)); animation: realmPulse 2.2s ease-in-out infinite; }
@keyframes realmPulse { 50% { filter: drop-shadow(0 0 16px rgba(255, 150, 40, 1)); transform: scale(1.06); } }
html[data-skin="realm"] .cont { color: var(--ink); }
html[data-skin="realm"] .cont .lbl { color: var(--ember2); letter-spacing: .2em; }
html[data-skin="realm"] .cont .nm { font-family: var(--display); font-weight: 800; }
html[data-skin="realm"] .cont .go { background: linear-gradient(160deg, #ffd36b, #ff6a1f); color: #3a1204; box-shadow: 0 0 18px rgba(255, 106, 31, .7); }

/* ---------- chips ---------- */
html[data-skin="realm"] .chip { border: 1px solid rgba(255, 178, 74, .28); background: rgba(14, 7, 9, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #f3d7b0; border-radius: 99px; transition: transform .2s, box-shadow .3s; }
html[data-skin="realm"] .chip.on { background: linear-gradient(135deg, #ffd36b, #ff7a1f); color: #3a1204; border-color: transparent; box-shadow: 0 0 22px rgba(255, 122, 31, .6); transform: translateY(-1px); }
html[data-skin="realm"] .chip i, html[data-skin="realm"] .chip.on i { background: none !important; box-shadow: none; border-radius: 0; }
html[data-skin="realm"] .chip i img { filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); }

/* ---------- section titles ---------- */
html[data-skin="realm"] .sec h2 { font: 900 italic 17px var(--display); letter-spacing: .01em; text-shadow: 0 2px 14px rgba(255, 106, 31, .45); }
html[data-skin="realm"] .sec h2::before { width: 10px; height: 14px; background: linear-gradient(#ffe29a, #ff5a1f); transform: none; clip-path: path("M5 0 C8 4 10 6 10 9 A5 5 0 0 1 0 9 C0 7 1.5 5.5 3 4 C3 6 4 6.5 4.5 6 C4.5 4 4 2 5 0Z"); animation: realmFlame 1.4s ease-in-out infinite alternate; }
@keyframes realmFlame { to { transform: scaleY(1.18) translateY(-1px); filter: brightness(1.25); } }
html[data-skin="realm"] .sec::after { background: linear-gradient(90deg, rgba(255, 178, 74, .6), transparent); }
html[data-skin="realm"] .sec a { color: var(--ember2); }

/* ---------- game tiles: portal cards ---------- */
html[data-skin="realm"] .pk { aspect-ratio: 1 / 1.28; background: radial-gradient(90% 70% at 50% 38%, rgba(255, 106, 31, .34), transparent 70%), linear-gradient(170deg, rgba(40, 16, 12, .72), rgba(8, 4, 6, .8)) padding-box, var(--molten) border-box !important; }
html[data-skin="realm"] .pk img { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .65)) drop-shadow(0 0 16px rgba(255, 140, 40, .35)); transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); }
html[data-skin="realm"] .pk:hover img, html[data-skin="realm"] .pk:active img { transform: translateY(-5px) scale(1.07) rotate(-2deg); }
html[data-skin="realm"] .pk b { font-family: var(--display); font-weight: 800; color: #fff3de; text-shadow: 0 2px 8px #000; }
html[data-skin="realm"] .pk small { color: #e6bd8a; }
html[data-skin="realm"] .pk .n { background: rgba(0, 0, 0, .55); color: var(--jade); border: 1px solid rgba(38, 224, 168, .5); }
html[data-skin="realm"] .pk .n::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); vertical-align: middle; }
html[data-skin="realm"] .pk.gd { background: radial-gradient(90% 70% at 50% 38%, rgba(255, 210, 107, .4), transparent 70%), linear-gradient(170deg, rgba(70, 40, 10, .75), rgba(14, 8, 6, .85)) padding-box, var(--molten) border-box !important; color: var(--ink); }
html[data-skin="realm"] .pk.gd small { color: #ffe3a8; }
html[data-skin="realm"] .pk::before { background: linear-gradient(115deg, transparent 38%, rgba(255, 220, 160, .22) 50%, transparent 62%); background-size: 260% 100%; animation: realmSheen 4.6s ease-in-out infinite; }
@keyframes realmSheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -60% 0; } }
html[data-skin="realm"] .prov { color: var(--ink); }
html[data-skin="realm"] .prov .lg { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 178, 74, .25); color: var(--ember2); border-radius: 10px; }
html[data-skin="realm"] .prov .cp span { color: #d6b58b; }

/* ---------- top bar chips ---------- */
html[data-skin="realm"] .nm-chip { background: var(--glass); border: 1px solid rgba(255, 178, 74, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #ffe6bf; }
html[data-skin="realm"] .nm-top .logo img { filter: drop-shadow(0 2px 12px rgba(255, 120, 30, .5)); }
html[data-skin="realm"] .nm-body { top: 62px; }

/* ---------- bottom nav ---------- */
html[data-skin="realm"] .bnav .bar { background: rgba(12, 6, 8, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1.5px solid transparent; border-radius: 28px; background: linear-gradient(rgba(12, 6, 8, .78), rgba(12, 6, 8, .78)) padding-box, var(--molten) border-box; animation: realmSpin 9s linear infinite; box-shadow: 0 14px 40px rgba(0, 0, 0, .65), 0 0 30px rgba(255, 106, 31, .18); }
html[data-skin="realm"] .nv { color: #c9a77c; }
html[data-skin="realm"] .nv i { background: rgba(255, 255, 255, .05); color: #e8b878; }
html[data-skin="realm"] .nv.on { color: #ffe2a8; }
html[data-skin="realm"] .nv.on i { background: linear-gradient(160deg, #ffd36b, #ff6a1f); color: #3a1204; box-shadow: 0 0 18px rgba(255, 106, 31, .75); }
html[data-skin="realm"] .nv-play small { color: #ffe2a8; letter-spacing: .14em; }
html[data-skin="realm"] .play-btn { position: relative; display: grid; place-items: center; font-size: 0; background: radial-gradient(circle at 50% 40%, #3a0f0a, #120504) !important; border: 0 !important; box-shadow: 0 0 0 2px rgba(255, 178, 74, .45), 0 10px 30px rgba(255, 106, 31, .65) !important; border-radius: 50%; animation: realmPulse2 2.4s ease-in-out infinite; }
html[data-skin="realm"] .play-btn::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(from var(--a), #ffd36b, transparent 30%, #ff5a1f 55%, transparent 80%, #ffd36b); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%); animation: realmSpin 3s linear infinite; }
html[data-skin="realm"] .play-btn img { position: relative; width: 82%; height: 82%; border-radius: 50%; object-fit: cover; }
@keyframes realmPulse2 { 50% { box-shadow: 0 0 0 3px rgba(255, 210, 107, .8), 0 12px 40px rgba(255, 122, 31, .95); } }

/* ---------- dialogs and inner pages pick the palette up from the variables; give panels the same glass ---------- */
html[data-skin="realm"] .dlg { background: linear-gradient(160deg, rgba(34, 14, 12, .92), rgba(10, 5, 7, .94)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1.5px solid rgba(255, 178, 74, .35); border-radius: 24px; }
html[data-skin="realm"] .card { background: linear-gradient(160deg, var(--glass2), rgba(8, 4, 6, .6)); border: 1px solid rgba(255, 178, 74, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 18px; }

@media (prefers-reduced-motion: reduce) {
  html[data-skin="realm"] * { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html[data-skin="realm"] .rv { opacity: 1; transform: none; }
}

/* cleanup: old envelope flap, redundant corner timer, pearl sits beside the dragon */
html[data-skin="realm"] .ad.jp::before { display: none !important; }
html[data-skin="realm"] .ad.jp .side.r { display: none; }
html[data-skin="realm"] .ad.jp .pearl { right: 40%; top: auto; bottom: 16px; width: 26px; height: 26px; box-shadow: 0 0 16px 4px rgba(255, 140, 40, .6), inset -3px -4px 8px rgba(80, 20, 0, .6); }
html[data-skin="realm"] .ad.jp .pearl i:last-child { inset: -7px; }

/* art sits directly on the glass, no coloured tile behind it */
html[data-skin="realm"] .cont .ico { background-color: transparent !important; box-shadow: none !important; border: 0 !important; width: 54px; height: 54px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)) drop-shadow(0 0 12px rgba(255, 140, 40, .35)); }

/* ================= GAME BOARD: one hero gate + three scale tiles, flush with the panels above =================
   Shape language: two opposite corners cut like a dragon scale; art stands on top of the frame and can break out of it. */
html[data-skin="realm"] .gboard { --cut: 16px; display: grid; gap: 12px; margin-top: 8px; }
html[data-skin="realm"] .gate, html[data-skin="realm"] .gt { position: relative; display: block; color: var(--ink); transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
html[data-skin="realm"] .gt-edge, html[data-skin="realm"] .gt-fill { position: absolute; inset: 0; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
html[data-skin="realm"] .gt-edge { background: var(--molten); animation: realmSpin 6s linear infinite; }
html[data-skin="realm"] .gt-fill { inset: 2.5px; background: radial-gradient(70% 90% at 78% 45%, rgba(255, 106, 31, .4), transparent 70%), linear-gradient(165deg, rgba(44, 18, 14, .9), rgba(8, 4, 6, .95)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html[data-skin="realm"] .gt.gd .gt-fill { background: radial-gradient(80% 70% at 50% 40%, rgba(255, 210, 107, .4), transparent 72%), linear-gradient(165deg, rgba(74, 44, 12, .92), rgba(14, 8, 6, .95)); }
html[data-skin="realm"] .gt.more .gt-fill { background: linear-gradient(165deg, rgba(34, 18, 14, .85), rgba(8, 4, 6, .92)); }
/* hero */
html[data-skin="realm"] .gate { height: 150px; margin-top: 22px; }
html[data-skin="realm"] .gt-tx { position: absolute; z-index: 2; left: 18px; top: 18px; bottom: 16px; width: 52%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; }
html[data-skin="realm"] .gt-tx b { font: 900 italic 21px/1.05 var(--display); background: linear-gradient(180deg, #fff6d6, #ffc457 60%, #e0701a); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-skin="realm"] .gt-tx small { font-size: 11px; color: #e6bd8a; }
html[data-skin="realm"] .gt-go { margin-top: 8px; padding: 7px 18px; border-radius: 99px; font: 800 12px var(--display); color: #3a1204; background: linear-gradient(135deg, #ffd36b, #ff7a1f); box-shadow: 0 0 18px rgba(255, 122, 31, .6); }
html[data-skin="realm"] .gt-art { position: absolute; z-index: 1; right: 4px; bottom: 4px; height: 128%; width: auto; max-width: 52%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)) drop-shadow(0 0 16px rgba(255, 140, 40, .4)); animation: realmBob 3.6s ease-in-out infinite; transform-origin: 50% 100%; pointer-events: none; }
/* row of three */
html[data-skin="realm"] .gt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
html[data-skin="realm"] .gt { aspect-ratio: 1 / 1.12; }
html[data-skin="realm"] .gt img { position: absolute; left: 50%; top: 9%; width: 78%; height: 56%; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 12px rgba(255, 140, 40, .35)); transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; }
html[data-skin="realm"] .gt:hover img, html[data-skin="realm"] .gt:active img { transform: translateX(-50%) translateY(-4px) scale(1.07); }
html[data-skin="realm"] .gt b { position: absolute; left: 6px; right: 6px; bottom: 12px; text-align: center; font: 800 12px/1.15 var(--display); color: #fff3de; text-shadow: 0 2px 8px #000; }
html[data-skin="realm"] .gt.more .plus { position: absolute; left: 0; right: 0; top: 20%; text-align: center; font: 300 46px/1 var(--display); color: var(--ember2); text-shadow: 0 0 16px rgba(255, 140, 40, .7); }
html[data-skin="realm"] .gt .n, html[data-skin="realm"] .gate .n { z-index: 3; font: 700 9px var(--display); padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: var(--jade); border: 1px solid rgba(38, 224, 168, .5); }
html[data-skin="realm"] .gt .n { position: absolute; top: 8px; right: 8px; }
html[data-skin="realm"] .gate .n { margin-bottom: 4px; }
html[data-skin="realm"] .gt .n:empty, html[data-skin="realm"] .gate .n:empty { display: none; }
html[data-skin="realm"] .gt .n::before, html[data-skin="realm"] .gate .n::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; vertical-align: middle; }
html[data-skin="realm"] .rv.gate, html[data-skin="realm"] .rv.gt { animation: rvIn .8s var(--rd, 0ms) cubic-bezier(.2, 1.1, .3, 1) both; }
html[data-skin="realm"] .grid2:empty { display: none; }

/* the old straight gold rule across the top of the nav is replaced by the pill's own molten edge */
html[data-skin="realm"] .bnav .bar::before { display: none !important; }

/* smaller logo */
html[data-skin="realm"] .nm-top .logo img { height: 24px; }
html[data-skin="realm"] .logo img { height: 34px; }
html[data-skin="realm"] .lang-screen .logo img { height: 96px; }

/* bigger art in the three tiles */
html[data-skin="realm"] .gt img { top: 5%; width: 96%; height: 68%; }
html[data-skin="realm"] .gt.gd img { transform: translateX(-50%) scale(1.3); }
html[data-skin="realm"] .gt.gd:hover img, html[data-skin="realm"] .gt.gd:active img { transform: translateX(-50%) translateY(-4px) scale(1.38); }
html[data-skin="realm"] .gt b { bottom: 10px; }

/* one logo size everywhere (language screen keeps its big hero logo) */
html[data-skin="realm"] .logo img, html[data-skin="realm"] .nm-top .logo img { height: 24px; }
html[data-skin="realm"] .lang-screen .logo img { height: 96px; }

/* anything filled with the gold gradient keeps its dark text (a generic ".two b { color: gold }" rule was turning labels gold-on-gold) */
html[data-skin="realm"] [style*="background:var(--g)"] b,
html[data-skin="realm"] [style*="background:var(--g)"] span,
html[data-skin="realm"] [style*="background:var(--g)"] small,
html[data-skin="realm"] [style*="background: var(--g)"] b,
html[data-skin="realm"] [style*="background: var(--g)"] span,
html[data-skin="realm"] [style*="background: var(--g)"] small { color: var(--on-gold) !important; }

/* free-spin chest: smaller, tucked just above the nav on the right */
html[data-skin="realm"] .fsf { width: 58px; height: 58px; right: 8px; bottom: 100px; }

/* LONG888: no corner mascot anywhere; the jackpot dragon is the face of the home page */
html[data-skin="realm"] .nm-ss, html[data-skin="realm"] .nm-bub { display: none !important; }

/* ---------- page doors: obsidian dragon-scale gates with the dragon medallion where they meet ---------- */
html[data-skin="realm"] .nm-door { background: radial-gradient(circle at 50% 100%, transparent 9px, rgba(255, 170, 70, .17) 10px, transparent 12px) 0 0 / 28px 16px, linear-gradient(90deg, #060304, #1d0b0c 50%, #060304); box-shadow: inset 0 0 0 2px rgba(255, 178, 74, .55), inset 0 0 46px rgba(255, 106, 31, .28); }
html[data-skin="realm"] .nm-door::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: linear-gradient(transparent, #ffb24a 30%, #ff6a1f 70%, transparent); box-shadow: 0 0 18px 3px rgba(255, 106, 31, .8); }
html[data-skin="realm"] .nm-door.l::after { right: 0; } html[data-skin="realm"] .nm-door.r::after { left: 0; }
html[data-skin="realm"] .nm-door i { font-size: 0; background: radial-gradient(circle at 50% 40%, #3a0f0a, #120504); box-shadow: 0 0 0 3px rgba(255, 178, 74, .7), 0 0 34px 6px rgba(255, 106, 31, .75); overflow: visible; z-index: 2; }
html[data-skin="realm"] .nm-door i img { width: 86%; height: 86%; border-radius: 50%; object-fit: cover; }

/* referral hero: glass + molten edge, text on the left, dragon on the right (was a flat red block with the dragon under the heading) */
html[data-skin="realm"] .inv-hero { height: 138px; margin-top: 6px; border: 1.5px solid transparent; border-radius: 20px;
  background: url("img/art/pose-cheer.webp") right 6px bottom -6px / auto 118% no-repeat, radial-gradient(90% 100% at 85% 40%, rgba(255, 106, 31, .36), transparent 65%), linear-gradient(160deg, rgba(40, 14, 10, .74), rgba(8, 4, 6, .74)) padding-box, var(--molten) border-box;
  animation: realmSpin 8s linear infinite; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 106, 31, .1); }
html[data-skin="realm"] .inv-hero .k { font: 700 10px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ember2); text-shadow: none; }
html[data-skin="realm"] .inv-hero h2 { max-width: 56%; font: 900 italic 24px/1.05 var(--display); background: linear-gradient(180deg, #fff6d6, #ffc457 60%, #e0701a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
html[data-skin="realm"] .inv-hero p { max-width: 54%; color: #e0bd8e; text-shadow: none; }

/* the language picker (and any overlay that inherits its background from the now-transparent app) needs its own backdrop */
html[data-skin="realm"] .lang-screen { background: radial-gradient(100% 60% at 50% 0, rgba(120, 40, 14, .55), transparent 70%), linear-gradient(180deg, #14090c, #07060a) !important; }
