/*
 * Server-projection compatibility only.
 *
 * The recovered game.css is the canonical presentation contract.  Every rule in
 * this compatibility sheet must bridge secure server-rendered DOM to that
 * contract or style a genuinely new account/achievement control.  It must not
 * redesign recovered game content.
 */
[hidden] { display: none !important; }

/* The no-session screen keeps the recovered game's original start menu visible
 * until the server issues a game session. */
#landing-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--link-color);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#landing-menu li:hover,
#landing-menu li:focus-within { background: var(--link-hover-color); }
.landing-status h2 {
  margin: 0.75em 0;
  text-align: center;
  font-size: 1.15em;
  letter-spacing: 0.08em;
}
.landing-status p { margin-bottom: 0.9em; font-weight: normal; }
.landing-status p b { font-weight: bold; }
.landing-economics {
  width: fit-content;
  margin: 0.8em auto 1em !important;
  border: 2px solid var(--border-color);
  padding: 0.35em 0.65em;
  text-indent: 0;
  letter-spacing: 0.04em;
}

html.hugenberg-mode {
  --bg-color: #0b1426 !important;
  --content-bg-color: rgb(14 26 56 / 95%) !important;
  --border-color: #0a111f !important;
  --text-color: #fff !important;
  --link-color: #fff !important;
  --link-hover-color: rgb(255 255 255 / 12%) !important;
  --tab-bg-color: #0b1426 !important;
  --tab-color: #080f1a !important;
  --tab-hover-color: #122340 !important;
  --card-border-color: #0a111f !important;
  --card-bg-color: rgb(20 36 74 / 95%) !important;
}
#hugenberg-bg {
  position: fixed;
  inset: -10vh 0 0;
  z-index: -50;
  height: 110vh;
  overflow: hidden;
  background: #0b1426;
  pointer-events: none;
}
.hugenberg-bg-layer {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 3s ease;
}
.hugenberg-bg-layer.active { opacity: 1; }
html.hugenberg-mode #content,
html.hugenberg-mode .tools,
html.hugenberg-mode footer,
html.hugenberg-mode #native-news { background-color: rgb(14 26 56 / 95%) !important; }
html.hugenberg-mode #dnvp_dashboard,
html.hugenberg-mode #native-news { display: none !important; }
html.hugenberg-mode header { background-color: transparent !important; }
html.hugenberg-mode #header-links,
html.hugenberg-mode .tab_container,
html.hugenberg-mode .tab_button { background-color: rgb(8 15 28 / 95%) !important; color: #fff !important; }
html.hugenberg-mode .tab_button.active { background-color: rgb(14 26 56 / 95%) !important; }
html.hugenberg-mode .tab_button:hover { background-color: #122340 !important; }
html.hugenberg-mode #content,
html.hugenberg-mode .tools,
html.hugenberg-mode header { color: #fff !important; }
html.hugenberg-mode #content ul.choices li.unavailable,
html.hugenberg-mode #content ul.choices li.unavailable * { color: #6d7c99 !important; }
html.hugenberg-mode #content ul.choices li.unavailable {
  border-color: rgb(255 255 255 / 8%) !important;
  background: rgb(0 0 0 / 30%) !important;
}
html.hugenberg-mode #content ul.choices li:not(.unavailable) {
  border-color: rgb(255 255 255 / 42%) !important;
  background: rgb(255 255 255 / 5%) !important;
}
html.hugenberg-mode .native-tooltip,
html.hugenberg-mode .card-tooltip,
html.hugenberg-mode .ideology-tooltip-card {
  border-color: rgb(14 26 56 / 95%) !important;
  background: rgb(14 26 56 / 95%) !important;
  color: #fff !important;
  box-shadow: 2px 2px 10px rgb(0 0 0 / 55%) !important;
}

/* Native elements that replace the recovered client's inline JavaScript links. */
#header-links button {
  border: 0;
  background: transparent;
  padding: 0 0.75em 0 0;
  color: var(--link-color);
  font: inherit;
  cursor: pointer;
}
#header-links button:hover,
#header-links button:focus-visible { background: var(--link-hover-color); }

#status-tabs { margin-bottom: 0; }
.status-tab-row { display: flex; width: 100%; }
.status-tab-row .tab_button { flex: 1; }

#game-nav:empty { display: none; }
.nav-button {
  border: 0;
  background: var(--tab-color);
  padding: 10px;
  color: var(--text-color);
  font: inherit;
  cursor: pointer;
}
.nav-button:hover,
.nav-button:focus-visible { background: var(--tab-hover-color); }
.nav-button[aria-current="page"] { background: var(--content-bg-color); }

#scene-title:empty,
#scene-subtitle:empty,
#scene-choices:empty { display: none; }
#scene-subtitle { text-align: center; text-indent: 0; }
#game-error { border: 2px solid #900; padding: 0.5em; color: #900; text-indent: 0; }

