@charset "UTF-8";

/* ==========================================================
   sub.css - 페이지별 스타일
   (공통 레이아웃 / 컴포넌트는 common.css)

   1. 로그인 / 회원가입
   2. 충전 / 출금
   3. 이벤트
   4. 고객센터
   5. 메인
   6. Responsive (MO)
   ========================================================== */

:root {
  /* 이벤트 */
  --color-navy: #171b35;
  --color-hot: #e30b64;
  --color-hot-bg: #fff0f7;
  --color-sub: #74798b;
  --color-ink: #1a1c29;
  --color-box: #f8f8fb;
  --color-option-line: #e5e7ee;
  --color-success: #48a24f;
  --color-gold: #ffd43b;
  --color-slate: #5e6688;
  --shadow-card: 0 10px 28px 0 rgba(23, 27, 53, 0.07);
  --shadow-hot: 0 10px 22px 0 rgba(227, 11, 100, 0.22);
}


/* ==========================================================
   1. 로그인 / 회원가입
   ========================================================== */
.login-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 0;
}
.login-card { height: 400px; }

/* 회원가입 모달 */
.join-card { border-radius: var(--radius-lg); }

/* 로그인 ↔ 회원가입 전환: 모달이 열리면 로그인 카드와 페이지 딤을 숨김 (딤 중복 방지) */
.page-login.is-modal-open > .dim,
.page-login.is-modal-open .login-wrap { visibility: hidden; }


/* ==========================================================
   2. 충전 / 출금
   ※ 보유머니 박스, 금액 입력, 빠른 금액 선택은 common.css
   ========================================================== */
.amount-section { display: flex; flex-direction: column; gap: 12px; }

/* 입금 계좌 */
.account-section { display: flex; flex-direction: column; gap: 14px; }
.account-fields {
  display: grid;
  grid-template-columns: 180px 190px 1fr;
  gap: 12px;
}

/* 신청 버튼 */
.submit-area { display: flex; justify-content: center; }
.submit-area .btn-primary { width: 152px; }

/* 환급내역 */
.record-panel { gap: 20px; }
.record-title { font-size: 20px; font-weight: 800; line-height: normal; color: var(--color-heading); }
.record-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  line-height: normal;
  text-align: center;
}
.record-table .col-date { width: 200px; }
.record-table .col-name { width: 250px; }
.record-table .col-status { width: 200px; }
.record-table .col-del { width: 200px; }
.record-table th,
.record-table td { padding: 0 8px; }
.record-table .ta-r,
.record-table .amount { padding-right: 32px; }
.record-table thead th {
  height: 48px;
  border-top: 2px solid var(--color-brand);
  border-bottom: 1px solid var(--color-line);
  background: #fafafb;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-body);
}
.record-table tbody td {
  height: 64px;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
  color: var(--color-heading);
}
.record-table .date { color: var(--color-body); }
.record-table .amount { font-size: 16px; font-weight: 700; white-space: nowrap; }
.record-table .amount .unit { margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--color-body); }
.record-table tr:has(+ .reason-row) td { border-bottom: 0; }
.record-table .reason-row td { height: auto; padding: 0 16px 16px; text-align: left; }
.reason {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-bg-soft);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-brand);
}
.reason strong { margin-right: 8px; font-weight: 700; }

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status-badge.is-cancel { background: var(--color-brand-bg); color: var(--color-brand); }
.status-badge.is-wait { background: #eef2fb; color: #4a6fc8; }
.status-badge.is-done { background: #ecf6ed; color: #3a8a41; }

.btn-del {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--color-stroke);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-body);
  transition: border-color 0.2s, color 0.2s;
}
.btn-del:hover { border-color: var(--color-brand); color: var(--color-brand); }
.btn-del:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.record-empty {
  padding: 40px 0;
  font-size: 14px;
  text-align: center;
  color: var(--color-body);
}


/* ==========================================================
   3. 이벤트
   ========================================================== */
