:root { color-scheme: light; font-family: "Noto Sans KR", sans-serif; font-size: 16px; font-synthesis: none; color: #14213d; background: #f4f7fb; }
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; font-size: 16px !important; -webkit-text-size-adjust: none; text-size-adjust: none; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { min-height: 48px; border: 0; border-radius: 10px; background: #315a9f; color: #fff; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
label { display: grid; gap: 7px; font-size: .92rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #14213d; font-size: 16px; }
textarea { resize: vertical; }
.page-shell { width: min(100% - 32px, 680px); margin: 0 auto; padding: 32px 0 104px; }
.auth-card, .card { border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(34, 55, 90, .09); }
.auth-card { display: grid; gap: 16px; max-width: 440px; margin: 10vh auto; padding: 30px; }
.auth-card h1, .auth-card .description, .auth-card form { margin: 0; }
.app-loading { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: #64748b; font-size: .9rem; }
.loading-spinner { width: 32px; height: 32px; border: 3px solid #dbe5f6; border-top-color: #315a9f; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-card form, .card form { display: grid; gap: 16px; }
.text-button { min-height: 36px; padding: 0; background: transparent; color: #315a9f; font-size: .9rem; }
.app { display: grid; gap: 18px; }
.app-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 5px 2px; }
.app-header h1, h2 { margin: 5px 0; }
.app-header p, .description, .help-text { margin: 5px 0 0; color: #64748b; line-height: 1.5; }
.eyebrow { color: #315a9f; font-weight: 800; letter-spacing: .09em; font-size: .75rem; }
.card { padding: 24px; }
.card h2 { font-size: 1.15rem; }
.screen { display: grid; gap: 18px; }
.screen-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 5px 2px; }
.screen-heading h2 { margin: 4px 0 0; }
.screen-actions { display: flex; gap: 8px; }
.screen-actions .register-button { width: auto; }
.games-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.games-actions .secondary-button, .games-actions .register-button { width: 100%; }
.back-button { width: auto; min-height: 40px; padding: 0 13px; background: #e8eef9; color: #315a9f; }
.subpage-heading { justify-content: flex-start; align-items: center; gap: 10px; }
.subpage-heading .back-button { width: 40px; min-width: 40px; padding: 0; font-size: 1.45rem; line-height: 1; }
.members-total { margin: 5px 0 0; color: #315a9f; font-size: .84rem; font-weight: 700; }
.sort-control { width: 112px; font-size: .75rem; color: #64748b; }
.sort-control select { padding: 8px; color: #14213d; font-size: .9rem; }
.history-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #edf0f4; }
.history-item:last-child { border-bottom: 0; }
.history-member { display: grid; gap: 3px; min-width: 0; }
.history-member strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-member span, .history-date { color: #64748b; font-size: .83rem; }
.history-date { flex: 0 0 auto; text-align: right; }
.history-status { min-height: 24px; padding: 4px; color: #64748b; text-align: center; font-size: .88rem; }
.list-toolbar { display: flex; align-items: center; gap: 10px; min-height: 38px; color: #64748b; font-size: .84rem; }
.delete-button { width: auto; min-height: 36px; padding: 0 13px; background: #c63e3e; }
.delete-button:disabled { background: #e6b9b9; opacity: 1; cursor: not-allowed; }
.list-select { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; cursor: pointer; }
.list-select input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.list-select span { display: block; width: 20px; height: 20px; border: 1.5px solid #b7c2d0; border-radius: 6px; background: #fff; }
.list-select input:checked + span { border-color: #315a9f; background: #315a9f; box-shadow: inset 0 0 0 4px #fff; }
.history-item:has(input:checked), .member-list-item:has(input:checked) { background: #f3f7ff; }
.member-search { display: grid; grid-template-columns: 1fr 86px; gap: 8px; }
.member-search button { min-height: 44px; }
.other-favorite-search { grid-template-columns: 104px minmax(0, 1fr) 86px; }
.other-favorite-search select { padding: 8px; }
.members-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.member-list-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px; border-bottom: 1px solid #edf0f4; cursor: pointer; }
.member-list-item:last-child { border-bottom: 0; }
.member-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 7px; color: #64748b; font-size: .82rem; }
.member-count { align-self: center; display: grid; justify-items: end; gap: 3px; color: #315a9f; font-size: .78rem; }
.member-count strong { font-size: 1.1rem; }
.member-welcome-card { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #315a9f, #5275b4); color: #fff; }
.member-welcome-card .eyebrow, .member-welcome-card p { color: #dce8ff; }
.member-welcome-card h2 { margin: 5px 0; font-size: 1.25rem; }
.member-welcome-card p { margin: 0; font-size: .88rem; }
.member-welcome-card > div { flex: 1 1 auto; min-width: 0; }
.member-welcome-body { display: grid; gap: 0; }
.member-membership-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.relationship-badge { display: inline-flex; align-items: center; width: auto; min-height: 30px; max-width: 170px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; overflow: hidden; background: #7b8798; color: #fff; font-size: .76rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.relationship-badge.relationship-solo { background: #6b7280; }
.relationship-badge.relationship-dating { background: #ec4899; }
.relationship-badge.relationship-secret { background: #7c3aed; }
.relationship-badge.relationship-divorced { background: #dc2626; }
.member-home-icon { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.16); font-size: 1.55rem; }
.member-rating-summary { grid-template-columns: auto auto; grid-template-rows: auto auto; width: 82px; height: 64px; padding: 8px; background: rgba(255,255,255,.16); color: #fff; font-size: 1rem; line-height: 1; }
.member-rating-summary span { color: #fbbf24; font-size: 1.15rem; }
.member-rating-summary strong { font-size: 1.05rem; }
.member-rating-summary small { grid-column: 1 / -1; color: #dce8ff; font-size: .63rem; font-weight: 700; }
.member-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.member-visit-button { width: 100%; min-height: 46px; margin-top: 14px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .55); background: #fff; color: #315a9f; font-size: 1rem; }
.member-home-card, .member-account-card { border-radius: 15px; background: #fff; box-shadow: 0 6px 16px rgba(34,55,90,.06); }
.member-home-card { display: grid; gap: 8px; padding: 18px; color: #64748b; font-size: .84rem; }
.member-home-card strong { color: #14213d; font-size: 1.05rem; }
.member-account-card { padding: 20px; }
.member-account-card h2 { margin: 0 0 15px; font-size: 1rem; }
.member-account-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-account-heading h2 { margin: 0 0 15px; }
.member-edit-button { width: auto; min-height: 34px; margin: -4px 0 10px; padding: 0 12px; background: #eef3fb; color: #315a9f; font-size: .82rem; }
.member-account-card > div:not(.member-account-heading) { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #edf0f4; color: #64748b; font-size: .88rem; }
.member-account-card strong { color: #14213d; }
.my-rating-card { display: grid; gap: 5px; padding: 20px; border-radius: 15px; background: linear-gradient(135deg, #fff6d8, #fff); box-shadow: 0 6px 16px rgba(34,55,90,.06); }
.my-rating-card > span, .my-rating-card p { color: #7c6540; font-size: .84rem; }
.my-rating-card strong { color: #9a6500; font-size: 2rem; line-height: 1.1; }
.my-rating-card strong small { color: #9a6500; font-size: .9rem; }
.my-rating-card p { margin: 0; }
.rating-members-list { min-height: 0; }
.rating-member-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #edf0f4; }
.rating-member-item:last-child { border-bottom: 0; }
.rating-member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating-member-name-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rating-member-name-row .relationship-badge { min-height: 24px; max-width: 118px; padding: 3px 8px; font-size: .68rem; }
.rating-average { display: grid; justify-items: end; gap: 3px; color: #9a6500; font-size: .76rem; }
.rating-average strong { font-size: 1.08rem; }
.rating-controls { display: grid; grid-template-columns: repeat(5, 24px) auto; align-items: center; gap: 3px; }
.rating-star { width: 24px; min-height: 32px; padding: 0; border-radius: 0; background: transparent; color: #cbd5e1; font-size: 1.35rem; line-height: 1; }
.rating-star.active { color: #f59e0b; }
.give-rating-button { width: auto; min-height: 34px; margin-left: 7px; padding: 0 10px; font-size: .78rem; }
.relationship-dating-fields { display: grid; gap: 10px; }
.relationship-field-label { font-size: .92rem; font-weight: 700; }
.relationship-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.relationship-type-option { display: block; cursor: pointer; }
.relationship-type-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.relationship-type-option span { display: grid; min-height: 46px; place-items: center; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #64748b; font-size: .9rem; font-weight: 700; }
.relationship-type-option input:checked + span { border-color: #315a9f; background: #eef3fb; color: #315a9f; }
.game-filter { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 8px; }
.game-filter label { font-size: .78rem; }
.game-filter select, .game-filter input { padding: 10px; }
.game-filter button { min-height: 42px; padding: 0 15px; }
.games-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.game-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid #edf0f4; }
.game-item:last-child { border-bottom: 0; }
.game-item:has([data-board-game-select]:checked) { background: #f3f7ff; }
.game-item-info { display: grid; flex: 1 1 auto; gap: 4px; min-width: 0; }
.game-item-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-category { color: #64748b; font-size: .8rem; }
.favorite-game-button { flex: 0 0 92px; width: 92px; min-height: 36px; padding: 0 8px; white-space: nowrap; background: #eef3fb; color: #315a9f; }
.favorite-game-button.active { background: #315a9f; color: #fff; }
.admins-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.admin-section { display: grid; gap: 10px; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
.admin-section-heading h3 { margin: 0; font-size: 1rem; }
.section-count, .admin-role { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #eef3fb; color: #315a9f; font-size: .75rem; font-weight: 800; }
.admin-role.super { background: #fff1cf; color: #9a6500; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #64748b; font-size: .84rem; }
.admin-toolbar select { width: auto; min-height: 36px; padding: 0 8px; font-size: .82rem; }
.role-change-button { width: auto; min-height: 36px; padding: 0 12px; }
.admin-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-bottom: 1px solid #edf0f4; }
.admin-item:has([data-admin-select]) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.admin-item:has(input:checked) { background: #f3f7ff; }
.admin-item:last-child { border-bottom: 0; }
.admin-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.admin-date { margin-top: 5px; color: #64748b; font-size: .8rem; line-height: 1.45; word-break: keep-all; }
.approve-button { width: auto; min-height: 38px; flex: 0 0 auto; padding: 0 13px; background: #2d8a58; }
.admin-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.reject-button { width: auto; min-height: 38px; padding: 0 13px; background: #f1e5e5; color: #b43b3b; }
.pricing-heading { align-items: flex-start; }
.pricing-heading h2 { margin: 4px 0; }
.pricing-heading p { margin: 0; color: #64748b; font-size: .9rem; }
.price-grid { display: grid; gap: 12px; }
.price-card { position: relative; display: grid; grid-template-columns: 94px 1fr; align-items: center; gap: 4px 14px; min-height: 104px; padding: 18px; border: 1px solid #e1e8f3; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(34, 55, 90, .05); }
.price-card .price-time { grid-row: 1 / span 2; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 13px; background: #eff4fd; color: #315a9f; font-size: .98rem; font-weight: 800; }
.price-card > strong { font-size: 1.6rem; letter-spacing: -.04em; }
.price-card > strong span { margin-left: 2px; font-size: .92rem; letter-spacing: 0; }
.price-card p { margin: 0; color: #718096; font-size: .82rem; }
.price-card.featured { border: 2px solid #315a9f; background: #f9fbff; }
.price-card.featured .price-time { background: #315a9f; color: #fff; }
.price-badge { position: absolute; top: -10px; right: 15px; padding: 4px 8px; border-radius: 999px; background: #f2a62a; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.notice-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; }
.notice-card-icon { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.3rem; }
.notice-card h3 { margin: 0 0 4px; font-size: .98rem; }
.notice-card p { margin: 0; color: #64748b; font-size: .84rem; line-height: 1.5; }
.beverage-notice { background: #f2f7ff; border: 1px solid #dceafd; }
.beverage-notice .notice-card-icon { background: #dceafd; }
.food-notice { background: #fff8ed; border: 1px solid #f8e5c5; }
.food-notice .notice-card-icon { background: #ffebc8; }
.header-actions { display: flex; gap: 8px; }
.secondary-button, .register-button { width: auto; min-height: 40px; padding: 0 14px; }
.secondary-button { background: #e8eef9; color: #315a9f; }
.register-button { background: #315a9f; }
.member-form { display: grid; gap: 16px; }
.optional-label { color: #64748b; font-size: .78rem; font-weight: 500; }
.form-field { display: grid; gap: 6px; }
.field-message { min-height: 1.2em; margin: 0; color: #b42318; font-size: .82rem; line-height: 1.4; }
.join-request-content { display: flex; flex-direction: column; max-height: 88vh; padding: 0; overflow: hidden; }
.join-request-content .modal-header { flex: 0 0 auto; margin: 0; padding: 20px 24px; border-bottom: 1px solid #edf0f4; background: #fff; }
.join-request-body { overflow-y: auto; padding: 20px 24px 24px; }
.join-request-body .help-text { margin: 0 0 20px; }
.join-request-body .member-form { gap: 18px; }
.join-request-body .form-field { gap: 7px; }
.join-request-body .field-message { min-height: 0; }
.join-request-body .field-message:empty { display: none; }
.join-request-body .password-help { margin: 0; }
.join-request-footer { flex: 0 0 auto; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #edf0f4; background: #fff; }
.join-request-footer button { width: 100%; }
.game-modal-content { display: flex; flex-direction: column; max-height: 88vh; padding: 0; overflow: hidden; }
.game-modal-content .modal-header { flex: 0 0 auto; margin: 0; padding: 20px 24px; border-bottom: 1px solid #edf0f4; background: #fff; }
.game-modal-body { overflow-y: auto; padding: 20px 24px 24px; }
.game-modal-footer { flex: 0 0 auto; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #edf0f4; background: #fff; }
.game-modal-footer button { width: 100%; }
.password-help { margin: -7px 0 0; color: #64748b; font-size: .79rem; line-height: 1.45; }
.message { min-height: 1.3em; margin: 0; color: #b42318; font-size: .9rem; white-space: pre-line; }
.result { margin-top: 16px; padding: 14px; border-radius: 10px; background: #edf7f0; color: #176b3a; line-height: 1.55; white-space: pre-line; }
.result.warning { background: #fff7e8; color: #9a5a00; }
.hidden { display: none !important; }
.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; width: min(100%, 680px); height: calc(76px + env(safe-area-inset-bottom)); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(255, 255, 255, .96); border-top: 1px solid #e2e8f0; box-shadow: 0 -4px 18px rgba(34, 55, 90, .08); }
.nav-item { height: 58px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 8px; background: transparent; color: #778396; font-size: .7rem; font-weight: 600; }
.bottom-nav [data-view="history"] { grid-column: 1; }
.bottom-nav [data-view="members"] { grid-column: 2; }
.bottom-nav [data-view="games"] { grid-column: 2; }
.bottom-nav [data-view="home"] { grid-column: 3; }
.bottom-nav [data-view="pricing"] { grid-column: 4; }
#adminsNav, #managerLogoutNav { grid-column: 5; grid-row: 1; }
.nav-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-item.active { color: #315a9f; font-weight: 800; }
.modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: end center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.modal-content { position: relative; width: min(100%, 680px); max-height: 88vh; overflow-y: auto; padding: 24px; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -12px 40px rgba(15, 23, 42, .2); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-header h2, .notice-content h2 { margin: 0; }
.close-button { width: 36px; min-height: 36px; padding: 0; border-radius: 50%; background: #eef2f7; color: #475569; font-size: 1.7rem; font-weight: 400; }
.notice-content { display: grid; justify-items: center; gap: 12px; padding: 34px 24px; text-align: center; }
.notice-content p { margin: 0 0 8px; color: #64748b; }
.notice-content button { width: 100%; }
.notice-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #e8eef9; color: #315a9f; font-size: 1.65rem; }
.delete-modal-content { display: grid; justify-items: center; gap: 13px; padding: 34px 24px; text-align: center; }
.delete-modal-content h2 { margin: 0; }
.delete-modal-content p { margin: 0; color: #64748b; line-height: 1.5; }
.delete-modal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fee8e8; color: #c63e3e; font-size: 1.35rem; font-weight: 800; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; margin-top: 9px; }
.modal-actions .secondary-button, .modal-actions .delete-button { width: 100%; min-height: 46px; }
@media (max-width: 520px) { .page-shell { width: min(100% - 24px, 680px); padding-top: 20px; } .auth-card, .card { padding: 20px; } .app-header { align-items: stretch; flex-direction: column; } .header-actions { display: grid; grid-template-columns: 1fr 1fr; } .secondary-button, .register-button { width: 100%; } .screen-actions .register-button { width: 100%; } .screen-heading { align-items: end; } .pricing-heading { align-items: flex-start; } }
