/* ==========================================================================
   Wildora Network - Tebex theme
   Night sky, aurora, pixel terrain and the Bloodfury boss.
   Colours and fonts come from the theme settings (schema.json) as CSS variables.
   ========================================================================== */

:root {
  --c-primary: #5BE37D;
  --c-secondary: #3ACFD5;
  --c-accent: #FFD86B;
  --c-purple: #9E7BFF;
  --c-boss: #E0313B;
  --c-bg: #060A18;
  --c-bg-2: #0E1C3A;
  --c-surface: #111A33;
  --c-border: #2A3963;
  --c-text: #EEF3FF;
  --c-muted: #9AA8C9;
  --c-success: #7FE3A0;
  --c-danger: #FF6B6B;
  --r1a: #5BE37D; --r1b: #3ACFD5;
  --r2a: #4FD6C4; --r2b: #2F86D6;
  --r3a: #7B6CFF; --r3b: #C43FD6;
  --f-head: "Pixelify Sans", system-ui, sans-serif;
  --f-body: "Rubik", system-ui, sans-serif;
  --f-pixel: "Silkscreen", "Pixelify Sans", monospace;
  --scale: 1;
  --t-speed: 450ms;
  --grid-cols: 3;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-text: 3px 3px 0 rgba(0, 0, 0, .45);
  --surface-hi: color-mix(in srgb, var(--c-surface) 82%, #ffffff 6%);
  --surface-lo: color-mix(in srgb, var(--c-surface) 70%, #000000 30%);
  --line: color-mix(in srgb, var(--c-border) 70%, transparent);
  --glow-primary: color-mix(in srgb, var(--c-primary) 45%, transparent);
  --wrap: 1240px;
  --header-h: 76px;
  --tex-deepslate: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABVUlEQVR42m1TyW6sMBCsILfBgAbmNtK75Svy/1/DjUXsRso7eKrTQeEC7aW2bj7+fX59X3EHADgpID4HAGzLqGsAcMUdoWqwLaOe25YRDgAezxcAYJ0HxPOA+ByP5wvx3LQGgHgeCFWj306KBMCDZBKf61pZt3rBKiOBu+KOK+4qq6xbTH2HUDUQn2Odh18WAEB8jqnvkkUuWnQrk5fJmNQdb4KAjJfEBw1MfFCmO+C2jG+bAVPfpQyYA9EJYAOklR+wDaFq4JwUKtVmYB/bZmvLSYHMSo3ngXUeErIUcFJoeHZGxOeqJKNnu8lcyMqa/klW1i2yK+7ac27adhGkrFs8nq+3kqAEmfXKTYJZZTYPBr7OAzJKtGkzoPs0rvOgQYoPuOKeFBDkijvKulXJfwHfFWecfXpnv1lbv3Zq13lIZEz3/ttSPvte1i3iuek7ngemvsN/G1cHXsNLKpkAAAAASUVORK5CYII=");
  --tex-stone: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABTklEQVR42l2Ty2qEMBSGv4pG4zBDQJiF275E932bvvNsXQwIQfEWF+2i/CExm0M8l/9y4sfX988vwOQHAM6wAXC7d4RjxdQtOul9mUe65ycFwL75mKiMpTI2a1rmEQBTt4RjJRwrlbFMfqDcN09jHfvmMwaK6aCH62msY/JDzJdiAPBwPfvmWeaRythMDsD4fmV3gDItDsfKGTYqY3m4nvH9yorli7xorKPUxyvt8f2KXqT5ylhM3bLMI+FYKYQqJDWpUNqvfugUqSZRv65N2jVcGzvDRnmGLaMuQ9OV3e5dNFbNkl52z08mP8SEUFOa2rtqGutiLNWsRhmU+qAhqtE7qIz990Boird7l5m4zCMP10eppm6jb4VQdbQeMTF1m23mClaIbjpZyOkbmfwQN5T+G4WoiJ60qtDUbaSfmq364uq2JAmtsS57lZIi4D8rswa/fKj2XAAAAABJRU5ErkJggg==");
  --tex-dirt: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABkklEQVR42m1TMXLbMBBcUgaoEFeAnolCd0RmUqVKlzoPyAP8BD8hVfo8Tj+QVHJUiChOjEnMhCnsO4O2rzrMHXC7e4vi4Ue3eDKQaMji2F8BAKF1msdxQrcjNGQx8Kx9ZWgdTmfWyxKhdRh4xnsh/XGcUPz6+WWRV6Xg60qb88nH/oocLQCUALA/XFbT4zghtG41cX+4wJNBQxaRk/aXkRN8XW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GHb98FVJn4Q8w8bZBhVw54YIAAAAABJRU5ErkJggg==");
  --tex-deep: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAIkklEQVR42n1asY4jRRB9bs94PDZGXmlvhU6ckJCO4EQESEcA0l0CAQkEiIxvuW8hQwgdySEdEiK4iIyIgICclcXtydjj8dhtgvbrfl0ze5ZWux6Pe6qrXr16Vb2jy7vvnwCgKCscuhb8u5wssL65Pr932ed81fPLeA/v4/d32wYAsFheodms4rXprMaha+N69fwSANDt1/F9t1/H509ndfZM2nDoPIrSwanxRVmZjbjeAvwyH7pYXp036LLPeI3Gc81yskA9v8Ru26CeX6LZrNBsVignCxw6H43v9utocDI62FjPL+PzXLrJZzu0UbE756vZrKIXi7LKoqPvAWA6q9FsVvE9jeQ6RemMsS6uU04WGTIOnceh83B8SFG66B16ZrdtzgZX8bd6mfdzE+VkYTbbRm+rB2k47+eG+bvZrKKBFj7rm2sUpcNieQUAGL+xvPvEjQt4f8Sh2wI4wh/3qOoLOOcBeLhxgUN3QFGWADy8P4WfYwPgCDcusF2/gj82cOMRirLCeFzh0G1x6LaYTKeo6gsAx2j4freBPwYY8b5D5+Gcx77tUJQO8zfvoNms4P0x2OWPcS1uxGniKowYAQDYbZu440PnMZ3VMbw0iO81PzRaIextXFtfzL1EAi6DX4hGm9m2WF4FVIQPm/OFNsNyPQ94I5PQGLIJvUB8Mql5XZmJDkgbazL2UfZS4gi2tBnM+L2idCj4AE1GGsBEsq/prD6zRsC0elS/QzwrJXMzvFaUylyINGtJhWtxk3S4Y/iUDegtho8Pn85qTGc1dtsmRoT0x+QnFEmJlm6tBxmlxfLqTBoh8XUjmuCEdfh+BUdPJs9X8UPlcxq72zYZ/mnI+uY6GpxqQipY3X6dRZif6YaIa0vtXJtUywgeuhaORieKzItGv8qGzaREajMaZoEijrlOOVlEA/hSGNKzdIZ9rtYnFr96fonRW+98eOJixLJ6igl8m2ywBYxJPnSfrfpqPJ+jeP/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e7483ZqasND3cn738d9MbmYm0SRE6BaVtQJ+uRCHKugwjTtlw6rkfK7uY9UnljGRp3sauH5z0ytv3FenkWoJr3mAvUusJScDoCQMmsq805QjmX8iiF8hjm2sgbewoo9Ye7E0SY95ivKiTJnbV42pYsctMcDI27FGkGAIJcRRTm2PbfI8x7ZD1SfuvtKINyX7sHEaqQhKFxGYxS1nT+XKvw2PbMe6RWNYWiNse2zzzKK16PxNA4pm1haBxVGRY9rCGa9/jLmbLqakNIwu1f+/dd2tOr0ickyUEqAYckrEc6k/izUMfw1uZoK8BSZGgclbeWCwf7nbggki0Pjbv8WCEJIQmfUGsLNJ8f2jUAAAAASUVORK5CYII=");
  --tex-obsidian: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVR42m2TMY+DMAyFv6KoIEQoOgkx0JGZ5f7/n+jctQPqUl0qBChSO5QXBXpeQsyz/fzsHM4/vy+A2TsWPwJwNDkAqbG4acBmTTgB3DQETOKmgdk7UmMBAkjBMps1zN5tfIsfSdqq32R100BddIHJ0eTM3gEEf2zm/ryy+DFUAJBPSRY/ft1TYz8M4mCBdLZVH76lg1iUWYPNGozEiPuPmezt/rxis4bb4wLA4ZSfX6IlirGAMTsVExYgsVkTfrZVH4IFjhPVRfc16kTzXfzI3zTgpiEkktVFx+wdt8cFu/auJIdTfn4JGFPct6XdkD4SPxHAZg2psaTGhgBVqosuBMfMZu8+CVJjKdcxlWs70qKt+jCNxY+4adgUMRJqv7blqr7GpcrxZi5+3I4x7jveuvi+fyPJfon+s7bqiRdOmgEkR5NTF90mq0y09TakQWxvi0/oVurd5eAAAAAASUVORK5CYII=");
  --tex-slot: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA7ElEQVR42nVTMRLDMAhTfZk4Zj6dnzJzrO3QE6e4rhcHYxCSldd9328zQ3ejquDuAIDTGRdzALAATBARc6m7YWZwd1QVAMyemRMvM5sEi3Qxx2Y70CJ6Vf0UdzfcHe7+aM4J3B0XP5QKLzL+BwAAiyPuyDoZQXhGwKrCokin7tqced3d/SviSTBFUjp8WsYXPzLzR4t93P1sfKDPsmtSVQ8zRcRQNrOnkciLSS4WsYkKupRvZsLMHk6LiCM92nlRFO0cEWMiLT659OJobMJibaqvoxOOiLxIMdX3SlF/OgJf5MiR9IlYxClObvwAVYTY3GCGsagAAAAASUVORK5CYII=");
  --tebex-legal-footer-background-color: #0b0f1c;
  --tebex-legal-footer-text-color: #9AA8C9;
  --tebex-legal-footer-border-color: #1d2742;
  --tebex-legal-footer-logo-color: #9AA8C9;
}

@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(16px * var(--scale));
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--c-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--c-text);
  font-family: var(--f-body);
  line-height: 1.6;
  background:
    radial-gradient(120% 70% at 50% 110%, color-mix(in srgb, var(--c-secondary) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--c-bg) 0%, color-mix(in srgb, var(--c-bg) 50%, var(--c-bg-2)) 45%, var(--c-bg-2) 100%) fixed;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: hidden; overflow-x: clip; }