html[data-animate="true"] #content.native-scene-fade-in > * {
  animation: recovered-content-fade 600ms ease both;
}
@keyframes recovered-content-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Server-generated status fragments use the recovered sidebar's typography. */
#qualities .sidebar-metric { margin: 0 0 1em; }
#qualities .sidebar-office,
#qualities .sidebar-parliament { text-indent: 0; }
#qualities .sidebar-parliament { line-height: 1.3em; }
#qualities .backing-wrap {
  position: relative;
  display: inline;
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
}
#qualities .backing-wrap .backing-tip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  z-index: 100;
  display: none;
  box-sizing: border-box;
  width: 260px;
  border: 2px solid #999;
  background: #fff;
  padding: 10px;
  box-shadow: 2px 2px 6px rgb(0 0 0 / 20%);
  color: #431;
  /* The recovered tooltip is a normal-size paper inset.  A reduced font here
     made the party names in Others look like a different UI. */
  font-size: 1em;
  font-weight: normal;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transform: translateX(-50%);
  white-space: normal;
}
#qualities .backing-wrap:hover .backing-tip,
#qualities .backing-wrap:focus-within .backing-tip { display: block; }
#qualities .backing-tip-image {
  display: block;
  width: 100%;
  margin: 0 auto 4px;
  border: 1px solid #999;
}
#qualities .backing-tip-rows { width: 260px !important; text-align: left !important; }
#qualities .backing-tip-row { display: block; line-height: 1.5; font-size: 1em; }
#qualities .sidebar-economics-link { margin-top: 8px; text-align: center; }
#qualities .sidebar-economics-link button,
#qualities .sidebar-action {
  border: 1px solid #431;
  background: transparent;
  padding: 4px 10px;
  color: #431;
  font: inherit;
  cursor: pointer;
}
#qualities .sidebar-economy { margin-top: 1em; }
#qualities .sidebar-economy .sidebar-metric { margin: 0.3em 0; }
#qualities .sidebar-trend-up { color: #b00000; }
#qualities .sidebar-trend-down { color: #2d5a1b; }
#qualities .sidebar-radio { margin-top: 0.8em; text-align: center; }
#qualities .sidebar-song {
  margin-bottom: 6px;
  color: #4a3728;
  font: italic 1em Georgia, serif;
  text-indent: 0;
}
#qualities .sidebar-radio-controls { display: flex; gap: 6px; justify-content: center; }
#qualities .sidebar-radio-controls button {
  border: 1px solid #000;
  border-radius: 0;
  background: none;
  padding: 2px 8px;
  color: #000;
  font-family: Georgia, serif;
  cursor: pointer;
}
#qualities .kaiser-wrap {
  position: relative;
  display: inline;
  cursor: help;
  text-decoration: underline dotted;
}
#qualities .kaiser-wrap .kaiser-tip {
  display: none;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #999;
  padding: 10px;
  width: 220px;
  font-size: 1em;
  text-align: center;
  z-index: 100;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}
#qualities .kaiser-wrap:hover .kaiser-tip,
#qualities .kaiser-wrap:focus .kaiser-tip { display: block; }
/* Status prose deliberately inherits the recovered game.css h1/p rhythm. */

#qualities .status-mission-heading {
  margin: 1em 0 0.5em;
  text-align: center;
}
#qualities .status-mission-title {
  margin: -8px 0 16px;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  padding: 15px;
  color: #000435;
  font-size: 1em;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  word-break: break-word;
}
#qualities .status-mission-title-join {
  margin: 2px 0;
  color: #000;
  font-size: 0.8em;
  letter-spacing: 0.2em;
}
#qualities .status-mission-image {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  height: 200px;
  margin: 16px auto;
  border: 2px solid #000435;
  object-fit: cover;
  cursor: pointer;
}
#qualities .status-mission-card.secondary .status-mission-image {
  height: auto;
  margin: 0 auto 8px;
  border: 1px solid #000;
  cursor: default;
}
#qualities .status-mission-metric { margin-top: 8px; text-align: center; }
#qualities .status-mission-metrics.primary .status-mission-metric {
  margin-top: 0;
  text-align: left;
}
#qualities .status-mission-metric-label,
#qualities .status-mission-metric-value { font-size: 0.85em; font-weight: 700; }
#qualities .status-mission-portrait {
  display: block;
  width: 100%;
  max-width: 150px !important;
  margin: 8px auto 0;
  border: 2px solid #000435;
}
#qualities .status-mission-caption { margin-top: 4px; font-size: 0.85em; font-weight: 700; text-align: center; }
#qualities .status-mission-office { font-size: 0.75em; letter-spacing: 0.1em; text-align: center; }

