:root {
  --gold: #b87b2d;
  --gold-deep: #76501e;
  --ink: #241b13;
  --muted: #73675d;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }

.app-shell {
  width: min(100%, 750px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.brand-logo { display: block; height: auto; object-fit: contain; }
.favorite-button { cursor: pointer; }
.notice-bar { display: grid; grid-template-columns: 28px 1fr 12px; align-items: center; }
.notice-bar p { margin: 0; }
.notice-icon { font-size: 22px; }
.notice-arrow { font: 32px/1 serif; }
.advertisement-list { display: grid; }

.ad-card {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.ad-icon { display: grid; place-items: center; overflow: hidden; }
.ad-icon img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: inherit; image-rendering: auto; }
.ad-copy { min-width: 0; position: relative; z-index: 2; }
.ad-copy h2 { margin: 0; line-height: 1.2; }
.ad-copy p { margin: 7px 0 0; line-height: 1.5; }
.ad-number { position: absolute; pointer-events: none; }
.featured-badge { position: absolute; z-index: 3; }

.enter-button {
  position: relative;
  z-index: 2;
  min-height: 46px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, filter .18s ease;
}

.enter-button span { margin-left: 3px; font-size: 22px; vertical-align: -1px; }
.enter-button:active { transform: translateY(2px) scale(.99); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: center; justify-content: center; }
.trust-item strong, .trust-item span { display: block; }
.bottom-card { display: grid; grid-template-columns: .95fr 1.05fr; }
.bottom-card h2 { margin: 0 0 14px; font-size: 15px; }
.browser-group { padding-right: 20px; }
.browser-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.browser-list > div { display: grid; justify-items: center; text-align: center; }
.browser-list img { width: 42px; height: 42px; display: block; object-fit: contain; }
.browser-list p { margin: 6px 0 0; font-size: 12px; }
.browser-list small { display: block; margin-top: 2px; font-size: 9px; }
.tips-copy h2 span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; font: 700 13px/1 serif; }
.tips-copy ol { margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.75; }
.page-footer { text-align: center; }
.page-footer p, .page-footer small { margin: 0; }
.page-footer p { display: flex; align-items: center; justify-content: center; gap: 9px; }
.page-footer p span { width: 34px; height: 1px; }
.page-footer p span:last-child { transform: rotate(180deg); }
.page-footer em { display: block; font-style: normal; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: calc(100vw - 36px);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: rgba(30, 24, 18, .94);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

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

@media (max-width: 520px) {
  .ad-copy h2 { font-size: 18px; }
  .ad-copy p { font-size: 12px; }
  .enter-button { min-height: 42px; font-size: 14px; }
  .bottom-card { grid-template-columns: 1fr; }
  .browser-group { padding-right: 0; }
}

@media (max-width: 365px) {
  .ad-copy h2 { font-size: 16px; }
  .ad-copy p { font-size: 11px; }
  .enter-button { font-size: 12px; }
}

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