.game {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* ----- 현재 회차 결과 ----- */
.game-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex: 1 1 870px;
  min-width: 0;
  min-height: 796px;
  padding: 150px 40px 28px;
  border-radius: 24px;
  background: var(--color-navy);
  box-shadow: var(--shadow-card);
}
.result-title {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 88px;
  font-size: 26px;
  font-weight: 800;
  line-height: normal;
  text-align: center;
  color: var(--color-gold);
}
.dice-list {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  justify-content: center;
  gap: 24px 30px;
}
.dice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dice-face {
  position: relative;
  width: 90px;
  height: 90px;
}
.dice-face img {
  position: absolute;
  top: -10px;
  left: -18px;
  max-width: none;
}
.dice-num {
  font-size: 20px;
  font-weight: 800;
  line-height: normal;
  color: var(--color-white);
}
.result-judge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.judge-badge {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--color-hot);
  font-size: 16px;
  font-weight: 800;
  line-height: normal;
  color: var(--color-white);
}
.judge-slash {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-slate);
}

/* ----- 다음 회차 베팅 ----- */
.game-bet {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 506px;
  min-height: 796px;
  padding: 28px;
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  line-height: normal;
}

.bet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bet-round { display: flex; flex-direction: column; gap: 6px; }
.bet-round .label { font-size: 13px; font-weight: 600; color: var(--color-sub); }
.bet-round .round {
  font-size: 23px;
  font-weight: 800;
  color: var(--color-navy);
  white-space: nowrap;
}
.bet-round .round small { font-size: 15px; font-weight: 600; color: var(--color-sub); }
.bet-status {
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--color-success);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-white);
  white-space: nowrap;
}
.bet-status.is-closed { background: var(--color-sub); }

.bet-deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: var(--color-box);
}
.bet-deadline .info { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.bet-deadline .info strong { font-weight: 800; color: var(--color-neutral); }
.bet-deadline .info span { font-weight: 500; color: var(--color-sub); }
.bet-deadline .timer {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.76px;
  color: var(--color-hot);
  font-variant-numeric: tabular-nums;
}

.bet-section { display: flex; flex-direction: column; gap: 10px; }
.bet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bet-section-head .title { font-size: 14px; font-weight: 700; color: var(--color-ink); }
.bet-section-head .help { font-size: 12px; font-weight: 600; color: var(--color-sub); }

/* 홀 / 짝 선택 */
.bet-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bet-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bet-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 82px;
  border: 1px solid var(--color-option-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.bet-option label strong { font-size: 22px; font-weight: 800; color: var(--color-navy); }
.bet-option label span { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; color: var(--color-sub); }
.bet-option label:hover { border-color: var(--color-hot); }
.bet-option input:checked + label {
  border: 2px solid var(--color-hot);
  background: var(--color-hot-bg);
}
.bet-option input:checked + label strong { color: var(--color-hot); }
.bet-option input:focus-visible + label { outline: 2px solid var(--color-hot); outline-offset: 2px; }

/* 버튼 */
.btn-game,
.btn-history {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hot);
  font-size: 16px;
  font-weight: 800;
}
.btn-game { background: var(--color-hot); color: var(--color-white); }
.btn-game:disabled { opacity: 0.4; box-shadow: none; cursor: not-allowed; }
.btn-history { background: var(--color-white); color: var(--color-brand); }

/* ----- 베팅내역 모달 ----- */
.history-list > li + li { border-top: 8px solid #f5f5f5; }
.history-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  line-height: normal;
  color: #444;
}
.history-item .row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.history-item .game-name { font-weight: 500; }
.history-item .game-round { font-weight: 600; }
.history-item .pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-white);
}
.history-item .pick-orange { background: #ff6b2b; }
.history-item .pick-blue { background: #4a9fe8; }
.history-item time { font-size: 12px; color: #888; }
.history-item .bet { display: flex; gap: 4px; font-size: 13px; }
.history-item .bet strong { font-weight: 600; }
.history-item .row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.history-item .win {
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brand);
}
.history-item .result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 32px;
  border-radius: 16px;
  background: var(--color-brand);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
}


/* ==========================================================
   4. 고객센터
   ========================================================== */
.page-title.is-end { align-items: flex-end; gap: 10px; }

.board-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 28px;
  border: 1px solid var(--color-stroke);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 8px 14px rgba(23, 24, 39, 0.04);
}

