/* gamehub 데모·구매 신청서 — 사이트의 어두운 배경 기준 (board.css 미적용 페이지, --gh-* 토큰 사용) */
.dm-w { max-width: 920px; margin: 0 auto !important; padding: 10px 0 20px; color: var(--gh-ink, #f3f2ff); }
.dm-intro { margin-bottom: 26px; }
.dm-intro h2 { margin: 0 0 10px; font-family: 'GH Head', sans-serif; font-size: 28px; color: var(--gh-ink, #f3f2ff); }
.dm-intro p { margin: 0 0 18px; color: var(--gh-mute, #a7a9cf); font-size: 15px; line-height: 1.7; }
.dm-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dm-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(164, 107, 255, .2); color: #e4e4fb; font-size: 13px; font-weight: 700; }
.dm-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(100deg, #ff4fa3, #a46bff 50%, #36d4ff); color: #fff; font-size: 12px; }
.dm-box { margin: 0 0 18px; padding: 24px 26px 26px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 18px; background: rgba(255, 255, 255, .035); }
.dm-box legend { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-family: 'GH Head', sans-serif; font-size: 18px; color: var(--gh-ink, #f3f2ff); }
.dm-box legend b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(100deg, #ff4fa3, #a46bff 55%, #36d4ff); color: #fff; font-size: 14px; }
.dm-box legend em { font-family: -apple-system, 'Malgun Gothic', sans-serif; font-style: normal; font-size: 12px; color: #ff73b1; font-weight: 700; }
.dm-games-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.dm-kind { height: 32px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #cfd0ee; font-size: 13px; cursor: pointer; }
.dm-kind:hover { border-color: #a46bff; color: #bfa3ff; }
.dm-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.dm-game { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 34px 8px 8px; border: 2px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .04); cursor: pointer; transition: .15s; }
.dm-game:hover { border-color: color-mix(in srgb, var(--c) 60%, rgba(255, 255, 255, .12)); }
.dm-game input { position: absolute; opacity: 0; pointer-events: none; }
.dm-game-art { flex: none; display: grid; place-items: center; width: 54px; height: 40px; border-radius: 10px; background: #0d0f24; overflow: hidden; }
.dm-game-art img { max-width: 92%; max-height: 86%; }
.dm-game-txt { display: flex; flex-direction: column; min-width: 0; }
.dm-game-txt b { font-size: 14px; color: var(--gh-ink, #f3f2ff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-game-txt small { font-size: 12px; color: #878ab7; }
.dm-game::after { content: ''; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); transition: .15s; }
.dm-game:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 20%, #15183a); }
.dm-game:has(input:checked)::after { border-color: var(--c); background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.dm-game input:focus-visible + .dm-game-art { outline: 3px solid #36d4ff; outline-offset: 2px; }
.dm-count { margin: 12px 0 0; color: var(--gh-mute, #a7a9cf); font-size: 14px; }
.dm-count b { color: #ff73b1; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.dm-field { display: flex; flex-direction: column; gap: 7px; }
.dm-field.dm-full { grid-column: 1 / -1; }
.dm-field > span { font-size: 14px; font-weight: 700; color: #e4e4fb; }
.dm-field > span em { font-style: normal; color: #ff73b1; font-size: 12px; margin-left: 4px; }
.dm-w .frm_input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: #121634; font-size: 15px; color: var(--gh-ink, #f3f2ff); box-shadow: none; }
.dm-w .frm_input::placeholder { color: #8c8eba; opacity: 1; }
.dm-w textarea.frm_input { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.dm-w .frm_input:focus { outline: none; border-color: #36d4ff; box-shadow: 0 0 0 3px rgba(54, 212, 255, .3); }
.dm-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-radios label { cursor: pointer; }
.dm-radios input { position: absolute; opacity: 0; }
.dm-radios span { display: inline-block; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 14px; color: #cfd0ee; transition: .15s; }
.dm-radios input:checked + span { border-color: transparent; background: linear-gradient(100deg, #ff4fa3, #a46bff 50%, #36d4ff); color: #fff; }
.dm-radios input:focus-visible + span { outline: 3px solid #36d4ff; outline-offset: 2px; }
.dm-agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.65; color: var(--gh-mute, #a7a9cf); cursor: pointer; }
.dm-agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: #a46bff; }
.dm-agree b { display: block; color: var(--gh-ink, #f3f2ff); font-size: 14px; }
.dm-agree a { color: #36d4ff; text-decoration: underline; }
.dm-captcha { background: transparent; }
.dm-submit { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
@media (max-width: 700px) {
    .dm-grid { grid-template-columns: 1fr; }
    .dm-box { padding: 18px 16px 20px; }
    .dm-games { grid-template-columns: 1fr 1fr; }
    .dm-submit { flex-direction: column-reverse; }
    .dm-submit .gh-btn { width: 100%; }
}
.dm-view { width: 100%; margin: 0 0 22px; border-collapse: collapse; font-size: 14px; }
.dm-view th, .dm-view td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: left; vertical-align: top; }
.dm-view th { width: 140px; background: rgba(255, 255, 255, .06); color: var(--gh-mute, #a7a9cf); font-weight: 700; }
/* 그누보드 default.css 가 legend 를 숨기므로(position:absolute · font-size:0) 신청서 구획 제목은 다시 보이게 */
.dm-box legend { position: static !important; width: auto !important; height: auto !important; margin: 0 0 14px !important; overflow: visible !important; font-size: 18px !important; line-height: 1.3 !important; clip: auto !important; float: none; text-indent: 0 !important; padding: 0 6px !important; }
.dm-submit .gh-btn-ghost { background: rgba(255, 255, 255, .06); color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.dm-submit .gh-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #a46bff; }

/* 구매 신청 관리(목록 · 보기) — 메신저 연락처 · 등급 · 발급 상태 */
.by-mbadge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.by-mbadge.m-kakao { background: #fee500; color: #191600; }
.by-mbadge.m-telegram { background: #2aabee; color: #fff; }
.by-who b { display: block; color: #f3f2ff; }
.by-mline { display: block; margin-top: 3px; color: #c9cae8; font-size: 13px; }
.by-gbadge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.by-gbadge.g-half { background: #0f93bd; }
.by-gbadge.g-full { background: linear-gradient(100deg, #ff4fa3, #a46bff 55%, #36d4ff); }
.by-gcnt { color: #a7a9cf; font-size: 12.5px; }
.by-st { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #a7a9cf; font-size: 12px; font-weight: 700; }
.by-st.is-done { background: rgba(79, 224, 160, .16); color: #4fe0a0; }
.dm-view .by-mid { color: #fff; font-size: 15px; }
.by-mlink { margin-left: 4px; color: #7fe3ff !important; font-size: 13px; }
.by-mcopy { margin-left: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 12px; cursor: pointer; }
.by-mcopy:hover { background: rgba(255, 255, 255, .2); }
#bo_list td.by-grade, #bo_list td.by-lic { text-align: center; white-space: nowrap; }
#bo_list td.by-who { text-align: left; }
.by-issue { display: inline-flex; align-items: center; height: 32px; margin-left: 8px; padding: 0 14px; border-radius: 999px; background: linear-gradient(100deg, #ff4fa3, #a46bff 55%, #36d4ff);
    color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.by-mline { white-space: nowrap; }
.gh-content select#wr_5.by-msg-sel { background: #121634 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a7a9cf'/%3E%3C/svg%3E") no-repeat right 14px center !important; padding-right: 34px !important; }
/* fieldset 은 기본값으로 내용 폭만큼 넓어짐 → 모바일에서 게임 고르기 칸이 삐져나가던 문제 */
.dm-box { min-width: 0; max-width: 100%; }
.dm-games { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)) !important; }
.dm-games-tools { flex-wrap: wrap; }
@media (max-width: 480px) { .dm-games { grid-template-columns: 1fr 1fr !important; } .dm-game { padding-right: 28px; } .dm-game-art { width: 40px !important; } }
/* 게임 타일의 체크박스는 숨김(공통 체크박스 스타일이 자리를 잡지 않게) · 칸은 내용 최소폭 아래로도 줄게 */
.gh-content .dm-game input[type=checkbox], .gh-content .dm-radios input { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; opacity: 0 !important; pointer-events: none; }
.dm-games { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)) !important; }
.dm-games > li, .dm-game, .dm-game-txt { min-width: 0; }
@media (max-width: 480px) { .dm-games { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; } .dm-game { gap: 8px; padding: 8px 26px 8px 8px; } .dm-game-art { width: 38px !important; height: 38px !important; flex: none; } .dm-game-txt b { font-size: 13px; } }
@media (max-width: 480px) { .dm-game-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; word-break: keep-all; } }

/* ── 구매 신청 페이지 (/gl/buy.php) ── */
.gb a:not(.gh-btn) { color: #7fe3ff; }
.gb-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 0; }
.gb-plan { position: relative; display: block; padding: 20px 20px 22px; border: 2px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .04); cursor: pointer; transition: .15s; }
.gb-plan input { position: absolute !important; opacity: 0 !important; pointer-events: none; width: 1px !important; height: 1px !important; }
.gb-plan::after { content: ''; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); transition: .15s; }
.gb-tier { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; }
.gb-plan.p-half .gb-tier { background: #0f93bd; }
.gb-plan.p-full .gb-tier { background: linear-gradient(100deg, #ff4fa3, #a46bff 55%, #36d4ff); }
.gb-price { display: block; font-family: 'GH Head', sans-serif; font-size: 26px; color: #f3f2ff; line-height: 1.1; }
.gb-price small { font-size: 14px; color: #878ab7; font-weight: 400; }
.gb-plan ul { margin: 12px 0 0; padding: 0; list-style: none; }
.gb-plan li { position: relative; padding: 4px 0 4px 20px; font-size: 13.5px; color: #cfd0ee; }
.gb-plan li::before { content: '✓'; position: absolute; left: 0; color: #4fd98a; font-weight: 700; }
.gb-plan:hover { border-color: #a46bff; }
.gb-plan.p-half:has(input:checked) { border-color: #36d4ff; background: color-mix(in srgb, #0f93bd 30%, #15183a); }
.gb-plan.p-full:has(input:checked) { border-color: #a46bff; background: color-mix(in srgb, #a46bff 26%, #15183a); }
.gb-plan:has(input:checked)::after { border-color: #a46bff; background: #a46bff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.gb-ipnote { margin-top: 14px; padding: 13px 16px; border-radius: 12px; background: rgba(255, 207, 63, .08); box-shadow: inset 0 0 0 1px rgba(255, 207, 63, .3); color: #f1e3bd; font-size: 13.5px; line-height: 1.7; }
.gb-ipnote b { color: #ffe39a; }

.gb-opts { display: grid; gap: 12px; }
.gb-opt { padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.gb-opt-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.gb-opt-hd b { color: #fff; font-size: 15px; }
.gb-opt-hd span { color: #ffcf3f; font-size: 13px; font-weight: 700; }
.gb-opt-desc { margin: 10px 0 0; color: #a7a9cf; font-size: 13px; line-height: 1.6; }
.gb-opt-desc b { color: #7fe3ff; }
.gb-chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.gb-sel, .gh-content select.gb-sel { height: 46px; min-width: 160px; padding: 0 36px 0 14px !important; border: 1px solid rgba(255, 255, 255, .2) !important; border-radius: 12px !important; color: #f3f2ff !important; font-size: 15px; cursor: pointer;
    -webkit-appearance: none; appearance: none; background: #121634 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a7a9cf'/%3E%3C/svg%3E") no-repeat right 14px center !important; }
.gb-sel:disabled { opacity: .45; cursor: not-allowed; }
.gb-sel option { background: #15183a; color: #f3f2ff; }
.gb-small { margin-left: 6px; color: #878ab7; font-weight: 400; font-size: 12px; }
.gb-msg-row { display: flex; gap: 8px; }
.gb-msg-row .gb-sel { flex: none; width: 140px; min-width: 0; }
.gb-msg-row .frm_input { flex: 1; min-width: 0; }

.gb-sum { position: sticky; bottom: 12px; z-index: 5; margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: rgba(13, 15, 36, .94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 40px -20px rgba(0, 0, 0, .9); backdrop-filter: blur(8px); }
.gb-sum dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.gb-sum dl > div { min-width: 0; }
.gb-sum dt { color: #a7a9cf; font-size: 12.5px; }
.gb-sum dd { margin: 4px 0 0; color: #fff; font-size: 16px; font-weight: 800; }
.gb-sum .gb-sum-total dd { font-size: 22px; background: linear-gradient(100deg, #ff73b1, #36d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gb-btns { display: flex; justify-content: flex-end; gap: 10px; }
.gb-btns .gh-btn-lg { min-width: 200px; }
@media (max-width: 700px) {
    .gb-plans { grid-template-columns: 1fr; }
    .gb-sum { position: static; }
    .gb-sum dl { grid-template-columns: 1fr 1fr; }
    .gb-btns { flex-direction: column-reverse; }
    .gb-btns .gh-btn { width: 100%; }
}
@media (max-width: 480px) { .gb-msg-row .gb-sel { width: 116px; } }
/* 다른 언어 · 커스텀 포팅 옵션 (10-22) */
.gb-cus-input { width: 100%; height: 46px; }
.gb-cus-input:disabled { opacity: .45; cursor: not-allowed; }
.gb-sum dl { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
@media (max-width: 700px) { .gb-sum dl { grid-template-columns: 1fr 1fr !important; } }

/* 미니게임트리: 비회원 안내(신청은 로그인 회원만) */
.gb-ipnote.gb-login { margin-top: 18px; }
.gb-ipnote.gb-login a { color: #7fe3ff; font-weight: 700; }
