:root {
  --accent: #1584e8;
  --accent-dark: #0875dc;
  --accent-rgb: 21, 132, 232;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  background: #f5f8fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.92), rgba(245, 248, 251, 0.96) 44%, #f5f8fb 100%),
    url("./assets/page-bg.jpg") center top / 100% auto no-repeat;
}

button,
input {
  font: inherit;
}

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

.shell {
  min-height: 100vh;
  padding: 18px 0 42px;
}

.topbar,
.review-note,
.campaign,
.profile-strip,
.commerce-panel,
.policy-page,
.site-footer {
  width: min(1168px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b4a61;
  font-size: 15px;
  font-weight: 800;
}

.brand-link img {
  width: 120px;
  height: auto;
  display: block;
}

.language-pill {
  border: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #334155;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(55, 84, 108, 0.12);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.language-pill:hover,
.language-pill:focus-visible {
  color: var(--accent);
  outline: none;
  box-shadow:
    0 8px 20px rgba(55, 84, 108, 0.12),
    0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.review-note {
  min-height: 58px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 8px;
  color: #244761;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(37, 65, 87, 0.12);
}

.review-note strong {
  flex: 0 0 auto;
  color: #102a43;
  font-size: 15px;
  font-weight: 900;
}

.review-note span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.campaign {
  min-height: 184px;
  margin-top: 16px;
  padding: 30px 34px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 24, 58, 0.76), rgba(26, 78, 126, 0.36) 48%, rgba(255, 255, 255, 0.08)),
    url("./assets/sky-banner.jpg") center / cover no-repeat;
  box-shadow: 0 16px 36px rgba(31, 80, 119, 0.18);
}

.campaign::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(2, 14, 32, 0.22));
  pointer-events: none;
}

.campaign-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #103356;
  background: rgba(255, 242, 184, 0.94);
  font-size: 13px;
  font-weight: 900;
}

.campaign h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.profile-strip {
  min-height: 104px;
  margin-top: -22px;
  padding: 22px 26px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(37, 65, 87, 0.14);
}

.game-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background:
    radial-gradient(circle at 62% 22%, #fff4b8 0 14%, transparent 15%),
    linear-gradient(145deg, #e5f7ff, #f9fbff 56%, #ffe9c0);
  box-shadow: inset 0 0 0 1px rgba(14, 126, 220, 0.16);
  font-weight: 900;
}

.game-copy strong {
  display: block;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
}

.game-copy span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.role-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.role-form input {
  width: 210px;
  height: 42px;
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  padding: 0 16px;
  color: #0f172a;
  background: #f8fbff;
  font-size: 14px;
  font-weight: 800;
}

.role-form button,
.pay-button {
  border: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.24);
  font-size: 14px;
  font-weight: 800;
}

.role-form button {
  cursor: pointer !important;
  opacity: 1;
}

.role-form button:hover,
.role-form button:focus-visible {
  cursor: pointer !important;
}

.pay-button {
  cursor: not-allowed;
  opacity: 0.72;
}

.role-message {
  width: 100%;
  margin: -2px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.role-message.success {
  color: #047857;
}

.role-message.error {
  color: #dc2626;
}

.commerce-panel {
  margin-top: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(37, 65, 87, 0.14);
  overflow: hidden;
}

.primary-tabs {
  height: 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  border-bottom: 1px solid #e9eef5;
}

.primary-tabs span {
  position: relative;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 22px;
  font-weight: 900;
}

.primary-tabs .active {
  color: var(--accent);
}

.primary-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  transform: translateX(-50%);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: 620px;
}

.catalog-area {
  padding: 34px 32px 30px;
  border-right: 1px solid #e9eef5;
}

.category-title {
  display: inline-flex;
  align-items: center;
  height: 34px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.product-card {
  min-height: 308px;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(37, 65, 87, 0.12);
}

.product-card.selected {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 18px 34px rgba(var(--accent-rgb), 0.2);
}

.product-art {
  min-height: 194px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.85), transparent 22%),
    linear-gradient(145deg, #fff8da, #f2c767);
}

.product-glow {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  position: absolute;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 242, 162, 0.18) 62%, transparent 70%);
  box-shadow: 0 0 42px rgba(255, 219, 103, 0.9);
}

.product-object {
  width: 94px;
  height: 64px;
  position: relative;
  z-index: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5c9, #fff 42%, #ffc854);
  box-shadow:
    -20px 16px 0 -8px rgba(238, 169, 49, 0.9),
    18px 14px 0 -9px rgba(255, 244, 188, 0.95),
    0 20px 30px rgba(112, 72, 16, 0.22);
  transform: rotate(-13deg);
}

.product-object::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 34px;
  top: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe082, #fff7d5);
  box-shadow: inset 0 0 0 2px rgba(199, 132, 28, 0.22);
}

.tone-amber .product-art {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.85), transparent 22%),
    linear-gradient(145deg, #fff0c3, #eda13c);
}

.tone-rose .product-art {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.85), transparent 22%),
    linear-gradient(145deg, #ffe0e0, #f0877c);
}