/* 게시물 목록 */
.board-list {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  line-height: normal;
  text-align: left;
}
.board-list .col-num { width: 82px; }
.board-list .col-cat { width: 132px; }
.board-list .col-date { width: 132px; }
.board-list .col-view { width: 102px; }
.board-list th,
.board-list td { padding: 0 6px; }
.board-list th:first-child,
.board-list td:first-child { padding-left: 16px; }
.board-list th:last-child,
.board-list td:last-child { padding-right: 16px; }

.board-list thead th {
  height: 48px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: #fafafb;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.3px;
  color: var(--color-body);
}
.board-list tbody td {
  height: 66px;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
  color: var(--color-body);
}
.board-list tbody tr:hover { background: #fcfcfd; }
.board-list .num { font-weight: 600; color: var(--color-heading); }
.board-list .subject a {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-list .subject a:hover { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }

.cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-brand-bg);
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-brand);
  white-space: nowrap;
}


/* ----- 게시글 보기 ----- */
.board-view {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  border: 1px solid var(--color-stroke);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 8px 14px rgba(23, 24, 39, 0.04);
  line-height: normal;
}
.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-stroke);
}
.view-title-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.view-title-area .cat-badge { min-width: 0; padding: 6px 12px; font-size: 14px; }
.view-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.96px;
  color: var(--color-dark);
}
.view-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  font-size: 14px;
  white-space: nowrap;
}
.view-meta div { display: flex; gap: 8px; }
.view-meta dt { color: var(--color-body); }
.view-meta dd { font-weight: 600; color: var(--color-dark); }

/* 본문 (에디터 콘텐츠) */
.view-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: #4b4d55;
}
.view-content section { display: flex; flex-direction: column; gap: 16px; }
.view-content h4 {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-dark);
}
.view-content ul { display: flex; flex-direction: column; gap: 12px; }
.view-content li {
  padding-left: 16px;
  background: url("../img/ico_bullet.svg") no-repeat 0 11px / 6px 6px;
}

/* 이전 글 / 다음 글 */
.view-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--color-stroke);
  font-size: 14px;
}
.view-nav a {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.view-nav .label { flex-shrink: 0; color: var(--color-body); }
.view-nav .subject {
  overflow: hidden;
  font-weight: 600;
  color: var(--color-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.view-nav a:hover .subject { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }

/* ----- 목록 하단 (페이지 번호 + 글쓰기) ----- */
.board-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.board-foot .pagination { grid-column: 2; }
.board-foot .btn-write { grid-column: 3; justify-self: end; }

/* ----- 글쓰기 / 수정 ----- */
.board-form { gap: 24px; padding: 40px; }
.form-row { display: flex; flex-direction: column; gap: 10px; }
.form-row .form-label .req { margin-left: 2px; color: var(--color-brand); }
.form-row select.field { width: 240px; }
textarea.field {
  height: 360px;
  padding: 15px;
  font-weight: 500;
  line-height: 1.7;
  resize: vertical;
}
.form-row .form-help { line-height: normal; }


/* ==========================================================
   5. 메인
   ========================================================== */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.56px;
  color: var(--color-neutral);
}
.section-title .heart { font-weight: 700; line-height: normal; letter-spacing: 0; color: var(--color-brand); }

.profile-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.profile-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 470px;
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px 0 rgba(0, 0, 0, 0.1); }
.profile-card:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.profile-photo {
  position: relative;
  height: 350px;
  background: #2e2426;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.profile-distance {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.91);
  font-size: 11px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-primary);
}
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}
.profile-spec {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.16px;
  color: var(--color-neutral);
}
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-tags li {
  padding: 5px 9px;
  border-radius: 16px;
  background: var(--color-brand-bg);
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-brand);
}


/* ==========================================================
   6. Responsive (MO)
   ========================================================== */
