:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 36px) max(28px, env(safe-area-inset-bottom));
}

.hero-banner {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 179 / 75;
  border-radius: 22px;
  background: #111111;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-placeholder {
  display: flex;
  height: 100%;
  padding: 24px;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #111111, #343434 56%, #6d6d72);
}

.banner-placeholder span {
  margin-bottom: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.banner-placeholder strong {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 2px 14px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.section-head h1 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.15;
}

.dynamic-head {
  padding-top: 22px;
}

.dynamic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.dynamic-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.035);
}

.dynamic-card .watch-frame {
  width: min(82%, 220px);
  margin: 8px auto 2px;
}

.watch-frame {
  position: relative;
  width: min(82%, 220px);
  aspect-ratio: 773 / 1232;
  margin: 8px auto 2px;
  background: transparent;
}

.watch-screen {
  position: absolute;
  left: 9.8%;
  top: 18.7%;
  transform: none;
  z-index: 1;
  overflow: hidden;
  width: 80.2%;
  height: 64.2%;
  border-radius: 18% / 15%;
  background: #050505;
}

.watch-media {
  display: block;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.watch-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.redeem-button {
  width: calc(100% - 24px);
  min-height: 38px;
  margin: 11px;
  border: 0;
  border-radius: 999px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.watchface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.watchface-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.035);
}

.cover-link {
  display: block;
  background: #ffffff;
}

.card-body {
  display: flex;
  min-height: 62px;
  padding: 11px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.card-body h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.28;
  font-weight: 650;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.download-button {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  touch-action: manipulation;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.34);
}

.modal-backdrop[hidden] {
  display: none;
}

.redeem-modal {
  width: min(100%, 420px);
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.redeem-modal h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.redeem-modal p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.redeem-modal input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f5f7;
  color: var(--text);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.modal-cancel {
  background: #ececf0;
  color: var(--text);
}

.modal-submit {
  background: #1d1d1f;
  color: #ffffff;
}

.inline-button {
  width: auto;
  padding: 0 18px;
}

.empty-state {
  padding: 44px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.empty-state h1 {
  color: var(--text);
  font-size: 22px;
}

.empty-state p {
  margin-bottom: 16px;
}

.site-footer {
  padding: 26px 8px 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:active {
  color: var(--text);
}

@media (max-width: 360px) {
  .page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .watchface-grid {
    gap: 10px;
  }

  .card-body {
    padding: 10px;
  }

  .download-button {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .dynamic-list,
  .watchface-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dynamic-card .watch-frame,
  .watch-frame {
    width: min(96%, 190px);
  }
}
