:root {
  --font-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --bg: #0b0e0f;
  --surface: #111617;
  --surface-2: #171d1f;
  --surface-3: #20282a;
  --line: rgba(224, 234, 234, 0.13);
  --line-strong: rgba(224, 234, 234, 0.26);
  --text: #f3f7f5;
  --muted: #a4b0af;
  --muted-2: #788584;
  --green: #b8f74d;
  --green-soft: #d7ff90;
  --blue: #8abfff;
  --amber: #f4bc65;
  --danger: #ff8b72;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  max-width: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  font-family: var(--font-ui);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1280px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--green);
  transform: skew(-12deg);
}

.brand-mark span {
  width: 4px;
  display: block;
  background: var(--green);
}

.brand-mark span:nth-child(1) { height: 7px; }
.brand-mark span:nth-child(2) { height: 13px; }
.brand-mark span:nth-child(3) { height: 18px; }

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: var(--muted-2);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  margin-left: 34px;
}

.main-nav a,
.main-nav-disabled {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--green);
  color: var(--text);
}

.main-nav-disabled {
  color: var(--muted-2);
  cursor: default;
  opacity: .82;
}

.topbar-status,
.secure-label,
.verified-badge,
.stock-info strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex: 0 0 auto;
}

.topbar-actions a {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-actions a:hover,
.topbar-actions a.active {
  color: var(--green);
}

.status-dot,
.stock-pulse,
.green-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(184, 247, 77, 0.09), 0 0 16px rgba(184, 247, 77, 0.45);
}

.section-kicker,
.workspace-label,
.ad-copy small {
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section-kicker {
  margin-bottom: 9px;
}

.ad-carousel {
  position: relative;
  margin-top: 24px;
}

.ad-slide {
  position: relative;
  min-height: 188px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  background: var(--surface-2);
}

.ad-slide img,
.ad-slide video,
.ad-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ad-slide img {
  object-fit: cover;
  object-position: center 55%;
  transition: transform 450ms ease;
}

.ad-slide video {
  object-fit: cover;
  object-position: center;
}

.ad-slide:hover img {
  transform: scale(1.015);
}

.ad-shade {
  background: linear-gradient(90deg, rgba(5, 8, 9, 0.94) 0%, rgba(5, 8, 9, 0.62) 48%, rgba(5, 8, 9, 0.12) 100%);
}

.ad-copy {
  position: relative;
  z-index: 1;
  width: min(70%, 660px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 28px 32px;
}

.ad-copy strong {
  font-size: 27px;
  line-height: 1.25;
}

.ad-copy > span {
  color: #d6dfdc;
  font-size: 14px;
  line-height: 1.6;
}

.ad-action {
  position: relative;
  z-index: 1;
  margin: 0 28px 28px auto;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.ad-action b {
  margin-left: 9px;
  color: var(--green);
  font-size: 17px;
}

.ad-controls {
  position: absolute;
  right: 28px;
  bottom: 72px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.ad-controls button {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
}

.ad-controls button.active {
  background: var(--green);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(560px, 1.38fr);
  gap: 38px;
  align-items: start;
  flex: 1;
  padding: 34px 0 46px;
}

.service-panel {
  min-width: 0;
  padding: 25px 26px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 17, 0.8);
}

.service-panel h1 {
  font-size: 31px;
  line-height: 1.25;
}

.service-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 13px;
  padding: 13px 0;
  color: var(--muted-2);
}

.process-item + .process-item::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 17px;
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.process-item > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.process-item.active > span {
  border-color: var(--green);
  color: var(--green);
}

.process-item strong,
.process-item small {
  display: block;
}

.process-item strong {
  color: var(--text);
  font-size: 15px;
}

.process-item small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 13px;
}

.quick-help {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.quick-help > strong {
  padding: 17px 0 8px;
  font-size: 14px;
}

.quick-help a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.quick-help a:hover,
.quick-help a:last-child {
  color: var(--green);
}

.redeem-card {
  min-width: 0;
  padding: 30px 34px 23px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 22, 23, 0.96);
  box-shadow: var(--shadow);
}

.card-topline,
.card-heading,
.result-header,
.order-summary,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-topline {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.workspace-label {
  color: var(--muted-2);
}

.workspace-label i {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--green);
}

.secure-label {
  color: var(--muted-2);
  font-size: 13px;
}

.secure-label span {
  color: var(--green);
  font-size: 17px;
}

.card-heading {
  align-items: flex-end;
  padding: 27px 0 22px;
}

.card-heading h2,
.result-header h3 {
  font-size: 27px;
  line-height: 1.25;
}

.card-heading p:not(.section-kicker) {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.step-count {
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 20px;
}

.step-count span {
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 13px;
}

.code-form label,
.preference-panel label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
}

.code-input-wrap {
  min-height: 61px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}

.code-input-wrap:focus-within,
.preference-panel select:focus {
  border-color: rgba(184, 247, 77, 0.72);
  box-shadow: 0 0 0 3px rgba(184, 247, 77, 0.07);
}

.input-prefix {
  padding: 0 15px 0 18px;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 14px;
}

.code-input-wrap input {
  min-width: 0;
  flex: 1;
  padding: 0 10px 0 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-family: "DM Mono", monospace;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verify-button,
.claim-button,
.dialog-primary,
.auth-submit,
.page-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  color: #0b0e0f;
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.verify-button {
  align-self: stretch;
  gap: 12px;
  min-width: 142px;
  padding: 0 18px;
  font-size: 14px;
}

.verify-button span {
  font-size: 19px;
}

.verify-button:hover,
.claim-button:hover,
.dialog-primary:hover,
.auth-submit:hover,
.page-action:hover {
  background: var(--green-soft);
}

.verify-button:disabled,
.claim-button:disabled,
.dialog-primary:disabled,
.auth-submit:disabled {
  opacity: 0.58;
}

.form-hint {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 13px;
}

.hint-icon {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--muted-2);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
}

.form-hint button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-family: "DM Mono", monospace;
  font-size: 13px;
}

.result-area {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 500ms ease, opacity 250ms ease, transform 350ms ease;
}

.result-area.visible {
  max-height: 900px;
  opacity: 1;
  transform: translateY(0);
}

.result-header {
  align-items: flex-end;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.verified-badge {
  padding: 7px 10px;
  color: var(--green);
  background: rgba(184, 247, 77, 0.08);
  font-size: 12px;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.game-cover {
  width: 54px;
  height: 54px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 247, 77, 0.45);
  color: var(--green);
  background: #1b2920;
  font-family: "DM Mono", monospace;
  font-size: 16px;
}

.game-cover span {
  margin-top: 4px;
  color: #d7e4d9;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
}

.product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.product-info strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-info span,
.stock-info small {
  color: var(--muted-2);
  font-size: 13px;
}

.stock-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  margin-left: auto;
}

.stock-info strong {
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}

.stock-pulse {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.preference-panel {
  margin-top: 20px;
}

.preference-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  outline: 0;
  color: var(--text);
  background: var(--surface-2);
  font-size: 14px;
}

.preference-panel small {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 12px;
}

