:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --line: #d9e1ef;
  --line-strong: #b9c8df;
  --text: #172033;
  --muted: #6a7689;
  --primary: #1b63d8;
  --primary-deep: #0c3d8a;
  --accent: #26b4a8;
  --warn: #ff6a3d;
  --shadow: 0 10px 28px rgba(28, 56, 100, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--primary-deep);
  box-shadow: 0 2px 10px rgba(12, 30, 60, 0.08);
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 268px;
  height: 70px;
}

.brand-logo {
  display: block;
  width: 240px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav a {
  padding: 27px 0 24px;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.page-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0 54px;
}

.sidebar,
.content {
  min-width: 0;
}

.panel,
.article-card,
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel {
  margin-bottom: 14px;
}

.login-panel {
  padding: 16px;
}

.login-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.field-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  background: #eef3fb;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}

.login-panel input[type="text"],
.login-panel input[type="password"] {
  min-width: 0;
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  background: #eef4ff;
  padding: 0 10px;
  color: var(--text);
}

.login-button {
  width: 100%;
  height: 42px;
  border: 1px solid #bdd2f6;
  background: #fff;
  color: var(--primary-deep);
  font-weight: 900;
  cursor: pointer;
}

.login-button:hover {
  background: #eef5ff;
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
  color: #334155;
  font-size: 12px;
}

.login-links label {
  margin: 0;
  gap: 4px;
  white-space: nowrap;
}

.support-banner,
.wide-banner {
  display: block;
  overflow: hidden;
  color: #fff;
  border: 1px solid #183f76;
  background:
    radial-gradient(
      circle at 88% 28%,
      rgba(38, 180, 168, 0.5),
      transparent 20%
    ),
    linear-gradient(135deg, #09245a, #1657ad 58%, #0f8f9a);
}

.support-banner {
  min-height: 84px;
  padding: 17px 18px;
  margin-bottom: 14px;
}

.support-banner span,
.wide-banner span,
.promo-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.support-banner strong,
.wide-banner strong,
.promo-panel strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.2;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.panel-title h2,
.rank-panel h2 {
  margin: 0;
  color: #0e3d75;
  font-size: 15px;
  font-weight: 900;
}

.panel-title span,
.panel-title a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.chat-list,
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chat-list {
  padding: 10px 12px 8px;
}

.chat-list li {
  padding: 5px 0;
  color: #28364d;
  font-size: 13px;
  border-bottom: 1px solid #eef2f8;
}

.chat-list li:last-child {
  border-bottom: 0;
}

.chat-list b {
  color: var(--primary);
}

.chat-input {
  margin: 8px 12px 12px;
  height: 34px;
  padding: 7px 10px;
  color: #9aa6b8;
  border: 1px solid var(--line);
  background: #fbfcff;
}

.promo-panel {
  padding: 14px 16px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #236bff, #18b7a9);
}

.promo-panel strong {
  font-size: 22px;
}

.rank-panel h2 {
  padding: 11px 14px;
  color: #fff;
  background: var(--primary-deep);
}

.rank-panel ol {
  margin: 0;
  padding: 10px 14px 12px 36px;
}

.rank-panel li {
  padding: 6px 0;
  color: #253347;
}

.rank-panel li::marker {
  color: var(--primary);
  font-weight: 900;
}

.rank-panel span {
  display: inline-block;
  max-width: 112px;
}

.rank-panel b {
  float: right;
  color: #344054;
  font-size: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  margin-bottom: 18px;
}

.post-list {
  padding: 10px 14px 12px;
}

.post-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  color: #243146;
  border-bottom: 1px solid #eef2f8;
}

.post-list li:last-child {
  border-bottom: 0;
}

.post-list time {
  margin-left: auto;
  color: var(--primary);
  font-size: 12px;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.badge.new {
  background: #f05252;
}

.badge.hot {
  background: var(--accent);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 43px;
  border-bottom: 1px solid var(--line);
}

.tabs button,
.tabs a {
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fbfcff;
  color: #40516a;
  font-weight: 800;
  cursor: pointer;
}

.tabs button:last-child,
.tabs a:last-child {
  border-right: 0;
}

.tabs button.active,
.tabs a.active {
  color: var(--primary);
  background: #fff;
  border-top: 3px solid var(--primary);
}

.wide-banner {
  min-height: 84px;
  margin-bottom: 14px;
  padding: 18px 24px;
}

.wide-banner strong {
  font-size: 30px;
}

.hero-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, #e9f6ff, #ffffff 44%, #e9fff9);
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      transparent 0 40%,
      rgba(27, 99, 216, 0.12) 40% 41%,
      transparent 41%
    ),
    radial-gradient(
      circle at 30% 22%,
      rgba(38, 180, 168, 0.18),
      transparent 30%
    ),
    radial-gradient(circle at 78% 62%, rgba(27, 99, 216, 0.13), transparent 28%);
}

