@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    width: calc(100% - 12px);
    max-width: 100%;
    padding: 10px 0 32px;
  }

  .app-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .app-header h1 {
    font-size: 1.7rem;
  }

  .app-header .eyebrow {
    display: none;
  }

  .build {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .world-panel {
    min-height: 0;
    padding: 14px;
    border-radius: 16px;
  }

  .world-panel h2 {
    margin-bottom: 6px;
    font-size: 1.22rem;
  }

  .world-panel p:last-child {
    margin-bottom: 0;
    line-height: 1.45;
    font-size: 0.84rem;
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
    overflow: visible;
  }

  .dashboard-card {
    min-width: 0;
    min-height: 92px;
    padding: 11px;
    border-radius: 14px;
  }

  .dashboard-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .dashboard-card span {
    margin-bottom: 4px;
    font-size: 0.72rem;
  }

  .dashboard-card strong {
    font-size: 0.98rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .dashboard-card small {
    margin-top: 4px;
    font-size: 0.67rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .content-grid {
    gap: 10px;
    margin-top: 10px;
  }

  .content-grid,
  .dashboard-summary,
  .panel,
  .map-panel,
  .regional-view,
  .race-row,
  .named-character-card,
  .civilization-card {
    min-width: 0;
    max-width: 100%;
  }

  .panel {
    padding: 14px;
    border-radius: 16px;
  }

  .section-heading {
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .section-heading > * {
    min-width: 0;
  }

  .section-heading h2 {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }

  .section-heading .eyebrow {
    margin-bottom: 3px;
    font-size: 0.68rem;
  }

  .mobile-collapsible > .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .mobile-collapsible > .section-heading > .subtle {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mobile-collapsible > .section-heading > .mobile-section-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .dashboard-summary {
    gap: 10px;
    margin-bottom: 0;
  }

  .race-share-list,
  .latest-event,
  .race-list,
  .history-list {
    margin-top: 10px;
  }

  .race-share-row {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 7px;
    min-width: 0;
    font-size: 0.8rem;
  }

  .latest-event {
    line-height: 1.45;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
  }

  .map-panel {
    padding-left: 10px;
    padding-right: 10px;
  }

  .map-hint,
  .regional-summary,
  .map-legend,
  .settlement-details {
    font-size: 0.78rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .map-legend {
    max-height: 76px;
    overflow-y: auto;
  }

  .regional-middle-row {
    min-width: 0;
    max-width: 100%;
  }

  .regional-map {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 430px;
  }

  .region-move {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
  }

  .rain-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .intervention-button {
    min-width: 0;
    min-height: 58px;
    padding: 9px 8px;
    padding-right: 8px;
    gap: 2px;
    border-radius: 12px;
  }

  .intervention-button span {
    padding-top: 15px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .intervention-button small {
    font-size: 0.66rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .intervention-button::after,
  .intervention-button:disabled::after,
  .intervention-button--major:not(:disabled)::after {
    top: 5px;
    right: 5px;
    padding: 2px 5px;
    font-size: 0.54rem;
  }

  .resource-block {
    margin-top: 10px;
    padding: 10px;
    min-width: 0;
  }

  [data-rank-benefit] {
    margin-top: 7px !important;
    padding: 7px 9px;
    font-size: 0.76rem !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .action-group-label {
    margin: 13px 0 7px;
  }

  .race-row {
    padding: 9px 0;
  }

  .race-row--detailed {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .race-identity,
  .race-status {
    min-width: 0;
  }

  .race-identity span,
  .race-identity small,
  .race-status strong,
  .race-status small {
    overflow-wrap: anywhere;
  }

  .race-status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    justify-items: initial;
    gap: 6px 10px;
    width: 100%;
    min-width: 0;
    text-align: left;
    flex-wrap: wrap;
  }

  .race-status strong {
    font-size: 1rem;
    line-height: 1.25;
  }

  .race-status small {
    margin-left: auto;
    text-align: right;
  }

  .named-character-card {
    padding: 11px;
  }

  .named-character-heading {
    display: grid;
    gap: 5px;
  }

  .named-character-heading > div,
  .named-character-status,
  .named-character-card dd,
  .named-character-highlights li > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .named-character-status {
    text-align: left;
  }

  .named-character-card p {
    margin: 7px 0;
    overflow-wrap: anywhere;
  }

  .named-character-card dl {
    gap: 4px;
  }

  .named-character-card dl > div {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px;
    font-size: 0.74rem;
  }

  .history-list li {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 9px;
  }

  .history-list p {
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .civilization-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .civilization-card strong,
  .civilization-card span,
  .civilization-card small {
    overflow-wrap: anywhere;
  }

  .mobile-section-toggle {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #bae6fd;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .mobile-collapsible.is-mobile-collapsed > :not(.section-heading) {
    display: none !important;
  }

  .mobile-collapsible.is-mobile-collapsed {
    padding-bottom: 14px;
  }

  .mobile-quick-nav {
    position: sticky;
    top: 6px;
    z-index: 80;
    display: flex;
    gap: 6px;
    margin: 8px 0;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
  }

  .mobile-quick-nav::-webkit-scrollbar { display: none; }

  .mobile-quick-nav button {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.72rem;
  }
}