body.scene-sunset { --c-bg: #1B0E2E; --c-bg-2: #5A2A4A; }
body.scene-nether { --c-bg: #160406; --c-bg-2: #3A0B10; }
body.scene-the-end { --c-bg: #07040F; --c-bg-2: #1C1033; }

body.cursor-pixel-sword, body.cursor-pixel-sword a, body.cursor-pixel-sword button { cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD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C0xek0yIDEwaDF2MWgtMXpNNCAxMGgxdjFoLTF6TTEyIDEwaDF2MWgtMXpNMTQgMTBoMXYxaC0xek0xIDExaDF2MWgtMXpNMyAxMWgxdjFoLTF6TTEzIDExaDF2MWgtMXpNMSAxMmgydjFoLTJ6Ii8+PHBhdGggZmlsbD0iI0M4RkZGOCIgZD0iTTQgMmg1djFoLTV6TTIgM2gydjFoLTJ6Ii8+PHBhdGggZmlsbD0iIzRFRTFEMiIgZD0iTTkgMmgxdjFoLTF6TTkgM2gydjFoLTJ6TTEwIDRoMXYxaC0xek0xMSA1aDF2MWgtMXpNMTIgNmgxdjFoLTF6TTEyIDdoMXYxaC0xek0xMyA4aDF2MWgtMXpNMTMgOWgxdjFoLTF6Ii8+PHBhdGggZmlsbD0iIzFFOUFBNiIgZD0iTTExIDNoMXYxaC0xek0xMSA0aDF2MWgtMXpNMTIgNWgxdjFoLTF6TTEzIDZoMXYxaC0xek0xMyA3aDF2MWgtMXpNMTMgMTBoMXYxaC0xeiIvPjxwYXRoIGZpbGw9IiM4QzYyMzYiIGQ9Ik05IDRoMXYxaC0xek04IDVoMXYxaC0xek03IDZoMXYxaC0xek02IDdoMXYxaC0xek01IDhoMXYxaC0xek00IDloMXYxaC0xek0zIDEwaDF2MWgtMXoiLz48cGF0aCBmaWxsPSIjNUEzQzIwIiBkPSJNMiAxMWgxdjFoLTF6Ii8+PC9zdmc+") 2 2, auto; }

img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-secondary); }
::selection { background: var(--c-primary); color: #04140A; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--c-muted); }
.ico { width: 1.25em; height: 1.25em; flex: none; image-rendering: pixelated; vertical-align: -0.25em; }
.ico-lg { width: 2.25rem; height: 2.25rem; }
.ico-xl { width: 3.5rem; height: 3.5rem; }
.pixelated { image-rendering: pixelated; }
.ts { text-shadow: var(--shadow-text); }
body.no-text-shadow { --shadow-text: none; }

/* pixel notched corners */
.px, .panel, .btn, .chip, .slot {
  --n: 4px;
  clip-path: polygon(0 var(--n), var(--n) var(--n), var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)));
}

.panel {
  --n: 6px;
  position: relative;
  border: 3px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(0, 0, 0, .14)) padding-box,
    var(--tex-deepslate) padding-box,
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    linear-gradient(180deg, color-mix(in srgb, var(--c-border) 100%, #fff 10%), var(--c-border)) border-box;
  background-size: auto, 64px 64px, auto, auto;
  background-blend-mode: normal, soft-light, normal, normal;
  image-rendering: pixelated;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .05), inset 0 -4px 0 rgba(0, 0, 0, .25);
}
.panel > * { image-rendering: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font: 700 .78rem/1 var(--f-pixel);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}
.kicker .ico { width: 1.4em; height: 1.4em; }

.grad-text {
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-primary));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-slide 6s linear infinite;
}
@keyframes grad-slide { to { background-position: -200% 0; } }

/* ---------- buttons ---------- */

