.ds-age-gate {
  --ds-age-highlight: #ffd400;
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 100% 360px at 50% 0, var(--ds-glow, #f9eabd), transparent), var(--ds-bg, #f6f8fb);
  color: var(--ds-text, #20242b);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  outline: none;
}

.ds-age-gate__panel {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--ds-muted, #7a808a) 12%, transparent);
  border-radius: 24px;
  background: var(--ds-surface, #fff);
  box-shadow: 0 16px 48px rgb(20 28 42 / 7%), 0 2px 6px rgb(20 28 42 / 3%);
}

.ds-age-gate__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--ds-muted, #7a808a) 14%, transparent);
}

.ds-age-gate__brand-copy { flex: 1; min-width: 0; }
.ds-age-gate__titlebar {
  margin: 0 0 5px;
  color: var(--ds-muted, #7a808a);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1px;
}

.ds-age-gate__logo {
  box-sizing: border-box;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 16px;
  object-fit: cover;
  background: var(--ds-bg, #f6f8fb);
  box-shadow: 0 5px 14px rgb(22 30 42 / 16%), 0 1px 3px rgb(22 30 42 / 10%);
}

.ds-age-gate__name { overflow-wrap: anywhere; font-size: 19px; font-weight: 700; line-height: 1.45; }
.ds-age-gate__card { margin-top: 22px; }
.ds-age-gate__warning {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -.4px;
}

.ds-age-gate__warning-icon {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--ds-accent, #e4b525) 24%, transparent);
  border-radius: 13px;
  background: var(--ds-soft, #fff5ce);
  color: var(--ds-text, #20242b);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.ds-age-gate__description { margin: 12px 0 0; color: var(--ds-muted, #7a808a); font-size: 14px; line-height: 1.85; }
.ds-age-gate__choices { display: grid; gap: 10px; margin-top: 22px; }
.ds-age-gate__agreement {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 12px;
  border: 1px solid color-mix(in srgb, var(--ds-muted, #7a808a) 16%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ds-bg, #f6f8fb) 65%, var(--ds-surface, #fff));
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, background-color .2s ease;
}

.ds-age-gate__agreement.is-checked {
  border-color: var(--ds-age-highlight, #ffd400);
  background: color-mix(in srgb, var(--ds-age-highlight, #ffd400) 16%, var(--ds-surface, #fff));
}

.ds-age-gate__choice-content { display: block; flex: 1; min-width: 0; }
.ds-age-gate__choice-title { display: block; font-size: 14px; font-weight: 650; line-height: 1.65; overflow-wrap: anywhere; }
.ds-age-gate__choice-description { display: block; margin-top: 5px; color: var(--ds-muted, #7a808a); font-size: 12px; font-weight: 400; line-height: 1.85; overflow-wrap: anywhere; }
.ds-age-gate__checkbox-wrap { position: relative; flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; }
.ds-age-gate__checkbox { position: absolute; z-index: 1; inset: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; opacity: 0; }
.ds-age-gate__checkbox-box {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1.5px solid color-mix(in srgb, var(--ds-muted, #7a808a) 65%, transparent);
  border-radius: 50%;
  background: var(--ds-surface, #fff);
  pointer-events: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.ds-age-gate__checkbox:focus-visible + .ds-age-gate__checkbox-box,
.ds-age-gate__confirm:focus-visible { outline: 3px solid color-mix(in srgb, var(--ds-age-highlight, #ffd400) 45%, transparent); outline-offset: 3px; }
.ds-age-gate__checkbox:checked + .ds-age-gate__checkbox-box {
  border-color: var(--ds-age-highlight, #ffd400);
  background: var(--ds-age-highlight, #ffd400);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--ds-age-highlight, #ffd400) 18%, transparent);
  animation: ds-age-check-pop .22s ease-out;
}

.ds-age-gate__checkbox:checked + .ds-age-gate__checkbox-box::after { position: absolute; top: 3px; left: 6px; width: 5px; height: 9px; border-right: 2px solid #29260b; border-bottom: 2px solid #29260b; content: ""; transform: rotate(42deg); }
@keyframes ds-age-check-pop { 0% { transform: scale(.85); } 65% { transform: scale(1.06); } 100% { transform: scale(1); } }
.ds-age-gate__agreement a { color: color-mix(in srgb, var(--ds-accent, #e4b525) 45%, var(--ds-text, #20242b)); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ds-age-gate__agreement a:hover { color: var(--ds-text, #20242b); }
.ds-age-gate__confirm {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 22px 0 0;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--ds-age-highlight, #ffd400);
  color: #29260b;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ds-age-gate__confirm:not(:disabled):hover { box-shadow: 0 5px 14px color-mix(in srgb, var(--ds-age-highlight, #ffd400) 22%, transparent); }
.ds-age-gate__confirm:not(:disabled):active { transform: scale(.99); }
.ds-age-gate__confirm:disabled { background: color-mix(in srgb, var(--ds-muted, #7a808a) 12%, var(--ds-surface, #fff)); color: var(--ds-muted, #7a808a); cursor: not-allowed; }
.ds-age-gate__status { min-height: 18px; margin: 9px 0 0; color: var(--ds-muted, #7a808a); font-size: 12px; line-height: 1.6; text-align: center; }
.ds-age-gate__exit-note { flex: 0 0 auto; max-width: 400px; margin: 0; padding: 0 8px; color: var(--ds-muted, #7a808a); font-size: 12px; line-height: 1.8; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .ds-age-gate__checkbox-box, .ds-age-gate__agreement, .ds-age-gate__confirm { animation: none !important; transition: none !important; }
}
@media (max-width: 360px) {
  .ds-age-gate { padding-left: 14px; padding-right: 14px; }
  .ds-age-gate__panel { padding: 20px 16px; border-radius: 20px; }
  .ds-age-gate__warning { gap: 9px; font-size: 18px; }
  .ds-age-gate__warning-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 16px; }
  .ds-age-gate__agreement { gap: 9px; padding: 12px 10px; }
}
@media (max-height: 740px) {
  .ds-age-gate { justify-content: flex-start; padding-top: max(20px, env(safe-area-inset-top)); gap: 14px; }
}
@media (max-height: 580px) {
  .ds-age-gate__brand { padding-bottom: 14px; }
  .ds-age-gate__card { margin-top: 16px; }
  .ds-age-gate__choices { margin-top: 16px; }
}