.entente-panel-handle {
  position: absolute;
  z-index: 50;
  display: flex;
  width: 20px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border: 1px solid #431;
  border-right: 0;
  background: #f3f3f3;
  padding: 0;
  box-shadow: -2px 2px 6px rgb(0 0 0 / 10%);
  cursor: pointer;
}
.entente-panel-bars { display: flex; height: 100%; gap: 4px; padding: 4px 0; }
.entente-panel-bars i { display: block; width: 2px; background: #431; }
.entente-side-panel {
  position: absolute;
  z-index: 49;
  box-sizing: content-box;
  width: 220px;
  border: 1px solid #431;
  background: #f3f3f3;
  padding: 0.6em;
  box-shadow: -2px 2px 12px rgb(0 0 0 / 20%);
  color: #431;
  font: 0.9em Georgia, serif;
}
.entente-panel-title { margin-bottom: 8px; font-weight: 700; text-align: center; }
.entente-flag { width: 90px; height: 56px; border: 2px solid #000; object-fit: cover; }
.entente-side-panel > .entente-flag { display: block; margin: 0 auto 8px; }
.entente-cards { display: flex; min-height: 60px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px; margin-bottom: 8px; }
.entente-card { width: 38px; height: 52px; border: 1px solid #333; background: #fff; }
.entente-deterrence { padding: 8px 4px; color: #8b0000; font-style: italic; font-weight: bold; line-height: 1.3; text-align: center; }
.entente-allied-flags { display: flex; justify-content: space-around; margin-bottom: 8px; }
.entente-alerts { margin-bottom: 10px; font-size: 0.85em; text-align: center; }
.entente-description { margin-bottom: 8px; font-size: 0.85em; text-align: center; }
.entente-footnote { color: #666; font-size: 0.7em; font-style: italic; text-align: center; }

#qualities .status-taming-metric { margin: 2px 0 6px; text-align: center; }
#qualities .status-taming-label { color: #000; font-size: 0.85em; font-weight: 700; letter-spacing: 0.01em; }
#qualities .status-taming-value { font-size: 0.85em; font-weight: 300; }
#qualities .status-taming-relationship { margin-top: 2px; }
#qualities .status-taming-relationship .status-taming-value { font-weight: 700; }
#qualities .status-taming-party-nsdap { color: #5a2e0c; }
#qualities .status-taming-party-volkisch { color: #06402b; }
#qualities .status-taming-party-dvfp { color: #c4a484; }
#qualities .status-taming-electoral { margin-top: 8px; margin-bottom: 0; }
#qualities .status-taming-electoral .status-taming-value { font-weight: 400; }
#qualities .status-taming-image-frame {
  max-width: 400px;
  height: 200px;
  margin: 0 auto 6px;
  overflow: hidden;
  border: 2px solid #000435;
}
#qualities .status-taming-image { width: 100%; }
#qualities .status-taming-portraits {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  margin: 16px 0 8px;
}
#qualities .status-taming-portrait-item { width: 45%; text-align: center; }
#qualities .status-taming-portrait {
  display: block;
  width: 100%;
  max-width: 120px !important;
  height: 150px;
  margin: 0 auto;
  border: 2px solid #000435;
  filter: grayscale(100%);
  object-fit: cover;
  object-position: top;
}
#qualities .status-taming-portrait-name { margin-top: 4px; font-size: 0.7em; font-weight: 300; }
#qualities .status-map-details {
  display: block;
  max-width: 800px;
  margin-top: 16px;
}
#qualities .status-map-details[hidden] { display: none; }
#qualities .status-map-details h3 {
  margin: 0 0 4px;
  font-size: 1.2em;
  text-align: center;
}
#qualities .status-map-detail-image,
#qualities .status-map-image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #000;
}
#qualities .status-card-description,
#qualities .status-map-details > p {
  text-align: center;
  text-indent: 0;
}
#qualities .status-map-details > p {
  margin: 0 0 10px;
  font-size: 0.8em;
}
#qualities .status-map-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: 16px;
  line-height: 0;
}
#qualities .w-hs {
  position: absolute;
  z-index: 10;
  border: 0;
  background: transparent;
  padding: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}
#qualities .w-hs-dot {
  display: block;
  width: 5px;
  height: 5px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: rgb(62 136 179 / 90%);
  transition: transform 0.15s, background 0.15s;
}
#qualities .w-hs:hover .w-hs-dot,
#qualities .w-hs-active .w-hs-dot {
  border-color: #fff;
  background: rgb(201 169 110);
  transform: scale(1.6);
}
#qualities .status-map-detail-image { height: 200px; margin-bottom: 12px; object-fit: cover; }
#qualities .status-map-stats p { margin: 4px 0; text-align: center; text-indent: 0; }
#qualities .status-map-stats strong { font-size: 1em; }
#qualities .status-map-stats span { font-size: 0.85em; }
#qualities .status-map-government { margin-top: 8px; text-align: center; }
#qualities .status-map-government .sidebar-action {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#qualities .status-government { margin-top: -8px; line-height: 1.5; text-align: center; }
#qualities .status-government-message { margin-top: 4px; }
#qualities .status-government-label { margin-top: 8px; font-weight: 700; }
#qualities .status-government-track {
  height: 14px;
  margin-top: 4px;
  border: 2px solid #000;
  background: #f3f3f3;
}
#qualities .status-government-fill { height: 100%; }
#qualities .status-government-action-title { margin-top: 6px; font-style: italic; }
#qualities .status-government-minister { margin-top: 4px; }
#qualities .status-government-action-description { margin-top: 6px; font-size: 0.9em; }
#qualities .status-government .sidebar-action {
  margin-top: 8px;
  border: 2px solid #000;
  padding: 4px 14px;
  color: #431;
  font-family: Georgia, serif;
  font-size: 1em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#qualities .status-government-none { font-style: italic; }
#qualities .status-government-meters {
  display: flex;
  justify-content: space-around;
  gap: 4px;
  margin-top: 10px;
}
#qualities .status-government-meter {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}
#qualities .status-government-meter-track {
  display: flex;
  width: 26px;
  height: 130px;
  align-items: flex-end;
  border: 2px solid #000;
  background: #f3f3f3;
}
#qualities .status-government-meter-fill { width: 100%; }
#qualities .status-government-meter-label { margin-top: 4px; font-size: 0.7em; line-height: 1.1; white-space: nowrap; }

/* The recovered client used anchors for cards and choices.  Buttons keep native
   geometry while posting actions to the server. */
button.card {
  display: inline-block;
  position: relative;
  box-sizing: content-box;
  width: 120px;
  height: 150px;
  margin: 0 0 0.5em;
  border: 10px solid var(--card-border-color);
  background: transparent;
  padding: 0;
  box-shadow: 5px 5px 10px rgb(0 0 0 / 20%);
  color: inherit;
  font: inherit;
  vertical-align: top;
  cursor: pointer;
}
button.card:hover:not(:disabled),
button.card:focus-visible:not(:disabled) {
  left: -5px;
  top: -5px;
  box-shadow: 10px 10px 10px rgb(0 0 0 / 20%);
}
button.card:disabled { cursor: default; }
button.card .card-img {
  display: block;
  width: 120px;
  height: 150px;
  object-fit: cover;
}
button.card .card-face-placeholder {
  display: block;
  width: 120px;
  height: 150px;
  background: var(--card-bg-color);
}
.card-tooltip {
  visibility: hidden;
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 1000;
  width: 150px;
  max-width: min(320px, calc(100vw - 24px));
  border: 1px solid var(--border-color);
  background: var(--content-bg-color);
  padding: 0.5em;
  color: var(--text-color);
  text-align: left;
  white-space: normal;
}
button.card:hover .card-tooltip,
button.card:focus .card-tooltip { visibility: visible; }
button.card.passive-card { cursor: help; }

