:root {
  --bg: #fff7ef;
  --bg-soft: #fffaf5;
  --surface: rgba(255, 250, 244, 0.92);
  --surface-strong: #fffdf9;
  --surface-tint: #fff1e3;
  --peach: #f6b78a;
  --peach-strong: #e68f59;
  --rose: #efb0b5;
  --butter: #ffe5a8;
  --lavender: #d7c7ef;
  --mint: #cfe8cf;
  --ink: #5a4036;
  --ink-soft: #8a6f64;
  --line: #efd8c6;
  --line-strong: #e6c2a6;
  --shadow: 0 20px 44px rgba(185, 130, 92, 0.14);
  --shadow-soft: 0 14px 30px rgba(167, 118, 86, 0.1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Plus Jakarta Sans", "Gowun Dodum", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 173, 0.55), transparent 30%),
    radial-gradient(circle at right 15%, rgba(214, 197, 239, 0.45), transparent 26%),
    linear-gradient(180deg, #fff9f2 0%, #fff5eb 42%, #fffdf9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(166, 117, 84, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.45;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 247, 239, 0.82);
  border-bottom: 1px solid rgba(230, 194, 166, 0.72);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 56px;
  height: 56px;
  padding: 7px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eadfff 0%, #d7c6f1 100%);
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.brand-copy small {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--line);
}

.top-nav a:hover {
  color: var(--ink);
  background: #fff3e5;
}

.page-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  padding: 22px 0 36px;
}

.site-message {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 248, 239, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
}

.site-message.error {
  background: rgba(255, 236, 232, 0.96);
  color: #a14a39;
}

.site-message.success {
  background: rgba(241, 252, 232, 0.96);
  color: #5f7a38;
}

.hero-panel,
.info-card,
.board-section,
.multi-board,
.gallery-section,
.post-shell,
.modal-card {
  background: var(--surface);
  border: 1px solid rgba(239, 216, 198, 0.94);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  width: 260px;
  height: 260px;
  top: -120px;
  right: -50px;
  background: rgba(255, 210, 165, 0.35);
}

.hero-panel::after {
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -40px;
  background: rgba(214, 197, 239, 0.3);
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--peach-strong);
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.post-top h2,
.modal-head h2,
.info-card h2,
.info-card h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2rem, 4vw, 3.9rem);
}

.hero-desc,
.section-note,
.board-table td,
.board-table th,
.post-meta,
.post-text,
.comment-form textarea,
.write-form textarea,
.write-form label,
.info-card p,
.guide-list li {
  color: var(--ink-soft);
}

.hero-desc {
  max-width: 54ch;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-btn,
.search-bar button,
.comment-form button,
.submit-btn,
.modal-head button {
  padding: 13px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #efaa79 0%, #df8b54 100%);
  color: #fffdf8;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(217, 139, 84, 0.24);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 248, 241, 0.9);
  border: 1px solid var(--line);
}

.hero-points,
.guide-list,
.source-links,
#commentList,
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.hero-points li,
.guide-list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.65;
}

.hero-points li::before,
.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--peach);
}

.hero-art {
  min-height: 360px;
}

.hero-shot {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 240, 228, 0.92);
  box-shadow: var(--shadow-soft);
}

.main-shot {
  width: min(100%, 460px);
  margin-left: auto;
}

.float-char {
  position: absolute;
  filter: drop-shadow(0 16px 24px rgba(151, 104, 73, 0.18));
  pointer-events: none;
}

.char-ditto {
  width: 130px;
  bottom: -8px;
  left: 10px;
}

.char-pikachu {
  width: 120px;
  top: -12px;
  right: -4px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}

.info-card,
.board-section,
.multi-board,
.gallery-section,
.post-shell {
  border-radius: var(--radius-lg);
}

.info-card {
  padding: 22px;
}

.spotlight-card {
  background: linear-gradient(180deg, rgba(255, 244, 232, 0.96) 0%, rgba(255, 251, 246, 0.96) 100%);
}

.soft-card {
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.94) 0%, rgba(255, 253, 249, 0.96) 100%);
}

