:root {
  --tn-bg: rgba(232, 242, 255, .72);
  --tn-border: rgba(46, 125, 230, .30);
  --tn-shadow: 0 8px 24px rgba(20, 70, 140, .10);
  --tn-inset: inset 0 1px 0 rgba(255, 255, 255, .7);
  --tn-text: #1f3a5f;
  --tn-ico-bg: linear-gradient(135deg, #a9d0ff, #5aa2f0);
  --tn-ico-fg: #0b2a52;
}

html[data-bs-theme="dark"],
html[data-theme="dark"] {
  --tn-bg: rgba(24, 36, 56, .62);
  --tn-border: rgba(110, 170, 255, .26);
  --tn-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --tn-inset: inset 0 1px 0 rgba(255, 255, 255, .08);
  --tn-text: #d6e6ff;
  --tn-ico-bg: linear-gradient(135deg, #2f5a99, #4a85d6);
  --tn-ico-fg: #eef5ff;
}

.top-notice-wrap {
  margin-top: .5rem;
  margin-bottom: .25rem;
}

.top-notice {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem 1rem;
  border-radius: 1.25rem;
  background: var(--tn-bg);
  border: 1px solid var(--tn-border);
  box-shadow: var(--tn-shadow), var(--tn-inset);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top-notice { background: #e8f2ff; }
  html[data-bs-theme="dark"] .top-notice,
  html[data-theme="dark"] .top-notice { background: #182438; }
}

.top-notice__ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--tn-ico-bg);
  color: var(--tn-ico-fg);
  font-size: 1.1rem;
}

.top-notice__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--tn-text);
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .top-notice {
    gap: .7rem;
    padding: .65rem .85rem;
    border-radius: 1.1rem;
  }
  .top-notice__ico {
    align-self: flex-start;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  .top-notice__text { font-size: .82rem; }
}