button.card[data-faction="authcon"] { border-color: #000435; }
button.card[data-faction="christsoc"] { border-color: #dab1da; }
button.card[data-faction="volkskons"] { border-color: #90d5ff; }
button.card[data-faction="volkisch"] { border-color: #06402b; background: #06402b; }
button.card[data-faction][data-role="deputy"] { width: 80px; height: 100px; border-width: 5px; }
button.card[data-faction][data-role="deputy"] .card-img { width: 80px; height: 100px; }
body.empowered-authcon button.card[data-faction="authcon"],
body.empowered-christsoc button.card[data-faction="christsoc"],
body.empowered-volkskons button.card[data-faction="volkskons"],
body.empowered-volkisch button.card[data-faction="volkisch"] {
  border-color: #daa520;
  box-shadow: 0 0 12px rgb(218 165 32 / 50%), 3px 3px 8px rgb(0 0 0 / 30%);
}
ul.hand.has-executive > li.executive-fixed button.card { border-color: #b0b0b0; }

.choice-image {
  float: left;
  width: 90px;
  height: 90px;
  margin: 0 1em 0.4em 0;
  object-fit: cover;
}
#scene-choices li .choice-opt-tip {
  display: none;
  position: fixed;
  top: 0;
  left: -9999px;
  z-index: 100;
  border: 2px solid #999;
  background: #fff;
  min-width: 150px;
  max-width: min(500px, calc(100vw - 24px));
  padding: 8px 12px;
  box-shadow: 2px 2px 6px rgb(0 0 0 / 20%);
  color: #000;
  font-size: 0.95em;
  font-style: normal;
  font-weight: normal;
  line-height: 1.7;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
}
#scene-choices li:hover .choice-opt-tip,
#scene-choices li:focus-within .choice-opt-tip { display: block; }
#new-game {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.5em;
  border: 2px solid #876;
  border-radius: 4px;
  background: transparent;
  padding: 0.5em;
  color: var(--link-color);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* Authored event markup is projected in original order. */
#scene-body::after { display: block; clear: both; content: ""; }
#scene-body p { margin: 0 0 1em; text-indent: 1em; }
.rich-image { max-width: 100%; }
.rich-image-left { float: left; }
.rich-image-right { float: right; }
.rich-image-center { display: block; float: none; margin-right: auto; margin-left: auto; }
.scene-table-wrap { clear: both; width: 100%; margin: 0; overflow: visible; }
.scene-table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: inherit; }
.scene-table th,
.scene-table td { border: 0; padding: 6px 10px; text-align: left; vertical-align: middle; white-space: nowrap; }
.scene-table th { font-weight: normal; }
.scene-table tr[hidden] { display: none; }
.party-swatch { margin-right: 0.5em; vertical-align: -0.08em; }
.table-group-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.scene-parliament-flow { display: block; max-width: 100%; margin: 0 auto; overflow: visible; }
.scene-parliament-flow.state-parliament { width: 400px; height: 220px; margin: 5px auto 4px; }
.state-monarch,
.state-office,
.state-government,
.state-president { text-align: center; font-size: 0.9em; }
.state-monarch,
.state-office { margin-bottom: 2px; }
.state-government { margin-bottom: -30px; }
.state-president { margin-top: -10px; margin-bottom: 0; }

.native-tooltip-wrap {
  position: relative;
  display: inline;
  text-decoration: underline;
  text-decoration-style: dashed;
  cursor: help;
}
.native-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  z-index: 1000;
  width: max-content;
  max-width: min(420px, calc(100vw - 24px));
  border: 2px solid #999;
  background: #fff;
  padding: 10px;
  box-shadow: 2px 2px 6px rgb(0 0 0 / 20%);
  color: #000;
  font-size: 0.95em;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  transform: translateX(-50%);
  white-space: normal;
}
.native-tooltip-above { bottom: 125%; }
.native-tooltip-below { top: 125%; }
.native-tooltip-wrap:hover > .native-tooltip,
.native-tooltip-wrap:focus-within > .native-tooltip { display: block; }

/* Recovered party leader and news containers filled with server-projected data. */
#dnvp_dashboard:not([hidden]) { display: block; }
.party-dashboard-heading {
  margin-bottom: 0.7em;
  border-bottom: 1.5px solid #000;
  padding-bottom: 0.5em;
  color: #4a3728;
  font: 1.3em Georgia, serif;
  letter-spacing: 0.05em;
  text-align: center;
}
.party-dashboard-leaders { display: flex; align-items: flex-start; justify-content: center; gap: 20px; text-align: center; }
.party-dashboard-leader { flex: 1; min-width: 0; }
.party-dashboard-leader img {
  display: block;
  box-sizing: border-box;
  width: 170px;
  height: 210px;
  margin: 0 auto;
  border: 2px solid #000;
  object-fit: cover;
  object-position: top;
}
.party-dashboard-leader strong,
.party-dashboard-leader span { display: block; }
.party-dashboard-leader strong { margin-top: 0.4em; color: #4a3728; font-size: 0.9em; }
.party-dashboard-leader span { color: #666; font-size: 0.85em; }
.party-dashboard-congress { margin-top: 0.8em; text-align: center; }
.party-dashboard-congress h3 {
  margin: 0 0 0.2em;
  color: #4a3728;
  font-size: 1em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.party-dashboard-congress-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.1em;
}
.party-dashboard-congress-chart { min-width: 0; flex: 1 1 auto; }
.party-dashboard-congress svg { display: block; width: 100%; max-width: 400px; height: 145px; margin: 0 auto; }
.party-dashboard-laender-card {
  flex: 0 0 120px;
  margin-bottom: 0.15em;
  text-align: center;
}
button.card.party-dashboard-laender {
  width: 100px;
  height: 125px;
  margin-right: 0;
  border-width: 8px;
  font: inherit;
}
button.card.party-dashboard-laender .card-img { width: 100px; height: 125px; }
button.card.party-dashboard-laender .card-img { object-position: center; }
.party-dashboard-congress-legend {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.6em;
  margin-top: 0.5em;
  font-size: 0.75em;
}
.party-dashboard-congress-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 3px;
  border-radius: 50%;
}

#native-news:not([hidden]) { display: block; }
#newsbox-frame {
  position: relative;
  min-height: 200px;
  background: rgb(255 255 255 / 95%);
  padding: 1em;
  color: #333;
  font: 0.95em/1.6 Georgia, serif;
  text-align: center;
}
#newsbox-frame h3 {
  margin: 0 0 0.5em;
  border-bottom: 1px solid #ffffffff;
  padding-bottom: 0.3em;
  color: #4a3728;
  font: 1.7em UnifrakturMaguntia, cursive;
  letter-spacing: 1px;
}
#newsbox-frame p { min-height: 80px; margin: 0 0 1.5em; color: #333; font-size: 1em; text-align: left; text-indent: 0; }
#newsbox-frame .news-line { display: block; margin-bottom: 0.6em; }
#newsbox-frame .news-line-last { margin-bottom: 0; }
#newsbox-frame .news-seal { margin-top: 0.5em; text-align: center; }
#newsbox-frame .news-seal img { width: 60px; opacity: 0.7; }
#newsbox-frame .nb-arrow-btn {
  position: absolute;
  right: 8px;
  bottom: 6px;
  border: 0;
  background: transparent;
  color: #4a4a4a;
  padding: 4px;
  font: inherit;
  user-select: none;
  outline: none;
  cursor: pointer;
}
#newsbox-frame .nb-arrow-btn svg { display: block; pointer-events: none; image-rendering: pixelated; }
#newsbox-frame .nb-arrow-btn-back { right: auto; left: 8px; }

