
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --gold: #d5b77d;
  --bg: #0a0c10;
  --panel: #151922;
  --line: #34302a;
  --text: #e8e6e2;
  --muted: #a6a5a1;
} 

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body { 
  margin: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(5, 8, 15, 0.30) 0%,
      rgba(5, 8, 15, 0.25) 45%,
      rgba(5, 8, 15, 0.75) 100%
    ),
    url('/aval-winter.png') center top / cover fixed no-repeat;
  background-color: #0a0c10;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0c0d11ed;
  border-bottom: 1px solid #40362a;
  backdrop-filter: blur(12px);
}

.bar {
  max-width: 1140px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
  white-space: nowrap;
}

.brand small {
  display: block;
  letter-spacing: 2px;
  font-size: 9px;
  color: #9b988f;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  font-size: 13px;
  color: #c9c5bb;
}

nav a:hover,
nav a.active {
  color: var(--gold);
}

main {
  max-width: 1140px;
  margin: auto;
  padding: 40px 22px 90px;
}

.hero {
  text-align: center;
  padding: 90px 10px 85px;
  border-bottom: 1px solid #302c27;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 6px;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 78px);
  letter-spacing: 12px;
  margin: 17px 0 10px;
  color: #ead8b4;
  text-shadow: 0 4px 45px #9e77383b;
}

.hero p {
  color: #bcb5a8;
  font-size: 15px;
}

.tag {
  display: inline-block;
  margin-top: 25px;
  border: 1px solid #6e5c3e;
  border-radius: 30px;
  padding: 9px 18px;
  color: var(--gold);
  font-size: 12px;
}

.actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border: 1px solid #6b5737;
  background: #d5b77d;
  color: #17140e;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
}

.btn.secondary {
  background: transparent;
  color: var(--gold);
}

.section-title {
  font-size: 24px;
  color: #ead8b4;
  margin: 42px 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.card {
  border: 1px solid #36312b;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a1c22, #111318);
  padding: 24px;
  min-height: 138px;
}

.card h3 {
  margin: 0 0 9px;
  color: #e2c899;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: #aaa8a4;
  line-height: 1.8;
  font-size: 13px;
}

.card:hover {
  border-color: #9e8152;
}

.page-head {
  padding: 40px 0 25px;
  border-bottom: 1px solid #3a332a;
}

.page-head h1 {
  color: #ead8b4;
  font-size: 34px;
  margin: 0 0 8px;
}

.page-head p {
  color: #aaa;
  margin: 0;
}

.panel {
  margin-top: 24px;
  background: #14171d;
  border: 1px solid #34302a;
  border-radius: 10px;
  padding: 27px;
  line-height: 1.9;
  color: #c9c5bd;
}

.panel h2 {
  font-size: 19px;
  color: #e3c48e;
  margin: 0 0 14px;
}

.panel p {
  margin: 10px 0;
}

.notice {
  border-bottom: 1px solid #333;
  padding: 15px 0;
}

.notice:last-child {
  border: 0;
}

.muted {
  color: #9b9a97;
  font-size: 12px;
}

.pill {
  display: inline-block;
  color: #e3c48e;
  background: #342b1d;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 8px;
}

.footer {
  border-top: 1px solid #2e2c29;
  text-align: center;
  padding: 25px;
  color: #8f8c86;
  font-size: 12px;
}

.warn {
  border-left: 3px solid #a78954;
  padding: 13px 16px;
  background: #29251d;
  color: #d4c6ac;
  font-size: 13px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== 반응형 레이아웃 ===== */

@media (max-width: 900px) {
  .bar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 13px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  main {
    padding: 25px 16px 60px;
  }

  .grid,
  .two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    letter-spacing: 4px;
  }

  nav a {
    font-size: 12px;
  }

  .card {
    min-height: 100px;
  }
}

/* ===== 기존 채팅 레이아웃 유지 ===== */

@media (max-width: 1499px) {
  #avar-visit-stats {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(100% - 32px, 500px) !important;
    margin: 18px auto 0;
  }

  #avar-chat {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(100% - 32px, 500px) !important;
    max-width: 500px !important;
    height: 410px;
    margin: 12px auto 25px;
  }
}

