.account-own-id {
  --account-id-surface:#102f3e; --account-id-field:#071f2e; --account-id-border:#477585;
  --account-id-ink:#effbfc; --account-id-muted:#b8d3dc; --account-id-accent:#8be4da;
  display:grid; gap:12px; margin:12px 0 18px; padding:15px; border:1px solid var(--account-id-border);
  border-radius:16px; color:var(--account-id-ink); background:var(--account-id-surface); text-align:left;
  box-shadow:inset 0 1px rgba(255,255,255,.07);
}
.account-own-id[hidden] { display:none; }
.account-own-id-heading { display:flex; align-items:flex-start; gap:11px; min-width:0; }
.account-own-id-badge { display:grid; flex:0 0 36px; height:36px; place-items:center; border:1px solid var(--account-id-border); border-radius:11px; color:var(--account-id-accent); background:var(--account-id-field); font-size:.73rem; font-weight:900; letter-spacing:.07em; }
.account-own-id-heading>div { min-width:0; }
.account-own-id-heading h3 { margin:1px 0 0; color:var(--account-id-ink); font-size:.87rem; line-height:1.25; }
.account-panel .account-own-id-heading p { margin:4px 0 0; color:var(--account-id-muted); font-size:.72rem; line-height:1.4; }
.account-own-id-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.account-own-id input { box-sizing:border-box; width:100%; min-width:0; min-height:44px; padding:10px 11px; border:1px solid var(--account-id-border); border-radius:10px; color:var(--account-id-ink); background:var(--account-id-field); font:11px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; user-select:text; -webkit-user-select:text; }
.account-own-id button { min-width:94px; min-height:44px; padding:8px 12px; border:1px solid var(--account-id-accent); border-radius:10px; color:var(--account-id-field); background:var(--account-id-accent); font:inherit; font-size:.75rem; font-weight:800; line-height:1.2; cursor:pointer; }
.account-own-id button:hover { filter:brightness(1.08); }
.account-own-id button:active { filter:brightness(.92); }
.account-own-id :is(button,input):focus-visible { outline:3px solid var(--account-id-accent); outline-offset:2px; }
.account-panel .account-copy-id-status { margin:0; color:var(--account-id-accent); font-size:.75rem; line-height:1.4; }
.account-panel .account-copy-id-status.is-error { color:#ffb8b8; }
.account-copy-id-status[hidden] { display:none; }
@media(prefers-color-scheme:light) {
  .account-own-id { --account-id-surface:#ecf7f7; --account-id-field:#fff; --account-id-border:#a5c6cd;
    --account-id-ink:#193c48; --account-id-muted:#42616b; --account-id-accent:#087c82; box-shadow:inset 0 1px #fff; }
  .account-own-id button { color:#fff; }
  .account-panel .account-copy-id-status.is-error { color:#9d283b; }
}
@media(max-width:400px) {
  .account-own-id-actions { grid-template-columns:1fr; }
  .account-own-id button { width:100%; }
}
.arcade-terms-page { color:var(--muted); }
.arcade-terms-page :is(h1,h2) { color:var(--ink); }
.arcade-terms-page h1 { font-size:clamp(1.8rem,5vw,2.6rem); }
.arcade-terms-page h2 { margin-top:1.8rem; }
.arcade-terms-page p { line-height:1.65; }
.arcade-terms-page-link { display:inline-flex; min-height:44px; align-items:center; padding:8px 0; color:var(--aqua); }
.arcade-terms-page-link:focus-visible { outline:3px solid currentColor; outline-offset:3px; }
.privacy-page .brand { min-height:44px; }
.privacy-page .language-toggle { min-width:44px; width:44px; min-height:44px; height:44px; color:var(--ink); background:var(--navy-2); border-color:var(--line); }
.privacy-page .language-toggle:is(:hover,:focus-visible,:active) { color:var(--ink); background:var(--navy-2); border-color:var(--aqua); }
.arcade-terms-dialog {
  --terms-ink:#edf8f7; --terms-muted:#b4c9d2; --terms-surface:#102a39;
  --terms-border:#456371; --terms-accent:#91e3d5; --terms-button-ink:#09282d;
  --terms-card:#193744; --terms-focus:#ffda84; --terms-error:#ffb8b8;
  box-sizing:border-box; width:min(640px,calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-width:100%; max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin:auto; padding:clamp(18px,4vw,28px); overflow:auto; overscroll-behavior:contain;
  border:1px solid var(--terms-border); border-radius:22px; color:var(--terms-ink);
  background:var(--terms-surface); box-shadow:0 24px 80px #0007;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px; line-height:1.5; text-align:left; overflow-wrap:anywhere; touch-action:pan-y;
}
.arcade-terms-dialog:not([open]) { display:none; }
.arcade-terms-dialog::backdrop { background:#020d19c7; backdrop-filter:blur(6px); }
.arcade-terms-dialog :is(h2,h3,h4,p) { margin:0; color:inherit; }
.arcade-terms-dialog h2 { font-size:clamp(1.35rem,4vw,1.8rem); line-height:1.15; letter-spacing:-.035em; }
.arcade-terms-dialog h3 { font-size:1rem; line-height:1.3; }
.arcade-terms-dialog h4 { font-size:.95rem; line-height:1.35; }
.arcade-terms-dialog .arcade-terms-eyebrow { margin:0 0 10px; color:var(--terms-accent); font-size:.67rem; font-weight:800; letter-spacing:.14em; }
.arcade-terms-dialog .arcade-terms-version { margin-top:8px; color:var(--terms-muted); font-size:.76rem; }
.arcade-terms-dialog .arcade-terms-intro { margin-top:14px; color:var(--terms-muted); font-size:.92rem; }
.arcade-terms-notice { margin:18px 0; padding:14px 16px; border:1px solid var(--terms-border); border-radius:14px; background:var(--terms-card); }
.arcade-terms-dialog .arcade-terms-notice p { margin-top:7px; color:var(--terms-muted); font-size:.86rem; }
.arcade-terms-document { margin:0 0 8px; border-block:1px solid var(--terms-border); }
.arcade-terms-document summary { min-height:48px; padding:12px 2px; color:var(--terms-accent); font-weight:750; cursor:pointer; }
.arcade-terms-document article { padding:8px 2px 20px; }
.arcade-terms-document article section { margin-top:18px; }
.arcade-terms-dialog .arcade-terms-document article p { margin-top:8px; color:var(--terms-muted); font-size:.89rem; }
.arcade-terms-privacy { display:inline-flex; min-height:44px; align-items:center; padding:8px 2px; color:var(--terms-accent); font-size:.86rem; text-underline-offset:3px; }
.arcade-terms-identity { margin:0 0 8px; color:var(--terms-muted); font-size:.8rem; }
.arcade-terms-identity summary { min-height:44px; padding:10px 2px; cursor:pointer; }
.arcade-terms-dialog .arcade-terms-identity-name { margin:3px 0 10px; color:var(--terms-ink); font-weight:650; }
.arcade-terms-identity label { display:grid; gap:6px; padding:0 2px 8px; }
.arcade-terms-identity input { box-sizing:border-box; width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--terms-border); border-radius:9px; color:var(--terms-ink); background:var(--terms-card); font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; user-select:text; -webkit-user-select:text; }
.arcade-terms-consent { display:flex; align-items:flex-start; gap:12px; min-height:48px; margin:14px 0 0; padding:14px; border:1px solid var(--terms-border); border-radius:13px; color:var(--terms-ink); background:var(--terms-card); cursor:pointer; font-size:.92rem; }
.arcade-terms-consent input { flex:0 0 22px; width:22px; height:22px; margin:1px 0 0; accent-color:var(--terms-accent); cursor:pointer; }
.arcade-terms-dialog .arcade-terms-status { min-height:1.5em; margin:10px 0; color:var(--terms-muted); font-size:.85rem; }
.arcade-terms-dialog .arcade-terms-status.is-error { color:var(--terms-error); }
.arcade-terms-actions { display:grid; gap:10px; }
.arcade-terms-actions button { min-height:48px; width:100%; margin:0; padding:11px 16px; border:1px solid var(--terms-border); border-radius:12px; font:inherit; font-size:.91rem; line-height:1.35; font-weight:750; cursor:pointer; box-shadow:none; text-transform:none; }
.arcade-terms-actions .arcade-terms-accept { color:var(--terms-button-ink); background:var(--terms-accent); border-color:var(--terms-accent); }
.arcade-terms-actions .arcade-terms-guest { color:var(--terms-ink); background:transparent; }
.arcade-terms-dialog :is(button,summary,a):not(:disabled):hover { filter:brightness(1.09); }
.arcade-terms-dialog :is(button,summary,a):not(:disabled):active { filter:brightness(.92); }
.arcade-terms-actions button:disabled { opacity:.55; cursor:default; }
.arcade-terms-dialog :is(button,input,summary,a):focus-visible { outline:3px solid var(--terms-focus); outline-offset:3px; }
.arcade-terms-dialog h2:focus { outline:none; }
@media(prefers-color-scheme:light) {
  .arcade-terms-dialog { --terms-ink:#17343e; --terms-muted:#405e69; --terms-surface:#fff;
    --terms-border:#afc9d0; --terms-accent:#08737b; --terms-button-ink:#fff;
    --terms-card:#edf6f6; --terms-focus:#00717b; --terms-error:#a02034; box-shadow:0 24px 70px #16394942; }
  .arcade-terms-dialog::backdrop { background:#d7e7ebd4; }
}
@media(max-height:480px) {
  .arcade-terms-dialog { padding:16px 20px; border-radius:16px; }
  .arcade-terms-actions { grid-template-columns:1fr 1fr; }
}
@media(prefers-reduced-motion:no-preference) {
  .arcade-terms-actions button { transition:filter 120ms ease,opacity 120ms ease; }
}