.tone-sky .product-art {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(145deg, #dff5ff, #83c8ff);
}

.tone-mint .product-art {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(145deg, #e0fff0, #72d9aa);
}

.tone-violet .product-art {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.86), transparent 22%),
    linear-gradient(145deg, #efe4ff, #a58cf2);
}

.product-info {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.product-name {
  min-height: 22px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.product-subtitle {
  min-height: 36px;
  color: #718096;
  font-size: 13px;
  line-height: 1.4;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-bottom strong {
  color: #111827;
  font-size: 15px;
}

.cart-chip {
  width: 72px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.product-card:not(.selected) .cart-chip {
  background: #d5d8dc;
}

.bonus-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: #ff6b52;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(255, 107, 82, 0.24);
}

.summary-area {
  padding: 38px 26px;
}

.summary-area h2,
.payment-block h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
}

.selected-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.mini-art {
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(145deg, #fff8da, #f2c767);
}

.mini-art span {
  width: 42px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff8ce, #fff, #ffc34c);
  box-shadow:
    -9px 7px 0 -3px rgba(238, 169, 49, 0.9),
    8px 8px 0 -4px rgba(255, 244, 188, 0.95);
  transform: rotate(-13deg);
}

.selected-line strong {
  display: block;
  font-size: 16px;
}

.selected-line p {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  color: #667085;
  background: #f2f5f8;
  font-size: 13px;
  line-height: 1.5;
}

.selected-line .bonus-summary {
  color: #075da9;
  background: #eef7ff;
  font-weight: 900;
}

.payment-block {
  margin-top: 24px;
}

.channel-button {
  min-height: 66px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #0f172a;
  background: #eef7ff;
  box-shadow: 0 0 0 1px var(--accent);
  font-weight: 900;
}

.channel-button img {
  width: 76px;
  height: 24px;
  object-fit: contain;
}

.amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
  color: #64748b;
}

.amount-row strong {
  color: #111827;
  font-size: 24px;
}

.pay-button {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
}

.acceptance {
  margin: 12px 0 0;
  color: #7b8da1;
  font-size: 12px;
  line-height: 1.6;
}

.policy-page {
  margin-top: 26px;
}

.policy-back {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 14px;
  font-weight: 900;
}

.policy-article {
  margin-top: 14px;
  padding: 34px;
  border: 1px solid #e7eef5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(31, 80, 119, 0.12);
}

.policy-article header {
  padding-bottom: 20px;
  border-bottom: 1px solid #edf2f7;
}

.policy-article header p {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.policy-article h1 {
  margin: 0;
  color: #0f172a;
  font-size: 32px;
  line-height: 1.25;
}

.policy-article section {
  padding-top: 22px;
}

.policy-article h2 {
  margin: 0;
  color: #163b5b;
  font-size: 18px;
  line-height: 1.4;
}

.policy-article p,
.policy-article li {
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
}

.policy-article p {
  margin: 10px 0 0;
}

.policy-article ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.site-footer {
  margin-top: 28px;
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
  color: #3d5b75;
  font-weight: 800;
}

.site-footer p {
  margin: 5px 0;
}

@media (max-width: 1020px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-area {
    border-right: 0;
  }

  .summary-area {
    border-top: 1px solid #e9eef5;
  }

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

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.76), #f5f8fb 58%),
      url("./assets/page-bg.jpg") center top / auto 760px no-repeat;
  }

  .shell {
    padding: 10px 0 42px;
  }

  .topbar,
  .review-note,
  .campaign,
  .profile-strip,
  .commerce-panel,
  .policy-page,
  .site-footer {
    width: min(100% - 24px, 440px);
  }

  .brand-link span {
    display: none;
  }

  .brand-link img {
    width: 104px;
  }

  .review-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding: 12px 14px;
  }

  .review-note span {
    text-align: left;
  }

  .campaign {
    min-height: 190px;
    margin-top: 12px;
    padding: 22px 20px;
  }

  .campaign h1 {
    font-size: 32px;
  }

  .profile-strip {
    min-height: 82px;
    margin-top: -14px;
    padding: 16px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  .game-mark {
    width: 46px;
    height: 46px;
  }

  .game-copy strong {
    font-size: 18px;
  }

  .game-copy span {
    font-size: 12px;
  }

  .role-form {
    grid-column: 1 / -1;
    gap: 8px;
  }

  .role-form input {
    width: 100%;
    min-width: 0;
    height: 38px;
  }

  .role-form button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }

  .commerce-panel {
    margin-top: 18px;
  }

  .primary-tabs {
    height: 60px;
  }

  .primary-tabs span {
    font-size: 18px;
  }

  .catalog-area {
    padding: 26px 14px;
  }

  .category-title {
    padding: 0 10px;
    font-size: 17px;
  }

  .product-grid {
    gap: 14px;
  }

  .product-card {
    min-height: 252px;
  }

  .product-art {
    min-height: 148px;
  }

  .product-glow {
    width: 88px;
    height: 88px;
  }

  .product-object {
    width: 74px;
    height: 52px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    min-height: 38px;
    font-size: 13px;
    line-height: 1.45;
  }

  .product-subtitle {
    min-height: 34px;
    font-size: 12px;
    line-height: 1.35;
  }

  .cart-chip {
    width: 52px;
    height: 32px;
  }

  .bonus-ribbon {
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .summary-area {
    padding: 26px 16px;
  }

  .amount-row strong {
    font-size: 19px;
  }

  .policy-article {
    padding: 24px 18px;
  }

  .policy-article h1 {
    font-size: 26px;
  }

  .policy-article h2 {
    font-size: 16px;
  }

  .site-footer {
    font-size: 12px;
  }
}