/* ===== 아발서버 BGM 겨울 테마 ===== */
#aval-bgm-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;

  background: rgba(17, 30, 49, 0.82);
  border: 1px solid #a6b9cc;
  color: #d9f4ff;

  border-radius: 24px;
  padding: 10px 16px;
  font: 600 12px 'Noto Sans KR', sans-serif;
  cursor: pointer;

  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

/* BGM ON 상태 */
#aval-bgm-button.playing {
  background: rgba(25, 49, 76, 0.88);
  color: #d9f4ff;
  border-color: #a6b9cc;
}

/* 마우스 올렸을 때 */
#aval-bgm-button:hover {
  background: rgba(40, 76, 110, 0.92);
  border-color: #d9f4ff;
  box-shadow: 0 0 12px rgba(150, 215, 255, 0.3);
}

/* ===== 아발서버 겨울 테마 색상 ===== */

/* 상단 메뉴 */
.top {
  background: rgba(15, 27, 44, 0.88);
  border-bottom: 1px solid #71869d;
}

/* 아래 메뉴 카드 */
.card {
  background: rgba(17, 30, 49, 0.88);
  border: 1px solid #71869d;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

.card:hover {
  border-color: #d5b77d;
}

/* 안내 페이지 박스 */
.panel {
  background: rgba(17, 30, 49, 0.90);
  border: 1px solid #71869d;
}

/* 메인 구분선 */
.hero {
  border-bottom-color: rgba(166, 185, 204, 0.45);
}

/* 보조 버튼 */
.btn.secondary {
  background: rgba(17, 30, 49, 0.82);
  border-color: #a6b9cc;
  color: #f1dfb9;
}

/* ===== 아발서버 메인 제목 겨울 테마 ===== */

/* AVAL SERVER 제목 */
.hero h1 {
  color: #f3eadb;
  font-size: clamp(44px, 7vw, 76px);
  letter-spacing: 8px;
  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(200, 220, 255, 0.25);
}

/* 제목 아래 설명 */
.hero p {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-shadow:
    0 2px 5px #000,
    0 0 12px #000,
    0 0 20px rgba(0, 0, 0, 0.8);
}

/* CLASSIC LINEAGE 2.0 */
.hero .eyebrow {
  color: #f1dfb9;
  text-shadow: 0 2px 8px #000;
}

/* ===== AVAL SERVER 얼음빛 타이틀 ===== */
.hero h1 {
  color: #d9f4ff;
  font-weight: 800;
  letter-spacing: 8px;
  text-shadow:
    0 2px 3px #102b46,
    0 0 12px rgba(107, 211, 255, 0.85),
    0 0 32px rgba(68, 172, 255, 0.55);
}

/* ===== 2차 오픈 예정 강조 ===== */
.hero .tag {
  color: #ffe6a5;
  font-size: 14px;
  font-weight: 800;
  background: rgba(9, 22, 39, 0.90);
  border: 1px solid #e4bd6e;
  padding: 11px 22px;
  box-shadow:
    0 0 12px rgba(255, 207, 108, 0.30),
    inset 0 0 10px rgba(255, 207, 108, 0.08);
  text-shadow: 0 1px 5px #000;
}

/* ===== 2차 오픈 예정 겨울 테마 통일 ===== */
.hero .tag {
  background: rgba(17, 30, 49, 0.82);
  border: 1px solid #a6b9cc;
  color: #ffe6a5;
  border-radius: 5px;
  box-shadow: none;
  text-shadow: 0 1px 5px #000;
}

/* ===== 클라이언트 다운로드 강조 버튼 ===== */
.hero .btn:not(.secondary) {
  background: #245d85;
  border: 1px solid #8cdbff;
  color: #ffffff;
  font-weight: 800;
  box-shadow:
    0 0 15px rgba(93, 195, 255, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

/* 마우스 올리면 밝은 얼음빛 */
.hero .btn:not(.secondary):hover {
  background: #347eac;
  border-color: #d9f4ff;
  box-shadow: 0 0 22px rgba(115, 210, 255, 0.7);
}

/* ===== 아발서버 채팅방 겨울 테마 ===== */

/* 방문자 현황 */
#avar-visit-stats {
  background: rgba(12, 24, 42, 0.90) !important;
  border: 1px solid #91abc4 !important;
  color: #e4f3ff !important;
}

/* 채팅방 전체 */
#avar-chat {
  background: rgba(12, 24, 42, 0.90) !important;
  border: 1px solid #91abc4 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

/* 채팅방 제목 */
#avar-chat .avar-chat-title {
  background: rgba(28, 53, 79, 0.95) !important;
  border-bottom: 1px solid #91abc4 !important;
  color: #d9f4ff !important;
}

/* 채팅 내용 */
#avar-chat-messages {
  background: rgba(9, 19, 35, 0.65) !important;
}