.btn {
  --n: 3px;
  --b-top: color-mix(in srgb, var(--btn) 60%, #fff);
  --b-bot: color-mix(in srgb, var(--btn) 55%, #000);
  --btn: var(--c-primary);
  --btn-ink: #04170B;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .85em 1.35em .95em;
  border: 0;
  font: 600 1rem/1 var(--f-head);
  letter-spacing: .02em;
  color: var(--btn-ink);
  background: linear-gradient(180deg, var(--b-top) 0 4px, var(--btn) 4px calc(100% - 5px), var(--b-bot) calc(100% - 5px));
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .15s var(--ease), filter .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.btn:hover { color: var(--btn-ink); filter: brightness(1.08) saturate(1.1); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(2px); filter: brightness(.95); }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-lg { font-size: 1.15rem; padding: 1em 1.6em 1.1em; }
.btn-sm { font-size: .88rem; padding: .65em 1em .75em; }
.btn-block { width: 100%; }
.btn-stone { --btn: #3A4566; --btn-ink: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .45); }
.btn-stone:hover { color: #fff; }
.btn-gold { --btn: var(--c-accent); --btn-ink: #2A1B00; }
.btn-boss { --btn: var(--c-boss); --btn-ink: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .4); }
.btn-boss:hover { color: #fff; }
.btn-ghost { --btn: transparent; --b-top: transparent; --b-bot: transparent; --btn-ink: var(--c-text); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { color: var(--c-text); box-shadow: inset 0 0 0 2px var(--c-primary); }
.btn-success { --btn: var(--c-success); }
.btn[disabled], .btn.is-disabled { filter: grayscale(1) brightness(.7); cursor: not-allowed; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before {
  content: "";
  width: 1em; height: 1em;
  background: currentColor;
  animation: px-spin 1s steps(4) infinite;
}
@keyframes px-spin { 0% { clip-path: inset(0 50% 50% 0); } 25% { clip-path: inset(0 0 50% 50%); } 50% { clip-path: inset(50% 0 0 50%); } 75% { clip-path: inset(50% 50% 0 0); } }

.chip {
  --n: 3px;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .35em .7em;
  font: 600 .8rem/1.2 var(--f-head);
  background: color-mix(in srgb, var(--c-surface) 70%, #000);
  color: var(--c-text);
}

/* ---------- sky, particles, background ---------- */

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.bg-picture {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  opacity: .35;
  filter: saturate(1.1);
}
.bg-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--c-bg) 0%, transparent 40%, var(--c-bg) 100%); }

/* ---------- loading screen ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: linear-gradient(rgba(6, 8, 16, .72), rgba(6, 8, 16, .82)), var(--tex-dirt);
  background-size: auto, 96px 96px;
  image-rendering: pixelated;
}
html.show-intro .intro { display: grid; }
.intro-inner { text-align: center; width: min(420px, 80vw); }
.intro-logo { width: 140px; height: 140px; object-fit: contain; animation: intro-pop .7s var(--ease-pop) both, bob 2.4s ease-in-out .7s infinite; image-rendering: auto; }
.intro-text { font: 600 1.05rem var(--f-head); color: #fff; text-shadow: 2px 2px 0 #000; margin: 18px 0 12px; }
.intro-text::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.intro-bar { height: 14px; border: 2px solid #fff; padding: 2px; background: #000; }
.intro-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); animation: intro-fill 1.1s var(--ease) forwards; }
.intro.is-done { animation: intro-out .5s var(--ease) forwards; }
@keyframes intro-pop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
@keyframes intro-fill { to { width: 100%; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }

/* ---------- page transitions ---------- */

.px-transition {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  pointer-events: none;
}
.px-transition .cell {
  background: var(--c-bg);
  transform: scale(0);
  transition: transform calc(var(--t-speed) * .55) var(--ease);
  transition-delay: var(--d, 0ms);
}
.px-transition .cell:nth-child(3n) { background: color-mix(in srgb, var(--c-bg) 80%, var(--c-bg-2)); }
.px-transition .cell:nth-child(7n) { background: color-mix(in srgb, var(--c-bg) 60%, var(--c-border)); }
.px-transition.is-covering .cell { transform: scale(1.02); }
html.is-entering .px-transition .cell { transform: scale(1.02); transition: none; }
html.is-entering.t-px .px-transition { background: var(--c-bg); }
html.is-entering.t-fade body > main, html.is-entering.t-slide body > main { opacity: 0; }
.t-fade body > main, .t-slide body > main { transition: opacity var(--t-speed) var(--ease), transform var(--t-speed) var(--ease); }
html.is-leaving.t-fade body > main { opacity: 0; }
html.is-leaving.t-slide body > main { opacity: 0; transform: translateY(-24px); }
html.t-slide.is-entering body > main { transform: translateY(24px); }

/* ---------- announcement + header ---------- */

.announce {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  padding: 9px 44px;
  font: 600 .92rem/1.3 var(--f-head);
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a1));
  background-size: 200% 100%;
  animation: grad-slide 8s linear infinite;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}
.announce a { color: inherit; }
.announce .ico { animation: wiggle 2.2s ease-in-out infinite; }
.announce-close { position: absolute; inset-inline-end: 10px; background: none; border: 0; color: inherit; cursor: pointer; opacity: .8; padding: 6px; }
.announce-close:hover { opacity: 1; }
.announce--boss-red { --a1: color-mix(in srgb, var(--c-boss) 85%, #000); --a2: color-mix(in srgb, var(--c-boss) 70%, #ff9a3c); }
.announce--gold { --a1: #b77d12; --a2: #e9b43a; }
.announce--green { --a1: color-mix(in srgb, var(--c-primary) 70%, #000); --a2: color-mix(in srgb, var(--c-secondary) 70%, #000); }
.announce--purple { --a1: #5a3bc4; --a2: #a53ec9; }
.announce.is-hidden { display: none; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: height .3s var(--ease), background .3s, box-shadow .3s;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-secondary), transparent);
  opacity: .45;
}
.header-glass { background: color-mix(in srgb, var(--c-bg) 68%, transparent); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); }
.header-solid { background: var(--c-surface); }
.header-transparent { background: transparent; }
.header-transparent.is-scrolled { background: color-mix(in srgb, var(--c-bg) 80%, transparent); backdrop-filter: blur(12px); }
.site-header.is-scrolled { --header-h: 62px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-text); flex: none; }
.brand:hover { color: var(--c-text); }
.brand img { width: 46px; height: 46px; object-fit: contain; transition: transform .4s var(--ease-pop); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.brand:hover img { transform: rotate(-8deg) scale(1.1); }
.brand-name { font: 700 1.25rem/1 var(--f-head); text-shadow: var(--shadow-text); }
.brand-name small { display: block; font: 400 .62rem/1.4 var(--f-pixel); letter-spacing: .14em; color: var(--c-muted); text-shadow: none; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: 8px 12px;
  font: 600 .95rem var(--f-head);
  color: var(--c-muted);
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--c-text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav .ico { width: 1.1em; height: 1.1em; }

.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.ip-pill {
  --n: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 0;
  background: color-mix(in srgb, var(--c-surface) 85%, #000);
  color: var(--c-text);
  font: 600 .9rem var(--f-head);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}
.ip-pill:hover { background: var(--c-surface); transform: translateY(-1px); }
.ip-pill small { display: block; font: 400 .72rem var(--f-body); color: var(--c-muted); }
.status-dot { width: 10px; height: 10px; background: var(--c-muted); flex: none; position: relative; }
.status-dot.is-online { background: var(--c-success); }
.status-dot.is-online::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--c-success); animation: ping 1.8s var(--ease) infinite; }
.status-dot.is-offline { background: var(--c-danger); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.icon-btn {
  --n: 3px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  color: var(--c-text);
  background: color-mix(in srgb, var(--c-surface) 85%, #000);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.icon-btn:hover { color: var(--c-primary); background: var(--c-surface); transform: translateY(-2px); }
.icon-btn .ico { width: 22px; height: 22px; }
.basket-btn { width: auto; padding: 0 14px; display: inline-flex; gap: 18px; font: 600 .95rem var(--f-head); }
.basket-count {
  position: absolute;
  top: 3px; inset-inline-start: 25px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font: 700 .72rem/1 var(--f-head);
  color: #04170B;
  background: var(--c-accent);
  box-shadow: 0 0 0 2px var(--c-bg);
}
.basket-btn.is-bump { animation: bump .5s var(--ease-pop); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-4deg); } 60% { transform: scale(.95); } }
.user-chip { display: flex; align-items: center; gap: 8px; font: 600 .9rem var(--f-head); color: var(--c-text); }
.user-chip img { width: 30px; height: 30px; image-rendering: pixelated; }
.menu-btn { display: none; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  overflow: hidden;
}
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--c-surface);
  border-left: 3px solid var(--c-border);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  overflow-y: auto;
}
.drawer-panel a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; font: 600 1.05rem var(--f-head); color: var(--c-text); border-bottom: 2px solid var(--line); }
.drawer-panel a:hover { color: var(--c-primary); padding-inline-start: 16px; }
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: 70px 0 200px;
  overflow: hidden;
  isolation: isolate;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.hero-video + .hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, var(--c-bg) 95%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; position: relative; z-index: 2; }
.hero-kicker { color: var(--c-secondary); }
.hero-title {
  position: relative;
  margin: 0;
  font: 700 clamp(3.4rem, 9.5vw, 8rem)/.9 var(--f-head);
  letter-spacing: .02em;
}
.hero-title .word {
  position: relative;
  display: inline-block;
  color: var(--c-primary);
  text-shadow: 0 .045em 0 color-mix(in srgb, var(--c-primary) 55%, #000), 0 .09em 0 color-mix(in srgb, var(--c-primary) 38%, #000), .04em .15em 0 rgba(0, 0, 0, .45);
}
.hero-title .char {
  --cc: color-mix(in srgb, var(--c-secondary) calc(var(--p, 0) * 100%), var(--c-primary));
  display: inline-block;
  color: var(--cc);
  text-shadow: 0 .045em 0 color-mix(in srgb, var(--cc) 55%, #000), 0 .09em 0 color-mix(in srgb, var(--cc) 38%, #000), .04em .15em 0 rgba(0, 0, 0, .45);
  animation: char-drop .9s var(--ease-pop) both, char-glint 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 60ms + 150ms), calc(var(--i) * 90ms + 2.4s);
}
@keyframes char-glint { 0%, 88%, 100% { filter: none; } 93% { filter: brightness(1.55) drop-shadow(0 0 12px var(--cc)); transform: translateY(-.04em); } }
@keyframes char-drop { from { transform: translateY(-80px) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } }
.hero-sub {
  display: block;
  margin-top: 10px;
  font: 600 clamp(1.1rem, 2.6vw, 1.9rem)/1 var(--f-pixel);
  letter-spacing: .35em;
  color: var(--c-text);
  text-shadow: var(--shadow-text);
  animation: fade-up .8s var(--ease) .7s both;
}
.hero-text { max-width: 540px; margin: 22px 0 28px; font-size: 1.12rem; color: var(--c-muted); animation: fade-up .8s var(--ease) .85s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; animation: fade-up .8s var(--ease) 1s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

/* Minecraft multiplayer server list entry */
.mc-server {
  --n: 4px;
  margin-top: 34px;
  max-width: 560px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border: 0;
  width: 100%;
  text-align: start;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14);
  cursor: pointer;
  font-family: var(--f-head);
  animation: fade-up .8s var(--ease) 1.15s both;
  transition: box-shadow .2s, transform .2s var(--ease);
}
.mc-server:hover { box-shadow: inset 0 0 0 2px #fff; transform: translateY(-2px); }
.mc-server-icon { width: 64px; height: 64px; position: relative; }
.mc-server-icon img { width: 100%; height: 100%; object-fit: contain; }
.mc-server-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M5 3h2v1h1v1h1v1h1v1h1v2h-1v1h-1v1h-1v1H7v1H5z'/%3E%3C/svg%3E") center / 36px no-repeat;
  opacity: 0;
  transition: opacity .2s;
}
.mc-server:hover .mc-server-icon::after { opacity: 1; }
.mc-server-name { font: 600 1.05rem/1.2 var(--f-head); }
.mc-motd { font: 500 .92rem/1.35 var(--f-head); color: #AAAAAA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-motd .l1 { display: block; background: linear-gradient(90deg, #5BE37D, #3ACFD5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-motd .l2 { display: block; color: #FFB86B; }
.mc-side { text-align: end; font: 500 .9rem var(--f-head); color: #AAAAAA; }
.mc-ping { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: 6px; vertical-align: -1px; }
.mc-ping i { width: 3px; background: #2b2b2b; }
.mc-ping i:nth-child(1) { height: 4px; } .mc-ping i:nth-child(2) { height: 7px; } .mc-ping i:nth-child(3) { height: 10px; } .mc-ping i:nth-child(4) { height: 12px; } .mc-ping i:nth-child(5) { height: 14px; }
.mc-ping.is-online i { background: #3FE03F; }
.mc-ping.is-loading i { animation: ping-bars 1s steps(1) infinite; animation-delay: calc(var(--i) * 120ms); }
@keyframes ping-bars { 0%, 100% { background: #2b2b2b; } 50% { background: #3FE03F; } }
.mc-copy { display: block; margin-top: 4px; font: 400 .72rem var(--f-pixel); letter-spacing: .08em; color: var(--c-accent); }

/* hero art: a spinning grass block with floating items */
.hero-art { position: relative; height: 480px; perspective: 1100px; }
.hero-art img.hero-picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.cube-stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.cube {
  --s: 170px;
  position: absolute;
  left: calc(var(--s) / -2);
  top: calc(var(--s) / -2);
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  animation: cube-spin 16s linear infinite;
}
.cube-wrap { transform-style: preserve-3d; animation: bob 5s ease-in-out infinite; }
.cube i {
  position: absolute;
  inset: 0;
  background: var(--tex-grass) 0 0 / 100% 100%;
  image-rendering: pixelated;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25);
}
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.82); }
.cube i:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); filter: brightness(.7); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.9); }
.cube i:nth-child(5) {
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), var(--tex-grass) 0 0 / 100% 600%;
  background-color: #4BB33A;
  filter: brightness(1.1) saturate(1.1);
}
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: var(--tex-dirt) 0 0 / 100% 100%; filter: brightness(.55); }
.cube-shadow { position: absolute; left: -110px; top: 150px; width: 220px; height: 40px; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); animation: shadow-pulse 5s ease-in-out infinite; }
@keyframes cube-spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shadow-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.85); opacity: .7; } }
.orbit { position: absolute; inset: 0; }
.float-item {
  position: absolute;
  width: 64px;
  height: 64px;
  left: var(--x);
  top: var(--y);
  animation: float-a 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45));
}
.float-item svg { width: 100%; height: 100%; animation: item-turn 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.float-item.sm { width: 46px; height: 46px; }
.float-item::after {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow, rgba(255, 255, 255, .25)), transparent);
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes float-a { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 33% { transform: translate(8px, -16px) rotate(4deg); } 66% { transform: translate(-6px, -6px) rotate(-2deg); } }
@keyframes item-turn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes glow-pulse { 0%, 100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
.sparkle { position: absolute; width: 12px; height: 12px; color: #fff; animation: sparkle 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); left: var(--x); top: var(--y); }
@keyframes sparkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* pixel landscape */
.scene { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; z-index: 1; pointer-events: none; }
.scene-layer { position: absolute; left: -4%; right: -4%; bottom: 0; width: 108%; height: 100%; will-change: transform; }
.scene-far path { fill: color-mix(in srgb, var(--c-bg-2) 55%, #33497f); opacity: .9; }
.scene-far .snow { fill: #9fb3e8; opacity: .55; }
.scene-mid path { fill: color-mix(in srgb, var(--c-bg-2) 55%, #0f3a3a); }
.scene-mid .tree { fill: color-mix(in srgb, var(--c-bg-2) 40%, #0e4a3a); }
.scene-mid .trunk { fill: #2a2018; }
.scene-near .leaf { fill: #13563a; }
.scene-near .leaf-hi { fill: #1f7a4a; }
.scene-near .trunk { fill: #4a3220; }
.scene-near .grass { fill: #3fa144; }
.scene-near .grass-tip { fill: #57c34f; }
.scene-near .dirt { fill: #5c3b1e; }
.hero .scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 26px; background: linear-gradient(180deg, transparent, var(--c-bg-2)); }
body.no-landscape .scene { display: none; }

/* ---------- sections ---------- */

.section { position: relative; padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); text-shadow: var(--shadow-text); margin-bottom: 14px; }
.section-text { color: var(--c-muted); font-size: 1.08rem; }
.divider-grass { height: 16px; background: var(--tex-grass) 0 0 / 32px 32px repeat-x; image-rendering: pixelated; opacity: .85; }

/* scroll reveal */
html.reveal-on [data-reveal] { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.reveal-on [data-reveal="left"] { transform: translateX(-40px); }
html.reveal-on [data-reveal="right"] { transform: translateX(40px); }
html.reveal-on [data-reveal="zoom"] { transform: scale(.88); }
html.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- ranks ---------- */

.rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; perspective: 1400px; }
.rank-card {
  --ra: var(--r1a);
  --rb: var(--r1b);
  --n: 8px;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 3px;
  background: conic-gradient(from var(--ang), var(--ra), var(--rb), color-mix(in srgb, var(--ra) 40%, #000), var(--ra));
  animation: ang 6s linear infinite;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .25s var(--ease), filter .3s;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}
.rank-card[data-rank="2"] { --ra: var(--r2a); --rb: var(--r2b); }
.rank-card[data-rank="3"] { --ra: var(--r3a); --rb: var(--r3b); }
.rank-card:hover { filter: drop-shadow(0 26px 40px color-mix(in srgb, var(--ra) 40%, transparent)); }
.rank-card.is-featured { transform: translateY(-14px) rotateX(var(--rx)) rotateY(var(--ry)); }
@keyframes ang { to { --ang: 360deg; } }
.rank-inner {
  --n: 6px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--ra) 26%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .2)),
    var(--tex-deepslate) 0 0 / 64px 64px,
    var(--c-surface);
  image-rendering: pixelated;
}
.rank-inner > * { image-rendering: auto; position: relative; }
.shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .14), transparent 45%); opacity: 0; transition: opacity .3s; }
[data-tilt]:hover .shine { opacity: 1; }
.ribbon {
  position: absolute;
  top: 30px;
  right: -50px;
  z-index: 4;
  width: 200px;
  padding: 6px 0;
  transform: rotate(40deg);
  text-align: center;
  font: 700 .7rem/1 var(--f-pixel);
  letter-spacing: .1em;
  color: #2A1B00;
  background: linear-gradient(90deg, #ffe58a, var(--c-accent), #f2b92b);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
}
.rank-top { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 18px; }
.drop-item { position: relative; width: 96px; height: 96px; perspective: 400px; }
.drop-item svg { width: 100%; height: 100%; animation: drop-spin 4s linear infinite, drop-bob 2.6s ease-in-out infinite; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--ra) 70%, transparent)); }
.drop-item::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -8px; height: 10px; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); animation: drop-shadow 2.6s ease-in-out infinite; }
@keyframes drop-spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes drop-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drop-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.7); opacity: .6; } }
.rank-badge {
  display: inline-block;
  height: 36px;
  aspect-ratio: var(--ar, 32 / 18);
  background: var(--badge) center / contain no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35));
}
.badge-wd { --badge: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAYAAAA6yNxSAAABnklEQVR42sVWO0gDQRB9uV1IJRZaJCBpYmNAJJ1dClFQG1HSpBECqRRbC8HOQrDy0yimSZVCGz+FnbVYiEXQxiBIKjGdpNg5i8te9pO9RIRzYLmbefvmZt/OLZtA19Llio8YrVU9SwAAl4GZIkO8BQRPni5X/Om1JBbzc7EWQDfcf77oBAoQeWh2PuMtgDyEW0DE0Pz+0iY0FvYBAFN3230TmLj0TXPxiYIt9wBACGYNafPJwlC4y1x8yQkVEII7k0RhJr51f6thh4UlAED2erevAkEBgoEiVhGF9cOv2g/WnOWRWS1Ov1XgfXUHAJC53BuokCuXGtd6gMgDEdNGP7kAYGUsH4lL35WnN7S/gDurlnuYrh+gmMqF/t8V4GoPeAP3uZjKof7xMlQPuHKpcRLecD2gdrUQHOO1I5QyWU0JlWsqJOe7eoCr54DLam/N7hszfFmAm1vKZC2+yuEA4BMDGQqMnp9ifXKiK5etjomrvi29zfc1BYhBkL2K6mvLqjwK7/mm2Xz5vUR4Zp8cx3ofaGxs6veB9uMT/sN+AKWe/an2iXTmAAAAAElFTkSuQmCC"); --ar: 32 / 18; }
.badge-wd-plus { --badge: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAASCAYAAAAg9DzcAAAB+0lEQVR42tVWzysEcRT/fLc9OSmnJU5aDvYgYhVFUpYDcXNRlHBCtvgDRBEHbWtLfp32JFuKUkgKSflZS0IRJ+VHoXZ2vg5jZuc7+53vDKfxapp57/O+b9583vu++RL8iCcQpHCwPK2NEwBwqwZvRxGcnbByd3sCQZrf7kNjSbmjE5ajS/R68UxhWJYIbt+/nJ2wRKC1BE0Q3Lx9Mg7rlQrj9bsH3ABGXNWNYrZei5M1pPg9jwn9aEJJ2AUAVFIM+kuVi4mFNIyHm4nZemOc4hG/0I9KSDEsJ4lGuagcdvDc5h4Gu18JAwDqNg5tl52LJfUtIRHIApZEGA/3dnWm+cRDc1y73fdQfQ/LNhLeaioBANTEjixfZBZLThBseQe52OhkNYCgptdcTXDZd6VawsVcrHNKv56fFeKqbhXHSvwzpWxOScOUMGNF7cGq6DHuohFN/yvDVSdTqFwsNjALDA9sC+OqG9RWSwDAXTSCvNZuW70nShgAdtqOddY+7Ym1A0iYzGHRlNDvelkiqJg/xUMszDCtX2usgOr/22kjnBKQiHCW5jT0/pSF1Y3l4slDLJy23urnwBWrKVEWOsfTRsi0xEZcr/9mXJVtTqN21Wfpp7JPPIEgzSzyIyO7wNFniY/HS7yc70P7pML+ZUefh+NTLex5+DW+h/8g34wTQbCExzSMAAAAAElFTkSuQmCC"); --ar: 44 / 18; }
.badge-wd-plus-plus { --badge: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAASCAYAAAAOsR1OAAACMUlEQVR42t2XP2gUQRTGf+vuIShWamF7CiqIRRRLEQURRARjcUhsYnmFmHCFEFELEXKYNNEuh91tYeEVQrDSoE3ECCGFRjjBCApGRYVUNzMWe7Pu7O3sn9NqHwzse983b+fte/Nmx6Ev9WpDUSK53206AJ42iKOXKJV0mwB49WpDOSM1Tp0+VKr4PPlaqWU/yKArJd/XZakCdKWkp0vUFYIfH3sGYbK1DYB745uJDuK41uNimx/6aZwNeM0nuRael+8KQQ/YEqRT4UlpDC2vXk4NYEm4TWzz4342Pm9P5RXnBz3TCwKUVIR9kWlYHK/tnzAw/90MAA8u/8rMTtZ7ivD1x+iXqMQTwk5OwZLwk0duDHAWl24l2ou8pwjfFdEAlUwtM09Kxv2dALRq36xfy6Ybfm5eTMTuzpwALoR66/YjgML8MEAVrCHYg0JSEcIYZin81Z++uZOKaz3LT5a8/7lrKL4eXjSDXkoG9R5qj36hszod6sNmsD3VZmVzTywTcH3i2X/hh8/K2IMis/47q9OMHpzMtRdsvrR9ZOuniHUsfDLtwJB8HVOkiyprR4p2xYqQPD63jr82a2QyOjeeYc0v2o3/vYtGjglXpjeZsX1Xg4c+J9QzShLAX5sdmJ/V2vP/jsnUPxnjHIyX1cKZLg8/zFlLLo5H9SLtfOHaPM+dvbmPibx8HbxTrzbU4d3Hqe44UK7LxO+3rHxdxNGG+WOdUt0HryydN++DyxsvKKP8ARdlg92+jJ5jAAAAAElFTkSuQmCC"); --ar: 56 / 18; }
.rank-badge.badge-sm { height: 22px; }
.rank-badge.badge-xs { height: 16px; vertical-align: -3px; }
.rank-badge-img { height: 36px; width: auto; image-rendering: pixelated; }
.rank-title { text-align: center; font-size: 1.9rem; margin: 0; text-shadow: var(--shadow-text); }
.rank-title span { background: linear-gradient(90deg, var(--ra), var(--rb)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank-tagline { text-align: center; color: var(--c-muted); margin: 6px 0 18px; }
.rank-price { text-align: center; font: 700 2.2rem/1 var(--f-head); color: var(--c-accent); text-shadow: var(--shadow-text); margin-bottom: 20px; }
.rank-price small { font: 400 .9rem var(--f-body); color: var(--c-muted); text-shadow: none; }
.perk-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.perk-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  font-size: .97rem;
  line-height: 1.35;
  background: rgba(0, 0, 0, .22);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--ra) 80%, transparent);
  transition: transform .25s var(--ease), background .25s;
}
.perk-list li:hover { transform: translateX(6px); background: rgba(0, 0, 0, .35); }
.perk-list .ico { width: 1.5em; height: 1.5em; margin-top: -1px; }
.btn-rank { --btn: var(--ra); --btn-ink: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .35); background: linear-gradient(180deg, color-mix(in srgb, var(--ra) 60%, #fff) 0 4px, var(--ra) 4px, var(--rb) calc(100% - 5px), color-mix(in srgb, var(--rb) 55%, #000) calc(100% - 5px)); }
.btn-rank:hover { color: #fff; }
.rank-more { text-align: center; margin-top: 40px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.compare-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); margin-top: 26px; }
.compare-wrap.is-open { grid-template-rows: 1fr; }
.compare-wrap > div { overflow: hidden; }
.compare-scroll { overflow-x: auto; padding: 4px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 620px; }
.compare th, .compare td { padding: 12px 16px; text-align: center; }
.compare thead th { font: 700 1.05rem var(--f-head); color: var(--c-muted); }
.compare thead th:first-child, .compare td:first-child { text-align: start; }
.compare tbody tr { background: rgba(0, 0, 0, .25); transition: background .2s; }
.compare tbody tr:hover { background: rgba(255, 255, 255, .05); }
.compare tbody td:first-child { font-weight: 500; }
.compare .col-r1 { color: var(--r1a); } .compare .col-r2 { color: var(--r2a); } .compare .col-r3 { color: var(--r3a); }
.compare td.col-r1, .compare td.col-r2, .compare td.col-r3 { font: 600 1rem var(--f-head); }
.compare .yes { color: var(--c-success); } .compare .no { color: color-mix(in srgb, var(--c-muted) 50%, transparent); }

/* ---------- boss ---------- */

.boss {
  --boss: var(--c-boss);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 30% 55%, color-mix(in srgb, var(--boss) 30%, transparent), transparent 70%),
    linear-gradient(180deg, transparent, rgba(30, 4, 8, .65) 18%, rgba(30, 4, 8, .65) 82%, transparent);
}
.boss::before {
  content: "";
  position: absolute;
  inset: 12% 0;
  background: var(--tex-nether) 0 0 / 96px 96px;
  image-rendering: pixelated;
  opacity: .12;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.boss-embers { position: absolute; inset: 0; pointer-events: none; }
.boss-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.boss-stage { position: relative; display: grid; justify-items: center; user-select: none; }
.bossbar { width: min(440px, 100%); text-align: center; margin-bottom: 26px; }
.bossbar-name { font: 600 1rem var(--f-head); color: #fff; text-shadow: 2px 2px 0 #3a0008; margin-bottom: 6px; }
.bossbar-track {
  position: relative;
  height: 14px;
  background: #3a0a10;
  box-shadow: 0 0 0 2px #120206, 0 0 22px color-mix(in srgb, var(--boss) 40%, transparent);
}
.bossbar-fill {
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(var(--hp, 1));
  background: linear-gradient(180deg, #ff8a8a 0 3px, var(--boss) 3px 9px, #8e1823 9px);
  transition: transform .45s var(--ease);
}
.bossbar-lag { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--hp-lag, 1)); background: #ffe1a1; transition: transform .9s var(--ease) .25s; }
.bossbar-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(0, 0, 0, .55) calc(10% - 2px) 10%); }
.bossbar-hp { margin-top: 6px; font: 500 .85rem var(--f-head); color: #ffb3b3; }
.boss-figure {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  cursor: crosshair;
  touch-action: manipulation;
}
.boss-figure::before {
  content: "";
  position: absolute;
  inset: 8% 4% -6%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--boss) 55%, transparent), transparent 75%);
  animation: glow-pulse 2.8s ease-in-out infinite;
}
.boss-figure::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: -4%; height: 8%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); }
.boss-figure svg, .boss-figure img { position: relative; z-index: 1; width: 100%; height: 100%; image-rendering: pixelated; animation: boss-breathe 3.2s steps(8) infinite; transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.boss-figure img { object-fit: contain; animation: boss-breathe 3.2s ease-in-out infinite; }
.boss-eyes { animation: eyes 2.6s ease-in-out infinite; }
@keyframes boss-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.03); } }
@keyframes eyes { 0%, 100% { filter: drop-shadow(0 0 .3px #ff3b3b); opacity: 1; } 50% { filter: drop-shadow(0 0 1.2px #ff3b3b) drop-shadow(0 0 2px #ff0000); } 92% { opacity: 1; } 95% { opacity: .2; } }
.boss-figure.is-hit svg, .boss-figure.is-hit img { filter: brightness(2.4) saturate(0) sepia(1) hue-rotate(-40deg) saturate(6); }
.boss-stage.is-shaking { animation: shake .32s steps(2) both; }
@keyframes shake { 0% { transform: translate(0); } 20% { transform: translate(-7px, 3px); } 40% { transform: translate(6px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } 100% { transform: translate(0); } }
.boss-figure.is-dead svg, .boss-figure.is-dead img { animation: boss-fall 1.1s var(--ease) forwards; }
@keyframes boss-fall { 40% { transform: translateY(-4%) rotate(-4deg); } 100% { transform: translateY(16%) rotate(12deg) scale(.9); opacity: 0; filter: brightness(3) saturate(0); } }
.boss-figure.is-respawn svg, .boss-figure.is-respawn img { animation: boss-rise .9s var(--ease-pop) both; }
@keyframes boss-rise { from { transform: translateY(20%) scale(.6); opacity: 0; filter: brightness(4); } }
.boss-hint { margin-top: 18px; font: 600 .8rem var(--f-pixel); letter-spacing: .12em; color: #ffb3b3; opacity: .8; animation: hint 2s ease-in-out infinite; }
@keyframes hint { 50% { opacity: .35; } }
.dmg {
  position: absolute;
  z-index: 5;
  font: 700 1.6rem var(--f-head);
  color: #ffd84a;
  text-shadow: 2px 2px 0 #5a0008, -1px -1px 0 #5a0008;
  pointer-events: none;
  animation: dmg 0.9s var(--ease) forwards;
}
.dmg.crit { color: #ff5a5a; font-size: 2.1rem; }
@keyframes dmg { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 15% { transform: translate(-50%, -10px) scale(1.2); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx, 0px)), -90px) scale(.9); opacity: 0; } }
.loot-pop { position: absolute; z-index: 6; width: 44px; height: 44px; left: 50%; top: 50%; pointer-events: none; animation: loot-pop 1.4s var(--ease) forwards; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
@keyframes loot-pop { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(var(--rot)); opacity: 0; } }
.victory {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  font: 700 clamp(2rem, 6vw, 3.4rem) var(--f-head);
  color: var(--c-accent);
  text-shadow: 4px 4px 0 #3a1500;
  white-space: nowrap;
  animation: victory 2.4s var(--ease-pop) forwards;
  pointer-events: none;
}
@keyframes victory { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(1); opacity: 0; } }

.boss-name { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0; color: #fff; text-shadow: 4px 4px 0 #3a0008, 0 0 30px color-mix(in srgb, var(--boss) 60%, transparent); }
.boss-title { display: block; font: 700 1.3rem var(--f-pixel); color: var(--c-accent); letter-spacing: .12em; margin: 8px 0 18px; text-shadow: 2px 2px 0 #3a1500; }
.boss-kicker { color: #ff9a9a; }
.boss-text { color: #e8c9cc; font-size: 1.06rem; max-width: 560px; }
.boss-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0; }
.boss-stat { --n: 4px; padding: 12px 10px; text-align: center; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px rgba(255, 120, 120, .14); }
.boss-stat .ico { width: 28px; height: 28px; display: block; margin: 0 auto 6px; }
.boss-stat b { display: block; font: 600 .95rem/1.2 var(--f-head); color: #fff; }
.boss-stat span { font-size: .78rem; color: #c99; }
.loot-title { font: 700 .8rem var(--f-pixel); letter-spacing: .12em; text-transform: uppercase; color: #ffb3b3; margin: 0 0 10px; }
.loot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 7px; }
.slot {
  --n: 2px;
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #8B8B8B;
  box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #FFFFFF;
  transition: transform .2s var(--ease);
}
.slot-dark { background: #1d1420; box-shadow: inset 3px 3px 0 #0a050c, inset -3px -3px 0 #3a2a40; }
.slot .ico { width: 70%; height: 70%; transition: transform .25s var(--ease-pop); }
.slot:hover { transform: translateY(-3px); }
.slot:hover .ico { transform: scale(1.18) rotate(-6deg); }
.slot::after { content: ""; position: absolute; inset: 3px; background: rgba(255, 255, 255, 0); transition: background .15s; }
.slot:hover::after { background: rgba(255, 255, 255, .22); }
.slot[data-rarity="mythic"] { box-shadow: inset 3px 3px 0 #0a050c, inset -3px -3px 0 #3a2a40, 0 0 0 2px #ff4a4a, 0 0 18px rgba(255, 60, 60, .55); }
.slot[data-rarity="legendary"] { box-shadow: inset 3px 3px 0 #0a050c, inset -3px -3px 0 #3a2a40, 0 0 0 2px #ffb83a; }
.slot[data-rarity="epic"] { box-shadow: inset 3px 3px 0 #0a050c, inset -3px -3px 0 #3a2a40, 0 0 0 2px #b46bff; }
.slot[data-rarity="rare"] { box-shadow: inset 3px 3px 0 #0a050c, inset -3px -3px 0 #3a2a40, 0 0 0 2px #4fc3ff; }
.slot-chance { position: absolute; right: 4px; bottom: 2px; font: 700 .68rem var(--f-head); color: #fff; text-shadow: 1px 1px 0 #000, 2px 2px 0 #3f3f3f; }
.tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 10;
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  transform: translate(-50%, 6px);
  font: 500 .85rem/1.3 var(--f-head);
  color: #fff;
  background: #100010f0;
  box-shadow: inset 0 0 0 2px #25015b, inset 0 0 0 3px #5000ff40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s var(--ease);
}
.tip small { display: block; color: #aaa; font-size: .78rem; text-transform: capitalize; }
.tip .r-mythic { color: #ff5a5a; } .tip .r-legendary { color: #ffb83a; } .tip .r-epic { color: #c18bff; } .tip .r-rare { color: #6fd0ff; }
.slot:hover .tip, .slot:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.boss-note { margin: 14px 0 26px; font-size: .92rem; color: #d9a9ae; display: flex; gap: 10px; align-items: flex-start; }
.boss-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- features ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  padding: 24px 20px 22px;
  transition: transform .35s var(--ease), filter .35s;
}
.feature:hover { transform: translateY(-8px); filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .4)); }
.feature .slot { width: 64px; margin-bottom: 16px; }
.feature:hover .slot .ico { animation: hop .6s var(--ease-pop); }
@keyframes hop { 40% { transform: translateY(-10px) scale(1.15) rotate(-8deg); } }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--c-muted); font-size: .93rem; margin: 0; }

/* ---------- categories ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.cat-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: var(--c-text);
  transition: transform .3s var(--ease), filter .3s;
}
.cat-tile:hover { color: var(--c-text); transform: translateY(-4px); filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35)) brightness(1.1); }
.cat-tile .slot { width: 56px; flex: none; }
.cat-tile b { font: 600 1.1rem var(--f-head); display: block; }
.cat-tile span { color: var(--c-muted); font-size: .85rem; }
.cat-tile .arrow { margin-inline-start: auto; width: 20px; height: 20px; color: var(--c-primary); transition: transform .3s var(--ease); }
.cat-tile:hover .arrow { transform: translateX(6px); }

.home-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.home-description { margin-top: 40px; padding: 28px; }

/* ---------- store shell (category, package, basket, pages) ---------- */

.page-head { position: relative; padding: 54px 0 40px; overflow: hidden; }
.page-head-inner { display: flex; align-items: center; gap: 22px; }
.page-head .slot { width: 78px; flex: none; animation: intro-pop .7s var(--ease-pop) both; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 6px; text-shadow: var(--shadow-text); }
.crumbs { display: flex; gap: 8px; align-items: center; font: 500 .85rem var(--f-head); color: var(--c-muted); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary); }
.page-desc { max-width: 760px; margin-top: 18px; color: var(--c-muted); }

.shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-bottom: 90px; }
.shell.sidebar-left { grid-template-columns: 300px minmax(0, 1fr); }
.shell.sidebar-left .sidebar { order: -1; }
.shell.sidebar-below, .shell.sidebar-hidden { grid-template-columns: minmax(0, 1fr); }
.shell.sidebar-below .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.shell.sidebar-hidden .sidebar { display: none; }
.sidebar { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 18px); }

/* package cards */
.pkg-grid { display: grid; grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr)); gap: 22px; }
.shell .pkg-grid { grid-template-columns: repeat(min(var(--grid-cols), 3), minmax(0, 1fr)); }
.pkg-grid.is-list { grid-template-columns: 1fr; }
.pkg-card {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s var(--ease), filter .3s;
}
.pkg-card:hover { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); }
.pkg-card .panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.card-glow .pkg-card:hover .panel { background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(0, 0, 0, .14)) padding-box,
    var(--tex-deepslate) padding-box,
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    linear-gradient(135deg, var(--c-primary), var(--c-secondary)) border-box;
  background-size: auto, 64px 64px, auto, auto; }
.pkg-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--c-primary) 18%, transparent), transparent 70%), rgba(0, 0, 0, .25);
}
.pkg-media img { width: 72%; height: 72%; object-fit: contain; transition: transform .5s var(--ease); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .45)); }
.pkg-media img.is-photo { width: 100%; height: 100%; object-fit: cover; filter: none; }
.pkg-media .ico-xl { width: 40%; height: 40%; }
.pkg-card:hover .pkg-media img:not(.is-photo), .pkg-card:hover .pkg-media .ico-xl { transform: translateY(-8px) scale(1.06) rotate(-3deg); animation: none; }
.pkg-media .drop-item { width: 50%; height: auto; aspect-ratio: 1; }
.pkg-sale {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  padding: 5px 9px;
  font: 700 .8rem/1 var(--f-head);
  color: #fff;
  background: var(--c-boss);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .3);
  animation: wiggle 3s ease-in-out infinite;
}
.pkg-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pkg-name { font-size: 1.25rem; margin: 0; }
.pkg-name a { color: var(--c-text); }
.pkg-name a:hover { color: var(--c-primary); }
.pkg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font: 700 1.4rem var(--f-head); color: var(--c-accent); text-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.pkg-price del { font-size: .95rem; color: var(--c-muted); text-shadow: none; }
.pkg-price small { font: 500 .8rem var(--f-body); color: var(--c-muted); text-shadow: none; }
.pkg-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pkg-actions .btn { flex: 1; }
.pkg-reason { flex-basis: 100%; font-size: .82rem; color: var(--c-danger); }
.pkg-actions .is-disabled { flex-basis: 100%; }
.pkg-grid.is-list .pkg-card .panel { flex-direction: row; align-items: stretch; }
.pkg-grid.is-list .pkg-media { aspect-ratio: auto; width: 180px; flex: none; }
.pkg-grid.is-list .pkg-body { flex-direction: row; align-items: center; flex-wrap: wrap; }
.pkg-grid.is-list .pkg-actions { margin: 0 0 0 auto; flex: none; }

