/* 공통: A 테마 — 짙은 남색 + 빨강, 각진 모서리, 굵은 대문자 (e스포츠 방송 느낌) */
:root {
  color-scheme: dark;
  --bg: #0f1923; --card: #16222e; --card2: #1d2b38; --line: #2a3a48;
  --text: #ece8e1; --sub: #8b97a3;
  --red: #ff4655; --red2: #ff6b77;
  --display: "Bebas Neue", "Black Han Sans", "Malgun Gothic", sans-serif;
  --body: Pretendard, system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  /* 각진 모서리 (오른쪽 아래만 잘림) */
  --cut: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  --cut-sm: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  --slant: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:var(--body); -webkit-font-smoothing:antialiased; }
a { color:inherit; }
main { max-width:1240px; margin:0 auto; padding:0 16px 64px; }
:focus-visible { outline:2px solid #fff; outline-offset:-3px; } /* 각진 모서리에 안 잘리게 안쪽 */

/* 위 막대: 로고 + 로그인 */
header.top { position:sticky; top:0; z-index:20; display:flex; justify-content:space-between; align-items:center;
  height:64px; margin:0 -16px 8px; padding:0 16px; background:rgba(15,25,35,.85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line); }
/* 로고 = 속도감 (11-19 A안): 기울인 글자 + OOO 빨간 사선 판 + 앞 속도선 */
.logo { position:relative; display:inline-flex; align-items:center; padding-left:22px; font-family:var(--display); font-size:38px; line-height:1;
  letter-spacing:1px; color:var(--text); text-decoration:none; transform:skewX(-12deg); }
/* 로고 옆 이름 뜻 (Game Of Our Own Dreams). 좁은 화면 = 로고 작게 + 뜻 밑으로 한 줄 */
.brand { display:flex; align-items:center; gap:12px; min-width:0; }
.brand-logo { display:inline-flex; align-items:center; gap:5px; }
.beta-label { padding:2px 4px; border:1px solid var(--red2); border-radius:3px; color:var(--red2);
  font-size:9px; font-weight:800; line-height:1; letter-spacing:.04em; }
.tagline { font-size:12px; font-weight:700; line-height:1.3; color:var(--sub); white-space:nowrap; }
.tagline b { color:var(--red); }
.logo::before { content:""; position:absolute; left:0; top:50%; width:18px; height:16px; transform:translateY(-50%);
  background:repeating-linear-gradient(180deg, var(--red) 0 3px, transparent 3px 6px); clip-path:polygon(40% 0, 100% 0, 100% 100%, 0 100%); }
.logo b { font-weight:400; color:#fff; background:var(--red); padding:0 4px; margin:0 2px; clip-path:polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.me { display:flex; gap:8px; align-items:center; font-size:14px; color:var(--sub); }
.me a, .me button { color:var(--bg); background:var(--text); border:0; clip-path:var(--slant);
  padding:8px 18px; font:inherit; font-weight:800; text-decoration:none; cursor:pointer; white-space:nowrap; }
.me a:hover, .me button:hover { background:var(--red); color:#fff; }

.me .notification-toggle { position:relative; display:grid; place-items:center; width:36px; height:36px;
  padding:0; overflow:visible; clip-path:none; color:var(--text); background:transparent; border:1px solid #425260; border-radius:50%; }
.me .notification-toggle[aria-expanded="true"], .me .notification-toggle:hover { background:var(--card2); border-color:var(--red2); }
.notification-bell { display:block; position:relative; width:14px; height:14px;
  border:1.5px solid currentColor; border-radius:8px 8px 3px 3px; margin-top:-3px; }
.notification-bell::after { content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  margin-top:2px; width:4px; height:2px; border-radius:0 0 3px 3px; background:currentColor; }
.notification-count { position:absolute; top:-5px; right:-7px; min-width:19px; height:19px; padding:1px 4px;
  border:2px solid var(--bg); border-radius:12px; background:var(--red); color:#171019;
  font:bold 10px/13px var(--body); text-align:center; }
.notifications-panel { position:absolute; right:16px; top:calc(100% + 10px); width:min(390px, calc(100vw - 32px));
  padding:16px; border:1px solid #354553; border-radius:14px; background:var(--bg); color:var(--text); font-size:14px;
  box-shadow:0 18px 50px #000a; }
.notifications-panel h2 { margin:0 84px 0 0; font:800 19px/1.4 var(--body); }
.notifications-panel p { margin:14px 0 2px; color:var(--sub); }
.notifications-panel p:empty { display:none; }
.notifications-panel ul { display:grid; gap:6px; list-style:none; margin:12px 0 0; padding:0; overflow:auto;
  max-height:min(55vh, 420px); scrollbar-color:#506273 transparent; }
.notifications-panel li a { display:flex; align-items:center; gap:12px; padding:9px; border-radius:9px;
  color:var(--text); background:var(--card); text-decoration:none; white-space:normal; }
.notifications-panel li a:hover { background:var(--card2); color:var(--text); }
.notification-caption { min-width:0; display:grid; gap:3px; }
.notification-caption small { color:var(--red2); font-weight:800; font-size:11px; }
.notification-caption strong { font-size:13px; }
.notification-caption > span { color:var(--sub); font-size:12px; font-weight:500; overflow-wrap:anywhere; }
.notification-thumb { width:76px; aspect-ratio:16/9; flex:none; object-fit:cover; border-radius:6px; background:var(--card2); }
.notifications-panel .notification-read { position:absolute; top:14px; right:16px; padding:5px 8px;
  border:0; border-radius:6px; color:var(--red2); background:transparent; font:800 12px var(--body); cursor:pointer; }
.notifications-panel .notification-read:hover { background:var(--card2); color:var(--text); }

.empty { color:var(--sub); background:var(--card); padding:28px; margin:0; text-align:center; clip-path:var(--cut); }
.hint { color:var(--sub); font-size:13px; }

/* 들어올 때 차례로 솟아오름 */
@keyframes up { from { opacity:0; transform:translateY(24px) scale(.97); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } }

/* 폰: 로고 작게 + 이름 뜻은 로고 밑 한 줄, 오른쪽 버튼도 줄여서 겹치지 않게 (상단바 규칙들 뒤에 있어야 덮어씀) */
@media (max-width:560px) {
  .brand { flex-direction:column; align-items:flex-start; gap:2px; }
  .logo { font-size:28px; padding-left:16px; }
  .logo::before { width:13px; height:12px; }
  .tagline { font-size:9px; line-height:1; }
  .tagline .ko { display:none; }
  .me { gap:4px; font-size:12px; }
  .me a, .me button { padding:7px 10px; max-width:96px; overflow:hidden; text-overflow:ellipsis; }
  .me .pc-only { display:none; }
  header.top:has(.notifications-panel:not([hidden])) { height:auto; min-height:64px; flex-wrap:wrap; padding-block:12px; }
  .notifications-panel { position:relative; inset:auto; flex:0 0 100%; width:100%; margin-top:10px; padding:12px; }
  .notifications-panel ul { max-height:min(55dvh, max(0px, calc(100dvh - 142px))); overscroll-behavior:contain; }
  .notifications-panel .notification-read { top:10px; right:12px; }
}
@media (max-width:380px) { .me a, .me button { padding:7px 8px; max-width:70px; } }
