/* notice.css: the announcement banner (js/ui/notice.js) */
#notice {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 22, 24, 0.62);
  backdrop-filter: blur(3px);
  animation: nt-fade 0.25s ease-out;
}
@keyframes nt-fade {
  from {
    opacity: 0;
  }
}
#notice .nt-box {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: linear-gradient(180deg, #fcf5e3, #efe0bd);
  color: #382112;
  border: 3px solid #4f2f1a;
  border-radius: 12px;
  box-shadow: 0 0 0 2px #e8be5e inset, 0 14px 40px rgba(0, 0, 0, 0.55);
  animation: nt-pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes nt-pop {
  from {
    transform: scale(0.9);
  }
}
#notice .nt-x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 2px solid #e8be5e;
  border-radius: 50%;
  background: rgba(44, 24, 12, 0.75);
  color: #fcf5e3;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
#notice .nt-banner {
  position: relative;
  aspect-ratio: var(--nt-ratio, 760 / 386);
  background: #12402e center / cover no-repeat;
  border-radius: 9px 9px 0 0;
  border-bottom: 3px solid #4f2f1a;
}
#notice .nt-tag {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, #e8be5e, #c98f28);
  color: #2c180c;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
#notice .nt-body {
  padding: 14px 18px 16px;
}
#notice h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #7a4b10;
}
#notice p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}
#notice .nt-heroes {
  display: grid;
  grid-template-columns: repeat(var(--nt-n, 4), calc((100% - 24px) / 4));
  justify-content: center;
  gap: 8px;
  margin: 4px 0 12px;
}
#notice .nt-hero {
  margin: 0;
  padding: 6px 4px 4px;
  border: 2px solid #b88a4a;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 35%, #fff8e6, #e6d3a6);
  text-align: center;
}
#notice .nt-spr {
  display: block;
  width: 60%;
  margin: 0 auto;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
#notice figcaption {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #4f2f1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#notice .nt-hide {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6f523a;
  cursor: pointer;
  user-select: none;
}
#notice .nt-hide input {
  width: 16px;
  height: 16px;
  accent-color: #1d8a64;
}
#notice .nt-acts {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}
#notice .nt-acts button {
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
#notice .nt-go {
  border: 2px solid #156649;
  background: linear-gradient(180deg, #2fb07f, #1d8a64);
  color: #fff;
}
#notice .nt-ok {
  border: 2px solid #b88a4a;
  background: #fbf3de;
  color: #4f2f1a;
}
/* short screens (landscape phones, small laptops): a lower banner keeps the buttons on screen */
@media (max-height: 720px) {
  #notice .nt-banner {
    aspect-ratio: auto;
    height: 26vh;
    background-position: center 30%;
  }
  #notice .nt-spr {
    width: 44%;
  }
}
@media (max-width: 480px) {
  #notice figcaption {
    font-size: 10px;
  }
  #notice .nt-body {
    padding: 10px 12px 12px;
  }
  #notice h2 {
    font-size: 17px;
  }
  #notice .nt-heroes {
    grid-template-columns: repeat(var(--nt-n, 4), calc((100% - 15px) / 4));
    gap: 5px;
  }
}
/* several notices: one tab each, above the banner */
#notice .nt-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 50px 0 12px;
  border-bottom: 3px solid #4f2f1a;
  overflow-x: auto;
}
#notice .nt-tabs button {
  flex: none;
  padding: 6px 14px;
  border: 2px solid #b88a4a;
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  background: #efe0bd;
  color: #6b4a2a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
#notice .nt-tabs button[aria-selected='true'] {
  background: linear-gradient(180deg, #e8be5e, #c98f28);
  border-color: #4f2f1a;
  color: #2c180c;
}
#notice .nt-tabs + .nt-page .nt-banner {
  border-radius: 0;
}
#notice .nt-body {
  padding-bottom: 0;
}
#notice .nt-foot {
  padding: 0 18px 16px;
}
@media (max-width: 480px) {
  #notice .nt-foot {
    padding: 0 12px 12px;
  }
  #notice .nt-tabs button {
    padding: 5px 10px;
    font-size: 13px;
  }
}
#notice .nt-go[hidden] { display: none; }
