/* ── Top banner (visible on every page when notice is active) ── */
#server-notice-banner:empty {
  display: none;
}

.server-notice-banner {
  position: sticky;
  top: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #c25d10 0%, #8a3f08 100%);
  color: #fff8e6;
  border-bottom: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
}

.server-notice-banner-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
  color: #ffe28a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.server-notice-banner-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-notice-banner-msg {
  opacity: 0.95;
}

.server-notice-banner-countdown {
  flex-shrink: 0;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
  min-width: 60px;
  text-align: center;
}

/* ── Interstitial page ── */
.server-notice-page {
  max-width: 520px;
  margin: 40px auto;
  padding: 32px 28px;
  text-align: center;
}

.server-notice-page-icon {
  font-size: 3rem;
  color: #c25d10;
  margin-bottom: 16px;
}

.server-notice-page-title {
  margin: 0 0 12px 0;
  font-size: 1.5rem;
}

.server-notice-page-message {
  margin: 0 auto 24px auto;
  max-width: 420px;
  line-height: 1.4;
}

.server-notice-page-countdown {
  font-family: "Cinzel", serif;
  font-size: 2.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 14px 20px;
  display: inline-block;
  letter-spacing: 3px;
  min-width: 180px;
}

.server-notice-page-hint {
  margin: 8px 0 24px 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.server-notice-page-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.server-notice-page-btn {
  min-width: 160px;
}

.server-notice-page-fineprint {
  margin: 16px auto 0 auto;
  font-size: 0.78rem;
  opacity: 0.65;
  max-width: 420px;
}

[data-server-notice-deadline-elapsed="true"] .server-notice-page-countdown {
  color: #c25d10;
}

/* ── Session takeover modal ── */
.takeover-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.takeover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.takeover-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  background: var(--panel-texture-url) center/cover, var(--panel-bg);
  color: var(--text);
  border: 2px solid var(--resource-panel-border);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.takeover-icon {
  font-size: 2.6rem;
  color: #c8960c;
  margin-bottom: 14px;
}

.takeover-title {
  margin: 0 0 12px 0;
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
}

.takeover-message {
  margin: 0 0 20px 0;
  line-height: 1.45;
  opacity: 0.9;
}

.takeover-btn {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(200, 150, 12, 0.9);
  background: rgba(200, 150, 12, 0.55);
  color: #2a1d00;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.takeover-btn:hover {
  background: rgba(200, 150, 12, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
