/* RAN Online item shop â€” layout & textures (fixed-width legacy layout) */

:root {
  --bg-page: #050505;
  --stone-dark: #141414;
  --stone-mid: #232323;
  --stone-light: #2e2e2e;
  --stone-edge: #3a3a3a;
  --panel-center: #6a6a6a;
  --panel-center-deep: #555555;
  --text-white: #ffffff;
  --text-muted: #d0d0d0;
  --text-gold: #e6d18a;
  --text-gold-dim: #c9b870;
  --accent-orange: #ff9900;
  --accent-orange-deep: #cc7700;
  --parchment: #c4a574;
  --parchment-shadow: #8b6b3f;
  --border-soft: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(0, 0, 0, 0.55);
  --shell-width: 1004px;
  --col-left: 222px;
  --col-right: 216px;
  --font-ui: Tahoma, Arial, Helvetica, sans-serif;
  --page-bg-image: url("../assets/images/ran_bg.jpg");
  --header-bg-image: url("../assets/images/header-bg.png");
}

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

html {
  height: 100%;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-white);
  background-color: var(--bg-page);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  background-color: var(--bg-page);
  background-image: var(--page-bg-image);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -2;
}

/* ----- Main shell (carved stone frame) ----- */

.site-shell {
  width: var(--shell-width);
  position: relative;
  z-index: 1;
  margin: 12px auto 0;
  padding: 10px;
  border-radius: 14px 14px 4px 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(0, 0, 0, 0) 40%),
    linear-gradient(145deg, #353535 0%, #1a1a1a 55%, #0f0f0f 100%);
  border: 1px solid #1f1f1f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -2px 6px rgba(0, 0, 0, 0.65),
    0 0 0 1px #000,
    0 12px 40px rgba(0, 0, 0, 0.75);
}

.site-footer {
  margin: 0;
  padding: 58px 8px 10px;
  text-align: center;
  font-size: 10px;
  line-height: 1.55;
  color: var(--text-muted);
  text-shadow: 0 1px 1px #000;
}

.site-footer__line {
  margin: 0 0 5px;
}

.site-footer__line:last-child {
  margin-bottom: 0;
}

.site-footer__link {
  color: var(--text-gold-dim);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--text-gold);
  text-decoration: underline;
}

.site-header {
  margin: 0;
  height: 408px;
  overflow: visible;
}

/* ----- Parchment header band ----- */

.header-parchment {
  position: relative;
  padding: 14px 14px 10px;
  border-radius: 8px 8px 0 0;
  overflow: visible;
  background-color: #a67d4d;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.04) 45%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    var(--header-bg-image);
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, center center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.header-parchment::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.header-parchment__splatter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.header-parchment__splatter--left {
  left: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 0, 0, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 55% 70%, rgba(0, 0, 0, 0.18) 0%, transparent 50%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 92%);
}

.header-parchment__splatter--right {
  right: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(0, 0, 0, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 40% 75%, rgba(0, 0, 0, 0.16) 0%, transparent 50%);
  mask-image: linear-gradient(270deg, #000 0%, transparent 92%);
}

.header-art {
  position: absolute;
  bottom: 0;
  z-index: 0;
  width: 240px;
  height: 220px;
  pointer-events: none;
}

.header-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0.92;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.header-art--left {
  left: 4px;
}

.header-art--right {
  right: 4px;
}

.header-top-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-height: 320px;
  overflow: visible;
}

.header-top-spacer {
  flex: 1 1 0;
  min-width: 0;
  min-height: 1px;
}

/* ----- Logo ----- */

.brand-block {
  flex: 0 0 288px;
  padding-top: 4px;
}

.brand-block--header-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  text-align: center;
}

/* Logo: no frame â€” sits on header-bg; use a PNG with transparency for clear edges */
.brand-logo-wrap {
  position: relative;
  z-index: 1;
  display: block;
  width: 644px;
  height: 276px;
  text-decoration: none;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.slot-img--logo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border: none;
  box-shadow: none;
  vertical-align: top;
}

.brand-block--header-center .brand-url {
  align-self: center;
  width: 100%;
  margin: -78px 0 0;
}

