/* LCS 공통 스타일
   디자인 방향: LCS 공식 배너 — 로열 블루 배경, 우승컵의 시안 발광, 주황 빛기둥 포인트,
   흰색 굵은 제목과 흰 알약·흰 테두리 유리 상자. Pretendard 글꼴.
   색·간격·모서리 값은 아래 :root 변수만 바꾸면 사이트 전체에 반영된다. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  /* 배경·면 (로열 블루) */
  --bg: #050e27;
  --bg-2: #081536;
  --panel: #0b1b44;
  --panel-2: #10245a;
  --panel-3: #16306f;
  --glass: rgba(14, 34, 86, .62);
  --border: rgba(130, 175, 255, .16);
  --border-2: rgba(150, 195, 255, .3);
  /* 글자 */
  --text: #f4f8ff;
  --text-dim: #a5b8de;
  --text-faint: #6d82b2;
  /* 포인트 색: 블루·시안(우승컵 발광), 주황(빛기둥) */
  --accent: #2f86ff;
  --accent-2: #1fc8ff;
  --cyan: #45dcff;
  --accent-soft: rgba(47, 134, 255, .17);
  --cyan-soft: rgba(69, 220, 255, .14);
  --gold: #ffb24a;          /* 이름은 gold 지만 배너의 주황 빛기둥 색 */
  --gold-2: #f0861f;
  --gold-soft: rgba(255, 178, 74, .15);
  --red: #ff6b7a;
  --green: #3ddc97;
  --blue-side: #4f8cff;
  --red-side: #ff5f6d;
  /* 모양 */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 6, 30, .35);
  --shadow-lg: 0 30px 80px rgba(0, 5, 25, .6);
  --glow: 0 0 0 1px rgba(69, 220, 255, .25), 0 0 32px rgba(69, 220, 255, .18);
  --ring: 0 0 0 3px rgba(69, 200, 255, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1180px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(900px 520px at 50% -14%, rgba(31, 200, 255, .2), transparent 62%),
    radial-gradient(700px 600px at -8% 30%, rgba(255, 150, 60, .07), transparent 60%),
    radial-gradient(800px 700px at 108% 40%, rgba(47, 134, 255, .14), transparent 60%),
    linear-gradient(180deg, #071437 0%, var(--bg) 520px);
  background-color: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.005em;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;        /* 한글을 단어 단위로 줄바꿈 */
  overflow-wrap: break-word;   /* 긴 주소·영문은 넘치면 끊기 */
}
/* 은은한 격자 무늬 (위쪽만) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 180, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 75%);
}
/* 배너의 빛기둥: 왼쪽 주황, 오른쪽 시안 (넓은 화면에서만) */
body::after {
  content: ""; position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 170, 70, .55) 30%, rgba(255, 170, 70, .15) 75%, transparent 100%) left 3vw top / 2px 100% no-repeat,
    linear-gradient(180deg, transparent 0%, rgba(69, 220, 255, .6) 25%, rgba(69, 220, 255, .15) 75%, transparent 100%) right 3vw top / 2px 100% no-repeat;
  filter: drop-shadow(0 0 6px rgba(69, 220, 255, .5));
  opacity: .55;
}
@media (max-width: 1320px) { body::after { display: none; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(31, 200, 255, .38); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(150, 195, 255, .25); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- 상단 메뉴 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 14, 39, .7);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
          backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(150, 195, 255, .1);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 178, 74, .45), rgba(69, 220, 255, .55), transparent);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: .02em; flex-shrink: 0; }
