/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/
/* ===== Hero: Discord button + text alignment ===== */
@media (min-width: 768px) {
  .hero.alignment-left .content p { margin-left: 0; margin-right: 0; }
  .hero.alignment-right .content p { margin-left: auto; margin-right: 0; }
}
.hero .content .hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; justify-content: center; }
.hero .content .hero-buttons a { margin-bottom: 0; }
@media (min-width: 768px) {
  .hero.alignment-left .content .hero-buttons { justify-content: flex-start; }
  .hero.alignment-right .content .hero-buttons { justify-content: flex-end; }
}

/* ===== Hero: 3D cape carousel (cape only, CSS 3D) ===== */
.hero .hero-cape-3d {
  --u: 20px;                      /* size of one cape pixel */
  --t: calc(var(--u) * 1);        /* cape thickness (1 cape pixel, like in-game) */
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
@media (min-width: 1200px) { .hero .hero-cape-3d { --u: 26px; } }
@media (max-width: 575px)  { .hero .hero-cape-3d { --u: 15px; } }
.hero .hero-cape-3d .cape-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: calc(var(--u) * 17); height: calc(var(--u) * 20);
}
.hero .hero-cape-3d .cape-scene {
  perspective: calc(var(--u) * 50);
  cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  width: calc(var(--u) * 10); height: calc(var(--u) * 16);
}
.hero .hero-cape-3d .cape-scene:active { cursor: grabbing; }
.hero .hero-cape-3d .cape-hover {
  width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.hero .hero-cape-3d .cape-scene:hover .cape-hover { transform: scale(1.08); }
.hero .hero-cape-3d .cape-box {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: opacity .2s ease;
}
.hero .hero-cape-3d .cape-box.is-switching { opacity: 0; }
.hero .hero-cape-3d .cape-face {
  position: absolute; left: 50%; top: 50%;
  background-size: calc(var(--u) * 64) calc(var(--u) * 32);
  background-position: calc(var(--u) * var(--bx, 0) * -1) calc(var(--u) * var(--by, 0) * -1);
  background-repeat: no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  outline: 1px solid transparent;   /* smoother edges in Chrome */
}
.hero .hero-cape-3d .cape-face::after {
  content: ""; position: absolute; inset: 0; background: #000; opacity: var(--s, 0);
}
.hero .hero-cape-3d .f-front,
.hero .hero-cape-3d .f-back {
  width: calc(var(--u) * 10); height: calc(var(--u) * 16);
  margin: calc(var(--u) * -8) 0 0 calc(var(--u) * -5);
}
.hero .hero-cape-3d .f-left,
.hero .hero-cape-3d .f-right {
  width: var(--t); height: calc(var(--u) * 16);
  margin: calc(var(--u) * -8) 0 0 calc(var(--t) / -2);
}
.hero .hero-cape-3d .f-top,
.hero .hero-cape-3d .f-bottom {
  width: calc(var(--u) * 10); height: var(--t);
  margin: calc(var(--t) / -2) 0 0 calc(var(--u) * -5);
}
.hero .hero-cape-3d .cape-name {
  /* same font + colour as the hero paragraph */
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.6;
  color: var(--text-body);
  text-align: center; min-height: 1.6em; transition: opacity .18s ease;
}
.hero .hero-cape-3d .cape-name.is-switching { opacity: 0; }
.hero .hero-cape-3d .cape-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.35); color: #fff; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0 0 4px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s;
}
.hero .hero-cape-3d .cape-nav:hover { background: rgba(255,255,255,0.15); }
.hero .hero-cape-3d .cape-prev { left: 0; }
.hero .hero-cape-3d .cape-next { right: 0; }

