: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 {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.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;
}

.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-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: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;
}

.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);
  text-decoration: none;
}

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

/* 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;
  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;
}

/* 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; }
  .main-nav { order: 3; width: 100%; height: 42px; margin: 0; border-top: 1px solid var(--line); }
  .main-nav a { 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-status { font-size: 12px; }
  .main-nav a { 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 {
  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 { 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 { 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 { 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 {
  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 { font-size: 16px; }
}

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

/* Mobile pickup view: put the redeem workflow directly below one compact banner. */
@media (max-width: 700px) {
  .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: 2; }
  .home-body .workspace { order: 3; }
  .home-body .home-helpbar { order: 4; }
  .home-body .page-footer { order: 5; }

  .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 {
    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 { font-size: 13px; }
  .home-body .ad-slide { min-height: 118px; }
  .home-body .ad-copy strong { font-size: 21px; }
}

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

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

  .mobile-nav-body {
    padding-bottom: calc(78px + 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: 5;
    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);
  }
}
