* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  color: #333;

  background:
    linear-gradient(
      180deg,
      #f3f0ff 0%,
      #eef7f0 100%
    );
}

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

.page {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 32px 18px 60px;
}

/* ---------- 상단 ---------- */

.board-header,
.write-header {
  margin-bottom: 26px;
}

.back-link {
  display: inline-block;
  margin-bottom: 25px;
  color: #666;
  font-size: 14px;
}

.back-link:hover {
  color: #222;
}

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -1px;
}

.board-header p,
.write-header p {
  margin: 8px 0 0;
  color: #777;
  line-height: 1.5;
}

.write-button {
  flex-shrink: 0;
  padding: 11px 15px;

  border-radius: 12px;

  background: #333;
  color: white;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform .15s ease,
    opacity .15s ease;
}

.write-button:hover {
  opacity: .9;
}

.write-button:active {
  transform: scale(.97);
}

/* ---------- 게시판 ---------- */

.board-info {
  margin-bottom: 10px;
  padding-left: 4px;

  color: #888;
  font-size: 13px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card {
  padding: 20px;

  background: rgba(255, 255, 255, .92);

  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, .055);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;

  margin-bottom: 13px;

  color: #999;
  font-size: 12px;
}

.post-meta .author {
  color: #666;
  font-weight: 700;
}

.post-card h2 {
  margin: 0 0 11px;

  font-size: 19px;
  letter-spacing: -.4px;
}

.post-content {
  color: #555;

  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.empty-card {
  padding: 55px 20px;

  background: rgba(255, 255, 255, .75);
  border-radius: 18px;

  text-align: center;
  color: #777;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, .045);
}

.empty-icon {
  margin-bottom: 12px;
  font-size: 34px;
}

.empty-card p {
  margin: 7px 0 0;
  font-size: 14px;
}

/* ---------- 글쓰기 ---------- */

.write-card {
  padding: 22px;

  background: rgba(255, 255, 255, .94);

  border-radius: 20px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, .06);
}

.form-group {
  margin-bottom: 22px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 8px;
}

.label-row label {
  font-size: 14px;
  font-weight: 700;
}

.label-row span {
  color: #aaa;
  font-size: 12px;
}

input,
textarea {
  width: 100%;

  padding: 14px 15px;

  border: 1px solid #ddd;
  border-radius: 13px;

  outline: none;

  background: #fafafa;

  color: #333;
  font: inherit;

  transition:
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

input:focus,
textarea:focus {
  border-color: #999;

  background: white;

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, .04);
}

textarea {
  min-height: 230px;
  resize: vertical;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;

  margin-top: 25px;
}

.cancel-button,
.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  border: 0;
  border-radius: 13px;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

.cancel-button {
  background: #eee;
  color: #666;
}

.submit-button {
  background: #333;
  color: white;
}

.cancel-button:active,
.submit-button:active {
  transform: scale(.98);
}

/* ---------- 모바일 ---------- */

@media (max-width: 420px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 26px;
  }

  .write-card {
    padding: 18px;
  }

  .post-meta {
    flex-direction: column;
    gap: 4px;
  }
}
/* ---------- 글 상세 ---------- */

.post-title {
  color: #333;
}

.post-title:hover {
  text-decoration: underline;
}

