/* profile tab styles. Every class starts with "profile-" so tabs never collide. */

/* Text size (set from 내 정보 > 글씨 크기 조정). Only ordinary screens are zoomed; games (.full / .gk-game) are designed in
   fixed px on a 384 px board and must never change. */
html[data-font-scale="small"] #screen > :not(.full):not(.gk-game) { zoom: 0.9; }
html[data-font-scale="large"] #screen > :not(.full):not(.gk-game) { zoom: 1.15; }

.profile-root { padding-bottom: 24px; }
.profile-pad { padding-top: 4px; }
.profile-root .topbar { padding: 12px 12px 4px; }
.profile-root .topbar strong { font-size: 20px; letter-spacing: -0.02em; }
.profile-root .topbar button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.profile-root .topbar-arrow { width: 12px; height: 12px; margin-left: 5px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }

/* head */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 12px 0 8px; }
.profile-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.profile-head-text { min-width: 0; }
.profile-head-text small { color: var(--ink-sub); font-size: 14px; }
.profile-name-line { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.profile-name { font-size: 22px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.profile-grade { padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; }

/* sections and rows */
.profile-section { margin-top: 20px; }
.profile-section-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink-sub); }
.profile-list .profile-row:last-child { border-bottom: 0; }
.profile-row { min-height: 58px; font-size: 17px; }
.profile-row-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--primary); }
.profile-row-label { font-weight: 600; }
.profile-row-value { flex: none; color: var(--ink-sub); font-size: 15px; }
.profile-notice-title { display: block; font-size: 17px; line-height: 1.35; margin-bottom: 4px; }

/* cards, text, notes */
.profile-root .card, .profile-card { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.profile-lead { margin: 12px 0 0; color: var(--ink-sub); font-size: 15px; }
.profile-text { margin: 6px 0 0; font-size: 16px; line-height: 1.6; }
.profile-sub { color: var(--ink-sub); font-size: 14px; }
.profile-date { margin: 0 0 12px; color: var(--ink-sub); font-size: 14px; }
.profile-doc-title { margin: 12px 0 4px; font-size: 21px; line-height: 1.35; letter-spacing: -0.02em; }
.profile-doc-note { margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 14px; }
.profile-doc-block h3 { margin: 18px 0 0; font-size: 17px; }
.profile-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 15px; font-weight: 600; }
.profile-note-error { background: #fdecec; color: #b3261e; }
.profile-msg { min-height: 0; }
.profile-saved { padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-saved p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.profile-saved small { color: var(--ink-sub); }

/* form */
.profile-field { display: block; margin-top: 16px; }
.profile-field-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.profile-field small { display: block; margin-top: 6px; color: var(--ink-sub); font-size: 13px; }
.profile-input { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--page); color: var(--ink); font: inherit; font-size: 17px; }
.profile-input:focus { outline: 0; border-color: var(--primary); }
.profile-input:disabled { opacity: 0.45; }
.profile-textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.profile-save { margin-top: 20px; }

/* switch */
.profile-switch-row { display: flex; align-items: center; gap: 12px; }
.profile-switch-text { flex: 1; min-width: 0; }
.profile-switch-text strong { display: block; font-size: 17px; }
.profile-switch-text small { display: block; margin-top: 2px; color: var(--ink-sub); font-size: 14px; }
.profile-switch { position: relative; flex: none; width: 52px; height: 30px; border: 0; border-radius: 999px; background: #c9cfdb; cursor: pointer; transition: background 0.15s; }
.profile-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform 0.15s; }
.profile-switch[aria-checked="true"] { background: var(--primary); }
.profile-switch[aria-checked="true"]::after { transform: translateX(22px); }
.profile-time-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.profile-time-row > span:first-child { flex: 1; }
.profile-time { width: 160px; height: 44px; padding: 0 10px; font-size: 16px; }

/* single-choice list (font size, language) */
.profile-choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.profile-list .profile-choice:last-child { border-bottom: 0; }
.profile-choice-text strong { display: block; font-size: 18px; }
.profile-choice-text small { color: var(--ink-sub); font-size: 14px; }
.profile-radio { flex: none; position: relative; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b4bccb; }
.profile-choice[aria-checked="true"] .profile-radio { border-color: var(--primary); }
.profile-choice[aria-checked="true"] .profile-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--primary); }
.profile-sample p { margin: 6px 0 0; font-size: 17px; }

/* membership */
.profile-member { text-align: left; }
.profile-member-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.profile-member-name { display: block; margin: 10px 0 6px; font-size: 20px; }
.profile-info-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.profile-info-line span { flex: none; color: var(--ink-sub); }
.profile-info-line strong { text-align: right; font-weight: 600; }

/* activity record */
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-stat { padding: 12px; border-radius: 12px; background: var(--page); min-width: 0; }
.profile-stat-icon { display: block; margin-bottom: 6px; color: var(--primary); }
.profile-stat strong { display: block; font-size: 15px; color: var(--ink-sub); }
.profile-stat-num { margin-right: 2px; font-size: 26px; color: var(--ink); letter-spacing: -0.03em; }
.profile-stat small { display: block; margin-top: 2px; color: var(--ink-sub); font-size: 13px; overflow-wrap: anywhere; }
.profile-records { margin-top: 12px; }
.profile-record { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.profile-record:last-child { border-bottom: 0; }
.profile-record-title { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.profile-record small { color: var(--ink-sub); font-size: 13px; }
.profile-more { margin-top: 8px; height: 46px; }

/* empty state */
.profile-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 12px; text-align: center; }
.profile-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.profile-empty strong { font-size: 17px; }
.profile-empty p { margin: 0; color: var(--ink-sub); font-size: 14px; }
.profile-info-block { padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.profile-info-block span { color: var(--ink-sub); }
.profile-info-block p { margin: 4px 0 0; font-weight: 600; line-height: 1.5; }
.profile-pad > .profile-section-title { margin-top: 24px; }
