.local-mode .app { max-width: 1080px; }
.privacy-brand { color: var(--gold); font-size: 37px; }
.privacy-screen { min-height: min(640px,calc(100dvh - 150px)); max-width: 620px; margin: 0 auto; padding: 44px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; border: 1px solid rgba(217,183,121,.3); border-radius: 14px; background: radial-gradient(ellipse at top,rgba(217,183,121,.06),transparent 70%),#13241e; text-align: center; }
.privacy-emblem { display: grid; place-items: center; width: 90px; height: 90px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 42px; box-shadow: 0 0 35px rgba(217,183,121,.08); }
.privacy-screen h1 { font-size: 32px; line-height: 1.18; }
.privacy-screen h1 em { color: var(--gold-light); font-style: normal; }
.privacy-screen > p { color: #b9c7b5; font-size: 14px; max-width: 440px; }
.privacy-screen > small { color: var(--muted); font-size: 11px; }
.privacy-screen .button { min-height: 52px; width: min(100%,360px); font-size: 13px; }
.local-mode .phase-panel > h2 { text-align: center; font-size: 23px; }
.local-mode .local-hint { text-align: center; margin-top: 12px; }
.local-mode .local-journal { padding: 18px; margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.local-journal li { margin: 8px 0; font-size: 12px; }
.local-result { max-width: 740px; margin: 0 auto; }
.local-result > h1 { text-align: center; font-size: 30px; }
.local-result .local-public-note { text-align: center; padding: 15px 0; }
.local-result .reveal-progress { margin-top: 20px; text-align: center; }
.local-side-0 .army-header .deck-mark { background: var(--human) !important; }
.local-side-1 .army-header .deck-mark { background: var(--enemy) !important; }
#local-error { text-align: center; color: #efb099; font-size: 12px; padding: 8px; }
#local-error:empty { display: none; }
#local-castle-cards { display: flex; justify-content: center; gap: 18px; padding: 30px 22px 40px; }
#local-castle-cards .card { --card-w: 78px; --card-h: 108px; }
#local-castle-cards .wall { width: 78px; }
#local-new-form { padding: 20px; display: grid; gap: 16px; color: var(--muted); font-size: 13px; }
#local-seed { min-height: 46px; padding: 10px; background: #10221b; border: 1px solid #586749; border-radius: 5px; color: var(--ink); width: 100%; }
.mode-picker { border-bottom: 1px solid var(--line); padding: 18px 24px; display: grid; gap: 9px; }
.mode-picker h3 { font-size: 20px; }
.mode-picker p { font-size: 11px; color: var(--muted); }
.mode-picker a { text-align: center; }
.mode-picker [data-action="toggle-local"] { justify-self: center; font-size: 10px; }
@media (max-width:680px) {
  .local-mode .app { max-width: none; }
  .privacy-locked .app { padding-bottom: 20px; }
  .privacy-brand { font-size: 25px; }
  .local-mode .top-actions .button { max-width: 66px; font-size: 9px; }
  .privacy-screen { min-height: calc(100dvh - 130px); padding: 28px 20px; gap: 21px; }
  .privacy-screen h1 { font-size: 27px; }
  .privacy-screen > p { font-size: 13px; line-height: 1.55; }
  .privacy-emblem { width: 73px; height: 73px; font-size: 35px; }
  .privacy-screen .button { min-height: 53px; font-size: 12px; }
  .local-mode .phase-panel > h2 { font-size: 18px; }
  .local-mode .castle-trigger > small { font-size: 8px; color: var(--muted); }
  .local-mode .local-hint { font-size: 10px; line-height: 1.4; margin-top: 7px; }
  .local-mode .local-journal { font-size: 10px; padding: 12px; }
  .local-result { min-height: calc(100dvh - 150px); display: flex; flex-direction: column; justify-content: center; }
  .local-result .duel-preview { width: 100%; }
  .local-result .local-public-note { font-size: 11px; }
  .local-result .reveal-progress { width: 100%; }
  .local-mode .footer-note > span:first-child { display: block; }
}
@media (max-width:350px) {
  .local-mode .top-actions .button { max-width: 58px; font-size: 8px; }
  .privacy-screen h1 { font-size: 24px; }
}
