.family-account-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:0 12px;border:1px solid #e1d9ff;border-radius:14px;background:#eeebff;color:#433477;font-size:14px;font-weight:760;white-space:nowrap}
.family-account-button:hover {border-color:#9c8bda}
.family-account-button:focus-visible {outline:3px solid #7664cf;outline-offset:3px}
.family-account-icon {display:grid;place-items:center;min-width:21px;font-size:19px}
.family-account-label {max-width:145px;overflow:hidden;text-overflow:ellipsis}
.family-diamond {color:#8060d6}
.family-ad-slot {max-width:864px;margin:26px auto;text-align:center}
.family-ad-label {display:block;margin-bottom:6px;color:var(--muted);font-size:12px}
.family-ad-content {width:100%;margin-inline:auto}
.family-ad-slot[hidden],.ad-settings-link[hidden],.playing .family-ad-slot,.starting-game .family-ad-slot,.family-open .family-ad-slot,body:has(#modal[open]) .family-ad-slot {display:none}
.ad-settings-link {padding:0;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;font:inherit}
.privacy-page {max-width:780px;padding-block:36px 62px}
.privacy-page h1 {font-size:clamp(2rem,4vw,3rem);margin-bottom:26px}
.privacy-page section {margin-bottom:24px}
.privacy-page h2 {margin-bottom:9px;font-size:1.28rem}
.privacy-page p {margin-bottom:8px;line-height:1.6}
.privacy-page a:not(.btn) {text-decoration:underline;text-underline-offset:2px}
@media (max-width:1050px) {
  .family-account-button {padding-inline:6px}
  .family-account-label {display:none}
}
@media (max-width:430px) {
  .site-header {gap:6px;padding-inline:12px}
  .site-header .brand {gap:5px}
  .site-header .brand-mark {width:35px;height:29px}
  .site-header .brand-word {font-size:20px}
  .site-header .header-actions {gap:3px}
}
@media (max-width:360px) {
  .site-header .brand-word {display:none}
}

.family-dialog {width:min(820px,calc(100vw - 26px));max-width:none;padding:0;border-radius:23px;background:#fbfaff}
.family-dialog::backdrop {background:#17152abd}
.family-heading {
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:19px 24px;
  background:linear-gradient(120deg,#1d2341,#393277);color:white;
}
.family-heading h2 {margin:0 0 4px;font-size:clamp(24px,4vw,36px);line-height:1.05;font-weight:880}
.family-heading .family-close {order:1;inset:auto;position:static;color:white;background:#ffffff16;border:1px solid #ffffff50;font-size:24px}
.family-balance {display:inline-flex;gap:6px;align-items:center;font-size:14px;color:#f1e7ff;font-weight:750}
.family-balance .family-diamond {color:#b9ffef}
.family-content {padding:16px 24px 24px}
.family-tabs {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.family-tabs button,.family-links button {border:0;border-radius:8px;background:transparent;padding:7px 10px;color:#51487b;font-size:14px;font-weight:760}
.family-tabs [aria-pressed=true] {background:#ebe5ff;color:#332161}
.family-links {display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.family-links button {text-decoration:underline;text-underline-offset:2px}
.family-feedback {margin:0 0 12px;color:#286555;font-size:14px;font-weight:680}
.family-feedback:empty {display:none}
.family-feedback[data-error=true] {color:#a03943}
.family-content h3 {margin:.3em 0;font-size:20px;line-height:1.2;color:#292341}
.family-content p {line-height:1.45}
.family-form {display:grid;justify-items:start;gap:12px}
.family-form>label,.family-fields label {width:100%;font-size:14px;font-weight:680}
.family-form>label:not(.family-checkbox) {max-width:440px}
.family-form .field {margin-top:5px;width:100%}
.family-fields {width:min(100%,520px);display:grid;grid-template-columns:minmax(0,1fr) minmax(78px,.55fr);gap:10px}
.family-checkbox {display:flex;align-items:center;gap:8px}
.family-google,.family-signout {margin-top:14px}
.family-muted {margin:6px 0;color:#574f68;font-size:13px}
.family-person {display:flex;align-items:center;gap:11px;margin:4px 0 14px}
.family-person span:not(.family-avatar) {font-size:13px;color:#625775}
.family-avatar {display:grid;place-items:center;width:57px;aspect-ratio:1;border-radius:16px;background:#eee7fe;font-size:30px}
.family-section {margin-top:19px;padding:14px;border:1px solid #ded7f1;border-radius:13px}
.family-child {display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin-top:8px;padding:9px;border-radius:10px;background:#f1edf9}
.family-child label {font-size:13px}
.family-child .btn {padding:7px 10px;font-size:13px}
.family-child-form {margin-top:12px}
.family-child-form summary {font-weight:760;cursor:pointer;margin-bottom:9px}
.family-reward {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:6px 0 16px;padding:14px;border-radius:13px;background:#e7f8f2}
.family-reward p {margin:3px 0 0;color:#354b55;font-size:14px}
.family-reward button {flex:none}
.family-shop-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.family-product {display:grid;grid-template-rows:auto auto 1fr auto;gap:5px;padding:10px;border:1px solid #e6deef;border-radius:14px;background:white}
.family-product-icon {display:grid;place-items:center;height:56px;border-radius:9px;font-size:31px}
.family-tone-violet {background:#ebe1ff}
.family-tone-jade {background:#d9f4e3}
.family-tone-pink {background:#ffe5ef}
.family-product h3 {font-size:16px}
.family-product p {margin:0;color:#5a536a;font-size:13px}
.family-product .btn {min-height:35px;margin-top:7px;padding:5px 8px;font-size:12px}
.family-cost {font-size:13px;font-weight:800}
@media (max-width:560px) {
  .family-content,.family-heading {padding-left:14px;padding-right:14px}
  .family-shop-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .family-reward {align-items:flex-start;flex-direction:column}
}
