:root {
  --bg: #030913;
  --panel: rgba(8, 17, 33, 0.82);
  --panel-strong: rgba(10, 21, 40, 0.94);
  --line: rgba(115, 158, 226, 0.15);
  --line-bright: rgba(0, 149, 255, 0.74);
  --text: #f5f7fb;
  --muted: #9ca6ba;
  --blue: #168cff;
  --blue-strong: #0a7cff;
  --cyan: #2dc7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 15%, rgba(18, 113, 255, 0.17), transparent 30rem),
    radial-gradient(circle at 14% 62%, rgba(28, 177, 255, 0.1), transparent 34rem),
    #030913;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  min-height: 92px;
  padding: 0 2.4rem;
  border-bottom: 1px solid rgba(112, 149, 207, 0.1);
  background: rgba(3, 8, 17, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-cube {
  width: 38px;
  height: 38px;
  display: inline-block;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(0, 0, 0, 0.28) 51%) 0 0 / 50% 50%,
    linear-gradient(45deg, #087cff, #39c7ff);
  border: 2px solid #57c7ff;
  box-shadow: 0 0 20px rgba(19, 143, 255, 0.55);
  transform: rotate(45deg);
}

.brand-text {
  font-family: "Rubik Mono One", Inter, sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.9rem);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-text span,
.nav .active,
.coins,
.summary dd {
  color: var(--blue);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 1.55vw, 1.65rem);
  height: 100%;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #c5cad5;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.nav .active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(22, 140, 255, 0.85);
  content: "";
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(119, 155, 220, 0.16);
  border-radius: 8px;
  background: rgba(15, 26, 47, 0.75);
  color: #f0f3f8;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
}

.login-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid rgba(116, 152, 214, 0.2);
  background:
    linear-gradient(#5a2f18 0 25%, transparent 25% 100%),
    linear-gradient(90deg, transparent 0 28%, #74b7ff 28% 43%, transparent 43% 57%, #74b7ff 57% 72%, transparent 72%),
    #c47742;
  box-shadow: inset 0 -8px #2a7bc3;
}

.avatar.skin-avatar {
  background-color: #10243f;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 16px rgba(22, 140, 255, 0.28);
  image-rendering: pixelated;
}

.account-menu {
  position: fixed;
  z-index: 30;
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(119, 155, 220, 0.22);
  border-radius: 8px;
  background: rgba(8, 18, 34, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(22, 140, 255, 0.13);
  backdrop-filter: blur(18px);
}

.account-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(116, 152, 214, 0.13);
}

.account-menu-header strong,
.account-menu-header span {
  display: block;
}

.account-menu-header strong {
  color: #fff;
  font-size: 1.05rem;
}

.account-menu-header span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.account-details {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0.9rem 0;
}

.account-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.account-details dt,
.account-details dd {
  margin: 0;
}

.account-details dt {
  color: var(--muted);
}

.account-details dd {
  color: #f5f7fb;
  font-weight: 800;
  text-align: right;
}

.account-actions {
  display: grid;
  gap: 0.65rem;
}

.account-action {
  min-height: 44px;
  border: 1px solid rgba(119, 155, 220, 0.16);
  border-radius: 7px;
  background: rgba(14, 124, 255, 0.18);
  color: #f5f7fb;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.account-action:hover {
  border-color: rgba(45, 199, 255, 0.45);
  background: rgba(14, 124, 255, 0.28);
}

.account-save {
  min-height: 44px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #168cff, #0878f1);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.account-action.danger {
  background: rgba(255, 78, 78, 0.14);
  color: #ffb8b8;
}

.nick-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 5, 12, 0.7);
  backdrop-filter: blur(8px);
}

.nick-modal {
  width: min(430px, 100%);
  padding: 1.25rem;
  border: 1px solid rgba(119, 155, 220, 0.24);
  border-radius: 8px;
  background: rgba(8, 18, 34, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52), 0 0 36px rgba(22, 140, 255, 0.14);
}