.guide-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-links a {
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.board-section,
.multi-board,
.gallery-section {
  padding: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.compact-head {
  margin-bottom: 18px;
}

.board-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-bar input,
.search-bar select,
#sortSelect,
.comment-form input,
.comment-form textarea,
.write-form input,
.write-form select,
.write-form textarea {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.95);
  color: var(--ink);
}

.search-bar input {
  min-width: 240px;
  height: 44px;
  padding: 0 14px;
}

.search-bar select,
#sortSelect,
.comment-form input,
.write-form input,
.write-form select {
  height: 44px;
  padding: 0 14px;
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 11px 16px;
  border-radius: 999px;
  background: #fffaf5;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
}

.tab-btn.active {
  background: linear-gradient(180deg, #f8bc92 0%, #ec9862 100%);
  color: #fff;
  border-color: transparent;
}

.board-table-wrap {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.96);
}

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

.board-table th,
.board-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(239, 216, 198, 0.8);
  font-size: 0.92rem;
  text-align: center;
}

.board-table th.title,
.board-table td.title {
  text-align: left;
}

.title-btn,
.hot-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.title-btn:hover,
.hot-link:hover,
.source-links a:hover {
  text-decoration: underline;
}

.comment-count {
  color: var(--peach-strong);
  font-weight: 800;
}

.empty-row {
  padding: 34px 18px;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.page-btn,
.page-gap {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.page-btn {
  background: #fff9f2;
  border: 1px solid var(--line);
  color: var(--ink);
}

.page-btn.active {
  background: var(--peach-strong);
  color: #fff;
  border-color: transparent;
}

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

.group-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 254, 251, 0.96) 100%);
  border: 1px solid var(--line);
}

.group-card strong,
.group-card span,
.group-card p {
  display: block;
}

.group-card strong {
  margin-bottom: 8px;
}

.group-code {
  margin-top: 10px;
  color: var(--peach-strong);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
}

.gallery-card {
  position: relative;
  min-height: 230px;
  border-radius: 22px;
  overflow: hidden;
  background: #f7e7d2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card.large {
  grid-row: span 2;
  min-height: 474px;
}

.gallery-card.mascot {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #efe7ff 0%, #fdf4ea 100%);
}

.gallery-card.mascot img {
  width: min(220px, 76%);
  height: auto;
  object-fit: contain;
}

.gallery-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  font-size: 0.88rem;
}

.post-section {
  padding-bottom: 38px;
}

.post-shell {
  padding: 26px;
}

.post-top {
  display: grid;
  gap: 10px;
}

.post-badge {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff2e3;
  color: var(--peach-strong);
  font-weight: 800;
}

#postMeta,
.post-extra {
  margin: 0;
  color: var(--ink-soft);
}

.post-text {
  margin-top: 18px;
  line-height: 1.8;
}

.post-images {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.post-images img {
  border-radius: 18px;
  border: 1px solid var(--line);
}

.comments {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.comment-headline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.comment-headline h3,
.comment-headline p {
  margin: 0;
}

#commentList {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.comment-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-body {
  line-height: 1.7;
  color: var(--ink);
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.comment-grid,
.write-grid.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.comment-form textarea,
.write-form textarea {
  padding: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(97, 63, 49, 0.34);
}

.modal-card {
  width: min(720px, 100%);
  padding: 24px;
  border-radius: 28px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.modal-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.write-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.write-form label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .header-inner,
  .section-head,
  .comment-headline {
    flex-direction: column;
    align-items: start;
  }

  .hero-panel,
  .info-grid,
  .gallery-grid,
  .group-cards {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .main-shot {
    margin: 0;
  }

  .gallery-card.large {
    min-height: 260px;
    grid-row: span 1;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 18px, 100%);
  }

  .site-header {
    position: static;
  }

  .hero-panel,
  .board-section,
  .multi-board,
  .gallery-section,
  .post-shell,
  .modal-card,
  .info-card {
    padding: 18px;
    border-radius: 22px;
  }

  .search-bar,
  .board-tools,
  .top-nav,
  .hero-actions,
  .source-links {
    width: 100%;
  }

  .search-bar input,
  .search-bar select,
  .search-bar button,
  #sortSelect,
  .comment-grid,
  .write-grid.two-up {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .board-table thead {
    display: none;
  }

  .board-table,
  .board-table tbody,
  .board-table tr,
  .board-table td {
    display: block;
    width: 100%;
  }

  .board-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(239, 216, 198, 0.8);
  }

  .board-table td {
    padding: 4px 0;
    border-bottom: 0;
    text-align: left;
  }

  .board-table td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 56px;
    margin-right: 8px;
    color: var(--ink-soft);
    font-weight: 700;
  }

  .float-char {
    width: 96px;
  }
}
