/* Shared storefront polish. Layout remains owned by each page stylesheet. */
:root {
  --font-ui: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display-ui: "Saira Semi Condensed", "Noto Sans SC", system-ui, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-2xl: 40px;
  --leading-tight: 1.2;
  --leading-body: 1.65;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --control-height: 44px;
  --polish-focus: #ff4655;
  --polish-blue: #315fe8;
  --polish-ink: #17191d;
  --polish-muted: #68717d;
  --polish-line: #e4e7ec;
  --polish-surface: #ffffff;
  --polish-shadow: 0 14px 36px rgba(23, 30, 42, .08);
}

/* Checkout coupon rules */
.checkout-summary dl .checkout-summary__discount,
.checkout-summary dl .checkout-summary__discount dd { color: #267254; }
.checkout-coupon {
  margin: 0 20px 14px;
  padding: 13px;
  border: 1px solid #e2e6eb;
  border-radius: 11px;
  background: #fafbfc;
}
.checkout-coupon > label {
  display: block;
  margin-bottom: 8px;
  color: #626a76;
  font-size: 10px;
  font-weight: 700;
}
.checkout-coupon > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 7px;
}
.checkout-coupon input {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  outline: 0;
  color: #252b35;
  background: #fff;
  font-size: 11px;
  text-transform: uppercase;
}
.checkout-coupon input:focus {
  border-color: #7f8fa3;
  box-shadow: 0 0 0 3px rgba(127, 143, 163, .14);
}
.checkout-coupon button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #26364b;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.checkout-coupon button:disabled { cursor: wait; opacity: .65; }
.checkout-coupon p {
  min-height: 14px;
  margin: 7px 0 0;
  color: #7b838e;
  font-size: 9px;
  line-height: 1.45;
}
.checkout-coupon p.is-success { color: #267254; }
.checkout-coupon p.is-error { color: #c32d44; }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Shared type scale: compact labels, comfortable body copy, decisive headings. */
.catalog-page, .page-main, .page-footer, .catalog-nav,
.auth-page, .account-page, .legal-page {
  font-family: var(--font-ui);
}

.catalog-page p, .page-main p, .page-footer, .legal-page p {
  line-height: var(--leading-body);
}

.catalog-page .catalog-heading h1,
.page-main .page-title { line-height: var(--leading-tight); }

.catalog-page .catalog-crumb,
.catalog-page .catalog-count,
.catalog-page .catalog-item__meta,
.page-main .page-kicker { font-size: var(--text-xs); }

.catalog-page .catalog-item__title { font-size: var(--text-sm); line-height: 1.45; }

.catalog-page .catalog-search input,
.catalog-page .catalog-filter button { min-height: var(--control-height); }

a, button, input, select, textarea { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--polish-focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Light storefront pages */
.catalog-page .catalog-filter,
.catalog-page .catalog-content,
.page-main .about-point,
.page-main .news-item,
.page-main .about-hero-image {
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 10px 28px rgba(16, 24, 40, .045);
}

.catalog-page .catalog-item__image,
.catalog-page .featured-game,
.catalog-page .topup-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.catalog-page .catalog-item:hover .catalog-item__image,
.catalog-page .featured-game:hover,
.catalog-page .topup-card:hover { transform: translateY(-3px); box-shadow: var(--polish-shadow); }
.catalog-page .catalog-search input:focus { box-shadow: 0 0 0 3px rgba(49, 95, 232, .12); border-color: var(--polish-blue); }
.catalog-page .catalog-filter button.is-active { box-shadow: inset 3px 0 0 var(--polish-blue); }
.catalog-page .catalog-empty a:hover { background: var(--polish-ink); color: #fff; border-color: var(--polish-ink); }

.catalog-page .catalog-filter,
.catalog-page .catalog-content,
.catalog-page .catalog-item__image,
.catalog-page .featured-game,
.catalog-page .topup-card { border-radius: var(--radius-md); }

.page-main .about-point,
.page-main .news-item,
.page-main .about-hero-image { border-radius: var(--radius-md); }

.page-main .page-title { font-size: clamp(34px, 4vw, var(--text-2xl)); }
.page-main .page-lead { font-size: var(--text-md); line-height: 1.8; }
.page-main .about-point strong { font-size: var(--text-lg); line-height: var(--leading-tight); }
.page-main .news-item h2 { font-size: var(--text-lg); line-height: 1.35; }

/* Recharge flow keeps its dark visual language while sharing the same rhythm. */
.redeem-page .redeem-card h1 { line-height: var(--leading-tight); }
.redeem-page .redeem-card .subtitle,
.redeem-page .form-hint,
.redeem-page .announcement { line-height: var(--leading-body); }
.redeem-page .form-input { min-height: 48px; font-size: var(--text-md); }
.redeem-page .btn { min-height: 48px; font-size: var(--text-md); }
.redeem-page .form-group + .form-group { margin-top: var(--space-6); }

/* Denomination cards: same DOM and grid, upgraded hierarchy and selection feedback. */
.game-page .denom-card,
.denom-card {
  min-height: 224px;
  padding: 20px 18px 18px;
  gap: 12px;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 5px 16px rgba(15, 23, 42, .045);
  isolation: isolate;
}

.denom-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--theme-border) 72%, #d8dee8);
  background: linear-gradient(180deg, var(--theme-light) 0%, #fff 72%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .09);
}

.denom-card--active {
  border: 1px solid color-mix(in srgb, var(--theme-border) 68%, #dfe4eb);
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme-light) 18%, #fff) 0%, #fff 78%);
  box-shadow: 0 5px 14px rgba(15, 23, 42, .055);
  transform: none;
}

.denom-card__icon {
  width: 94px;
  height: 94px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.denom-card__icon-img { width: 72px; height: 72px; }
.denom-card__icon-text {
  display: grid;
  place-items: center;
  min-width: 64px;
  min-height: 64px;
  padding: 4px;
  color: var(--theme-color);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.denom-card__body { gap: 10px; }
.denom-card__value { font-size: 17px; font-weight: 750; letter-spacing: .01em; }
.denom-card__divider { background: #edf0f4; }
.denom-card__prices { gap: 5px; line-height: 1; }
.denom-card__current { font-size: 21px; font-weight: 760; letter-spacing: -.015em; }
.denom-card__original { font-size: 11px; }

.denom-card__check {
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--theme-color) 28%, transparent);
}

@media (max-width: 640px) {
  .denom-card { min-height: 198px; padding: 16px 10px 14px; gap: 9px; }
  .denom-card__icon { width: 82px; height: 82px; }
  .denom-card__icon-img { width: 62px; height: 62px; }
  .denom-card__icon-text { min-width: 56px; min-height: 56px; font-size: 24px; }
  .denom-card__value { font-size: 15px; }
  .denom-card__current { font-size: 19px; }
  .denom-card:hover, .denom-card--active { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .denom-card:hover, .denom-card--active { transform: none; }
}

/* Signed-in account control shared by storefront and game pages. */
.nav__auth-user {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 4px;
  border: 1px solid #e4e7ec;
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.nav__auth-profile {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  padding: 2px 10px 2px 2px;
  border-radius: 9px;
  color: var(--text, #111827);
}
.nav__auth-profile:hover { background: #f7f8fa; }
.nav__auth-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand, #ff4655) 88%, #fff), var(--brand, #ff4655));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.nav__auth-copy { min-width: 0; display: grid; gap: 1px; line-height: 1.15; }
.nav__auth-copy strong {
  max-width: 112px;
  overflow: hidden;
  color: var(--text, #111827);
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__auth-copy small { color: var(--text-3, #8b93a1); font-size: 10px; font-weight: 500; }
.nav__auth-logout {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  padding: 0 9px;
  border-left: 1px solid #eceef2;
  border-radius: 0 8px 8px 0;
  color: var(--text-3, #7c8491);
  font-size: 11px;
  white-space: nowrap;
}
.nav__auth-logout:hover { background: #fff4f4; color: #c93440; }
.nav__auth-profile:focus-visible,
.nav__auth-logout:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand, #ff4655) 35%, transparent); outline-offset: 2px; }

@media (max-width: 760px) {
  .nav__auth-user { border: 0; padding: 0; box-shadow: none; background: transparent; }
  .nav__auth-profile { padding-right: 2px; }
  .nav__auth-copy, .nav__auth-logout { display: none; }
  .nav__auth-avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
}

/* Responsive usability: keep compact controls easy to reach on touch screens. */
@media (max-width: 760px) {
  .nav__logo,
  .catalog-brand,
  .page-brand,
  .legal-brand,
  .auth-mobile-brand,
  .store-nav .brand,
  .redeem-logo {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .nav__search-input,
  .catalog-search input {
    min-height: 40px;
  }

  .catalog-account,
  .page-account,
  .auth-back,
  .catalog-filter button,
  .auth-tab {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .auth-tab { min-width: 44px; justify-content: center; }
}

@media (max-width: 560px) {
  .nav__currency,
  .nav__auth-btn {
    min-height: 40px;
  }

  .notice__more {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
  }

  .notice__close {
    width: 36px;
    height: 36px;
  }
}

/* Store navigation — user-first two-tier commerce header */
.nav {
  border-bottom: 1px solid rgba(25, 29, 36, .09);
  background: rgba(253, 252, 249, .97);
  box-shadow: 0 7px 24px rgba(28, 32, 40, .045);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  width: min(100%, 1280px);
  max-width: 1280px;
  height: 108px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  grid-template-rows: 62px 46px;
  grid-template-areas:
    "logo search right"
    "logo links right";
  align-items: center;
  column-gap: 18px;
  row-gap: 0;
  padding: 0 40px;
}

.nav__logo {
  grid-area: logo;
  min-width: 0;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  border-radius: 8px;
  transition: opacity .18s ease, transform .18s ease;
}
.nav__logo:hover { opacity: .76; transform: translateY(-1px); }
.nav__logo-img { width: 110px; height: 36px; }
.nav__logo-text { color: #535861; font-size: 10.5px; font-weight: 720; letter-spacing: .14em; }

.nav__links {
  grid-area: links;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  gap: 6px;
  padding: 0;
  border: 0;
  border-top: 1px solid #ebe8e3;
  background: transparent;
}
.nav__link {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 9px 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #555b65;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nav__link:hover {
  border-color: #e4e1dc;
  color: #1e222a;
  background: #fff;
  box-shadow: 0 7px 18px rgba(26, 30, 38, .09);
  transform: translateY(-2px);
}
.nav__link::after {
  display: none;
  content: none;
}
.nav__link--active {
  border-color: #272c35;
  color: #fff;
  background: #272c35;
  font-weight: 760;
  box-shadow: 0 7px 18px rgba(26, 30, 38, .14);
}
.nav__link--active:hover {
  border-color: #363c47;
  color: #fff;
  background: #363c47;
  box-shadow: 0 9px 22px rgba(26, 30, 38, .18);
}

.nav__search { grid-area: search; order: initial; width: min(100%, 600px); max-width: 600px; min-width: 0; justify-self: center; margin: 0; }
.nav__search-input {
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid #dedbd5;
  border-radius: 12px;
  background: #f6f4f1;
  color: #232730;
  font-size: 14px;
  font-weight: 520;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.nav__search-input:hover { border-color: #c9c5bf; background: #faf9f7; }
.nav__search-input:focus { border-color: #c87882; background: #fff; box-shadow: 0 0 0 3px rgba(216,60,78,.08); }
.nav__search-input::placeholder { color: #9a9da4; font-weight: 480; }
.nav__search-icon { left: 14px; width: 17px; height: 17px; color: #747983; stroke-width: 1.8; }
.nav__search-input::-webkit-search-cancel-button { cursor: pointer; opacity: .55; }

.nav__right {
  grid-area: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  transform: translateX(16px);
}
.nav__language {
  flex: 0 0 auto;
  height: 44px;
  padding: 2px;
  border: 1px solid #e4e0da;
  border-radius: 10px;
  background: #f3f1ed;
}
.nav__language button { min-width: 38px; height: 38px; border-radius: 8px; color: #686e78; font-size: 13px; font-weight: 720; touch-action: manipulation; }
.nav__language button[aria-pressed="true"],
.nav__language button.is-active { color: #b42d3e; background: #fff; box-shadow: 0 2px 7px rgba(29,33,40,.09); }
.nav__language button:hover { color: #292d35; background: rgba(255,255,255,.62); }
.nav__currency {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 0;
  padding: 0 13px;
  border: 1px solid #e4e0da;
  border-radius: 9px;
  background: #fff;
  color: #666c76;
  font-size: 12.5px;
  font-weight: 780;
  letter-spacing: .07em;
  touch-action: manipulation;
}
.nav__currency::before { content: none; }
.nav__currency:hover { border-color: #c9c5bf; background: #fff; color: #242830; }
.currency-menu {
  position: absolute;
  z-index: 1200;
  width: 220px;
  padding: 8px;
  border: 1px solid #dedbd6;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 18px 48px rgba(26, 30, 38, .16);
  max-height: min(560px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.currency-menu[hidden] { display: none; }
.currency-menu button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #272b33;
  text-align: left;
  cursor: pointer;
}
.currency-menu button:hover,
.currency-menu button:focus-visible { background: #f4f1ec; outline: none; }
.currency-menu button[aria-checked="true"] { background: #fff0f1; color: #aa2b3c; }
.currency-menu button:disabled { opacity: .38; cursor: not-allowed; }
.currency-menu button strong { font-size: 13px; letter-spacing: .05em; }
.currency-menu button span { color: #737780; font-size: 12px; }
.currency-menu small { display: block; padding: 8px 10px 3px; color: #858991; font-size: 10.5px; line-height: 1.5; }

.nav__auth-btn {
  flex: 0 0 auto;
  min-width: 146px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  justify-content: flex-start;
  gap: 9px;
  padding: 7px 11px 7px 7px;
  border: 1px solid #dedbd6;
  border-radius: 12px;
  background: #fff;
  color: #242831;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
  box-shadow: 0 4px 13px rgba(28, 33, 42, .07);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  touch-action: manipulation;
}
.nav__auth-btn::before {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: block;
  border-radius: 9px;
  background-color: #fff0f1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c73547' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5.5 19c.8-3.4 3-5.2 6.5-5.2s5.7 1.8 6.5 5.2'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  content: '';
}
.nav__auth-btn::after { margin-left: auto; color: #9a9ea6; content: '›'; font-size: 18px; font-weight: 500; line-height: 1; }
.nav__auth-btn:hover { border-color: #c8c4be; background: #fff; color: #171b22; box-shadow: 0 8px 20px rgba(28,33,42,.11); transform: translateY(-1px); }
.nav__auth-btn:hover::before { background-color: #ffe8ea; }
.nav__auth-btn:hover::after { color: #c73547; }
.nav__auth-user { border-color: #dfdcd7; border-radius: 11px; background: rgba(255,255,255,.68); box-shadow: none; }
.nav__auth-user { flex: 0 0 auto; }
.nav__auth-profile:hover { background: #f2f0ec; }

.nav__logo:focus-visible,
.nav__link:focus-visible,
.nav__language button:focus-visible,
.nav__currency:focus-visible,
.nav__auth-btn:focus-visible {
  outline: 2px solid rgba(200, 52, 69, .62);
  outline-offset: 3px;
}

.nav__link { touch-action: manipulation; }

@media (max-width: 1280px) {
  .nav__inner { grid-template-columns: 210px minmax(0, 1fr) 300px; padding: 0 32px; column-gap: 16px; }
  .nav__links { gap: 5px; }
  .nav__link { min-width: 0; padding-right: 8px; padding-left: 8px; }
  .nav__currency { display: inline-flex; }
}

@media (max-width: 1080px) {
  .nav__logo-text { display: none; }
  .nav__inner { grid-template-columns: 130px minmax(0, 1fr) 150px; padding: 0 28px; column-gap: 16px; }
  .nav__links { gap: 4px; }
  .nav__link { min-width: 0; padding-right: 7px; padding-left: 7px; font-size: 13px; }
  .nav__language, .nav__currency { display: none; }
  .nav__right { transform: none; }
}

@media (max-width: 920px) {
  .nav__inner {
    height: 68px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 68px;
    grid-template-areas: "logo search right";
    padding: 0 18px;
    column-gap: 13px;
  }
  .nav__links { display: none; }
  .nav__search { max-width: none; }
  .nav__language { display: none; }
  .nav__right { gap: 6px; }
  .nav__currency { min-height: 38px; display: inline-flex; padding: 0 9px; font-size: 11px; }
  .nav__auth-btn { min-width: 92px; }
}

@media (max-width: 560px) {
  .nav__inner { height: 64px; padding: 0 14px; gap: 10px; }
  .nav__logo-img { width: 64px; height: 22px; }
  .nav__search { min-width: 0; }
  .nav__search-input { height: 38px; padding-left: 34px; font-size: 12px; }
  .nav__search-icon { left: 8px; }
  .nav__right { gap: 5px; }
  .nav__currency { min-width: 44px; min-height: 36px; justify-content: center; padding: 0 7px; font-size: 10px; }
  .nav__auth-btn { min-width: 0; min-height: 36px; gap: 0; padding: 8px 9px; font-size: 10.5px; }
  .nav__auth-btn::before, .nav__auth-btn::after { display: none; }
  .currency-menu { width: min(250px, calc(100vw - 24px)); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .nav__logo, .nav__link, .nav__auth-btn { transition: none; }
  .nav__logo:hover, .nav__link:hover, .nav__auth-btn:hover { transform: none; }
}

/* Shared storefront access and responsive navigation. */
.skip-link {
  position: fixed;
  z-index: 5000;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  background: #202733;
  font-size: 13px;
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; transform: translateY(0); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
button.nav__link { font: inherit; cursor: pointer; }
button.nav__link:not(.nav__link--active) { background: transparent; }

.account-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 16px;
  border: 0;
  border-radius: 7px;
  color: #4c5058;
  background: transparent;
  font: inherit;
  text-align: left;
}
.account-menu button:hover { color: var(--ink); background: #f5f6f7; }
.account-menu button:focus-visible { outline: 2px solid #c73547; outline-offset: 2px; }

@media (max-width: 1180px) {
  .catalog-view .catalog-nav { height: auto; }
  .catalog-view .catalog-nav__inner {
    min-height: 118px;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow: visible;
  }
  .catalog-view .catalog-nav__links {
    order: 4;
    width: 100%;
    display: flex;
    flex: 1 0 100%;
    gap: 4px;
    overflow-x: auto;
    padding-top: 4px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-view .catalog-nav__links::-webkit-scrollbar { display: none; }
  .catalog-view .catalog-nav__links a {
    min-height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    touch-action: manipulation;
  }
}

@media (max-width: 920px) {
  .game-page .nav__inner {
    height: auto;
    min-height: 114px;
    grid-template-rows: 68px 46px;
    grid-template-areas: "logo search right" "links links links";
  }
  .game-page .nav__links,
  .checkout-flow .nav__links {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .game-page .nav__links { margin: 0 -18px; padding: 0 18px; }
  .game-page .nav__links::-webkit-scrollbar,
  .checkout-flow .nav__links::-webkit-scrollbar { display: none; }
  .game-page .nav__link,
  .checkout-flow .nav__link {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 14px;
    white-space: nowrap;
    touch-action: manipulation;
  }
  .checkout-flow .nav__inner {
    height: auto;
    min-height: 110px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 64px 46px;
    grid-template-areas: "logo . right" "links links links";
  }
  .checkout-flow .nav__links { margin: 0 -18px; padding: 0 18px; }
}

@media (max-width: 860px) {
  .account-view .store-nav__inner {
    height: auto;
    min-height: 114px;
    flex-wrap: wrap;
    align-content: center;
    gap: 0 14px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .account-view .store-nav__links {
    order: 4;
    width: 100%;
    display: flex;
    flex: 1 0 100%;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .account-view .store-nav__links::-webkit-scrollbar { display: none; }
  .account-view .store-nav__links a {
    min-height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    touch-action: manipulation;
  }
}

@media (max-width: 560px) {
  .game-page .nav__inner {
    height: auto;
    min-height: 110px;
    grid-template-rows: 64px 46px;
  }
  .game-page .nav__links { margin: 0 -14px; padding: 0 14px; }
  .checkout-flow .nav__inner { height: auto; padding-right: 14px; padding-left: 14px; }
  .checkout-flow .nav__links { margin: 0 -14px; padding: 0 14px; }
  .breadcrumb__inner {
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
  }
  .breadcrumb__inner a[href="/store#hot"],
  .breadcrumb__inner a[href="/store#hot"] + .breadcrumb__sep { display: none; }
  .breadcrumb__inner #breadGame {
    min-width: 0;
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-footer nav a,
  .legal-footer nav a,
  .footer__links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
  }
}

@media (max-width: 760px) {
  .catalog-view .catalog-nav__inner {
    min-height: 108px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 62px 46px;
    grid-template-areas: "brand search account" "links links links";
    gap: 0 8px;
    padding: 0 12px;
  }
  .catalog-view .catalog-brand { grid-area: brand; }
  .catalog-view .catalog-search { grid-area: search; width: 100%; min-width: 0; }
  .catalog-view .catalog-account { grid-area: account; }
  .catalog-view .catalog-nav__links {
    grid-area: links;
    width: auto;
    min-width: 0;
    margin: 0 -12px;
    padding: 2px 12px 0;
  }
}

/* Product information, guide, FAQ, reviews and recommendations. */
.info-tabs {
  gap: 6px;
  padding: 6px;
  margin-bottom: 12px;
  border-color: #e7eaf0;
  border-radius: 14px;
  background: #f7f8fa;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .025);
}

.info-tab {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 9px;
  color: #707886;
  font-size: 13px;
  font-weight: 600;
}

.info-tab:hover { color: var(--text); background: rgba(255,255,255,.72); }
.info-tab--active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .07), inset 0 0 0 1px rgba(15, 23, 42, .035);
}

.info-panels {
  margin-bottom: 20px;
  border-color: #e7eaf0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.info-panel { padding: 28px 30px; }
.info-panel p { max-width: 880px; font-size: 14px; line-height: 1.8; }
.info-panel h3 { margin-bottom: 16px; font-size: 16px; line-height: 1.35; }

.info-steps {
  gap: 8px;
  padding-left: 0;
  counter-reset: guide-step;
  list-style: none;
}

.info-steps li {
  position: relative;
  min-height: 40px;
  padding: 10px 14px 10px 48px;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  background: #fafbfc;
  line-height: 1.55;
  counter-increment: guide-step;
}

.info-steps li::before {
  content: counter(guide-step);
  position: absolute;
  left: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--brand-soft) 72%, #fff);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  transform: translateY(-50%);
}

.info-faq { gap: 0; }
.info-faq dt {
  padding: 15px 16px 6px;
  border: 1px solid #edf0f4;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fafbfc;
  font-size: 14px;
  font-weight: 700;
}
.info-faq dd {
  margin: 0 0 10px;
  padding: 0 16px 15px;
  border: 1px solid #edf0f4;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fafbfc;
  font-size: 13px;
  line-height: 1.7;
}

#panelReviews p {
  margin: 0 auto;
  padding: 36px 16px !important;
  color: #8a919d !important;
  font-size: 14px !important;
  letter-spacing: .08em;
}

.related-products {
  padding: 24px;
  border-color: #e7eaf0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.related-products__title {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.3;
}
.related-products__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  gap: 13px;
  border-color: #e8ebf0;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #fafbfd);
}
.related-item:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, #dfe4eb);
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-soft) 16%, #fff), #fff);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .065);
  transform: translateY(-2px);
}
.related-item__icon {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  color: var(--brand);
  font-size: 20px;
}
.related-item__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.related-item__name { font-size: 13.5px; line-height: 1.45; }
.related-item__arrow {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
}
.related-item__arrow::before {
  content: attr(data-price);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .info-tabs { gap: 3px; padding: 4px; overflow-x: auto; }
  .info-tab { min-width: max-content; min-height: 40px; padding: 9px 13px; }
  .info-panel { padding: 22px 18px; }
  .info-steps li { padding-left: 44px; }
  .related-products { padding: 18px 16px; }
  .related-products__grid { grid-template-columns: 1fr; gap: 9px; }
  .related-item { min-height: 76px; grid-template-columns: 50px minmax(0, 1fr) auto; padding: 12px; }
  .related-item__icon { width: 50px; height: 50px; }
}

.page-main .about-point:hover, .page-main .news-item:hover { transform: translateY(-2px); box-shadow: var(--polish-shadow); }
.page-main .news-tabs button:hover { border-color: var(--polish-blue); color: var(--polish-blue); }

/* Public account/auth/legal pages */
.auth-page input:focus, .account-page input:focus, .account-page select:focus,
.auth-page textarea:focus, .account-page textarea:focus { box-shadow: 0 0 0 3px rgba(255, 70, 85, .12); }

@media (max-width: 760px) {
  .catalog-page .catalog-item:hover .catalog-item__image,
  .catalog-page .featured-game:hover,
  .catalog-page .topup-card:hover,
  .page-main .about-point:hover,
  .page-main .news-item:hover { transform: none; }
  .page-main .page-title { font-size: 32px; }
  .page-main .page-lead { font-size: 15px; line-height: 1.7; }
}

/* Catalog: service navigation is a compact, persistent index rather than a plain button list. */
.catalog-page .catalog-filter {
  padding: 8px;
  border: 1px solid #e3e5e8;
  border-top: 3px solid var(--red, #e43d4d);
  border-radius: 12px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 28px rgba(17, 24, 39, .045);
}

.catalog-page .catalog-filter__label {
  position: relative;
  padding: 12px 10px 13px 26px;
  border-bottom: 1px solid #eceef0;
  color: #4e5662;
  font-size: 10px;
  letter-spacing: .14em;
}

.catalog-page .catalog-filter__label::before {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red, #e43d4d);
  box-shadow: 0 0 0 4px rgba(228, 61, 77, .1);
  content: '';
  transform: translateY(-50%);
}

.catalog-page .catalog-filter > div { padding-top: 7px; }

.catalog-page .catalog-filter button {
  position: relative;
  min-height: 44px;
  margin: 2px 0;
  padding: 10px 10px 10px 14px;
  border-radius: 8px;
  color: #626a76;
  font-size: 13px;
  font-weight: 650;
}

.catalog-page .catalog-filter button > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.catalog-page .catalog-filter__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #8a929c;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.catalog-page .catalog-filter button::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: '';
}

.catalog-page .catalog-filter button small {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f1f2f4;
  color: #8b929c;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.catalog-page .catalog-filter button:hover {
  background: #f8f8f8;
  color: #252a33;
}

.catalog-page .catalog-filter button.is-active {
  background: #fff2f3;
  color: #bd2637;
  box-shadow: none;
}

.catalog-page .catalog-filter button.is-active::before { background: var(--red, #e43d4d); }
.catalog-page .catalog-filter button.is-active small { background: #fff; color: #c63646; }
.catalog-page .catalog-filter button.is-active .catalog-filter__icon { color: #c63646; }

@media (max-width: 760px) {
  .catalog-page .catalog-filter {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .catalog-page .catalog-filter > div { padding: 0 0 5px; }
  .catalog-page .catalog-filter button {
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #e3e5e8;
    background: #fff;
    font-size: 12px;
  }
  .catalog-page .catalog-filter button::before { display: none; }
  .catalog-page .catalog-filter button.is-active { border-color: #f0b9c0; }
  .catalog-page .catalog-filter button small { display: none; }
  .catalog-page .catalog-filter button > span { gap: 7px; }
  .catalog-page .catalog-filter__icon { width: 15px; height: 15px; flex-basis: 15px; }
}