.detail-card {
  padding: 24px;
  background: rgba(255, 255, 255, .94);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.detail-author {
  margin-bottom: 12px;
  color: #666;
  font-size: 14px;
  font-weight: 700;
}

.detail-title {
  margin: 0 0 8px;
  font-size: 25px;
}

.detail-time {
  color: #999;
  font-size: 12px;
}

.detail-divider {
  height: 1px;
  margin: 22px 0;
  background: #eee;
}

.detail-content {
  min-height: 120px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-preview {
  margin-top: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, .72);
  border-radius: 18px;
}

.comment-title {
  margin-bottom: 15px;
  font-weight: 700;
}

.comment-empty {
  padding: 20px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ---------- 로그인 ---------- */

.login-page {
  max-width: 460px;
}

.login-card {
  margin-top: 35px;
  padding: 28px 24px;

  background: rgba(255, 255, 255, .94);
  border-radius: 22px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, .06);
}

.login-icon {
  margin-bottom: 12px;
  font-size: 38px;
}

.login-card h1 {
  margin-bottom: 6px;
}

.login-description {
  margin: 0 0 28px;
  color: #888;
}

.login-label {
  display: block;
  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 700;
}

.login-error {
  margin-bottom: 20px;
  padding: 12px 14px;

  border-radius: 12px;

  background: #fff0f0;
  color: #b85050;

  font-size: 14px;
}

.login-button {
  width: 100%;
  min-height: 50px;

  border: 0;
  border-radius: 13px;

  background: #333;
  color: white;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

.login-button:active {
  transform: scale(.98);
}
/* ---------- 로그인 상태 ---------- */

.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 22px;
  padding: 12px 14px;

  background: rgba(255, 255, 255, .72);
  border-radius: 14px;

  font-size: 13px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;

  color: #666;
}

.user-avatar {
  font-size: 16px;
}

.role-badge {
  margin-left: 3px;
  padding: 3px 7px;

  background: #333;
  color: white;

  border-radius: 8px;

  font-size: 10px;
  font-weight: 700;
}

.logout-form {
  margin: 0;
}

.logout-button,
.login-link {
  border: 0;
  border-radius: 9px;

  padding: 7px 10px;

  background: #eee;
  color: #555;

  font: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
}

.logout-button:hover,
.login-link:hover {
  background: #e5e5e5;
}
/* ---------- 게시글 관리 ---------- */

.post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;

  margin-top: 25px;
}

.edit-button {
  padding: 8px 13px;

  border-radius: 10px;

  background: #eee;
  color: #555;

  font-size: 13px;
  font-weight: 700;
}

.edit-button:hover {
  background: #e3e3e3;
}
.delete-button {
  padding: 8px 13px;

  border: 0;
  border-radius: 10px;

  background: #fff0f0;
  color: #b85050;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.delete-button:hover {
  background: #ffe2e2;
}

.post-actions form {
  margin: 0;
}

/* ---------- 댓글 ---------- */

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.comment-item {
  padding: 14px;
  background: rgba(255, 255, 255, .9);
  border-radius: 13px;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  margin-bottom: 8px;

  color: #999;
  font-size: 12px;
}

.comment-meta strong {
  color: #555;
}

.comment-content {
  color: #444;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-form {
  margin-top: 18px;
}

.comment-form textarea {
  min-height: 90px;
  margin-bottom: 8px;
  resize: vertical;
}

.comment-form button {
  width: 100%;
  min-height: 43px;

  border: 0;
  border-radius: 11px;

  background: #333;
  color: white;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}
/* ---------- 게시판 카드 구역 분리 ---------- */