.card-inventory-slot .pkg-card .panel {
  background: #C6C6C6;
  border: 0;
  color: #222;
  box-shadow: inset 4px 4px 0 #fff, inset -4px -4px 0 #555;
}
.card-inventory-slot .pkg-media { margin: 12px 12px 0; background: #8B8B8B; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff; }
.card-inventory-slot .pkg-name a { color: #222; }
.card-inventory-slot .pkg-price { color: #8a5a00; text-shadow: none; }
.card-flat .pkg-card .panel { background: var(--c-surface); border-color: var(--line); box-shadow: none; }

/* rank layout in the rank category */
.rank-cat-grid { margin-top: 10px; }
.rank-cat-grid .rank-inner .pkg-media { aspect-ratio: auto; background: none; margin-bottom: 4px; }
.rank-cat-grid .rank-inner .pkg-media img { width: 140px; height: 140px; }
.rank-inner .pkg-price { justify-content: center; font-size: 2.1rem; margin: 4px 0 14px; }
.rank-inner .pkg-actions .btn { --btn: var(--ra); --btn-ink: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .35); background: linear-gradient(180deg, color-mix(in srgb, var(--ra) 60%, #fff) 0 4px, var(--ra) 4px, var(--rb) calc(100% - 5px), color-mix(in srgb, var(--rb) 55%, #000) calc(100% - 5px)); }
.rank-inner .pkg-actions .btn-success { --btn: var(--c-success); --btn-ink: #04170B; text-shadow: none; background: linear-gradient(180deg, color-mix(in srgb, var(--btn) 60%, #fff) 0 4px, var(--btn) 4px calc(100% - 5px), color-mix(in srgb, var(--btn) 55%, #000) calc(100% - 5px)); }
.rank-inner .pkg-sale { z-index: 4; }
.rank-inner .pkg-actions .btn, .btn-block { white-space: normal; text-align: center; line-height: 1.25; }
.compare .rank-badge { height: 22px; }
.compare .rank-badge-img { height: 22px; }
.module .pkg-media img { width: 60%; height: 60%; }
.module .pkg-price { font-size: 1.2rem; }

/* package detail */
.pkg-detail { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 18px); }
.gallery-main { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main .slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.gallery-main .slide.is-active { opacity: 1; transform: none; }
.gallery-main img { max-width: 78%; max-height: 78%; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .5)); animation: bob 5s ease-in-out infinite; }
.gallery-main iframe { width: 100%; height: 100%; border: 0; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; padding: 4px; border: 0; cursor: pointer; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 2px var(--line); }
.thumbs button.is-active { box-shadow: inset 0 0 0 2px var(--c-primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pkg-info { padding: 30px; }
.pkg-info h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); text-shadow: var(--shadow-text); }
.pkg-info .pkg-price { font-size: 2rem; margin: 6px 0 20px; }
.pkg-info .pkg-actions { margin: 0 0 24px; }

/* rich text (package descriptions, pages) */
.rich { color: color-mix(in srgb, var(--c-text) 88%, var(--c-muted)); }
.rich h1, .rich h2, .rich h3, .rich h4 { color: var(--c-text); margin: 1.4em 0 .5em; text-shadow: var(--shadow-text); }
.rich h2 { font-size: 1.6rem; }
.rich h3 { font-size: 1.3rem; }
.rich h4 { font-size: 1.05rem; color: var(--c-accent); }
.rich > :first-child { margin-top: 0; }
.rich ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.rich ul li { position: relative; padding-block: 8px; padding-inline: 36px 12px; background: rgba(0, 0, 0, .22); box-shadow: inset 3px 0 0 var(--c-primary); }
.rich ul li::before { content: ""; position: absolute; inset-inline-start: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); clip-path: polygon(0 40%, 40% 40%, 40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%); }
.rich ul li:has(> svg.ico:first-child) { padding-inline-start: 12px; }
.rich ul li:has(> svg.ico:first-child)::before { display: none; }
.rich ol { padding-inline-start: 1.4em; }
.rich strong, .rich b { color: var(--c-text); }
.rich a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rich img { display: block; margin: 1.2em auto; border: 3px solid var(--c-border); }
.rich img.pixel { image-rendering: pixelated; border: 0; }
.rich blockquote { margin: 1.2em 0; padding: 14px 18px; background: color-mix(in srgb, var(--c-accent) 10%, transparent); box-shadow: inset 4px 0 0 var(--c-accent); color: var(--c-text); }
.rich hr { border: 0; height: 12px; margin: 1.6em 0; background: var(--tex-grass) 0 0 / 24px 24px repeat-x; image-rendering: pixelated; }
.rich table { width: 100%; border-collapse: separate; border-spacing: 0 4px; margin: 1em 0; }
.rich th, .rich td { padding: 9px 12px; text-align: start; background: rgba(0, 0, 0, .22); }
.rich th { font-family: var(--f-head); color: var(--c-accent); }
.rich .ico { width: 1.3em; height: 1.3em; }
.rich iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* quick view modal */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 12, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal-panel { position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; transform: translateY(30px) scale(.95); opacity: 0; transition: transform .45s var(--ease-pop), opacity .3s; }
.modal-panel .pkg-detail { padding: 26px; }
.modal-panel .gallery { position: static; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; }
.modal.is-open { visibility: visible; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { transform: none; opacity: 1; }
.modal-loading { padding: 80px; text-align: center; font: 600 1rem var(--f-head); color: var(--c-muted); }
.fly { position: fixed; z-index: 140; width: 64px; height: 64px; pointer-events: none; object-fit: contain; transition: transform .75s cubic-bezier(.5, -0.3, .7, 1), opacity .75s; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }

/* ---------- basket ---------- */

.basket-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; padding-bottom: 90px; }
.basket-list { padding: 8px; }
.basket-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; padding: 14px; border-bottom: 2px solid var(--line); animation: fade-up .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.basket-row:last-child { border-bottom: 0; }
.basket-row .slot { width: 64px; }
.basket-row .slot img { width: 76%; height: 76%; object-fit: contain; }
.basket-row b { font: 600 1.08rem var(--f-head); display: block; }
.basket-row small { color: var(--c-muted); }
.basket-row .price { font: 700 1.15rem var(--f-head); color: var(--c-accent); }
.basket-row.is-removing { animation: row-out .4s var(--ease) forwards; }
@keyframes row-out { to { opacity: 0; transform: translateX(40px); } }
.summary { padding: 24px; position: sticky; top: calc(var(--header-h) + 18px); }
.summary h3 { font-size: 1.3rem; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--c-muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 18px; margin-top: 6px; border-top: 2px dashed var(--line); font: 700 1.6rem var(--f-head); color: var(--c-accent); }
.summary-total span { font-size: 1rem; color: var(--c-text); }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.coupon-list .chip a { color: var(--c-danger); display: inline-flex; }
.checkout-note { display: flex; gap: 10px; margin-top: 16px; font-size: .86rem; color: var(--c-muted); }
.empty { text-align: center; padding: 70px 20px; }
.empty-chest { width: 120px; height: 120px; margin: 0 auto 20px; position: relative; }
.empty-chest svg { width: 100%; height: 100%; animation: chest-hop 2.4s var(--ease) infinite; }
@keyframes chest-hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-14px) rotate(-4deg); } 80% { transform: translateY(0) rotate(3deg); } }