/* 채팅 입력 영역 */
#avar-chat .avar-chat-form {
  background: rgba(14, 28, 47, 0.92) !important;
  border-top: 1px solid #607d99 !important;
}

/* 닉네임 및 채팅 입력창 */
#avar-chat input {
  background: rgba(7, 17, 31, 0.92) !important;
  border: 1px solid #607d99 !important;
  color: #e4f3ff !important;
}

/* 전송 버튼 */
#avar-chat button {
  background: #245d85 !important;
  border: 1px solid #8cdbff !important;
  color: #ffffff !important;
}

/* 마우스 올렸을 때 */
#avar-chat button:hover {
  background: #347eac !important;
}
/* ===== 2차 오픈 예정 황금빛 반짝임 ===== */
.hero .tag {
  border: 1px solid #d9b76b;
  box-shadow:
    0 0 8px rgba(255, 205, 100, 0.35),
    inset 0 0 5px rgba(255, 205, 100, 0.12);

  animation: avalOpenGlow 3s ease-in-out infinite;
}

@keyframes avalOpenGlow {
  0%, 100% {
    border-color: #a6b9cc;
    box-shadow: 0 0 4px rgba(160, 210, 255, 0.2);
  }

  50% {
    border-color: #ffdc87;
    box-shadow:
      0 0 15px rgba(255, 205, 100, 0.65),
      inset 0 0 8px rgba(255, 205, 100, 0.18);
  }
}


/* ===== 아발서버 공지사항 펼치기 / 접기 ===== */

.aval-notice-board {
  padding: 8px 24px;
  background: rgba(10, 25, 45, 0.85);
  border: 1px solid #6987a6;
}

.aval-notice-item {
  border-bottom: 1px solid rgba(160, 195, 225, 0.25);
}

.aval-notice-item:last-child {
  border-bottom: none;
}

.aval-notice-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  color: #e4edf9;
  font-size: 15px;
}

.aval-notice-item summary::-webkit-details-marker {
  display: none;
}

.aval-notice-item summary:hover {
  color: #a9e2ff;
}

.aval-notice-arrow {
  margin-left: auto;
  color: #9dcff0;
  font-size: 22px;
  transition: transform 0.25s ease;
}

.aval-notice-item[open] .aval-notice-arrow {
  transform: rotate(180deg);
}

.aval-notice-content {
  padding: 5px 16px 24px;
  border-top: 1px solid rgba(160, 195, 225, 0.15);
  color: #d2dfec;
  line-height: 2;
  font-size: 14px;
}

.aval-notice-content strong {
  color: #ffe2a0;
}

/* ===== AVAL UPDATE BOARD : ICE THEME ===== */

.aval-update-intro {
  text-align: center;
  color: #b9cfe5;
  font-size: 13px;
  margin: 25px 0;
}

.aval-update-board {
  background: rgba(10, 25, 45, 0.86);
  border: 1px solid #6987a6;
  border-radius: 8px;
  overflow: hidden;
}

.aval-update-item {
  border-bottom: 1px solid rgba(160, 195, 225, 0.25);
}

.aval-update-item:last-child {
  border-bottom: none;
}