.brand-url {
  position: relative;
  z-index: 2;
  margin: -78px 0 0;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

/* ----- Video ----- */

.video-player {
  flex: 1 1 auto;
  max-width: 520px;
  margin: 0 auto;
  align-self: flex-start;
  border: 2px solid #0a0a0a;
  border-radius: 2px;
  background: #000;
  box-shadow:
    inset 0 0 0 1px #333,
    0 4px 14px rgba(0, 0, 0, 0.85);
}

.video-screen {
  position: relative;
  height: 236px;
  background: radial-gradient(circle at 50% 45%, #1a1a1a 0%, #000 70%);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -12px 0 0 -7px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
}

.video-player.is-playing .video-play::after {
  border: 0;
  width: 18px;
  height: 22px;
  margin: -11px 0 0 -9px;
  background: repeating-linear-gradient(
    90deg,
    #fff 0 6px,
    transparent 6px 12px
  );
}

.video-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  background: linear-gradient(180deg, #2c2c2c 0%, #101010 100%);
  border-top: 1px solid #000;
}

.video-ctl--play {
  width: 14px;
  height: 14px;
  border: 0;
  padding: 0;
  background: conic-gradient(#ddd 25%, #444 0 50%, #ddd 0 75%, #444 0);
  border-radius: 2px;
}

.video-time {
  font-size: 11px;
  color: #ccc;
  white-space: nowrap;
}

.video-track {
  flex: 1;
  height: 8px;
  border-radius: 2px;
  background: #111;
  box-shadow: inset 0 1px 2px #000;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(180deg, #6a9fff 0%, #2a5fcc 100%);
}

.video-volume {
  width: 52px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4a7ac8 0%, #4a7ac8 55%, #222 55%, #222 100%);
  box-shadow: inset 0 1px 1px #000;
}

/* ----- Main nav: backing plate + invisible hit areas ----- */

.main-nav {
  position: relative;
  width: 980px;
  height: 120px;
  margin: 0 auto;
  overflow: visible;
}

.main-nav__backing {
  position: absolute;
  left: 48.5%;
  top: 0;
  transform: translateX(-50%)translateY(-17.80px);
  width: 980px;
  height: 90px;
  box-sizing: border-box;
  background-color: transparent;
  background-image: url("../assets/images/nav-backing-plate.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  z-index: 1;
  pointer-events: none;
}

.main-nav__list {
  position: relative;
  width: 100%;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.main-nav__list > li {
  position: absolute;
  margin: 0;
  padding: 0;
  transform: translateY(-17px);
}

.main-nav__list > li:nth-child(1) {
  left: 80px;
  top: 20px;
  transform: translate(15px, -17px);
}

.main-nav__list > li:nth-child(2) {
  left: 240px;
  top: 15px;
  transform: translate(15px, -17px);
}

.main-nav__list > li:nth-child(3) {
  left: 400px;
  top: 10px;
  transform: translateY(-17px);
}

.main-nav__list > li:nth-child(4) {
  left: 560px;
  top: 15px;
  transform: translate(-15px, -17px);
}

.main-nav__list > li:nth-child(5) {
  left: 720px;
  top: 20px;
  transform: translate(-15px, -17px);
}

.nav-btn {
  position: relative;
  display: block;
  width: 140px;
  height: 60px;
  margin: 0;
  background: transparent;
  border: none;
  outline: none;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
}

.nav-btn:hover {
  filter: brightness(1.2);
  cursor: pointer;
}

.nav-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88%;
  height: 88%;
  transform: translate(-50%, -52%);
  pointer-events: none;
  opacity: 0;
  background-image: url("../assets/images/ui/claw.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.12s ease;
}

.nav-btn:hover::after,
.nav-btn:focus-visible::after {
  opacity: 1;
}

.nav-btn__inner {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-img {
  display: none;
}

.nav-claw-wrap {
  display: none;
}

/* ----- Body frame ----- */

.body-frame {
  margin-top: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.08) 18%, rgba(0, 0, 0, 0.22) 100%);
  border: 1px solid #000;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.body-columns {
  display: grid;
  grid-template-columns: var(--col-left) 1fr var(--col-right);
  align-items: stretch;
  min-height: 640px;
}

/* Home, Downloads, Top-Up, Guide & Item Shop: main + right sidebar (no left column) */
body.is-home .body-columns,
body.is-downloads .body-columns,
body.is-topup .body-columns,
body.is-guide .body-columns,
body.is-shop .body-columns {
  grid-template-columns: 1fr var(--col-right);
}

body.is-home .col--left,
body.is-downloads .col--left,
body.is-topup .col--left,
body.is-guide .col--left,
body.is-shop .col--left {
  display: none;
}

body.is-home .panel-shop,
body.is-home .panel-downloads,
body.is-home .panel-topup,
body.is-home .panel-guide {
  display: none;
}

body.is-shop .panel-home,
body.is-shop .panel-downloads,
body.is-shop .panel-topup,
body.is-shop .panel-guide {
  display: none;
}

body.is-downloads .panel-home,
body.is-downloads .panel-shop,
body.is-downloads .panel-topup,
body.is-downloads .panel-guide {
  display: none;
}

body.is-topup .panel-home,
body.is-topup .panel-shop,
body.is-topup .panel-downloads,
body.is-topup .panel-guide {
  display: none;
}

body.is-guide .panel-home,
body.is-guide .panel-shop,
body.is-guide .panel-downloads,
body.is-guide .panel-topup {
  display: none;
}

body.is-home .widget--top10,
body.is-downloads .widget--top10,
body.is-topup .widget--top10,
body.is-guide .widget--top10 {
  display: none;
}

.widget--social {
  display: none;
}

body.is-home .widget--social,
body.is-downloads .widget--social,
body.is-topup .widget--social,
body.is-guide .widget--social {
  display: block;
}

body.is-home .main-panel,
body.is-downloads .main-panel,
body.is-topup .main-panel,
body.is-guide .main-panel,
body.is-shop .main-panel {
  min-height: 520px;
}

.col {
  position: relative;
}

/* ----- Sidebars ----- */

.sidebar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(32, 32, 32, 0.88) 0%, rgba(18, 18, 18, 0.9) 100%);
  border-right: 1px solid #0d0d0d;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.sidebar--right {
  border-right: none;
  border-left: 1px solid #0d0d0d;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.03);
}

.sidebar__stack {
  flex: 0 0 auto;
  padding: 8px 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    linear-gradient(180deg, #242424 0%, #181818 100%);
  border-top: 1px solid var(--border-soft);
}

/* Alternative stone fill â€” replaces broken white areas; seamless with sidebar */

.sidebar__stone-fill {
  position: relative;
  flex: 1 1 auto;
  min-height: 140px;
  margin-top: auto;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 0 1px,
      rgba(0, 0, 0, 0) 1px 3px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.12) 0 1px,
      rgba(255, 255, 255, 0.02) 1px 2px
    ),
    linear-gradient(165deg, #1c1c1c 0%, #121212 55%, #0c0c0c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.45);
}

.sidebar__stone-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.sidebar__stone-fill--left {
  border-radius: 0 0 0 2px;
}

.sidebar__stone-fill--right {
  border-radius: 0 0 2px 0;
}

/* ----- Left: headgear panel ----- */

.panel--headgear {
  margin: 10px 8px 0;
  padding: 8px 8px 10px;
  background:
    linear-gradient(180deg, #2f2f2f 0%, #181818 100%);
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.panel--headgear__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #ff6a00;
  text-shadow: 0 1px 2px #000;
}

.panel--headgear__sub {
  margin: 2px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffb24a;
}

.headgear-icons {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.thumb-square {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 1px solid #111;
  background: linear-gradient(145deg, #3a3a3a, #1e1e1e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.slot-img--tiny {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-logout {
  display: block;
  margin: 0 auto 10px;
  padding: 5px 18px;
  max-width: 160px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #ddd;
  text-decoration: none;
  background: linear-gradient(180deg, #3a3a3a 0%, #222 100%);
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-logout:hover {
  filter: brightness(1.1);
}

.side-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-menu__list li {
  margin: 0;
  padding: 2px 0;
}

.side-menu__list a {
  font-size: 11px;
  color: var(--text-gold);
  text-decoration: none;
  text-shadow: 0 1px 1px #000;
}

.side-menu__list a:hover {
  color: #fff6c2;
}

.side-menu__list a.is-active {
  color: #fff566;
}

.side-menu__indent {
  padding-left: 10px !important;
}

/* ----- Center column ----- */

.main-panel {
  padding: 10px 14px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 14%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(110, 110, 110, 0.82) 0%, rgba(86, 86, 86, 0.88) 12%, rgba(74, 74, 74, 0.9) 92%, rgba(58, 58, 58, 0.92) 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.35);
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Nav fade applies only to inner content; .main-panel stays opaque so page bg never shows through */
.main-panel__fade-target {
  position: relative;
  z-index: 0;
  min-height: 0;
  transition: opacity 0.22s ease;
  opacity: 1;
}

.main-panel__fade-target.main-panel--nav-fade {
  opacity: 0;
  pointer-events: none;
}

/* ----- Home panel (attention photo + server info) ----- */

.panel-home {
  padding-bottom: 8px;
}

.home-attention-photo {
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #2f2f2f 0%, #181818 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.45);
}

.home-attention-photo__img {
  display: block;
  width: 100%;
  max-height: 220px;
  min-height: 120px;
  object-fit: contain;
  background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 100%);
  border: 1px solid #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-attention-photo__video {
  display: block;
  width: 100%;
  max-height: 220px;
  min-height: 120px;
  height: 100%;
  object-fit: cover;
  background: #000;
  border: 1px solid #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-info-box {
  margin-top: 0;
  border: 1px solid #0a0a0a;
  border-radius: 6px 6px 2px 2px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.home-info-box__cap {
  margin: 0;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(180deg, #4a4a4a 0%, #2c2c2c 100%);
  border-bottom: 1px solid #000;
  border-radius: 5px 5px 0 0;
}

.home-info-box__body {
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
}

.home-info-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text-gold);
  text-shadow: 0 1px 1px #000;
}

.home-info-list li {
  margin: 0 0 5px;
}

.home-info-list li:last-child {
  margin-bottom: 0;
}

.home-info-box__divider {
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffb24a;
  text-shadow: 0 1px 2px #000;
}

.home-info-list--deny {
  color: #e8a090;
}

/* Home panel: About RAN Online Portal (same interaction pattern as Manual Patch / Guide accordions) */

.panel-home .home-portal {
  margin-top: 12px;
}

.home-portal__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f5e6c8;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  cursor: pointer;
  background: linear-gradient(165deg, #9a6a32 0%, #6b4218 42%, #3d260a 100%);
  border: 1px solid #2a1406;
  border-radius: 4px 4px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.18),
    0 2px 5px rgba(0, 0, 0, 0.5);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.home-portal__chevron::before {
  content: "\25bc";
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  opacity: 0.95;
}

.home-portal--open .home-portal__chevron::before {
  content: "\25b2";
}

.home-portal__toggle:hover {
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 200, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(255, 150, 60, 0.22);
}

.home-portal__toggle:active {
  filter: brightness(0.92);
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-portal__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease, opacity 0.22s ease;
  opacity: 0;
  pointer-events: none;
}

.home-portal--open .home-portal__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.home-portal__inner {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #0a0a0a;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.home-portal__body {
  padding: 12px 14px 14px;
}

.home-portal__body p {
  margin: 0 0 11px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-muted);
  text-shadow: 0 1px 1px #000;
}

.home-portal__body p:last-child {
  margin-bottom: 0;
}

/* ----- Item Shop: in-game only (maintenance notice) ----- */

.panel-shop {
  padding-bottom: 8px;
}

.shop-maintenance {
  margin-top: 0;
  border: 1px solid #0a0a0a;
  border-radius: 6px 6px 2px 2px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.shop-maintenance__cap {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(180deg, #4a4a4a 0%, #2c2c2c 100%);
  border-bottom: 1px solid #000;
  border-radius: 5px 5px 0 0;
}

.shop-maintenance__body {
  padding: 14px 16px 16px;
  text-align: center;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
}

.shop-maintenance__body p {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  text-shadow: 0 1px 1px #000;
}

.shop-maintenance__lead {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-gold);
}

.shop-maintenance__steps {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 0 0 0 20px;
  text-align: left;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-gold);
  text-shadow: 0 1px 1px #000;
}

.shop-maintenance__steps li {
  margin: 0 0 4px;
}

.shop-maintenance__highlight {
  margin: 4px auto 12px;
  padding: 8px 14px;
  max-width: 320px;
  transform: translateX(190px);
  font-size: 12px;
  font-weight: 800;
  color: #fff6c2;
  text-shadow: 0 1px 2px #000;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  background: linear-gradient(180deg, #3a3530 0%, #1f1c18 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: shopMaintenanceHighlightBreath 2.6s ease-in-out infinite;
}

@keyframes shopMaintenanceHighlightBreath {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 0 6px rgba(255, 255, 255, 0.06);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 14px rgba(255, 255, 255, 0.12);
  }
}

.shop-maintenance__kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-ui);
  color: #222;
  vertical-align: middle;
  background: linear-gradient(180deg, #e8e8e8 0%, #b0b0b0 100%);
  border: 1px solid #333;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.shop-maintenance__note {
  font-size: 10px;
  line-height: 1.45;
  color: #b8b8b8;
}

.shop-maintenance__soon {
  margin-bottom: 0 !important;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-orange);
}

/* ----- Downloads panel ----- */

.panel-downloads {
  padding-bottom: 12px;
}

.downloads-hero {
  margin-bottom: 16px;
  padding: 10px 12px 12px;
  text-align: center;
  border: 1px solid #0a0a0a;
  border-radius: 6px 6px 2px 2px;
  background: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.downloads-hero__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-gold);
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(230, 209, 138, 0.25);
}

.downloads-hero__sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  text-shadow: 0 1px 1px #000;
}