.brand-text { color: #fff; text-shadow: 0 0 18px rgba(69, 220, 255, .35); }
/* 육각형 로고: 흰·시안 테 + 로열 블루 속, 푸른 발광 */
.brand-mark {
  position: relative; isolation: isolate;
  width: 36px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #ffffff, #8fe9ff 45%, #2f86ff);
  color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: .02em;
  filter: drop-shadow(0 0 8px rgba(69, 220, 255, .55));
}
.brand-mark::before {
  content: ""; position: absolute; inset: 2px; z-index: -1;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: radial-gradient(circle at 50% 28%, #2a64d8, #0a1f5c 72%);
}
.nav-links { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  position: relative; padding: 9px 13px; border-radius: 10px; color: var(--text-dim); font-weight: 650; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.nav-links a.auction-link { color: var(--gold); }
.nav-links a.admin-link { color: var(--cyan); }
@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-inner { gap: 14px; }
  .nav-links a { padding: 9px 9px; font-size: 13.5px; }
  .nav-links a.active::after { left: 9px; right: 9px; }
}

/* 상단 공지 배너 (관리자 화면에서 켬) */
.site-notice { border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(47, 134, 255, .22), rgba(69, 220, 255, .12)); }
.site-notice.warn { background: linear-gradient(90deg, rgba(255, 178, 74, .22), rgba(255, 107, 122, .1)); }
.site-notice.event { background: linear-gradient(90deg, rgba(69, 220, 255, .2), rgba(255, 178, 74, .16)); }
.sn-inner {
  max-width: var(--max); margin: 0 auto; padding: 9px 20px; display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 650; color: #fff;
}
.sn-text { flex: 1; min-width: 0; white-space: pre-line; }
.sn-link { color: var(--cyan); font-weight: 750; white-space: nowrap; }
.site-notice.warn .sn-link { color: var(--gold); }
.sn-maint { font-size: 11.5px; color: var(--gold); background: var(--gold-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.sn-close { padding: 2px 8px; font-size: 13px; background: transparent; border-color: transparent; color: var(--text-dim); }
.sn-close:hover { color: #fff; border-color: var(--border-2); }
@media (max-width: 640px) { .sn-inner { padding: 8px 14px; flex-wrap: wrap; } .sn-text { flex-basis: calc(100% - 60px); } }
.nav-admin { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.admin-badge {
  font-size: 10.5px; font-weight: 800; color: var(--gold); background: var(--gold-soft);
  border: 1px solid rgba(255, 178, 74, .4); padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap;
}
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav-inner { gap: 12px; padding: 0 14px; }
  .nav-toggle { display: inline-flex; padding: 7px 10px; font-size: 17px; background: transparent; border-color: var(--border); }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 2px;
    padding: 10px 14px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border-2); border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links { display: flex; animation: drop .18s var(--ease); }
  .nav-links a { padding: 11px 12px; }
  .nav-links a.active { background: var(--accent-soft); }
  .nav-links a.active::after { display: none; }
  .nav-inner .spacer-m { flex: 1; }
}
@media (max-width: 520px) { .brand-text { display: none; } }

main { max-width: var(--max); width: 100%; margin: 0 auto; padding: 30px 20px 64px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 32px; font-weight: 850; letter-spacing: -.025em; line-height: 1.2; margin-top: 10px; text-shadow: 0 0 24px rgba(69, 220, 255, .18); }
.page-head p { color: var(--text-dim); margin-top: 6px; }
/* 배너의 흰 테두리 알약 느낌 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #fff; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- 카드·패널 (유리 상자) ---------- */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .01) 140px), var(--glass);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 16px; }
.grid > .panel + .panel { margin-top: 0; }
.panel-title {
  font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-left: 3px solid var(--cyan); padding-left: 10px; line-height: 1.3;
}
.panel-title .more { font-size: 12px; font-weight: 650; color: var(--text-dim); transition: color .15s; }
.panel-title .more:hover { color: var(--cyan); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 버튼·입력 ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; font-family: inherit; font-weight: 700;
  cursor: pointer; white-space: nowrap; letter-spacing: -.005em;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .12s var(--ease), filter .15s;
}
button:hover, .btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(150, 210, 255, .5); }
button:active, .btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #3d9bff, #1f6fe8); border-color: #4aa6ff; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 22px rgba(31, 120, 240, .4), 0 0 18px rgba(69, 220, 255, .2);
}
.btn-primary:hover { background: linear-gradient(180deg, #52a8ff, #2a7cf2); border-color: #7cc4ff; }
/* 배너의 흰 알약 버튼 (짙은 남색 글자) */
.btn-gold {
  background: #fff; border-color: #fff; color: #0a1f5c;
  box-shadow: 0 8px 22px rgba(0, 10, 40, .35), 0 0 22px rgba(255, 255, 255, .15);
}
.btn-gold:hover { background: #e9f6ff; border-color: #e9f6ff; }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); background: rgba(255, 107, 122, .1); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .07); border-color: transparent; }
button:disabled, button:disabled:hover { opacity: .45; cursor: not-allowed; transform: none; filter: none; }

input, select, textarea {
  width: 100%;
  background: rgba(3, 10, 32, .55); border: 1px solid var(--border-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
select option { background: var(--bg-2); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:hover, select:hover, textarea:hover { border-color: rgba(150, 210, 255, .5); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: var(--ring); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
label.field { display: block; }
label.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; }
label.field > span .req { color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---------- 배지 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 750; padding: 3px 9px;
  border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text-dim); white-space: nowrap; line-height: 1.5;
}
.badge.open { background: rgba(61, 220, 151, .15); color: var(--green); }
.badge.closed { background: rgba(165, 184, 222, .13); color: var(--text-dim); }
.badge.ongoing { background: var(--cyan-soft); color: var(--cyan); }
.badge.done { background: rgba(255, 255, 255, .1); color: #dfe8ff; }
.badge.pending { background: var(--gold-soft); color: var(--gold); }
.badge.approved { background: rgba(61, 220, 151, .15); color: var(--green); }
.badge.rejected { background: rgba(255, 107, 122, .15); color: var(--red); }
.badge.t-tournament { background: var(--gold-soft); color: var(--gold); }
.badge.t-naejeon { background: var(--accent-soft); color: #8cc0ff; }
.badge.t-scrim { background: var(--cyan-soft); color: var(--cyan); }
.badge.t-etc { background: rgba(255, 255, 255, .08); color: var(--text-dim); }

/* ---------- 목록·표 ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
  transition: border-color .15s, transform .15s var(--ease), background .15s, box-shadow .15s;
}
a.list-item:hover, button.list-item:hover { border-color: rgba(69, 220, 255, .5); background: rgba(69, 220, 255, .07); transform: translateY(-1px); box-shadow: 0 0 20px rgba(69, 220, 255, .1); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .sub { font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.date-chip {
  width: 50px; flex-shrink: 0; text-align: center; border-radius: 12px; padding: 5px 0 6px;
  background: linear-gradient(180deg, rgba(69, 220, 255, .16), rgba(47, 134, 255, .06)); border: 1px solid rgba(69, 220, 255, .3);
}
.date-chip .m { font-size: 10px; color: var(--cyan); font-weight: 800; letter-spacing: .02em; }
.date-chip .d { font-size: 19px; font-weight: 850; line-height: 1.1; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; font-weight: 750; color: var(--text-faint); letter-spacing: .04em;
  padding: 8px 10px; border-bottom: 1px solid var(--border-2); white-space: nowrap;
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover td { background: rgba(69, 220, 255, .04); }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank {
  width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 850;
  background: rgba(255, 255, 255, .08); color: var(--text-dim); font-variant-numeric: tabular-nums;
}
.rank.r1 { background: linear-gradient(160deg, #ffe08a, #d79a2b); color: #241500; box-shadow: 0 0 14px rgba(255, 200, 80, .45); }
.rank.r2 { background: linear-gradient(160deg, #ffffff, #9fb3d6); color: #0f1a33; box-shadow: 0 0 12px rgba(200, 220, 255, .3); }
.rank.r3 { background: linear-gradient(160deg, #f5b585, #a8643a); color: #1f1208; }
.form-dots { display: inline-flex; gap: 3px; }
.form-dots i { width: 17px; height: 17px; border-radius: 5px; font-style: normal; font-size: 9px; font-weight: 850; display: grid; place-items: center; }
.form-dots i.W { background: rgba(61, 220, 151, .17); color: var(--green); }
.form-dots i.L { background: rgba(255, 107, 122, .16); color: var(--red); }

.progress { height: 6px; background: rgba(3, 10, 32, .6); border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.progress > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--cyan)); box-shadow: 0 0 10px rgba(69, 220, 255, .5); }

.empty { text-align: center; color: var(--text-dim); padding: 30px 12px; font-size: 13px; }
.empty.loading::before {
  content: ""; display: block; width: 22px; height: 22px; margin: 0 auto 10px; border-radius: 50%;
  border: 2px solid var(--border-2); border-top-color: var(--cyan); animation: spin .8s linear infinite;
}
.muted { color: var(--text-dim); }
.small { font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.pre { white-space: pre-wrap; word-break: break-word; }

/* ---------- 모달 ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 100; background: rgba(2, 8, 26, .66);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; animation: fade .15s ease;
}
.modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 140px), #0c1e4c;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg);
  animation: pop .2s var(--ease);
}
.modal.wide { max-width: 820px; }
.modal h2 { font-size: 19px; font-weight: 850; letter-spacing: -.02em; margin-bottom: 16px; }

/* ---------- 알림 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  background: rgba(12, 30, 76, .97); border: 1px solid rgba(255, 255, 255, .22); padding: 11px 18px 11px 14px; border-radius: 999px;
  font-weight: 650; box-shadow: var(--shadow-lg); animation: rise .22s var(--ease);
}
.toast::before { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.toast.ok::before { content: "✓"; background: rgba(61, 220, 151, .2); color: var(--green); }
.toast.error { border-color: rgba(255, 107, 122, .55); }
.toast.error::before { content: "!"; background: rgba(255, 107, 122, .2); color: var(--red); }

/* ---------- 하단 ---------- */
footer.site-footer { border-top: 1px solid var(--border); color: var(--text-faint); font-size: 12px; margin-top: auto; background: rgba(3, 9, 28, .5); }
.site-footer .foot-inner { max-width: var(--max); margin: 0 auto; padding: 26px 20px 30px; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-weight: 700; }
.site-footer .foot-brand .brand-mark { width: 26px; height: 28px; font-size: 8px; }
.site-footer .since { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--text-faint); margin-left: 4px; }
.site-footer .foot-links { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.site-footer .foot-links a { color: var(--text-dim); }
.site-footer .foot-links a:hover { color: var(--cyan); }
.site-footer .legal { flex-basis: 100%; line-height: 1.6; }
body:has(.chat-fab) .site-footer .foot-inner { padding-right: 96px; }   /* 오른쪽 아래 💬 버튼에 가리지 않게 */

/* ---------- 경기 결과 카드 ---------- */
.match { background: rgba(255, 255, 255, .035); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.match + .match { margin-top: 10px; }
.match-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.match-meta b { color: var(--text); }
.match-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }.match .vs {
  align-self: center; font-size: 11px; font-weight: 900; color: #fff; letter-spacing: .06em;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #1d4fb8, #0a1f5c); border: 1px solid rgba(69, 220, 255, .45); box-shadow: 0 0 14px rgba(69, 220, 255, .35);
}
.side { border-radius: 14px; padding: 10px 12px; border: 1px solid var(--border); }
.side.blue { background: linear-gradient(180deg, rgba(79, 140, 255, .18), rgba(79, 140, 255, .03) 60%), rgba(8, 22, 60, .7); border-top: 3px solid var(--blue-side); }
.side.red { background: linear-gradient(180deg, rgba(255, 95, 109, .16), rgba(255, 95, 109, .03) 60%), rgba(8, 22, 60, .7); border-top: 3px solid var(--red-side); }
.side.lose { opacity: .66; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 6px; }
.side-name { font-weight: 850; }
.side .result { font-size: 10.5px; font-weight: 900; letter-spacing: .06em; color: var(--text-faint); }
.side.win .result { color: var(--green); text-shadow: 0 0 10px rgba(61, 220, 151, .5); }
.side-players { list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.side-players li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.side-players .pos { font-size: 10px; font-weight: 850; color: var(--text-faint); width: 30px; flex-shrink: 0; }
.side-players .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-players .champ { margin-left: auto; font-size: 11px; color: var(--text-dim); }
.side-players .kda { margin-left: auto; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.side-players .champ + .kda { margin-left: 4px; }
.match-shot { color: var(--cyan); font-weight: 700; }
.side-players .mvp { font-size: 9px; font-weight: 900; color: #0a1f5c; background: #fff; border-radius: 4px; padding: 1px 4px; }
.match-memo { margin-top: 10px; font-size: 12px; color: var(--text-dim); }
@media (max-width: 560px) {
  .match-body { grid-template-columns: minmax(0, 1fr); }
  .match .vs { justify-self: center; }
}

/* ---------- 회원·티어 ---------- */
.nav-user { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.nav-user:hover { background: rgba(255, 255, 255, .06); border-color: var(--border); }
.nav-user-name { font-weight: 700; font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .nav-user-name { display: none; } }
.avatar {
  border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-block; vertical-align: middle;
  background: radial-gradient(circle at 50% 30%, #2a64d8, #0a1f5c); box-shadow: 0 0 0 1px rgba(150, 210, 255, .25);
}
.avatar-empty { background: radial-gradient(circle at 50% 30%, #2a64d8, #0a1f5c); }
.champ-icon { border-radius: 10px; flex-shrink: 0; background: var(--panel-3); display: inline-block; vertical-align: middle; object-fit: cover; box-shadow: 0 0 0 1px rgba(150, 210, 255, .2); }
.profile-icon { border-radius: 16px; background: var(--panel-3); }
a.plink { color: inherit; border-bottom: 1px dotted var(--text-faint); transition: color .15s, border-color .15s; }
a.plink:hover { color: var(--cyan); border-color: var(--cyan); }

.tier {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 3px 9px;
  border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .08); color: var(--text-dim);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.tier b { font-weight: 700; opacity: .8; }
.tier.t-iron { background: rgba(125, 110, 105, .22); color: #c2b2ad; }
.tier.t-bronze { background: rgba(176, 110, 72, .22); color: #e6a276; }
.tier.t-silver { background: rgba(160, 172, 186, .2); color: #d2dae4; }
.tier.t-gold { background: rgba(245, 196, 81, .18); color: #f7cf68; }
.tier.t-platinum { background: rgba(60, 190, 170, .18); color: #6be3cd; }
.tier.t-emerald { background: rgba(40, 200, 110, .18); color: #4ce496; }
.tier.t-diamond { background: rgba(100, 150, 255, .22); color: #a3c0ff; }
.tier.t-master { background: rgba(170, 90, 230, .22); color: #d3a3ff; }
.tier.t-grandmaster { background: rgba(230, 70, 80, .22); color: #ff8b93; }
.tier.t-challenger { background: linear-gradient(90deg, rgba(69, 220, 255, .28), rgba(245, 196, 81, .28)); color: #fff0c2; }

/* ---------- 채팅 (채팅 페이지 + 오른쪽 아래 채팅 창 공용) ---------- */
.chat-list { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.chat-day { display: flex; align-items: center; gap: 10px; margin: 16px 16px 6px; color: var(--text-faint); font-size: 11px; font-weight: 750; }
.chat-day::before, .chat-day::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.chat-msg { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 6px 16px 2px; transition: background .1s; }
.chat-msg.grouped { padding-top: 1px; }
.chat-msg:hover { background: rgba(255, 255, 255, .035); }
.chat-msg.compact { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 5px 12px 1px; }
.chat-msg.compact.grouped { padding-top: 0; }
.chat-av { display: flex; justify-content: center; }
.chat-hover-time { visibility: hidden; font-size: 10px; color: var(--text-faint); padding-top: 3px; white-space: nowrap; }
.chat-msg:hover .chat-hover-time { visibility: visible; }
.chat-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.3; }
.chat-hold { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; color: var(--text-dim); background: rgba(255, 255, 255, .06); white-space: nowrap; }
.chat-hold.up { color: #ff8a98; background: rgba(255, 90, 110, .12); }
.chat-hold.down { color: #7fb6ff; background: rgba(79, 157, 255, .12); }
.chat-name { font-weight: 800; font-size: 14px; }
a.chat-name:hover { text-decoration: underline; }
.compact .chat-name { font-size: 13px; }
.chat-time { font-size: 11px; color: var(--text-faint); }
.chat-text { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; color: #dde8ff; }
.compact .chat-text { font-size: 13px; }
.chat-text a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.chat-del {
  position: absolute; top: 2px; right: 10px; display: none; padding: 2px 7px; font-size: 11px;
  background: var(--panel-3); border-color: var(--border-2); color: var(--text-dim);
}
.chat-del:hover { color: var(--red); border-color: var(--red); }
.chat-msg:hover .chat-del { display: inline-flex; }
.chat-composer {
  display: flex; gap: 8px; align-items: flex-end; background: rgba(3, 10, 32, .55); border: 1px solid var(--border-2);
  border-radius: 16px; padding: 6px 6px 6px 12px; transition: border-color .15s, box-shadow .15s;
}
.chat-composer:focus-within { border-color: var(--cyan); box-shadow: var(--ring); }
.chat-composer textarea { border: none; background: none; padding: 7px 0; min-height: 0; resize: none; max-height: 140px; line-height: 1.45; box-shadow: none; }
.chat-composer textarea:focus, .chat-composer textarea:hover { border: none; box-shadow: none; }
.chat-composer textarea:disabled { cursor: not-allowed; }

.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  font-size: 23px; padding: 0; border: 1px solid rgba(255, 255, 255, .3);
  background: radial-gradient(circle at 35% 30%, #59b4ff, #1f6fe8 70%);
  box-shadow: 0 12px 30px rgba(10, 60, 180, .55), 0 0 26px rgba(69, 220, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.chat-fab:hover { background: radial-gradient(circle at 35% 30%, #6dc0ff, #2a7cf2 70%); transform: translateY(-2px); }
.chat-dot { position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }
.chat-dot:not([hidden])::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--gold); animation: ping 1.6s ease-out infinite; }
.chat-mini {
  position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 370px; height: 500px; max-height: calc(100vh - 100px);
  display: flex; flex-direction: column; background: rgba(9, 24, 64, .97); border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(69, 220, 255, .12); overflow: hidden; animation: pop .18s var(--ease); transform-origin: bottom right;
}
.chat-mini header { display: flex; align-items: center; gap: 6px; padding: 9px 8px 9px 14px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .03); }
.chat-mini .chat-list { flex: 1; padding: 4px 0; }
.chat-mini .chat-composer { margin: 8px; }
@media (max-width: 520px) {
  .chat-mini { right: 0; bottom: 0; width: 100%; height: 72vh; max-height: none; border-radius: 22px 22px 0 0; }
  .chat-fab { right: 14px; bottom: 14px; }
}

/* ---------- 움직임 ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes ping { from { opacity: .8; transform: scale(.6); } to { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