.aval-update-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.aval-update-item summary::-webkit-details-marker {
  display: none;
}

.aval-update-item summary:hover {
  background: rgba(65, 110, 155, 0.18);
}

.aval-update-arrow {
  color: #9edcff;
  font-size: 17px;
  transition: transform 0.25s ease;
}

.aval-update-item[open] .aval-update-arrow {
  transform: rotate(90deg);
}

.aval-update-heading {
  flex: 1;
  min-width: 0;
}

.aval-update-heading strong {
  display: block;
  color: #c5e8ff;
  font-size: 15px;
  margin-bottom: 4px;
}

.aval-update-heading small {
  display: block;
  color: #a2b5c8;
  font-size: 12px;
}

.aval-update-heading em {
  color: #80d2ff;
  font-style: normal;
  font-weight: 700;
}

.aval-update-done {
  color: #8bdfa4;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.aval-update-content {
  border-top: 1px solid rgba(160, 195, 225, 0.2);
  padding: 22px 18px;
  text-align: center;
  color: #e0eaf5;
  font-size: 14px;
  line-height: 2;
}

.aval-update-content p {
  margin: 3px 0;
}

.aval-update-content b {
  color: #ffe1a0;
}

.aval-update-content p + p:has(b) {
  margin-top: 12px;
}

.aval-update-reward {
  color: #8de1ad;
}

.aval-update-note {
  color: #aab9c8;
  font-size: 12px;
  margin-top: 14px !important;
}

.aval-update-footer {
  text-align: center;
  color: #a7b9cc;
  font-size: 12px;
  margin-top: 28px;
}

@media (max-width: 560px) {
  .aval-update-item summary {
    padding: 15px 12px;
    gap: 8px;
  }

  .aval-update-heading strong {
    font-size: 13px;
  }

  .aval-update-done {
    font-size: 10px;
  }
}

/* ===== 업데이트 페이지 번호 ===== */

#aval-update-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
}

#aval-update-pagination button {
  min-width: 38px;
  height: 38px;
  background: rgba(12, 30, 52, 0.85);
  color: #b9dfff;
  border: 1px solid #7294b6;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

#aval-update-pagination button:hover {
  background: #244b70;
}

#aval-update-pagination button.active {
  background: #36739e;
  color: #ffffff;
  border-color: #a6e3ff;
  box-shadow: 0 0 12px rgba(120, 200, 255, 0.35);
}


/* 아발서버 클라이언트 다운로드 버튼 빛 효과 */
.actions a.btn[href="download.html"] {
  border: 1px solid #8bdcff;
  animation: avalDownloadGlow 2.5s ease-in-out infinite;
}

@keyframes avalDownloadGlow {
  0%, 100% {
    border-color: #65bce9;
    box-shadow: 0 0 3px rgba(100, 200, 255, 0.25);
  }

  50% {
    border-color: #d4f4ff;
    box-shadow:
      0 0 9px rgba(100, 200, 255, 0.7),
      0 0 16px rgba(100, 200, 255, 0.25);
  }
}

/* 명예의 전당 랭킹 1위 황금빛 효과 */
.first .aval-hall-name {
  animation: avalHallGlow 2.5s ease-in-out infinite;
}

@keyframes avalHallGlow {
  0%, 100% {
    text-shadow: 0 0 3px rgba(255, 195, 80, 0.3);
  }

  50% {
    text-shadow:
      0 0 8px rgba(255, 215, 100, 0.9),
      0 0 16px rgba(255, 185, 50, 0.5);
  }
}

/* BGM 버튼 푸른빛 테두리 효과 */
#aval-bgm-button {
  animation: avalBgmGlow 2.5s ease-in-out infinite;
}

@keyframes avalBgmGlow {
  0%, 100% {
    border-color: #65bce9;
    box-shadow: 0 0 3px rgba(100, 200, 255, 0.25);
  }

  50% {
    border-color: #d4f4ff;
    box-shadow:
      0 0 8px rgba(100, 200, 255, 0.65),
      0 0 14px rgba(100, 200, 255, 0.2);
  }
}