.downloads-video {
  margin-bottom: 18px;
}

.downloads-video__title {
  margin: 0 0 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(180deg, #4a4a4a 0%, #2c2c2c 100%);
  border: 1px solid #0a0a0a;
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.downloads-video__frame {
  padding: 6px;
  border: 1px solid #0a0a0a;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background:
    linear-gradient(180deg, #2f2f2f 0%, #181818 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 3px 8px rgba(0, 0, 0, 0.5);
}

.downloads-video__el {
  display: block;
  width: 100%;
  max-height: 380px;
  vertical-align: middle;
  background: #0a0a0a;
  border: 1px solid #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.downloads-links {
  margin-bottom: 14px;
}

.downloads-links__title {
  margin: 0 0 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(180deg, #4a4a4a 0%, #2c2c2c 100%);
  border: 1px solid #0a0a0a;
  border-radius: 5px 5px 0 0;
}

.downloads-links__list {
  margin: 0;
  padding: 12px 14px 14px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid #0a0a0a;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.download-btn {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  color: #f5e6c8;
  text-shadow: 0 1px 2px #000;
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.45);
  background: linear-gradient(165deg, #3a3a3a 0%, #1e1e1e 55%, #121212 100%);
}

.download-btn:hover {
  color: #fff;
  filter: brightness(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.55);
}

.download-btn--mediafire {
  border-color: #1a3a5c;
  background: linear-gradient(165deg, #2a4a6a 0%, #152838 50%, #0f1820 100%);
}

.download-btn--gdrive {
  border-color: #2a3a2a;
  background: linear-gradient(165deg, #2a4a3a 0%, #183028 50%, #0f1814 100%);
}

.download-btn--mega {
  border-color: #4a2a2a;
  background: linear-gradient(165deg, #5a2a2a 0%, #381818 50%, #1a0c0c 100%);
}

.downloads-note {
  margin-top: 4px;
  padding: 10px 14px 12px;
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 180, 100, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #222 0%, #161616 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.downloads-note__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
  text-shadow: 0 1px 2px #000;
}

.downloads-note__list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-gold-dim);
  text-shadow: 0 1px 1px #000;
}

.downloads-note__list li {
  margin: 0 0 4px;
}

.downloads-note__list li:last-child {
  margin-bottom: 0;
}

/* ----- Downloads: manual patch (expandable) ----- */

.downloads-manual {
  margin-top: 12px;
}

.downloads-manual__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f5e6c8;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  cursor: pointer;
  background: linear-gradient(165deg, #9a6a32 0%, #6b4218 42%, #3d260a 100%);
  border: 1px solid #2a1406;
  border-radius: 4px 4px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.18),
    0 2px 5px rgba(0, 0, 0, 0.5);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.downloads-manual__chevron::before {
  content: "\25bc";
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  opacity: 0.95;
}

.downloads-manual--open .downloads-manual__chevron::before {
  content: "\25b2";
}

.downloads-manual__toggle:hover {
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 200, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(255, 150, 60, 0.22);
}

.downloads-manual__toggle:active {
  filter: brightness(0.92);
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.downloads-manual__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease, opacity 0.22s ease;
  opacity: 0;
  pointer-events: none;
}

.downloads-manual--open .downloads-manual__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.downloads-manual__inner {
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px 14px;
  border: 1px solid #0a0a0a;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.downloads-manual__download {
  margin-bottom: 0;
}

.downloads-manual__video-wrap {
  margin: 12px 0;
  padding: 6px;
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #2f2f2f 0%, #181818 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.45);
}

.downloads-manual__video {
  display: block;
  width: 100%;
  max-height: 380px;
  background: #0a0a0a;
  border: 1px solid #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.downloads-manual__notes {
  margin-top: 4px;
  padding: 10px 12px 10px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.downloads-manual__notes-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
  text-shadow: 0 1px 2px #000;
}

.downloads-manual__notes-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-gold-dim);
  text-shadow: 0 1px 1px #000;
}

.downloads-manual__notes-list li {
  margin: 0 0 4px;
}

.downloads-manual__notes-list li:last-child {
  margin-bottom: 0;
}

/* ----- Guide panel ----- */

.panel-guide {
  padding-bottom: 12px;
}

.guide-hero {
  margin-bottom: 16px;
  padding: 10px 12px 12px;
  text-align: center;
  border: 1px solid #0a0a0a;
  border-radius: 6px 6px 2px 2px;
  background: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.guide-hero__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-gold);
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(230, 209, 138, 0.25);
}

.guide-hero__sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  text-shadow: 0 1px 1px #000;
}

.guide-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-reg__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f5e6c8;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  cursor: pointer;
  background: linear-gradient(165deg, #9a6a32 0%, #6b4218 42%, #3d260a 100%);
  border: 1px solid #2a1406;
  border-radius: 4px 4px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.18),
    0 2px 5px rgba(0, 0, 0, 0.5);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.guide-reg__chevron::before {
  content: "\25bc";
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  opacity: 0.95;
}

.guide-reg--open .guide-reg__chevron::before {
  content: "\25b2";
}

.guide-reg__toggle:hover {
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 200, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(255, 150, 60, 0.22);
}

.guide-reg__toggle:active {
  filter: brightness(0.92);
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.guide-reg__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease, opacity 0.22s ease;
  opacity: 0;
  pointer-events: none;
}

.guide-reg--open .guide-reg__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.guide-reg__inner {
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px 14px;
  border: 1px solid #0a0a0a;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.guide-reg__steps {
  margin: 0;
  padding: 0 0 0 22px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-gold);
  text-shadow: 0 1px 1px #000;
}