/* ---------- forms (login, options, coupons) ---------- */

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font: 600 .9rem var(--f-head); color: var(--c-muted); }
.input, select.input, textarea.input {
  width: 100%;
  padding: 12px 14px;
  font: 500 1.05rem var(--f-head);
  color: #fff;
  background: #000;
  border: 2px solid #A0A0A0;
  border-radius: 0;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 40%, transparent); }
.input::placeholder { color: #6f6f6f; }
.login { display: grid; place-items: center; padding: 60px 0 110px; }
.login-card { width: min(860px, 100%); display: grid; grid-template-columns: 300px 1fr; overflow: hidden; }
.login-skin { position: relative; display: grid; place-items: center; padding: 30px 10px 0; background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--c-primary) 22%, transparent), transparent), rgba(0, 0, 0, .25); }
.login-skin img { height: 300px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); transition: opacity .3s; animation: idle 4s ease-in-out infinite; transform-origin: 50% 100%; }
.login-skin img.is-swapping { opacity: 0; }
@keyframes idle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.2deg); } }
.login-skin .scene { height: 70px; }
.login-form { padding: 40px 36px; }
.login-form h1 { font-size: 2.2rem; text-shadow: var(--shadow-text); }
.bedrock-note { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--c-muted); margin-top: 16px; }
.options-card { width: min(640px, 100%); margin: 0 auto 100px; padding: 32px; }