.post-card {
  padding: 18px;
  background: rgba(255, 255, 255, .92);
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.post-meta-box {
  margin-bottom: 12px;
  padding: 12px 14px;

  background: #f1f1f1;
  border-radius: 14px;
}

.post-author-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-content-box {
  margin-bottom: 12px;
  padding: 18px 16px;

  background: #f7f7f7;
  border-radius: 16px;
}

.post-content-box h2 {
  margin: 0 0 12px;
}

.post-preview {
  margin: 0;
  color: #555;
  line-height: 1.7;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-footer-line {
  display: flex;
  justify-content: flex-end;
}

.comment-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 8px 12px;

  background: #ece8f8;
  color: #5b5470;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.comment-bubble:hover {
  background: #e3ddf5;
}

.post-time {
  color: #999;
  font-size: 12px;
}

/* ---------- 댓글 관리 ---------- */

.comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.comment-actions form {
  margin: 0;
}

.comment-delete-button {
  padding: 5px 9px;

  border: 0;
  border-radius: 8px;

  background: #fff0f0;
  color: #b85050;

  font: inherit;
  font-size: 11px;
  font-weight: 700;

  cursor: pointer;
}

.comment-delete-button:hover {
  background: #ffe1e1;
}

.comment-edit-button {
  padding: 5px 9px;

  border-radius: 8px;

  background: #f0eef8;
  color: #625a78;

  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.comment-edit-button:hover {
  background: #e5e0f4;
}

/* ---------- 댓글 UI 다듬기 ---------- */

.comment-list {
  gap: 16px;
}

.comment-item {
  position: relative;

  padding: 14px 16px 13px;

  background: #f5f3fa;

  border: 1px solid rgba(110, 100, 140, .08);
  border-radius: 18px 18px 18px 6px;

  box-shadow: 0 3px 10px rgba(0, 0, 0, .025);
}

/* 말풍선 꼬리 */
.comment-item::after {
  content: "";

  position: absolute;
  left: 9px;
  bottom: -6px;

  width: 12px;
  height: 12px;

  background: #f5f3fa;

  border-left: 1px solid rgba(110, 100, 140, .08);
  border-bottom: 1px solid rgba(110, 100, 140, .08);

  transform: rotate(-45deg);
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 8px;
  margin-bottom: 10px;

  border-bottom: 1px solid rgba(100, 90, 120, .10);

  color: #999;
  font-size: 11px;
}

.comment-meta strong {
  color: #514d5d;
  font-size: 13px;
}

.comment-content {
  min-height: 24px;

  color: #46424e;

  font-size: 14px;
  line-height: 1.65;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-actions {
  gap: 5px;
  margin-top: 10px;
}

.comment-edit-button,
.comment-delete-button {
  padding: 4px 8px;

  font-size: 10px;
}

/* 댓글 입력창도 살짝 정리 */
.comment-form {
  padding-top: 18px;
  margin-top: 22px;

  border-top: 1px solid rgba(100, 90, 120, .10);
}

.comment-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 90px;

  padding: 13px 14px;

  border: 1px solid #ddd8e8;
  border-radius: 14px;

  background: rgba(255, 255, 255, .9);

  font: inherit;
  line-height: 1.6;

  outline: none;
}

.comment-form textarea:focus {
  border-color: #aaa1c4;
}

.comment-form button {
  margin-top: 5px;
  border-radius: 13px;
}

/* ---------- 게시글 상세 UI ---------- */

.post-detail-card {
  margin-top: 18px;
  padding: 18px;

  background: rgba(255, 255, 255, .94);

  border-radius: 22px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.post-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  margin-bottom: 12px;

  background: #f1f1f1;

  border-radius: 14px;
}

.detail-author {
  color: #4e4b55;
  font-size: 13px;
}

.detail-time {
  color: #999;
  font-size: 11px;
}

.post-detail-body {
  padding: 20px 18px 16px;

  background: #f7f7f7;

  border-radius: 16px;
}

.detail-title {
  margin: 0 0 22px;

  color: #24222a;

  font-size: 22px;
  line-height: 1.35;
}

.detail-content {
  min-height: 100px;

  padding: 4px 4px 20px;

  color: #4b4751;

  font-size: 15px;
  line-height: 1.8;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-detail-body .post-actions {
  padding-top: 12px;
  margin-top: 10px;

  border-top: 1px solid rgba(100, 90, 120, .09);
}

.post-detail-card + .comment-preview {
  margin-top: 18px;
}

/* ---------- 미세 UI 정리 ---------- */

/* 상세글 전체 카드 */
.post-detail-card {
  padding: 16px;
}

/* 작성자 영역은 조금 더 얇게 */
.post-detail-meta {
  padding: 11px 14px;
  margin-bottom: 10px;
}

/* 본문 박스 */
.post-detail-body {
  padding: 18px 18px 16px;
}

.detail-title {
  margin-bottom: 18px;
}

.detail-content {
  min-height: 90px;
  padding: 8px 6px 18px;

  line-height: 1.75;
}

/* 댓글 영역 제목 */
.comment-title {
  margin-bottom: 14px;
}

/* 댓글 말풍선 */
.comment-item {
  padding: 13px 15px 12px;
}

.comment-content {
  padding: 3px 6px;
}

/* 수정 / 삭제 버튼 */
.comment-actions {
  gap: 6px;
  margin-top: 12px;
}

.comment-edit-button,
.comment-delete-button {
  min-width: 32px;
  text-align: center;
}

/* 댓글 입력 부분 */
.comment-form {
  margin-top: 20px;
  padding-top: 18px;
}

.comment-form textarea {
  min-height: 82px;
}

.comment-form button {
  min-height: 44px;
}

/* 모바일에서 카드가 화면에 너무 붙지 않게 */
@media (max-width: 520px) {
  .post-detail-card,
  .comment-preview {
    border-radius: 20px;
  }

  .post-detail-body {
    padding: 17px 15px 15px;
  }
}
.detail-image {
  margin-top: 20px;
}

.detail-image img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}
.edit-current-image {
  margin: 12px 0;
  text-align: center;
}

.edit-current-image img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}
.post-large {
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.5;
}

.text-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.text-tools button {
  width: auto;
  padding: 7px 11px;
  border: 1px solid #ddd;
  border-radius: 9px;
  background: #f5f5f5;
  color: #444;
  font-weight: 700;
  cursor: pointer;
}

select {
  width: 100%;
  padding: 14px 15px;

  border: 1px solid #ddd;
  border-radius: 13px;

  outline: none;
  background: #fafafa;

  color: #333;
  font: inherit;
}

select:focus {
  border-color: #999;
  background: white;

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, .04);
}

