.coffee-session { display:flex; align-items:center; gap:14px; min-height:34px; color:#f6f0e2; }
.coffee-session strong { font-size:12px; font-weight:600; color:#d9cbb0; }
.coffee-session span { color:#e4c78a; font-size:13px; font-weight:750; font-variant-numeric:tabular-nums; letter-spacing:-.2px; }
.coffee-session em { margin-right:4px; color:#cbb992; font-size:11px; font-style:normal; font-weight:600; }
.coffee-session a { font-size:12px; font-weight:600; color:#d9cbb0; }
.coffee-session a:hover { color:#fff8e8; text-decoration:underline; text-underline-offset:4px; }
.coffee-panel { display:grid; gap:16px; }
.coffee-panel h2 { font-size:22px; }
.coffee-form, .coffee-card { display:grid; gap:10px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.coffee-form label { font-size:12px; font-weight:700; color:#111; }
.coffee-form input, .coffee-form select, .coffee-form textarea {
  width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; color:#111;
}
.coffee-form input::placeholder, .coffee-form textarea::placeholder { color:#555; }
.coffee-form .coffee-note { color:#111; }
.coffee-form textarea { min-height:120px; resize:vertical; }
.coffee-row { display:flex; gap:8px; flex-wrap:wrap; }
.coffee-table { width:100%; border-collapse:collapse; background:var(--paper); border-radius:12px; overflow:hidden; }
.coffee-table th, .coffee-table td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; font-size:13px; color:#111; }
.coffee-table th { color:#111; font-weight:700; }
.coffee-note { color:var(--muted); }
body:has(.coffee-money) .page-heading { display:none; }
.coffee-money { width:min(760px,100%); margin:8px auto 0; display:grid; gap:16px; padding:22px 24px 20px; border:1px solid #e4c78a55; border-radius:12px; background:#07140ce6; box-sizing:border-box; }
.money-title { margin:0; color:#f6f0e2; font-size:22px; font-weight:800; letter-spacing:-.4px; }
.money-line { display:grid; gap:2px; margin:0; }
.money-line span { color:#cbb992; font-size:12px; font-weight:700; }
.money-line strong { color:#e4c78a; font-size:28px; font-weight:800; letter-spacing:-.6px; line-height:1.2; }
.coffee-money .coffee-form { gap:14px; padding:0; border:0; border-radius:0; background:transparent; }
.coffee-money .coffee-form label { color:#d9cbb0; }
.coffee-money .coffee-form input,
.coffee-money .coffee-form select { background:#10281c; color:#f6f0e2; border-color:#e4c78a55; }
.coffee-money .coffee-form input::placeholder { color:#8d9d90; }
.coffee-money .coffee-form input:focus,
.coffee-money .coffee-form input:focus-visible,
.coffee-money .coffee-form select:focus,
.coffee-money .coffee-form select:focus-visible {
  outline:none;
  outline-offset:0;
  border-color:#e4c78a;
  box-shadow:none;
}
.pay-switch { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pay-switch button { min-height:42px; border:1px solid #e4c78a66; border-radius:8px; background:transparent; color:#f6f0e2; font-weight:700; }
.pay-switch button.is-on { background:#e4c78a; color:#10281c; border-color:#e4c78a; }
.pay-hint { margin:0; color:#d7e6da; font-size:13px; line-height:1.5; }
.pay-account { margin:0; padding:12px 14px; border-radius:8px; background:#10281c; color:#f6f0e2; font-weight:700; line-height:1.45; }
.pay-account small { display:block; margin-bottom:3px; color:#cbb992; font-size:11px; font-weight:600; }
.coffee-money .coffee-form .button-green { width:auto; min-width:148px; justify-self:start; padding:0 22px; min-height:44px; border-radius:8px; background:#e4c78a; color:#10281c; }
.coffee-money .coffee-form .button-green:hover { background:#f3e2b4; }
.coffee-money .coffee-note { color:#d9cbb0; }
.money-history { margin:4px 0 0; color:#f6f0e2; font-size:14px; font-weight:750; }
body:has(.coffee-history) .page-heading { display:none; }
.coffee-history { display:grid; gap:14px; margin-top:4px; color:#f6f0e2; }
.bet-title { margin:0; color:#f6f0e2; font-size:22px; font-weight:800; letter-spacing:-.4px; }
.bet-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.bet-tab { height:40px; padding:0 14px; border:1px solid #e4c78a55; border-radius:8px; background:#10281c; color:#f6f0e2; font-weight:700; }
.bet-tab.is-on { background:#e4c78a; border-color:#e4c78a; color:#10281c; }
.bet-sum { display:flex; flex-wrap:wrap; gap:8px 18px; margin:0; color:#d9cbb0; font-size:13px; font-weight:650; }
.bet-sum b { margin-left:6px; color:#e4c78a; font-size:16px; font-weight:800; font-variant-numeric:tabular-nums; }
.bet-ledger { min-width:0; }
.bet-head, .bet-row { display:grid; grid-template-columns:72px minmax(0,1.6fr) 120px 120px 52px 124px; gap:10px; align-items:center; padding:11px 2px; }
.bet-head { color:#cbb992; font-size:12px; font-weight:700; border-bottom:1px solid #e4c78a55; }
.bet-row { border-bottom:1px solid #e4c78a18; font-size:14px; }
.bet-game { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.bet-stake, .bet-win, .bet-head span:nth-child(3), .bet-head span:nth-child(4) { text-align:right; font-variant-numeric:tabular-nums; }
.bet-win.is-gold { color:#e4c78a; font-weight:800; }
.bet-win.is-dim { color:#8d9a90; }
.bet-result, .bet-head span:nth-child(5) { text-align:center; }

/* ---------------------------------------------------------------- 경기결과 (스포츠) */
.sports-result-list { display:flex; flex-direction:column; gap:10px; }
.sports-result-card { border:1px solid rgba(20,20,20,.14); border-radius:10px; background:#fff; overflow:hidden; }
.sports-result-card > header { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:space-between;
  padding:9px 12px; background:#f6f4ef; border-bottom:1px solid rgba(20,20,20,.08); }
.sports-result-head { display:flex; align-items:center; gap:8px; min-width:0; }
.sports-result-head b { font-size:12px; color:#2b2b2b; letter-spacing:.01em; }
.sports-result-head small { color:#8a8578; font-size:11px; }
.sports-result-badge { padding:2px 8px; border-radius:999px; font-size:10.5px; font-weight:800; white-space:nowrap; }
.sports-result-badge.is-win { background:#e7f4ea; color:#1d7a3e; }
.sports-result-badge.is-lose { background:#fbeaea; color:#b23a3a; }
.sports-result-badge.is-wait { background:#fdf2dd; color:#9a6b12; }
.sports-result-badge.is-draw { background:#eceff3; color:#5b6472; }
.sports-result-money { display:flex; gap:14px; flex-wrap:wrap; font-size:11.5px; color:#6b6659; }
.sports-result-money b { color:#2b2b2b; font-weight:800; }
.sports-result-money b.is-gold { color:#b8860b; }
.sports-result-money b.is-dim { color:#a9a49a; }
.sports-result-legs { display:flex; flex-direction:column; }
.sports-result-leg { display:grid; grid-template-columns:minmax(0,1fr) 200px 108px; gap:10px; align-items:center;
  padding:8px 12px; border-top:1px solid rgba(20,20,20,.06); font-size:12px; }
.sports-result-leg:first-child { border-top:0; }
.sports-result-match { min-width:0; }
.sports-result-match b { display:block; color:#242424; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sports-result-match b .vs { color:#a9a49a; font-weight:600; margin:0 2px; }
.sports-result-match small { display:block; color:#8a8578; font-size:11px; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sports-result-pick { display:flex; align-items:center; justify-content:space-between; gap:6px;
  padding:4px 8px; border-radius:6px; background:#f6f4ef; color:#3a3a3a; font-size:11.5px; font-weight:700; }
.sports-result-pick b { color:#1d7a3e; font-weight:900; }
.sports-result-state { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.sports-result-score { color:#2b2b2b; font-weight:900; font-size:12px; white-space:nowrap; }
.sports-leg-badge { padding:2px 7px; border-radius:999px; font-size:10px; font-weight:800; white-space:nowrap; }
.sports-leg-badge.is-win { background:#e7f4ea; color:#1d7a3e; }
.sports-leg-badge.is-lose { background:#fbeaea; color:#b23a3a; }
.sports-leg-badge.is-wait { background:#fdf2dd; color:#9a6b12; }
.sports-leg-badge.is-draw { background:#eceff3; color:#5b6472; }
.bet-result.is-wait { color:#9a6b12; }
@media (max-width:820px) {
  .sports-result-leg { grid-template-columns:minmax(0,1fr) 1fr; }
  .sports-result-state { grid-column:1 / -1; justify-content:flex-start; }
}
.bet-result.is-win { color:#e4c78a; font-weight:800; }
.bet-result.is-lose, .bet-result.is-draw { color:#cbb992; }
.bet-time, .bet-head span:nth-child(6) { text-align:right; color:#d9cbb0; font-variant-numeric:tabular-nums; }
.bet-head span:nth-child(6) { color:#cbb992; }
.bet-empty { margin:8px 0 0; color:#d9cbb0; font-weight:650; }
.bet-pages { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:4px 0 8px; }
.bet-page, .bet-more { min-width:36px; height:36px; padding:0 12px; border:1px solid #e4c78a55; border-radius:8px; background:#10281c; color:#f6f0e2; font-weight:700; font-variant-numeric:tabular-nums; }
.bet-page.is-on { background:#e4c78a; border-color:#e4c78a; color:#10281c; }
.bet-more { background:transparent; color:#e4c78a; }
@media (max-width:760px) {
  .coffee-history .bet-head { display:none; }
  .coffee-history .bet-row { grid-template-columns:auto minmax(0,1fr) auto auto; grid-template-areas:"game game game result" "type stake win time"; gap:6px 10px; padding:12px 0; }
  .coffee-history .bet-game { grid-area:game; white-space:normal; }
  .coffee-history .bet-result { grid-area:result; justify-self:end; }
  .coffee-history .bet-type { grid-area:type; color:#cbb992; font-size:12px; }
  .coffee-history .bet-stake { grid-area:stake; text-align:left; font-size:12px; }
  .coffee-history .bet-win { grid-area:win; font-size:13px; }
  .coffee-history .bet-time { grid-area:time; justify-self:end; font-size:12px; }
}
.coffee-match { display:grid; gap:8px; }
.coffee-odd { min-width:72px; }
.coffee-odd.is-on { background:var(--green); color:#fffdf4; }
.captcha-row { display:flex; gap:8px; align-items:center; }
.captcha-row img { height:44px; border-radius:8px; background:#fff; cursor:pointer; }
.coffee-game-search { height:44px; min-width:180px; border:1px solid var(--line); border-radius:8px; padding:0 12px; background:#fff; color:var(--ink); }
.coffee-game-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:12px; }
.coffee-game { display:grid; align-content:start; gap:8px; padding:0 0 10px; border:1px solid #d5ddd4; border-radius:12px; background:#fffdf8; color:#123c2c; overflow:hidden; text-align:left; }
.coffee-game img, .coffee-game b { width:100%; aspect-ratio:1; object-fit:cover; background:#e4efe7; display:grid; place-items:center; padding:12px; }
.coffee-game span { padding:0 10px; font-size:13px; font-weight:700; line-height:1.35; }
.coffee-event-grid { display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-start; gap:20px; width:min(1040px,100%); margin:0 auto; }
.coffee-event-card { flex:0 1 360px; width:min(360px,100%); max-width:100%; min-width:0; padding:0; border:1px solid #e4c78a55; border-radius:12px; background:#10281c; color:#f6f0e2; overflow:hidden; }
.coffee-event-card img { display:block; width:100%; max-width:100%; height:auto; aspect-ratio:2/1; object-fit:cover; object-position:center; }
.coffee-event-card:hover { border-color:#e4c78a; }
.article-body .coffee-event-full { display:block; width:auto; max-width:100%; height:auto; margin:0 auto; }
dialog.article-dialog.is-event-image:not([open]) { display:none; }
dialog.article-dialog.is-event-image[open] { position:fixed; inset:0; margin:auto; width:fit-content; max-width:calc(100vw - 32px); height:fit-content; max-height:calc(100dvh - 24px); padding:16px 16px 14px; display:flex; flex-direction:column; overflow:hidden; }
dialog.article-dialog.is-event-image[open] .dialog-category,
dialog.article-dialog.is-event-image[open] h2,
dialog.article-dialog.is-event-image[open] > .button-green { flex:0 0 auto; }
dialog.article-dialog.is-event-image[open] .article-body { flex:0 1 auto; min-height:0; margin-top:8px; padding:0; border-top:0; overflow:hidden; }
dialog.article-dialog.is-event-image[open] .coffee-event-full { display:block; width:auto; height:auto; max-width:min(1280px, calc(100vw - 64px)); max-height:calc(100dvh - 200px); object-fit:contain; }
dialog.article-dialog.is-event-image[open] > .button-green { display:flex; width:fit-content; margin:12px auto 0; }
@media (max-width:760px) {
  .coffee-event-grid { gap:14px; }
}
body:has(.coffee-profile) .page-heading { display:none; }
.coffee-profile { width:min(860px,100%); margin:8px auto 0; display:grid; gap:16px; color:#f6f0e2; }
.profile-title { margin:0; color:#f6f0e2; font-size:22px; font-weight:800; letter-spacing:-.4px; }
.profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.profile-grid article { min-height:74px; padding:14px 16px; border:1px solid #e4c78a55; border-radius:8px; background:#10281c; display:grid; align-content:center; gap:4px; }
.profile-grid small { color:#cbb992; font-size:12px; font-weight:650; }
.profile-grid strong { color:#e4c78a; font-size:16px; font-weight:800; letter-spacing:-.2px; line-height:1.35; word-break:break-all; }
.profile-wide { grid-column:1 / -1; }
.profile-password { display:grid; gap:10px; margin:0; padding:18px 16px 16px; border:1px solid #e4c78a55; border-radius:10px; background:#07140ce6; }
.profile-password h3 { margin:0 0 2px; color:#f6f0e2; font-size:15px; font-weight:800; }
.profile-password input { width:100%; height:46px; padding:0 14px; border:1px solid #e4c78a55; border-radius:8px; background:#10281c; color:#f6f0e2; font-size:14px; }
.profile-password input::placeholder { color:#8d9a90; }
.profile-submit { height:48px; border:0; border-radius:8px; background:#e4c78a; color:#10281c; font-weight:800; }
.profile-submit:hover { background:#f3e2b4; }
.profile-password p { margin:0; min-height:1.2em; color:#d9cbb0; font-size:13px; font-weight:650; }
@media (max-width:760px) {
  .profile-grid { grid-template-columns:1fr; }
}
body.home-popups-open { overflow:hidden; }
.home-popups { position:fixed; inset:0; z-index:130; display:flex; justify-content:center; align-items:safe center; padding:18px 16px; background:#07140cc7; overflow:auto; }
.home-popups-row { display:flex; justify-content:center; align-items:stretch; gap:18px; width:min(1734px,100%); }
.home-popup { position:relative; flex:1 1 0; min-width:0; max-width:420px; display:flex; flex-direction:column; border:1px solid #e4c78a; border-radius:14px; background:#07140c; box-shadow:0 22px 50px #0000008a; overflow:hidden; }
.home-popup img { display:block; width:100%; max-width:100%; height:auto; aspect-ratio:840 / 1200; object-fit:contain; }
.home-popup-x { position:absolute; top:8px; right:8px; z-index:1; display:grid; place-items:center; width:32px; height:32px; border:1px solid #e4c78a; border-radius:50%; background:#07140cd9; color:#f6e7c2; }
.home-popup-x svg { width:16px; height:16px; }
.home-popup-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:46px; padding:8px 10px; background:#07140c; border-top:1px solid #e4c78a55; }
.home-popup-bar label { display:flex; align-items:center; gap:6px; min-width:0; color:#f3e7c8; font-size:12px; font-weight:700; line-height:1.25; letter-spacing:-.2px; }
.home-popup-bar input { appearance:none; width:15px; height:15px; margin:0; flex:0 0 auto; border:1.5px solid #e4c78a; border-radius:3px; background:transparent; }
.home-popup-bar input:checked { background:#e4c78a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2 6.4 11l6.1-6.2' fill='none' stroke='%231c1408' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.home-popup-dismiss { flex:0 0 auto; height:30px; padding:0 12px; border-radius:999px; background:#e4c78a; color:#1c1408; font-size:13px; font-weight:800; }
.home-popup-dismiss:hover { background:#f3e2b4; }
@media (max-width:760px) {
  .home-popups { align-items:center; padding:12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .home-popups-row { flex-direction:column; align-items:center; width:min(420px,100%); }
  .home-popup { display:none; flex:none; width:100%; max-width:420px; }
  .home-popup:first-child { display:flex; }
  .home-popup img { width:auto; max-width:100%; height:auto; max-height:calc(100dvh - 132px - env(safe-area-inset-bottom)); margin:0 auto; }
}
.grade-mark { display:inline-flex; align-items:center; gap:6px; min-width:0; flex:0 0 auto; }
.grade-mark svg { width:20px; height:20px; flex:0 0 20px; }
.grade-mark b { font-size:12px; font-weight:800; letter-spacing:0; color:#f5c16c; }
.profile-grade { display:flex; align-items:center; gap:12px; margin:0 0 14px; padding:14px; border:1px solid rgba(245,193,108,.35); border-radius:12px; }
.profile-grade .grade-mark svg { width:40px; height:40px; flex-basis:40px; }
.profile-grade strong { display:block; font-size:18px; }
.profile-grade small { color:rgba(255,255,255,.62); }
.grade-steps { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; padding:0; list-style:none; }
.grade-steps li { display:flex; align-items:center; gap:6px; padding:6px 8px; border-radius:8px; border:1px solid rgba(255,255,255,.08); opacity:.55; }
.grade-steps li.is-reached { opacity:.85; }
.grade-steps li.is-current { opacity:1; border-color:rgba(245,193,108,.7); }
.grade-steps em { font-style:normal; font-size:11px; color:rgba(255,255,255,.55); }
@media (max-width:760px) {
  .topbar:has(.coffee-session) {
    flex-wrap:wrap;
    align-items:center;
    height:auto;
    min-height:0;
    padding:6px 12px 8px;
    row-gap:6px;
    background:#0c1c16;
  }
  .topbar:has(.coffee-session) .topbar-left { flex:1 1 auto; min-height:40px; }
  .account-actions:has(.coffee-session) {
    flex:1 0 100%;
    width:100%;
    min-width:0;
    justify-content:stretch;
  }
  .coffee-session {
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:8px;
    width:100%;
    min-width:0;
    min-height:32px;
    padding:0;
    border:0;
    background:transparent;
  }
  .coffee-session .grade-mark { flex:0 0 auto; gap:4px; }
  .coffee-session > strong {
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#f6f0e2;
    font-size:13px;
  }
  .coffee-session > span {
    flex:0 0 auto;
    white-space:nowrap;
    font-size:12px;
  }
  .coffee-session > a {
    flex:0 0 auto;
    margin-left:2px;
    padding-left:8px;
    border-left:1px solid rgba(228,199,138,.4);
    border-radius:0;
    white-space:nowrap;
    text-decoration:none;
    font-size:12px;
  }
  .coffee-money { width:auto; margin:8px 10px 0; padding:16px 14px 14px; }
  .coffee-money .coffee-form .button-green { width:100%; }
  .grade-mark b { font-size:12px; }
}

.provider-card.mn-card .provider-art { background: linear-gradient(160deg, #241c14, #8a6a3b); }
.provider-card.mn-card .mn-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: #f3e2c2; font-weight: 700; letter-spacing: .08em; }

#account-fields .captcha-row { display:flex; gap:8px; align-items:center; margin-top:7px; }
#account-fields .captcha-row img { width:130px; height:48px; flex:0 0 130px; object-fit:cover; }
#account-fields .captcha-row input { flex:1 1 auto; width:auto; min-width:0; letter-spacing:.18em; }

.bonus-choices { display:grid; gap:8px; width:100%; }
.bonus-choice {
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:10px;
  width:100%;
  margin:0;
  padding:12px;
  box-sizing:border-box;
  border:1px solid #e4c78a55;
  border-radius:8px;
  background:#10281c;
  color:#f6f0e2;
  line-height:1.5;
  cursor:pointer;
}
.coffee-form .bonus-choice input[type="radio"] {
  width:18px;
  min-width:18px;
  max-width:18px;
  height:18px;
  min-height:18px;
  margin:2px 0 0;
  padding:0;
  flex:0 0 18px;
  border:0;
  border-radius:50%;
  background:transparent;
  box-shadow:none;
  accent-color:#e4c78a;
}
.bonus-choice span {
  flex:1 1 auto;
  min-width:0;
  writing-mode:horizontal-tb;
  white-space:normal;
  word-break:keep-all;
  font-size:14px;
  font-weight:650;
  line-height:1.5;
  color:#f6f0e2;
}
.bonus-choice:has(input:checked) { border-color:#e4c78a; background:#173528; }

.message-list { display:grid; }
.message-row {
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #e4c78a22;
}
.message-row:last-child { border-bottom:0; }
.message-open {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:12px;
  flex:1 1 auto;
  min-width:0;
  min-height:52px;
  padding:14px 0;
  text-align:left;
  color:inherit;
}
.message-open span {
  min-width:0;
  font-size:14px;
  line-height:1.5;
  word-break:keep-all;
}
.message-open small {
  color:#9aab9f;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.message-delete {
  flex:0 0 auto;
  height:30px;
  padding:0 12px;
  border:1px solid #e4c78a66;
  border-radius:4px;
  background:transparent;
  color:#f3e6c4;
  font-size:12px;
  font-weight:700;
}
.message-delete:hover { border-color:#ef4444; color:#fecaca; }
.message-delete:disabled { opacity:.5; }

.coffee-session > span b { font-weight:750; }
.point-open {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:22px;
  margin-left:6px;
  padding:0 8px;
  border-radius:999px;
  background:#e4c78a;
  color:#173528;
  font-size:11px;
  font-weight:800;
  line-height:1;
  vertical-align:1px;
}
.point-open:hover { background:#f3e2b4; }
.point-card, .point-dialog {
  color:#f6f0e2;
}
.point-card {
  display:grid;
  gap:14px;
  padding:18px 16px 16px;
  border:1px solid #e4c78a55;
  border-radius:10px;
  background:#07140ce6;
}
.point-card-copy { display:grid; gap:4px; }
.point-card h3, .point-dialog h2 { margin:0; color:#f6f0e2; font-weight:800; }
.point-card h3 { font-size:16px; }
.point-card-copy p, .point-lead { margin:0; color:#cbb992; font-size:13px; line-height:1.5; }
.point-form { display:grid; gap:10px; }
.point-balances { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.point-balances article {
  min-height:68px;
  padding:12px 14px;
  border:1px solid #e4c78a33;
  border-radius:8px;
  background:#10281c;
  display:grid;
  align-content:center;
  gap:4px;
}
.point-balances small { color:#cbb992; font-size:12px; font-weight:650; }
.point-balances strong { color:#e4c78a; font-size:18px; font-weight:800; letter-spacing:-.3px; }
.point-form label { display:grid; gap:6px; color:#cbb992; font-size:12px; font-weight:700; }
.point-form input {
  width:100%;
  height:48px;
  margin:0;
  padding:0 14px;
  border:1px solid #e4c78a55;
  border-radius:8px;
  background:#10281c;
  color:#f6f0e2;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.3px;
}
.point-form input::placeholder { color:#8d9a90; font-weight:650; }
.point-chips { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.point-chips button {
  height:36px;
  border:1px solid #e4c78a55;
  border-radius:8px;
  background:#10281c;
  color:#f3e6c4;
  font-size:13px;
  font-weight:750;
}
.point-chips button:hover { border-color:#e4c78a; color:#fff8e8; }
.point-chips button:disabled { opacity:.35; }
.point-preview, .point-status { min-height:1.3em; margin:0; color:#f6f0e2; font-size:13px; font-weight:650; }
.point-status { color:#d9cbb0; }
.point-status.is-ok { color:#b7e4c7; }
.point-submit {
  height:48px;
  border:0;
  border-radius:8px;
  background:#e4c78a;
  color:#173528;
  font-size:15px;
  font-weight:800;
}
.point-submit:hover { background:#f3e2b4; }
.point-submit:disabled { opacity:.45; }
.point-dialog {
  position:relative;
  width:min(440px,calc(100vw - 28px));
  padding:22px 18px 16px;
  border:1px solid #e4c78a55;
  border-radius:12px;
  background:#07140c;
  box-shadow:0 18px 50px #04110ccc;
}
.point-dialog::backdrop { background:#04110ccc; }
.point-dialog h2 { margin:0 48px 6px 0; font-size:20px; }
.point-close {
  position:absolute;
  top:14px;
  right:14px;
  height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#10281c;
  color:#f3e6c4;
  font-size:12px;
  font-weight:750;
}
@media (max-width:760px) {
  .point-balances strong { font-size:16px; }
  .coffee-session { gap:6px; }
  .coffee-session .point-open { display:none; }
  .coffee-session > span[data-point-open] { cursor:pointer; }
  .coffee-session > span[data-point-open] b { text-decoration:underline; text-underline-offset:3px; }
}

.support-head { display:flex; align-items:center; justify-content:flex-start; gap:12px; }
.support-head h2 { margin:0; }
.support-account {
  flex:0 0 auto;
  height:36px;
  padding:0 14px;
  border-radius:8px;
  background:#e4c78a;
  color:#173528;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
.support-account:hover { background:#f3e2b4; }
.support-account:disabled { opacity:.5; }

.message-alert {
  width:min(320px, calc(100vw - 40px));
  margin:auto;
  padding:28px 22px 22px;
  border:0;
  border-radius:6px;
  background:#2b2b2b;
  color:#fff;
  text-align:center;
  box-shadow:0 16px 40px #000a;
}
.message-alert::backdrop { background:#0008; }
.message-alert p { margin:0; color:#fff; font-size:14px; font-weight:700; line-height:1.5; }
.message-alert time { display:block; margin-top:8px; color:#fff; font-size:13px; font-weight:500; }
.message-alert button {
  margin-top:18px;
  min-width:72px;
  height:32px;
  padding:0 16px;
  border:1px solid #8d8d8d;
  border-radius:3px;
  background:#3a3a3a;
  color:#fff;
  font-size:13px;
  font-weight:650;
}
.message-alert button:hover { border-color:#fff; }

.message-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.message-all, .message-check { display:inline-flex; align-items:center; gap:6px; color:#f6f0e2; font-size:13px; font-weight:700; }
.message-all input, .message-check input { width:16px; height:16px; margin:0; accent-color:#e4c78a; }
.message-tool {
  height:32px;
  padding:0 12px;
  border:1px solid #e4c78a66;
  border-radius:6px;
  background:transparent;
  color:#f3e6c4;
  font-size:12px;
  font-weight:750;
}
.message-tool:hover, .message-tool.danger:hover { border-color:#ef4444; color:#fecaca; }
.message-note { flex:1 0 100%; min-height:1.2em; margin:0; color:#f6f0e2; font-size:13px; font-weight:650; }
.message-row.is-unread .message-open span { font-weight:800; color:#fff; }

.qna-list { display:grid; gap:12px; }
.qna-card {
  display:grid;
  overflow:hidden;
  border:1px solid #d9dccd;
  border-radius:10px;
  background:#fffdf6;
  color:#111;
}
.qna-block { padding:14px 16px 16px; }
.qna-question { background:#fffdf6; }
.qna-answer { background:#e7f0e4; border-top:1px solid #c9d7c8; }
.qna-label { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.qna-label b {
  display:inline-flex;
  align-items:center;
  height:22px;
  padding:0 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:800;
  line-height:1;
}
.qna-question .qna-label b { background:#111; color:#fff; }
.qna-answer .qna-label b { background:#173528; color:#f6f0e2; }
.qna-label time { color:#333; font-size:12px; font-weight:650; white-space:nowrap; font-variant-numeric:tabular-nums; }
.qna-block h3 {
  margin:0;
  color:#111;
  font-size:16px;
  font-weight:800;
  line-height:1.45;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.qna-block p {
  margin:8px 0 0;
  color:#111;
  font-size:14px;
  font-weight:500;
  line-height:1.75;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.qna-answer.is-wait p { color:#333; }


body.event-view-open { overflow:hidden; }
.event-view { position:fixed; inset:0; z-index:400; display:flex; align-items:flex-start; justify-content:center; padding:20px 24px 24px; background:#07140c; overflow:auto; }
.event-view-frame { width:max-content; max-width:none; display:grid; gap:12px; }
.event-view-close { justify-self:end; height:36px; padding:0 14px; border:1px solid #e4c78a; border-radius:999px; background:#10281c; color:#f6f0e2; font-weight:800; }
.event-view-panel { display:grid; grid-template-columns:360px 900px; gap:20px; align-items:start; }
.event-view-preview, .event-view-detail { display:block; border:1px solid #e4c78a55; border-radius:12px; background:#07140c; object-fit:fill; }
.event-view-preview { width:360px; height:180px; }
.event-view-detail { width:900px; height:620px; object-fit:fill; }

.notice-board { width:min(980px,100%); margin:8px auto 0; color:#f6f0e2; }
.notice-head, .notice-row { display:grid; grid-template-columns:88px minmax(0,1fr) 72px 96px; gap:10px; align-items:center; }
.notice-head { min-height:44px; padding:0 16px; border:1px solid #e4c78a33; border-radius:10px; background:#10281ce6; color:#e4c78a; font-size:13px; font-weight:800; }
.notice-rows { margin-top:4px; }
.notice-row { width:100%; min-height:54px; padding:0 16px; border:0; border-bottom:1px solid #e4c78a22; background:transparent; color:#f6f0e2; text-align:left; }
.notice-title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:650; }
.notice-author, .notice-date { font-size:13px; color:#d9cbb0; white-space:nowrap; }
.notice-badge { justify-self:start; display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:4px; background:#e4c78a; color:#1c1408; font-size:11px; font-weight:800; }
.notice-row:hover .notice-title { color:#fff8e8; }
.notice-pages { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:18px; }
.notice-page { min-width:36px; height:36px; padding:0 10px; border:1px solid #e4c78a55; border-radius:8px; background:#10281c; color:#f6f0e2; font-weight:800; }
.notice-page.is-on { background:#e4c78a; border-color:#e4c78a; color:#1c1408; }
@media (max-width:760px) {
  .notice-head { display:none; }
  .notice-row { grid-template-columns:auto minmax(0,1fr); grid-template-areas:"badge title" "date author"; min-height:0; padding:12px 4px; gap:6px 10px; }
  .notice-badge { grid-area:badge; }
  .notice-title { grid-area:title; }
  .notice-date { grid-area:date; }
  .notice-author { grid-area:author; justify-self:end; }
}

body.notice-view-open { overflow:hidden; }
.notice-view { position:fixed; inset:0; z-index:420; display:grid; justify-content:safe center; align-content:start; padding:20px 24px 32px; background:#07140c; overflow:auto; }
.notice-view-frame { width:max-content; max-width:none; display:grid; justify-items:center; gap:12px; }
.notice-view-close { position:fixed; top:16px; right:16px; z-index:421; height:36px; padding:0 14px; border:1px solid #e4c78a; border-radius:999px; background:#10281c; color:#f6f0e2; font-weight:800; }
.notice-view-panel { display:grid; justify-items:center; gap:8px; margin-top:8px; }
.notice-view-title { margin:0; color:#f6f0e2; font-size:22px; font-weight:800; line-height:1.35; text-align:center; }
.notice-view-meta { margin:0; display:flex; justify-content:space-between; color:#d9cbb0; font-size:13px; }
.notice-view-image { display:block; max-width:none; object-fit:fill; border:0; border-radius:0; background:#07140c; }

/* layout-fit-20261021: tighter menu, banner scaled without crop */
@media (min-width:761px) {
  .sidebar { padding:12px 18px 14px; }
  .brand { margin-bottom:8px; padding-bottom:10px; }
  .brand-logo { width:168px; height:84px; object-fit:contain; }
  .nav-eyebrow, .nav-label { padding:0 12px 4px; }
  .nav-label { margin-top:8px; padding-top:8px; }
  .nav-main, .nav-service { gap:2px; }
  .nav-link { min-height:36px; padding:4px 12px; gap:10px; }
  .nav-service .nav-link { min-height:32px; padding-block:3px; }
  .nav-service .nav-link:nth-child(-n+2) { min-height:36px; margin-bottom:2px; }
  .sidebar-banners { flex-direction:column; align-items:stretch; gap:8px; margin-top:8px; }
  .sidebar-banners img { display:block; width:100%; max-width:none; height:auto; max-height:none; margin:0; object-fit:contain; }
  .hero-film .hero-banner { width:100%; max-width:none; height:auto; margin:0; object-fit:contain; }
}

@media (max-width:1340px) {
  .event-view { justify-content:flex-start; align-items:flex-start; padding:12px 12px 16px; }
  .event-view-frame { width:100%; max-width:100%; }
  .event-view-panel { display:block; width:100%; }
  .event-view-preview { display:none; }
  .event-view-detail { width:100%; max-width:100%; height:auto; aspect-ratio:900 / 620; object-fit:contain; }
}

/* 20261022-hover: anchors lose href to hide the status-bar URL preview */
a[data-live-route]:not([href]) { cursor:pointer; }
a[data-live-route]:not([href]):focus-visible { outline:2px solid #e4c78a; outline-offset:2px; }

/* 20261022-notice-mobile: notice poster scales to the phone viewport */
@media (max-width:760px) {
  .notice-view { padding:64px 12px 28px; }
  .notice-view-frame { width:100%; max-width:100%; }
  .notice-view-close { top:12px; right:12px; }
  .notice-view-panel, .notice-view-title, .notice-view-meta { max-width:100%; }
  .notice-view-image { max-width:100%; }
}

/* ===== 배팅내역 카드 (20261027) ===== */
.bet-cards { display:flex; flex-direction:column; gap:12px; }
.bet-card { border:1px solid rgba(228,199,138,.28); border-radius:10px; background:#0d2018; overflow:hidden; }
.bet-card.is-pending { border-color:rgba(228,199,138,.34); }
.bet-card.is-won { border-color:rgba(228,199,138,.55); }
.bet-card-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:9px 12px; background:#122b1f; border-bottom:1px solid rgba(228,199,138,.18); }
.bet-card-check { display:flex; align-items:center; }
.bet-card-check input { width:15px; height:15px; accent-color:#e4c78a; }
.bet-card-check input:disabled { opacity:.35; cursor:not-allowed; }
.bet-card-uid { color:#f6f0e2; font-size:11.5px; font-weight:800; letter-spacing:.01em; word-break:break-all; }
.bet-card-fold { color:#cbb992; font-size:11px; font-weight:700; }
.bet-card-time { margin-left:auto; color:#d9cbb0; font-size:11.5px; font-variant-numeric:tabular-nums; }
.bet-badge { padding:2px 8px; border-radius:999px; font-size:10.5px; font-weight:800; white-space:nowrap; }
.bet-badge.is-win { background:rgba(29,122,62,.22); color:#7fe0a2; }
.bet-badge.is-lose { background:rgba(178,58,58,.22); color:#ff9d9d; }
.bet-badge.is-wait { background:rgba(154,107,18,.24); color:#f0c165; }
.bet-badge.is-draw { background:rgba(120,132,148,.22); color:#c7d0dc; }

.bet-card-legs { display:flex; flex-direction:column; }
.bet-leg { padding:9px 12px; border-top:1px solid rgba(228,199,138,.12); }
.bet-leg:first-child { border-top:0; }
.bet-leg-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:4px; color:#cbb992; font-size:11px; font-weight:650; }
.bet-leg-league { color:#d9cbb0; font-weight:800; }
.bet-leg-time { color:#cbb992; font-variant-numeric:tabular-nums; }
.bet-leg-count { color:#f0c165; font-weight:800; font-variant-numeric:tabular-nums; }
.bet-leg-score { color:#f6f0e2; font-weight:900; font-variant-numeric:tabular-nums; }
.bet-leg-badge { margin-left:auto; padding:1px 7px; border-radius:999px; font-size:10px; font-weight:800; }
.bet-leg-badge.is-win { background:rgba(29,122,62,.22); color:#7fe0a2; }
.bet-leg-badge.is-lose { background:rgba(178,58,58,.22); color:#ff9d9d; }
.bet-leg-badge.is-wait { background:rgba(154,107,18,.24); color:#f0c165; }
.bet-leg-badge.is-draw { background:rgba(120,132,148,.22); color:#c7d0dc; }

/* 배팅내역: 배팅할 때 고른 항목만 표시 */
.bet-leg-match { margin:2px 0 5px; color:#f6f0e2; font-size:13px; font-weight:800; }
.bet-leg-match .vs { margin:0 3px; color:#8d9a90; font-size:11px; font-weight:600; }
.bet-leg-pick { display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:6px; background:#12281d; }
.bet-pick-market { flex:0 0 auto; padding:1px 7px; border-radius:4px; background:#0d2018; color:#a8b8ab; font-size:10.5px; font-weight:800; }
.bet-pick-name { flex:1 1 auto; min-width:0; color:#e4c78a; font-size:13px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bet-pick-odds { flex:0 0 auto; color:#f6f0e2; font-size:13px; font-weight:900; font-style:normal; font-variant-numeric:tabular-nums; }

.bet-card-foot { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:9px 12px; background:#0b1c14; border-top:1px solid rgba(228,199,138,.18); }
.bet-card-money { display:flex; gap:14px; flex-wrap:wrap; color:#cbb992; font-size:11.5px; font-weight:650; }
.bet-card-money b { color:#f6f0e2; font-weight:800; font-variant-numeric:tabular-nums; }
.bet-card-money b.is-gold { color:#e4c78a; }
.bet-card-money b.is-dim { color:#8d9a90; }
.bet-card-actions { margin-left:auto; display:flex; gap:8px; }
.bet-act { height:30px; padding:0 12px; border:1px solid rgba(228,199,138,.45); border-radius:6px; background:transparent; color:#e4c78a; font-size:11.5px; font-weight:800; cursor:pointer; }
.bet-act:hover { background:rgba(228,199,138,.14); }
.bet-act.is-cancel { border-color:rgba(228,199,138,.55); }
.bet-act.is-delete { border-color:rgba(214,98,98,.5); color:#ff9d9d; }
.bet-act.is-delete:hover { background:rgba(214,98,98,.16); }
.bet-act:disabled { opacity:.45; cursor:not-allowed; }
.bet-card-note { margin:0; padding:0 12px 9px; color:#f0c165; font-size:11px; }
.bet-card-empty { margin:0; padding:10px 12px; color:#8d9a90; font-size:12px; }

.bet-bulk { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 10px; border:1px solid rgba(228,199,138,.22); border-radius:8px; background:#10251a; }
.bet-bulk-all { display:flex; align-items:center; gap:6px; color:#d9cbb0; font-size:12px; font-weight:700; }
.bet-bulk-all input { width:15px; height:15px; accent-color:#e4c78a; }
.bet-tool { height:30px; padding:0 12px; border:1px solid rgba(228,199,138,.4); border-radius:6px; background:transparent; color:#e4c78a; font-size:11.5px; font-weight:800; cursor:pointer; }
.bet-tool:hover { background:rgba(228,199,138,.12); }
.bet-tool.danger { border-color:rgba(214,98,98,.5); color:#ff9d9d; }
.bet-tool.danger:hover { background:rgba(214,98,98,.16); }
.bet-tool:disabled { opacity:.45; cursor:not-allowed; }
.bet-bulk-note { margin:0 0 0 auto; color:#cbb992; font-size:11px; }

/* 경기결과 카드: 흰 배경 제거하고 다크 테마로 통일 */
.sports-result-card { border:1px solid rgba(228,199,138,.28); border-radius:10px; background:#0d2018; overflow:hidden; }
.sports-result-card > header { background:#122b1f; border-bottom:1px solid rgba(228,199,138,.18); }
.sports-result-head b { color:#f6f0e2; }
.sports-result-head small { color:#cbb992; }
.sports-result-money { color:#cbb992; }
.sports-result-money b { color:#f6f0e2; }
.sports-result-money b.is-gold { color:#e4c78a; }
.sports-result-money b.is-dim { color:#8d9a90; }
.sports-result-leg { border-top-color:rgba(228,199,138,.12); }
.sports-result-match b { color:#f6f0e2; }
.sports-result-match b .vs { color:#8d9a90; }
.sports-result-match small { color:#cbb992; }
.sports-result-pick { background:#12281d; color:#e8e0cd; }
.sports-result-pick b { color:#7fe0a2; }
.sports-result-score { color:#f6f0e2; }

@media (max-width:760px) {
  .bet-card-head { gap:6px; padding:8px 10px; }
  .bet-card-uid { font-size:10.5px; }
  .bet-card-time { margin-left:0; width:100%; }
  .bet-leg { padding:8px 10px; }
  .bet-leg-match { font-size:12.5px; }
  .bet-leg-pick { gap:6px; padding:6px 8px; }
  .bet-pick-market { font-size:10px; }
  .bet-pick-name, .bet-pick-odds { font-size:12.5px; }
  .bet-card-foot { gap:8px; padding:8px 10px; }
  .bet-card-money { gap:10px; font-size:11px; }
  .bet-card-actions { margin-left:0; width:100%; }
  .bet-act { flex:1 1 0; }
  .bet-bulk-note { margin-left:0; width:100%; }
  .bet-tool { flex:1 1 0; }
}

/* ===== 배팅내역 가독성 보정 (20261027b) ===== */
/* 배팅번호는 화면에 노출하지 않는다 (문의 첨부문에는 CS 참조용으로 남긴다). */
.bet-card-uid { display:none; }

/* 눈이 아픈 순수 빨강 대신 저채도 톤으로 통일한다. */
.bet-badge.is-lose,
.bet-leg-badge.is-lose { background:rgba(178,58,58,.14); color:#d9a8a8; }
.bet-badge.is-win,
.bet-leg-badge.is-win { background:rgba(52,211,153,.14); color:#8fd8b6; }
.bet-badge.is-wait,
.bet-leg-badge.is-wait { background:rgba(228,199,138,.16); color:#e0c48d; }
.bet-badge.is-draw,
.bet-leg-badge.is-draw { background:rgba(150,162,178,.16); color:#c2cbd6; }
.bet-act.is-delete { border-color:rgba(214,120,120,.32); color:#d9a8a8; }
.bet-act.is-delete:hover { background:rgba(214,120,120,.1); }
.bet-act.is-cancel { border-color:rgba(228,199,138,.4); color:#e4c78a; }

/* 이전 버전 마크업이 캐시로 남아 있어도 빨강으로 보이지 않게 한다. */
.bet-slot.is-on { background:#1d3a2a; color:#f6f0e2; }
.bet-slot.is-on b,
.bet-slot.is-on small { color:#e4c78a; }
.bet-slot.is-mid.is-two-way b { color:#7d8d82; }

/* 경기 줄 간격을 조금 넓혀 답답하지 않게 */
.bet-card-legs > .bet-leg { padding-top:11px; padding-bottom:11px; }
.bet-leg-meta { margin-bottom:5px; }
.bet-leg-match { margin:0 0 6px; }
.bet-leg-pick { padding:8px 11px; }

/* 모바일 카드 헤더를 한 줄로 유지 (시각이 아래로 떨어지지 않게) */
@media (max-width: 760px) {
  .bet-card-head { gap:6px; padding:8px 10px; }
  .bet-card-time { margin-left:auto; width:auto; font-size:11px; }
  .bet-card-fold { font-size:10.5px; }
  .bet-badge { font-size:10px; padding:2px 6px; }
  .bet-leg-meta { gap:6px; font-size:10.5px; }
  .bet-leg-pick { gap:6px; padding:7px 9px; }
}

/* ── 공지사항 (2026-10-27 v2) ── */
.coffee-notice { width:100%; }
.coffee-notice .coffee-note { margin:0; padding:34px 20px; color:#d3c7ab; font-size:14px; font-weight:600; text-align:center; }

.notice-board {
  position:relative;
  width:min(960px,100%);
  margin:6px auto 0;
  border:1px solid #e4c78a3d;
  border-radius:14px;
  background:#0d2018;
  color:#f6f0e2;
  overflow:hidden;
  box-shadow:0 20px 48px #00000059, inset 0 1px 0 #ffffff0a;
}
.notice-board::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg,#c9a25c,#f3e0b0,#c9a25c);
  opacity:.85;
  pointer-events:none;
  z-index:2;
}

/* 상단 바 */
.notice-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:58px;
  padding:0 22px;
  background:linear-gradient(180deg,#122a20,#0e241b);
  border-bottom:1px solid #e4c78a26;
}
.notice-bar-lead { display:flex; align-items:center; gap:10px; min-width:0; }
.notice-eyebrow {
  color:#e4c78a;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.14em;
  line-height:1;
  padding-top:1px;
}
.notice-bar-title { color:#fffdf6; font-size:16px; font-weight:800; letter-spacing:-.2px; line-height:1.2; }
.notice-count {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:26px; height:22px; padding:0 9px;
  border:1px solid #e4c78a4d; border-radius:999px;
  background:#e4c78a1f; color:#f7e3b6;
  font-size:12px; font-weight:800; font-variant-numeric:tabular-nums;
}
.notice-sort { color:#d2c6a8; font-size:12px; font-weight:700; white-space:nowrap; }

/* 컬럼 헤더 */
.notice-head,
.notice-row { display:grid; grid-template-columns:58px minmax(0,1fr) 84px 104px 18px; gap:14px; align-items:center; }
.notice-head {
  min-height:40px;
  padding:0 22px;
  background:#0a1913;
  border:0;
  border-bottom:1px solid #e4c78a1f;
  border-radius:0;
  color:#d2c6a8;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
}
.notice-col-num, .notice-col-author { text-align:center; }
.notice-col-date { text-align:right; }

/* 목록 */
.notice-rows { padding:6px 8px; }
.notice-row {
  position:relative;
  width:100%;
  min-height:58px;
  padding:0 14px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#f6f0e2;
  text-align:left;
  cursor:pointer;
  transition:background-color .16s ease;
}
.notice-row + .notice-row::after {
  content:'';
  position:absolute;
  left:14px; right:14px; top:0;
  height:1px;
  background:#e4c78a17;
  pointer-events:none;
}
.notice-row::before {
  content:'';
  position:absolute;
  left:4px; top:15px; bottom:15px;
  width:3px;
  border-radius:999px;
  background:#e4c78a;
  opacity:0;
  transform:scaleY(.4);
  transition:opacity .16s ease, transform .16s ease;
}
.notice-row:hover, .notice-row:focus-visible { background:#16291f; }
.notice-row:hover::before, .notice-row:focus-visible::before { opacity:1; transform:scaleY(1); }
.notice-row:hover::after, .notice-row:focus-visible::after { opacity:0; }
.notice-row:focus-visible { outline:2px solid #e4c78a; outline-offset:-2px; }

.notice-num { color:#bccbb7; font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; text-align:center; }
.notice-title { display:flex; align-items:center; gap:8px; min-width:0; }
.notice-title-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fffdf6; font-size:15px; font-weight:600; letter-spacing:-.1px; }
.notice-new {
  flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
  height:19px; padding:0 6px;
  border-radius:5px;
  background:#e4c78a;
  color:#1b1405;
  font-size:10px; font-weight:900; letter-spacing:.04em;
  line-height:1;
}
.notice-author { color:#d8ccb0; font-size:13px; font-weight:600; white-space:nowrap; text-align:center; }
.notice-date { color:#d8ccb0; font-size:13px; font-weight:600; white-space:nowrap; text-align:right; font-variant-numeric:tabular-nums; }
.notice-arrow { display:inline-flex; align-items:center; justify-content:center; color:#e4c78a; opacity:0; transform:translateX(-4px); transition:opacity .16s ease, transform .16s ease; }
.notice-arrow svg { width:15px; height:15px; }
.notice-row:hover .notice-arrow, .notice-row:focus-visible .notice-arrow { opacity:1; transform:translateX(0); }
.notice-row:hover .notice-title-text, .notice-row:focus-visible .notice-title-text { color:#ffffff; }

/* 페이지 */
.notice-pages {
  display:flex; justify-content:center; align-items:center; gap:6px;
  margin:0;
  padding:14px 16px 16px;
  background:#0a1913;
  border-top:1px solid #e4c78a1f;
}
.notice-page {
  min-width:32px; height:32px; padding:0 9px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #e4c78a3d; border-radius:7px;
  background:#10261c; color:#efe5cf;
  font-size:12.5px; font-weight:800;
  cursor:pointer;
  transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}
.notice-page:hover { background:#183226; border-color:#e4c78a80; color:#fffdf6; }
.notice-page.is-on { background:#e4c78a; border-color:#e4c78a; color:#1b1405; }
.notice-page.is-on:hover { background:#f0dbaa; color:#1b1405; }

/* 상세 보기 */
body.notice-view-open { overflow:hidden; }
.notice-view {
  position:fixed; inset:0; z-index:420;
  display:block;
  padding:0;
  background:#04100ab8;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  overflow:auto;
}
.notice-view-frame {
  width:min(880px,100%);
  margin:0 auto;
  padding:20px 16px 44px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.notice-view-close {
  position:fixed; top:16px; right:16px; z-index:421;
  height:40px; padding:0 16px;
  border:1px solid #e4c78a66; border-radius:999px;
  background:#0f2318; color:#f6f0e2;
  font-size:13px; font-weight:800;
  cursor:pointer;
}
.notice-view-close:hover { background:#173026; }
.notice-view-panel {
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  margin-top:36px;
  padding:20px;
  border:1px solid #e4c78a33;
  border-radius:16px;
  background:#0d2018;
  box-shadow:0 24px 60px #00000066;
}
.notice-view-title { margin:0; color:#fffdf6; font-size:19px; font-weight:800; line-height:1.4; text-align:left; }
.notice-view-meta { margin:0; display:flex; justify-content:space-between; gap:12px; padding-bottom:12px; border-bottom:1px solid #e4c78a1f; color:#d8ccb0; font-size:12.5px; font-weight:600; }
.notice-view-image { display:block; margin:0 auto; max-width:100%; border-radius:10px; background:#07140c; object-fit:contain; }

@media (max-width:760px) {
  .notice-board { border-radius:12px; margin-top:2px; }
  .notice-bar { min-height:52px; padding:0 14px; }
  .notice-bar-title { font-size:15px; }
  .notice-eyebrow { display:none; }
  .notice-head { display:none; }
  .notice-rows { padding:6px; }
  .notice-row {
    grid-template-columns:minmax(0,1fr) auto 16px;
    grid-template-areas:"title title arrow" "date author arrow";
    gap:6px 10px;
    min-height:0;
    padding:14px 12px 14px 14px;
  }
  .notice-num { display:none; }
  .notice-title { grid-area:title; align-items:flex-start; gap:6px; }
  .notice-title-text {
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
    white-space:normal; line-height:1.45; font-size:14.5px;
  }
  .notice-new { margin-top:1px; }
  .notice-date { grid-area:date; justify-self:start; text-align:left; font-size:12px; }
  .notice-author { grid-area:author; justify-self:end; text-align:right; font-size:12px; }
  .notice-arrow { grid-area:arrow; align-self:center; opacity:1; transform:none; }
  .notice-row::before { left:5px; top:12px; bottom:12px; }
  .notice-pages { padding:12px 10px 14px; }

  .notice-view-frame { padding:12px 10px 32px; }
  .notice-view-panel { margin-top:52px; padding:14px; border-radius:14px; gap:10px; }
  .notice-view-title { font-size:16px; }
  .notice-view-close { top:12px; right:12px; height:36px; padding:0 13px; font-size:12px; }
}
/* hidden 속성이 display 규칙에 밀리지 않도록 (공지 라우트에서 홈 섹션이 겹쳐 보이던 문제) */
.community-grid[hidden],
.collection[hidden],
.feature-row[hidden],
.hero[hidden],
.category-bar[hidden],
.extra-section[hidden],
.notice-board[hidden] { display:none !important; }
/* ── 공지/이벤트 본문 창 (어두운 톤) ── */
dialog.article-dialog {
  width:min(760px, calc(100vw - 28px));
  padding:0;
  border:1px solid #e4c78a3d;
  border-radius:16px;
  background:#0d2018;
  color:#f2ead9;
  box-shadow:0 28px 74px #000000a8;
  overflow:hidden;
}
dialog.article-dialog[open] { display:flex; flex-direction:column; max-height:calc(100dvh - 40px); }
dialog.article-dialog::backdrop { background:#04100ac2; -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px); }
.article-dialog .dialog-close { top:12px; right:12px; width:36px; height:36px; color:#f0e7d3; background:#13291f; border:1px solid #e4c78a33; border-radius:999px; }
.article-dialog .dialog-close:hover { background:#1b3527; }
.article-dialog .dialog-category {
  margin:0;
  padding:20px 26px 0;
  color:#e4c78a;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.article-dialog h2 {
  margin:7px 0 0;
  padding:0 26px;
  color:#fffdf6;
  font-size:21px;
  font-weight:800;
  line-height:1.45;
  letter-spacing:-.3px;
}
.article-dialog .article-body {
  margin:16px 0 0;
  padding:18px 26px 26px;
  border-top:1px solid #e4c78a24;
  border-radius:0;
  background:#0a1913;
  color:#e9dfc9;
  font-size:15px;
  font-weight:500;
  line-height:1.9;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.article-dialog .article-body > span,
.article-dialog .article-body > div,
.article-dialog .article-body > p { font-size:15px; line-height:1.9; }
.article-dialog .article-body a { color:#8ed0ff; }
.article-dialog .article-body img { max-width:100%; height:auto; border-radius:8px; }
.article-dialog > .button-green {
  flex:0 0 auto;
  width:100%;
  margin:0;
  min-height:50px;
  border-radius:0;
  border-top:1px solid #e4c78a33;
  background:#e4c78a;
  color:#1b1405;
  font-size:14px;
  font-weight:800;
  box-shadow:none;
}
.article-dialog > .button-green:hover { background:#f0dbaa; }

@media (max-width:760px) {
  dialog.article-dialog { width:calc(100vw - 18px); border-radius:14px; }
  .article-dialog .dialog-category { padding:16px 18px 0; }
  .article-dialog h2 { padding:0 18px; font-size:18px; }
  .article-dialog .article-body { margin-top:12px; padding:14px 18px 20px; font-size:14.5px; }
  .article-dialog > .button-green { min-height:48px; }
}
/* mobile-feature-hide: 모바일 하단 출석/이벤트 카드 제거 */
@media (max-width:760px) {
  .feature-row { display:none !important; }
  body.is-home #community { margin-top:18px; }
}
/* ── 공지 본문(사진 포함) 세로 스크롤 ── */
dialog.article-dialog .article-body {
  max-height: calc(100dvh - 210px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
dialog.article-dialog .article-body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 8px;
}
dialog.article-dialog .article-body p { margin: 0 0 10px; }
dialog.article-dialog .article-body p:last-child { margin-bottom: 0; }
dialog.article-dialog .article-body > p:only-child,
dialog.article-dialog .article-body > div:only-child { margin: 0; }

@media (max-width: 760px) {
  dialog.article-dialog .article-body {
    max-height: calc(100dvh - 190px);
    padding: 12px 14px 18px;
  }
  dialog.article-dialog .article-body img { border-radius: 6px; margin: 8px auto; }
}