/* ---------- sidebar modules ---------- */

.module { padding: 20px; }
.module-head { display: flex; align-items: center; gap: 10px; font: 700 .78rem var(--f-pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 14px; }
.module-head .ico { width: 20px; height: 20px; }
.donor { display: flex; align-items: center; gap: 14px; }
.donor img { width: 64px; height: 64px; image-rendering: pixelated; animation: bob 3s ease-in-out infinite; }
.donor b { font: 600 1.15rem var(--f-head); display: block; }
.donor span { color: var(--c-accent); font: 600 .95rem var(--f-head); }
.payments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.payments li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 6px; background: rgba(0, 0, 0, .2); animation: fade-up .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.payments img { width: 32px; height: 32px; image-rendering: pixelated; }
.payments b { font: 600 .92rem/1.2 var(--f-head); display: block; }
.payments small { color: var(--c-muted); font-size: .76rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.payments .amt { font: 600 .85rem var(--f-head); color: var(--c-accent); }
.xpbar { position: relative; height: 16px; background: #1a1a1a; box-shadow: 0 0 0 2px #000; margin: 10px 0 6px; }
.xpbar i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; max-width: 100%; background: linear-gradient(180deg, #c8ff8a 0 3px, #80FF20 3px 10px, #3f9b0b 10px); transition: width 1.4s var(--ease); }
.xpbar.is-in i { width: var(--p); }
.xpbar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5.55% - 2px), rgba(0, 0, 0, .55) calc(5.55% - 2px) 5.55%); }
.xpbar.is-animated i { background-size: 32px 100%; animation: xp-shimmer 2s linear infinite; }
@keyframes xp-shimmer { from { filter: brightness(1); } 50% { filter: brightness(1.25); } to { filter: brightness(1); } }
.xp-label { text-align: center; font: 700 1.05rem var(--f-head); color: #80FF20; text-shadow: 2px 2px 0 #000; }
.module .pkg-media { aspect-ratio: 16 / 10; margin-bottom: 12px; }
.server-status { display: flex; align-items: center; gap: 12px; }
.server-status b { font: 600 1.4rem var(--f-head); }

/* ---------- footer (the ground) ---------- */

.site-footer { position: relative; margin-top: 40px; }
.footer-grass { height: 32px; background: var(--tex-grass) 0 0 / 32px 32px repeat-x; image-rendering: pixelated; }
.footer-dirt {
  position: relative;
  padding: 50px 0 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .7)), var(--tex-dirt) 0 0 / 64px 64px;
  image-rendering: pixelated;
}
.footer-dirt > * { image-rendering: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; }
.footer-brand b { font: 700 1.4rem var(--f-head); text-shadow: var(--shadow-text); }
.site-footer h4 { font: 700 .78rem var(--f-pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #d7cbb8; display: inline-flex; gap: 8px; align-items: center; transition: color .2s, transform .2s var(--ease); }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-text { color: #c6b9a4; font-size: .9rem; }
.footer-deep {
  height: 64px;
  background: var(--tex-deep) 0 0 / 144px 144px;
  image-rendering: pixelated;
  position: relative;
}
.footer-deep::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .65)); }
.footer-bottom { padding: 14px 0; text-align: center; font-size: .8rem; color: var(--c-muted); background: #05070f; }
body.no-landscape .footer-grass { display: none; }

/* ---------- toasts (advancement style) ---------- */

.toasts { position: fixed; top: calc(var(--header-h) + 12px); inset-inline-end: 16px; z-index: 130; display: grid; gap: 10px; width: min(340px, calc(100vw - 32px)); }
.toast {
  --n: 3px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  background: #212121;
  box-shadow: inset 0 0 0 2px #555, inset 0 0 0 4px #000;
  color: #fff;
  animation: toast-in .5s var(--ease-pop) both;
}
.toast .slot { width: 44px; }
.toast b { display: block; font: 600 .95rem/1.2 var(--f-head); color: #FFFF55; }
.toast.is-error b { color: #FF5555; }
.toast.is-success b { color: #55FF55; }
.toast-text { display: block; font: 500 .88rem/1.3 var(--f-head); color: #fff; }
.toast.is-leaving { animation: toast-out .4s var(--ease) forwards; }
@keyframes toast-in { from { transform: translateX(120%); } }
@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }

/* pixel burst + confetti */
.burst { position: fixed; z-index: 160; width: 8px; height: 8px; pointer-events: none; animation: burst .8s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0; } }
.confetti { position: fixed; top: -20px; z-index: 160; width: 10px; height: 10px; pointer-events: none; animation: confetti linear forwards; }
@keyframes confetti { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }



/* ---------- rank subscriptions & upgrades ---------- */

.rank-renew { margin: 0 0 14px; text-align: center; font-size: .82rem; color: var(--c-muted); }
.rank-tagline + .rank-renew { margin-top: -12px; }
.rank-price + .rank-renew { margin-top: -14px; }
.pkg-price + .rank-renew { margin-top: -8px; }
.pkg-actions + .rank-renew { margin: 10px 0 0; }
.upgrade-note {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  max-width: 760px; margin: 34px auto 0; padding: 14px 18px;
  font: 600 1rem/1.4 var(--f-head); text-align: center;
  color: var(--c-text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c-primary) 16%, transparent), color-mix(in srgb, var(--c-purple) 16%, transparent));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c-primary) 40%, transparent);
}
.upgrade-note .ico { width: 1.6em; height: 1.6em; color: var(--c-primary); animation: drop-bob 1.6s ease-in-out infinite; }
.tier-status { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; align-items: center; padding: 18px 20px; margin-bottom: 26px; }
.tier-status .slot { width: 64px; grid-row: span 2; }
.tier-status b { font: 700 1.6rem var(--f-head); margin-inline-end: 12px; }
.tier-status .kicker { margin-bottom: 4px; }
.tier-status p { margin: 0; color: var(--c-muted); grid-column: 2; }
.ribbon.ribbon-current { top: 0; left: 50%; right: auto; width: auto; padding: 7px 16px; transform: translateX(-50%); white-space: nowrap; background: linear-gradient(90deg, #b4ffc2, var(--c-success), #3bd46a); }
[dir="rtl"] .ribbon.ribbon-current { left: 50%; transform: translateX(-50%); }
.rank-top .pkg-media + .rank-badge, .rank-top .pkg-media + .rank-badge-img { display: none; }
.rank-card.is-current { filter: drop-shadow(0 0 26px color-mix(in srgb, var(--ra) 55%, transparent)); }
.btn-downgrade { opacity: .85; }
.quote-card { width: min(680px, 100%); padding: 32px; }
.quote-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.quote-head .slot { width: 70px; flex: none; }
.quote-head h1 { font-size: 2.3rem; margin: 0; text-shadow: var(--shadow-text); }
.quote-box { margin: 18px 0 22px; padding: 18px 20px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 2px var(--line); font-size: 1.05rem; }
.quote-box strong, .quote-box b { color: var(--c-accent); }
.ico-back { transform: scaleX(-1); }
[dir="rtl"] svg.ico.ico-back { transform: none; }

/* ---------- English / Arabic ---------- */

html:not([lang="ar"]) .t-ar { display: none !important; }
html[lang="ar"] .t-en { display: none !important; }
.i18n-group { display: contents; }
[data-name], .rank-badge, .compare td, .pkg-price { unicode-bidi: isolate; }
[data-name] { unicode-bidi: plaintext; }
html[lang="ar"] {
  --f-head: var(--f-head-ar, "Lalezar"), "Cairo", system-ui, sans-serif;
  --f-body: var(--f-body-ar, "Cairo"), system-ui, sans-serif;
  --f-pixel: var(--f-body-ar, "Cairo"), system-ui, sans-serif;
}
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] .kicker, html[lang="ar"] .module-head, html[lang="ar"] .site-footer h4, html[lang="ar"] .loot-title { font-weight: 700; font-size: .9rem; }
html[lang="ar"] .hero-title { font-size: clamp(3.2rem, 9vw, 7.2rem); line-height: 1.2; }
html[lang="ar"] .hero-title .word.t-ar { --cc: var(--c-primary); animation: char-drop .9s var(--ease-pop) .15s both; color: var(--c-primary); background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 .045em 0 color-mix(in srgb, var(--c-primary) 45%, #000)) drop-shadow(.03em .06em 0 rgba(0, 0, 0, .45)); padding-bottom: .1em; }
html[lang="ar"] .hero-sub { font-size: clamp(1.2rem, 2.8vw, 2rem); }
html[lang="ar"] .section-title, html[lang="ar"] .boss-name, html[lang="ar"] .page-head h1 { line-height: 1.3; }
html[lang="ar"] .btn { font-weight: 700; padding-block: .7em .8em; }
html[lang="ar"] .mc-motd, html[lang="ar"] .mc-server-name { font-family: var(--f-body); }
.lang-btn { font: 700 1rem/1 var(--f-head); }
.lang-btn .t-en { font: 700 1.35rem/1 "Cairo", "Lalezar", system-ui, sans-serif; margin-top: -4px; }

[dir="rtl"] .drawer-panel { right: auto; left: 0; border-left: 0; border-right: 3px solid var(--c-border); transform: translateX(-100%); }
[dir="rtl"] .drawer.is-open .drawer-panel { transform: none; }
[dir="rtl"] .ribbon { right: auto; left: -50px; transform: rotate(-40deg); }
[dir="rtl"] .perk-list li { box-shadow: inset -3px 0 0 color-mix(in srgb, var(--ra) 80%, transparent); }
[dir="rtl"] .perk-list li:hover { transform: translateX(-6px); }
[dir="rtl"] .rich ul li { box-shadow: inset -3px 0 0 var(--c-primary); }
[dir="rtl"] .rich blockquote { box-shadow: inset -4px 0 0 var(--c-accent); }
[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
[dir="rtl"] svg:has(> use[href="#i-arrow"]) { transform: scaleX(-1); }
[dir="rtl"] .cat-tile:hover .arrow { transform: scaleX(-1) translateX(6px); }
[dir="rtl"] .crumbs .ico { transform: rotate(90deg) !important; }
[dir="rtl"] .toast { animation-name: toast-in-rtl; }
[dir="rtl"] .toast.is-leaving { animation-name: toast-out-rtl; }
@keyframes toast-in-rtl { from { transform: translateX(-120%); } }
@keyframes toast-out-rtl { to { transform: translateX(-120%); opacity: 0; } }
[dir="rtl"] .bossbar-fill, [dir="rtl"] .bossbar-lag { transform-origin: right; }
[dir="rtl"] .xpbar i { left: auto; right: 0; }
[dir="rtl"] .mc-motd { direction: rtl; }

/* ---------- settings debug (?wdebug=1) ---------- */

.wd-debug { position: fixed; z-index: 300; left: 12px; bottom: 12px; max-width: calc(100vw - 24px); max-height: 60vh; overflow: auto; margin: 0; padding: 12px 14px; font: 12px/1.5 ui-monospace, Menlo, monospace; color: #111; background: #fff; border: 3px solid #e0313b; white-space: pre-wrap; direction: ltr; text-align: left; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .shell { grid-template-columns: 1fr; }
  .shell.sidebar-left { grid-template-columns: 1fr; }
  .shell .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .shell.sidebar-left .sidebar { order: 2; }
  .pkg-grid { --grid-cols: 2; }
  .boss-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav, .header-tools .ip-pill, .user-chip span { display: none; }
  .menu-btn { display: inline-grid; }
  .hero { padding-top: 40px; }
  .hero-grid, .boss-grid, .pkg-detail, .basket-grid { grid-template-columns: 1fr; }
  .hero-art { height: 340px; order: -1; }
  .cube { --s: 130px; }
  .rank-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .rank-card.is-featured { transform: none; }
  .gallery, .summary { position: static; }
  .login-card { grid-template-columns: 1fr; }
  .login-skin img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 70px 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { padding: 18px 14px; }
  .pkg-grid, .shell .pkg-grid { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
  .basket-btn span:not(.basket-count) { display: none; }
  .header-tools .icon-btn.hide-sm { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.05rem; }
  .header-inner { gap: 10px; }
  .mc-server { grid-template-columns: 48px 1fr; }
  .mc-server-icon { width: 48px; height: 48px; }
  .mc-side { grid-column: 1 / -1; text-align: left; }
  .basket-row { grid-template-columns: 48px 1fr auto; }
  .basket-row .slot { width: 48px; }
  .basket-row .remove { grid-column: 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .boss-stats { grid-template-columns: 1fr 1fr; }
  .float-item { width: 46px; height: 46px; }
  .hero { padding-bottom: 150px; }
  .scene { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.reveal-on [data-reveal] { opacity: 1; transform: none; }
}