/* ===== "Why players pick us": 3D skin viewer ===== */
.skin-viewer, .skin-viewer *, .skin-viewer *::before, .skin-viewer *::after { box-sizing: border-box; }
.q8vf2 .b7gq4 { display: none; }                  /* remove the white glow behind the panel */
.o1jy6.o1jy6-viewer {
  background:
    radial-gradient(60% 45% at 50% 52%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #17181d 0%, #111216 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.75), 0 12px 24px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
@media (min-width: 992px) { .o1jy6.o1jy6-viewer { min-height: 560px; } }
.skin-viewer {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 1.25rem; gap: .75rem; font-family: 'Inter', sans-serif;
}
.skin-viewer .sv-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.skin-viewer .sv-label {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .8125rem;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.skin-viewer .sv-hint { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--text-body, #adadb6); }
.skin-viewer .sv-hint svg { width: 16px; height: 16px; }
.skin-viewer .sv-search { display: flex; gap: .5rem; position: relative; z-index: 2; }
.skin-viewer .sv-field { position: relative; flex: 1; min-width: 0; }
.skin-viewer .sv-icon {
  position: absolute; left: .85rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  color: var(--text-body, #adadb6); pointer-events: none;
}
.skin-viewer .sv-input {
  width: 100%; height: 46px; padding: 0 .9rem 0 2.6rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.25);
  color: #fff; font-family: 'Inter', sans-serif; font-size: .9375rem; outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}
.skin-viewer .sv-input::placeholder { color: var(--text-body, #adadb6); opacity: .8; }
.skin-viewer .sv-input:focus { border-color: rgba(255,255,255,0.35); }
.skin-viewer .sv-go {
  height: 46px; padding: 0 1.25rem; border-radius: 12px; border: 0; cursor: pointer;
  background: #fff; color: #0c0c0e; font-family: 'Inter', sans-serif; font-weight: 600; font-size: .9375rem;
  box-shadow: 0 6px 16px -6px rgba(255,255,255,0.25), 0 2px 4px rgba(0,0,0,0.4);
}
.skin-viewer .sv-go:hover { background: #e9e9ee; }
.skin-viewer .sv-status { min-height: 1.1em; margin-top: -.25rem; font-size: .8125rem; color: var(--text-body, #adadb6); position: relative; z-index: 2; }
.skin-viewer .sv-status:empty { display: none; }
.skin-viewer .sv-status.sv-error { color: #f87171; }
.skin-viewer .sv-stage {
  flex: 1; min-height: 280px; position: relative; perspective: 1400px;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.skin-viewer.sv-dragging .sv-stage { cursor: grabbing; }
/* soft shadow on the ground under the player */
.skin-viewer .sv-floor {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 0);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,0.75), rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.skin-viewer .sv-model { position: relative; width: 0; height: 0; transform-style: preserve-3d; }
.skin-viewer.sv-loading .sv-model { opacity: .5; }
.skin-viewer .sv-part { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.skin-viewer .sv-cape { transform-origin: 0 0; }
.skin-viewer .sv-face {
  position: absolute; left: 0; top: 0;
  background-repeat: no-repeat; image-rendering: pixelated; image-rendering: crisp-edges;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.skin-viewer .sv-legacy .sv-modern,
.skin-viewer .sv-no-cape .sv-cape { display: none; }
/* body: cape list on the left, 3D player on the right */
.skin-viewer .sv-body { flex: 1; min-height: 0; display: flex; gap: .75rem; }
.skin-viewer .sv-body .sv-stage { min-height: 0; }
.skin-viewer .sv-capes {
  width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: .25rem;
  padding: .375rem; border-radius: 14px; position: relative; z-index: 2;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto; overscroll-behavior: contain;
  /* themed scrollbar */
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.skin-viewer .sv-capes::-webkit-scrollbar { width: 6px; }
.skin-viewer .sv-capes::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.skin-viewer .sv-capes::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 999px; }
.skin-viewer .sv-capes::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
.skin-viewer .sv-cape-btn {
  display: flex; align-items: center; gap: .625rem; width: 100%; flex-shrink: 0;
  padding: .4rem .5rem; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--text-body, #adadb6); font-family: 'Inter', sans-serif; font-size: .8125rem; line-height: 1.25;
  text-align: left; cursor: pointer; min-width: 0;
}
.skin-viewer .sv-cape-btn:hover { color: #fff; background: rgba(255,255,255,0.04); }
.skin-viewer .sv-cape-btn.active {
  color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.6);
}
.skin-viewer .sv-cape-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.skin-viewer .sv-thumb {
  width: 20px; height: 32px; border-radius: 3px; flex-shrink: 0;
  background-size: 128px 64px; background-position: -2px -2px; background-repeat: no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges;
  box-shadow: 0 3px 6px -2px rgba(0,0,0,0.6);
}
.skin-viewer .sv-thumb-none {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 4px, transparent 4px 8px);
  border: 1px dashed rgba(255,255,255,.2); box-shadow: none;
}
/* phones: list becomes a horizontal scroller under the player */
@media (max-width: 575.98px) {
  .skin-viewer .sv-body { flex-direction: column-reverse; }
  .skin-viewer .sv-capes {
    width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden;
  }
  .skin-viewer .sv-capes::-webkit-scrollbar { height: 6px; width: auto; }
  .skin-viewer .sv-capes::-webkit-scrollbar-track { margin: 0 8px; }
  .skin-viewer .sv-cape-btn { width: auto; }
}
@media (max-width: 767.98px) {
  .o1jy6.o1jy6-viewer { aspect-ratio: auto; min-height: 580px; }
  .skin-viewer { padding: 1rem; }
}

/* ===== Logo ===== */
.navbar .navbar-brand img { height: 2.5rem; width: auto; }

/* ===== Footer: Trustpilot button ===== */
.footer .tp-button {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.25rem; padding: .6rem .95rem .6rem .8rem;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-body, #adadb6); font-family: 'Inter', sans-serif; font-size: .875rem; line-height: 1;
  text-decoration: none; box-shadow: 0 8px 20px -10px rgba(0,0,0,0.7);
  transition: border-color .2s, background .2s, color .2s;
}
.footer .tp-button strong { color: #fff; font-weight: 600; }
.footer .tp-button:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.07); color: #fff; }
.footer .tp-button .tp-star {
  width: 22px; height: 22px; padding: 3px; border-radius: 5px;
  background: #00b67a; color: #fff; flex-shrink: 0;
}
.footer .tp-button .tp-arrow { width: 14px; height: 14px; opacity: .6; }

/* ===== Footer: Discord icon at the end of the bottom row ===== */
.footer .f-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.footer .f-discord {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.35rem; line-height: 1; text-decoration: none;
  background: none; border: 0; padding: 0;
  transition: opacity .2s;
}
.footer .f-discord:hover { color: #fff; opacity: .7; }
@media (min-width: 768px) { .footer .f-right { margin-left: auto; } }

/* ===== Terms of Service panel ===== */
html.tos-open, html.tos-open body { overflow: hidden; }
.tos-overlay[hidden] { display: none !important; }
.tos-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tos-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tos-panel {
  position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  background: #131418; border: 1px solid rgba(255,255,255,0.08); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9);
}
.tos-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.tos-head h2 { margin: 0; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; color: #fff; }
.tos-updated { margin: .25rem 0 0; font-family: 'Inter', sans-serif; font-size: .8125rem; color: var(--text-body, #adadb6); }
.tos-close {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: #fff; font-size: 1.4rem; line-height: 1;
}
.tos-close:hover { background: rgba(255,255,255,0.1); }
.tos-body {
  overflow-y: auto; padding: .5rem 1.5rem 1.75rem;
  font-family: 'Inter', sans-serif; font-size: .9375rem; line-height: 1.7; color: var(--text-body, #adadb6);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.tos-body::-webkit-scrollbar { width: 6px; }
.tos-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 999px; }
.tos-body h2 { margin: 1.75rem 0 .5rem; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1.05rem; color: #fff; }
.tos-body p { margin: 0 0 .75rem; }
.tos-body ul { margin: 0 0 .75rem; padding-left: 1.25rem; }
.tos-body li { margin: .3rem 0; }
.tos-body strong { color: #fff; font-weight: 600; }
.tos-body a { color: #fff; text-decoration: underline; }

/* ===== Skin viewer: Elytra mode toggle ===== */
.skin-viewer .sv-model:not(.sv-elytra-on) .sv-elytra,
.skin-viewer .sv-model.sv-elytra-on .sv-cape,
.skin-viewer .sv-no-cape .sv-elytra { display: none; }
.skin-viewer .sv-elytra-btn {
  position: absolute; top: .25rem; right: .25rem; z-index: 3;
  width: 40px; height: 40px; padding: 0; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.35);
  color: var(--text-body, #adadb6); --sv-icon-cut: #16171c;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.7);
}
.skin-viewer .sv-elytra-btn svg { width: 26px; height: 26px; }
.skin-viewer .sv-elytra-btn:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.skin-viewer .sv-elytra-btn.active { background: #fff; border-color: #fff; color: #0c0c0e; --sv-icon-cut: #ffffff; }

/* ===== Skin viewer: Crafty render picture ===== */
.skin-viewer .sv-floor { display: none; }
.skin-viewer .sv-stage { overflow: hidden; outline: none; }
.skin-viewer .sv-render {
  max-width: 100%; max-height: 100%; height: 100%; width: auto; object-fit: contain;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.55));
}
.skin-viewer .sv-render:not([src]) { visibility: hidden; }
.skin-viewer .sv-spinner {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); border-top-color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .15s;
  animation: svspin .8s linear infinite;
}
.skin-viewer.sv-loading .sv-spinner { opacity: 1; }
@keyframes svspin { to { transform: rotate(360deg); } }
.skin-viewer .sv-turn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.35);
  color: #fff; font-size: 1.6rem; line-height: 1; padding: 0 0 3px;
  display: flex; align-items: center; justify-content: center;
}
.skin-viewer .sv-turn:hover { background: rgba(255,255,255,0.12); }
.skin-viewer .sv-turn-left { left: .25rem; }
.skin-viewer .sv-turn-right { right: .25rem; }
.skin-viewer .sv-elytra-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ===== Skin viewer: Skin3d (WebGL) canvas ===== */
.skin-viewer .sv-canvas { display: block; max-width: 100%; max-height: 100%; cursor: grab; touch-action: none; }
.skin-viewer .sv-canvas:active { cursor: grabbing; }
.skin-viewer .sv-floor {
  display: block; top: auto; bottom: 7%; left: 50%; transform: translateX(-50%);
  width: 46%; max-width: 220px; height: 26px; margin: 0;
}
.skin-viewer.sv-loading .sv-canvas { opacity: .6; }