.order-summary {
  align-items: flex-end;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.summary-copy,
.summary-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-copy > span,
.summary-copy small,
.summary-price small {
  color: var(--muted-2);
  font-size: 12px;
}

.summary-copy strong {
  font-size: 16px;
}

.summary-price {
  align-items: flex-end;
}

.summary-price strong {
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 24px;
  font-weight: 500;
}

.claim-button {
  width: 100%;
  min-height: 56px;
  gap: 12px;
  margin-top: 19px;
  font-size: 15px;
}

.claim-arrow {
  margin-left: auto;
  font-size: 21px;
  font-weight: 400;
}

.card-footer {
  gap: 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

.card-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-footer i {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: var(--blue);
}

.card-footer a {
  color: var(--blue);
  text-decoration: none;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  padding: 4px 0 25px;
  color: var(--muted-2);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 12px 17px;
  border: 1px solid rgba(184, 247, 77, 0.5);
  color: var(--green);
  background: #18221d;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

dialog {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

dialog::backdrop {
  background: rgba(2, 5, 6, 0.78);
  backdrop-filter: blur(4px);
}

.claim-dialog {
  width: min(500px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  padding: 30px;
}

.dialog-top,
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dialog-contact {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 42px;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.dialog-contact span,
.dialog-contact strong {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.dialog-contact strong {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  transform: translateY(1px);
}

.success-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 22px;
}

.dialog-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 21px;
}

.dialog-close:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.claim-dialog .section-kicker {
  margin-top: 27px;
}

.claim-dialog h2 {
  font-size: 28px;
}

.dialog-copy {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.dialog-copy strong {
  color: var(--green);
}

.credential-box {
  margin-top: 22px;
  border: 1px solid var(--line-strong);
}

.credential-combo {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 58px;
  align-items: stretch;
}

.credential-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
}

.credential-item + .credential-item,
.copy-all-button {
  border-left: 1px solid var(--line);
}

.credential-item span {
  color: var(--muted-2);
  font-size: 13px;
}

.credential-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.copy-all-button {
  width: 58px;
  padding: 0 8px;
}

.credential-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.credential-row + .credential-row {
  border-top: 1px solid var(--line);
}

.credential-combo + .credential-row {
  border-top: 1px solid var(--line);
}

.credential-row span {
  color: var(--muted-2);
  font-size: 13px;
}

.credential-row strong {
  overflow-wrap: anywhere;
  font-family: "DM Mono", monospace;
  font-size: 15px;
  font-weight: 500;
}

.credential-row .credential-status {
  justify-self: end;
  color: var(--green);
  font-size: 13px;
}

.copy-button {
  padding: 7px;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 13px;
}

.copy-button.is-copied {
  color: var(--green-soft);
  font-weight: 700;
}

.copy-manual {
  width: 100%;
  min-height: 58px;
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  resize: none;
  border: 1px solid rgba(184, 247, 77, 0.62);
  outline: 0;
  color: var(--text);
  background: var(--surface-2);
  font-family: var(--font-ui) !important;
  font-size: 14px;
  line-height: 1.6;
  user-select: text;
  -webkit-user-select: text;
}

.copy-manual:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(184, 247, 77, 0.1);
}

.account-note {
  margin-top: 12px;
  padding: 11px 13px;
  border-left: 2px solid var(--amber);
  color: var(--muted);
  background: rgba(244, 188, 101, 0.05);
  font-size: 13px;
  line-height: 1.65;
}

.verification-code-panel {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(184, 247, 77, 0.48);
  background: rgba(184, 247, 77, 0.04);
}

.verification-request {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(184, 247, 77, 0.48);
  background: rgba(184, 247, 77, 0.04);
}

.verification-request-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.verification-request-head > strong {
  min-width: 0;
  flex: 1;
  color: var(--muted-2);
  font-size: 13px;
}

.verification-request-button {
  min-height: 36px;
  flex: 0 1 auto;
  padding: 0 12px;
  border-color: rgba(184, 247, 77, 0.62);
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}

.dialog-secondary.verification-request-button {
  width: auto;
  min-width: 0;
  max-width: calc(100% - 90px);
  flex: 0 1 auto;
}

.verification-request-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.verification-request p {
  margin-top: 8px;
  padding-left: 9px;
  border-left: 2px solid var(--green);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.verification-code-panel[hidden] {
  display: none;
}

.verification-code-panel > span {
  color: var(--muted-2);
  font-size: 13px;
}

.verification-code-panel > strong {
  overflow-wrap: anywhere;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 23px;
  text-align: center;
}

.verification-copy-manual {
  margin-top: 8px;
}

.verification-code-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dialog-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 23px;
  color: var(--muted);
  font-size: 13px;
}

.dialog-meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dialog-primary,
.dialog-secondary {
  min-height: 48px;
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
}

.dialog-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  text-decoration: none;
}

.dialog-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.account-choice-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
}

.account-choice-dialog::backdrop {
  background: rgba(3, 6, 7, 0.78);
}

.account-choice-dialog form {
  padding: 22px;
}

.account-choice-dialog h2 {
  margin-top: 4px;
  font-size: 23px;
}

.account-choice-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.account-choice-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  cursor: pointer;
}

.account-choice-option:has(input:checked) {
  border-color: var(--green);
  background: rgba(184, 247, 77, 0.07);
}

.account-choice-option input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--green);
}

.account-choice-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-choice-copy strong {
  overflow-wrap: anywhere;
  font-family: "DM Mono", monospace;
  font-size: 14px;
}

.account-choice-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-choice-actions {
  gap: 10px;
  margin-top: 21px;
}

/* Account center */
.subpage-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.subpage-header {
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--line);
}

.subpage-header h1 {
  font-size: 36px;
}

.subpage-header p:last-child {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  padding: 28px 0 50px;
}

.auth-aside,
.auth-panel,
.history-panel,
.guide-nav,
.guide-article {
  border: 1px solid var(--line-strong);
  background: rgba(17, 22, 23, 0.94);
}

.auth-aside {
  padding: 28px;
}

.auth-aside h2,
.auth-panel h2,
.history-heading h2 {
  font-size: 24px;
}

.auth-aside p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.auth-benefits span {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.auth-benefits b {
  margin-right: 9px;
  color: var(--green);
}

.auth-panel {
  padding: 28px;
}

.auth-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  min-width: 90px;
  padding: 0 12px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
}