/* ---------- 게시판 카테고리 ---------- */

.board-page {
  position: relative;
}

.category-nav {
  position: absolute;
  top: 272px;
  right: calc(100% + 80px);

  width: 175px;
  padding: 16px;

  background: rgba(255, 255, 255, .86);
  border-radius: 16px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, .055);
}

.category-nav-title {
  margin-bottom: 12px;

  color: #555;
  font-size: 14px;
  font-weight: 700;
}

.category-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-link {
  display: block;
  padding: 10px 11px;

  border-radius: 10px;

  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.category-link:hover {
  background: #f3f3f3;
  color: #333;
}

.category-link.active {
  background: #333;
  color: white;
}


/* ---------- 카테고리 모바일 ---------- */

@media (max-width: 760px) {

  .category-nav {
    position: static;

    width: 100%;
    margin-bottom: 18px;
    padding: 0;

    background: transparent;
    box-shadow: none;
  }

  .category-nav-title {
    display: none;
  }

  .category-links {
    flex-direction: row;
    gap: 7px;

    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-link {
    flex: 0 0 auto;

    padding: 9px 12px;

    background: rgba(255, 255, 255, .72);
    white-space: nowrap;
  }

  .category-link.active {
    background: #333;
    color: white;
  }
}

/* 새 글 N 배지 */
.category-link {
  position: relative;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff5f7e;
  color: white;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 760px) {
  .new-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0 4px;
    font-size: 9px;
  }
}

.button.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ================================
   게임 창고
================================ */

.game-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-hero-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  border-radius: 18px;
  background: #f3f0ff;

  font-size: 28px;
}

.game-hero h1 {
  margin: 0 0 6px;
}

.game-hero p {
  margin: 0;
}


.game-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 12px;
}

.game-card-head h2 {
  margin: 0;
}


.game-status,
.game-access-badge,
.game-lock-badge {
  flex: 0 0 auto;

  padding: 5px 9px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
}

.game-status {
  background: #fff1cc;
  color: #805b00;
}

.game-access-badge {
  background: #e9f8ee;
  color: #257543;
}

.game-lock-badge {
  background: #eeeeee;
  color: #777;
}


.game-card-main {
  font-weight: 700;
}

