body .kp-dlg.kp-how,
body #regQuickModal,
body #dgModal .summary-digest {
  width: min(880px, calc(100% - 48px));
  max-height: calc(100dvh - 64px);
  margin: auto;
  padding: 0;
  border: 1px solid #687452;
  border-radius: 16px;
  background: #20291b;
  color: #ece6d4;
  box-shadow: 0 24px 100px #0009;
  box-sizing: border-box;
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
  animation: none;
}
body .kp-dlg.kp-how[open] { display: flex; flex-direction: column; }
.kp-how::backdrop, #regQuickModal::backdrop { background: #080d08c9; }
.kp-how .how-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex: 0 0 auto;
  padding: 26px 32px 22px;
  border-bottom: 1px solid #c9b58a33;
  background: #2b3623;
}
.kp-how .how-head > div { min-width: 0; }
.kp-how .how-head h2,
body #regQuickModal > h3,
body #dgModal .summary-digest > h3 {
  margin: 0 0 8px;
  font: 800 25px/1.3 var(--body,system-ui,sans-serif);
  letter-spacing: -.025em;
  color: #f0ebdc;
}
.kp-how .how-intro,
body #regQuickModal > p,
body #dgModal .summary-digest > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #b9c3ac;
}
.kp-how .how-close,body .summary-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #778165;
  border-radius: 8px;
  background: transparent;
  color: #ece6d4;
  font: 26px/1 system-ui;
  cursor: pointer;
}
.kp-how .how-body { min-height: 0; overflow-y: auto; padding: 4px 32px 12px; }
.kp-how .how-footer,body #regQuickModal > .row,body #dgModal .summary-digest > .dgr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 16px 32px;
  border-top: 1px solid #c9b58a33;
  background: #252f1f;
}
body .kp-how .how-footer .kp-ok,
body #regQuickModal .row > button,
body #dgModal .summary-digest .dgr > button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  margin: 0 0 0 auto;
  padding: 10px 22px;
  border: 1px solid #8d987a;
  border-radius: 8px;
  background: #35432b;
  color: #f0ebdc;
  font: 800 14px/1.4 var(--body,system-ui,sans-serif);
  cursor: pointer;
}
body .kp-how .how-more,
body #regQuickModal .row > a,
body #dgModal .summary-digest .dgr > a {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #f7b58c;
  font: 750 14px/1.5 var(--body,system-ui,sans-serif);
  text-underline-offset: 4px;
}
.kp-how .how-more[hidden] { display: none !important; }
.summary-return::before { content: none !important; }
.summary-panels { min-width: 0; }
.summary-panel {
  display: grid;
  grid-template-columns: 140px minmax(0,1fr);
  gap: 24px;
  padding: 24px 0;
}
.summary-panel + .summary-panel { border-top: 1px solid #c9b58a33; }
.summary-panel > h3 {
  margin: 0;
  color: #c9b58a;
  font: 800 15px/1.6 var(--body,system-ui,sans-serif);
}
.summary-panel > ul,
body #regQuickModal #regQuickL,
body #dgModal .summary-digest > ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}
.summary-panel > ul > li,
body #regQuickModal #regQuickL > li,
body #dgModal .summary-digest > ul > li {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #d9dfcf;
  font-size: 15px;
  line-height: 1.75;
}
.summary-panel > ul > li + li,
body #regQuickModal #regQuickL > li + li,
body #dgModal .summary-digest > ul > li + li { margin-top: 18px; }
.summary-panel li::before,body #regQuickModal #regQuickL > li::before,body #dgModal li::before { content: none; }
.summary-panel b,body #regQuickModal #regQuickL b,body #dgModal li b {
  display: block;
  margin-bottom: 5px;
  color: #f0ebdc;
  font-weight: 800;
}
body #regQuickModal,body #dgModal .summary-digest { position: relative; padding: 28px 32px 0; overflow-y: auto; }
body #regQuickModal > h3,body #dgModal .summary-digest > h3 { padding-right: 52px; }
body #regQuickModal > p,body #dgModal .summary-digest > p { margin-bottom: 12px; }
body #regQuickModal > .row,body #dgModal .summary-digest > .dgr {
  position: sticky;
  bottom: 0;
  margin: 12px -32px 0;
}
body .summary-close { position: absolute; top: 24px; right: 26px; }
body #regQuickModal #regQuickL > .kp-h { margin: 24px 0 12px; color: #c9b58a; font-weight: 800; }
body #dgModal .summary-digest > ul { padding: 16px 0; }
/* The game overview retains its time facts and safety emphasis. */
.kp-how .how-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.kp-how .how-facts > div { padding: 14px 10px; border-radius: 10px; background: #2c3823; text-align: center; }
.kp-how .how-facts strong { display: block; color: #ffad7f; font: 800 26px/1.3 var(--body,sans-serif); }
.kp-how .how-facts span { display: block; margin-top: 5px; color: #c4cbb4; font-size: 12px; }
.kp-how .how-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.kp-how .how-card { padding: 18px; border: 1px solid #c9b58a33; border-radius: 10px; background: #26311f; }
.kp-how .how-card:first-child,.kp-how .how-safety { grid-column: 1 / -1; }
.kp-how .how-card h3 { margin: 0 0 8px; font: 800 16px/1.4 var(--body,sans-serif); }
.kp-how .how-card p { margin: 0; color: #d1d6c5; font-size: 14px; line-height: 1.75; }
.kp-how .how-safety { border-left: 3px solid #ff8a50; background: #342d1d; }
.kp-how button:focus-visible,.kp-how a:focus-visible,.summary-close:focus-visible { outline: 2px solid #c1d5a7; outline-offset: 3px; }
.kp-how ::selection,main ::selection { background: #ffab70; color: #1b2114; }
@media(max-width:600px){
  body .kp-dlg.kp-how,body #regQuickModal,body #dgModal .summary-digest { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .kp-how .how-head { padding: 20px; gap: 12px; }
  .kp-how .how-head h2,body #regQuickModal > h3,body #dgModal .summary-digest > h3 { font-size: 21px; }
  .kp-how .how-body { padding: 0 20px 10px; }
  .summary-panel { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 20px 0; }
  .kp-how .how-footer,body #regQuickModal > .row,body #dgModal .summary-digest > .dgr { padding: 12px 20px; flex-wrap: wrap; gap: 8px 12px; }
  body #regQuickModal,body #dgModal .summary-digest { padding: 20px 20px 0; }
  body #regQuickModal > .row,body #dgModal .summary-digest > .dgr { margin-inline: -20px; }
  body .summary-close { top: 16px; right: 16px; }
  .kp-how .how-cards { grid-template-columns: minmax(0,1fr); }
}
.game-content { min-width: 0; }
@media (min-width: 900px) {
  .game-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 40px; align-items: start; }
  .game-layout > .asb-section-nav {
    position: sticky;
    top: calc(var(--hh, 80px) + 24px);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
  }
  .game-layout > .asb-section-nav ul { display: flex; flex-direction: column; gap: 0; border-left: 2px solid #c9b58a40; }
  .game-layout > .asb-section-nav a {
    min-height: 44px;
    padding: 8px 0 8px 18px;
    margin-left: -2px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #a1aa8b;
    font-size: 15px;
    line-height: 1.5;
  }
  .game-layout > .asb-section-nav a:hover,
  .game-layout > .asb-section-nav a[aria-current="location"] { border-left-color: #ff743d; color: #ece6d4; background: transparent; }
}
/* A single desktop scale for summaries, including application entry points. */
@media (min-width: 900px) {
  html body dialog.kp-dlg.kp-how {
    width: min(880px, calc(100% - 48px)) !important;
    font: 400 15px/1.75 var(--body,system-ui,sans-serif) !important;
  }
  html body dialog.kp-dlg.kp-how .summary-panel > ul > li {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }
  html body dialog.kp-dlg.kp-how .summary-panel > h3 {
    font: 800 15px/1.6 var(--body,system-ui,sans-serif) !important;
  }
  html body dialog.kp-dlg.kp-how .how-head h2 {
    font: 800 25px/1.3 var(--body,system-ui,sans-serif) !important;
  }
}
.application-privacy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c9b58a;
  font: 750 14px/1.5 var(--body,system-ui,sans-serif);
  text-underline-offset: 4px;
}