@media (max-width: 767px) {
  /* 로그인 */
  .login-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
  }

  /* 충전 / 출금 */
  .form-label-row { flex-wrap: wrap; }
  .account-fields { grid-template-columns: 1fr 1fr; gap: 12px 8px; }
  .account-fields .field-account { grid-column: 1 / -1; }
  .submit-area .btn-primary { width: 100%; }

  /* 환급내역 - 표를 카드형으로 */
  .record-title { font-size: 18px; }
  .record-table,
  .record-table tbody { display: block; }
  .record-table colgroup,
  .record-table thead { display: none; }
  .record-table tbody tr:not(.reason-row) {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date   status"
      "amount amount"
      "name   del";
    align-items: center;
    gap: 6px 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-line);
  }
  .record-table tbody tr:has(+ .reason-row) { padding-bottom: 10px; border-bottom: 0; }
  .record-table tbody td,
  .record-table .amount {
    height: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .record-table .date { grid-area: date; font-size: 13px; }
  .record-table .status { grid-area: status; text-align: right; }
  .record-table .amount { grid-area: amount; font-size: 20px; }
  .record-table .name { grid-area: name; font-size: 13px; color: var(--color-body); }
  .record-table .name::before { content: "입금자 "; }
  .record-table .del { grid-area: del; text-align: right; }
  .record-table .reason-row { display: block; padding-bottom: 16px; border-bottom: 1px solid var(--color-line); }
  .record-table .reason-row td { display: block; padding: 0; }
  .reason { padding: 10px 12px; }
  .reason strong { display: block; margin: 0 0 2px; }

  /* 이벤트 */
  .game { flex-direction: column; gap: 16px; }
  .game-result {
    flex: none;
    gap: 20px;
    min-height: 0;
    padding: 40px 16px 32px;
    border-radius: 20px;
  }
  .result-title { height: auto; font-size: 20px; }
  .dice-list { gap: 20px 12px; }
  .game-bet {
    flex: none;
    gap: 18px;
    min-height: 0;
    padding: 20px;
    border-radius: 20px;
  }
  .bet-round .round { font-size: 20px; }
  .bet-deadline .timer { font-size: 32px; }
  .bet-section-head { flex-wrap: wrap; }

  /* 고객센터 - 표를 카드형 목록으로 */
  .board-card { gap: 20px; padding: 8px 16px 24px; }
  .board-list,
  .board-list tbody { display: block; }
  .board-list colgroup,
  .board-list thead { display: none; }
  .board-list tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-line);
  }
  .board-list tbody tr:hover { background: none; }
  .board-list tbody td,
  .board-list tbody td:first-child,
  .board-list tbody td:last-child {
    height: auto;
    padding: 0;
    border: 0;
  }
  .board-list .num { display: none; }
  .board-list .category { order: 1; }
  .board-list .subject { order: 2; flex: 1 1 100%; min-width: 0; }
  .board-list .subject a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
  .board-list .date,
  .board-list .view { order: 3; font-size: 13px; }
  .board-list .view::before { content: "조회 "; }
  .board-list .date::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 10px;
    margin-left: 10px;
    background: var(--color-line-strong);
  }
  .cat-badge { min-width: 0; }

  /* 고객센터 - 게시글 보기 */
  .board-view { gap: 24px; padding: 24px 20px; }
  .view-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
  }
  .view-title-area .cat-badge { padding: 5px 10px; font-size: 12px; }
  .view-title { font-size: 22px; letter-spacing: -0.66px; }
  .view-meta { flex-direction: row; gap: 16px; font-size: 13px; }
  .view-content { gap: 20px; font-size: 15px; }
  .view-content section { gap: 12px; }
  .view-content h4 { font-size: 18px; }
  .view-content li { background-position: 0 10px; }
  .view-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 20px;
    font-size: 13px;
  }
  .btn-group .btn-lg { flex: 1; width: auto; height: 48px; }

  /* 고객센터 - 목록 하단 / 글쓰기 */
  .board-foot { grid-template-columns: 1fr; gap: 16px; }
  .board-foot .pagination,
  .board-foot .btn-write { grid-column: 1; }
  .board-foot .btn-write { justify-self: stretch; height: 44px; }
  .board-form { gap: 20px; padding: 24px 20px; }
  .form-row select.field { width: 100%; }
  textarea.field { height: 280px; }

  /* 메인 */
  .section-title { gap: 10px; font-size: 20px; letter-spacing: -0.4px; }
  .profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .profile-card { min-height: 0; border-radius: 14px; }
  .profile-photo { height: auto; aspect-ratio: 3 / 4; }
  .profile-info { gap: 8px; padding: 10px 12px 12px; }
  .profile-spec { font-size: 14px; }
  .profile-tags { gap: 5px; }
  .profile-tags li { padding: 4px 7px; font-size: 11px; }
}
