/* ── Shell ── */
.shell {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr var(--main-w) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  min-height: 100vh;
}

/* ── Header ── */
/* ── Header ── */
header {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; align-items: center; justify-content: center; /* space-between → center */
  padding: 0;
  background: rgba(10,20,60,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 100;
}

/* 헤더 내부 콘텐츠를 main과 동일한 820px로 제한 */
.header-inner {
  width: 100%;
  max-width: var(--main-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0px;
}

@media (max-width: 960px) {
  .header-inner {
    padding: 0 12px;
  }
}

.logo {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.45rem; font-weight: 400;
  color: #ffe066;
  text-shadow: 0 2px 0 #a06800, 0 0 18px rgba(255,220,60,.55);
  text-decoration: none;
}
.logo span { color: #7ecfff; text-shadow: 0 2px 0 #0050a0, 0 0 14px rgba(126,207,255,.5); }

.header-right { display: flex; align-items: center; gap: 12px; }

.header-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
}
.header-username {
  font-family: 'Do Hyeon', sans-serif;
  font-size: 0.85rem; color: var(--text-main);
}

.discord-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(88,101,242,0.75);
  border: 1px solid rgba(140,150,255,0.4);
  border-radius: 8px; padding: 6px 16px 6px 10px;
  color: #fff; font-family: 'Do Hyeon', sans-serif;
  font-size: 0.82rem; cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.discord-btn:hover { background: rgba(88,101,242,.95); box-shadow: 0 0 18px rgba(88,101,242,.5); }
.logout-btn { background: rgba(80,80,80,0.6); border-color: rgba(255,255,255,0.2); }
.logout-btn:hover { background: rgba(80,80,80,.9); box-shadow: none; }

/* ── Ad columns ── */
.ad-col {
  grid-row: 2;
  display: flex; flex-direction: column;
  align-items: center; padding: 28px 10px; gap: 18px;
}
.ad-block {
  width: 140px; background: rgba(0,0,0,0.22);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.28);
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.ad-block.tall  { height: 320px; }
.ad-block.short { height: 120px; }

/* ── Main ── */
main {
  grid-column: 2; grid-row: 2;
  padding: 28px 0 60px;
  display: flex; flex-direction: column; gap: 28px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 60px var(--main-w) 60px; }
  .ad-block { width: 52px; }
  .ad-block span { display: none; }
}
@media (max-width: 960px) {
  :root { --main-w: 100vw; }
  .shell { grid-template-columns: 0 1fr 0; }
  .ad-col { display: none; }
  main { padding: 16px 12px 50px; }
}

/* ── Header left group ── */
.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav-link {
  font-family: 'Do Hyeon', sans-serif;
  font-size: 0.75rem;
  color: rgba(220,235,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.header-nav-link:hover {
  color: #7ecfff;
}

.header-nav-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(220,235,255,0.3);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .header-nav { display: none; }
}