.game-card-sub {
  color: #777;
  font-size: 14px;
}


.game-dev-card {
  border: 1px solid rgba(0, 0, 0, .06);
}

.game-dev-card.locked {
  background: rgba(245, 245, 245, .75);
}


/* 모바일 */
@media (max-width: 760px) {
  .game-hero {
    align-items: flex-start;
  }

  .game-hero-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 24px;
  }

  .game-card-head {
    align-items: flex-start;
  }
}

/* 게임 창고 카드 간격 */
.game-hero,
.game-project-card,
.game-dev-card {
  margin-bottom: 20px;
}

.game-dev-card {
  padding: 18px;
}

/* 게임 창고 UI 2차 정리 */

.game-project-card,
.game-dev-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .045);
}

.game-project-card {
  border: 1px solid rgba(0, 0, 0, .045);
}

.game-dev-card {
  border: 1px solid rgba(0, 0, 0, .06);
}

.game-dev-card.locked {
  background: rgba(248, 248, 248, .9);
}

.game-card-head {
  margin-bottom: 16px;
}

.game-card-main {
  margin: 0 0 10px;
  font-size: 16px;
}

.game-card-sub {
  margin: 0;
  line-height: 1.65;
}

.game-status,
.game-access-badge,
.game-lock-badge {
  letter-spacing: .02em;
}

.game-status {
  background: #fff0bd;
}

.game-lock-badge {
  background: #ececec;
  color: #666;
}

.game-access-badge {
  background: #e5f7eb;
  color: #247442;
}

.game-dev-card .button {
  margin-top: 8px;
}

.game-dev-card .button.disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  background: #ededed;
  color: #888;
  box-shadow: none;
}

.game-hero {
  margin-bottom: 24px;
}

.game-project-card,
.game-dev-card {
  margin-bottom: 22px;
}

@media (max-width: 760px) {
  .game-project-card,
  .game-dev-card {
    padding: 17px;
    border-radius: 16px;
  }

  .game-card-head {
    margin-bottom: 13px;
  }
}

.game-dev-card .button.disabled {
  padding: 10px 14px;
  border-radius: 12px;
  background: #ececec;
  color: #888;
  font-weight: 700;
  text-decoration: none;
}

.game-back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 10px 14px;

  border-radius: 12px;
  background: rgba(255, 255, 255, .75);
  color: #444;
  font-weight: 700;
  text-decoration: none;
}

.game-back-link:hover {
  background: white;
}

/* 제작자 공간 */

.dev-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dev-hero-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  border-radius: 18px;
  background: #eef3ff;

  font-size: 27px;
}

.dev-hero h1 {
  margin: 0 0 6px;
}

.dev-hero p {
  margin: 0;
}

.dev-work-card {
  margin-bottom: 22px;
  padding: 20px;

  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .045);
}

.dev-ready-badge {
  flex: 0 0 auto;

  padding: 5px 9px;
  border-radius: 999px;

  background: #eeeeee;
  color: #777;

  font-size: 11px;
  font-weight: 800;
}

.dev-placeholder {
  margin-top: 14px;
  padding: 18px;

  border: 1px dashed #d8d8d8;
  border-radius: 14px;

  background: rgba(248, 248, 248, .75);
  color: #888;

  font-size: 14px;
  text-align: center;
}

@media (max-width: 760px) {
  .dev-hero {
    align-items: flex-start;
  }

  .dev-hero-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 23px;
  }

  .dev-work-card {
    padding: 17px;
    border-radius: 16px;
  }
}

/* 개발자료 - 그림 목록 */

.dev-art-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.dev-art-item:last-child {
  border-bottom: 0;
}

.dev-art-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dev-art-info strong {
  font-size: 16px;
}

.dev-art-info span {
  color: #888;
  font-size: 13px;
}

.dev-art-thumb {
  flex: 0 0 auto;

  width: 64px;
  height: 64px;

  border-radius: 12px;
  object-fit: cover;
}

/* 개발자료 작성 폼 */