.nick-modal h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.nick-modal label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nick-modal input {
  width: 100%;
  min-height: 48px;
  padding: 0 0.85rem;
  border: 1px solid rgba(116, 152, 214, 0.2);
  border-radius: 7px;
  background: rgba(3, 9, 19, 0.82);
  color: #f5f7fb;
  font-weight: 900;
}

.nick-modal input:focus {
  border-color: rgba(45, 199, 255, 0.62);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 140, 255, 0.14);
}

.nick-modal-status {
  min-height: 1.2rem;
  margin: 0.55rem 0 1rem;
  color: #ffb8b8;
  font-size: 0.88rem;
}

.nick-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 5, 12, 0.72);
  backdrop-filter: blur(9px);
}

.auth-modal {
  width: min(460px, 100%);
  padding: 1rem;
  border: 1px solid rgba(119, 155, 220, 0.24);
  border-radius: 8px;
  background: rgba(8, 18, 34, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54), 0 0 36px rgba(22, 140, 255, 0.16);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.25rem;
  border: 1px solid rgba(116, 152, 214, 0.14);
  border-radius: 8px;
  background: rgba(3, 9, 19, 0.68);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-tabs button.active {
  background: rgba(14, 124, 255, 0.24);
  color: #f5f7fb;
  box-shadow: inset 0 0 0 1px rgba(45, 199, 255, 0.28);
}

.auth-form {
  display: grid;
  gap: 0.62rem;
  padding: 1rem 0.2rem 0.15rem;
}

.auth-form h2 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
}

.auth-form label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 0.85rem;
  border: 1px solid rgba(116, 152, 214, 0.2);
  border-radius: 7px;
  background: rgba(3, 9, 19, 0.82);
  color: #f5f7fb;
  font-weight: 900;
}

.auth-form input:focus {
  border-color: rgba(45, 199, 255, 0.62);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 140, 255, 0.14);
}

.auth-form[data-auth-form="login"] .auth-register-fields,
.auth-form[data-auth-form="register"] .auth-login-password {
  display: none;
}

.auth-register-fields {
  display: grid;
  gap: 0.62rem;
}

.auth-hint,
.auth-status {
  margin: 0;
  font-size: 0.86rem;
}

.auth-hint {
  color: var(--muted);
}

.auth-status {
  min-height: 1.2rem;
  color: #ffb8b8;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

.hero {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-bottom: 1px solid rgba(112, 149, 207, 0.12);
}

.topup-hero {
  min-height: 430px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #030811 0%, #030811 38%, rgba(3, 8, 17, 0.74) 52%, rgba(3, 8, 17, 0) 72%),
    linear-gradient(90deg, rgba(3, 8, 17, 0.99) 0%, rgba(3, 8, 17, 0.86) 34%, rgba(3, 8, 17, 0.14) 67%, rgba(3, 8, 17, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 8, 17, 0.96), transparent 35%),
    url("assets/hero-gorcraft-main.png") right center / auto 116% no-repeat,
    linear-gradient(135deg, #030811 0%, #06172e 48%, #041019 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(112, 149, 207, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 149, 207, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-skins {
  position: absolute;
  right: max(3vw, 34px);
  bottom: -6px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.9rem, 2.2vw, 1.9rem);
  pointer-events: none;
}

.hero-skin {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 0;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.62));
}

.hero-skin img {
  display: block;
  width: clamp(150px, 18vw, 255px);
  height: auto;
  image-rendering: pixelated;
}

.hero-skin-secondary img {
  width: clamp(120px, 14vw, 205px);
}

.hero-skin figcaption {
  position: absolute;
  bottom: 14px;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(45, 150, 255, 0.52);
  border-radius: 6px;
  background: rgba(4, 11, 24, 0.78);
  color: #f5f8ff;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(88%, 1270px);
  margin: 0 auto;
  padding: 3.4rem 0 2.2rem;
}