.guide-reg__steps li {
  margin: 0 0 6px;
}

.guide-reg__steps li:last-child {
  margin-bottom: 0;
}

.guide-reg__figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 14px;
  justify-items: center;
}

.guide-reg__figure {
  margin: 0;
  max-width: 508px;
  width: 100%;
}

.guide-reg__img {
  display: block;
  width: 100%;
  max-width: 508px;
  height: auto;
  border: 1px solid #111;
  border-radius: 4px;
  background: #0a0a0a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.45);
}

.guide-external__link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  color: #f5e6c8;
  text-shadow: 0 1px 2px #000;
  cursor: pointer;
  background: linear-gradient(165deg, #9a6a32 0%, #6b4218 42%, #3d260a 100%);
  border: 1px solid #2a1406;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.18),
    0 2px 5px rgba(0, 0, 0, 0.5);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.guide-external__link:hover {
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 200, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(255, 150, 60, 0.22);
}

.guide-external__link:active {
  filter: brightness(0.92);
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.guide-external__hint {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

/* ----- Top-Up panel ----- */

.panel-topup {
  padding-bottom: 12px;
}

.topup-hero {
  margin-bottom: 16px;
  padding: 10px 12px 12px;
  text-align: center;
  border: 1px solid #0a0a0a;
  border-radius: 6px 6px 2px 2px;
  background: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.topup-hero__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-gold);
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(230, 209, 138, 0.25);
}

.topup-hero__sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  text-shadow: 0 1px 1px #000;
}

.topup-qr {
  margin-bottom: 16px;
}

.topup-qr__frame {
  display: flex;
  justify-content: center;
  padding: 16px 14px 18px;
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #2f2f2f 0%, #181818 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 3px 8px rgba(0, 0, 0, 0.5);
}

.topup-qr__img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid #111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.45);
}

