.nr-site-header {
  max-width: none;
  width: 100%;
  border-radius: 0;
}

.nightreign-map-page {
  --nr-home-bg: #090b13;
  --nr-home-panel: #121622;
  --nr-home-panel-2: #181b2d;
  --nr-home-panel-3: #24283a;
  --nr-home-ink: #f6f7ff;
  --nr-home-muted: #aeb6cc;
  --nr-home-line: #3d465f;
  --nr-home-line-strong: #6e7892;
  --nr-home-accent: #d51e24;
  --nr-home-gold: #f1c74e;
  --nr-home-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  width: 100%;
  height: calc(100dvh - 58px);
  margin: 0;
  color: #f7f2e8;
  background: #050505;
  overflow: hidden;
}

.nightreign-map-page * {
  box-sizing: border-box;
}

.nr-map-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(57, 65, 61, 0.35), transparent 42%),
    linear-gradient(90deg, #000 0%, #0c0d0d 13%, #111 100%);
}

.nr-map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.nr-map-viewport.is-dragging {
  cursor: grabbing;
}

.nr-map-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 1000px;
  transform-origin: 0 0;
  will-change: transform;
}

.nr-map-tiles,
.nr-map-overlay-layer,
.nr-poi-layer,
.nr-crystal-layer {
  position: absolute;
  inset: 0;
}

.nr-map-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  background: #111;
}