.topup-hero .hero-bg {
  background:
    linear-gradient(90deg, #030811 0%, #030811 34%, rgba(3, 8, 17, 0.62) 48%, rgba(3, 8, 17, 0) 68%),
    linear-gradient(90deg, rgba(3, 8, 17, 0.88) 0%, rgba(3, 8, 17, 0.58) 30%, rgba(3, 8, 17, 0.04) 62%, rgba(3, 8, 17, 0) 100%),
    linear-gradient(0deg, rgba(3, 8, 17, 0.48), transparent 46%),
    linear-gradient(135deg, #030811 0%, #06172e 48%, #041019 100%);
}

.topup-hero .hero-bg::before {
  display: none;
}

.topup-hero .hero-bg::after {
  position: absolute;
  inset: 0;
  background: url("assets/hero-gorcraft-doladowania.png") right center / auto 108% no-repeat;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 54%, #000 74%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 54%, #000 74%, #000 100%);
}

.topup-hero .hero-content {
  padding-top: 4.8rem;
  padding-bottom: 4rem;
}

h1 {
  max-width: 690px;
  margin: 0;
  font-family: "Rubik Mono One", Inter, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.07;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: var(--blue);
}

.hero p {
  max-width: 560px;
  margin: 1.45rem 0 3rem;
  color: #c6cad5;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 5vw, 4.2rem);
}

.mini-feature,
.footer-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mini-feature svg,
.footer-feature svg {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--blue);
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.mini-feature:first-child svg {
  fill: var(--blue);
  stroke: none;
}

.mini-feature strong,
.footer-feature strong {
  display: block;
  margin-bottom: 0.28rem;
  font-weight: 800;
}

.mini-feature span,
.footer-feature span {
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: 1.8rem;
  width: min(88%, 1270px);
  margin: 0 auto;
  padding: 1.8rem 0 2.9rem;
}

h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 1.2rem;
}

.package {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 150px;
  padding: 1.3rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(116, 152, 214, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 38, 72, 0.74), rgba(5, 12, 24, 0.92)),
    rgba(9, 20, 38, 0.9);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.package:hover,
.package.selected {
  border-color: var(--line-bright);
  box-shadow: 0 0 0 1px rgba(0, 149, 255, 0.18), 0 0 34px rgba(15, 131, 255, 0.17);
}

.package:hover {
  transform: translateY(-2px);
}

.price {
  align-self: end;
  font-size: clamp(1.45rem, 2vw, 1.82rem);
  font-weight: 900;
}

.coins {
  align-self: start;
  font-size: 1.08rem;
  font-weight: 700;
}

.gem {
  grid-row: 1 / span 2;
  justify-self: center;
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 0 16px rgba(45, 199, 255, 0.55));
}

