:root {
  color-scheme: light;
  --page: #f3f5f2;
  --surface: #fff;
  --ink: #14221a;
  --muted: #536259;
  --line: #e2e8e1;
  --green: #106141;
  --green-dark: #103b2a;
  --green-tint: #e6f3e9;
  --lime: #d6fa73;
  --radius: 17px;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #2c9670; outline-offset: 3px; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

.skip:focus { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 12px; background: #fff; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner {
  max-width: 1340px; margin: auto; padding: 0 30px; min-height: 73px;
  display: grid; grid-template-columns: 198px 1fr auto; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand-mark {
  width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center;
  position: relative; background: var(--green-dark); color: #fff;
  font: italic 900 29px/1 Arial, sans-serif; letter-spacing: -3px; padding-right: 4px;
}
.brand-mark span { color: var(--lime); position: absolute; right: 5px; bottom: 6px; font-size: 21px; }
.brand-name { font: 950 26px/.9 system-ui, sans-serif; letter-spacing: -1.9px; white-space: nowrap; }
.brand-name > span { color: var(--green); }
.brand-name small { margin-left: 9px; font: 750 11px/1 system-ui, sans-serif; letter-spacing: -.35px; vertical-align: 3px; color: var(--muted); }
.top-nav { display: flex; min-height: 73px; align-items: stretch; gap: 30px; }
.top-nav a {
  position: relative; display: flex; align-items: center; color: var(--muted);
  font-size: 14px; font-weight: 750; white-space: nowrap;
}
.top-nav a:hover, .top-nav a[aria-current] { color: var(--green); }
.top-nav a[aria-current]::after { content: ""; height: 3px; background: var(--green); position: absolute; inset: auto 0 0; border-radius: 2px 2px 0 0; }
.top-actions { display: flex; align-items: center; justify-content: end; gap: 7px; }
.nickname { font-size: 13px; font-weight: 800; max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 9px; min-height: 39px; padding: 8px 13px;
  line-height: 1.3; font-size: 13px; font-weight: 800; white-space: nowrap;
}
.primary { color: #fff; background: var(--green); }
.primary:hover { background: #0c4e34; }
.subtle { background: transparent; color: var(--ink); }
.subtle:hover, .quiet { background: #f2f6f2; color: var(--green-dark); }
.quiet:hover { background: #e5eee7; }
.lime { color: #162c1c; background: var(--lime); min-height: 42px; padding-inline: 14px; }
.lime:hover { background: #e6ffa3; }

.layout {
  max-width: 1340px; margin: 0 auto; padding: 27px 30px 42px; display: grid;
  grid-template-columns: 198px minmax(0, 1fr) 290px; align-items: start; gap: 28px;
}
main { min-width: 0; }
main:focus { outline: none; }
.sidebar { padding-top: 12px; }
.side-label { color: var(--muted); font-size: 11px; font-weight: 800; padding: 0 13px 10px; }
.side-categories { margin-top: 22px; }
.sidebar a {
  display: flex; align-items: center; min-height: 34px; gap: 11px; border-radius: 9px;
  padding: 6px 10px; font-size: 13px; color: #3a4a40;
}
.sidebar a + a { margin-top: 1px; }
.sidebar a:hover, .sidebar a[aria-current] { background: #e0eee3; color: var(--green-dark); }
.sidebar a[aria-current] { font-weight: 850; }
.nav-symbol { font: 700 20px/1 system-ui, sans-serif; width: 20px; text-align: center; }
.side-dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 6px; }
.dot-talk { background: #5c8d6d; }
.dot-kleague { background: #6b72cd; }
.dot-world { background: #bf6439; }
.dot-review { background: #5296a9; }

.hero {
  position: relative; isolation: isolate; overflow: hidden; background: #123b2a; color: #fff;
  min-height: 275px; border-radius: var(--radius); padding: 30px 31px;
  display: flex; align-items: center; margin-bottom: 20px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #123b2a 4%, #123b2a 36%, #123b2a88 65%, #123b2a00 100%);
}
.hero-content { position: relative; }
.hero-kicker { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #d9eadf; font-weight: 750; }
.hero-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.hero h1 { margin: 13px 0 12px; font-size: clamp(29px, 3.25vw, 49px); line-height: 1.13; letter-spacing: -.066em; font-weight: 900; word-break: keep-all; }
.hero h1 span { color: var(--lime); }
.hero p:not(.hero-kicker) { color: #d9e9df; font-size: 13px; line-height: 1.65; word-break: keep-all; }
.hero .button { margin-top: 20px; }
.pitch {
  position: absolute; z-index: -2; width: 340px; height: 275px; top: 8px; right: -27px;
  border: 2px solid #badead77; border-radius: 24px; transform: rotate(-20deg);
  background: repeating-linear-gradient(90deg, #71b68d31 0 42px, #2e765847 42px 84px);
  box-shadow: 0 0 0 14px #66a78522, 0 0 80px #81c99352;
}
.pitch-mid, .pitch-circle, .pitch-box, .pitch-player, .pitch-ball { position: absolute; }
.pitch-mid { left: 50%; height: 100%; border-left: 2px solid #badead78; }
.pitch-circle { left: 50%; top: 50%; translate: -50% -50%; width: 83px; aspect-ratio: 1; border: 2px solid #badead78; border-radius: 50%; }
.pitch-box { width: 65px; height: 131px; top: 50%; translate: 0 -50%; border: 2px solid #badead78; }
.pitch-box-one { left: -2px; border-radius: 0 9px 9px 0; }
.pitch-box-two { right: -2px; border-radius: 9px 0 0 9px; }
.pitch-player { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #e9fed5; background: #d6fa73; box-shadow: 0 0 0 5px #c9fd7450, 0 0 17px #edffc073; }
.pitch-player-one { top: 24%; left: 75%; }
.pitch-player-two { top: 61%; left: 67%; }
.pitch-player-three { top: 76%; left: 46%; background: #7fe3c8; border-color: #cff9e7; box-shadow: 0 0 0 5px #7fe3c851; }
.pitch-player-four { top: 37%; left: 91%; background: #7fe3c8; border-color: #cff9e7; box-shadow: 0 0 0 5px #7fe3c851; }
.pitch-ball { width: 8px; height: 8px; top: 46%; left: 70%; background: #fff; border-radius: 50%; }

.panel, .right-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.board { overflow: hidden; }
.section-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 17px 11px;
}
.section-head h1, .section-head h2, .standalone h1 { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.section-sub { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.5; }
.write span { font-size: 17px; line-height: .75; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 16px 10px; border-bottom: 1px solid var(--line); }
.filters a { padding: 5px 9px; border-radius: 6px; color: #4d5b53; font-size: 12px; font-weight: 750; white-space: nowrap; }
.filters a:hover, .filters a[aria-current] { background: var(--green-tint); color: #114b35; }

.post-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 16px; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--line); }
.post-row:hover { background: #fafcf9; }
.post-content {
  min-width: 0; flex: 1; display: grid; grid-template-columns: 90px minmax(0, 1fr);
  column-gap: 8px; align-items: baseline;
}
.post-content .post-tags { grid-row: span 2; align-self: center; }
.post-tags, .post-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tag, .sample { display: inline-flex; align-items: center; white-space: nowrap; font-size: 10px; font-weight: 800; border-radius: 5px; padding: 3px 6px; line-height: 1.3; }
.tag-talk { background: #e8f3eb; color: #285d42; }
.tag-kleague { background: #edecfb; color: #4b48a0; }
.tag-world { background: #fbefe7; color: #85451f; }
.tag-review { background: #e7f3f7; color: #285f71; }
.sample { background: #eff2ed; color: #566359; }
.post-title { display: block; margin: 0; font-size: 14px; font-weight: 550; line-height: 20px; letter-spacing: normal; overflow-wrap: anywhere; }
.post-title:hover { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.post-meta { color: var(--muted); font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
.comment-pill { color: #43574a; background: #f1f5f1; border-radius: 9px; min-width: 39px; padding: 6px 7px; display: inline-flex; gap: 5px; align-items: center; justify-content: center; font-size: 11px; }
.comment-pill:hover { background: var(--green-tint); }
.bubble { width: 12px; height: 9px; border: 1px solid currentColor; border-radius: 3px; position: relative; }
.bubble::after { content: ""; position: absolute; left: 2px; bottom: -3px; border-left: 1px solid currentColor; height: 3px; transform: skewY(-25deg); }
.board-more { display: flex; justify-content: space-between; padding: 15px 20px; font-size: 12px; font-weight: 800; color: var(--green); }
.board-more:hover { background: #f5faf5; }
.empty, .initial { padding: 22px; color: var(--muted); font-size: 14px; }

.right-card { overflow: hidden; }
.right-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 15px 13px; border-bottom: 1px solid var(--line); }
.right-heading > div { display: flex; align-items: center; gap: 7px; }
.right-heading h2 { font-size: 16px; font-weight: 900; letter-spacing: -.05em; }
.right-heading > a { color: var(--green); padding: 0 3px; }
.compact-match { padding: 11px 13px 12px; display: block; border-bottom: 1px solid var(--line); }
.compact-match:hover { background: #f5faf5; }
.match-meta { display: flex; flex-wrap: wrap; gap: 4px 7px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; line-height: 1.5; }
.match-meta > span { font-weight: 850; color: var(--green); }
.compact-teams, .match-teams { display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 5px; text-align: center; }
.compact-teams { margin-top: 9px; }
.team { display: grid; justify-items: center; gap: 4px; min-width: 0; color: var(--ink); font-weight: 800; font-size: 11px; line-height: 1.3; word-break: keep-all; }
.crest {
  display: grid; place-items: center; width: 29px; height: 31px; border-radius: 6px 6px 12px 12px;
  color: #fff; background: #1d3e6a; font: 900 9px/1 system-ui, sans-serif; letter-spacing: -.035em;
}
.crest-red { background: #a62638; }
.crest-blue { background: #2543a6; }
.crest-white { background: #fff; color: #292f56; border: 1px solid #ced1de; }
.crest-purple { background: #662b68; }
.versus { color: var(--muted); font-size: 10px; font-weight: 850; }
.right-all { display: flex; justify-content: space-between; padding: 14px 15px; color: var(--green); font-size: 12px; font-weight: 800; }
.footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-top: 15px; padding: 0 3px; color: var(--muted); font-size: 10px; }
.footer strong { color: var(--green-dark); font-family: system-ui, sans-serif; }

.standalone { padding: 22px; }
.back { display: inline-block; color: var(--green); margin-bottom: 16px; font-size: 13px; font-weight: 800; }
.back:hover { text-decoration: underline; }
.editor { display: grid; gap: 14px; margin-top: 18px; }
.editor label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
input, textarea, select {
  width: 100%; min-height: 40px; border: 1px solid #c9d6cc; border-radius: 8px;
  background: #fff; color: var(--ink); padding: 9px 10px; font-size: 14px;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #59675e; }
.form-actions { display: flex; justify-content: end; gap: 8px; margin-top: 6px; }
.form-error { color: #a52232; font-size: 13px; line-height: 1.45; }
.detail-title { margin: 8px 0; overflow-wrap: anywhere; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 23px 0; font-size: 15px; line-height: 25px; letter-spacing: normal; }
.comments { border-top: 1px solid var(--line); padding-top: 19px; }
.comments h2 { font-size: 16px; margin-bottom: 12px; }
.comments h2 span { color: var(--green); }
.comments form { margin-top: 14px; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment > div { display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 11px; }
.comment strong { font-size: 13px; color: var(--ink); }
.comment p { margin-top: 5px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.muted { font-size: 13px; color: var(--muted); margin: 10px 0; }
.search { display: flex; align-items: center; gap: 7px; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.pagination { display: flex; justify-content: center; gap: 14px; padding: 14px; color: var(--muted); font-size: 12px; }
.pagination a { color: var(--green); font-weight: 850; }

.match-list { padding: 0 20px 20px; display: grid; gap: 12px; }
.match-card { padding: 15px; border-radius: 12px; border: 1px solid var(--line); }
.match-card .match-meta { font-size: 12px; }
.match-teams { margin: 13px 0; }
.match-teams .crest { width: 44px; height: 47px; font-size: 12px; }
.match-teams .team { font-size: 13px; }
.match-teams strong { color: #526257; font-size: 15px; }
.match-facts { text-align: center; display: flex; justify-content: center; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.saved-score { font-weight: 850; color: var(--green); }
.prediction-form { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 11px; margin-top: 12px; }
.prediction-form .form-error { width: 100%; text-align: center; }
.score-inputs { display: flex; align-items: center; gap: 6px; }
.score-inputs input { width: 54px; text-align: center; }
.closed { color: var(--muted); margin-top: 13px; text-align: center; font-size: 13px; }
dialog {
  width: min(420px, calc(100% - 30px)); padding: 23px; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: 0 15px 70px #112a3142;
}
dialog::backdrop { background: #0b211bb0; }
dialog h2 { font-size: 23px; margin-top: 10px; }
.dialog-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: var(--ink); font-size: 25px; padding: 3px 7px; }
.auth-switch { margin-top: 12px; color: var(--muted); font-size: 13px; }
.auth-switch button { border: 0; color: var(--green); background: none; font-weight: 850; }
.notice { position: fixed; z-index: 4; inset: auto 16px 16px auto; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px; background: var(--green-dark); color: #fff; box-shadow: 0 6px 24px #10271935; font-size: 14px; }

@media (max-width: 1120px) {
  .layout { grid-template-columns: 160px minmax(0, 1fr) 250px; }
  .top-inner { grid-template-columns: 160px 1fr auto; }
  .layout, .top-inner { gap: 18px; padding-inline: 20px; }
}
@media (max-width: 895px) {
  .layout { grid-template-columns: minmax(0, 1fr) 235px; }
  .sidebar { display: none; }
  .top-inner { grid-template-columns: auto 1fr auto; }
  .top-nav { gap: 17px; }
}
@media (max-width: 660px) {
  .layout { display: block; padding: 12px 12px 24px; }
  .rightbar { margin-top: 14px; }
  .top-inner { display: flex; flex-wrap: wrap; min-height: 0; gap: 0; padding-inline: 13px; padding-top: 9px; }
  .top-actions { margin-left: auto; }
  .top-nav { order: 3; min-height: 39px; width: 100%; gap: 22px; }
  .top-nav a { font-size: 13px; }
  .nickname { max-width: 71px; }
  .top-actions .button { min-height: 35px; padding-inline: 8px; font-size: 12px; }
  .hero { min-height: 230px; padding: 21px 18px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(29px, 7vw, 37px); }
  .hero::after { background: linear-gradient(90deg, #123b2a 6%, #123b2afa 32%, #123b2a79 67%, #123b2a0d 100%); }
  .pitch { right: -139px; width: 280px; height: 220px; }
  .section-head, .post-row, .search { padding-inline: 12px; }
  .post-content { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .post-content .post-tags { grid-row: auto; }
  .filters { padding-inline: 11px; gap: 3px; }
  .filters a { padding-inline: 7px; }
  .standalone, .match-list { padding: 14px; }
}

.access-page { display: grid; min-height: 100vh; place-items: start center; padding: clamp(24px, 10vh, 98px) 16px 24px; }
.access-panel { width: min(100%, 404px); }
.access-panel .brand { margin-bottom: 18px; }
.access-panel .editor { margin-top: 15px; }
.access-panel label { font-weight: 650; }
.access-switch { margin: 15px 0 0; }
.access-email { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
