/* ---------- home screen: sign-in, menu, replay list, records ---------- */
#home { position: fixed; inset: 0; z-index: 70; background: radial-gradient(1200px 700px at 50% -10%, #2a2416 0%, var(--bg) 60%); display: flex; flex-direction: column; overflow: hidden; }
#home.hidden { display: none; }
body.home-on #toast { position: fixed; z-index: 95; }
.hm-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(20, 22, 28, .7); }
.hm-brand { font-size: 19px; font-weight: 700; color: var(--accent2); letter-spacing: .3px; }
.hm-user { display: flex; align-items: center; gap: 8px; }
.hm-name { font-weight: 700; }
.hm-body { flex: 1; overflow: auto; padding: 22px max(16px, calc((100% - 1200px) / 2)); }
.hm-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.hm-card h3 { margin: 0 0 8px; color: var(--accent2); font-size: 17px; }
.hm-auth, .hm-narrow { max-width: 440px; margin: 4vh auto 0; }
.hm-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.hm-tabs button { flex: 1; border: none; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 9px 4px; color: var(--muted); font-weight: 600; }
.hm-tabs button.on { color: var(--accent2); border-bottom-color: var(--accent); }
.hm-form { display: flex; flex-direction: column; gap: 10px; }
.hm-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.hm-form input { width: 100%; padding: 9px 10px; font-size: 15px; }
.hm-msg { min-height: 18px; margin-top: 8px; color: #ff8a7a; font-size: 13px; }
.hm-msg.ok { color: #7ee08a; }
.hm-msg:empty { display: none; }
.hm-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--muted); font-size: 12px; }
.hm-or::before, .hm-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
#hmGuest small { display: block; color: var(--muted); font-weight: 400; }
.hm-note { background: #262318; border: 1px solid #5b4b22; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.hm-note.ok { background: #18261b; border-color: #2f5c37; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.hm-tile { display: flex; flex-direction: column; gap: 8px; }
.hm-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.hm-btns button { flex: 1 1 auto; padding: 10px 12px; }
.hm-pin { font: 700 40px/1.1 Consolas, monospace; letter-spacing: 10px; color: var(--accent2); text-align: center; padding: 10px; border: 1px dashed var(--accent); border-radius: 8px; margin: 4px 0 10px; }
.hm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hm-head h3 { margin: 0; }
.hm-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-tools input[type=search] { min-width: 220px; }
.hm-list { overflow-x: auto; }
.hm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hm-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hm-table td { padding: 7px 8px; border-bottom: 1px solid #2a2e37; vertical-align: middle; }
.hm-table td small { display: block; color: var(--muted); font-size: 11.5px; }
.hm-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.hm-table td.res { text-align: center; white-space: nowrap; color: var(--muted); }
.hm-table td.acts { white-space: nowrap; text-align: right; }
.hm-table tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.hm-table .mono { font-family: Consolas, monospace; }
.w1 { color: #6fb2ff; } .w2 { color: #ff8070; }
.p1t { color: #6fb2ff; } .p2t { color: #ff8070; }
.r-승 { color: #7ee08a; font-weight: 700; } .r-패 { color: #ff8a7a; font-weight: 700; } .r-무 { color: var(--muted); font-weight: 700; }
.rc-tabs { max-width: 360px; }
.rc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rc-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.rc-card .k { color: var(--muted); font-size: 12px; }
.rc-card .v { font-size: 22px; font-weight: 700; color: var(--text); }
.rc-card .v.small { font-size: 14px; }
.rc-card .s { color: var(--muted); font-size: 11.5px; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.rc-sec { margin-bottom: 16px; min-width: 0; overflow-x: auto; }
.rc-sec h4 { margin: 4px 0 6px; color: var(--accent2); font-size: 14px; }
.hm-table td.bar { position: relative; min-width: 110px; }
.hm-table td.bar i { position: absolute; left: 8px; top: 9px; bottom: 9px; max-width: calc(100% - 16px); background: rgba(212, 165, 58, .35); border-radius: 3px; }
.hm-table td.bar span { position: relative; font-variant-numeric: tabular-nums; }
.mxwrap { overflow: auto; max-height: 70vh; }
.mxt th span { display: inline-block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.mxt tbody th { white-space: nowrap; color: var(--text); }
.mxt td.mx { text-align: center; font-size: 12px; background: color-mix(in srgb, #2e7d4f calc(var(--r) * 1%), #8a2f2a); color: #fff; border: 1px solid var(--bg); }
.mxt td.mx small { display: block; font-size: 10px; opacity: .75; }
.mxt td.none { color: var(--muted); background: transparent; }
#btnMenu { position: absolute; left: 46px; top: 8px; z-index: 6; height: 28px; padding: 0 10px; background: rgba(15, 16, 20, .85); font-weight: 700; }
html.touch #btnMenu { left: 58px; height: 40px; min-height: 40px; }
.hm-result { width: 560px; max-width: 96vw; }
.hm-result select { max-width: 220px; }
.hm-win { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 12px 0 4px; }
.hm-win > span { color: var(--muted); }
@media (max-width: 700px) { .rc-grid { grid-template-columns: 1fr; } .hm-body { padding: 14px; } }
#netBadge { left: 124px; }
html.touch #netBadge { left: 152px; top: 16px; }