.gem-single {
  background:
    linear-gradient(135deg, transparent 20%, #baf4ff 21% 33%, transparent 34%),
    linear-gradient(45deg, transparent 21%, #23d7ff 22% 36%, transparent 37%),
    linear-gradient(135deg, #1178ff 0 35%, #6de8ff 36% 58%, #065fd4 59% 100%);
  clip-path: polygon(50% 4%, 78% 20%, 90% 55%, 50% 98%, 10% 55%, 22% 20%);
}

.gem-bag,
.gem-chest {
  background:
    radial-gradient(circle at 55% 16%, #bdfaff 0 11%, #1ba7ff 12% 23%, transparent 24%),
    radial-gradient(circle at 34% 27%, #a2f4ff 0 9%, #127dff 10% 20%, transparent 21%),
    linear-gradient(135deg, #a45b20 0 45%, #5b2f14 46% 100%);
  clip-path: polygon(28% 12%, 74% 12%, 95% 38%, 85% 92%, 15% 92%, 5% 38%);
}

.gem-chest {
  border-radius: 7px;
  clip-path: none;
  background:
    radial-gradient(circle at 35% 46%, #d0fbff 0 7%, #26baff 8% 16%, transparent 17%),
    radial-gradient(circle at 54% 54%, #d0fbff 0 8%, #168cff 9% 18%, transparent 19%),
    radial-gradient(circle at 70% 42%, #d0fbff 0 6%, #18aaff 7% 15%, transparent 16%),
    linear-gradient(#b7611f 0 45%, #6a3516 46% 100%);
  box-shadow: inset 0 0 0 5px #4a260e, inset 0 35px 0 rgba(255, 177, 55, 0.26);
}

.badge,
.bonus {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 5px;
  background: rgba(14, 124, 255, 0.22);
  color: var(--cyan);
  font-weight: 900;
  padding: 0.36rem 0.58rem;
}

.badge {
  top: 0;
  right: 0;
  min-width: 110px;
  border-radius: 0 7px 0 7px;
  background: var(--blue);
  color: #04101f;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.summary {
  align-self: start;
  padding: 1.55rem;
  border: 1px solid rgba(116, 152, 214, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(13, 28, 52, 0.96), rgba(5, 12, 24, 0.94)),
    var(--panel-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.summary dl {
  margin: 1rem 0 1.4rem;
  border-bottom: 1px solid rgba(116, 152, 214, 0.1);
}

.summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
}

.summary dt {
  color: var(--muted);
}

.summary dd {
  margin: 0;
  font-weight: 900;
}

.payment-label {
  display: block;
  margin-bottom: 0.7rem;
}

.payment-select {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  border: 1px solid rgba(116, 152, 214, 0.14);
  border-radius: 8px;
  background: rgba(8, 18, 34, 0.88);
  color: #f5f7fb;
}

.pay-button {
  width: 100%;
  min-height: 56px;
  margin-top: 1.1rem;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #168cff, #0878f1);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(0, 124, 255, 0.22);
}

.secure-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.secure-note svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.site-footer {
  border-top: 1px solid rgba(116, 152, 214, 0.13);
  background: rgba(5, 12, 24, 0.82);
}

.footer-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.7rem;
  width: min(88%, 1160px);
  margin: 0 auto;
  padding: 2rem 0;
}

.footer-feature svg {
  width: 50px;
  height: 50px;
  stroke-width: 2;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 1.1rem;
  border-top: 1px solid rgba(116, 152, 214, 0.09);
  color: #747e93;
  font-size: 0.92rem;
}

.subpage {
  min-height: calc(100vh - 92px);
}

.page-hero,
.page-section {
  width: min(88%, 1270px);
  margin: 0 auto;
}

.page-hero {
  position: relative;
  width: 100%;
  min-height: 350px;
  padding: clamp(3rem, 7vw, 5.8rem) max(6vw, calc((100vw - 1270px) / 2)) 2.2rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(112, 149, 207, 0.12);
  background: linear-gradient(135deg, #030811 0%, #06172e 48%, #041019 100%);
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/hero-gorcraft-main.png") right center / auto 116% no-repeat;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 58%, #000 76%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 58%, #000 76%, #000 100%);
}

.page-hero::before,
.home-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.page-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, #030811 0%, #030811 38%, rgba(3, 8, 17, 0.82) 52%, rgba(3, 8, 17, 0.22) 72%, rgba(3, 8, 17, 0.12) 100%),
    linear-gradient(90deg, rgba(3, 8, 17, 0.99) 0%, rgba(3, 8, 17, 0.86) 34%, rgba(3, 8, 17, 0.14) 67%, rgba(3, 8, 17, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 8, 17, 0.96), transparent 35%),
    linear-gradient(rgba(112, 149, 207, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 149, 207, 0.16) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero > p:not(.eyebrow) {
  max-width: 640px;
  color: #c6cad5;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: -1.2rem 0 2.4rem;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-link {
  background: linear-gradient(180deg, #168cff, #0878f1);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 124, 255, 0.22);
}

.ghost-link {
  border: 1px solid rgba(116, 152, 214, 0.2);
  background: rgba(8, 18, 34, 0.72);
  color: #dbe7ff;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.feature-grid,
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  padding-bottom: 3rem;
}

.shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.shop-card,
.faq-list article,
.ranking-table,
.rules-list,
.contact-form {
  border: 1px solid rgba(116, 152, 214, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(13, 28, 52, 0.88), rgba(5, 12, 24, 0.94)),
    var(--panel-strong);
}

.info-card,
.shop-card {
  display: block;
  min-height: 190px;
  padding: 1.35rem;
}

.info-card h3,
.shop-card h3,
.faq-list h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
}

.info-card p,
.shop-card p,
.faq-list p,
.rules-list li,
.summary p {
  color: var(--muted);
  line-height: 1.6;
}

.card-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
}

.trophy-icon {
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(135deg, #ffd84a, #f29022);
  box-shadow: inset 0 -13px rgba(95, 45, 10, 0.45), 0 0 20px rgba(255, 178, 32, 0.22);
  clip-path: polygon(22% 0, 78% 0, 72% 58%, 58% 58%, 58% 82%, 78% 82%, 78% 100%, 22% 100%, 22% 82%, 42% 82%, 42% 58%, 28% 58%);
}

.help-icon,
.contact-icon {
  border: 3px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(22, 140, 255, 0.26);
}

.help-icon::after,
.contact-icon::after {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--blue);
  font-weight: 900;
  content: "?";
}

.contact-icon::after {
  content: "@";
}

.shop-card {
  min-height: 250px;
}

.shop-card strong {
  display: block;
  margin: 1.2rem 0;
  color: var(--blue);
  font-size: 1.5rem;
}

.tag {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  background: rgba(14, 124, 255, 0.22);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-table {
  overflow: hidden;
  margin-bottom: 3rem;
}

.ranking-table > div {
  display: grid;
  grid-template-columns: 80px 1fr 160px;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(116, 152, 214, 0.1);
}

.ranking-table > div:first-child {
  color: var(--blue);
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.faq-list article {
  padding: 1.2rem;
}

.rules-list {
  margin: 0 0 3rem;
  padding: 1.4rem 1.4rem 1.4rem 3rem;
}

.rules-list li + li {
  margin-top: 0.85rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 1.4rem;
  padding-bottom: 3rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(116, 152, 214, 0.14);
  border-radius: 8px;
  background: rgba(8, 18, 34, 0.88);
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--cyan);
  font-weight: 800;
}

.checkout-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(116, 152, 214, 0.1);
}

.payment-steps .checkout-form {
  max-width: 560px;
}

.checkout-form label {
  display: grid;
  gap: 0.45rem;
  color: #dce8fb;
  font-weight: 800;
}

.checkout-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(116, 152, 214, 0.14);
  border-radius: 8px;
  background: rgba(8, 18, 34, 0.88);
  color: var(--text);
  font: inherit;
  padding: 0 0.9rem;
}

.checkout-form input:focus {
  border-color: rgba(22, 140, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(22, 140, 255, 0.14);
  outline: none;
}

.terms-check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.terms-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--blue);
}

.order-summary {
  max-width: 560px;
  margin: 1.2rem 0 2rem;
  padding: 1.2rem;
  border: 1px solid rgba(116, 152, 214, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(13, 28, 52, 0.88), rgba(5, 12, 24, 0.94)),
    var(--panel-strong);
}

.order-summary:empty {
  display: none;
}

.order-summary dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.order-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.order-summary dt {
  color: var(--muted);
}

.order-summary dd {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
  text-align: right;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  align-items: start;
  gap: 1.4rem;
  padding-bottom: 3rem;
}

.payment-box {
  width: 100%;
}

.back-payment {
  width: 100%;
  margin-top: 0.85rem;
}

.payment-steps {
  display: grid;
  align-self: start;
  gap: 1rem;
}

.payment-steps article {
  position: relative;
  min-height: 130px;
  padding: 1.3rem 1.3rem 1.3rem 5rem;
  border: 1px solid rgba(116, 152, 214, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(13, 28, 52, 0.88), rgba(5, 12, 24, 0.94)),
    var(--panel-strong);
}

.payment-steps span {
  position: absolute;
  top: 1.3rem;
  left: 1.3rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 900;
  box-shadow: 0 0 22px rgba(22, 140, 255, 0.22);
}

.payment-steps h3 {
  margin: 0 0 0.45rem;
}

.payment-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 1rem 1.4rem;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    height: auto;
    overflow-x: auto;
    padding-bottom: 0.45rem;
  }

  .nav .active::after {
    bottom: -0.45rem;
  }

  .checkout {
    grid-template-columns: 1fr;
  }

  .footer-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-content,
  .checkout,
  .footer-features,
  .page-hero,
  .page-section {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100vw;
    padding: 1rem;
    gap: 0.85rem;
    overflow: visible;
  }

  .brand {
    min-width: 0;
  }

  .login-button {
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
  }

  .account-menu {
    right: 1rem;
    left: 1rem !important;
    width: auto;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    min-width: 0;
    gap: 0.65rem 0.9rem;
    overflow-x: visible;
    padding-bottom: 0.65rem;
  }

  .nav a {
    flex: 0 0 auto;
    display: block;
    font-size: 0.76rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, #030811 0%, rgba(3, 8, 17, 0.95) 34%, rgba(3, 8, 17, 0) 68%),
      linear-gradient(90deg, rgba(3, 8, 17, 0.99), rgba(3, 8, 17, 0.78)),
      linear-gradient(0deg, rgba(3, 8, 17, 0.96), transparent 45%),
      url("assets/hero-gorcraft-main.png") 88% center / auto 76% no-repeat,
      linear-gradient(135deg, #030811 0%, #06172e 48%, #041019 100%);
  }

  .topup-hero .hero-bg {
    background:
      linear-gradient(90deg, #030811 0%, rgba(3, 8, 17, 0.88) 34%, rgba(3, 8, 17, 0) 68%),
      linear-gradient(90deg, rgba(3, 8, 17, 0.91), rgba(3, 8, 17, 0.58)),
      linear-gradient(0deg, rgba(3, 8, 17, 0.76), transparent 50%),
      linear-gradient(135deg, #030811 0%, #06172e 48%, #041019 100%);
  }

  .topup-hero .hero-bg::after {
    background-position: 88% center;
    background-size: auto 76%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, #000 72%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, #000 72%, #000 100%);
  }

  .hero-skins {
    right: -3.4rem;
    bottom: -10px;
    gap: 0.1rem;
    opacity: 0.22;
  }

  .hero-skin img {
    width: 108px;
  }

  .hero-skin-secondary img {
    width: 88px;
  }

  .hero-skin figcaption {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3.2rem);
    overflow-wrap: anywhere;
  }

  .hero p,
  .page-hero > p:not(.eyebrow) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .packages {
    grid-template-columns: 1fr;
  }

  .package {
    min-height: 132px;
  }

  .footer-features,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .ranking-table > div {
    grid-template-columns: 42px 1fr 90px;
    padding: 0.9rem;
  }
}

@media (max-width: 460px) {
  .brand-text {
    font-size: 1rem;
  }

  .brand-cube {
    width: 30px;
    height: 30px;
  }

  .login-button {
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
  }

  .hero-content {
    padding-top: 2.4rem;
  }

  .hero-features {
    display: grid;
  }

  .package {
    grid-template-columns: 76px 1fr;
    padding-right: 0.95rem;
  }

  .gem {
    width: 60px;
    height: 60px;
  }
}
