* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eee7f3;
  color: #000;
  font: 13px/1.5 "Comic Sans MS", "Comic Sans", cursive;
}
a {
  color: #74008e;
  text-decoration: underline;
}
a:hover {
  color: #bc0087;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #b00090;
  outline-offset: 2px;
}
.site {
  width: min(900px, calc(100% - 24px));
  margin: 12px auto;
  background: #fff;
  border: 1px solid #b5a5bf;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 14px;
  background: #faf6fc;
  border-top: 4px solid #b800ad;
}
.logo {
  display: block;
  flex-shrink: 0;
}
.logo img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}
.site-search {
  width: 285px;
  max-width: 100%;
}
.site-search label {
  display: block;
  margin-bottom: 3px;
}
.search-controls {
  display: flex;
  gap: 5px;
}
input, button, .button {
  font: inherit;
  color: #000;
  border-radius: 0;
}
input {
  min-width: 0;
  border: 1px solid #9986a5;
  background: white;
  padding: 3px 5px;
}
input[type="search"] {
  width: 100%;
}
button, .button {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid #9e82ab;
  border-bottom-color: #70557c;
  background: #ebdcf2;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover {
  background: #dfc5ea;
  color: #000;
}
button:disabled {
  color: #666;
  border-color: #aaa;
  background: #eee;
  cursor: default;
}
.navigation, .navigation nav, .account-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.navigation {
  justify-content: space-between;
  gap: 8px 20px;
  padding: 7px 18px;
  background: #ead8f0;
  border-top: 1px solid #bfa6cb;
  border-bottom: 1px solid #bfa6cb;
}
.navigation nav, .account-links {
  gap: 18px;
}
.navigation a, .link-button {
  color: #000;
}
.navigation [aria-current] {
  font-weight: bold;
}
.account-links form {
  margin: 0;
}
.account-name {
  overflow-wrap: anywhere;
}
.link-button {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
}
.link-button:hover {
  background: none;
  color: #74008e;
}
main {
  padding: 12px;
}
h1, h2, p {
  margin: 0;
}
h1 {
  font-size: 20px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 14px;
}
p + p {
  margin-top: 10px;
}
.welcome {
  margin: -5px 0 16px;
}
.panel {
  border: 1px solid #bcacc7;
  margin-bottom: 12px;
}
.panel:last-child {
  margin-bottom: 0;
}
.panel > h1, .panel > h2 {
  padding: 5px 9px;
  margin: 0;
  background: #eee3f4;
  border-bottom: 1px solid #bcacc7;
  font-size: 14px;
}
.panel-body {
  padding: 10px 12px;
}
.muted, .help-text {
  color: #555;
  font-size: 12px;
}
footer {
  padding: 7px 18px;
  border-top: 1px solid #d9cce0;
  text-align: center;
  font-size: 11px;
  background: #faf6fc;
}
.account-form {
  max-width: 410px;
  margin: 4px auto 18px;
}
.form-field {
  margin-bottom: 14px;
}
.form-field label {
  display: block;
  margin-bottom: 4px;
}
.form-field input {
  display: block;
  width: 100%;
  padding: 5px;
}
.help-text {
  margin-top: 3px;
}
.form-switch {
  margin: 16px 0 10px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}
.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-error, .field-errors {
  color: #a00028;
  margin: 5px 0 10px;
}
input[aria-invalid="true"] {
  border-color: #a00028;
}
.message {
  border: 1px solid #bcacc7;
  padding: 7px 10px;
  background: #f7f0fa;
  margin-bottom: 14px;
}
.search-tabs {
  display: flex;
  gap: 18px;
  margin: 0 0 12px;
}
.search-tabs [aria-current] {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}
.user-list {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.user-list th, .user-list td {
  padding: 7px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  overflow-wrap: anywhere;
}
.user-list th {
  font-weight: normal;
  background: #faf6fc;
}
.user-list th:first-child {
  width: 65%;
}
.user-list tr:last-child td {
  border-bottom: 0;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 10px;
  border-top: 1px solid #ddd;
}
.profile-details {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}
.profile-details dt {
  font-weight: bold;
}
.profile-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 6px;
  background: white;
}
.skip-link:focus {
  top: 0;
}
@media (max-width: 600px) {
  .site {
    width: calc(100% - 16px);
    margin: 8px auto;
  }
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
  }
  .logo img {
    width: 210px;
  }
  .site-search {
    width: 100%;
  }
  .navigation {
    padding: 7px 12px;
  }
  .navigation nav, .account-links {
    gap: 14px;
  }
  main {
    padding: 12px;
  }
}

/* Chunk 1.5: compact pages, screenshots and the privacy window. */
footer span { margin: 0 7px; }
.registration-privacy { margin: 4px 0 12px; font-size: 12px; }
.showcase { display: grid; grid-template-columns: 1fr 1.85fr; gap: 12px; align-items: start; }
.showcase figure { margin: 0; min-width: 0; }
.showcase a { display: block; }
.showcase img { display: block; width: 100%; height: auto; border: 3px solid #f000b8; }
.policy-copy { overflow-wrap: anywhere; }
.policy-copy h2 { font-size: 14px; margin: 18px 0 6px; }
.policy-copy p { margin: 0 0 10px; }
.policy-copy p:last-child { margin-bottom: 0; }
#privacy-dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 2px solid #a10097; color: #000; background: #fff; overflow-y: auto; }
#privacy-dialog::backdrop { background: rgba(25, 12, 30, .48); }
.privacy-window > h2 { margin: 0; padding: 7px 12px; background: #ead8f0; border-bottom: 1px solid #bcacc7; font-size: 15px; }
.privacy-intro { margin: 10px 12px; font-size: 12px; }
.policy-scroll { height: min(40dvh, 340px); overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px; border: 1px solid #bcacc7; margin: 0 12px; scrollbar-gutter: stable; }
.policy-scroll:focus-visible { outline: 2px solid #b00090; outline-offset: 1px; }
.privacy-status { min-height: 20px; margin: 8px 12px; font-size: 12px; }
.privacy-ack-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 12px; }
.privacy-ack-form button { white-space: normal; }
.privacy-options { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 12px; font-size: 12px; }
.privacy-options form { margin: 0; }
.privacy-review-page { max-width: 640px; margin: 0 auto; border: 1px solid #bcacc7; }
.no-script-notice { padding: 10px; background: white; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .showcase { grid-template-columns: 1fr; }
  .privacy-intro { margin: 8px; }
  .policy-scroll { margin: 0 8px; padding: 8px; height: 38dvh; }
  .privacy-status, .privacy-ack-form, .privacy-options { margin-left: 8px; margin-right: 8px; }
}

/* Local launcher library. */
.launcher-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.local-note { font-size: 12px; }
.local-game-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #ead8f0; }
.local-game-row span { min-width: 0; overflow-wrap: anywhere; }
.local-game-row button { flex-shrink: 0; }
#local-game-search { display: block; width: 100%; margin: 5px 0 8px; }
.search-controls { flex-wrap: wrap; }
.search-controls input { min-width: 80px; }
.search-controls select { max-width: 120px; font: inherit; background: #fff; color: #000; }