.nr-map-tile {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.nr-map-full {
  display: none;
  position: absolute;
  inset: 0;
  width: 1000px;
  height: 1000px;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.nr-poi-layer {
  z-index: 8;
  pointer-events: none;
}

.nr-crystal-layer {
  z-index: 9;
  pointer-events: none;
}

.nr-map-overlay-layer {
  z-index: 3;
  pointer-events: none;
}

.nr-gh-underground-overlay {
  position: absolute;
  left: var(--nr-gh-underground-x);
  top: var(--nr-gh-underground-y);
  width: var(--nr-gh-underground-width);
  height: var(--nr-gh-underground-height);
  opacity: var(--nr-gh-underground-opacity, 1);
  background-image: var(--nr-gh-underground-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.nr-labels-hidden .nr-gh-underground-overlay {
  opacity: calc(var(--nr-gh-underground-opacity, 1) * 0.96);
}

.nr-top-status {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 24;
  min-width: 112px;
  padding: 9px 13px;
  color: #fff;
  border-radius: 0 0 4px 4px;
  background: rgba(33, 48, 68, 0.96);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.nr-orb {
  position: absolute;
  z-index: 28;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nr-orb-ring {
  position: absolute;
  inset: 0;
  border: 7px solid rgba(22, 42, 70, 0.96);
  border-radius: inherit;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.nr-nightlord-orb {
  top: 22px;
  left: max(22px, calc(50% - 480px));
  width: 150px;
  height: 150px;
  background:
    radial-gradient(circle at 45% 42%, rgba(151, 171, 230, 0.65), transparent 28%),
    radial-gradient(circle at 50% 58%, rgba(67, 73, 131, 0.9), rgba(34, 42, 81, 0.95) 58%, rgba(18, 28, 53, 0.95));
}

.nr-map-orb {
  top: 24px;
  right: max(34px, calc(50% - 500px));
  width: 145px;
  height: 145px;
  overflow: hidden;
}

.nr-map-preview {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background-size: 300%;
  background-position: 50% 50%;
  filter: saturate(0.82) contrast(1.08);
}

.nr-orb-glyph {
  position: relative;
  z-index: 1;
  font-size: 64px;
  font-weight: 1000;
  text-shadow: 0 2px 10px #000;
}

.nr-orb-caption {
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: max-content;
  max-width: 180px;
  padding: 4px 8px;
  color: #fff;
  border-radius: 4px;
  background: rgba(32, 47, 68, 0.88);
  font-size: 12px;
  font-weight: 900;
  transform: translateX(-50%);
}

.nr-shift-orbs {
  position: absolute;
  top: 218px;
  left: max(22px, calc(50% - 490px));
  z-index: 29;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 170px;
  pointer-events: none;
}

.nr-shift-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 3px solid rgba(23, 150, 115, 0.9);
  border-radius: 50%;
  background: rgba(31, 44, 61, 0.86);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.44);
  font-size: 15px;
  font-weight: 1000;
  pointer-events: auto;
  cursor: pointer;
}

.nr-shift-button.is-active {
  border-color: #e3423b;
  box-shadow: 0 0 0 2px rgba(255, 219, 91, 0.8), 0 0 16px rgba(227, 66, 59, 0.85);
}

.nr-guide-panel,
.nr-candidate-panel,
.nr-choice-panel {
  color: #fff;
  background: rgba(45, 62, 86, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.nr-guide-panel {
  position: absolute;
  left: max(14px, calc(50% - 540px));
  bottom: 62px;
  z-index: 31;
  width: min(560px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0;
  color: var(--nr-home-ink);
  background: transparent;
  box-shadow: none;
}

.nr-guide-panel[hidden] {
  display: none;
}

.nr-guide-figure {
  display: grid;
  place-items: start center;
  padding-top: 4px;
}

.nr-guide-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.nr-guide-bubble {
  position: relative;
  padding: 16px;
  border: 1px solid var(--nr-home-line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--nr-home-panel);
  box-shadow: var(--nr-home-shadow);
}

.nr-guide-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 25px;
  width: 18px;
  height: 18px;
  border-left: 1px solid var(--nr-home-line);
  border-bottom: 1px solid var(--nr-home-line);
  background: var(--nr-home-panel);
  transform: rotate(45deg);
}

.nr-guide-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.nr-guide-kicker {
  margin: 0 0 4px;
  color: var(--nr-home-gold);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1.2;
  text-transform: uppercase;
}

.nr-guide-panel h1,
.nr-candidate-panel h2,
.nr-choice-panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.nr-guide-panel h1 {
  color: var(--nr-home-ink);
  font-size: 18px;
}

.nr-guide-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.nr-guide-list li {
  position: relative;
  padding-left: 20px;
  color: var(--nr-home-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.nr-guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nr-home-gold);
  box-shadow: 0 0 0 4px rgba(241, 199, 78, 0.12);
}

.nr-guide-hide,
.nr-candidate-hide,
.nr-switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.nr-guide-hide {
  margin-top: 12px;
  padding: 7px 10px;
  color: var(--nr-home-muted);
  border: 1px solid var(--nr-home-line);
  border-radius: 12px;
  background: var(--nr-home-panel-2);
}

.nr-candidate-hide {
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(14, 20, 31, 0.5);
  font-size: 12px;
}

.nr-guide-hide input,
.nr-candidate-hide input,
.nr-switch input,
.nr-category input {
  width: 16px;
  height: 16px;
  accent-color: var(--nr-home-gold);
}

.nr-panel-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.nr-guide-panel .nr-panel-close {
  position: static;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--nr-home-ink);
  border: 1px solid var(--nr-home-line);
  background: transparent;
  font-size: 20px;
}

.nr-guide-panel .nr-panel-close:hover,
.nr-guide-panel .nr-panel-close:focus-visible {
  border-color: var(--nr-home-line-strong);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nr-candidate-panel {
  position: absolute;
  right: max(18px, calc(50% - 560px));
  bottom: 88px;
  z-index: 32;
  width: 360px;
  max-height: min(70dvh, 590px);
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 4px;
  overflow: auto;
}

.nr-candidate-panel.is-positioned {
  right: auto;
  bottom: auto;
}

.nr-candidate-panel.is-panel-dragging {
  z-index: 36;
  user-select: none;
}

.nr-candidate-panel.has-special-event {
  border-color: rgba(255, 92, 92, 0.42);
  background:
    linear-gradient(180deg, rgba(92, 10, 10, 0.72), rgba(22, 12, 14, 0.92)),
    rgba(28, 15, 18, 0.94);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(180, 28, 28, 0.28);
}

.nr-candidate-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.nr-candidate-title-block {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nr-candidate-header-actions {
  display: flex;
  align-items: start;
  gap: 8px;
}

.nr-reset-button {
  min-height: 32px;
  padding: 6px 9px;
  white-space: nowrap;
}

@media (min-width: 921px) {
  .nr-candidate-header {
    cursor: grab;
    touch-action: none;
  }

  .nr-candidate-panel.is-panel-dragging .nr-candidate-header {
    cursor: grabbing;
  }
}

.nr-candidate-header p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nr-layout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  align-items: end;
}

.nr-span-2 {
  grid-column: span 2;
}

.nr-select-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.nr-select-field span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.nr-select-field select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  color: #101827;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.nr-text-button,
.nr-icon-button {
  min-height: 38px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(17, 27, 40, 0.44);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.nr-text-button {
  padding: 8px 10px;
}

.nr-selected-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 0;
}

.nr-special-event-banner {
  width: fit-content;
  max-width: min(100%, 340px);
  margin: 0 auto 10px;
  padding: 6px 12px;
  color: #ffecec;
  border: 1px solid rgba(255, 130, 130, 0.56);
  border-radius: 999px;
  background: rgba(120, 12, 12, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 14px rgba(255, 80, 80, 0.24);
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}

.nr-special-event-banner[hidden] {
  display: none;
}

.nr-special-event-banner-header {
  justify-self: start;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 4px 10px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nr-filter-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 36, 0.42);
  font-size: 12px;
  font-weight: 900;
}

.nr-filter-chip button {
  width: 20px;
  height: 20px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.nr-candidate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: center;
}

.nr-candidate {
  position: relative;
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nr-candidate img {
  max-width: 56px;
  max-height: 48px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.62));
}

.nr-candidate-count {
  position: absolute;
  right: 3px;
  bottom: 2px;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(11, 16, 24, 0.8);
  font-size: 10px;
  font-weight: 900;
}

.nr-candidate.is-selected,
.nr-candidate:hover,
.nr-candidate:focus-visible {
  border-color: rgba(255, 226, 111, 0.85);
  background: rgba(255, 226, 111, 0.12);
  outline: none;
}

.nr-filter-drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 8px;
}

.nr-filter-drawer summary {
  min-height: 32px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.nr-mini-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 6px 0 9px;
}

.nr-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.nr-category {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 900;
}

.nr-summary {
  display: grid;
  gap: 6px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
}

.nr-summary div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
}

.nr-summary dt {
  color: rgba(255, 255, 255, 0.63);
  font-weight: 900;
}

.nr-summary dd {
  min-width: 0;
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.nr-choice-panel {
  position: absolute;
  z-index: 34;
  top: 190px;
  left: max(20px, calc(50% - 490px));
  width: min(430px, calc(100% - 40px));
  max-height: min(60dvh, 520px);
  padding: 16px;
  border-radius: 5px;
  overflow: auto;
}

.nr-map-choice-panel {
  left: auto;
  right: max(20px, calc(50% - 520px));
}

.nr-dlc-fab {
  position: absolute;
  right: 16px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 34;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nr-dlc-fab[hidden] {
  display: none;
}

.nr-dlc-fab.is-active {
  filter: drop-shadow(0 0 14px rgba(172, 92, 255, 0.7));
}

.nr-dlc-fab__ring {
  position: absolute;
  inset: 0;
  border: 5px solid rgba(172, 92, 255, 0.96);
  border-radius: inherit;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 18px rgba(172, 92, 255, 0.46);
}

.nr-dlc-fab__preview {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background-size: 300%;
  background-position: 50% 50%;
  filter: saturate(0.94) contrast(1.08);
}

.nr-dlc-fab__label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(72, 32, 112, 0.92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translateX(-50%);
}

.nr-dlc-map-panel {
  top: auto;
  left: auto;
  right: max(12px, calc(50% - 520px));
  bottom: 190px;
  width: min(320px, calc(100% - 24px));
}

.nr-label-toggle {
  position: absolute;
  left: 16px;
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  z-index: 29;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  color: #fff;
  border: 1px solid rgba(110, 120, 146, 0.88);
  border-radius: 999px;
  background: rgba(18, 22, 34, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.nr-label-toggle.is-on {
  border-color: rgba(241, 199, 78, 0.9);
  box-shadow:
    0 0 0 1px rgba(241, 199, 78, 0.26),
    0 12px 28px rgba(0, 0, 0, 0.34);
}

.nr-label-toggle__text {
  font-size: 12px;
  font-weight: 900;
}

.nr-label-toggle__state {
  min-width: 32px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(72, 82, 110, 0.86);
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
}

.nr-label-toggle.is-on .nr-label-toggle__state {
  background: rgba(241, 199, 78, 0.96);
  color: #16110a;
}

.nr-timer-toggle {
  position: absolute;
  left: 16px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  color: #fff;
  border: 1px solid rgba(110, 120, 146, 0.88);
  border-radius: 999px;
  background: rgba(18, 22, 34, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.nr-timer-toggle.is-active {
  border-color: rgba(241, 199, 78, 0.95);
  box-shadow:
    0 0 0 1px rgba(241, 199, 78, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(241, 199, 78, 0.26);
}

.nr-timer-toggle__text {
  font-size: 12px;
  font-weight: 900;
}

.nr-timer-toggle__state {
  min-width: 32px;
  padding: 3px 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  border-radius: 999px;
  background: rgba(72, 82, 110, 0.86);
}

.nr-timer-toggle.is-active .nr-timer-toggle__state {
  color: #16110a;
  background: rgba(241, 199, 78, 0.96);
}

.nr-mobile-ui-toggle {
  position: absolute;
  left: 16px;
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  color: #fff;
  border: 1px solid rgba(110, 120, 146, 0.88);
  border-radius: 999px;
  background: rgba(18, 22, 34, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.nr-mobile-ui-toggle.is-on {
  border-color: rgba(137, 208, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(137, 208, 255, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.34);
}

.nr-mobile-ui-toggle__text {
  font-size: 12px;
  font-weight: 900;
}

.nr-mobile-ui-toggle__state {
  min-width: 32px;
  padding: 3px 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  border-radius: 999px;
  background: rgba(72, 82, 110, 0.86);
}

.nr-mobile-ui-toggle.is-on .nr-mobile-ui-toggle__state {
  color: #08111f;
  background: rgba(137, 208, 255, 0.96);
}

.nr-map-timer {
  position: absolute;
  left: 16px;
  top: 96px;
  z-index: 42;
  width: min(420px, max(340px, calc(50vw - 500px)));
  padding: 14px;
  color: #fff;
  border: 2px solid rgba(74, 205, 232, 0.95);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(74, 205, 232, 0.12), transparent 42%),
    rgba(0, 0, 0, 0.9);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(74, 205, 232, 0.22);
}

.nr-map-timer[hidden] {
  display: none;
}

.nr-map-timer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.nr-map-timer__title {
  color: #9ee9ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nr-map-timer__picker-button {
  min-height: 30px;
  padding: 4px 10px;
  color: #fff;
  border: 1px solid rgba(110, 120, 146, 0.9);
  border-radius: 8px;
  background: rgba(24, 32, 48, 0.92);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.nr-map-timer__display {
  display: block;
  width: 100%;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 72px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.nr-map-timer__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.nr-map-timer__controls button {
  min-height: 38px;
  color: #fff;
  border: 1px solid rgba(110, 120, 146, 0.9);
  border-radius: 8px;
  background: rgba(18, 24, 36, 0.95);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.nr-map-timer__controls button:hover,
.nr-map-timer__controls button:focus-visible,
.nr-map-timer__picker-button:hover,
.nr-map-timer__picker-button:focus-visible {
  border-color: rgba(241, 199, 78, 0.95);
  outline: none;
}

.nr-map-timer.is-running {
  border-color: rgba(241, 199, 78, 0.95);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(241, 199, 78, 0.35),
    0 0 26px rgba(241, 199, 78, 0.24);
}

.nr-map-timer.is-warning .nr-map-timer__display {
  color: #ff4f69;
  text-shadow:
    0 4px 14px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(255, 79, 105, 0.55);
}

.nr-timer-picker-panel {
  left: 16px;
  top: 284px;
  z-index: 43;
  width: min(360px, calc(100% - 32px));
}

.nr-timer-wheel {
  position: relative;
  display: grid;
  gap: 8px;
  max-height: 240px;
  padding: 12px 8px;
  overflow-y: auto;
  border-radius: 14px;
  background:
    linear-gradient(to bottom, rgba(10, 14, 22, 0.98), rgba(10, 14, 22, 0.66) 18%, rgba(10, 14, 22, 0.66) 82%, rgba(10, 14, 22, 0.98));
  scroll-snap-type: y mandatory;
}

.nr-timer-wheel__item {
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  color: #fff;
  border: 1px solid rgba(110, 120, 146, 0.8);
  border-radius: 12px;
  background: rgba(22, 28, 42, 0.9);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.nr-timer-wheel__item strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.nr-timer-wheel__item.is-active {
  border-color: rgba(241, 199, 78, 0.95);
  background: rgba(72, 62, 28, 0.95);
  box-shadow: 0 0 0 1px rgba(241, 199, 78, 0.35);
}

.nr-timer-wheel__item.is-auto-current:not(.is-active) {
  border-color: rgba(74, 205, 232, 0.9);
  box-shadow: 0 0 0 1px rgba(74, 205, 232, 0.28);
}

.nr-timer-free {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.nr-timer-free[hidden] {
  display: none;
}

.nr-timer-free label {
  display: grid;
  gap: 4px;
  color: #dbe7ff;
  font-size: 11px;
  font-weight: 900;
}

.nr-timer-free input {
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  color: #111827;
  border: 1px solid rgba(110, 120, 146, 0.9);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 900;
}

.nr-timer-free button {
  min-height: 36px;
  padding: 0 10px;
  color: #111827;
  border: 1px solid rgba(241, 199, 78, 0.95);
  border-radius: 8px;
  background: rgba(241, 199, 78, 0.95);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.nr-crystal-fab {
  position: absolute;
  right: 104px;
  bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  border: 1px solid rgba(160, 130, 255, 0.9);
  border-radius: 999px;
  background: rgba(18, 22, 34, 0.95);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.nr-crystal-fab[hidden] {
  display: none;
}

.nr-crystal-fab.is-active {
  box-shadow:
    0 0 0 2px rgba(180, 150, 255, 0.75),
    0 0 20px rgba(120, 90, 255, 0.6);
}

.nr-crystal-fab__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #08111f;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 150, 255, 0.95), rgba(80, 50, 160, 0.85));
}

.nr-crystal-fab__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(53, 200, 255, 0.76));
}

.nr-crystal-fab__label {
  font-size: 12px;
  font-weight: 900;
}

.nr-crystal-panel {
  top: auto;
  left: auto;
  right: max(12px, calc(50% - 520px));
  bottom: 202px;
  width: min(340px, calc(100% - 24px));
}

.nr-crystal-section {
  margin-top: 12px;
}

.nr-crystal-title {
  margin-bottom: 6px;
  color: #f1c74e;
  font-size: 12px;
  font-weight: 900;
}

.nr-crystal-seed-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nr-crystal-seed-buttons button,
.nr-crystal-reset {
  min-height: 34px;
  color: #fff;
  border: 1px solid rgba(110, 120, 146, 0.85);
  border-radius: 10px;
  background: rgba(22, 28, 42, 0.95);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.nr-crystal-seed-buttons button.is-active {
  border-color: rgba(241, 199, 78, 0.95);
  box-shadow: 0 0 0 1px rgba(241, 199, 78, 0.45);
}

.nr-crystal-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nr-crystal-candidate-chip {
  padding: 5px 8px;
  color: #fff;
  border-radius: 999px;
  background: rgba(40, 48, 72, 0.95);
  font-size: 11px;
  font-weight: 900;
}

.nr-choice-panel[hidden] {
  display: none;
}

.nr-choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 32px;
}

.nr-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.nr-choice-card {
  min-height: 62px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 16, 25, 0.32);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.nr-choice-card.is-active {
  border-color: #ffe26f;
  background: rgba(255, 226, 111, 0.14);
}

.nr-choice-token {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(27, 47, 77, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 20px;
}

.nr-map-choice-grid {
  grid-template-columns: 1fr;
}

.nr-map-choice-grid .nr-choice-token {
  border-radius: 8px;
  background-size: cover;
}

.nr-zoom-controls {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 33;
  display: inline-flex;
  gap: 8px;
}

.nr-icon-button {
  width: 38px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.nr-language-switch {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 35;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  color: var(--nr-home-ink);
  border: 1px solid var(--nr-home-line);
  border-radius: 14px;
  background: rgba(18, 22, 34, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.nr-language-label {
  padding: 0 3px 0 5px;
  color: var(--nr-home-muted);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nr-language-options {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--nr-home-line);
  border-radius: 11px;
  background: var(--nr-home-panel-2);
}

.nr-language-switch button {
  min-width: 50px;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--nr-home-muted);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.nr-language-switch button:hover,
.nr-language-switch button:focus-visible {
  color: var(--nr-home-ink);
  border-color: var(--nr-home-line);
  background: var(--nr-home-panel-3);
  outline: none;
}

.nr-language-switch button.is-active {
  color: var(--nr-home-bg);
  border-color: rgba(241, 199, 78, 0.72);
  background:
    linear-gradient(135deg, var(--nr-home-gold), var(--nr-home-accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.nr-mobile-only,
.nr-sheet-handle {
  display: none;
}

.nr-poi {
  --poi-size: 32px;
  position: absolute;
  z-index: 3;
  width: var(--poi-size);
  min-width: var(--poi-size);
  height: var(--poi-size);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: auto;
  cursor: pointer;
}

.nr-poi img {
  display: block;
  width: var(--poi-size);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.nr-poi[data-category="spawn"] {
  width: auto;
  min-width: 0;
  height: auto;
  border: 0;
  background: transparent;
}

.nr-poi[data-category="spawn"] img {
  width: 60px;
  height: auto;
  max-width: none;
  filter:
    drop-shadow(0 4px 6px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 8px rgba(63, 170, 164, 0.35));
}

.nr-poi.is-selected-spawn img {
  width: 74px;
}

.nr-poi.is-selected-spawn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 86px;
  height: 86px;
  border: 3px solid rgba(255, 233, 122, 0.95);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 122, 0.12), rgba(255, 233, 122, 0.02) 68%, transparent 72%);
  box-shadow:
    0 0 0 5px rgba(22, 121, 109, 0.22),
    0 0 20px rgba(255, 226, 111, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.nr-poi.is-filter-selected {
  border: 3px solid #ffe26f;
  background: rgba(255, 226, 111, 0.12);
  box-shadow: 0 0 18px rgba(255, 226, 111, 0.75);
}

.nr-poi.is-crystal {
  --poi-size: 48px;
  z-index: 24;
  width: 48px;
  min-width: 48px;
  height: 48px;
}

.nr-poi.is-crystal .nr-poi-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 8px rgba(190, 160, 255, 0.45));
  pointer-events: none;
}

.nr-poi.is-crystal.is-checkpoint {
  width: 58px;
  min-width: 58px;
  height: 58px;
}

.nr-poi.is-crystal.is-checkpoint .nr-poi-icon {
  width: 54px;
  height: 54px;
}

.nr-poi.is-crystal.is-unique::after {
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
  height: 8px;
  border: 2px solid rgba(241, 199, 78, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(241, 199, 78, 0.82);
}

.nr-poi.is-crystal.is-dimmed {
  opacity: 0.35;
  filter: grayscale(0.8);
}

.nr-poi.is-crystal.is-selected {
  z-index: 30;
}

.nr-poi.is-crystal.is-selected .nr-poi-icon {
  filter:
    drop-shadow(0 0 0 rgba(255, 255, 255, 0))
    drop-shadow(0 0 12px rgba(241, 199, 78, 0.95))
    drop-shadow(0 0 22px rgba(241, 199, 78, 0.7));
}

.nr-poi.is-crystal .nr-poi-label {
  top: calc(50% + 23px);
  min-width: 62px;
  background: rgba(34, 20, 62, 0.88);
  font-size: 11px;
}

.nr-question-marker {
  width: 60px;
  height: 60px;
  color: rgba(255, 255, 255, 0.8);
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(30, 33, 32, 0.45);
  font-size: 42px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 2px 4px #000;
}

.nr-poi-label {
  position: absolute;
  top: calc(50% + var(--poi-size) * 0.34);
  left: 50%;
  width: max-content;
  min-width: 42px;
  max-width: 150px;
  padding: 3px 6px;
  color: #fff;
  border-radius: 4px;
  background: rgba(5, 6, 9, 0.82);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.38);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.14;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  transform: translateX(-50%);
  white-space: normal;
  pointer-events: none;
}

.nr-poi[data-category="night"] .nr-poi-label {
  background: rgba(97, 70, 214, 0.88);
}

.nr-poi[data-category="spawn"] .nr-poi-label {
  background: rgba(20, 95, 82, 0.88);
}

.nr-poi[data-category="event"] .nr-poi-label {
  background: rgba(141, 52, 45, 0.88);
}

.nr-labels-hidden .nr-poi-label {
  display: none;
}

.nr-orb-glyph {
  overflow: hidden;
  border-radius: 50%;
}

.nr-orb-glyph img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.nr-finder-status {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(9, 14, 22, 0.38);
}

.nr-finder-status.is-complete {
  border-color: rgba(255, 226, 111, 0.45);
  background: rgba(255, 226, 111, 0.1);
}

.nr-finder-status h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.nr-finder-status p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.nr-finder-status strong {
  color: #ffe26f;
  font-size: 15px;
  line-height: 1.35;
}

.nr-selected-count {
  color: #fff !important;
  font-size: 15px !important;
}

.nr-filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nr-spawn-shortcut {
  min-height: 64px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.nr-spawn-shortcut img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nr-spawn-shortcut span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nr-choice-token {
  overflow: hidden;
}

.nr-choice-token.is-image {
  background: rgba(10, 16, 25, 0.72);
}

.nr-choice-token.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nr-choice-token.is-map {
  border-radius: 8px;
  background-size: cover;
}

.nr-filter-poi {
  width: 62px;
  min-width: 62px;
  height: 62px;
}

.nr-church-marker {
  width: 44px;
  height: 44px;
  display: block;
  border: 3px solid rgba(151, 213, 255, 0.98);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 40%, rgba(236, 250, 255, 0.95), rgba(91, 169, 255, 0.88) 42%, rgba(34, 93, 168, 0.95) 76%);
  box-shadow:
    0 0 0 4px rgba(30, 92, 160, 0.42),
    0 0 18px rgba(80, 178, 255, 0.75),
    0 4px 10px rgba(0, 0, 0, 0.55);
}

.nr-poi.is-church-poi .nr-poi-label {
  display: none;
}

.nr-filter-poi.is-church-choice:hover .nr-church-marker,
.nr-filter-poi.is-church-choice:focus-visible .nr-church-marker {
  box-shadow:
    0 0 0 5px rgba(255, 226, 111, 0.5),
    0 0 22px rgba(95, 195, 255, 0.92),
    0 4px 10px rgba(0, 0, 0, 0.55);
}

.nr-filter-poi.is-question-choice:hover .nr-question-marker,
.nr-filter-poi.is-question-choice:focus-visible .nr-question-marker {
  border-color: #ffe26f;
  color: #ffe26f;
}

.nr-poi-type-menu {
  position: absolute;
  z-index: 150;
  width: 320px;
  padding: 16px;
  color: #fff;
  border: 1px solid rgba(255, 226, 111, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(43, 58, 82, 0.99), rgba(20, 29, 43, 0.99));
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.56),
    0 0 20px rgba(241, 199, 78, 0.16);
  transform: translate(-50%, calc(-100% - 30px));
  pointer-events: auto;
}

.nr-poi-type-menu::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: rgba(20, 29, 43, 0.99);
  border-right: 1px solid rgba(255, 226, 111, 0.38);
  border-bottom: 1px solid rgba(255, 226, 111, 0.38);
  transform: translateX(-50%) rotate(45deg);
}

.nr-poi-type-menu h3 {
  margin: 0 0 13px;
  color: #ffe26f;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}

.nr-poi-type-menu div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nr-poi-type-menu button {
  min-height: 94px;
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 11px 9px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 13, 21, 0.52);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.nr-poi-type-menu button:hover,
.nr-poi-type-menu button:focus-visible {
  border-color: rgba(255, 226, 111, 0.78);
  background: rgba(255, 226, 111, 0.13);
  outline: none;
}

.nr-poi-type-menu img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.62));
}

.nr-map-footer {
  display: none;
}

@media (max-width: 920px) {
  .nightreign-map-page {
    height: calc(100dvh - 56px);
    overscroll-behavior: none;
  }

  .nr-map-shell {
    min-height: 0;
    overscroll-behavior: none;
  }

  .nr-map-viewport {
    touch-action: none;
    overscroll-behavior: none;
    cursor: grab;
  }

  .nr-map-viewport.is-dragging {
    cursor: grabbing;
  }

  .nr-map-world {
    transform-origin: 0 0;
  }

  /* Mobile-only absolute tiles:
     Avoid sub-pixel seams caused by CSS grid fractions + transform scaling on mobile browsers.
     Do not apply this to desktop because the current desktop map rendering is already correct. */
  .nr-map-tiles {
    display: block;
    overflow: hidden;
  }

  .nr-map-tile {
    position: absolute;
    left: var(--nr-tile-left);
    top: var(--nr-tile-top);
    width: var(--nr-tile-width);
    height: var(--nr-tile-height);
    margin: 0;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .nr-top-status {
    top: 8px;
    font-size: 13px;
  }

  .nr-nightlord-orb {
    top: 18px;
    left: 12px;
    width: 108px;
    height: 108px;
  }

  .nr-map-orb {
    top: 18px;
    right: 12px;
    width: 108px;
    height: 108px;
  }

  .nr-orb-ring {
    border-width: 6px;
  }

  .nr-orb-glyph {
    font-size: 46px;
  }

  .nr-orb-caption {
    bottom: -24px;
    font-size: 10px;
  }

  .nr-shift-orbs {
    display: none !important;
  }

  .nr-shift-button {
    width: 42px;
    height: 42px;
  }

  .nr-guide-panel {
    left: 8px;
    right: 8px;
    top: 158px;
    bottom: auto;
    width: auto;
    max-height: calc(100dvh - 248px);
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
    overflow: auto;
  }

  .nr-guide-icon {
    width: 52px;
    height: 52px;
  }

  .nr-guide-bubble {
    padding: 14px;
    border-radius: 16px;
  }

  .nr-guide-panel h1 {
    font-size: 17px;
  }

  .nr-guide-list li {
    font-size: 13px;
  }

  .nr-candidate-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 58dvh;
    padding: 10px 14px 18px;
    border-radius: 16px 16px 0 0;
    overflow-x: hidden;
    transform: translateY(calc(100% - 84px));
    transition: transform 180ms ease;
  }

  .nr-candidate-panel > *,
  .nr-layout-row,
  .nr-layout-row > *,
  .nr-selected-filters,
  .nr-candidate-grid,
  .nr-filter-drawer,
  .nr-summary {
    min-width: 0;
    max-width: 100%;
  }

  .nr-candidate-panel.is-open {
    transform: translateY(0);
  }

  .nr-candidate-panel.has-special-event:not(.is-open) {
    transform: translateY(calc(100% - 116px));
  }

  .nr-sheet-handle {
    display: block;
    width: 44px;
    height: 32px;
    margin: -4px auto 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nr-sheet-handle::before {
    content: "\2303";
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
  }

  .nr-candidate-panel.is-open .nr-sheet-handle::before {
    content: "\00d7";
    font-size: 26px;
  }

  .nr-candidate-header {
    align-items: start;
    margin-top: 0;
    padding-top: 2px;
  }

  .nr-candidate-header p {
    margin: 0 0 3px;
    font-size: 11px;
    line-height: 1.1;
  }

  .nr-candidate-panel h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
  }

  .nr-special-event-banner {
    margin-bottom: 8px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .nr-special-event-banner-header {
    margin: 1px 0 0;
    padding: 4px 9px;
    font-size: 11px;
  }

  .nr-church-marker {
    width: 42px;
    height: 42px;
  }

  .nr-poi-type-menu {
    width: min(348px, 94vw);
    padding: 14px;
  }

  .nr-poi-type-menu button {
    min-height: 92px;
    font-size: 13px;
  }

  .nr-poi-type-menu img {
    width: 50px;
    height: 50px;
  }

  .nr-desktop-control {
    display: none;
  }

  .nr-layout-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nr-select-field select,
  .nr-text-button {
    min-width: 0;
    max-width: 100%;
  }

  .nr-candidate-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
  }

  .nr-candidate {
    min-height: 62px;
  }

  .nr-choice-panel,
  .nr-map-choice-panel {
    top: 138px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 48dvh;
  }

  .nr-dlc-fab {
    right: 12px;
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .nr-label-toggle {
    left: 12px;
    bottom: calc(136px + env(safe-area-inset-bottom, 0px));
    min-height: 36px;
    padding: 7px 10px;
  }

  .nr-timer-toggle {
    left: 12px;
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    min-height: 36px;
    padding: 7px 10px;
  }

  .nr-map-timer {
    top: 10px;
    left: 8px;
    right: 8px;
    z-index: 80;
    width: auto;
    padding: 10px 12px;
    border-width: 2px;
    border-radius: 6px;
    background:
      linear-gradient(145deg, rgba(74, 205, 232, 0.12), transparent 42%),
      rgba(0, 0, 0, 0.92);
  }

  .nr-map-timer__header {
    margin-bottom: 4px;
  }

  .nr-map-timer__title {
    font-size: 10px;
  }

  .nr-map-timer__picker-button {
    min-height: 28px;
    font-size: 11px;
  }

  .nr-map-timer__display {
    font-size: 66px;
  }

  .nr-map-timer__controls {
    gap: 6px;
    margin-top: 8px;
  }

  .nr-map-timer__controls button {
    min-height: 34px;
    font-size: 12px;
  }

  .nr-timer-picker-panel {
    top: 220px;
    left: 10px;
    right: 10px;
    z-index: 90;
    width: auto;
  }

  .nr-timer-wheel {
    max-height: 220px;
  }

  .nr-timer-free {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .nr-timer-free button {
    grid-column: 1 / -1;
  }

  .nr-dlc-map-panel {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 190px;
    width: min(320px, calc(100% - 20px));
  }

  .nr-crystal-fab {
    right: 96px;
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .nr-crystal-panel {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 210px;
    width: min(340px, calc(100% - 20px));
    max-height: 44dvh;
  }

  .nr-poi.is-crystal {
    --poi-size: 54px;
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .nr-poi.is-crystal .nr-poi-icon {
    width: 50px;
    height: 50px;
  }

  .nr-poi.is-crystal.is-checkpoint {
    width: 64px;
    min-width: 64px;
    height: 64px;
  }

  .nr-poi.is-crystal.is-checkpoint .nr-poi-icon {
    width: 60px;
    height: 60px;
  }

  .nr-choice-card {
    min-height: 58px;
  }

  .nr-zoom-controls {
    top: 138px;
    right: 10px;
    bottom: auto;
  }

  .nr-language-switch {
    top: 44px;
    left: 50%;
    right: auto;
    bottom: auto;
    z-index: 40;
    padding: 4px;
    transform: translateX(-50%);
  }

  .nr-language-label {
    display: none;
  }

  .nr-language-switch button {
    min-width: 44px;
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .nr-map-timer__display {
    font-size: 58px;
  }
}

@media (max-width: 767px) {
  .nr-label-toggle,
  .nr-timer-toggle,
  .nr-mobile-ui-toggle {
    z-index: 82;
  }

  .nr-label-toggle {
    bottom: calc(178px + env(safe-area-inset-bottom, 0px));
  }

  .nr-timer-toggle {
    bottom: calc(136px + env(safe-area-inset-bottom, 0px));
  }

  .nr-mobile-ui-toggle {
    display: inline-flex;
    left: 12px;
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }

  .nr-mobile-ui-hidden .nr-nightlord-orb,
  .nr-mobile-ui-hidden .nr-map-orb,
  .nr-mobile-ui-hidden .nr-dlc-fab,
  .nr-mobile-ui-hidden .nr-crystal-fab,
  .nr-mobile-ui-hidden .nr-shift-orbs,
  .nr-mobile-ui-hidden .nr-zoom-controls,
  .nr-mobile-ui-hidden .nr-language-switch,
  .nr-mobile-ui-hidden .nr-top-status {
    display: none !important;
  }

  .nr-mobile-ui-hidden .nr-choice-panel,
  .nr-mobile-ui-hidden .nr-guide-panel {
    display: none !important;
  }
}

@media (min-width: 921px) and (max-width: 1540px) {
  .nr-map-timer {
    top: 214px;
    width: 340px;
  }

  .nr-map-timer__display {
    font-size: 62px;
  }

  .nr-timer-picker-panel {
    top: 404px;
  }
}

@media (max-width: 920px) {
  .nr-timer-priority-mode .nr-nightlord-orb,
  .nr-timer-priority-mode .nr-map-orb,
  .nr-timer-priority-mode .nr-shift-orbs,
  .nr-timer-priority-mode .nr-dlc-fab,
  .nr-timer-priority-mode .nr-crystal-fab,
  .nr-timer-priority-mode .nr-zoom-controls,
  .nr-timer-priority-mode .nr-language-switch,
  .nr-timer-priority-mode .nr-top-status,
  .nr-timer-priority-mode .nr-mobile-ui-toggle,
  .nr-timer-priority-mode .nr-guide-panel {
    display: none !important;
  }

  .nr-timer-priority-mode .nr-choice-panel:not(.nr-timer-picker-panel) {
    display: none !important;
  }

  .nr-timer-priority-mode .nr-map-timer:not([hidden]),
  .nr-timer-priority-mode .nr-timer-picker-panel:not([hidden]) {
    display: block !important;
  }
}

@media (min-width: 768px) and (max-width: 1180px) and (pointer: coarse) {
  /* Tablet-only tile correction:
     desktop keeps CSS Grid, phones keep the existing mobile absolute values. */
  .nr-map-tiles {
    display: block;
    overflow: hidden;
    contain: paint;
  }

  .nr-map-tile {
    position: absolute;
    left: var(--nr-tablet-tile-left, var(--nr-tile-left));
    top: var(--nr-tablet-tile-top, var(--nr-tile-top));
    width: var(--nr-tablet-tile-width, var(--nr-tile-width));
    height: var(--nr-tablet-tile-height, var(--nr-tile-height));
    margin: 0;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .nr-map-world {
    transform-origin: 0 0;
  }
}

.nr-tablet-map-mode .nr-map-tiles {
  display: block;
  overflow: hidden;
  contain: paint;
}

.nr-tablet-map-mode .nr-map-tile {
  display: none !important;
}

.nr-tablet-map-mode .nr-map-full {
  display: block;
}

@media (max-width: 520px) {
  .nr-candidate-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nr-spawn-shortcut {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 5px;
    padding: 7px 5px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }

  .nr-spawn-shortcut img {
    width: 30px;
    height: 30px;
  }

  .nr-spawn-shortcut span {
    width: 100%;
  }

  .nr-choice-grid {
    grid-template-columns: 1fr;
  }

  .nr-category-list {
    grid-template-columns: 1fr;
  }

  .nr-crystal-seed-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nr-summary div {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}
