.ds-age-gate {
  --ds-age-highlight: #ffd43b;
  --ds-age-on-highlight: #25200f;
  --ds-age-selection-border: #e2b82f;
  --ds-age-border: color-mix(in srgb, var(--ds-text, #20242b) 10%, transparent);
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(32px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: var(--ds-bg, #f3f4f6);
  color: var(--ds-text, #20242b);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.ds-age-gate__panel {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: min(440px, 100%);
  padding: 32px 34px 24px;
  border: 1px solid var(--ds-age-border);
  border-radius: 24px;
  background: var(--ds-surface, #fff);
  box-shadow: 0 24px 70px rgb(18 25 38 / 6%);
  animation: ds-age-enter .42s cubic-bezier(.2, .7, .2, 1) both;
}

.ds-age-gate__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ds-age-gate__brand-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ds-age-gate__titlebar { margin: 0 0 3px; color: var(--ds-muted, #7b808b); font-size: 10px; font-weight: 400; line-height: 1.4; letter-spacing: 2px; }
.ds-age-gate__logo { box-sizing: border-box; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--ds-age-border); border-radius: 12px; object-fit: cover; background: var(--ds-bg, #f3f4f6); box-shadow: 0 3px 8px rgb(18 25 38 / 7%); }
.ds-age-gate__name { max-width: 100%; overflow-wrap: anywhere; color: inherit; font-size: 19px; font-weight: 750; line-height: 1.4; letter-spacing: .4px; }
.ds-age-gate__card { margin-top: 34px; }
.ds-age-gate__hero { position: relative; display: flex; align-items: center; gap: 23px; isolation: isolate; margin: 0 0 18px; }
.ds-age-gate__warning-icon { position: relative; display: inline-flex; align-items: flex-start; color: inherit; font-family: Arial, sans-serif; font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -7px; }
.ds-age-gate__warning-icon::before { position: absolute; z-index: -1; right: 5px; bottom: 7px; left: 0; height: 19px; border-radius: 3px; background: var(--ds-age-highlight); content: ""; transform: rotate(-4deg); }
.ds-age-gate__plus { margin: 3px 0 0 4px; font-size: 48px; line-height: 1; letter-spacing: -2px; }
.ds-age-gate__hero-caption { display: flex; flex-direction: column; gap: 6px; padding-top: 5px; color: var(--ds-muted, #7b808b); font-size: 11px; line-height: 1.7; letter-spacing: 1px; white-space: pre-line; }
.ds-age-gate__hero-caption::before { width: 24px; height: 3px; border-radius: 2px; background: var(--ds-age-highlight); content: ""; }
.ds-age-gate__warning { margin: 0; color: inherit; font-size: 29px; font-weight: 750; line-height: 1.45; letter-spacing: -1px; text-wrap: balance; }
.ds-age-gate__description { margin: 10px 0 0; color: var(--ds-muted, #7b808b); font-size: 12px; line-height: 1.9; white-space: pre-line; text-wrap: pretty; }
.ds-age-gate__choices { display: grid; gap: 10px; margin-top: 26px; }
.ds-age-gate__agreement {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--ds-age-border);
  border-radius: 13px;
  background: var(--ds-surface, #fff);
  color: inherit;
  cursor: pointer;
  transition: border-color .24s ease, background-color .24s ease, box-shadow .24s ease;
}
.ds-age-gate__agreement.is-checked { border-color: var(--ds-age-selection-border); background: color-mix(in srgb, var(--ds-age-highlight) 9%, var(--ds-surface, #fff)); box-shadow: 0 3px 10px color-mix(in srgb, var(--ds-age-highlight) 8%, transparent); }
.ds-age-gate__choice-content { display: block; flex: 1; min-width: 0; }
.ds-age-gate__choice-title { display: block; font-size: 13px; font-weight: 650; line-height: 1.65; overflow-wrap: anywhere; }
.ds-age-gate__choice-description { display: block; margin-top: 4px; color: var(--ds-muted, #7b808b); font-size: 10.5px; font-weight: 400; line-height: 1.8; overflow-wrap: anywhere; }
.ds-age-gate__checkbox-wrap { position: relative; order: 1; flex: 0 0 23px; width: 23px; height: 23px; }
.ds-age-gate__checkbox { position: absolute; z-index: 1; inset: 0; width: 23px; height: 23px; 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-text, #20242b) 20%, transparent); border-radius: 50%; background: var(--ds-surface, #fff); pointer-events: none; transition: border-color .2s ease, background-color .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) 60%, transparent); outline-offset: 4px; }
.ds-age-gate__checkbox:checked + .ds-age-gate__checkbox-box { border-color: var(--ds-age-highlight); background: var(--ds-age-highlight); box-shadow: 0 2px 6px color-mix(in srgb, var(--ds-age-highlight) 18%, transparent); animation: ds-age-check-pop .32s cubic-bezier(.2, .8, .3, 1.2); }
.ds-age-gate__checkbox:checked + .ds-age-gate__checkbox-box::after { position: absolute; top: 4px; left: 7px; width: 5px; height: 9px; border-right: 2px solid var(--ds-age-on-highlight); border-bottom: 2px solid var(--ds-age-on-highlight); content: ""; transform: rotate(42deg); animation: ds-age-tick .22s ease-out both; }
.ds-age-gate__agreement a { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ds-text, #20242b); font: inherit; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--ds-age-selection-border); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ds-age-gate__confirm {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  margin: 24px 0 0;
  padding: 15px 44px;
  border: 0;
  border-radius: 13px;
  background: var(--ds-age-highlight);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ds-age-highlight) 20%, transparent);
  color: var(--ds-age-on-highlight);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .24s ease, background-color .24s ease, color .24s ease;
}
.ds-age-gate__confirm::after { position: absolute; right: 19px; top: 50%; width: 7px; height: 7px; border-top: 1.7px solid currentColor; border-right: 1.7px solid currentColor; content: ""; transform: translateY(-50%) rotate(45deg); transition: right .2s ease; }
.ds-age-gate__confirm:not(:disabled):active { transform: scale(.985); }
.ds-age-gate__confirm:disabled { background: color-mix(in srgb, var(--ds-age-highlight) 35%, var(--ds-surface, #fff)); box-shadow: none; color: color-mix(in srgb, var(--ds-age-on-highlight) 50%, #fff); cursor: not-allowed; }
.ds-age-gate__status { min-height: 18px; margin: 11px 0 0; color: var(--ds-muted, #7b808b); font-size: 10.5px; line-height: 1.7; text-align: center; }
.ds-age-gate__exit-note { flex: 0 0 auto; max-width: 360px; margin: 22px 0 0; padding: 0 8px; color: var(--ds-muted, #7b808b); font-size: 10px; line-height: 1.8; text-align: center; }

@keyframes ds-age-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ds-age-check-pop { 0% { transform: scale(.8); } 65% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes ds-age-tick { from { opacity: 0; transform: rotate(42deg) scale(.6); } to { opacity: 1; transform: rotate(42deg) scale(1); } }
@media (hover: hover) {
  .ds-age-gate__agreement:hover { border-color: var(--ds-age-selection-border); }
  .ds-age-gate__confirm:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 9px 22px color-mix(in srgb, var(--ds-age-highlight) 28%, transparent); }
  .ds-age-gate__confirm:not(:disabled):hover::after { right: 16px; }
}
@media (max-width: 520px) {
  .ds-age-gate { justify-content: flex-start; padding: max(30px, env(safe-area-inset-top)) 28px max(22px, env(safe-area-inset-bottom)); background: var(--ds-surface, #fff); }
  .ds-age-gate__panel { width: 100%; max-width: 370px; margin: auto 0 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .ds-age-gate__exit-note { margin: 26px 0 auto; padding: 0; }
  .ds-age-gate__card { margin-top: 38px; }
}
@media (max-width: 360px) {
  .ds-age-gate { padding-right: 22px; padding-left: 22px; }
  .ds-age-gate__card { margin-top: 28px; }
  .ds-age-gate__warning { font-size: 25px; }
  .ds-age-gate__hero { gap: 20px; margin-bottom: 16px; }
  .ds-age-gate__warning-icon { font-size: 76px; }
  .ds-age-gate__plus { font-size: 42px; }
  .ds-age-gate__description { font-size: 11px; }
  .ds-age-gate__choices { margin-top: 22px; }
  .ds-age-gate__agreement { padding: 13px; gap: 10px; }
  .ds-age-gate__choice-title { font-size: 12px; }
  .ds-age-gate__choice-description { font-size: 10px; }
}
@media (max-height: 700px) and (min-width: 361px) {
  .ds-age-gate__card { margin-top: 24px; }
  .ds-age-gate__hero { margin-bottom: 12px; }
  .ds-age-gate__warning-icon { font-size: 76px; }
  .ds-age-gate__plus { font-size: 42px; }
  .ds-age-gate__choices { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-age-gate__panel, .ds-age-gate__checkbox-box, .ds-age-gate__checkbox-box::after, .ds-age-gate__agreement, .ds-age-gate__confirm, .ds-age-gate__confirm::after { animation: none !important; transition: none !important; }
}
