/* Shared local-only adjustments. Authentication is not part of this static site. */
/* Local mirror has no account or server-backed community sections. */
._4k_,
a[href="/profile"],
a[href="profile.html"],
._9c_{display:none !important}

/* Kept outside the legacy toolbar: that DOM is reconciled by the game engine. */
.local-rules-toolbar-button {
  position: fixed;
  z-index: 1000;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #f8f4e9;
  background: rgba(5, 28, 20, .72);
  border: 1px solid rgba(248, 244, 233, .34);
  border-radius: 50%;
  cursor: pointer;
}
.local-rules-toolbar-button:hover,
.local-rules-toolbar-button:focus-visible {
  background: rgba(235, 220, 99, .24);
  outline: none;
}
.local-rules-toolbar-button svg { width: 30px; height: 30px; }

.local-rules-modal[hidden] { display: none !important; }
.local-rules-modal {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.local-rules-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 14, .72);
  backdrop-filter: blur(3px);
}
.local-rules-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  box-sizing: border-box;
  padding: 34px 42px 38px;
  border: 1px solid rgba(232, 218, 121, .52);
  border-radius: 16px;
  color: #f8f4e9;
  background: linear-gradient(150deg, #174b38, #0b2b20);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.local-rules-modal__eyebrow {
  margin: 0 0 8px;
  color: #ebdc63;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.local-rules-modal__dialog h2 {
  margin: 0 34px 24px 0;
  color: inherit;
  font-size: 28px;
  line-height: 1.2;
}
.local-rules-modal__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.5;
}
.local-rules-modal__goal { color: #fff0a0; font-weight: 700; }
.local-rules-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #f8f4e9;
  background: rgba(255, 255, 255, .12);
  font-size: 30px;
  line-height: 30px;
  cursor: pointer;
}
.local-rules-modal__close:hover,
.local-rules-modal__close:focus-visible { background: rgba(235, 220, 99, .28); outline: none; }
.local-rules-open { overflow: hidden; }
@media (max-width: 600px) {
  .local-rules-modal { padding: 12px; }
  .local-rules-modal__dialog { max-height: calc(100vh - 24px); padding: 28px 24px; }
  .local-rules-modal__dialog h2 { font-size: 23px; }
  .local-rules-modal__list { font-size: 15px; }
}