.topup-guide {
  margin-top: 4px;
  padding: 10px 14px 12px;
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 180, 100, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #222 0%, #161616 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topup-guide__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
  text-shadow: 0 1px 2px #000;
}

.topup-guide__list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-gold-dim);
  text-shadow: 0 1px 1px #000;
}

.topup-guide__list li {
  margin: 0 0 4px;
}

.topup-guide__list li:last-child {
  margin-bottom: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #9a9a9a 0%, #7a7a7a 100%);
  border: 1px solid #4a4a4a;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.search-bar__input {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #555;
  border-radius: 2px;
  background: #fff;
}

.search-bar__select {
  padding: 3px 6px;
  font-size: 12px;
  border: 1px solid #555;
  border-radius: 2px;
  background: #eee;
}

.search-bar__btn {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
  background: linear-gradient(180deg, #e8e8e8 0%, #b8b8b8 100%);
  border: 1px solid #666;
  border-radius: 2px;
}

.category-heading {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.shop-item {
  padding: 8px 10px 10px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.shop-item__icon {
  float: left;
  width: 150px;
  height: 150px;
  margin: 0 12px 8px 0;
  border: 1px solid #2a2a2a;
  background:
    linear-gradient(145deg, #8cb8ff 0%, #4a78c8 40%, #2a4a88 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.shop-item:nth-child(even) .shop-item__icon {
  background:
    linear-gradient(145deg, #f2f2f2 0%, #d8d8d8 45%, #b0b0b0 100%);
}

.shop-item::after {
  content: "";
  display: block;
  clear: both;
}

.slot-img--item {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.shop-item__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-orange);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.shop-item__meta {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.shop-item__meta dt {
  clear: left;
  float: left;
  width: 78px;
  margin: 0;
  padding: 1px 0;
  font-weight: 700;
  color: #fff;
}

.shop-item__meta dd {
  margin: 0 0 0 78px;
  padding: 1px 0;
}

.shop-item__meta .price {
  color: var(--accent-orange);
  font-weight: 800;
}

/* ----- Right column widgets ----- */

.sidebar--right {
  padding: 10px 8px 0;
  gap: 0;
}

.sidebar--right .promo-banner,
.sidebar--right .widget {
  flex-shrink: 0;
}

.promo-banner {
  position: relative;
  margin-bottom: 10px;
  border: 1px solid #111;
  border-radius: 3px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.slot-img--banner {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: linear-gradient(135deg, #2a1a40 0%, #0d0d18 100%);
}

.promo-banner__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px #000;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
}

.widget {
  margin-bottom: 10px;
  border: 1px solid #0a0a0a;
  border-radius: 6px 6px 2px 2px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.widget__cap {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(180deg, #4a4a4a 0%, #2c2c2c 100%);
  border-bottom: 1px solid #000;
  border-radius: 5px 5px 0 0;
}

.widget__subcap {
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ccc;
  text-align: center;
  background: #222;
  border-bottom: 1px solid #0d0d0d;
}

.widget__body {
  padding: 8px;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
}

.widget__body--contact {
  text-align: center;
}

.widget__body--social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
}

.social-link {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 0;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.social-link__icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.social-link:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.ask-live {
  position: relative;
  margin-bottom: 8px;
}

.slot-img--ask {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
  border: 1px solid #333;
  background: #2a2a2a;
}

.ask-live__banner {
  position: absolute;
  left: 8px;
  bottom: 8px;
  margin: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: rgba(180, 40, 40, 0.92);
  border: 1px solid #000;
  border-radius: 2px;
  cursor: pointer;
}

.ask-live__banner:hover {
  filter: brightness(1.08);
}

.link-live {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #8ec0ff;
  text-decoration: underline;
}

.widget--top10 .top10 {
  margin: 0;
  padding: 8px 12px 10px;
  list-style: none;
  counter-reset: top10;
  border-top: 1px solid #0d0d0d;
  border-left: 1px dashed rgba(255, 255, 255, 0.14);
  border-right: 1px dashed rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
}

.widget--top10 .top10 li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0;
  font-size: 11px;
  color: #eee;
}

.widget--top10 .top10 li:last-child {
  margin-bottom: 0;
}

.top10__icon {
  flex: 0 0 40px;
  height: 40px;
  border: 1px solid #333;
  background: linear-gradient(145deg, #3a3a3a, #1e1e1e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.widget--top10 .slot-img--top {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.top10__name {
  flex: 1;
  line-height: 1.25;
}

/* ----- Sidebar player rankings (from RANKINGS_DB) ----- */

.rankings-list-wrap {
  margin: 0;
  border-top: 1px solid #0d0d0d;
  border-left: 1px dashed rgba(255, 255, 255, 0.14);
  border-right: 1px dashed rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
}

.rankings-list__head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: center;
  padding: 6px 10px 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #8a8a8a;
  text-transform: uppercase;
  border-bottom: 1px solid #0d0d0d;
}

.rankings-list__head-cell--rank {
  text-align: center;
}

.rankings-list__head-cell--name {
  min-width: 0;
}

.rankings-list__head-cell--score {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.widget--rankings .rankings-list {
  margin: 0;
  padding: 6px 10px 10px;
  list-style: none;
}

.rankings-list__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: center;
  margin: 0 0 6px;
  padding: 0;
  font-size: 11px;
  color: #eee;
}

.rankings-list__item:last-child {
  margin-bottom: 0;
}

.rankings-list__rank {
  font-weight: 800;
  color: #c9a227;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  font-variant-numeric: tabular-nums;
}

.rankings-list__name {
  min-width: 0;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-list__pvp {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #8ec0ff;
  text-align: right;
  white-space: nowrap;
}

/* ----- Image slots (transparent until you drop assets) ----- */

.slot-img {
  vertical-align: middle;
}


html,
body {
  cursor: url("../assets/images/cursors/normal.cur"), auto;
}

/* Attack cursor */
a,
button,
.nav-btn,
.home-portal__toggle,
.download-btn,
.guide-reg__toggle,
.downloads-manual__toggle {
  cursor: url("../assets/images/cursors/attack.cur"), pointer;
}

/* Scroll cursor */
.scroll-area {
  cursor: url("../assets/images/cursors/scroll.cur"), auto;
}

.nav-btn,
.home-portal__toggle,
.downloads-manual__toggle,
.guide-reg__toggle,
.download-btn,
.search-bar__btn,
.ask-live__banner,
.video-play {
  cursor: url("../assets/images/cursors/attack.cur"), auto !important;
}

#snow-effect {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ----- Live Player Rankings Status ----- */
/* Author: Marckies */
/* Date: 2026-09-26 */
.widget__cap--rankings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rankings-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #e22;
  white-space: nowrap;
}

.rankings-live__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e22;
  box-shadow: 0 0 4px rgba(255, 0, 0, 0.75);
  animation: rankingsLivePulse 1.4s ease-in-out infinite;
}

@keyframes rankingsLivePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.75);
  }

  50% {
    opacity: 0.45;
    box-shadow: 0 0 7px rgba(255, 0, 0, 0.95);
  }
}

.rankings-page__cap-date{
    color:#cfcfcf;
    font-size:10px;
    font-weight:700;
    white-space:nowrap;
}

.rankings-page__table th:nth-child(5),
.rankings-page__table td:nth-child(5){
    width:180px;
    text-align:center;
}


body.is-rankings .body-columns {
  grid-template-columns: 1fr var(--col-right);
}

body.is-rankings .col--left {
  display: none;
}

body.is-rankings .panel-home,
body.is-rankings .panel-downloads,
body.is-rankings .panel-topup,
body.is-rankings .panel-guide,
body.is-rankings .panel-shop {
  display: none;
}

body:not(.is-rankings) .panel-rankings {
  display: none;
}

body.is-rankings .main-panel {
  min-height: 520px;
}

body.is-rankings .widget--top10 {
  display: none;
}

.panel-rankings {
  display: block;
}

.rankings-page__hero {
  margin-bottom: 14px;
  padding: 14px;
  text-align: center;
  border: 1px solid #0a0a0a;
  border-radius: 6px 6px 2px 2px;
  background: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0,0,0,.45);
}

.rankings-page__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--text-gold);
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(230,209,138,.25);
}

.rankings-page__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.rankings-page__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding: 4px 9px;
  border: 1px solid #333;
  border-radius: 3px;
  background: #111;
  color: #aaa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rankings-page__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777;
  box-shadow: none;
  animation: none;
}