.dev-resource-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 22px;
}

.dev-resource-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;

  font-weight: 700;
}

.dev-resource-form input[type="text"],
.dev-resource-form textarea,
.dev-resource-form input[type="file"] {
  margin: 0;
}

.dev-resource-form textarea {
  min-height: 220px;
  resize: vertical;
}

.dev-resource-form input[type="file"] {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
}

.dev-resource-form .button {
  align-self: flex-start;
  margin-top: 2px;
  padding: 11px 18px;
}

@media (max-width: 760px) {
  .dev-resource-form {
    gap: 17px;
    margin-top: 18px;
  }

  .dev-resource-form textarea {
    min-height: 190px;
  }
}

/* 개발자료 등록 버튼 정리 */
.dev-resource-form .button {
  align-self: flex-start;

  margin-top: 6px;
  padding: 12px 20px;

  border: 0;
  border-radius: 13px;

  background: #333;
  color: white;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .08);
}

.dev-resource-form .button:hover {
  background: #222;
}

.dev-resource-form + .game-back-link {
  margin-top: 28px;
}

/* 개발자료 작성 버튼 */

.dev-submit-button {
  align-self: flex-start;

  margin-top: 8px;
  padding: 12px 20px;

  border: 0;
  border-radius: 13px;

  background: #333;
  color: #fff;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .08);
}

.dev-submit-button:hover {
  background: #222;
}

.dev-form-back {
  display: block;
  width: fit-content;
  margin-top: 36px;
}

/* 개발자료 작성 하단 버튼 배치 */

.dev-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.dev-form-actions .dev-submit-button {
  margin: 0;
  padding: 12px 20px;

  border: 0;
  border-radius: 13px;

  background: #333;
  color: #fff;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .08);
}

.dev-form-actions .dev-submit-button:hover {
  background: #222;
}

.dev-form-back {
  display: block;
  width: fit-content;
  margin-top: 26px;
}

/* 개발자료 상세 */

.dev-art-title {
  color: #222;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.dev-art-title:hover {
  text-decoration: underline;
}

.dev-detail-head {
  margin-bottom: 22px;
}

.dev-detail-head h1 {
  margin: 0 0 8px;
}

.dev-detail-meta {
  color: #888;
  font-size: 13px;
}

.dev-detail-image {
  display: block;
  max-width: 100%;
  max-height: 720px;
  margin: 0 auto 24px;

  border-radius: 16px;
  object-fit: contain;
}

.dev-detail-content {
  line-height: 1.75;
  white-space: normal;
}

/* 개발자료 수정 */

.dev-edit-current-image {
  display: flex;
  flex-direction: column;
  gap: 10px;

  font-weight: 700;
}

.dev-edit-current-image img {
  display: block;
  max-width: 100%;
  max-height: 420px;

  border-radius: 14px;
  object-fit: contain;
}

.dev-detail-actions {
  display: flex;
  justify-content: flex-end;

  margin-top: 26px;
}

.dev-edit-button {
  display: inline-flex;
  padding: 10px 15px;

  border-radius: 12px;
  background: #333;
  color: white;

  font-weight: 700;
  text-decoration: none;
}

.dev-edit-button:hover {
  background: #222;
}

.dev-detail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.dev-detail-actions form {
  margin: 0;
}

