/* ===== NOTICE / LIVRE ===== */

.notice-book {
  position: absolute;
  top: 58px;
  left: 12px;
  z-index: 40;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #2a2a2a;
  border: 1px solid #555;
  border-radius: 8px;
  color: #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice-book:hover {
  background: #3a3a3a;
  border-color: #c9a227;
  color: #f0d78c;
}
.notice-book svg {
  width: 22px;
  height: 22px;
  display: block;
}

.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 620;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.notice-overlay.visible {
  display: flex;
}

.notice-box {
  width: min(1080px, 96vw);
  height: min(860px, 92vh);
  background:
    linear-gradient(180deg, rgba(28, 22, 16, 0.97), rgba(16, 13, 10, 0.98));
  border: 1px solid #6a5420;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(201, 162, 39, 0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #eee;
  font-family: Georgia, serif;
}

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #44361a;
  background: linear-gradient(180deg, #2a2218, #1c1812);
  flex-shrink: 0;
}
.notice-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 2px;
  color: #f0d78c;
}
.notice-head-sub {
  font-size: 12px;
  color: #9a8a68;
  letter-spacing: 0.6px;
  margin-top: 3px;
}
.notice-close {
  padding: 8px 16px;
  background: #2a2218;
  border: 1px solid #c9a227;
  color: #f0d78c;
  border-radius: 6px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 13px;
}
.notice-close:hover {
  background: #3a3218;
  border-color: #e8c84a;
}

.notice-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
  flex: 1;
}

.notice-toc {
  border-right: 1px solid #3a2e16;
  padding: 14px 10px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.18);
}
.notice-toc button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: #cfc3a4;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 13px;
  margin-bottom: 4px;
  outline: none;
}
.notice-toc button:hover {
  color: #eee;
  background: rgba(42, 34, 24, 0.55);
}
.notice-toc button:focus {
  outline: none;
  border-color: transparent;
}
.notice-toc button.is-active {
  color: #f0d78c;
  border-color: #c9a227;
  background: #2a2218;
}
.notice-toc .toc-sub {
  padding-left: 18px;
  font-size: 12px;
  color: #9a8a68;
}

.notice-content {
  overflow-y: auto;
  padding: 18px 26px 32px;
  scrollbar-width: thin;
  scrollbar-color: #c9a227 rgba(0, 0, 0, 0.3);
}
.notice-content::-webkit-scrollbar { width: 8px; }
.notice-content::-webkit-scrollbar-thumb {
  background: #c9a227;
  border-radius: 4px;
}

.notice-content h3 {
  color: #f0d78c;
  font-size: 20px;
  margin: 22px 0 10px;
  letter-spacing: 0.8px;
}
.notice-content h3:first-child { margin-top: 4px; }
.notice-content h4 {
  color: #e8c84a;
  font-size: 16px;
  margin: 16px 0 8px;
}
.notice-content p,
.notice-content li {
  font-size: 14.5px;
  line-height: 1.55;
  color: #ddd;
}
.notice-content ul,
.notice-content ol {
  margin: 0 0 12px 20px;
}
.notice-content strong { color: #f0d78c; }

.notice-callout {
  background: rgba(42, 34, 24, 0.85);
  border: 1px solid #5a4620;
  border-left: 3px solid #c9a227;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0 14px;
  color: #e6d9b4;
  font-size: 14px;
  line-height: 1.5;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}
.icon-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1612;
  border: 1px solid #444;
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  font-size: 13px;
  color: #eee;
}
.icon-chip img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 13.5px;
}
.notice-table th,
.notice-table td {
  border: 1px solid #3d3424;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.notice-table th {
  background: #2a2218;
  color: #f0d78c;
}
.notice-table td { color: #ddd; }

.step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
}
.step-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: start;
  background: rgba(26, 22, 16, 0.7);
  border: 1px solid #3a3224;
  border-radius: 8px;
  padding: 8px 10px;
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #c9a227;
  color: #f0d78c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background: #2a2218;
}
.step-item b { color: #f0d78c; }

@media (max-width: 780px) {
  .notice-body { grid-template-columns: 1fr; }
  .notice-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-right: none;
    border-bottom: 1px solid #3a2e16;
    max-height: 120px;
  }
  .notice-toc button { width: auto; }
}