.visual-window {
  position: absolute;
  border: 1px solid rgba(27, 99, 216, 0.22);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 35px rgba(28, 56, 100, 0.12);
}

.window-one {
  width: 170px;
  height: 110px;
  left: 10%;
  top: 22%;
}

.window-two {
  width: 230px;
  height: 145px;
  right: 9%;
  top: 18%;
}

.window-three {
  width: 210px;
  height: 120px;
  left: 19%;
  bottom: 15%;
}

.visual-window::before {
  content: "";
  display: block;
  height: 24px;
  background: linear-gradient(90deg, #1b63d8, #26b4a8);
}

.visual-window::after {
  content: "";
  display: block;
  width: 72%;
  height: 34px;
  margin: 20px auto;
  background:
    linear-gradient(#dce7f8 0 0) 0 0 / 100% 8px no-repeat,
    linear-gradient(#edf3fb 0 0) 0 16px / 78% 8px no-repeat,
    linear-gradient(#edf3fb 0 0) 0 32px / 58% 8px no-repeat;
}

.cursor-shape {
  position: absolute;
  right: 28%;
  bottom: 23%;
  width: 0;
  height: 0;
  border-left: 28px solid var(--primary);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  transform: rotate(-18deg);
  filter: drop-shadow(0 8px 10px rgba(27, 99, 216, 0.24));
}

.hero-copy {
  position: relative;
  text-align: center;
}

.hero-copy p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.hero-copy h1 {
  margin: 0;
  color: #13213a;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy span {
  display: block;
  margin-top: 15px;
  color: #44546b;
  font-size: 16px;
  font-weight: 700;
}

.main-nav a.active {
  color: var(--primary);
  border-color: var(--primary);
}

.sports-hero {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.92)
    ),
    linear-gradient(135deg, #e7f1ff, #ffffff 44%, #e8fff8);
}

.score-card {
  position: absolute;
  width: 150px;
  min-height: 86px;
  padding: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #0d367b, #1b63d8);
  box-shadow: 0 20px 35px rgba(28, 56, 100, 0.16);
}

.score-card b {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.score-left {
  left: 10%;
  top: 18%;
}

.score-right {
  right: 12%;
  bottom: 19%;
  background: linear-gradient(135deg, #0d6059, #26b4a8);
}

.field-line {
  position: absolute;
  inset: 50% 8% auto;
  height: 2px;
  background: rgba(27, 99, 216, 0.22);
}

.field-line::before,
.field-line::after {
  content: "";
  position: absolute;
  top: -50px;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(27, 99, 216, 0.18);
  border-radius: 50%;
}

.field-line::before {
  left: 18%;
}

.field-line::after {
  right: 18%;
}

.match-panel {
  margin-bottom: 14px;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.match-card {
  display: block;
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.match-card span,
.match-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.match-card strong {
  display: block;
  margin: 7px 0;
  color: #172033;
  font-size: 16px;
}

.match-card em.live,
.schedule-row em.live {
  color: #f05252;
}

.board-panel {
  overflow: hidden;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(27, 99, 216, 0.08), transparent 55%), #fff;
}

.board-head p,
.support-copy p {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.board-head h1,
.support-copy h1 {
  margin: 0;
  color: #11294f;
  font-size: 30px;
  line-height: 1.15;
}

.write-button,
.post-actions a,
.support-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.board-tabs {
  display: flex;
  gap: 8px;
  padding: 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.board-tabs a {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #40516a;
  border: 1px solid var(--line);
  background: #fbfcff;
  font-weight: 800;
}

.board-tabs a.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table th,
.board-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f8;
  text-align: center;
}

.board-table th {
  color: #344054;
  background: #f5f8fc;
  font-size: 13px;
}

.board-table .subject {
  text-align: left;
  font-weight: 800;
}

.board-table .subject span {
  color: var(--primary);
}

.post-view {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.post-view-head {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.post-view-head span {
  color: var(--primary);
  font-weight: 900;
}

.post-view-head h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.25;
}

.post-view-head p {
  margin: 0;
  color: var(--muted);
}

.post-body {
  min-height: 230px;
  padding: 30px 26px;
  color: #344054;
  font-size: 16px;
  word-break: keep-all;
}

.post-actions {
  display: flex;
  gap: 8px;
  padding: 18px 26px 26px;
}

.schedule-list {
  padding: 10px 18px 18px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #edf2f8;
}

.schedule-row:last-child {
  border-bottom: 0;
}

.sport-pill {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  color: #fff;
  background: var(--primary-deep);
  font-weight: 900;
}

.schedule-row b {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.schedule-row strong {
  display: block;
  margin-top: 4px;
  color: #172033;
  font-size: 17px;
}

.schedule-row em {
  color: #40516a;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.ranking-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ranking-board {
  padding: 22px;
}

.ranking-board h1 {
  margin: 0 0 16px;
  color: #11294f;
  font-size: 24px;
}

.ranking-board ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.ranking-board li {
  counter-increment: rank;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #edf2f8;
}

.ranking-board li::before {
  content: counter(rank);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.ranking-board span {
  margin-right: auto;
  font-weight: 900;
}

.ranking-board b {
  color: var(--primary-deep);
}

.support-page {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.support-copy span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.support-form {
  display: grid;
  gap: 12px;
}

.support-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-weight: 900;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcff;
  padding: 10px 12px;
  color: var(--text);
}

.article-card {
  margin-bottom: 14px;
  padding: 21px 24px 23px;
}

.article-card h2 {
  margin: 0 0 12px;
  padding-left: 12px;
  color: #0e3d75;
  font-size: 22px;
  line-height: 1.2;
  border-left: 4px solid var(--primary);
}

.article-card p {
  margin: 0;
  color: #344054;
  word-break: keep-all;
}

.site-footer {
  padding: 28px 0;
  color: #667085;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
  }

  .main-nav a {
    padding: 6px 0 10px;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .sidebar .panel,
  .support-banner {
    margin-bottom: 0;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .brand {
    min-width: 220px;
  }

  .brand-logo {
    width: 214px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .wide-banner strong {
    font-size: 22px;
  }

  .hero-card {
    min-height: 280px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy span {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .visual-window {
    transform: scale(0.72);
  }

  .window-one {
    left: -8%;
  }

  .window-two {
    right: -14%;
  }

  .window-three {
    left: 2%;
  }

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

  .tabs button {
    min-height: 40px;
    border-bottom: 1px solid var(--line);
  }

  .match-grid,
  .ranking-layout,
  .support-page {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .schedule-row em {
    text-align: left;
  }

  .board-table {
    font-size: 12px;
  }

  .board-table th:nth-child(2),
  .board-table td:nth-child(2),
  .board-table th:nth-child(4),
  .board-table td:nth-child(4) {
    display: none;
  }
}