.dev-delete-button {
  padding: 10px 15px;

  border: 0;
  border-radius: 12px;

  background: #f1f1f1;
  color: #666;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

.dev-delete-button:hover {
  background: #e5e5e5;
}

/* 개발자료 댓글 */

.dev-comments {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #e8e8e8;
}

.dev-comments h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.dev-comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-comment-form textarea {
  min-height: 90px;
  padding: 14px;

  border: 1px solid #ddd;
  border-radius: 13px;

  font: inherit;
  line-height: 1.6;

  resize: vertical;
}

.dev-comment-actions {
  display: flex;
  justify-content: flex-end;
}

.dev-comment-actions button {
  padding: 10px 15px;

  border: 0;
  border-radius: 12px;

  background: #333;
  color: #fff;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

.dev-comment-actions button:hover {
  background: #222;
}

.dev-comment-list {
  margin-top: 24px;
}

.dev-comment {
  padding: 16px 0;
  border-top: 1px solid #eee;
}

.dev-comment-meta {
  display: flex;
  align-items: center;
  gap: 5px;

  margin-bottom: 8px;

  color: #888;
  font-size: 13px;
}

.dev-comment-meta strong {
  color: #555;
}

.dev-comment-content {
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.dev-comment-empty {
  color: #999;
}

/* 개발자료 댓글 관리 */

.dev-comment-manage {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;

  margin-top: 8px;

  font-size: 13px;
}

.dev-comment-manage a {
  color: #777;
  font-weight: 700;
  text-decoration: none;
}

.dev-comment-manage a:hover {
  text-decoration: underline;
}

.dev-comment-manage form {
  margin: 0;
}

.dev-comment-manage button {
  padding: 0;

  border: 0;
  background: none;

  color: #999;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

.dev-comment-manage button:hover {
  color: #555;
}

.dev-comment-cancel {
  margin-right: 6px;

  color: #777;
  font-weight: 700;
  text-decoration: none;
}

/* 개발자료 댓글 수정 화면 */

.dev-comment-edit-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
}

.dev-comment-edit-card h1 {
  margin: 0;
}

.dev-comment-edit-guide {
  margin: 8px 0 24px;
  color: #888;
  font-size: 14px;
}

.dev-comment-edit-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dev-comment-edit-form textarea {
  min-height: 150px;
  padding: 16px;

  border: 1px solid #ddd;
  border-radius: 14px;

  background: #fff;

  font: inherit;
  line-height: 1.65;

  resize: vertical;
}

.dev-comment-edit-form textarea:focus {
  outline: none;
  border-color: #aaa;
}

.dev-comment-edit-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.dev-comment-edit-cancel,
.dev-comment-edit-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 10px 17px;

  border-radius: 12px;

  font: inherit;
  font-weight: 700;
  text-decoration: none;

  cursor: pointer;
}

.dev-comment-edit-cancel {
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
}

.dev-comment-edit-cancel:hover {
  background: #f5f5f5;
}

.dev-comment-edit-submit {
  border: 0;
  background: #333;
  color: #fff;
}

.dev-comment-edit-submit:hover {
  background: #222;
}

/* 게임 / 제작자 공간 공통 하단 네비게이션 */

.game-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;

  margin-top: 24px;
}

.game-nav-row .game-back-link {
  margin-top: 0;
}

/* 제작자 공간 - 개발 자료 */

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

  margin-top: 20px;
}

.dev-resource-item {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
  padding: 18px;

  border: 1px solid #ececec;
  border-radius: 16px;

  background: rgba(255, 255, 255, .9);
  color: #222;

  text-decoration: none;

  box-shadow: 0 5px 16px rgba(0, 0, 0, .035);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

.dev-resource-item:hover {
  transform: translateY(-2px);
  border-color: #dddddd;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .06);
}

.dev-resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 48px;
  height: 48px;

  border-radius: 14px;

  background: #f7f5ff;

  font-size: 25px;
}

.dev-resource-item > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 5px;

  min-width: 0;
}

.dev-resource-item strong {
  font-size: 16px;
  font-weight: 800;
}

.dev-resource-item span {
  color: #777;
  font-size: 13px;
  line-height: 1.45;
}

/* 이제 실제 사용 가능한 기능 */
.dev-ready-badge {
  background: #f0f6f1;
  color: #5f7763;
}

@media (max-width: 760px) {
  .dev-resource-grid {
    grid-template-columns: 1fr;
  }

  .dev-resource-item {
    padding: 16px;
  }
}
/* 개발자료 1단계 답글 */

.dev-comment-reply {
  margin-left: 42px;
}

