.jrsg-locked { overflow: hidden; }
.jrsg-age[hidden], .jrsg-cookie[hidden], .jrsg-install[hidden] { display: none !important; }
.jrsg-age { position: fixed; inset: 0; z-index: 1000000; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s ease; }
.jrsg-age.is-visible { opacity: 1; }
.jrsg-backdrop { position: absolute; inset: 0; background: #0b0d12; }
.jrsg-dialog { position: relative; width: min(440px, 100%); padding: 34px; border-radius: 16px; color: #222 !important; background: #fff !important; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.jrsg-dialog h2 { margin: 10px 0; color: #222 !important; }
.jrsg-dialog p { color: #6b7280 !important; line-height: 1.7; }
.jrsg-logo { width: 62px; height: 62px; border-radius: 16px; }
.jrsg-badge { display: inline-grid; place-items: center; min-width: 44px; height: 28px; margin-left: 8px; padding: 0 9px; border-radius: 14px; color: #fff; background: #e53935; font-weight: 800; vertical-align: top; }
.jrsg-button { min-height: 40px; padding: 9px 17px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s ease, opacity .15s ease; }
.jrsg-button:hover { transform: translateY(-1px); opacity: .92; }
.jrsg-primary { color: #fff; background: var(--theme-color, #ff5473); }
.jrsg-secondary { color: var(--main-color, #444); background: var(--muted-bg-color, #f2f3f5); }
.jrsg-dialog > .jrsg-primary { width: 100%; margin-top: 10px; }
.jrsg-dialog .jrsg-question { margin: 20px 0 8px; color: #9ca3af !important; font-size: 12px; }
.jrsg-actions { display: flex; gap: 10px; }
.jrsg-actions .jrsg-button { flex: 1; }
.jrsg-cookie, .jrsg-install { position: fixed; z-index: 999990; opacity: 0; transform: translateY(16px); transition: opacity .2s ease, transform .2s ease; }
.jrsg-cookie.is-visible, .jrsg-install.is-visible { opacity: 1; transform: translateY(0); }
.jrsg-cookie { left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1120px; margin: auto; padding: 16px 20px; border: 1px solid var(--main-border-color, #eee); border-radius: var(--main-radius, 8px); }
.jrsg-cookie p, .jrsg-install p { margin: 3px 0 0; }
.jrsg-cookie-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.jrsg-text-link { color: var(--focus-color, var(--theme-color, #ff5473)); }
.jrsg-install { right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; width: min(430px, calc(100% - 40px)); padding: 14px; border: 1px solid var(--main-border-color, #eee); border-radius: var(--main-radius, 8px); }
.jrsg-install img { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto; }
.jrsg-install-copy { flex: 1; min-width: 0; }
.jrsg-install-copy p { font-size: 12px; line-height: 1.45; }
.jrsg-install-steps { margin: 9px 0 0; padding-left: 20px; color: var(--main-color, #444); font-size: 13px; line-height: 1.65; }
.jrsg-install.is-guidance { align-items: flex-start; }
.jrsg-install.is-guidance > img { margin-top: 2px; }
.jrsg-install.is-guidance > .jrsg-button { align-self: center; flex: 0 0 auto; }
.jrsg-close { position: absolute; top: -10px; right: -8px; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; color: var(--main-color, #444); background: var(--muted-bg-color, #eee); cursor: pointer; font-size: 18px; line-height: 25px; }
@media (max-width: 700px) {
  .jrsg-dialog { padding: 28px 20px; }
  .jrsg-cookie { align-items: stretch; flex-direction: column; gap: 12px; }
  .jrsg-cookie-actions { flex-wrap: wrap; }
  .jrsg-cookie-actions .jrsg-primary, .jrsg-cookie-actions .jrsg-secondary { flex: 1; }
  .jrsg-install { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; }
  .jrsg-install.is-guidance { display: grid; grid-template-columns: 48px 1fr; }
  .jrsg-install.is-guidance .jrsg-install-copy { grid-column: 2; }
  .jrsg-install.is-guidance > .jrsg-button { grid-column: 1 / -1; width: 100%; }
}
@media (prefers-color-scheme: dark) {
  .jrsg-dialog { color: #f3f4f6 !important; background: #1d2025 !important; }
  .jrsg-dialog h2 { color: #f3f4f6 !important; }
  .jrsg-dialog p { color: #aeb4bf !important; }
  .jrsg-dialog .jrsg-question { color: #8f96a3 !important; }
  .jrsg-dialog .jrsg-secondary { color: #e5e7eb; background: #30343b; }
}