.rankings-page__status.is-error {
  color: #aaa;
}

.rankings-page__status.is-error .rankings-page__status-dot {
  background: #777;
  box-shadow: none;
  animation: none;
}

.rankings-page__status:not(.is-error) {
  color: #ff3b3b;
}

.rankings-page__status:not(.is-error) .rankings-page__status-dot {
  background: #ff3b3b;
  box-shadow: 0 0 5px rgba(255, 59, 59, 0.75);
  animation: rpulse 1.4s ease-in-out infinite;
}

@keyframes rpulse {
  0%,100% { opacity: 1; }
  50% { opacity: .45; }
}

.rankings-page__table-wrap {
  overflow: hidden;
  border: 1px solid #0a0a0a;
  border-radius: 6px 6px 2px 2px;
  background: #141414;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}

.rankings-page__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rankings-page__table th {
  padding: 9px 10px;
  background: linear-gradient(180deg,#4a4a4a 0%,#2c2c2c 100%);
  border-bottom: 1px solid #000;
  color: #d0d0d0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000;
}

.rankings-page__table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #eee;
  font-size: 11px;
  background: linear-gradient(180deg,#1f1f1f 0%,#141414 100%);
}

.rankings-page__table tr:last-child td {
  border-bottom: 0;
}

.rankings-page__table tbody tr:hover td {
  background: #292929;
}

.rankings-page__table th:first-child,
.rankings-page__table td:first-child {
  width: 70px;
  text-align: center;
}

.rankings-page__table th:nth-child(3),
.rankings-page__table td:nth-child(3) {
  width: 180px;
  text-align: left;
}

.rankings-page__table th:nth-child(4),
.rankings-page__table td:nth-child(4) {
  width: 90px;
  text-align: center;
}

.rankings-page__table th:nth-child(5),
.rankings-page__table td:nth-child(5) {
  width: 180px;
  text-align: center;
}

.rankings-page__rank {
  color: #c9a227;
  font-weight: 800;
}

.rankings-page__name {
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-page__school {
  color: #bdbdbd;
  font-weight: 700;
}

.rankings-page__school-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.rankings-page__school-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  flex: 0 0 30px;
}

.rankings-page__school-name {
  font-weight: 700;
  white-space: nowrap;
}

.rankings-page__level {
  color: var(--text-gold);
  font-weight: 800;
}

.rankings-page__cap-date {
  color: #cfcfcf;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.rankings-page__footer {
  margin-top: 10px;
  padding: 8px;
  text-align: center;
  color: #888;
  font-size: 9px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 3px;
}


/* ----- Server Stats ----- */
.widget--server-stats {
  margin-bottom: 10px;
}

.server-stats {
  padding: 5px 8px 7px;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
}

.server-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 25px;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-stat:last-child {
  border-bottom: 0;
}

.server-stat__label {
  min-width: 0;
  color: #bdbdbd;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.server-stat__value {
  color: var(--text-gold);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.server-stat__value--status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #6fd37a;
}

.server-stat__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #35b84a;
  box-shadow: 0 0 5px rgba(53, 184, 74, 0.75);
  animation: serverStatsPulse 1.4s ease-in-out infinite;
}

.server-stat__value--status.is-offline {
  color: #aaa;
}

.server-stat__value--status.is-offline .server-stat__dot {
  background: #777;
  box-shadow: none;
  animation: none;
}

@keyframes serverStatsPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
