.world-time-panel.ku-membership-surface,
#world-membership-notice {
  width: min(370px, calc(100vw - var(--world-edge-left) - var(--world-edge-right)));
  text-align: start;
}
.world-time-panel.ku-membership-surface .world-time-sources {
  border-color: var(--membership-line);
}
.world-time-panel.ku-membership-surface :is(.world-time-future, .world-time-sources, .world-time-sources summary, .world-time-sources a:hover, .world-time-stages button) {
  color: var(--membership-secondary);
}
.world-time-panel.ku-membership-surface .world-time-sources a {
  text-decoration-color: currentColor;
}
.world-time-panel.ku-membership-surface :is(.world-time-stages button[aria-pressed=true], #world-time-live) {
  color: var(--membership-ink);
  border-color: var(--membership-line);
  background: #d1c9bd22;
}
.world-time-panel.ku-membership-surface input[type=range] {
  background: linear-gradient(to right, #bfb5a5 0 var(--time-position), #cfcac457 var(--time-position) 100%);
}
.world-time-panel.ku-membership-surface input[type=range]::-webkit-slider-thumb {
  background: #bfb5a5;
  border-color: #e9e7e2;
  box-shadow: 0 0 0 4px #d1c9bd14;
}
.world-time-panel.ku-membership-surface input[type=range]::-moz-range-thumb {
  background: #bfb5a5;
  border-color: #e9e7e2;
  box-shadow: 0 0 0 4px #d1c9bd14;
}
.world-time .ku-membership-surface :is(button, input, summary, a):focus-visible {
  outline-color: var(--membership-focus);
}
.world-time-panel.ku-membership-surface .world-time-stages button::before { background: #c3bdb780; }
.world-time-panel.ku-membership-surface .world-time-stages button:disabled { opacity: .48; }
#time-membership {
  border-top: 1px solid var(--membership-line);
  margin-top: 9px;
  padding-top: 12px;
}
#time-membership h2,
#world-membership-notice h2 {
  margin: 0;
  font: 500 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
#time-membership p,
#world-membership-notice p {
  margin: 7px 0 0;
  color: var(--membership-secondary);
  font: 400 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#time-membership #time-membership-current {
  margin-top: 0;
}
.time-membership-epochs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 9px 0;
}
.time-membership-epochs figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 9px;
  background: #273d3b;
}
.time-membership-epochs img {
  display: block;
  width: 100%;
  height: clamp(48px, 8dvh, 68px);
  object-fit: cover;
}
.time-membership-epochs figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 8px 8px 4px;
  color: #fffdf4;
  background: linear-gradient(transparent, #172322cc);
  font-size: 11px;
  text-shadow: 0 1px 3px #172322;
}
.world-time .world-membership-link {
  min-height: 44px;
  padding: 0;
  color: var(--membership-ink);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #cfcac48a;
}
.world-membership-link::after { content: " →"; }
#world-membership-notice {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  max-height: calc(100dvh - var(--header-height) - var(--world-edge-bottom) - 60px);
  overflow-y: auto;
  padding: 14px 18px 6px;
  pointer-events: auto;
}
#world-membership-notice h2 { padding-inline-end: 28px; }
/* The narrow layout puts gesture hints and camera controls immediately above
   Time. Let the notice borrow that space until it is dismissed. */
@media (max-width: 700px), (max-height: 560px) {
  body:not([data-scale=micro]) .world-hud:has(#world-membership-notice:not([hidden])) .bottom-hud {
    visibility: hidden;
  }
}
#time-membership-close {
  margin: -5px -7px -5px auto;
  padding: 0;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--membership-secondary);
  font: 20px/1 sans-serif;
}
#world-membership-dismiss {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  color: var(--membership-secondary);
  background: transparent;
  font: 20px/1 sans-serif;
}
#world-membership-preview-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--membership-secondary);
}
