/* TF RANKED 웹사이트: 위 메뉴 + 큰 첫 화면 + 번갈아 놓인 소개 + 다운로드 띠 + 아래 정보. 색·글꼴은 모드와 같게 */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/assets/pretendard-regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("/assets/pretendard-semibold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/assets/pretendard-bold.woff2") format("woff2"); }

:root {
  --bg: #121418;
  --bg-2: #15171c;
  --surface: #1f2228;
  --surface-hi: #282c33;
  --surface-lo: #191b20;
  --field: #0f1115;
  --border: #2b2f37;
  --border-hi: #3b404a;
  --text: #f3f4f6;
  --text-2: #a6adb9;
  --text-3: #6c7380;
  --accent: #2f5bff;
  --accent-hi: #4a70ff;
  --accent-soft: rgba(47, 91, 255, .18);
  --danger: #e5484d;
  --warn: #e5b547;
  --bronze: #d98a5e; --silver: #dadde3; --gold: #f6c744; --emerald: #3fdc86; --diamond: #5fe3ea; --netherite: #c08cf0;
  --r: 12px;
  --r-ctl: 8px;
  --wrap: 1180px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  word-break: keep-all; overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
img { max-width: 100%; display: block; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ------------------------------------------------------------ 위 메뉴 */
.topnav {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 24px;
  transition: background .2s, box-shadow .2s;
}
.topnav.solid, .topnav.flat { background: rgba(18, 20, 24, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none !important; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.links { display: flex; gap: 22px; }
.links a { color: var(--text-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.links a:hover { color: var(--text); }
.links a[aria-current="page"] { color: var(--text); }
.topnav .menu-btn { display: none; margin-left: auto; }

/* 닉네임 검색 */
.search { position: relative; margin-left: auto; width: 240px; }
.search > .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; pointer-events: none; }
.search input { height: 38px; padding: 0 12px 0 34px; background: rgba(15, 17, 21, .75); border-color: rgba(255, 255, 255, .1); border-radius: 999px; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--border); z-index: 40;
}
.results li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-ctl); cursor: pointer; font-weight: 600; font-size: 14px; }
.results li[aria-selected="true"], .results li:hover { background: var(--surface-hi); }
.results li.none { color: var(--text-3); font-weight: 400; cursor: default; background: none; }
canvas.head { width: 26px; height: 26px; border-radius: 5px; image-rendering: pixelated; background: var(--surface-hi); flex: none; }

/* 상반신 3D (스킨으로 만든 상자들) */
.bust { position: relative; perspective: 700px; overflow: hidden; pointer-events: none; }
.bust .model { position: absolute; left: 50%; transform-style: preserve-3d; transform: rotateX(-12deg) rotateY(26deg); }
.bust .part, .bust .box { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.bust .head-part { transform: rotateY(10deg) rotateX(4deg); }
.bust .face { position: absolute; left: 0; top: 0; background-size: 100% 100%; image-rendering: pixelated; backface-visibility: hidden; }
.avatar-bust { width: 128px; height: 128px; }
.avatar-bust .model { top: 54px; }
.row-bust { width: 44px; height: 44px; margin: -10px 0 -10px -6px; }
.row-bust .model { top: 20px; }

/* 순위 칩: 비스듬한 칸, 1·2·3 등은 금·은·동 */
.rank {
  display: inline-flex; align-items: center; justify-content: flex-start; min-width: 52px; height: 34px; padding: 0 18px 0 12px;
  font-weight: 700; font-style: italic; font-size: 17px; color: var(--text-2);
  background: var(--surface-hi); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); border-radius: 6px 0 0 6px;
}
.rank.gold { background: #e8b931; color: #3a2800; }
.rank.silver { background: #c4cad4; color: #23272e; }
.rank.bronze { background: #d0844b; color: #2e1606; }
.rank-wrap { display: inline-flex; align-items: center; }
.board tr.medal-1 td:first-child { background: rgba(232, 185, 49, .16); }
.board tr.medal-2 td:first-child { background: rgba(196, 202, 212, .14); }
.board tr.medal-3 td:first-child { background: rgba(208, 132, 75, .16); }
.board td.rk { width: 120px; padding-top: 6px; padding-bottom: 6px; }
.chip { font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--surface-lo); border-radius: 5px; padding: 1px 7px; margin-left: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: -6px 0 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font: inherit; font-weight: 600; font-size: 15px; color: var(--text-3); background: none; border: 0; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text-2); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* 플레이어 카드 (가운데 정렬: 아바타 → 이름 → 티어 → 서버 → 순위 → 티어별 기록) */
dialog.player {
  width: min(500px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 28px 28px 24px; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog.player::backdrop { background: rgba(5, 6, 10, .65); backdrop-filter: blur(3px); }
dialog.player[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
dialog.player .close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--surface-hi); }
.p-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.p-avatar { width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2c313b, #171a20); box-shadow: 0 0 0 3px var(--border-hi); overflow: hidden; }
.p-card h2 { font-size: 28px; margin: 14px 0 8px; letter-spacing: -.01em; }
.p-pill { display: inline-flex; padding: 6px 16px; border-radius: 999px; background: var(--surface-lo); font-size: 15px; }
.p-pill .tico { width: 20px; height: 20px; }
.p-region { color: var(--text-2); font-weight: 600; margin-top: 10px; }
.p-links { margin-top: 12px; display: flex; gap: 8px; }
.i.xs { width: 13px; height: 13px; }
.p-label { align-self: stretch; text-align: left; font-weight: 700; font-size: 15px; color: var(--text-2); margin: 22px 0 8px; }
.p-pos, .p-tiers { align-self: stretch; display: grid; gap: 8px; }
.p-row { display: flex; align-items: center; gap: 12px; background: var(--surface-lo); border-radius: 8px; overflow: hidden; padding-right: 14px; text-align: left; }
.p-row .rank { border-radius: 0; height: 40px; }
.p-what { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.p-what .i { color: var(--warn); }
.p-what .faint { font-weight: 400; }
.p-sub { margin-left: auto; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.p-tier { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; background: var(--surface-lo); border-radius: 8px; padding: 10px 14px; text-align: left; }
.p-tier .orb { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-hi); display: grid; place-items: center; }
.p-tier .orb .tico { width: 24px; height: 24px; }
.p-tier .q { color: var(--text-3); font-weight: 700; }
.p-tier b { display: block; font-size: 14px; color: var(--text-2); }
.p-tier span { font-weight: 600; }
.p-tier .wl { text-align: right; }
.p-tier .wl b { color: var(--text); font-size: 15px; }
.p-tier .wl span { color: var(--text-3); font-size: 13px; font-weight: 400; }
.board tbody tr { cursor: pointer; }
.board tbody tr:hover td { background: var(--surface-hi); }
.tico { width: 18px; height: 18px; image-rendering: pixelated; flex: none; }

/* ------------------------------------------------------------ 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: var(--r-ctl); border: 0;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none !important;
  background: var(--surface-hi); color: var(--text); transition: background .15s, color .15s;
}
.btn:hover { background: var(--border-hi); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hi); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface); color: var(--text); }
.btn.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.btn.line:hover { background: rgba(255, 255, 255, .1); }
.btn.dark { background: #0d0f13; color: #fff; }
.btn.dark:hover { background: #000; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .45); }
.btn.danger:hover { background: rgba(229, 72, 77, .12); }
.btn.big { height: 52px; padding: 0 30px; font-size: 17px; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------------ 첫 화면 */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 120px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40px; z-index: -2;
  background: url("/assets/hero.webp") center / cover no-repeat; filter: blur(9px) brightness(.5) saturate(.9);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(18, 20, 24, .2) 50%, var(--bg)); }
.mark { display: inline-flex; align-items: center; gap: 22px; }
.mark img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.mark span { font-size: clamp(48px, 9vw, 104px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.hero .tag { font-size: clamp(17px, 2vw, 21px); color: #d9dde4; margin: 22px 0 34px; }
.notice-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; max-width: 100%;
  background: rgba(18, 20, 24, .7); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  padding: 7px 16px; color: #d9dde4; font-size: 14px; text-decoration: none !important; backdrop-filter: blur(6px);
}
.notice-pill:hover { border-color: rgba(255, 255, 255, .3); }
.notice-pill .i { color: var(--accent-hi); width: 16px; height: 16px; }
.notice-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-3); font-size: 14px; font-weight: 600; text-decoration: none !important;
}
.hero .scroll:hover { color: var(--text-2); }

.intro { padding: 90px 0 40px; text-align: center; }
.intro p { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.6; color: var(--text-2); max-width: 30em; margin: 0 auto; }
.intro b { color: var(--text); font-weight: 600; }

/* 소개 줄: 글과 그림이 번갈아 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feature.flip .text { order: 2; }
.feature .kicker { color: var(--accent-hi); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.feature h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 14px; }
.feature p { color: var(--text-2); margin: 0 0 18px; }
.feature ul { list-style: none; padding: 0; margin: 0; }
.feature li { position: relative; padding-left: 18px; color: var(--text-2); margin: 9px 0; }
.feature li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.feature li b { color: var(--text); font-weight: 600; }
.feature .pic { border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--border); }
.feature .pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* 다운로드 띠 */
.band {
  margin: 70px 0 0; padding: 30px 36px; border-radius: 16px; background: var(--accent);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.band p { flex: 1 1 380px; margin: 0; font-size: 19px; font-weight: 600; color: #fff; line-height: 1.5; }
.band .row { gap: 10px; }

.foot { margin-top: 80px; padding: 34px 0 40px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
.foot .row { justify-content: space-between; gap: 20px; }
.foot .brand { font-size: 16px; color: var(--text-2); }
.foot .brand img { width: 24px; height: 24px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--text-3); }
.foot nav a:hover { color: var(--text-2); }
.foot small { display: block; margin-top: 16px; font-size: 12px; }

/* ------------------------------------------------------------ 안쪽 페이지 */
.page { padding-top: calc(var(--nav-h) + 44px); min-height: calc(100vh - 120px); }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 36px; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.page-head .sub { color: var(--text-3); font-size: 16px; padding-bottom: 4px; }
.page-head .grow { flex: 1; }
.lead { color: var(--text-2); font-size: 17px; max-width: 46em; margin: -12px 0 28px; }

.card { background: var(--surface); border-radius: var(--r); padding: 20px 22px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
h2 { font-size: 22px; font-weight: 700; margin: 0 0 14px; letter-spacing: -.01em; line-height: 1.3; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.section { margin-top: 44px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.seg { display: inline-flex; background: var(--field); border-radius: var(--r-ctl); padding: 3px; gap: 2px; }
.seg button { font: inherit; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; padding: 6px 18px; border-radius: 6px; background: transparent; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }

input, textarea { font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: var(--r-ctl); padding: 10px 12px; width: 100%; }
input:focus, textarea:focus { outline: none; border-color: var(--accent-hi); }
textarea { resize: vertical; min-height: 220px; line-height: 1.6; }
label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }

/* 공지 */
.motd { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--accent); background: var(--surface); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; }
.motd .i { color: var(--accent-hi); margin-top: 4px; }
.news-item { display: block; background: var(--surface); border-radius: var(--r); padding: 16px 20px; color: inherit; text-decoration: none !important; transition: background .15s; }
.news-item + .news-item { margin-top: 10px; }
.news-item:hover { background: var(--surface-hi); }
.news-item .t { display: flex; gap: 12px; font-weight: 600; font-size: 17px; }
.news-item .t span:first-child { flex: 1; min-width: 0; }
.news-item .t time { color: var(--text-3); font-weight: 400; font-size: 14px; white-space: nowrap; }
.news-item .b { color: var(--text-2); font-size: 15px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.article { background: var(--surface); border-radius: var(--r); padding: 28px 32px; max-width: 820px; }
.article h2 { font-size: 26px; margin: 0 0 4px; }
.article time { color: var(--text-3); font-size: 14px; }
.article .body { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); white-space: pre-line; color: var(--text-2); }

/* 리더보드 */
.board { width: 100%; border-collapse: separate; border-spacing: 0 5px; font-size: 15px; }
.board th { text-align: left; font-weight: 600; font-size: 13px; color: var(--text-3); padding: 0 14px 4px; }
.board td { background: var(--surface); padding: 10px 14px; }
.board td:first-child { border-radius: var(--r-ctl) 0 0 var(--r-ctl); width: 64px; font-weight: 700; color: var(--text-2); }
.board td:last-child { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.board tr.top td:first-child { color: var(--accent-hi); }
.board .who { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.board td, .board th { white-space: nowrap; }
.board .who img { width: 26px; height: 26px; border-radius: 5px; image-rendering: pixelated; background: var(--surface-hi); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tier { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }


/* 티어 */
.tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tcard { background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.tcard .gem { height: 110px; display: grid; place-items: center; }
.tcard .gem img.big { width: 56px; height: 56px; image-rendering: pixelated; }
.tcard .info { padding: 0 12px 16px; font-size: 14px; color: var(--text-2); text-align: center; min-height: 64px; }
.tcard .info b { display: block; color: var(--text); font-size: 15px; }
.tcard .bar { background: var(--surface-hi); text-align: center; font-weight: 700; padding: 10px 4px; margin-top: auto; }

/* 다운로드 */
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 28px; }
.dl .file { font-weight: 700; font-size: 22px; }
.req { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.req li { background: var(--surface); border-radius: var(--r-ctl); padding: 12px 16px; }
.req li span { display: block; color: var(--text-3); font-size: 13px; }
.req li b { font-weight: 600; }
.install { list-style: none; margin: 0; padding: 4px 26px; counter-reset: s; }
.install { margin-top: 12px; }
.install li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.install li:first-child { border-top: 0; }
.install li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); font-weight: 700; font-size: 14px; }
.install b { display: block; margin-bottom: 2px; }
.install p { color: var(--text-2); margin: 0; }
.copy { display: inline-flex; align-items: center; gap: 8px; background: var(--field); border-radius: var(--r-ctl); padding: 6px 6px 6px 14px; margin-top: 10px; font-weight: 600; }
.copy code { font: inherit; }
details { background: var(--surface); border-radius: var(--r); padding: 0 20px; }
details + details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--text-3); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { color: var(--text-2); padding-bottom: 16px; }

/* 게임 방식 */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rules .card { padding: 24px; }
.rules .card h3 { font-size: 19px; margin-bottom: 10px; }
.rules .card h3 { display: flex; align-items: center; gap: 8px; }
.rules .card h3 .i { color: var(--accent-hi); }
.rules .card p { color: var(--text-2); font-size: 15px; margin: 0; }

.empty { text-align: center; color: var(--text-3); padding: 60px 0; }
.empty .i { width: 30px; height: 30px; margin: 0 auto 10px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 50;
  background: var(--surface-hi); color: var(--text); padding: 12px 18px; border-radius: var(--r);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); font-weight: 600; transition: opacity .2s, transform .25s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { box-shadow: inset 0 0 0 1px var(--danger), 0 12px 30px rgba(0, 0, 0, .45); }

@media (max-width: 1000px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature.flip .text { order: 0; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .topnav { gap: 12px; padding: 0 14px; background: rgba(18, 20, 24, .92); box-shadow: 0 1px 0 var(--border); }
  .topnav .menu-btn { display: inline-flex; margin-left: 0; }
  .search { width: auto; flex: 1; max-width: 220px; }
  .board td.rk { width: 86px; padding-left: 0; }
  .board .chip { display: none; }
  .rank { min-width: 40px; padding: 0 14px 0 9px; font-size: 15px; }
  .row-bust { width: 36px; }
  .p-sub { display: none; }
  .links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); padding: 8px 14px 14px; box-shadow: 0 12px 24px rgba(0, 0, 0, .4); }
  .topnav.open .links { display: flex; }
  .links a { padding: 11px 6px; font-size: 16px; }
  .mark { gap: 14px; }
  .mark img { width: 60px; height: 60px; border-radius: 14px; }
  .intro { padding: 60px 0 20px; }
  .band { padding: 24px; }
  .page-head h1 { font-size: 28px; }
  .two, .rules, .req { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl { grid-template-columns: 1fr; }
  .board .hide-sm { display: none; }
  .board { font-size: 14px; }
  .board td, .board th { padding-left: 10px; padding-right: 10px; }
  .board td:first-child { width: 40px; }
  .install { padding: 4px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 정지된 계정: 정보를 어둡게 + 기울어진 도장 */
.p-card.banned { position: relative; }
.p-card.banned > :not(.ban-stamp) { filter: brightness(.22) saturate(.3); pointer-events: none; user-select: none; }
.ban-stamp { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; pointer-events: none; }
.ban-stamp .stamp {
  font-size: clamp(52px, 13vw, 84px); font-weight: 900; letter-spacing: .06em; line-height: 1; color: #ff3b42;
  padding: 10px 22px 8px; border: 6px solid currentColor; border-radius: 12px; outline: 2px solid currentColor; outline-offset: 5px;
  transform: rotate(-14deg); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); background: rgba(40, 6, 8, .35);
}
.ban-stamp .until { margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--text-2); background: rgba(0, 0, 0, .55); padding: 4px 12px; border-radius: 999px; }
/* 리더보드 줄 상반신: 캔버스 한 장 */
.row-bust canvas { position: absolute; left: 50%; top: 0; width: 44px; height: 44px; transform: translateX(-50%); image-rendering: pixelated; }
/* 정지 도장 위로도 닫기 버튼은 눌려야 한다 */
dialog.player .close { z-index: 5; }