/* Server-only structured widgets use plain recovered paper/border vocabulary. */
#scene-dashboard,
#scene-map,
#scene-government,
#scene-referendum,
#scene-election-chart,
#scene-history-charts,
#scene-supplement { clear: both; margin: 1em auto 1.5em; }
.dashboard-tabs { display: flex; border: 2px solid #876; }
.dashboard-tab {
  flex: 1;
  border: 0;
  border-right: 1px solid #876;
  background: var(--tab-color);
  padding: 0.5em;
  color: inherit;
  font: inherit;
}
.dashboard-tab:last-child { border-right: 0; }
.dashboard-tab[aria-selected="true"] { background: var(--content-bg-color); }
.dashboard-panel[hidden] { display: none; }
.dashboard-cards,
.supplement-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75em; }
.dashboard-card,
.supplement-card,
.government-action,
.map-state-panel { border: 1px solid #876; background: var(--content-bg-color); padding: 0.6em; }
.dashboard-card h3,
.supplement-card h3 { margin-top: 0; text-align: center; }
.dashboard-card img,
.supplement-card img { display: block; max-width: 100%; margin: 0 auto; }
.dashboard-metrics,
.supplement-card dl,
.map-stats { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-metrics dt,
.dashboard-metrics dd,
.supplement-card dt,
.supplement-card dd,
.map-stats dt,
.map-stats dd { margin: 0; border-bottom: 1px dotted #876; padding: 0.2em 0; }
.dashboard-metrics dd,
.supplement-card dd,
.map-stats dd { padding-left: 0.5em; text-align: right; }
[data-tone="positive"] { color: #286f28; }
[data-tone="negative"] { color: #a00000; }
[data-tone="warning"] { color: #a55e00; }

/* The recovered economy is a wide, self-contained special screen. */
body.economy-screen #stats_sidebar,
body.economy-screen #native-news,
body.economy-screen #dnvp_dashboard { display: none !important; }
body.economy-screen #content { max-width: 800px; }
body.economy-screen #content > .scene-heading { display: none; }
body.economy-screen #scene-dashboard {
  margin: -1em -1.5em 1em;
  color: #000;
  font-family: Georgia, serif;
}
.economy-dashboard .dashboard-tabs {
  border: 0;
  background: var(--tab-bg-color);
}
.economy-dashboard .dashboard-tab {
  border: 0;
  background: var(--tab-color);
  padding: 10px;
  font-family: "Minion Pro", Georgia, serif;
}
.economy-dashboard .dashboard-tab[aria-selected="true"] { background: var(--content-bg-color); }
.economy-panel { padding: 0 1.5em 1em; }
.economy-heading {
  margin: 14px 0;
  color: #431;
  font: 1.35em Georgia, serif;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.economy-overview-stack { display: flex; flex-direction: column; gap: 10px; }
.economy-row { display: flex; align-items: stretch; gap: 10px; }
.economy-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  border: 2px solid #431;
  background: var(--content-bg-color);
  padding: 9px 11px;
  text-align: center;
}
.economy-card h3 {
  margin: 0 0 1px;
  color: #431;
  font-size: 0.72em;
  font-weight: bold;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.economy-card img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 8px 0 0;
  border: 2px solid #000;
  object-fit: cover;
  order: 3;
}
.economy-card .dashboard-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  flex: 1;
  margin: 4px 0 0;
  font-size: 0.8em;
  order: 2;
}
.economy-card .dashboard-metrics dt,
.economy-card .dashboard-metrics dd {
  margin: 0;
  border-bottom: 1px dotted #000;
  padding: 1px 0;
}
.economy-card .dashboard-metrics dt { text-align: left; }
.economy-card .dashboard-metrics dd { padding-left: 5px; text-align: right; white-space: nowrap; }
.economy-primary {
  display: block;
  margin: 1px 0;
  font-size: 1.2em;
  white-space: nowrap;
  order: 1;
}
.economy-row-top > * { flex: 1; }
.economy-row-middle > :nth-child(4) { flex: 1.15; }
.economy-row-bottom > :nth-child(1) { flex: 1.25; }
.economy-row-bottom > :nth-child(3) { flex: 1.1; }
.economy-cover img {
  width: auto;
  height: 90px;
  margin: 4px auto;
  border: 0;
  order: 1;
}
.economy-cover small { order: 3; color: #000; font-size: 0.76em; }
.economy-labour-market img,
.economy-inflation img { max-height: 150px; }
.economy-mini-chart {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 96px;
  margin: 3px auto 0;
  order: 1;
}
.economy-chart-label {
  display: block;
  margin: 23px 0 0;
  color: #431;
  font-size: 0.58em;
  text-transform: uppercase;
}
.economy-mini-chart path { fill: none; stroke: #999; stroke-width: 1; }
.economy-mini-chart polyline { fill: none; stroke: #1a4d2e; stroke-width: 1.5; }
.economy-world-economy .economy-primary { margin-top: 4px; text-align: left; }
.economy-inflation .dashboard-metrics { display: block; text-align: center; }
.economy-inflation .dashboard-metrics dt,
.economy-inflation .dashboard-metrics dd { border: 0; text-align: center; }
.economy-inflation .dashboard-metrics dd { margin-top: 5px; padding: 0; }
.economy-reparations .economy-primary { margin-top: 34px; }
.economy-reparations .dashboard-metrics { flex: 0 0 auto; margin-top: auto; }
.economy-reich-budget .dashboard-metrics { display: block; }
.economy-reich-budget .dashboard-metrics dt,
.economy-reich-budget .dashboard-metrics dd { display: inline; border: 0; }
.economy-reich-budget .dashboard-metrics dd::after { display: block; content: ""; }
.economy-balance-of-payments .dashboard-metrics dt:last-of-type,
.economy-balance-of-payments .dashboard-metrics dd:last-of-type { font-weight: bold; }
.economy-public-debt { position: relative; }
.economy-debt-pie {
  position: absolute;
  bottom: 18px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(#9b1b18 0 50.2%, #2d7046 50.2% 77.6%, #8b1111 77.6% 100%);
}
.economy-public-debt .dashboard-metrics { margin-left: 45px; }
.economy-alerts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.economy-alerts article {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 2px solid #b00000;
  padding: 7px 11px;
  font-size: 0.9em;
}
.economy-alerts img {
  flex: 0 0 auto;
  width: 66px;
  height: 46px;
  border: 1px solid #000;
  object-fit: cover;
}
.economy-native-table { color: #000; font-size: 0.9em; }
.economy-native-table th { font-weight: normal; }
.economy-table-heading {
  border: 0;
  padding: 0 0 0.25em;
  color: #431;
  font-size: 1em;
  font-weight: bold !important;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.economy-table-heading[data-heading-tone="revenue"] { color: #2d7a2d; }
.economy-table-heading[data-heading-tone="expenditure"] { color: #b00000; }
.economy-table-total { font-weight: bold; }
[data-economy-band="0"] { color: #1a7a1a; }
[data-economy-band="1"] { color: #4e8a1e; }
[data-economy-band="2"] { color: #9a7d00; }
[data-economy-band="3"] { color: #b06800; }
[data-economy-band="4"] { color: #b03800; }
[data-economy-band="5"] { color: #b00000; }

.economy-sector-table {
  width: 100%;
  border-collapse: collapse;
  color: #000;
  font-size: 0.95em;
}
.economy-sector-table th {
  border-bottom: 2px solid #431;
  padding: 0.4em 0.45em;
  color: #431;
  font: bold 0.8em Georgia, serif;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.economy-sector-table td {
  border-bottom: 1px dotted #000;
  padding: 0.45em;
  text-align: center;
  vertical-align: middle;
}
.economy-sector-table td:first-child { text-align: left; }
.economy-sector-row:hover { background: rgba(67, 49, 17, 0.08); cursor: help; }
.economy-sector-detail { display: none; }
.economy-sector-row:hover + .economy-sector-detail,
.economy-sector-detail:hover { display: table-row; }
.economy-sector-detail > td { padding: 0.6em 0.8em; }
.economy-sector-detail > td > div { display: flex; align-items: center; gap: 18px; }
.economy-sector-detail img {
  flex: 0 0 auto;
  width: 170px;
  height: 125px;
  border: 2px solid #000;
  object-fit: cover;
}
.economy-sector-detail p { margin: 0; line-height: 1.45; text-align: left; }
.economy-sector-detail p + p { margin-top: 6px; }

.economy-budget-columns { display: flex; align-items: flex-start; gap: 14px; color: #000; font-size: 0.9em; }
.economy-budget-columns > section { flex: 1; min-width: 0; }
.economy-budget-columns .economy-native-table { font-size: 1em; }
.economy-budget-columns .economy-native-table td { padding: 0.25em 0.4em; }
.economy-budget-chart { margin-top: 16px; text-align: center; }
.economy-budget-chart h3 {
  margin: 0 0 3px;
  color: #431;
  font-size: 0.8em;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.economy-budget-chart p { margin: 5px 0 0; font-size: 0.9em; }
.economy-finance-minister {
  display: block;
  width: auto;
  height: 172px;
  margin: 18px auto 0;
  border: 2px solid #000;
}
.economy-line-chart { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.economy-line-chart .economy-chart-axis { fill: none; stroke: #888; stroke-width: 1; }
.economy-line-chart .economy-chart-zero { stroke: #999; stroke-width: 1; stroke-dasharray: 3 2; }
.economy-line-chart .economy-chart-line { fill: none; stroke: #431; stroke-width: 1.5; }
.economy-line-chart circle[data-tone="positive"] { fill: #2d7a2d; }
.economy-line-chart circle[data-tone="negative"] { fill: #b00000; }
.economy-line-chart text { fill: #777; font: 9px Georgia, serif; }

.economy-monetary-layout { display: flex; align-items: stretch; gap: 26px; color: #000; }
.economy-monetary-layout > section:first-child { flex: 1.5; min-width: 0; }
.economy-monetary-layout > section:last-child { flex: 1; min-width: 0; }
.economy-reichsbank-portraits { display: flex; align-items: flex-start; justify-content: center; gap: 18px; margin-bottom: 10px; }
.economy-reichsbank-portraits img { display: block; width: auto; height: 120px; }
.economy-reichsbank-portraits img:last-child { border: 2px solid #000; }
.economy-monetary-layout .economy-native-table { font-size: 0.82em; }
.economy-reichsbank-ledgers { display: flex; align-items: flex-start; gap: 18px; margin-top: 8px; }
.economy-reichsbank-ledgers > table { flex: 1; }
.economy-bank-list { display: flex; flex-direction: column; justify-content: space-between; }
.economy-bank-list article { display: flex; align-items: center; gap: 14px; }
.economy-bank-list article > img {
  flex: 0 0 96px;
  width: 96px;
  max-height: 84px;
  object-fit: contain;
}
.economy-bank-list article:nth-child(3) > img { max-height: 67px; }
.economy-bank-list article > div { flex: 1; min-width: 0; }
.economy-bank-list strong { display: block; font-size: 0.95em; }
.economy-bank-list span { display: block; font-size: 1.35em; font-weight: bold; line-height: 1.05; white-space: nowrap; }

.economy-panel-foreign .economy-heading { margin-bottom: 0; }
.economy-dow h3 {
  margin: 12px 0 2px;
  color: #431;
  font: normal 0.95em Georgia, serif;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.economy-dow .economy-line-chart { width: 520px; max-width: 100%; margin-bottom: 26px; }
.economy-dow .economy-chart-line { stroke: #1a4d2e; }
.economy-world-condition { margin: 2px 0 12px; color: #000; text-align: center; }
.economy-foreign-columns { display: flex; align-items: flex-start; gap: 18px; color: #000; font-size: 0.9em; }
.economy-foreign-columns > section { flex: 1; min-width: 0; }
.economy-foreign-columns > section:last-child { flex: 1.3; }
.economy-debt-maturity { margin-top: 10px; font-size: 0.85em; text-align: center; }
.economy-maturity-pie { display: block; width: 76px; height: 76px; margin: 5px auto 3px; }
.economy-pie-long { fill: #1a4d2e; }
.economy-pie-short { fill: #b00000; }
.economy-debt-maturity p { margin: 0; }
.economy-debt-maturity i { display: inline-block; width: 0.75em; height: 0.75em; }
.economy-legend-long { background: #1a4d2e; }
.economy-legend-short { background: #b00000; }
.economy-reparations-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1em;
  height: 1em;
  margin: 0 0.4em 0 0;
  border: 1px solid #000;
  border-radius: 0;
  background: none;
  padding: 0;
  color: #000;
  font: inherit;
  line-height: 1;
  vertical-align: middle;
}
.economy-reparations-detail { display: none; }
.economy-reparations-open .economy-reparations-detail { display: table-row; }
.economy-trade-table th:not(.economy-table-heading) {
  color: #431;
  font-size: 0.8em;
  font-weight: normal;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.economy-trade-table td:not(:first-child) { text-align: center; }

@media (max-width: 760px) {
  .economy-budget-columns,
  .economy-monetary-layout,
  .economy-foreign-columns { flex-direction: column; }
  .economy-budget-columns > section,
  .economy-monetary-layout > section,
  .economy-foreign-columns > section { width: 100%; }
  .economy-bank-list { gap: 16px; }
  .economy-sector-table { font-size: 0.78em; }
  .economy-sector-table th,
  .economy-sector-table td { padding-right: 0.2em; padding-left: 0.2em; }
}
.map-frame { position: relative; border: 2px solid #000; line-height: 0; }
.map-image { display: block; width: 100%; height: auto; }
.map-marker {
  position: absolute;
  width: 1em;
  height: 1em;
  border: 1px solid #000;
  border-radius: 50%;
  background: #ddd;
  transform: translate(-50%, -50%);
}
.map-marker-selected { background: #900; }
.referendum-bars,
.election-bars { display: flex; align-items: end; justify-content: center; gap: 2em; min-height: 14em; }
.referendum-column,
.election-candidate { display: flex; flex-direction: column; align-items: center; }
.referendum-track { display: flex; align-items: end; width: 4em; height: 10em; border: 1px solid #000; }
.referendum-fill,
.election-candidate-bar { display: block; width: 100%; min-height: 1px; }
.referendum-fill-yes { background: #2d5a1b; }
.referendum-fill-no { background: var(--kpd-color); }
.election-result-list article { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px dotted #876; padding: 0.3em 0; }
.history-chart svg { display: block; width: 100%; max-width: 600px; margin: 0 auto; }
.history-chart-axis { fill: none; stroke: #211b14; stroke-width: 1.5; }
.history-chart text { fill: #211b14; font: 13px Georgia, serif; }

/* Native overlay shell. game.css supplies .overlay_top and table geometry. */
dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  background: rgb(0 0 0 / 70%);
  padding: 0;
  color: #fff;
  overflow: auto;
}
dialog::backdrop { background: transparent; }
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-bottom: 1px solid #aaa;
  padding: 0.5em;
}
.dialog-header h2 { margin: 0; font-size: 1em; font-weight: normal; text-transform: uppercase; letter-spacing: 0.08em; }
.dialog-header h2::before { content: none; }
.dialog-close { font: initial; }
.options input[type="text"] { width: 2.5em; text-align: center; text-transform: uppercase; }
.native-save-table { width: 100%; border-spacing: 0.35em; }
.native-save-table td { white-space: nowrap; }
.native-save-table time { display: inline; color: inherit; font-size: inherit; }
.native-save-table .save_info { width: 100%; min-width: 9em; white-space: normal; text-align: left; }
.save-slot-label { min-width: 1.8em; font-weight: normal; }
.native-save-table { font-weight: normal; }
#saves_dialog_root { overflow-x: auto; }
.save-dialog-actions { display: flex; gap: 8px; margin: 6px 10px 8px; }
.delete-button { color: #900; }
.empty-message { margin: 1em; text-align: center; font-style: italic; text-indent: 0; }
#account-summary,
.community-columns { padding: 1em; }

/* The recovered Achievements special scene, with its catalog supplied by the Worker. */
body.achievement-view #tools_wrapper,
body.achievement-view #dnvp_dashboard { display: none !important; }
body.achievement-view #content { max-width: 800px !important; }
body.achievement-view #content > :not(#achievement-page) { display: none !important; }
#achievement-page[hidden] { display: none !important; }
#achievement-page > h1:first-child { color: #3e88b3; }
.achievement-banner {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: center;
  border: 5px solid #000;
  margin-bottom: 16px;
}
.achievement-counts {
  margin-bottom: 12px;
  font-family: Georgia, serif;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ach-card { display: flex; align-items: center; gap: 10px; border: 3px solid #876; padding: 8px; background: #ede8d8; }
.ach-card.locked { filter: grayscale(1); opacity: 0.5; }
.ach-icon { width: 60px; height: 60px; border: 3px solid #876; object-fit: cover; flex-shrink: 0; background: #ccc; }
.ach-info strong { display: block; font-size: 0.85em; color: #3b2a1a; }
.ach-info span { font-size: 0.9em; color: #666; }
.achievement-section-title {
  grid-column: 1 / -1;
  margin: 18px 0 8px;
  font-family: Georgia, serif;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#achievement-actions { grid-column: 1 / -1; margin-top: 18px; }
#account-dialog .overlay_top { border-color: #aaa; }
#account-summary { padding: 1.1em 1em 0.8em; text-align: center; }
#account-summary strong { display: block; font-size: 1.15em; letter-spacing: 0.04em; }
#account-summary p { margin: 0.25em 0 0; color: #ddd; text-indent: 0; }
.account-notice {
  margin: 0.8em 1em 0;
  border: 1px solid currentColor;
  padding: 0.55em 0.7em;
  text-align: center;
  text-indent: 0;
}
.account-notice[data-tone="positive"] { color: #a9d99a; }
.account-notice[data-tone="negative"] { color: #ffb2aa; }
.account-options-table { margin: 0.2em auto 1em; border-spacing: 0.45em 0.35em; }
.account-option-label { min-width: 9em; }
.account-action { min-width: 5.5em; }
.account-name-form { display: flex; align-items: center; gap: 0.5em; margin: 1em; }
.account-name-form[hidden] { display: none; }
.community-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1em;
}
.community-columns > section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #aaa;
  padding: 0.75em;
}
.community-columns h3 { margin-top: 0; text-align: center; text-transform: uppercase; }
#community-leaderboard,
#community-achievements {
  max-height: min(26rem, calc(100vh - 15rem));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
.community-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.community-table th:first-child,
.community-table td:first-child { width: 2.6em; }
.community-table th:last-child,
.community-table td:last-child { width: 3.7em; }
.community-table th,
.community-table td { border-bottom: 1px dotted #aaa; padding: 0.3em; text-align: left; }
.community-table td:last-child { text-align: center; }
.community-achievement {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 0.75em;
  border-bottom: 1px dotted #aaa;
  padding: 0.65em 0;
}
.community-achievement:last-child { border-bottom: 0; }
.community-achievement-icon {
  grid-row: 1 / 3;
  width: 64px;
  height: 64px;
  border: 2px solid #aaa;
  background: #eee;
  object-fit: cover;
}
.community-achievement-rarity {
  min-width: 0;
  color: #bbb;
  font-size: 0.82em;
  font-style: italic;
  line-height: 1.2;
}
.community-achievement-name {
  align-self: start;
  min-width: 0;
  padding-top: 0.2em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#achievement-toast {
  position: fixed;
  right: 1em;
  bottom: 1em;
  z-index: 20;
  max-width: 22em;
  border: 2px solid #876;
  background: var(--content-bg-color);
  padding: 0.7em;
  box-shadow: 2px 2px 12px rgb(0 0 0 / 20%);
  color: var(--text-color);
}

.background { pointer-events: none; }
#page { position: relative; }
#page > footer { min-height: 1em; }

@media screen and (max-width: 767px) {
  #header-links button { min-height: 44px; padding: 0.4em 0.8em; }
  .choice { min-height: 44px; }
  .community-columns { grid-template-columns: 1fr; }
  #community-leaderboard,
  #community-achievements { max-height: 14rem; }
  .account-name-form { align-items: stretch; flex-direction: column; }
  button.card { width: 100px; height: 125px; border-width: 8px; }
  button.card .card-img,
  button.card .card-face-placeholder { width: 100px; height: 125px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
