/* Shared presentation for information pages; playable games keep their own UI. */
@font-face {
  font-family: "ZUQ Jakarta";
  src: url('/assets/fonts/plus-jakarta-sans-var-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "ZUQ Chakra";
  src: url('/assets/fonts/chakra-petch-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
body.zuq-shell {
  --shell-bg: #0f0d1f;
  --shell-card: #1a1730;
  --shell-line: #ffffff1c;
  --shell-text: #faf8ff;
  --shell-muted: #beb8d3;
  --shell-cyan: #22d3f5;
  --shell-brand: linear-gradient(110deg, #ff9a1f, #ff3d7f 52%, #e81cff);
  margin: 0;
  min-height: 100dvh;
  background: var(--shell-bg) url('/assets/home/bg-desktop.webp') center top / 100% auto no-repeat;
  color: var(--shell-text);
  font: 400 17px/1.8 "ZUQ Jakarta", system-ui, sans-serif;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}
.zuq-shell *, .zuq-shell *::before, .zuq-shell *::after { box-sizing: border-box; }
.zuq-shell [hidden] { display: none !important; }
.zuq-shell :is(a, button, input, select, textarea, summary) { touch-action: manipulation; }
.zuq-shell :focus-visible { outline: 3px solid var(--shell-cyan); outline-offset: 5px; }
.zuq-shell :is(h1, h2, h3) {
  font-family: "ZUQ Chakra", "ZUQ Jakarta", system-ui, sans-serif;
  color: var(--shell-text);
  line-height: 1.2;
  text-wrap: balance;
}
.zuq-shell h1 { font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -.035em; margin: 0 0 24px; }
.zuq-shell h2 { font-size: clamp(23px, 2.4vw, 29px); margin: 44px 0 16px; letter-spacing: -.02em; }
.zuq-shell h3 { font-size: 22px; margin-top: 32px; }
.zuq-shell :is(p, li, td) { color: #d5d0e4; line-height: 1.85; }
.zuq-shell p { margin: 0 0 22px; max-width: 70ch; }
.zuq-shell :is(b, strong) { color: var(--shell-text); }
.zuq-shell a { color: var(--shell-cyan); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.zuq-shell a:hover { color: #9aedff; }
.zuq-shell img { max-width: 100%; }
.zuq-shell :is(h2, h3, [id]) { scroll-margin-top: 112px; }
.zuq-shell :is(ul, ol) { padding-left: 24px; margin: 24px 0 32px; }
.zuq-shell li { padding-left: 5px; }
.zuq-shell li + li { margin-top: 14px; }
.zuq-shell li::marker { color: var(--shell-cyan); }
.zuq-shell :is(blockquote, .callout) {
  margin: 28px 0; padding: 20px 24px; border-left: 3px solid var(--shell-cyan);
  border-radius: 0 14px 14px 0; background: #22d3f50b;
}
.zuq-shell table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 28px 0; }
.zuq-shell :is(th, td) { padding: 14px 18px; border: 1px solid var(--shell-line); text-align: left; }
.zuq-shell th { background: #24203d; color: var(--shell-text); font-weight: 700; }
.zuq-shell tr:nth-child(even) { background: #ffffff04; }
.zuq-shell :is(pre, code) { background: #0f0d1f; border-radius: 8px; overflow-wrap: anywhere; }
.zuq-shell pre { padding: 20px; white-space: pre-wrap; }
.zuq-shell small, .zuq-shell .updated, .zuq-shell .subtle, .zuq-shell-muted { color: var(--shell-muted); }
.zuq-shell .updated { font-size: 13px; letter-spacing: .02em; margin-bottom: 28px; }

/* Original headers and back links remain intact in the content export. */
.zuq-shell > header:not(.zuq-shell-header),
.zuq-shell > footer:not(.zuq-shell-footer),
.zuq-shell > main > a:first-child[href="/"] { display: none; }
.zuq-shell .zuq-shell-header {
  position: sticky; top: 0; z-index: 40; display: block;
  max-width: none; width: 100%; margin: 0;
  padding: env(safe-area-inset-top, 0px) 0 0;
  background: #100e21f5; border: 0; border-bottom: 1px solid var(--shell-line);
}
.zuq-shell .zuq-shell-header-inner {
  display: flex; align-items: center; gap: 32px; min-height: 82px;
  max-width: 1280px; margin: auto; padding: 8px max(24px, env(safe-area-inset-left));
}
.zuq-shell .zuq-shell-logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.zuq-shell .zuq-shell-logo picture { display: flex; }
.zuq-shell .zuq-shell-logo img { display: block; width: 116px; height: 56px; object-fit: contain; }
.zuq-shell .zuq-shell-header nav { display: flex; align-items: center; gap: 10px; }
.zuq-shell .zuq-shell-header nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px;
  border-radius: 12px; color: #d5d0e4; text-decoration: none; font-size: 13px; font-weight: 700;
}
.zuq-shell .zuq-shell-header nav a:is(:hover, [aria-current]) { background: #22d3f512; color: var(--shell-cyan); }
.zuq-shell .zuq-shell-search {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; margin-left: auto; padding: 9px 18px; border: 1px solid #ffffff21;
  border-radius: 24px; background: #25213e; color: var(--shell-muted); font-size: 13px; text-decoration: none;
}
.zuq-shell :is(.zuq-shell-search, .zuq-shell-tabs) svg { width: 23px; height: 23px; flex: none; }
.zuq-shell .zuq-shell-skip {
  position: fixed; top: -100px; left: 20px; z-index: 100;
  padding: 12px 20px; background: var(--shell-card); border: 2px solid var(--shell-cyan); border-radius: 12px;
}
.zuq-shell .zuq-shell-skip:focus { top: 12px; }

.zuq-shell > main {
  position: relative; width: calc(100% - 48px); max-width: calc(70ch + 80px);
  margin: 40px auto 56px; padding: 44px 40px;
  background: linear-gradient(155deg, #211c39eb, #171429f5);
  border: 1px solid var(--shell-line); border-radius: 26px;
  box-shadow: 0 20px 70px #00000024;
  min-width: 0; overflow-wrap: anywhere;
}
.zuq-shell:is(.page-privacy, .page-terms, .page-policies, .page-standards) > main {
  background-image: url('/assets/home/page-legal.webp'), linear-gradient(155deg, #211c39eb, #171429f5);
  background-repeat: no-repeat; background-position: right 24px top 20px, center;
  background-size: 160px 160px, 100% 100%;
}
.zuq-shell:is(.page-privacy, .page-terms, .page-policies, .page-standards) > main > h1 { padding-right: 140px; min-height: 70px; }
.zuq-shell:is(.page-privacy, .page-terms, .page-policies, .page-standards, .page-family) > main::before {
  display: block; margin-bottom: 14px; color: var(--shell-cyan);
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.zuq-shell.page-privacy > main::before, .zuq-shell.page-terms > main::before { content: "ZUQ Play / Your information"; }
.zuq-shell.page-policies > main::before { content: "ZUQ Play / Player information"; }
.zuq-shell.page-standards > main::before { content: "ZUQ Community / Play respectfully"; }
.zuq-shell .zuq-shell-toc { display: none; }

.zuq-shell.page-community > main { max-width: 1160px; padding: 0; border: 0; background: none; box-shadow: none; }
.zuq-shell.page-community .intro {
  position: relative; min-height: 360px; margin-bottom: 24px; padding: 46px 40px 28px;
  border: 1px solid var(--shell-line); border-radius: 26px;
  background: linear-gradient(90deg, #19162cee, #19162c88 52%, #19162c00 75%),
    url('/assets/home/page-community.webp') center right / cover no-repeat, var(--shell-card);
}
.zuq-shell.page-community .intro :is(h1, p) { max-width: 55%; position: relative; }
.zuq-shell .eyebrow { display: inline-block; margin-bottom: 16px; color: var(--shell-cyan); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.zuq-shell.page-community .intro h1 { font-size: clamp(34px, 4vw, 52px); margin: 0 0 18px; }
.zuq-shell.page-community .intro p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.zuq-shell .panel {
  margin-bottom: 24px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--shell-line);
  border-radius: 22px; background: linear-gradient(145deg, #221d3a, #18152c); min-width: 0;
}
.zuq-shell .panel > h2:first-child { margin-top: 0; }
.zuq-shell.page-community #login { max-width: 680px; margin: 28px auto; }
.zuq-shell .columns { gap: 24px; }
.zuq-shell #status {
  margin: 24px 0; padding: 18px 24px; border: 1px solid #22d3f533;
  border-left: 3px solid var(--shell-cyan); border-radius: 12px; background: #22d3f50b;
  color: #d9f8ff; font-size: 14px;
}
.zuq-shell :is(input, select, textarea) {
  width: 100%; min-width: 0; min-height: 48px; padding: 13px 16px;
  border: 1px solid #716789; border-radius: 12px; background: #100e20;
  color: var(--shell-text); font: 400 16px/1.5 "ZUQ Jakarta", system-ui, sans-serif;
  box-shadow: inset 0 2px 6px #0002;
}
.zuq-shell :is(input, textarea)::placeholder { color: #a9a0be; }
.zuq-shell :is(input, select, textarea):focus-visible { outline-offset: 2px; border-color: var(--shell-cyan); }
.zuq-shell :is(input, select, textarea):is([aria-invalid="true"], :user-invalid) { border-color: #ff7ea8; background: #ff3d7f0b; }
.zuq-shell :is(.error, [role="alert"]) { color: #ffb4cb; border-color: #ff7ea8; }
.zuq-shell .success { color: #9af0d0; border-color: #54d2a6; }
.zuq-shell label { color: #ddd7ed; font-size: 13px; font-weight: 600; margin: 20px 0; }
.zuq-shell :is(input[type="checkbox"], input[type="radio"]) { width: 22px; min-height: 22px; height: 22px; accent-color: #22d3f5; box-shadow: none; }
.zuq-shell .check { align-items: center; min-height: 44px; gap: 10px; }
.zuq-shell button, .zuq-shell :is(.zuq-shell-primary, .zuq-shell-secondary) {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; max-width: 100%; padding: 12px 24px; border: 1px solid transparent;
  border-radius: 13px; background: linear-gradient(#0006, #0006), var(--shell-brand); color: #fff;
  font: 800 14px/1.5 "ZUQ Jakarta", system-ui, sans-serif; text-align: center;
  text-shadow: 0 1px 3px #550026; text-decoration: none; cursor: pointer;
}
.zuq-shell button:hover, .zuq-shell .zuq-shell-primary:hover { color: #fff; filter: brightness(1.12); }
.zuq-shell button:disabled { opacity: .48; cursor: not-allowed; filter: none; }
.zuq-shell :is(.secondary, .zuq-shell-secondary) { color: #ede8fa; background: #28233f; border-color: #74658f; text-shadow: none; }
.zuq-shell .danger { background: #ff3d7f12; color: #ffc2d7; border-color: #ff7ea866; text-shadow: none; }
.zuq-shell .link { background: none; color: var(--shell-cyan); padding: 8px; text-decoration: underline; text-shadow: none; }
.zuq-shell #google { width: 100%; background: #f5f4fa; color: #242135; text-shadow: none; border-color: #fff; }
.zuq-shell #google::before {
  content: ""; width: 18px; height: 18px; flex: none;
  border: 4px solid #4285f4; border-left-color: #fbbc05; border-top-color: #ea4335;
  border-bottom-color: #34a853; border-radius: 50%;
}
.zuq-shell #loginForm button { width: 100%; margin-top: 8px; }
.zuq-shell :is(.messages, .message) { border-color: var(--shell-line); background-color: #100e20; }
.zuq-shell.page-family > main {
  max-width: 1000px; padding-top: 48px;
  background: linear-gradient(90deg, #19162cf5, #19162caa 55%, #19162c00 80%) right top / 100% 320px no-repeat,
    url('/assets/home/page-family.webp') right top / auto 320px no-repeat, var(--shell-card);
}
.zuq-shell.page-family > main::before { content: "ZUQ Play / Family time"; }
.zuq-shell.page-family > main > h1 { max-width: 60%; }
.zuq-shell.page-family > main > h1 + p { max-width: 53%; min-height: 150px; }
.zuq-shell.page-family > main > ul {
  padding: 24px 24px 24px 44px; background: #0f0d1f99;
  border: 1px solid var(--shell-line); border-radius: 16px;
}

.zuq-shell:is(.page-lost, .page-soon) > main { max-width: 1160px; padding: 0; border: 0; background: none; box-shadow: none; }
.zuq-shell .zuq-shell-feature {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center;
  gap: 24px; padding: 40px 48px; border: 1px solid var(--shell-line); border-radius: 28px;
  background: radial-gradient(ellipse at 90% 30%, #6d2acc45, transparent 70%), var(--shell-card);
}
.zuq-shell .zuq-shell-feature h1 { font-size: clamp(40px, 5vw, 68px); }
.zuq-shell .zuq-shell-kicker { color: var(--shell-cyan); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.zuq-shell .zuq-shell-spot { display: block; width: 100%; height: auto; max-width: 360px; justify-self: center; }
.zuq-shell .zuq-shell-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.zuq-shell .zuq-shell-chip { display: inline-flex; padding: 5px 12px; margin-bottom: 18px; border-radius: 24px; border: 1px solid #ff9a1f55; background: #ff9a1f12; color: #ffbd72; font-size: 12px; font-weight: 800; }
.zuq-shell .zuq-shell-soon-art { display: block; width: 100%; max-height: 500px; object-fit: cover; border-radius: 24px; margin-top: 28px; border: 1px solid var(--shell-line); }
.zuq-shell .zuq-shell-recommendations { padding-top: 12px; }
.zuq-shell .zuq-shell-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.zuq-shell .zuq-shell-game { display: block; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; border: 1px solid #ffffff21; background: var(--shell-card); text-decoration: none; }
.zuq-shell .zuq-shell-game img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zuq-shell .zuq-shell-game span {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px 12px 12px;
  background: linear-gradient(transparent 30%, #0f0d1fe6); color: #fff;
  font: 700 20px/1.15 "ZUQ Chakra", sans-serif; text-shadow: 0 2px 5px #000;
}
.zuq-shell .zuq-shell-game:hover { border-color: var(--shell-cyan); }
.zuq-shell .zuq-shell-game:focus-visible { outline-offset: 4px; }
.zuq-shell .zuq-shell-footer {
  display: block; max-width: 1160px; width: calc(100% - 48px); margin: 0 auto;
  padding: 28px 0 40px; border-top: 1px solid var(--shell-line); font-size: 12px; line-height: 1.6;
}
.zuq-shell .zuq-shell-footer-top { display: flex; align-items: center; gap: 28px; color: var(--shell-muted); margin-bottom: 18px; }
.zuq-shell .zuq-shell-footer .zuq-shell-logo img { width: 88px; height: 44px; }
.zuq-shell .zuq-shell-footer-links { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 2px; }
.zuq-shell .zuq-shell-footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--shell-muted); text-decoration: none; }
.zuq-shell .zuq-shell-footer-links a:hover { color: var(--shell-cyan); }
.zuq-shell .zuq-safety-nav { margin: 12px 0 0; padding: 0; display: flex; border: 0; background: none; }
.zuq-shell .zuq-safety-nav button { min-height: 44px; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: none; color: var(--shell-cyan); font-size: 12px; text-shadow: none; text-decoration: underline; }
.zuq-shell .zuq-shell-tabs { display: none; }
.zuq-shell #zuq-safety-dialog { max-width: min(600px, calc(100vw - 32px)); max-height: 86dvh; overflow: auto; padding: 28px; border: 1px solid #22d3f555; border-radius: 22px; background: var(--shell-card); color: var(--shell-text); }
.zuq-shell #zuq-safety-dialog::backdrop { background: #070510c9; }
.zuq-shell #zuq-safety-dialog h2 { margin-top: 0; }

@media (min-width: 1200px) {
  body.zuq-shell:is(.page-privacy, .page-terms, .page-policies, .page-standards) {
    display: grid; grid-template-columns: minmax(24px, 1fr) minmax(0, calc(70ch + 80px)) 220px minmax(24px, 1fr);
    column-gap: 28px; align-items: start;
  }
  .zuq-shell:is(.page-privacy, .page-terms, .page-policies, .page-standards) > .zuq-shell-header { grid-column: 1 / -1; grid-row: 1; }
  .zuq-shell:is(.page-privacy, .page-terms, .page-policies, .page-standards) > main { grid-column: 2; grid-row: 2; width: 100%; }
  .zuq-shell .zuq-shell-toc {
    grid-column: 3; grid-row: 2; display: block; position: sticky; top: 122px;
    max-height: calc(100dvh - 156px); overflow-y: auto; overscroll-behavior: contain;
    margin: 48px 0; padding: 22px 0 22px 20px; border-left: 1px solid #22d3f533;
  }
  .zuq-shell .zuq-shell-toc p { margin: 0 0 14px; color: #f5f0ff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
  .zuq-shell .zuq-shell-toc nav { display: grid; gap: 2px; }
  .zuq-shell .zuq-shell-toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: var(--shell-muted); text-decoration: none; font-size: 12px; line-height: 1.6; }
  .zuq-shell .zuq-shell-toc a:is(:hover, :focus-visible) { background: #22d3f512; color: var(--shell-cyan); }
  .zuq-shell:is(.page-privacy, .page-terms, .page-policies, .page-standards) > .zuq-shell-footer { grid-column: 2 / 4; grid-row: 3; width: 100%; }
}
@media (max-width: 900px) {
  .zuq-shell .zuq-shell-header-inner { min-height: 72px; gap: 20px; }
  .zuq-shell .zuq-shell-header nav { gap: 2px; }
  .zuq-shell .zuq-shell-header nav a { padding-inline: 10px; }
  .zuq-shell .zuq-shell-search span { display: none; }
  .zuq-shell .zuq-shell-search { width: 46px; padding: 10px; }
  .zuq-shell.page-community .intro { padding: 32px; }
  .zuq-shell.page-community .intro :is(h1, p) { max-width: 65%; }
  .zuq-shell .zuq-shell-feature { padding: 32px; gap: 12px; }
  .zuq-shell .zuq-shell-games { gap: 12px; }
}
@media (max-width: 760px) {
  body.zuq-shell { background-image: url('/assets/home/bg-mobile.webp'); padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .zuq-shell .zuq-shell-header-inner { min-height: 68px; padding-inline: max(16px, env(safe-area-inset-left)); }
  .zuq-shell .zuq-shell-logo img { width: 96px; height: 48px; }
  .zuq-shell .zuq-shell-header nav { display: none; }
  .zuq-shell > main { width: calc(100% - 32px); margin: 24px auto 40px; padding: 28px 24px; border-radius: 20px; }
  .zuq-shell:is(.page-privacy, .page-terms, .page-policies, .page-standards) > main {
    background-image: linear-gradient(155deg, #211c39eb, #171429f5); background-size: 100% 100%;
  }
  .zuq-shell:is(.page-privacy, .page-terms, .page-policies, .page-standards) > main > h1 { padding-right: 0; min-height: 0; }
  .zuq-shell h1 { font-size: clamp(30px, 8vw, 42px); }
  .zuq-shell h2 { margin-top: 36px; font-size: 24px; }
  .zuq-shell.page-community > main { padding: 0; }
  .zuq-shell.page-community .intro {
    padding: 28px 24px 180px; min-height: 470px;
    background: linear-gradient(#19162c 0%, #19162cdd 52%, #19162c00 72%),
      url('/assets/home/page-community.webp') right bottom / auto 250px no-repeat, var(--shell-card);
    border-radius: 20px;
  }
  .zuq-shell.page-community .intro :is(h1, p) { max-width: 100%; }
  .zuq-shell.page-community .intro h1 { font-size: clamp(30px, 8vw, 42px); }
  .zuq-shell .panel { padding: 24px; }
  .zuq-shell .columns { grid-template-columns: minmax(0, 1fr); }
  .zuq-shell.page-family > main { padding-top: 28px; background: linear-gradient(155deg, #211c39eb, #171429f5); }
  .zuq-shell.page-family > main > h1, .zuq-shell.page-family > main > h1 + p { max-width: 100%; min-height: 0; }
  .zuq-shell .zuq-shell-feature { grid-template-columns: minmax(0, 1fr); padding: 28px 24px 12px; border-radius: 20px; }
  .zuq-shell .zuq-shell-feature h1 { font-size: clamp(36px, 10vw, 50px); }
  .zuq-shell .zuq-shell-spot { max-width: 230px; }
  .zuq-shell .zuq-shell-actions > a { flex: 1 1 160px; }
  .zuq-shell .zuq-shell-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zuq-shell .zuq-shell-game span { font-size: 20px; }
  .zuq-shell .zuq-shell-footer { width: calc(100% - 32px); padding-bottom: 24px; }
  .zuq-shell .zuq-shell-footer-top { gap: 20px; }
  .zuq-shell .zuq-shell-footer-top > span { font-size: 11px; }
  .zuq-shell .zuq-shell-footer-links { column-gap: 24px; }
  .zuq-shell .zuq-shell-tabs {
    position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 5px max(8px, env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom, 0px));
    background: #100e21fa; border-top: 1px solid var(--shell-line);
  }
  .zuq-shell .zuq-shell-tabs a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 54px; color: var(--shell-muted); font-size: 10px; font-weight: 700; text-decoration: none;
  }
  .zuq-shell .zuq-shell-tabs a:hover { color: var(--shell-cyan); }
}
@media (max-width: 360px) {
  .zuq-shell > main { padding-inline: 20px; width: calc(100% - 24px); }
  .zuq-shell .panel, .zuq-shell.page-community .intro { padding-inline: 20px; }
  .zuq-shell .zuq-shell-feature { padding-inline: 20px; }
  .zuq-shell .zuq-shell-game span { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .zuq-shell *, .zuq-shell *::before, .zuq-shell *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  body.zuq-shell { display: block; background: #fff; color: #111; padding: 0; }
  .zuq-shell :is(.zuq-shell-header, .zuq-shell-footer, .zuq-shell-tabs, .zuq-shell-toc) { display: none; }
  .zuq-shell > main { width: 100%; margin: 0; padding: 0; border: 0; background: none !important; box-shadow: none; }
  .zuq-shell :is(h1, h2, h3, p, li, a) { color: #111; }
}

/* Shared privacy sheet overrides the safety module without changing its files. */
html body dialog#zuq-safety-dialog,
html body dialog#zuq-safety-dialog * {
  box-sizing: border-box;
}
html body dialog#zuq-safety-dialog {
  inset: 0;
  width: calc(100% - 32px);
  max-width: 540px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #514368;
  border-radius: 24px;
  background: #17142b;
  color: #efefff;
  box-shadow: 0 24px 80px #0008;
  color-scheme: dark;
  font: 400 14px/1.7 "ZUQ Jakarta", Jakarta, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
html body dialog#zuq-safety-dialog::backdrop {
  background: #05040ccc;
}
html body dialog#zuq-safety-dialog form {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
}
html body dialog#zuq-safety-dialog h2 {
  margin: 0;
  color: #efefff;
  font: 700 26px/1.2 "ZUQ Chakra", Chakra, sans-serif;
  letter-spacing: -0.03em;
}
html body dialog#zuq-safety-dialog p {
  margin: 0;
  color: #b4b1ca;
  font-size: 14px;
  line-height: 1.7;
}
html body dialog#zuq-safety-dialog label {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: #efefff;
  font-size: 14px;
  font-weight: 600;
}
html body dialog#zuq-safety-dialog select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 36px 10px 14px;
  border: 1px solid #6b5f83;
  border-radius: 12px;
  appearance: none;
  background: linear-gradient(45deg, transparent 50%, #efefff 50%) right 18px center / 6px 6px no-repeat,
    linear-gradient(135deg, #efefff 50%, transparent 50%) right 12px center / 6px 6px no-repeat,
    #100d20;
  color: #efefff;
  font: 400 16px/1.5 "ZUQ Jakarta", Jakarta, system-ui, sans-serif;
}
html body dialog#zuq-safety-dialog option {
  background: #100d20;
  color: #efefff;
}
html body dialog#zuq-safety-dialog label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding-block: 8px;
  cursor: pointer;
}
html body dialog#zuq-safety-dialog input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #22d3f5;
  cursor: pointer;
}
html body dialog#zuq-safety-dialog input:disabled {
  opacity: 0.5;
  cursor: default;
}
html body dialog#zuq-safety-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(110deg, #ac4200, #b51555 48%, #970ca8);
  color: #fff;
  font: 800 14px/1.5 "ZUQ Jakarta", Jakarta, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
}
html body dialog#zuq-safety-dialog button#zuq-private {
  border-color: #74658f;
  background: transparent;
  color: #efefff;
}
html body dialog#zuq-safety-dialog button:hover:not(:disabled) {
  filter: brightness(1.12);
}
html body dialog#zuq-safety-dialog a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
  color: #22d3f5;
  text-decoration: underline;
  text-underline-offset: 4px;
}
html body dialog#zuq-safety-dialog :is(select, input, button, a):focus-visible {
  outline: 2px solid #22d3f5;
  outline-offset: 3px;
}
html body dialog#zuq-safety-dialog select:focus-visible {
  border-color: #22d3f5;
}

@media (max-width: 760px) {
  html body dialog#zuq-safety-dialog {
    inset: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    margin: 0;
    padding: 24px max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
  }
  html body dialog#zuq-safety-dialog h2 {
    font-size: 24px;
  }
}
