/* V20 visual correction. No API, account, or provisioning changes. */
html { scroll-padding-top: 100px; }
body { -webkit-text-size-adjust: 100%; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid #60baff; outline-offset: 3px; }
.hero > *, .mock-body > *, .panel-main, .server-management-main, #auth-content { min-width: 0; }
.mock-body { grid-template-columns: 66px minmax(0, 1fr); }
.site-header nav a, .header-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.auth-card { min-width: 0; }
.auth-card .button-ghost { color: white; }
.panel-v9 .server-management-main h2 { overflow-wrap: anywhere; }
.panel-v9 .credential-grid code { font-size: 13px; line-height: 1.6; }
.panel-v9 .credential-grid span { font-size: 10px; }
.panel-v9 .tool-heading small, .panel-v9 .credential-note { font-size: 12px; line-height: 1.6; }
@media (max-width: 900px) {
  .site-header { gap: 8px; padding: 10px 12px; top: 8px; background: rgba(8,20,42,.97); }
  .site-header .brand { font-size: 22px; gap: 7px; }
  .site-header .brand-mark { width: 25px; height: 30px; }
  .site-header .header-actions { display: flex; margin-left: auto; order: 1; }
  .site-header .header-actions .button-primary { display: none; }
  .site-header .header-actions .button-ghost { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .site-header .menu-button { order: 2; margin: 0; width: 44px; height: 44px; border: 1px solid #2a4164; border-radius: 10px; flex: 0 0 44px; }
  .site-header nav { order: 3; flex-basis: 100%; }
  .site-header nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0 0; }
  .site-header nav a { background: #101e38; border-radius: 8px; font-size: 14px; }
  .auth-page { display: block; padding: 24px 0; min-height: 100vh; min-height: 100svh; }
  .auth-layout { width: min(520px, calc(100% - 32px)); min-height: 0; margin: 0 auto; border-radius: 20px; }
  .auth-card { flex-direction: column; align-items: stretch; min-height: 0; padding: 32px; }
  .auth-card .mobile-brand { align-self: flex-start; margin: 0 0 28px; color: #101a33; }
  .auth-card #auth-content { width: 100%; }
  .auth-tabs { margin-bottom: 26px; }
  .auth-tabs a { min-height: 48px; display: grid; place-items: center; padding: 10px 8px; font-size: 14px; }
  .auth-card h2 { font-size: 28px; line-height: 1.18; }
  .auth-card .lead { font-size: 15px; }
  .field span, .password-row a, .check-row, .auth-footer { font-size: 13px; }
  .field input { font-size: 16px; }
  .auth-footer { line-height: 1.7; }
  .check-row { min-height: 44px; align-items: center; }
  .check-row input { width: 20px; height: 20px; flex-basis: 20px; }
  .panel-v9 .panel-sidebar { max-height: 100dvh; overflow-y: auto; }
  .panel-v9 .panel-menu, .panel-v9 .user-chip button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 600px) {
  .site-header { position: sticky; width: calc(100% - 24px); margin-top: 10px; }
  .shell { width: calc(100% - 32px); }
  .hero { gap: 28px; padding: 42px 0 24px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); line-height: 1.08; margin: 18px 0; }
  .hero-copy > p { font-size: 16px; line-height: 1.65; }
  .hero-actions { gap: 10px; margin: 24px 0; }
  .trust-row { max-width: none; margin: 24px 0 0; gap: 16px; padding: 20px; border: 1px solid #233958; border-radius: 14px; background: rgba(10,24,46,.65); }
  .trust-row strong { font-size: 13px; }
  .trust-row small { font-size: 12px; }
  .trust-row b { width: 28px; text-align: center; }
  .hero-visual { min-height: 0; margin: 0; }
  .mock-body { grid-template-columns: 38px minmax(0,1fr); min-height: 0; }
  .mock-body aside { padding: 20px 8px; gap: 20px; }
  .mock-body aside i { width: 16px; }
  .mock-content { padding: 18px 12px; }
  .mock-content h3 { white-space: normal; overflow-wrap: anywhere; font-size: 17px; line-height: 1.3; }
  .mock-top { padding: 0 14px; }
  .server-line { padding: 12px; gap: 8px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric-grid > div { padding: 10px; }
  .metric-grid small { font-size: 12px; }
  .chart { height: 64px; }
  .mock-buttons { display: flex; gap: 5px; }
  .mock-buttons span { padding: 8px; }
  .section { padding-block: 32px; }
  .section-heading h2 { font-size: 28px; line-height: 1.15; }
  .section-heading p { font-size: 15px; line-height: 1.6; }
  .public-game-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .feature-grid { gap: 12px; }
  .feature-grid article { min-height: 0; padding: 22px; }
  .feature-grid article p { font-size: 14px; line-height: 1.65; }
  .auth-page { padding: 16px 0 max(24px,env(safe-area-inset-bottom)); }
  .auth-layout { width: calc(100% - 24px); min-height: 0; border-radius: 18px; }
  .auth-card { padding: 24px 20px 28px; min-height: 0; border-radius: 0; }
  .auth-card .mobile-brand { font-size: 25px; margin-bottom: 24px; }
  .field .password-row { gap: 8px; flex-wrap: wrap; }
  .auth-card h2 { font-size: 27px; }
  .panel-v9 .panel-content { padding: 16px 12px 28px; }
  .panel-v9 .server-management { padding: 16px; }
  .panel-v9 .server-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 10px; }
  .panel-v9 .server-tabs button { font-size: 12px; min-height: 44px; padding: 10px 4px; }
  .panel-v9 .server-tool { padding: 14px; }
  .panel-v9 .server-tool .button, .panel-v9 .server-controls button { min-height: 44px; font-size: 13px; }
  .panel-v9 .server-console { height: 300px; font-size: 12px; padding: 12px; }
  .panel-v9 .console-form input, .panel-v9 .file-editor textarea, .panel-v9 .config-editor { font-size: 16px; }
  .panel-v9 .file-row { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 12px; }
  .panel-v9 .file-row > button:first-child { min-height: 44px; font-size: 14px; overflow-wrap: anywhere; }
  .panel-v9 .row-actions { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  .panel-v9 .row-actions button, .panel-v9 .file-editor > div button { min-height: 44px; font-size: 12px; padding: 8px 12px; }
  .panel-v9 .file-editor > div { flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
  .panel-v9 .credential-card { padding: 12px; }
  .panel-v9 .credential-actions { flex-direction: column; }
  .panel-v9 .backup-row b { white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
  .panel-v9 .backup-row small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