.auth-tabs button.active {
  border-color: var(--green);
  color: var(--text);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: grid;
  gap: 15px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form input {
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  outline: 0;
  color: var(--text);
  background: var(--surface-2);
  font-size: 15px;
}

.auth-form input:focus {
  border-color: var(--green);
}

.auth-submit {
  min-height: 48px;
  margin-top: 5px;
  font-size: 15px;
}

.history-panel {
  margin: 28px 0 50px;
  padding: 28px;
}

.history-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-name {
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

.page-action {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.history-list {
  display: grid;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) minmax(150px, 0.8fr) auto;
  gap: 18px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.history-item strong,
.history-item span,
.history-item small {
  display: block;
}

.history-redeem {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  text-decoration: none;
}

.history-item strong {
  font-size: 15px;
}

.history-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.history-item small {
  color: var(--muted-2);
  font-size: 12px;
}

.history-credential {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--blue) !important;
  font-family: "DM Mono", monospace;
}

.state-label {
  display: inline-flex !important;
  width: fit-content;
  margin: 0 !important;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  font-size: 12px !important;
}

.state-label.active { border-color: rgba(184, 247, 77, 0.5); color: var(--green); }
.state-label.returned { color: var(--muted); }

.empty-state {
  padding: 44px 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.guide-article-body {
  white-space: pre-wrap;
}

.guide-article-media {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.guide-article-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.guide-footer-note {
  margin: 22px 0 50px;
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  color: var(--muted);
  background: rgba(184, 247, 77, 0.06);
  line-height: 1.7;
}

.guide-contact {
  margin: 16px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.guide-contact h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.guide-contact p {
  margin: 0;
  color: var(--muted);
}

.play-content {
  display: grid;
  gap: 18px;
  padding: 8px 0 60px;
}

.play-cover,
.play-video {
  display: block;
  width: 100%;
  max-width: 960px;
  max-height: 560px;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.play-description {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  white-space: pre-wrap;
}

/* Standalone visual rental marketplace. */
.shop-body {
  background: #07100f;
}

.shop-body .subpage-shell {
  width: min(1240px, calc(100% - 48px));
}

.shop-body .topbar {
  border-bottom-color: rgba(184, 247, 77, 0.3);
}

.shop-header {
  padding: 30px 0 22px;
}

.shop-header h1 {
  max-width: 720px;
  color: var(--text);
  font-size: 44px;
  line-height: 1.08;
}

.shop-header p:last-of-type {
  max-width: 660px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 16px;
}

.shop-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.shop-header-actions .page-action + .page-action {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.shop-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 0 15px;
  border-top: 1px solid var(--line);
}

.shop-toolbar h2 {
  font-size: 24px;
}

.shop-user-state {
  color: var(--muted-2);
  font-size: 13px;
}

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

.shop-product {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #101918;
}

.shop-product-cover {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: #060909;
}

.shop-product-cover.is-logo {
  background: #17364a;
}

.shop-product-cover.is-missing {
  background: #26303b;
}

.shop-product-cover img,
.shop-product-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shop-product-cover img {
  display: block;
  object-fit: cover;
  opacity: 0.82;
}

.shop-product-cover.is-logo img {
  inset: 50% auto auto 50%;
  width: min(55%, 220px);
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.55);
}

.shop-cover-missing {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: #bdc9d1;
  font-size: 16px;
}

.shop-product-cover.is-missing .shop-cover-missing {
  display: flex;
}

.shop-product-cover-shade {
  background: linear-gradient(90deg, rgba(4, 10, 9, 0.76), rgba(4, 10, 9, 0.1));
}

.shop-product-cover > strong {
  position: absolute;
  left: 16px;
  bottom: 13px;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.13em;
}

.shop-product-head,
.shop-product-description,
.shop-duration-list,
.shop-product-footer {
  margin-right: 17px;
  margin-left: 17px;
}

.shop-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 17px;
}

.shop-product-head h3 {
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
}

.shop-stock {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.shop-stock.available {
  border-color: rgba(184, 247, 77, 0.46);
  color: var(--green);
}

.shop-product-description {
  min-height: 43px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.shop-duration-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.shop-duration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.shop-duration-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.shop-duration-meta strong {
  font-size: 13px;
  white-space: nowrap;
}

.shop-duration-meta span {
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 13px;
  white-space: nowrap;
}

.shop-duration-meta small {
  color: var(--muted-2);
  font-size: 11px;
}

.shop-duration-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid rgba(184, 247, 77, 0.55);
  color: var(--green);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.shop-duration-action:hover {
  color: #07100f;
  background: var(--green);
}

.shop-duration-action[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--muted-2);
  pointer-events: none;
}

/* Rental marketplace surface: compact white cards with horizontal shelves. */
.shop-body {
  min-height: 100vh;
  background: #f3f6fa;
  color: #20242b;
}
.shop-body .subpage-shell { width: min(1120px, calc(100% - 48px)); }
.shop-body .topbar { border-bottom: 1px solid #e1e6ec; }
.shop-body .brand-copy strong, .shop-body .main-nav a, .shop-body .main-nav-disabled, .shop-body .topbar-actions a, .shop-body h1, .shop-body h2, .shop-body h3 { color: #20242b; }
.shop-body .main-nav a.active { color: #ff4f16; border-color: #ff4f16; }
.shop-body .topbar-actions a:hover, .shop-body .topbar-actions a.active { color: #ff4f16; }
.shop-body .topbar-status { color: #697381; }
.shop-body .status-dot { background: #ff4f16; box-shadow: 0 0 0 4px rgba(255, 79, 22, .1); }
.shop-header { padding: 32px 0 24px; }
.shop-header h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: 0; }
.shop-header p:last-of-type { color: #697381; }
.shop-header-actions .page-action { border-color: #ff4f16; color: #fff; background: #ff4f16; }
.shop-header-actions .page-action + .page-action { border-color: #d7dde5; color: #343b45; background: #fff; }
.shop-search-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0 12px; border-top: 1px solid #e1e6ec; }
.shop-search-form { display: flex; width: min(460px, 100%); background: #fff; border: 1px solid #dfe4ea; }
.shop-search-form input { min-width: 0; flex: 1; height: 42px; padding: 0 14px; border: 0; color: #20242b; background: transparent; outline: none; }
.shop-search-form button { width: 82px; border: 0; color: #fff; background: #ff4f16; cursor: pointer; }
.shop-user-state { color: #8b95a1; }
.shop-category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 16px; scrollbar-width: thin; }
.shop-category-tabs button { flex: 0 0 auto; min-height: 30px; padding: 0 12px; border: 1px solid #e0e5eb; border-radius: 16px; color: #697381; background: #fff; cursor: pointer; }
.shop-category-tabs button.is-active, .shop-category-tabs button:hover { border-color: #ff4f16; color: #ff4f16; }
.shop-sections { display: grid; gap: 16px; }
.market-section { padding: 18px 16px 20px; border: 1px solid #e3e8ee; border-radius: 8px; background: #fff; }
.market-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.market-section-heading h2 { font-size: 22px; }
.market-section-heading span { color: #9aa3ad; font-size: 12px; }
.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.market-card { min-width: 0; overflow: hidden; border: 1px solid #e2e6eb; border-radius: 7px; background: #fff; cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.market-card:hover, .market-card:focus-visible { border-color: #ff4f16; outline: none; transform: translateY(-2px); }
.market-card-cover { position: relative; aspect-ratio: 1.7 / 1; overflow: hidden; background: #e8edf3; }
.market-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.market-card-cover span { position: absolute; left: 8px; bottom: 7px; padding: 3px 6px; color: #fff; font: 11px "DM Mono", monospace; background: rgba(20, 26, 32, .68); }
.market-card-body { padding: 10px 10px 4px; }
.market-card-body h3 { overflow: hidden; font-size: 16px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.market-card-body p { overflow: hidden; min-height: 20px; margin-top: 4px; color: #9aa3ad; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.market-card-body strong { display: block; margin-top: 9px; color: #ff4f16; font-size: 15px; }
.market-card-tags { display: flex; gap: 5px; overflow: hidden; padding: 5px 10px 11px; }
.market-card-tags span { flex: 0 0 auto; padding: 3px 7px; border: 1px solid #edf0f3; border-radius: 11px; color: #8d96a0; font-size: 11px; }
.shop-order-panel { border-color: #e2e6eb; background: #fff; }
.shop-order-panel h2 { color: #20242b; }
.shop-order-panel p:last-child { color: #697381; }
.shop-order-panel .page-action { border-color: #ff4f16; color: #fff; background: #ff4f16; }

/* Marketplace home: three-column hero, compact metrics, then horizontal game shelves. */
.shop-main { padding-bottom: 24px; }
.shop-hero { display: grid; grid-template-columns: 232px minmax(0, 1fr) 252px; gap: 14px; margin-top: 24px; }
.shop-sidebar, .shop-side-panel { min-width: 0; border: 1px solid #e1e6ec; border-radius: 8px; background: #fff; }
.shop-sidebar { padding: 8px; }
.shop-menu-item { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 10px 9px; color: #38414d; text-decoration: none; border-radius: 6px; }
.shop-menu-item:hover, .shop-menu-item.is-active { color: #ff4f16; background: #fff4ef; }
.shop-menu-item.is-disabled { color: #9aa3ad; cursor: default; }
.shop-menu-item > span:nth-child(2) { min-width: 0; flex: 1; }
.shop-menu-item strong, .shop-menu-item small { display: block; }
.shop-menu-item strong { font-size: 14px; }
.shop-menu-item small { margin-top: 4px; color: #9aa3ad; font-size: 11px; white-space: nowrap; }
.shop-menu-item b { color: #b6bec8; font-size: 20px; font-weight: 400; }
.shop-menu-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #ff4f16; background: #fff0e9; font-size: 12px; font-weight: 800; }
.shop-banner { position: relative; min-height: 340px; overflow: hidden; border-radius: 8px; background: #202832; }
.shop-banner img, .shop-banner-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.shop-banner img { object-fit: cover; }
.shop-banner-shade { background: linear-gradient(90deg, rgba(13, 19, 27, .88), rgba(13, 19, 27, .2)); }
.shop-banner-copy { position: relative; z-index: 1; display: flex; height: 100%; flex-direction: column; align-items: flex-start; justify-content: center; padding: 34px; color: #fff; }
.shop-banner-copy small { color: #ffb398; font-size: 11px; letter-spacing: .12em; }
.shop-banner-copy h1 { margin-top: 10px; color: #fff; font-size: clamp(34px, 4vw, 56px); }
.shop-banner-copy p { margin-top: 9px; color: #e9eef2; font-size: 16px; }
.shop-banner-copy a { display: inline-flex; align-items: center; gap: 10px; margin-top: 23px; padding: 10px 16px; border-radius: 4px; color: #fff; background: #ff4f16; font-size: 13px; text-decoration: none; }
.shop-banner-copy a b { font-size: 18px; font-weight: 400; }
.shop-side-panel { padding: 16px; }
.shop-user-card { display: flex; align-items: center; gap: 10px; }
.shop-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #ff4f16; font-weight: 800; }
.shop-user-card strong { color: #20242b; font-size: 15px; }
.shop-user-card p { margin-top: 5px; color: #9aa3ad; font-size: 11px; }
.shop-login-button { display: flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 15px; border-radius: 4px; color: #fff; background: #ff4f16; font-size: 13px; text-decoration: none; }
.shop-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 13px; }
.shop-quick-links a { padding: 7px 2px; color: #697381; background: #f5f7f9; font-size: 11px; text-align: center; text-decoration: none; }
.shop-quick-links a:hover { color: #ff4f16; }
.shop-announcement { margin-top: 17px; padding-top: 14px; border-top: 1px solid #edf0f3; }
.shop-announcement > div { display: flex; align-items: center; justify-content: space-between; }
.shop-announcement strong { color: #20242b; font-size: 13px; }
.shop-announcement a { color: #ff4f16; font-size: 11px; text-decoration: none; }
.shop-announcement p { margin-top: 11px; color: #9aa3ad; font-size: 12px; line-height: 1.6; }
.shop-stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; border: 1px solid #e1e6ec; border-radius: 8px; background: #fff; }
.shop-stats-bar > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; min-height: 70px; padding: 10px 18px; border-right: 1px solid #edf0f3; }
.shop-stats-bar > div:last-child { border-right: 0; }
.shop-stat-icon { grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #ff4f16; background: #fff0e9; font-size: 12px; }
.shop-stats-bar p { color: #9aa3ad; font-size: 11px; }
.shop-stats-bar strong { margin-top: 2px; color: #20242b; font-size: 18px; }
.shop-stats-bar small { grid-column: 2; color: #b0b7bf; font-size: 10px; }
.shop-toolbar { display: flex; align-items: end; gap: 18px; margin-top: 28px; padding-bottom: 13px; border-bottom: 1px solid #e1e6ec; }
.shop-toolbar > div { margin-right: auto; }
.shop-toolbar h2 { margin-top: 2px; font-size: 24px; }
.shop-toolbar .shop-search-form { width: min(340px, 100%); }
.shop-toolbar .shop-user-state { align-self: center; font-size: 12px; }
.shop-main .shop-sections { margin-top: 4px; }
.shop-main .market-section { border: 0; border-radius: 0; padding: 20px 0 4px; background: transparent; }
.shop-main .market-section-heading { margin-bottom: 12px; }
.shop-main .market-section-heading h2 { font-size: 20px; }
.shop-main .market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-main .market-card { box-shadow: 0 3px 12px rgba(32, 36, 43, .04); }
.product-main { padding: 24px 0 60px; }
.product-back { display: inline-block; margin-bottom: 14px; color: #697381; font-size: 13px; text-decoration: none; }
.product-back:hover { color: #ff4f16; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: 24px; padding: 18px; border: 1px solid #e2e6eb; border-radius: 8px; background: #fff; }
.product-media { min-width: 0; }
.product-main-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e8edf3; }
.product-media-missing { display: none; align-items: center; justify-content: center; aspect-ratio: 16 / 9; color: #8d96a0; background: #e8edf3; }
.product-media.is-missing .product-media-missing { display: flex; }
.product-media.is-missing .product-main-image { display: none; }
.product-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; }
.product-thumbs button { flex: 0 0 82px; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; }
.product-thumbs button.is-active { border-color: #ff4f16; }
.product-thumbs img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.product-intro { padding: 8px 4px; }
.product-category { color: #ff4f16; font-size: 12px; }
.product-intro h1 { margin-top: 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.product-lead { margin-top: 12px; color: #697381; font-size: 14px; line-height: 1.75; }
.product-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.product-tags span { padding: 5px 10px; border-radius: 14px; color: #697381; background: #f4f6f8; font-size: 12px; }
.product-meta-grid, .product-extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 20px; }
.product-meta-item { min-width: 0; }
.product-meta-item span { display: block; color: #9aa3ad; font-size: 11px; }
.product-meta-item strong { display: block; margin-top: 5px; overflow: hidden; color: #20242b; font-size: 14px; line-height: 1.5; text-overflow: ellipsis; }
.product-rental-section, .product-info-panel, .product-extra-grid { margin-top: 16px; padding: 18px; border: 1px solid #e2e6eb; border-radius: 8px; background: #fff; }
.product-rental-section h2, .product-info-panel h2 { font-size: 20px; }
.product-duration-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.product-duration-option { min-height: 82px; padding: 11px; border: 1px solid #e1e5ea; border-radius: 7px; color: #697381; background: #fff; text-align: left; cursor: pointer; }
.product-duration-option.is-selected { border-color: #ff4f16; background: #fff5f0; }
.product-duration-option span, .product-duration-option strong, .product-duration-option small { display: block; }
.product-duration-option strong { margin-top: 8px; color: #20242b; font-size: 17px; }
.product-duration-option small { min-height: 14px; margin-top: 4px; color: #ff4f16; font-size: 11px; }
.product-primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; margin-top: 16px; border-radius: 5px; color: #fff; background: #ff4f16; font-weight: 600; text-decoration: none; }
.product-primary-action.is-disabled { background: #c5cbd2; pointer-events: none; }
.product-action-note { margin-top: 9px; color: #9aa3ad; font-size: 12px; }
.product-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-info-panel > div { margin-top: 12px; color: #697381; font-size: 13px; line-height: 1.9; }
.product-info-panel > div p { margin: 0 0 8px; }
.product-extra-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-extra-grid .product-meta-item { padding-right: 8px; }
@media (max-width: 900px) {
  .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-main .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shop-body .subpage-shell { width: 100%; padding: 0 12px; }
  .shop-header { padding: 24px 0 20px; }
  .shop-header h1 { font-size: 34px; }
  .shop-hero { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .shop-sidebar { display: flex; overflow-x: auto; gap: 6px; padding: 6px; }
  .shop-menu-item { flex: 0 0 150px; min-height: 54px; padding: 7px; }
  .shop-menu-item small, .shop-menu-item b { display: none; }
  .shop-menu-icon { width: 30px; height: 30px; }
  .shop-banner { min-height: 190px; }
  .shop-banner-copy { padding: 24px; }
  .shop-banner-copy h1 { font-size: 34px; }
  .shop-banner-copy p { font-size: 13px; }
  .shop-side-panel { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
  .shop-login-button { margin-top: 0; padding: 0 18px; }
  .shop-quick-links, .shop-announcement { grid-column: 1 / -1; }
  .shop-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .shop-stats-bar > div:nth-child(2) { border-right: 0; }
  .shop-stats-bar > div:nth-child(-n + 2) { border-bottom: 1px solid #edf0f3; }
  .shop-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .shop-toolbar .shop-search-form { width: 100%; }
  .shop-toolbar .shop-user-state { align-self: flex-start; }
  .shop-search-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .shop-search-form { width: 100%; }
  .market-section { padding: 15px 10px 16px; }
  .market-grid { display: flex; gap: 10px; overflow-x: auto; margin: 0 -2px; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .shop-main .market-grid { display: flex; }
  .market-card { flex: 0 0 min(220px, 72vw); scroll-snap-align: start; }
  .product-main { padding-top: 18px; }
  .product-hero { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .product-intro h1 { font-size: 32px; }
  .product-duration-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-info-grid, .product-extra-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .shop-duration { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .shop-duration-action { align-self: flex-start; }
}

.shop-product-footer {
  padding: 13px 0 17px;
  color: var(--muted-2);
  font-size: 12px;
}

.shop-order-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 26px 0 50px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(17, 22, 23, 0.72);
}

.shop-order-panel h2 {
  font-size: 20px;
}

.shop-order-panel p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .shop-body .subpage-shell { width: 100%; padding: 0 12px; }
  .shop-header { padding: 25px 0 20px; }
  .shop-header h1 { font-size: 32px; }
  .shop-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; }
  .shop-grid { grid-template-columns: 1fr; gap: 12px; }
  .shop-product-cover { aspect-ratio: 16 / 7; }
  .shop-order-panel { align-items: flex-start; flex-direction: column; margin-bottom: 30px; }
}

/* Help center */
.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0 60px;
}

.guide-nav {
  position: sticky;
  top: 20px;
  height: fit-content;
  padding: 19px;
}

.guide-nav strong {
  display: block;
  padding: 7px 8px 13px;
  font-size: 15px;
}

.guide-nav a {
  display: block;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.guide-nav a:hover {
  color: var(--green);
}

.guide-content {
  display: grid;
  gap: 14px;
}

.guide-article {
  scroll-margin-top: 20px;
  padding: 25px 28px;
}

.guide-article .guide-category {
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.guide-article h2 {
  margin-top: 8px;
  font-size: 22px;
}

.guide-article p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; padding: 17px 0; }
  .topbar-actions { order: 2; }
  .main-nav { order: 3; width: 100%; height: 42px; margin: 0; border-top: 1px solid var(--line); }
  .main-nav a,
  .main-nav-disabled { flex: 1; }
  .workspace { grid-template-columns: 1fr; }
  .service-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .service-panel > .section-kicker,
  .service-panel > h1,
  .service-panel > .service-lead { grid-column: 1 / -1; }
  .process-list,
  .quick-help { margin-top: 24px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .history-item { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .app-shell,
  .subpage-shell { width: min(100% - 28px, 620px); }
  .topbar { gap: 14px; }
  .topbar-actions { gap: 12px; }
  .topbar-actions a { font-size: 12px; }
  .topbar-status { font-size: 12px; }
  .main-nav a,
  .main-nav-disabled { min-width: 0; padding: 0 6px; font-size: 13px; }
  .ad-slide { min-height: 210px; }
  .ad-copy { width: 100%; padding: 24px 22px; }
  .ad-copy strong { font-size: 23px; }
  .ad-action { display: none; }
  .ad-controls { right: 22px; bottom: 20px; }
  .workspace { gap: 18px; padding-top: 20px; }
  .service-panel { display: block; padding: 22px; }
  .service-panel h1 { font-size: 27px; }
  .quick-help { display: none; }
  .redeem-card { padding: 23px 19px 19px; }
  .card-heading h2,
  .result-header h3 { font-size: 23px; }
  .code-input-wrap { display: grid; grid-template-columns: auto 1fr; }
  .code-input-wrap input { min-height: 58px; }
  .verify-button { grid-column: 1 / -1; min-height: 49px; }
  .product-row { align-items: flex-start; }
  .stock-info { display: none; }
  .card-footer,
  .page-footer,
  .dialog-meta { align-items: flex-start; flex-direction: column; }
  .dialog-actions { flex-direction: column; }
  .dialog-primary,
  .dialog-secondary { width: 100%; flex: none; }
  .claim-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 22px 18px; }
  .credential-combo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px; }
  .credential-item { padding: 10px; }
  .credential-item strong { font-size: 14px; }
  .copy-all-button { width: 52px; padding: 0 6px; }
  .credential-row { grid-template-columns: 70px minmax(0, 1fr) auto; padding: 0 10px; }
  .subpage-header { padding-top: 30px; }
  .subpage-header h1 { font-size: 30px; }
  .auth-panel,
  .history-panel { padding: 21px 18px; }
  .history-heading { align-items: flex-start; flex-direction: column; }
  .history-item { grid-template-columns: 1fr; gap: 10px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { position: static; }
  .guide-article { padding: 22px 19px; }
}

/* Use one system UI font across every customer-facing page and field. */
body,
body *,
button,
input,
select,
textarea,
.brand-copy small,
.section-kicker,
.workspace-label,
.ad-copy small,
.input-prefix,
.code-input-wrap input,
.step-count,
.game-cover,
.summary-price strong,
.credential-row strong,
.page-footer,
.mono,
.countdown-cell {
  font-family: var(--font-ui) !important;
}

.section-kicker,
.workspace-label,
.ad-copy small { font-size: 12px; }
.brand-copy small { font-size: 11px; }
.topbar-status { font-size: 14px; }
.main-nav a { font-size: 15px; }
.ad-copy > span { font-size: 15px; }
.ad-action { font-size: 14px; }
.service-lead { font-size: 16px; }
.process-item strong { font-size: 16px; }
.process-item small { font-size: 14px; }
.quick-help a { font-size: 15px; }
.secure-label { font-size: 14px; }
.card-heading p:not(.section-kicker) { font-size: 15px; }
.code-form label,
.preference-panel label { font-size: 15px; }
.form-hint { font-size: 14px; }
.form-hint button { font-size: 14px; }
.product-info span,
.stock-info small { font-size: 14px; }
.stock-info strong { font-size: 14px; }
.preference-panel small { font-size: 13px; }
.summary-copy > span,
.summary-copy small,
.summary-price small { font-size: 13px; }
.card-footer { font-size: 13px; }
.page-footer { font-size: 11px; }
.dialog-copy,
.credential-row span,
.dialog-meta { font-size: 14px; }
.copy-button { font-size: 14px; }
.guide-nav a { font-size: 14px; }
.guide-article .guide-category { font-size: 12px; }
.guide-article p { font-size: 16px; }

@media (max-width: 700px) {
  body { min-height: 100dvh; }
  .main-nav a { font-size: 14px; }
  .page-footer { font-size: 12px; }
}

/* Home layout follows the supplied reference: navigation, two ad slots, quick links, then redeem. */
.home-body {
  --green: #9cff00;
  --green-soft: #c5ff66;
  --red-accent: var(--green);
  background: #030303;
}

.home-body .app-shell {
  width: min(1350px, calc(100% - 72px));
  max-width: 1350px;
  padding: 0 8px;
  background: #030303;
}

.home-body .topbar {
  min-height: 132px;
  gap: 20px;
  padding: 20px 0 25px;
  border-bottom: 4px dashed var(--red-accent);
}

.home-body .brand {
  width: 265px;
  min-height: 82px;
  justify-content: center;
  padding: 0 22px;
  border: 5px solid var(--green);
  color: var(--red-accent);
}

.home-body .brand-mark { display: none; }

.home-body .brand-copy {
  align-items: center;
  gap: 0;
}

.home-body .brand-copy strong {
  color: var(--red-accent);
  font-size: 35px;
  letter-spacing: 0.06em;
}

.home-body .brand-copy small {
  display: none;
}

.home-body .main-nav {
  align-self: center;
  margin-left: 2px;
  gap: 4px;
}

.home-body .main-nav a,
.home-body .main-nav-disabled {
  min-width: auto;
  padding: 0 14px;
  border-bottom: 0;
  color: var(--red-accent);
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
}

.home-body .main-nav a:hover,
.home-body .main-nav a.active {
  border-bottom: 0;
  color: #ff725f;
}

.home-body .topbar-status { display: none; }


.home-promo {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.home-body .home-promo.single-ad {
  grid-template-columns: minmax(0, 1fr);
}

.home-body .home-promo.single-ad .small-ad {
  display: none;
}

.small-ad,
.home-body .ad-slide {
  position: relative;
  min-height: 340px;
  display: flex;
  overflow: hidden;
  border: 4px solid var(--green);
  background: #000;
  text-decoration: none;
}

.small-ad img,
.small-ad-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.small-ad img {
  object-fit: cover;
  opacity: 0.22;
}

.small-ad-shade {
  background: rgba(0, 0, 0, 0.64);
}

.small-ad-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: var(--red-accent);
  text-align: center;
}

.small-ad-copy small {
  color: var(--green);
  font-size: 16px;
}

.small-ad-copy strong {
  font-size: 38px;
  line-height: 1.25;
}

.small-ad-copy span {
  max-width: 90%;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-ad-slot,
.hero-ad-slot .ad-carousel {
  min-width: 0;
}

.hero-ad-slot .ad-carousel {
  margin-top: 0;
}

.home-body .ad-slide {
  align-items: center;
}

.home-body .ad-slide img {
  opacity: 0.3;
}

.home-body .ad-shade {
  background: rgba(0, 0, 0, 0.68);
}

.home-body .ad-copy {
  align-items: center;
  width: 100%;
  padding: 34px;
  text-align: center;
}

.home-body .ad-copy small {
  color: var(--green);
  font-size: 17px;
}

.home-body .ad-copy strong {
  color: var(--red-accent);
  font-size: clamp(52px, 6vw, 92px);
  line-height: 1.1;
}

.home-body .ad-copy > span {
  max-width: 760px;
  color: var(--red-accent);
  font-size: 24px;
  font-weight: 700;
}

.home-body .ad-action {
  position: absolute;
  right: 28px;
  bottom: 24px;
  margin: 0;
  border-color: var(--red-accent);
  color: var(--red-accent);
  font-size: 17px;
}

.home-body .ad-action b { color: var(--green); }

.home-body .ad-controls {
  right: 28px;
  bottom: 14px;
}

.home-body .ad-controls button { background: rgba(184, 247, 77, 0.42); }
.home-body .ad-controls button.active { background: var(--green); }

.home-helpbar {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr 0.8fr;
  gap: 10px;
  margin: 30px 0 0;
}

.home-helpbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px 12px;
  color: var(--red-accent);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.home-helpbar a:hover { color: #ff725f; }
.home-helpbar a span { color: var(--green); font-size: 18px; }

.home-body .workspace {
  grid-template-columns: minmax(270px, 0.3fr) minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0 46px;
}

.home-body .service-panel {
  min-height: 420px;
  padding: 28px 26px;
  border: 1px solid rgba(224, 234, 234, 0.18);
  background: #080a0a;
}

.home-body .service-panel h1 { color: var(--red-accent); font-size: 35px; }
.home-body .service-lead { font-size: 17px; }
.home-body .service-panel .quick-help { display: none; }
.home-body .process-item strong { font-size: 18px; }
.home-body .process-item small { font-size: 15px; }

.home-body .redeem-card {
  position: relative;
  padding: 28px 34px 24px;
  border: 1px solid rgba(224, 234, 234, 0.3);
  border-top: 3px solid var(--green);
  background: #0e1313;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.home-body .card-topline {
  padding-bottom: 17px;
}

.home-body .card-heading {
  padding: 24px 0 18px;
}

.home-body .card-heading h2,
.home-body .result-header h3 { color: var(--red-accent); }
.home-body .card-heading h2 {
  font-size: 34px;
  line-height: 1.2;
}
.home-body .card-heading p:not(.section-kicker) { font-size: 16px; }
.home-body .code-form label {
  margin-bottom: 11px;
  color: #d8e1df;
  font-size: 16px;
  font-weight: 600;
}
.home-body .code-input-wrap input { padding: 0 19px; }
.home-body .code-input-wrap {
  min-height: 72px;
  border: 2px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(184, 247, 77, 0.08);
}
.home-body .code-input-wrap input {
  color: #111718;
  caret-color: #111718;
  font-size: 18px;
}
.home-body .code-input-wrap input::placeholder {
  color: #697071;
  opacity: 1;
}
.home-body .verify-button,
.home-body .claim-button { background: var(--green); }
.home-body .verify-button {
  min-width: 168px;
  font-size: 16px;
}
.home-body .form-hint {
  min-height: 44px;
}
.home-body .card-footer { font-size: 14px; }

.mobile-anti-kick,
.mobile-help-links,
.mobile-add-friend {
  display: none;
}

.home-body .page-footer {
  border-top: 1px solid rgba(224, 234, 234, 0.12);
  padding-top: 18px;
  font-size: 13px;
}

.bottom-ad {
  display: none;
}

@media (max-width: 1100px) {
  .home-body .topbar { min-height: 112px; }
  .home-body .brand { width: 220px; min-height: 70px; }
  .home-body .brand-copy strong { font-size: 29px; }
  .home-body .main-nav a,
  .home-body .main-nav-disabled { padding: 0 8px; font-size: 21px; }
  .home-helpbar a { font-size: 20px; }
}

@media (max-width: 820px) {
  .home-body .app-shell { width: min(100% - 28px, 680px); padding: 0 8px; }
  .home-body .topbar { align-items: flex-start; flex-wrap: wrap; padding-top: 16px; }
  .home-body .brand { width: 210px; }
  .home-body .main-nav { order: 3; width: 100%; height: 48px; border-top: 1px solid var(--line); }
  .home-body .main-nav a,
  .home-body .main-nav-disabled { flex: 1; font-size: 18px; }
  .home-promo,
  .home-body .workspace { grid-template-columns: 1fr; gap: 18px; }
  .small-ad,
  .home-body .ad-slide { min-height: 220px; }
  .small-ad-copy strong { font-size: 31px; }
  .small-ad-copy span { font-size: 20px; }
  .home-body .ad-copy strong { font-size: 50px; }
  .home-body .ad-copy > span { font-size: 18px; }
  .home-helpbar { grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .home-helpbar a { min-height: 42px; font-size: 18px; }
  .home-body .service-panel { min-height: 0; }
}

@media (max-width: 520px) {
  .home-body .app-shell { width: calc(100% - 18px); padding: 0 5px; }
  .home-body .topbar { min-height: 0; border-bottom-width: 3px; }
  .home-body .brand { width: 100%; min-height: 62px; }
  .home-body .brand-copy strong { font-size: 27px; }
  .home-body .main-nav { gap: 0; }
  .home-body .main-nav a,
  .home-body .main-nav-disabled { padding: 0 3px; font-size: 15px; }
  .home-promo { margin-top: 20px; }
  .home-body .ad-copy { padding: 20px 14px; }
  .home-body .ad-copy strong { font-size: 39px; }
  .home-body .ad-copy > span { font-size: 15px; }
  .home-body .ad-action { display: none; }
  .home-helpbar { grid-template-columns: 1fr; }
  .home-helpbar a { justify-content: flex-start; padding-left: 8px; font-size: 18px; }
  .home-body .redeem-card { padding: 22px 16px 18px; }
  .home-body .card-heading h2 { font-size: 27px; }
}

/* Keep the reference layout while using the site's normal UI type scale. */
.home-body,
.home-body * {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif !important;
}

.home-body {
  --red-accent: #e7eef0;
  --home-muted: #a9b4b5;
}

.home-body .topbar {
  border-bottom: 1px solid var(--line-strong);
}

.home-body .brand-copy strong {
  color: var(--text);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-body .main-nav a,
.home-body .main-nav-disabled {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}

.home-body .main-nav a:hover,
.home-body .main-nav a.active {
  color: var(--green);
}

.small-ad,
.home-body .ad-slide {
  border: 1px solid rgba(184, 247, 77, 0.72);
}

.small-ad img,
.home-body .ad-slide img {
  opacity: 0.5;
}

.small-ad-shade,
.home-body .ad-shade {
  background: linear-gradient(90deg, rgba(3, 7, 8, 0.9), rgba(3, 7, 8, 0.46));
}

.small-ad-copy {
  align-items: flex-start;
  padding: 24px;
  color: var(--text);
  text-align: left;
}

.small-ad-copy strong {
  max-width: 90%;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
}

.small-ad-copy span {
  max-width: 90%;
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 400;
}

.home-body .ad-copy {
  align-items: flex-start;
  padding: 30px;
  text-align: left;
}

.home-body .ad-copy strong {
  max-width: 90%;
  color: var(--text);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
}

.home-body .ad-copy > span {
  max-width: 620px;
  color: var(--home-muted);
  font-size: 16px;
  font-weight: 400;
}

.home-body .ad-action {
  border-color: var(--line-strong);
  color: var(--text);
  font-size: 14px;
}

.home-body .ad-controls button {
  background: rgba(184, 247, 77, 0.42);
}

.home-helpbar a {
  color: var(--home-muted);
  font-size: 16px;
  font-weight: 500;
}

.home-helpbar a:hover {
  color: var(--green);
}

.home-helpbar a span {
  color: var(--green);
}

.home-body .service-panel h1,
.home-body .card-heading h2,
.home-body .result-header h3 {
  color: var(--text);
}

.home-body .service-panel h1 { font-size: 31px; }
.home-body .card-heading h2 { font-size: 29px; }

@media (max-width: 1100px) {
  .home-body .main-nav a,
  .home-body .main-nav-disabled { font-size: 16px; }
}

@media (max-width: 820px) {
  .home-body .main-nav {
    border-top-color: var(--line);
  }
  .home-body .main-nav a,
  .home-body .main-nav-disabled { font-size: 15px; }
}

/* Mobile pickup view: put the redeem workflow directly below one compact banner. */
@media (max-width: 700px) {
  .home-body .ad-slide {
    display: grid;
    grid-template-rows: 132px auto;
    align-items: stretch;
    min-height: 0;
    border-radius: 6px;
    background: #fff;
  }

  .home-body .ad-slide img,
  .home-body .ad-slide video {
    position: relative;
    inset: auto;
    grid-row: 1;
    width: 100%;
    height: 132px;
    object-fit: cover;
    opacity: 1;
    transform: none;
  }

  .home-body .ad-shade { display: none; }

  .home-body .ad-copy {
    grid-row: 2;
    width: 100%;
    min-height: 75px;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 12px 14px 15px;
    color: #20242b;
    background: #fff;
    text-align: left;
  }

  .home-body .ad-copy strong { color: #20242b; font-size: 20px; }
  .home-body .ad-copy > span { color: #697381; font-size: 13px; }
  .home-body .ad-action { display: none; }

  .home-body .topbar {
    order: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0 8px;
  }
  .home-body .home-promo { order: 3; }
  .home-body .workspace { order: 4; }
  .home-body .home-helpbar { order: 5; }
  .home-body .page-footer { order: 7; }

  .home-body .brand {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-width: 3px;
  }

  .home-body .brand-copy strong {
    font-size: 24px;
  }

  .home-body .main-nav {
    order: initial;
    width: 100%;
    height: 42px;
    margin-left: 0;
  }

  .home-body .main-nav a,
  .home-body .main-nav-disabled {
    min-width: 0;
    padding: 0 3px;
    font-size: 14px;
  }

  .home-body .home-promo {
    display: block;
    margin-top: 10px;
  }

  .home-body .small-ad {
    display: none;
  }

  .home-body .ad-slide {
    min-height: 122px;
  }

  .home-body .ad-slide img {
    object-position: center;
  }

  .home-body .ad-copy {
    justify-content: center;
    gap: 4px;
    padding: 16px 18px 24px;
  }

  .home-body .ad-copy strong {
    max-width: 100%;
    font-size: 22px;
    line-height: 1.25;
  }

  .home-body .ad-copy > span {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.5;
  }

  .home-body .ad-controls {
    right: 16px;
    bottom: 13px;
  }

  .home-body .workspace {
    display: block;
    padding: 10px 0 4px;
    flex: 0 0 auto;
  }

  .home-body .app-shell {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .home-body .service-panel {
    display: none;
  }

  .home-body .redeem-card {
    padding: 18px 14px 16px;
    border-top-width: 3px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  }

  .home-body .card-topline {
    display: none;
  }

  .home-body .workspace-label,
  .home-body .secure-label {
    font-size: 12px;
  }

  .home-body .card-heading {
    padding: 0 0 14px;
  }

  .home-body .card-heading .section-kicker,
  .home-body .card-heading p:not(.section-kicker),
  .home-body .code-form > label,
  .home-body .form-hint,
  .home-body .card-footer,
  .home-body .home-helpbar {
    display: none;
  }

  .home-body .card-heading h2 {
    font-size: 26px;
  }

  .home-body .card-heading p:not(.section-kicker) {
    margin-top: 7px;
    font-size: 14px;
  }

  .home-body .code-input-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 5px;
    min-height: 0;
    border: 2px solid rgba(184, 247, 77, 0.9);
    background: #080b0b;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13), 0 10px 24px rgba(0, 0, 0, 0.34);
  }

  .home-body .code-input-wrap:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(184, 247, 77, 0.12), 0 12px 28px rgba(0, 0, 0, 0.4);
  }

  .home-body .code-input-wrap input {
    width: 100%;
    min-height: 58px;
    padding: 0 14px;
    border: 0;
    background: #fff;
    font-size: 16px;
  }

  .home-body .verify-button {
    grid-column: 1;
    min-height: 52px;
    font-size: 16px;
  }

  .home-body .mobile-anti-kick,
  .home-body .mobile-help-links,
  .home-body .mobile-add-friend {
    min-height: 48px;
  }

  .home-body .mobile-help-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .home-body .mobile-anti-kick,
  .home-body .mobile-add-friend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    padding: 0 14px;
    border: 1px solid rgba(184, 247, 77, 0.68);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .home-body .mobile-anti-kick span,
  .home-body .mobile-add-friend span {
    color: var(--green);
    font-size: 20px;
  }

  .home-body .mobile-add-friend {
    background: #0d1111;
  }
}

@media (min-width: 390px) and (max-width: 700px) {
  .home-body .mobile-help-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-body .mobile-anti-kick,
  .home-body .mobile-add-friend {
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .home-body .mobile-anti-kick span,
  .home-body .mobile-add-friend span {
    margin-left: 5px;
  }
}

@media (max-width: 390px) {
  .home-body .brand { min-height: 46px; }
  .home-body .brand-copy strong { font-size: 22px; }
  .home-body .main-nav a,
  .home-body .main-nav-disabled { font-size: 13px; }
  .home-body .ad-slide { grid-template-rows: 112px auto; }
  .home-body .ad-slide img,
  .home-body .ad-slide video { height: 112px; }
  .home-body .ad-copy strong { font-size: 21px; }
}

/* Fixed customer navigation for phone-sized screens. */
.mobile-bottom-nav {
  display: none;
}

/* Unified top navigation matching the supplied reference. */
.topbar {
  min-height: 78px;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid #1e282b;
  background: #060a0c;
}

.topbar .brand,
.topbar .topbar-actions,
.topbar .topbar-status {
  display: none;
}

.main-nav {
  width: fit-content;
  min-height: 78px;
  margin-left: 0;
  align-self: stretch;
  gap: 0;
}

.main-nav a,
.main-nav-disabled {
  position: relative;
  min-width: 100px;
  height: 78px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid rgba(224, 234, 234, 0.04);
  color: #aab4b8;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: rgba(224, 234, 234, 0.04);
  color: #f6faf8;
}

.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #b8f74d;
}

.main-nav-disabled {
  color: #5d686c;
  opacity: 1;
}

.shop-body .topbar {
  border-bottom-color: #1e282b;
  background: #060a0c;
}

.shop-body .main-nav a,
.shop-body .main-nav-disabled {
  color: #aab4b8;
}

.shop-body .main-nav a:hover,
.shop-body .main-nav a.active {
  border-color: rgba(224, 234, 234, 0.04);
  color: #f6faf8;
}

.shop-body .main-nav-disabled { color: #5d686c; }

.home-body .main-nav a:hover,
.home-body .main-nav a.active {
  color: #f6faf8;
}

/* Customer header logo and account links. */
.topbar .brand,
.home-body .topbar .brand {
  width: 238px;
  height: 76px;
  min-height: 0;
  display: inline-flex;
  flex: 0 0 238px;
  justify-content: flex-start;
  gap: 13px;
  padding: 0 14px;
  border: 0;
  color: #fff;
  background: #030506;
}

.topbar .brand-mark,
.home-body .topbar .brand-mark {
  width: 39px;
  height: 39px;
  display: flex;
  flex: 0 0 39px;
  gap: 4px;
  padding: 7px;
  border: 2px solid #9cff00;
  transform: skew(-8deg);
}

.topbar .brand-mark span,
.home-body .topbar .brand-mark span {
  width: 5px;
  background: #9cff00;
}

.topbar .brand-mark span:nth-child(1),
.home-body .topbar .brand-mark span:nth-child(1) { height: 9px; }
.topbar .brand-mark span:nth-child(2),
.home-body .topbar .brand-mark span:nth-child(2) { height: 16px; }
.topbar .brand-mark span:nth-child(3),
.home-body .topbar .brand-mark span:nth-child(3) { height: 23px; }

.topbar .brand-copy small,
.home-body .topbar .brand-copy small {
  display: block;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
}

.topbar .brand-copy,
.home-body .topbar .brand-copy {
  align-items: flex-start;
  gap: 6px;
}

.topbar .brand-copy strong,
.home-body .topbar .brand-copy strong {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.topbar,
.home-body .topbar {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 0;
  border-bottom: 1px solid #111719;
  background: #030506;
}

.topbar .main-nav,
.home-body .topbar .main-nav {
  min-width: 0;
  min-height: 88px;
  height: 88px;
  margin-left: 20px;
  flex: 1 1 auto;
}

.topbar .main-nav a,
.topbar .main-nav-disabled,
.home-body .topbar .main-nav a,
.home-body .topbar .main-nav-disabled {
  min-width: 78px;
  height: 88px;
  padding: 0 12px;
  font-size: 16px;
}

.topbar .topbar-actions,
.home-body .topbar .topbar-actions {
  display: flex;
  gap: 18px;
  margin-left: 18px;
}

.topbar .topbar-actions a,
.home-body .topbar .topbar-actions a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.topbar .topbar-actions a:hover,
.topbar .topbar-actions a.active,
.home-body .topbar .topbar-actions a:hover,
.home-body .topbar .topbar-actions a.active {
  color: #9cff00;
}

@media (min-width: 701px) and (max-width: 980px) {
  .topbar,
  .home-body .topbar { flex-wrap: nowrap; }

  .topbar .brand,
  .home-body .topbar .brand {
    width: 190px;
    height: 68px;
    flex-basis: 190px;
    padding: 0 8px;
  }

  .topbar .brand-copy strong,
  .home-body .topbar .brand-copy strong { font-size: 17px; }

  .topbar .main-nav,
  .home-body .topbar .main-nav {
    width: auto;
    min-height: 68px;
    height: 68px;
    margin-left: 10px;
  }

  .topbar .main-nav a,
  .topbar .main-nav-disabled,
  .home-body .topbar .main-nav a,
  .home-body .topbar .main-nav-disabled {
    min-width: 0;
    height: 68px;
    padding: 0 7px;
    font-size: 14px;
  }

  .topbar .topbar-actions,
  .home-body .topbar .topbar-actions {
    gap: 10px;
    margin-left: 10px;
  }

  .topbar .topbar-actions a,
  .home-body .topbar .topbar-actions a { font-size: 12px; }
}

@media (max-width: 700px) {
  .topbar,
  .home-body .topbar {
    min-height: 108px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 8px 0 0;
  }

  .topbar .brand,
  .home-body .topbar .brand {
    width: 176px;
    height: 50px;
    min-height: 50px;
    flex-basis: auto;
    justify-self: start;
    gap: 9px;
    padding: 0 6px;
  }

  .topbar .brand-copy strong,
  .home-body .topbar .brand-copy strong {
    font-size: 16px;
  }

  .topbar .brand-copy,
  .home-body .topbar .brand-copy { gap: 4px; }

  .topbar .brand-copy small,
  .home-body .topbar .brand-copy small { font-size: 8px; }

  .topbar .brand-mark,
  .home-body .topbar .brand-mark {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    gap: 3px;
    padding: 5px;
  }

  .topbar .brand-mark span,
  .home-body .topbar .brand-mark span { width: 4px; }

  .topbar .brand-mark span:nth-child(1),
  .home-body .topbar .brand-mark span:nth-child(1) { height: 7px; }
  .topbar .brand-mark span:nth-child(2),
  .home-body .topbar .brand-mark span:nth-child(2) { height: 12px; }
  .topbar .brand-mark span:nth-child(3),
  .home-body .topbar .brand-mark span:nth-child(3) { height: 18px; }

  .topbar .topbar-actions,
  .home-body .topbar .topbar-actions {
    align-self: stretch;
    gap: 10px;
    margin-left: 10px;
  }

  .topbar .topbar-actions a,
  .home-body .topbar .topbar-actions a {
    font-size: 12px;
  }

  .topbar .main-nav,
  .home-body .topbar .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    height: 42px;
    margin-left: 0;
  }

  .topbar .main-nav a,
  .topbar .main-nav-disabled,
  .home-body .topbar .main-nav a,
  .home-body .topbar .main-nav-disabled {
    min-width: 0;
    width: auto;
    height: 42px;
    flex: 1;
    padding: 0 3px;
    font-size: 13px;
  }

}

.contact-content {
  display: grid;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 56px;
}

.wechat-login-button {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid #4b9b67;
  color: #2e7547;
  background: #f3fbf5;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.wechat-login-button:hover { background: #e6f6ea; }
.wechat-login-button:disabled { opacity: 0.6; cursor: wait; }
.auth-provider-note { margin: 8px 0 0; color: #7a8581; font-size: 12px; text-align: center; }

.contact-section {
  padding: 28px 30px;
  border: 1px solid rgba(109, 132, 125, 0.28);
  background: rgba(250, 252, 250, 0.94);
}

.contact-section h2 {
  margin: 6px 0 14px;
  color: #14201d;
  font-size: clamp(24px, 3vw, 34px);
}

.contact-copy {
  margin: 0;
  color: #4f5e5a;
  white-space: pre-line;
  line-height: 1.8;
}

.contact-media {
  margin-top: 22px;
  max-width: 100%;
  overflow: hidden;
}

.contact-media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #edf1ee;
}

.vip-header {
  padding-bottom: 30px;
}

.vip-content {
  padding-bottom: 56px;
}

.vip-status {
  min-height: 150px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 30px;
  border-top: 1px solid rgba(184, 247, 77, 0.42);
  border-bottom: 1px solid rgba(224, 234, 234, 0.14);
  background: #101617;
}

.vip-crown {
  width: 86px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #9cff00;
  color: #9cff00;
  font-size: 24px;
  font-weight: 800;
}

.vip-status strong {
  display: block;
  margin-bottom: 8px;
  color: #f5f8f6;
  font-size: 22px;
}

.vip-status p {
  color: #98a5a2;
  line-height: 1.7;
}

.vip-status a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #9cff00;
  color: #101510;
  background: #9cff00;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.guide-article-video {
  display: block;
  width: 100%;
  max-height: 520px;
  margin-top: 14px;
  background: #111;
}

@media (max-width: 700px) {
  .contact-content { padding: 0 0 28px; }
  .contact-section { padding: 22px 18px; }
  .vip-content { padding-bottom: 28px; }
  .vip-status {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 18px;
  }
  .vip-crown { width: 64px; height: 52px; font-size: 19px; }
  .vip-status strong { font-size: 19px; }
  .vip-status a { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 700px) {
  .mobile-nav-body {
    min-height: 100dvh;
  }

  .mobile-nav-body {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: min(100%, 700px);
    height: calc(68px + env(safe-area-inset-bottom));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 4px env(safe-area-inset-bottom);
    border-top: 1px solid #d8dddc;
    background: #f8faf9;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.3);
  }

  .mobile-nav-link {
    position: relative;
    min-width: 0;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 8px 2px 6px;
    color: #727a79;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-link > svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.is-current {
    color: #4f8d00;
  }

  .mobile-nav-link.is-current {
    font-weight: 700;
  }

  .mobile-nav-label {
    overflow: hidden;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-nav-vip {
    overflow: visible;
    padding-top: 38px;
  }

  .mobile-vip-emblem {
    position: absolute;
    top: -25px;
    left: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 4px solid #f8faf9;
    border-radius: 50%;
    color: var(--green);
    background: #151a1b;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.32);
    transform: translateX(-50%);
  }

  .mobile-vip-emblem svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav-vip.is-current .mobile-vip-emblem {
    color: #101414;
    background: var(--green);
  }

  #games,
  #redeemTitle,
  #vip,
  #historyView {
    scroll-margin-top: 14px;
  }
}

/* Compact image-only ad below the footer on phone-sized screens. */
@media (max-width: 700px) {
  .home-body .bottom-ad {
    display: block;
    order: 6;
    margin: 4px 0 12px;
  }

  .home-body .page-footer {
    order: 6;
  }

  .home-body .bottom-ad-link {
    display: block;
    width: 100%;
    height: 138px;
    overflow: hidden;
    border: 1px solid rgba(184, 247, 77, 0.62);
    background: #080b0b;
  }

  .home-body .bottom-ad-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 180ms ease, transform 300ms ease;
  }

  .home-body .bottom-ad-link:hover img {
    opacity: 1;
    transform: scale(1.015);
  }
}
