@font-face {
  font-family: "Pixelify Sans";
  src: url("assets/pixelify-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: "Pixelify Sans";
  src: url("assets/pixelify-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  --page: #f2f2f2;
  --paper: #fff;
  --ink: #181818;
  --muted: #595959;
  --line: #e4e4e4;
  --red: #d51624;
  --red-hover: #b90916;
  --red-soft: #fff0f0;
  --radius: 8px;
  --display: "Pixelify Sans", Manrope, system-ui, sans-serif;
  color-scheme: light;
  font: 600 15px/1.5 Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; background: var(--page); color: var(--ink); }
h1, h2, h3, p, fieldset { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.container { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.site-header.container, .hero { width: min(1260px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 30; inset: 12px auto auto 12px; padding: 10px 16px; background: white; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 90px; position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.brand { display: block; width: 84px; flex: none; }
.brand img { width: 100%; height: 82px; object-fit: contain; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 25px; }
.main-nav a { color: var(--muted); font-size: 12px; font-weight: 800; padding-block: 8px; text-transform: uppercase; }
.main-nav a:is(:hover, .active) { color: var(--red); }
.header-cta { justify-self: end; }
.online-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 3px 9px; border: 1px solid #dc7a80; border-radius: 20px; color: var(--muted); font-size: 11px; font-weight: 800; }
.online-pill strong { color: var(--ink); margin-right: 4px; }
.status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #258453; box-shadow: 0 0 0 3px #e1f2e8; }
.status-dot:is(.offline, .pending) { background: #867e7a; box-shadow: none; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
  min-height: clamp(435px, calc(100svh - 145px), 665px);
  padding-block: 64px 94px;
}
.hero-copy { min-width: 0; padding-block: 12px; }
.hero h1 { margin-top: 13px; font: 700 76px/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.hero h1 span { color: var(--red); }
.hero-tagline { margin-top: 7px; font: 600 36px/1.12 var(--display); }
.hero-description { max-width: 41ch; margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 23px; }
.hero-actions .button, .hero-discord { min-height: 46px; padding-inline: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid transparent; border-radius: var(--radius); padding: 10px 15px; font-size: 13px; font-weight: 800; text-align: center; transition: background-color .18s, border-color .18s, transform .18s; }
.button:not(:disabled):active { transform: translateY(1px); }
.button.primary { background: var(--red); color: white; box-shadow: 0 4px 9px #9910171c; }
.button.primary:not(:disabled):hover { background: var(--red-hover); }
.button.white { background: white; border-color: var(--line); color: var(--ink); }
.button.white .icon { color: var(--red); }
.button.white:hover { border-color: #c9908b; }
.button.subtle { background: var(--red-soft); color: var(--red-hover); }
.button.subtle:not(:disabled):hover { background: #ffddd7; }
.button:disabled { background: #eeeeee; color: #666; box-shadow: none; }
.hero-discord { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 800; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-discord .icon:first-child { color: var(--red); }
.hero-discord:hover { color: var(--red); border-color: #dc7a80; }
.link-arrow { width: 14px; height: 14px; transition: transform .18s; }
.hero-discord:hover .link-arrow { transform: translateX(3px); }
.hero-transition { position: absolute; inset: auto 0 13px; width: min(100%, 1080px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; }
.hero-transition::before, .hero-transition::after { content: ''; height: 7px; margin-top: 21px; background: linear-gradient(#c8656c, #c8656c) right center / 5px 5px no-repeat, linear-gradient(90deg, #e3dfdf, #daa9ac) left center / calc(100% - 10px) 1px no-repeat; }
.hero-transition::after { transform: scaleX(-1); }
.hero-scroll { display: grid; justify-items: center; gap: 5px; padding-inline: 4px; border-radius: var(--radius); color: var(--red-hover); font-size: 11px; font-weight: 800; line-height: 1.5; text-align: center; text-transform: uppercase; }
.hero-scroll-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: white; box-shadow: 0 5px 12px #99101730; transition: background-color .18s; }
.hero-scroll:is(:hover, :focus-visible) .hero-scroll-icon { background: var(--red-hover); }
.hero-scroll .icon { width: 25px; height: 25px; stroke-width: 2.4; }

.hero-art, .topup-art {
  position: relative; isolation: isolate; min-width: 0;
  display: grid; place-items: center; border-radius: var(--radius);
}
.hero-art { aspect-ratio: 1.58; }
.hero-art::before { content: ''; position: absolute; inset: auto 12% 5%; height: 6%; border-radius: 50%; background: #32201e1f; filter: blur(8px); }
.hero-art img, .topup-art img { position: absolute; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 9px #32101329); }
.hero-art img { inset: 0 0 7%; height: 93%; animation: dragon-hover 5s ease-in-out infinite; }
@keyframes dragon-hover { 50% { transform: translateY(-5px) rotate(1deg); } }

.richest-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-block: 6px 28px; }
.richest-heading { grid-area: 1 / 2; display: flex; align-items: center; gap: 12px; text-align: right; }
.richest-heading h2 { font: 700 28px/1.1 var(--display); }
.richest-heading p { color: var(--muted); font-size: 11px; }
.richest-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--red); }
.richest-icon .icon { width: 24px; height: 24px; }
.richest-results { grid-area: 1 / 1; min-width: 0; }
.richest-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.richest-card { display: grid; grid-template-rows: 40px minmax(27px, auto) minmax(15px, auto); align-content: center; justify-items: center; align-items: center; gap: 2px; min-width: 0; min-height: 104px; padding: 7px; border: 1px solid #eaeaea; border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 4px #0000000b; text-align: center; overflow-wrap: anywhere; }
.richest-card img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.richest-card strong { font-size: 12px; line-height: 1.15; }
.richest-card small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.richest-card:not(.activity-placeholder):first-child { border-color: var(--red); background: var(--red); color: white; }
.richest-card:not(.activity-placeholder):first-child small { color: inherit; }
.richest-card.activity-placeholder { grid-template-rows: 40px minmax(27px, auto); }
.activity-placeholder { color: var(--muted); }

.recent-section { margin-block: 34px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 11px; }
.section-heading h2, .shop-heading h2 { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; line-height: 1.2; }
.section-heading h2 { font-size: 21px; }
.section-heading .icon, .shop-heading .icon { color: var(--red); }
.recent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.purchase-card { background: white; border: 1px solid #eaeaea; border-radius: var(--radius); min-height: 61px; box-shadow: 0 2px 3px #00000007; }
.purchase-card { display: flex; align-items: center; gap: 10px; padding: 10px; transition: border-color .18s; }
.purchase-card:hover { border-color: #df8489; }
.purchase-card:not(.activity-placeholder):first-child { border-left: 3px solid var(--red); }
.purchase-card img { width: 36px; height: 36px; flex: none; border-radius: 5px; image-rendering: pixelated; }
.purchase-info { min-width: 0; }
.purchase-info strong, .purchase-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.purchase-info strong { font-size: 13px; }
.purchase-info small, .purchase-price { color: var(--muted); font-size: 11px; }
.purchase-price { margin-left: auto; white-space: nowrap; }
.purchase-card.activity-placeholder strong { font-size: 13px; }

.shop-store, .shop-category { scroll-margin-top: 22px; }
.shop-store > .section-heading { justify-content: center; text-align: center; }
.shop-store .section-heading h2 { font-size: 27px; }
.shop-category + .shop-category { margin-top: 36px; }
.shop-category > h3 { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 15px; text-transform: uppercase; font: 700 17px/1.2 var(--display); }
.shop-category > h3::before, .shop-category > h3::after { content: ''; flex: 0 0 7px; height: 2px; background: var(--red); }
.shop-products { --product-gap: 16px; --product-columns: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--product-gap); }
[data-product="flame"] { --product-edge: #e23440; --product-tint: #fff0f0; }
[data-product="mvip"] { --product-edge: #d54c8f; --product-tint: #fff0f7; }
[data-product="svip"], [data-product="eventowy"] { --product-edge: #de6e36; --product-tint: #fff1e7; }
[data-product="vip"], [data-product="luckyblock"] { --product-edge: #d29b24; --product-tint: #fff7df; }
[data-product="epicbox"] { --product-edge: #218ec8; --product-tint: #eaf7ff; }
[data-product="starbox"] { --product-edge: #9e54d4; --product-tint: #f7effe; }
[data-product="odlamki"] { --product-edge: #258f7c; --product-tint: #eaf9f3; }
[data-product="turbodrop"] { --product-edge: #407cbb; --product-tint: #edf5ff; }
.product-card {
  display: grid;
  grid-template-rows: 128px 1fr;
  flex: 0 0 min(207px, calc((100% + var(--product-gap)) / var(--product-columns) - var(--product-gap)));
  min-width: 0;
  min-height: 230px;
  overflow: hidden;
  border: 4px solid var(--line);
  background: var(--paper);
  transition: border-color .18s ease;
}
.product-card:is(:hover, :focus-within) { border-color: #df8489; }
.product-art { display: grid; min-height: 0; place-items: center; overflow: hidden; background: var(--page); }
.product-art img { width: min(150px, 92%); height: calc(100% - 10px); min-width: 0; min-height: 0; object-fit: contain; }
.product-card-featured {
  position: relative;
  border-color: var(--product-edge);
  box-shadow: 0 0 0 1px #f08e95, 0 4px 12px #99101720;
}
.product-card-featured:is(:hover, :focus-within) { border-color: var(--red-hover); }
@media (prefers-reduced-motion: no-preference) {
  .product-card-featured { animation: flame-frame-pulse 4.6s ease-in-out infinite; }
}
@keyframes flame-frame-pulse {
  0%, 100% { box-shadow: 0 0 0 1px #f08e95, 0 4px 12px #99101720; }
  50% { box-shadow: 0 0 0 2px #f08e95, 0 0 16px 1px #d5162445; }
}
.product-card-featured::before, .product-card-featured::after {
  content: '';
  position: absolute;
  z-index: 1;
  width: 11px;
  height: 11px;
  pointer-events: none;
}
.product-card-featured::before { top: 0; left: 0; border-top: 2px solid #f18b78; border-left: 2px solid #f18b78; }
.product-card-featured::after { bottom: 0; right: 0; border-bottom: 2px solid #f18b78; border-right: 2px solid #f18b78; }
.product-card-featured .product-art { grid-template-rows: 28px minmax(0,1fr); background: var(--product-tint); }
.product-featured-badge {
  display: inline-flex;
  align-self: end;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--red);
  box-shadow: inset 0 -2px var(--red-hover);
  color: var(--paper);
  font: 700 13px/1 var(--display);
  text-transform: uppercase;
  clip-path: polygon(0 3px,3px 3px,3px 0,calc(100% - 3px) 0,calc(100% - 3px) 3px,100% 3px,100% calc(100% - 3px),calc(100% - 3px) calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,3px calc(100% - 3px),0 calc(100% - 3px));
}
.product-featured-badge .icon { width: 13px; height: 13px; flex: none; }
.product-card-body { display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 8px 5px; text-align: center; }
.product-card h4 { margin: 0; padding-inline: 3px; font: 700 16px/1.15 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.product-detail, #order-detail { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.product-buy.button {
  width: 100%;
  min-height: 38px;
  padding: 4px 2px;
  border: 4px solid #f6c8cc;
  border-radius: 0;
  background: var(--red);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.product-buy.button:hover { background: var(--red-hover); }
.product-buy.button:focus-visible { outline-offset: 0; }
body:has(.product-order[open]) { overflow: hidden; }
.product-order { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 28px); margin: auto; padding: 18px; overflow: auto; overscroll-behavior: contain; border: 1px solid #e6dedf; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 18px 64px #24131834; }
.product-order::backdrop { background: #1d10169e; }
.product-order-header { display: grid; grid-template-columns: 64px minmax(0,1fr) 40px; gap: 12px; align-items: center; margin-bottom: 16px; }
.product-order-header img { padding: 3px; border-radius: var(--radius); background: var(--product-tint); }
.product-order-header h2 { margin: 0 0 4px; font: 700 25px/1.1 var(--display); }
#order-list-price { margin: 0; color: var(--red-hover); font-size: 14px; font-weight: 800; }
.product-order-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f4f4; color: var(--ink); }
.product-order-close:hover:not(:disabled) { background: var(--red-soft); }
#order-availability { margin: 0; padding: 12px; border: 1px solid #eadfe0; border-radius: var(--radius); background: #faf7f7; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nick-field { grid-column: 1 / -1; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field>span:first-child, .amount-heading label, .payment-fieldset legend { font-size: 13px; font-weight: 800; }
.field input, .coupon-row input { width: 100%; min-width: 0; height: 44px; border: 1px solid #e6e6e6; border-radius: var(--radius); background: #f5f5f5; color: var(--ink); padding: 0 12px; font-size: 14px; }
.field input::placeholder, .coupon-row input::placeholder { color: #656565; }
.input-with-avatar { position: relative; }
.input-with-avatar img { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 4px; image-rendering: pixelated; }
#player-avatar[src="assets/player.svg"] { filter: hue-rotate(115deg) saturate(1.4); }
.input-with-avatar input { padding-left: 45px; }
.field-hint, .checkout-hint, .inline-status { font-size: 12px; color: var(--muted); margin-top: 7px; }
.amount-control { margin-block: 15px 10px; padding-block: 0 11px; border-bottom: 1px solid var(--line); }
.amount-heading, .bonus-line { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.reward-badge { font-size: 19px; font-weight: 800; color: var(--red-hover); background: var(--red-soft); border-radius: var(--radius); padding: 3px 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reward-badge small { font-size: 11px; }
#amount-range { --range-progress: 42.85%; appearance: none; width: 100%; height: 30px; display: block; margin: 4px 0; background: transparent; cursor: pointer; }
#amount-range:disabled { cursor: default; }
#amount-range::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: linear-gradient(to right, var(--red) var(--range-progress), #e7ddd9 var(--range-progress)); }
#amount-range::-moz-range-track { height: 6px; border-radius: 4px; background: linear-gradient(to right, var(--red) var(--range-progress), #e7ddd9 var(--range-progress)); }
#amount-range::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 3px solid var(--red); border-radius: 50%; background: white; }
#amount-range::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--red); border-radius: 50%; background: white; }
.bonus-line { font-size: 12px; color: var(--muted); }
#bonus-text { color: var(--red-hover); font-weight: 800; }
.coupon-details { min-width: 0; align-self: end; }
.coupon-details[open], .form-row:has(.coupon-details[open]) > .field { grid-column: 1 / -1; }
.coupon-details summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #f7d9da; border-radius: var(--radius); padding: 5px 10px; background: var(--red-soft); font-size: 13px; font-weight: 800; }
.coupon-details summary::-webkit-details-marker { display: none; }
.coupon-details summary .icon, .details-plus { color: var(--red); }
.details-plus { margin-left: auto; font-size: 20px; line-height: 1; transition: transform .18s; }
.coupon-details[open] .details-plus { transform: rotate(45deg); }
.coupon-row { display: flex; gap: 8px; margin-top: 9px; }
.inline-status:empty, .form-error:empty { display: none; }
.inline-status.success { color: #216b45; }
.inline-status.error, .form-error { color: var(--red-hover); }
.payment-fieldset { min-width: 0; border: 0; padding: 0; margin-top: 16px; }
.payment-fieldset legend { padding: 0; margin-bottom: 9px; }
.payment-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.payment-option { display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 10px; min-height: 60px; padding: 9px 11px; border: 1px solid #dfd9d9; border-radius: var(--radius); background: #faf9f9; cursor: pointer; transition: background-color .18s, border-color .18s; }
.payment-option:hover { border-color: #c58c8f; }
.payment-option:has(:checked) { border-color: #e18c91; background: #fff3f3; }
.payment-option:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.payment-option:has(input:disabled) { cursor: not-allowed; }
.gateway-icon { color: var(--red); display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #eddbdc; border-radius: 6px; background: white; }
.gateway-icon img { width: 28px; max-height: 24px; object-fit: contain; }
.payment-name { font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.payment-name small { display: block; color: var(--muted); font-weight: 600; }
.payment-option input { appearance: none; display: grid; place-items: center; width: 18px; height: 18px; margin: 0; border: 1px solid #968c8e; border-radius: 50%; background: white; cursor: inherit; }
.payment-option input:focus-visible { outline: none; }
.payment-option input:checked { border-color: var(--red); background: var(--red); }
.payment-option input:checked::before { content: ''; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
@media (forced-colors: active) {
  .payment-option input { appearance: auto; }
  .payment-option input:checked::before { content: none; }
  .payment-option:has(input:focus-visible) { outline-color: Highlight; }
}
.payment-message { padding: 8px 0; color: var(--muted); font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--red-hover); padding: 6px 0; font-size: 13px; text-decoration: underline; }
.consents { display: grid; gap: 8px; margin-block: 16px; }
.check-label { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.check-label input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--red); }
.check-label a { color: var(--red-hover); text-decoration: underline; text-underline-offset: 2px; }
.order-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding: 11px 13px; border: 1px solid #ece3e4; border-radius: var(--radius); background: #faf7f7; color: var(--muted); font-size: 12px; }
.order-total strong { display: block; color: var(--ink); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.order-total > :last-child { margin-left: auto; text-align: right; }
.order-total > :last-child strong { color: var(--red-hover); }
.price-details, .form-error { margin-top: 6px; font-size: 12px; }
.buy-button { width: 100%; margin-top: 12px; }
.buy-arrow { margin-left: auto; }
.checkout-hint { text-align: center; }

.topup-art {
  min-height: 300px; overflow: hidden;
  background: linear-gradient(#fff2 1px, transparent 1px) center / 28px 28px,
    linear-gradient(90deg, #fff2 1px, transparent 1px) center / 28px 28px,
    linear-gradient(145deg, #ff9292, #ec3b44 65%, #d7081c);
}
.topup-art::before { content: ''; position: absolute; bottom: 13%; left: 14%; width: 10px; height: 10px; background: #fff5; box-shadow: 10px 0 #fff2, 0 10px #fff2, -20px -30px #fff3, 30px -20px #fff2; pointer-events: none; }
.topup-watermark { position: absolute; z-index: -1; top: 2%; right: -12%; width: min(78%, 345px); height: auto; aspect-ratio: 1; color: #fff0eb; opacity: .23; stroke-width: .9; transform: rotate(-18deg); pointer-events: none; }
.topup-art img { inset: 11% 10%; width: 80%; height: 78%; animation: dragon-hover 6s ease-in-out infinite; }

.community-banner { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 28%) minmax(0, 1fr); align-items: center; min-height: 242px; padding-right: min(6%, 72px); background: linear-gradient(118deg, #d51624, #9e0c1c); color: white; border-radius: var(--radius); box-shadow: 0 10px 24px #9e0c1c26; }
.community-watermark { position: absolute; inset: auto -50px -24px auto; z-index: -1; width: 288px; height: 288px; color: #ffe1dc; opacity: .29; transform: rotate(-15deg); pointer-events: none; }
.community-art { position: relative; align-self: stretch; overflow: hidden; border-bottom-left-radius: inherit; }
.community-art img { position: absolute; inset: auto 0 -44px; width: 94%; height: auto; max-width: 254px; margin-inline: auto; filter: drop-shadow(0 8px 10px #3a020c54); }
.community-copy { min-width: 0; padding: 28px 20px; text-align: center; }
.community-label { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.community-label .icon { width: 16px; height: 16px; }
.community-copy h2 { margin-top: 8px; font: 700 36px/1.05 var(--display); }
.community-copy p { margin-top: 8px; color: #fff1f1; font-size: 14px; }
.community-join { margin-top: 20px; }
.community-join.button:hover { background: #fff0f0; border-color: #fff0f0; }
.community-join:hover .link-arrow { transform: translateX(3px); }
.community-join:focus-visible { outline-color: white; }

.site-footer { margin-block: 32px; padding: 25px 24px; background: white; border: 1px solid #e9e9e9; border-radius: var(--radius); }
.footer-grid { display: grid; grid-template-columns: .8fr 1fr 1fr 1.4fr; align-items: start; gap: 18px 24px; font-size: 12px; color: var(--muted); }
.footer-grid-store { grid-template-columns: minmax(0, .65fr) minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, 1.55fr); }
.footer-brand img { width: 96px; height: 96px; object-fit: contain; }
.footer-grid h3, .footer-grid strong { font-size: 13px; color: var(--ink); font-weight: 800; }
.footer-grid h3 { display: inline-block; padding: 3px 8px; border-radius: 4px; color: white; background: var(--red); }
.footer-legal strong { font: 700 20px/1.2 var(--display); text-transform: uppercase; }
.footer-grid p, .footer-grid a { margin-top: 5px; }
.footer-grid a { display: flex; align-items: center; gap: 6px; }
.footer-grid a:hover { color: var(--red); }
.footer-grid a .icon { width: 14px; height: 14px; }

.footer-controller-ids { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.footer-controller-ids span { white-space: nowrap; }
.footer-controller a { width: fit-content; color: var(--red-hover); text-decoration: underline; text-underline-offset: 2px; }
.toast { position: fixed; z-index: 20; inset: auto 0 20px; width: fit-content; max-width: calc(100% - 24px); margin-inline: auto; padding: 11px 17px; border-radius: var(--radius); background: var(--ink); color: white; font-size: 13px; }

.boot-screen, .embers { display: none; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .boot-screen { display: block; position: fixed; z-index: 100; inset: 0; animation: boot-out .18s .42s ease both; }
  .boot-layer { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 12px; color: #fff; background: #231a19; }
  body:has(:focus-visible) .boot-layer { visibility: hidden; }
  .boot-layer img { object-fit: contain; animation: boot-logo .32s ease both; }
  .boot-brand { font: 700 34px/1 var(--display); text-transform: uppercase; }
  .boot-brand span { color: #ff7367; }
  .boot-blocks { display: flex; gap: 4px; }
  .boot-blocks i { width: 10px; height: 10px; background: #ff655b; animation: boot-block .6s steps(3) infinite alternate; }
  .boot-blocks i:nth-child(2) { animation-delay: -.48s; }
  .boot-blocks i:nth-child(3) { animation-delay: -.36s; }
  .boot-blocks i:nth-child(4) { animation-delay: -.24s; }
  .boot-blocks i:nth-child(5) { animation-delay: -.12s; }
  .boot-blocks i:nth-child(6) { animation-delay: 0s; }
  .site-header, .hero-copy, .hero-art { animation: section-in .55s ease-out both; }
  .hero-copy { animation-delay: .12s; }
  .hero-art { animation-delay: .22s; }
  .hero-scroll .icon { animation: scroll-nudge 1.8s ease-in-out 1s 2; }
  .embers { display: block; position: absolute; inset: 7% 10% 9%; overflow: hidden; }
  .embers i { position: absolute; inset: auto auto 8% var(--x, 9%); width: var(--size, 6px); height: var(--size, 6px); background: var(--ember-color, #e64d28); animation: pixel-rise var(--speed, 3.1s) var(--delay, -1s) linear infinite; }
  .embers i:nth-child(2) { --x: 21%; --size: 4px; --delay: -.4s; --ember-color: #ef8f44; }
  .embers i:nth-child(3) { --x: 76%; --size: 5px; --delay: -3.3s; --speed: 4.2s; }
  .embers i:nth-child(4) { --x: 90%; --size: 7px; --delay: -2s; --ember-color: #f2924c; }
  .embers i:nth-child(5) { --x: 96%; --size: 4px; --delay: -1.6s; --speed: 2.8s; }
  .purchase-card { animation: section-in .38s ease-out both; transition: transform .16s, box-shadow .16s, border-color .16s; }
  .purchase-card:nth-child(2) { animation-delay: .07s; }
  .purchase-card:nth-child(3) { animation-delay: .14s; }
  .purchase-card:nth-child(4) { animation-delay: .21s; }
  .purchase-card:hover { translate: 0 -3px; box-shadow: 0 6px 14px #2b15131a; }
  .primary:not(:disabled):hover { transform: translateY(-2px); }
  .topup-art::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(112deg, transparent 38%, #fff3 50%, transparent 62%); pointer-events: none; animation: art-sweep 6s ease infinite; }
  .reward-badge { transition: transform .18s, background-color .18s; }
  .amount-control:has(input:active) .reward-badge { transform: scale(1.07); background: #ffdedf; }
  .toast { animation: section-in .24s ease-out both; }
}

@keyframes boot-logo { from { transform: translateY(8px) scale(.88); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }
@keyframes boot-block { from { opacity: .22; transform: translateY(2px); } to { opacity: 1; transform: translateY(-3px); } }
@keyframes section-in { from { opacity: .55; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes scroll-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }
@keyframes pixel-rise { 0% { opacity: 0; translate: 0 0; } 18% { opacity: .8; } 75% { opacity: .65; } 100% { opacity: 0; translate: 18px -130px; } }
@keyframes art-sweep { 0%, 62% { transform: translateX(-105%); } 93%, 100% { transform: translateX(105%); } }

@media (max-width: 1100px) {
  .hero h1 { font-size: 60px; }
  .hero-tagline { font-size: 29px; }
}

@media (max-width: 920px) {
  .site-header.container, .hero { width: calc(100% - 64px); }
  .hero { gap: 24px; }
  .hero h1 { font-size: 47px; }
  .hero-tagline { font-size: 24px; }
  .hero-description { font-size: 15px; }
  .main-nav { gap: 8px 16px; }
  .richest-section { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .richest-heading { grid-area: auto; justify-content: space-between; text-align: left; }
  .richest-results { grid-area: auto; }
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 741px) and (max-height: 620px) {
  .hero { padding-block: 42px 94px; }
  .hero-art { max-height: max(250px, calc(100svh - 205px)); }
}

@media (max-width: 740px) {
  .container, .site-header.container, .hero { width: calc(100% - 28px); }
  .site-header { display: flex; min-height: 68px; gap: 10px; }
  .brand { width: 58px; }
  .brand img { height: 58px; }
  .header-cta { order: 1; margin-left: auto; min-height: 42px; }
  .menu-toggle { order: 2; width: 42px; height: 42px; display: grid; place-content: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
  .menu-toggle span { display: block; width: 17px; height: 2px; background: var(--ink); }
  .main-nav { display: none; }
  .main-nav.is-open { position: absolute; top: calc(100% + 4px); inset-inline: 0; display: grid; justify-content: stretch; gap: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
  .main-nav a { padding: 10px; }
  .hero { grid-template-columns: 1fr; gap: 19px; min-height: 0; padding-block: 35px 90px; }
  .hero-transition { gap: 8px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: 47px; }
  .hero-tagline { font-size: 24px; }
  .hero-actions { margin-top: 17px; gap: 8px 10px; }
  .hero-art { width: min(100%, 470px); justify-self: center; }
  .section-heading h2 { font-size: 19px; }
  .recent-section { margin-block: 26px; }
  .shop-products { --product-columns: 2; --product-gap: 10px; }
  .shop-store .section-heading h2 { font-size: 24px; }
  .product-card { grid-template-rows: 106px 1fr; min-height: 210px; }
  .product-card h4 { font-size: 15px; }
  .product-buy.button { min-height: 44px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .richest-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .footer-grid-store :is(.footer-legal, .footer-controller) { grid-column: 1 / -1; }
  .community-banner { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-right: 0; }
  .community-watermark { right: -35px; bottom: -18px; width: 162px; height: 162px; opacity: .23; }
  .community-copy { grid-row: 1; padding: 23px 16px 9px; }
  .community-copy h2 { font-size: 28px; }
  .community-art { min-height: 122px; border-radius: 0 0 var(--radius) var(--radius); }
  .community-art img { width: 152px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 39px; }
  .hero-tagline { font-size: 21px; }
  .hero-actions .button, .hero-discord { padding-inline: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .purchase-card { gap: 6px; padding: 7px; }
  .purchase-card img { width: 28px; height: 28px; }
  .purchase-card:has(.purchase-price) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; row-gap: 0; }
  .purchase-card:has(.purchase-price) img { grid-row: span 2; }
  .purchase-price { grid-column: 2; margin-left: 0; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