.dev-reply-mark {
  font-weight: 700;
}

.dev-reply-form-wrap summary {
  cursor: pointer;
}

.dev-reply-form {
  margin-top: 10px;
}

.dev-reply-form textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  box-sizing: border-box;
}

.dev-reply-form button {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .dev-comment-reply {
    margin-left: 20px;
  }
}

/* 일반 게시판 1단계 답글 */
.comment-item-reply {
  margin-left: 42px;
}

.comment-reply-mark {
  font-weight: 700;
}

.comment-reply-form-wrap summary {
  cursor: pointer;
}

.comment-reply-form {
  margin-top: 10px;
}

.comment-reply-form textarea {
  width: 100%;
  min-height: 80px;
  box-sizing: border-box;
  resize: vertical;
}

@media (max-width: 640px) {
  .comment-item-reply {
    margin-left: 20px;
  }
}
/* ========================================
   일반 게시판 답글 UI 정리
   ======================================== */

.comment-reply-form-wrap {
  display: inline-block;
}

.comment-reply-form-wrap summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 12px;
  border-radius: 12px;

  background: #f3f0fa;
  color: #555;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  list-style: none;
  user-select: none;
}

.comment-reply-form-wrap summary::-webkit-details-marker {
  display: none;
}

.comment-reply-form-wrap summary::before {
  content: "↳";
  margin-right: 5px;
}

.comment-reply-form-wrap[open] {
  display: block;
  width: 100%;
}

.comment-reply-form-wrap[open] summary {
  margin-bottom: 10px;
}

.comment-reply-form {
  width: 100%;
}

.comment-reply-form textarea {
  display: block;

  width: 100%;
  min-height: 90px;
  padding: 14px;

  border: 1px solid #ddd8e8;
  border-radius: 14px;

  background: #fff;
  color: #333;

  font: inherit;
  line-height: 1.5;

  resize: vertical;
  box-sizing: border-box;
}

.comment-reply-form textarea:focus {
  outline: none;
  border-color: #bbb2cf;
}

.comment-reply-form button {
  display: block;
  margin: 10px 0 0 auto;

  padding: 9px 15px;
  border: 0;
  border-radius: 12px;

  background: #333;
  color: #fff;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.comment-reply-form button:hover {
  opacity: 0.88;
}

/* 테스트 빌드 다운로드 */
.dev-build-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  background: rgba(248, 248, 248, .75);
}

.dev-build-download > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dev-build-download strong {
  font-size: 15px;
}

.dev-build-download span {
  font-size: 13px;
  color: #777;
}

.dev-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dev-download-button:hover {
  opacity: .88;
}

@media (max-width: 760px) {
  .dev-build-download {
    align-items: stretch;
    flex-direction: column;
  }

  .dev-download-button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* 테스트 빌드 메타정보 */
.dev-build-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.dev-build-meta > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 12px;
  background: rgba(248, 248, 248, .75);
}

.dev-build-meta span {
  font-size: 12px;
  color: #777;
}

.dev-build-meta strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .dev-build-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 테스트 빌드 설명 / 변경사항 / 알려진 문제 */
.dev-build-notes {
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  background: rgba(248, 248, 248, .65);
}

.dev-build-notes h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.dev-build-notes p,
.dev-build-notes ul {
  margin: 0;
  line-height: 1.65;
  font-size: 14px;
}

.dev-build-notes ul {
  padding-left: 20px;
}

/* 이전 테스트 빌드 목록 */
.dev-build-history {
  margin-top: 20px;
}

.dev-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.dev-history-item:first-of-type {
  border-top: 0;
}

.dev-history-item > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dev-history-item strong {
  font-size: 14px;
}

.dev-history-item span {
  font-size: 13px;
  color: #777;
}

@media (max-width: 760px) {
  .dev-history-item {
    align-items: stretch;
    flex-direction: column;
  }

  .dev-history-item .dev-download-button {
    width: 100%;
    box-sizing: border-box;
  }
}
