/* 메인 화면: 첫 안내 · 진열장 · 기록 · 메달 추가
   색: 검정 #0A0A0A 바탕 · 흰 글자 · 형광 초록 #CCFF00 포인트 */
:root{--accent:#CCFF00}
html,body{background:#0A0A0A}
body{margin:0}
/* 예전 첫 화면은 숨긴다 (사진 올리기 부품은 화면 밖에 둔 채로 계속 쓴다) */
header.topbar,.hero,body>footer,#collection{display:none!important}
#start{position:fixed!important;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0;pointer-events:none;margin:0!important;padding:0!important}
/* 다른 화면(다듬기 · 메달 보기)의 포인트도 형광 초록 + 검정 글자 */
.split .grab i,.btns button.on,.primary,.mask-lock[aria-pressed="true"],.face-switch button[aria-pressed="true"],.progress-fill,.camera-side button[aria-pressed="true"],.v2 .face-switch button[aria-pressed="true"],.v2-actions #to-archive,.v2-reg,html.m-ui .m-top #make,html.m-ui .m-float button[aria-pressed="true"],.cu .cu-seg button[aria-pressed="true"],html.m-ui .m-orig[aria-pressed="true"],.cu .eng-f.eng-first[data-n]::after,.gd-btn{background:#CCFF00!important;border-color:#CCFF00!important;color:#0A0A0A!important}

#home{--bg:#0A0A0A;--acc:#CCFF00;--on-acc:#0A0A0A;--danger:#FF5A4F;--w:#FAFAFA;--mut:#A3A3A3;--faint:#737373;--ln:rgba(255,255,255,.08);--ln2:rgba(255,255,255,.16);--surf:rgba(255,255,255,.035);--disp:'Inter','IBM Plex Sans KR',system-ui,sans-serif;--sans:'IBM Plex Sans KR','Inter',system-ui,sans-serif;
  position:relative;min-height:100vh;background:var(--bg);color:var(--w);font-family:var(--sans);-webkit-font-smoothing:antialiased}
#home *{box-sizing:border-box}
#home button,#home input,#home label{font-family:inherit}
#home [hidden]{display:none!important}
html.hm-lock,html.hm-lock body{overflow:hidden}

/* 머리줄 */
.hm-top{height:60px;padding:0 14px 0 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.hm-logo{display:flex;align-items:center;padding:12px 0;color:var(--w);text-decoration:none;font:800 14px/1 var(--disp);letter-spacing:.08em;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
@media (hover:hover){.hm-logo:hover{opacity:.75}}
.hm-top-r{display:flex;align-items:center;gap:8px}
.hm-chip{height:34px;padding:0 12px;border-radius:17px;border:1px solid var(--ln);background:var(--surf);color:var(--mut);font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}
.hm-chip svg{color:var(--w)}
.hm-chip.warn{border-color:rgba(255,90,79,.5);color:var(--w)}
.hm-avatar{width:36px;height:36px;padding:0;border:0;border-radius:50%;background:var(--acc);color:var(--on-acc);font-weight:800;font-size:14px;cursor:pointer;flex:none}

/* 본문 */
.hm-main{padding:10px 20px 150px}
.hm-eye{margin:18px 0 0;font:700 10.5px/1 var(--disp);letter-spacing:.18em;color:var(--acc)}   /* 제목 위 작은 글씨 */
.hm-title{margin:8px 0 0;font-size:32px;font-weight:800;line-height:1.18;letter-spacing:-.04em;word-break:keep-all}
.hm-title i{font-style:normal;color:var(--acc)}
html:not(.pc-ui) .hm-eye{margin-top:0}   /* 폰: 기록실 · 마일리지 · Lab 머리글(.pg-head)과 같은 자리 · 같은 크기 */
html:not(.pc-ui) .hm-title{margin-top:10px;font-size:34px;line-height:1.1;letter-spacing:-.03em}
/* 총계 (진열장 아래): 누적 거리 크게 | 메달 · 대회 기록 */
.hm-stats.no-tro{grid-template-columns:repeat(3,minmax(0,1fr))}   /* 트로피 진열을 끄면 트로피 칸 없이 3칸 */
.hm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border-top:1px solid var(--ln);border-bottom:1px solid var(--ln)}   /* 총계 한 줄 4칸: 대회 누적(Km) | 올해 누적(Km) | 트로피 | 메달 */
html[data-hview="grid"] .hm-stats{margin-top:30px}
.hm-st{min-width:0;display:flex;flex-direction:column;gap:7px;padding:16px 4px;text-align:center}
.hm-st+.hm-st{border-left:1px solid var(--ln)}
.hm-st b{font:600 25px/1 'Oswald',var(--disp);letter-spacing:.005em;font-variant-numeric:tabular-nums;white-space:nowrap}
.hm-st b small{font-size:.43em;margin-left:.1em;color:var(--mut)}   /* km: 숫자와 같은 비율로 줄어든다 (home.js fitStats) */
.hm-st span{font-size:10.5px;line-height:1.35;color:var(--mut);white-space:nowrap}
.hm-body{display:grid;gap:30px;margin-top:24px;grid-template-areas:"pb" "tro" "med"}
#hm-pb{grid-area:pb}#hm-tro{grid-area:tro}#hm-med{grid-area:med}
.hm-sec-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.hm-sec-h h2{margin:0;font-size:20px;font-weight:700;letter-spacing:-.02em}
.hm-sec-h h2 b{font:700 15px var(--disp);color:var(--acc);margin-left:6px}
.hm-small{height:32px;padding:0 14px;border-radius:16px;border:1px solid var(--ln2);background:transparent;color:var(--w);font-size:13px;font-weight:600;cursor:pointer}

/* 최고 기록 */
.hm-pbbox{border-radius:20px;padding:6px 18px;background:var(--surf);border:1px solid var(--ln)}
.hm-pbrow{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 0}
.hm-pbrow+.hm-pbrow{border-top:1px solid var(--ln)}
.hm-pbrow i{font:700 11px var(--disp);font-style:normal;letter-spacing:.14em;color:var(--mut)}
.hm-pbrow span{font-size:13px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-pbrow b{font:800 22px/1 var(--disp);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.hm-pbrow.none b{color:var(--faint)}

/* 종목 탭 */
.hm-tabs{display:flex;gap:22px;border-bottom:1px solid var(--ln);overflow-x:auto;scrollbar-width:none;margin-bottom:18px}
/* 탭 줄: 왼쪽 탭(전체 · 지역별 · 부문별 · 공유) · 오른쪽 보기 도구(봉/칸 · 칸 수 · 정리) — '메달 N' 줄은 화면 읽기용만 */
.hm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hm-tabrow{display:flex;align-items:center;gap:10px;margin:14px 0 12px;border-bottom:1px solid var(--ln)}
.hm-tabrow.notabs{border-bottom-color:transparent}
.hm-tabrow .hm-tabs{flex:1;min-width:0;gap:20px;margin:0;border-bottom:0}
.hm-tabrow .hm-tab{font-size:13.5px;padding:9px 0;border-bottom:0;margin-bottom:0}   /* 밑줄을 안 쓰니 글자가 줄 가운데 (오른쪽 아이콘과 높이가 맞게) */
.hm-tabtools{flex:none;display:flex;align-items:center;gap:6px;margin-left:auto}
.hm-tabtools .hm-cols{justify-content:center;gap:5px;height:32px;min-width:32px;padding:0 8px;border:0;border-radius:9px;color:var(--w)}   /* 테두리 없이 */
.hm-tabtools .hm-cols span{color:var(--w)}
.hm-tabtools .hm-view{padding:0}
.hm-tabtools .hm-small{height:32px;padding:0 12px;border-radius:9px}
.hm-tabs::-webkit-scrollbar{display:none}
.hm-tab{flex:none;padding:12px 0 11px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:transparent;color:var(--mut);font-size:14px;font-weight:500;display:flex;align-items:baseline;gap:5px;cursor:pointer}
.hm-tab small{font:700 12px var(--disp);color:var(--faint)}
.hm-tab[aria-pressed="true"]{color:var(--w);font-weight:700;border-bottom-color:transparent}   /* 고른 탭: 형광 밑줄 없이 (흰 굵은 글씨로만) */
.hm-tab[aria-pressed="true"] small{color:var(--acc)}

/* 메달 · 트로피 칸 */
.hm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
.hm-tgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hm-item{position:relative;min-width:0;display:flex;flex-direction:column;gap:10px}
.hm-tile{position:relative;width:100%;height:212px;padding:0;border-radius:18px;overflow:hidden;cursor:pointer;display:flex;justify-content:center;align-items:flex-start;
  background:radial-gradient(85% 60% at 50% 6%,rgba(255,255,255,.11),rgba(255,255,255,0) 70%),linear-gradient(180deg,#1A1A1A,#0E0E0E);border:1px solid rgba(255,255,255,.06);color:inherit}
.hm-tile::before{content:"";position:absolute;left:16px;right:16px;top:14px;height:2px;border-radius:1px;background:rgba(255,255,255,.16)}
.hm-tile img{position:relative;margin-top:15px;max-width:74%;max-height:calc(100% - 26px);object-fit:contain;object-position:top;filter:drop-shadow(0 10px 14px rgba(0,0,0,.55))}
.hm-trophy .hm-tile{height:170px;align-items:flex-end}
.hm-trophy .hm-tile::before{display:none}
.hm-trophy .hm-tile img{margin:0 0 14px;max-height:calc(100% - 28px);object-position:bottom}
.hm-pbtag{position:absolute;left:10px;top:10px;height:22px;padding:0 8px;border-radius:11px;background:var(--acc);color:var(--on-acc);font:800 10.5px/22px var(--disp);letter-spacing:.06em}
.hm-cap{display:flex;align-items:flex-start;gap:6px;padding:0 2px 0 4px;min-width:0}
.hm-cap>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.hm-cap b{font-size:14px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all}
.hm-cap b.empty{color:var(--faint);font-weight:500;padding:0}
.hm-cap span{font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.hm-pen{flex:none;width:32px;height:32px;margin:-6px -4px 0 0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--faint);display:flex;align-items:center;justify-content:center;cursor:pointer}
.hm-pen:hover{color:var(--w);background:var(--surf)}
.hm-add{height:170px;border-radius:18px;border:1.5px dashed rgba(255,255,255,.16);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--mut);font-size:13px;font-weight:600;cursor:pointer}
.hm-add:hover{color:var(--w);border-color:rgba(255,255,255,.3)}
.hm-empty{grid-column:1/-1;padding:44px 20px;border-radius:20px;border:1.5px dashed rgba(255,255,255,.14);text-align:center;color:var(--mut);font-size:14px;line-height:1.6}
.hm-check{position:absolute;right:10px;top:10px;width:26px;height:26px;border-radius:50%;border:2px solid rgba(255,255,255,.5);background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;color:#fff}
.hm-sel .hm-tile{border:2px solid var(--acc)}
.hm-sel .hm-check{background:var(--acc);border-color:var(--acc);color:var(--on-acc)}
.hm-item.just .hm-tile{box-shadow:0 0 0 2px var(--acc),0 0 30px rgba(204,255,0,.3);transition:box-shadow .5s}
.hm-editbar{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:9;display:flex;align-items:center;gap:8px;padding:8px 8px 8px 18px;border-radius:30px;background:#171717;border:1px solid var(--ln2);box-shadow:0 16px 40px rgba(0,0,0,.5);white-space:nowrap}
.hm-editbar span{font-size:14px;color:var(--mut);margin-right:6px}
.hm-editbar button{height:42px;padding:0 18px;border-radius:21px;border:0;font-size:14px;font-weight:700;cursor:pointer}
#hm-del{background:var(--danger);color:#fff}#hm-del:disabled{opacity:.45;cursor:default}
#hm-edit-done{background:rgba(255,255,255,.08);color:var(--w)}

/* 가운데 알약 버튼 */
.hm-pill{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:9;height:56px;padding:0 30px 0 24px;border:0;border-radius:28px;background:var(--acc);color:var(--on-acc);font-size:16px;font-weight:800;display:flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer;box-shadow:0 14px 36px rgba(204,255,0,.22)}
.hm-pill:active{transform:translateX(-50%) scale(.98)}
.hm-fade{position:fixed;left:0;right:0;bottom:0;height:120px;z-index:8;pointer-events:none;background:linear-gradient(180deg,rgba(10,10,10,0),#0A0A0A 75%)}
.hm-toast{position:fixed;left:20px;right:20px;bottom:96px;margin:0 auto;width:-webkit-fit-content;width:fit-content;max-width:480px;transform:translateY(10px);word-break:keep-all;overflow-wrap:anywhere;z-index:70;padding:12px 16px;border-radius:14px;background:#171717;border:1px solid var(--ln2);color:var(--w);font-size:14px;line-height:1.45;display:flex;align-items:center;gap:12px;box-shadow:0 16px 40px rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.hm-toast.on{opacity:1;transform:translateY(0);pointer-events:auto}   /* 가운데 · 글이 길면 화면 폭(양옆 20px)까지 넓어진다 — 예전엔 left:50% 라 폭이 화면 절반에 갇혀 글이 좁게 꺾였다 */
.hm-toast.bad{border-color:rgba(255,90,79,.6)}
.hm-toast button{border:0;background:none;color:var(--acc);font-weight:700;font-size:14px;cursor:pointer;padding:6px 0;white-space:nowrap}

/* 계정 */
.hm-acct{position:fixed;right:14px;top:64px;z-index:55;width:260px;padding:16px;border-radius:18px;background:#171717;border:1px solid var(--ln2);box-shadow:0 20px 50px rgba(0,0,0,.55);display:flex;flex-direction:column;gap:6px}
.hm-acct p{margin:0}
.hm-acct-name{font-size:15px;font-weight:700}
.hm-acct-mail,.hm-acct-state{font-size:12.5px;color:var(--mut);word-break:break-all}
.hm-acct-state{margin:4px 0 8px!important;line-height:1.5}
.hm-acct button{height:42px;border-radius:12px;border:0;background:rgba(255,255,255,.06);color:var(--w);font-size:14px;font-weight:600;text-align:left;padding:0 14px;cursor:pointer}
.hm-acct button:hover{background:rgba(255,255,255,.1)}

/* 버튼 공통 */
.hm-red{height:54px;width:100%;border:0;border-radius:27px;background:var(--acc);color:var(--on-acc);font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.hm-ghost{height:52px;width:100%;border:1px solid var(--ln2);border-radius:26px;background:transparent;color:var(--w);font-size:15px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}
.hm-gbtn{height:54px;width:100%;border:0;border-radius:27px;background:#fff;color:#1F1F1F;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}
.hm-x{position:absolute;right:14px;top:14px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.06);color:var(--w);display:flex;align-items:center;justify-content:center;cursor:pointer}

/* 바닥 시트 (PC는 가운데 창) */
.hm-sheet-wrap{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center}
.hm-scrim{position:absolute;inset:0;background:rgba(0,0,0,.75)}
.hm-sheet{position:relative;width:100%;max-height:92vh;overflow-y:auto;background:#171717;border-radius:26px 26px 0 0;padding:26px 20px calc(24px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:18px;box-shadow:0 -24px 48px rgba(0,0,0,.5);animation:hm-up .22s ease-out}
@keyframes hm-up{from{transform:translateY(24px);opacity:0}}
.hm-sheet h2{margin:0;padding-right:44px;font-size:22px;font-weight:700;letter-spacing:-.02em}
.hm-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.hm-list li{display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.5}
.hm-list li>span:first-child{width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;flex:none}
.hm-sheet-btns{display:flex;flex-direction:column;gap:10px}

/* 2D · 3D 고르기 */
.hm-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hm-opt{position:relative;padding:12px;border:1px solid var(--ln2);border-radius:20px;background:rgba(255,255,255,.04);color:var(--w);text-align:left;display:flex;flex-direction:column;gap:10px;cursor:pointer;min-width:0}
.hm-opt[aria-pressed="true"]{border:2px solid var(--acc);padding:11px}
.hm-opt-pic{position:relative;height:160px;border-radius:14px;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px;
  background:radial-gradient(85% 60% at 50% 6%,rgba(255,255,255,.12),rgba(255,255,255,0) 70%),linear-gradient(180deg,#1A1A1A,#0E0E0E)}
.hm-opt-pic img{max-height:140px;max-width:80%;object-fit:contain;filter:drop-shadow(0 10px 12px rgba(0,0,0,.55))}
.hm-opt[data-mode="3d"] .hm-opt-pic img{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 26px);mask-image:linear-gradient(180deg,transparent 0,#000 26px)}
.hm-orbit{position:absolute;left:50%;bottom:4px;margin-left:-62px}
.hm-opt-h{display:flex;align-items:baseline;gap:8px}
.hm-opt-h b{font:900 38px/.9 var(--disp);letter-spacing:-.05em}
.hm-opt-h em{font-style:normal;font-size:13px;font-weight:700;color:var(--mut)}
.hm-opt[aria-pressed="true"] .hm-opt-h em{color:var(--acc)}
.hm-opt-d{font-size:12.5px;line-height:1.45;color:var(--mut);word-break:keep-all}
.hm-opt-ok{position:absolute;right:10px;top:10px;width:24px;height:24px;border-radius:50%;background:var(--acc);color:var(--on-acc);display:none;align-items:center;justify-content:center}
.hm-opt[aria-pressed="true"] .hm-opt-ok{display:flex}

/* 대회 정보 */
.hm-info-top{display:flex;align-items:center;gap:14px;padding-right:44px}
.hm-info-top img{width:52px;height:64px;object-fit:contain;flex:none}
.hm-f{display:flex;flex-direction:column;gap:7px;min-width:0}
.hm-f>span{font-size:13px;font-weight:600;color:var(--mut)}
.hm-f input{height:50px;width:100%;padding:0 14px;border-radius:14px;border:1px solid var(--ln2);background:rgba(255,255,255,.04);color:var(--w);font-size:16px;outline:none;color-scheme:dark}
.hm-f input:focus{border-color:var(--acc)}
.hm-f2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hm-segs{display:flex;flex-wrap:wrap;gap:6px}
.hm-seg{height:40px;padding:0 15px;border-radius:20px;border:1px solid var(--ln2);background:transparent;color:var(--w);font-size:14px;font-weight:600;cursor:pointer}
.hm-seg[aria-pressed="true"]{background:var(--w);border-color:var(--w);color:#0A0A0A}

/* 첫 안내 */
.hm-gate{position:fixed;inset:0;z-index:60;overflow-y:auto;background:#0A0A0A}
.hm-gate-body{position:relative;padding:0 20px 28px;display:flex;flex-direction:column}
.hm-gate-art{position:relative;height:300px;display:flex;justify-content:center}
.hm-ring{position:absolute;left:50%;top:22px;width:236px;height:236px;margin-left:-118px;border-radius:50%;border:1px solid rgba(204,255,0,.32);background:radial-gradient(closest-side,rgba(204,255,0,.07),rgba(204,255,0,0) 80%)}
.hm-gate-art img{position:relative;width:150px;height:auto;align-self:flex-start;filter:drop-shadow(0 18px 26px rgba(0,0,0,.6));-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 46px);mask-image:linear-gradient(180deg,transparent 0,#000 46px)}
.hm-hero{margin:0;font:900 56px/.9 var(--disp);letter-spacing:-.055em;text-transform:uppercase}
.hm-hero i{font-style:normal;color:var(--acc)}
.hm-gate-sub{margin:14px 0 0;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.01em}
.hm-gate-btns{display:flex;flex-direction:column;gap:4px;margin-top:28px}
.hm-skip{height:46px;border:0;background:transparent;color:var(--w);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(255,255,255,.4);cursor:pointer}
.hm-gate-msg{margin:6px 0 0;min-height:20px;font-size:13px;color:var(--danger);text-align:center}
.hm-gate-notes{list-style:none;margin:14px 0 0;padding:14px 0 0;border-top:1px solid var(--ln);display:flex;flex-direction:column;gap:8px}
.hm-gate-notes li{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--mut)}
.hm-gate-notes b{color:var(--w);font-weight:600}

/* ───── PC ───── */
html.pc-ui .hm-top{height:76px;padding:0 48px}
html.pc-ui .hm-logo{font-size:15px}
html.pc-ui .hm-acct{right:48px;top:72px}
html.pc-ui .hm-main{max-width:1344px;margin:0 auto;padding:20px 48px 170px}
html.pc-ui .hm-eye{margin-top:26px;font-size:12px}
html.pc-ui .hm-title{font-size:50px;letter-spacing:-.045em;margin-top:12px}
html.pc-ui .hm-st{gap:10px;padding:24px 8px}
html.pc-ui .hm-st b{font-size:40px}
html.pc-ui .hm-st b small{font-size:.37em}
html.pc-ui .hm-st span{font-size:13px}
html.pc-ui .hm-body{grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"med pb" "med tro";grid-template-rows:auto 1fr;gap:28px 32px;margin-top:34px;align-items:start}
html.pc-ui #hm-pb{align-self:start}
html.pc-ui .hm-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 16px}
html.pc-ui .hm-tile{height:270px;border-radius:22px}
html.pc-ui .hm-cap b{font-size:15px}
html.pc-ui .hm-cap span{font-size:13px}
html.pc-ui .hm-tabs{gap:28px}
html.pc-ui .hm-tab{font-size:15px}
html.pc-ui .hm-pill{bottom:32px;height:60px;font-size:17px}
html.pc-ui .hm-sheet-wrap{align-items:center}
html.pc-ui .hm-sheet{width:min(560px,calc(100% - 40px));border-radius:26px;padding:32px 34px 30px;max-height:88vh;animation:hm-in .2s ease-out}
html.pc-ui #hm-add .hm-sheet{width:min(760px,calc(100% - 40px))}
@keyframes hm-in{from{transform:scale(.98);opacity:0}}
html.pc-ui .hm-sheet h2{font-size:28px}
html.pc-ui .hm-opt-pic{height:240px}
html.pc-ui .hm-opt-pic img{max-height:216px}
html.pc-ui .hm-opt-h b{font-size:54px}
html.pc-ui .hm-opt-d{font-size:14px}
html.pc-ui .hm-sheet-btns{flex-direction:row-reverse;justify-content:flex-start}
html.pc-ui .hm-sheet-btns .hm-red,html.pc-ui .hm-sheet-btns .hm-ghost{width:auto;padding:0 26px;height:52px}
html.pc-ui #hm-add-go{width:auto;align-self:flex-end;padding:0 30px}
html.pc-ui .hm-gate-body{max-width:1344px;margin:0 auto;padding:10px 48px 40px;flex-direction:row-reverse;align-items:center;gap:40px;min-height:calc(100vh - 76px)}
html.pc-ui .hm-gate-copy{flex:1 1 560px;min-width:0}
html.pc-ui .hm-gate-art{flex:1 1 440px;height:620px;align-items:flex-start}
html.pc-ui .hm-ring{width:540px;height:540px;margin-left:-270px;top:40px}
html.pc-ui .hm-gate-art img{width:300px;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 80px);mask-image:linear-gradient(180deg,transparent 0,#000 80px)}
html.pc-ui .hm-hero{font-size:128px;line-height:.86;letter-spacing:-.06em}
html.pc-ui .hm-gate-sub{font-size:22px;margin-top:22px}
html.pc-ui .hm-gate-btns{flex-direction:row;gap:12px;margin-top:32px}
html.pc-ui .hm-gate-btns .hm-gbtn{width:auto;padding:0 28px;height:58px}
html.pc-ui .hm-gate-btns .hm-skip{height:58px;padding:0 26px;border:1px solid var(--ln2);border-radius:29px;text-decoration:none}
html.pc-ui .hm-gate-msg{text-align:left}
html.pc-ui .hm-gate-notes{gap:10px;border-top:0;padding-top:0;margin-top:10px}
html.pc-ui .hm-gate-notes li{font-size:13px}
@media (prefers-reduced-motion:reduce){.hm-sheet,.hm-toast{animation:none;transition:none}}

/* 평면(2D) 메달 · 트로피를 열었을 때: 사진만, 각인 · 뒷면 · 표면 메뉴는 숨김 */
#ov.v-flat .v2-tabs [data-tab="look"],#ov.v-flat .v2-tabs [data-tab="back"],#ov.v-flat .v2-tabs [data-tab="eng"],#ov.v-flat .face-switch,#ov.v-flat .v2-engbar{display:none!important}
#ov.v-flat.v-tro3d .face-switch{display:flex!important;visibility:hidden}   /* 3D 트로피: 앞뒷면 단추는 없지만 자리는 남긴다 — 메달 화면과 같은 무대 크기 (받침대 · 글자 크기가 메달과 같다) */
#ov.v-flat .v2-panels{display:none!important}
#ov.v-flat .view.v2.v2-pc{grid-template-columns:minmax(0,1fr);max-width:820px}

/* 계정 창: 드라이브 폴더 안내 */
.hm-acct{width:290px}
.hm-folder{margin:6px 0 8px;padding:12px;border-radius:14px;background:rgba(255,255,255,.05);display:flex;flex-direction:column;gap:8px}
.hm-folder-row{display:flex;align-items:center;gap:8px;min-width:0}
.hm-folder-ic{display:flex;color:var(--w);flex:none}
.hm-folder-path{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;font-size:13.5px;line-height:1.35;word-break:keep-all}
.hm-folder-path small{font-size:11.5px;color:var(--mut)}
.hm-folder-path b{color:var(--w);font-weight:600}
.hm-folder a{flex:none;font-size:13px;font-weight:700;color:var(--acc);text-decoration:none;padding:6px 0}
.hm-folder p{margin:0!important;font-size:12px;line-height:1.55;color:var(--mut)}

/* 개인정보 처리방침 링크 */
.hm-pp{display:inline-block;margin-top:14px;padding:6px 0;font-size:12px;color:var(--mut);text-decoration:underline;text-underline-offset:3px}
.hm-pp:hover{color:var(--w)}
.hm-foot{flex:none;width:100%;max-width:none;margin:0;padding:22px 20px calc(24px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(204,255,0,.28);text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.hm-foot p{margin:0;font:700 11px/1.4 'Inter',system-ui,sans-serif;letter-spacing:.14em;color:var(--acc);text-transform:uppercase}
.hm-foot .hm-pp{margin-top:0;padding:4px 0;font:500 11.5px/1.4 var(--sans);letter-spacing:0;color:var(--mut)}
#home{display:flex;flex-direction:column}
.hm-main{flex:1 0 auto;display:flex;flex-direction:column;width:100%;box-sizing:border-box}
.hm-acct-pp{align-self:flex-start;margin:4px 0 0 2px;padding:4px 0;font-size:12px;color:var(--mut);text-decoration:underline;text-underline-offset:3px}

/* 색 보정 (다듬기 화면): 가운데가 0인 게이지 — 밝기 · 대비 · 색온도 · 채도 */
.tone-range{-webkit-appearance:none;appearance:none;height:30px;background:transparent;cursor:pointer;
  --tone-tick:linear-gradient(90deg,transparent calc(50% - 1px),rgba(10,10,10,.95) calc(50% - 1px),rgba(10,10,10,.95) calc(50% + 1px),transparent calc(50% + 1px))}
.tone-range::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:var(--tone-tick),var(--tone-track)}
.tone-range::-moz-range-track{height:6px;border-radius:3px;background:var(--tone-tick),var(--tone-track)}
.tone-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;margin-top:-8px;border-radius:50%;background:#fff;border:2px solid #0A0A0A;box-shadow:0 2px 8px rgba(0,0,0,.55)}
.tone-range::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid #0A0A0A;box-shadow:0 2px 8px rgba(0,0,0,.55)}
.tone-range.tone-set::-webkit-slider-thumb{box-shadow:0 0 0 2px #CCFF00,0 2px 8px rgba(0,0,0,.55)}
.tone-range.tone-set::-moz-range-thumb{box-shadow:0 0 0 2px #CCFF00,0 2px 8px rgba(0,0,0,.55)}
.tone-range:focus-visible{outline:0}
.tone-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px #CCFF00}
.tone-b{--tone-track:linear-gradient(90deg,#1c1c1c,#f2f2f2)}
.tone-c{--tone-track:linear-gradient(90deg,#7a7a7a,#7a7a7a 50%,#151515 50%,#f0f0f0)}
.tone-t{--tone-track:linear-gradient(90deg,#3d8bff,#d6d6d6 50%,#ff9d2e)}
.tone-s{--tone-track:linear-gradient(90deg,#8c8c8c,#c4c4c4 50%,#ff3d7f 78%,#ffc31f)}
.cu .cu-chip.tone-dot::after{content:"";display:inline-block;width:5px;height:5px;margin-left:6px;border-radius:50%;background:#CCFF00;vertical-align:2px}
.m-tone-reset:disabled{opacity:.3;cursor:default}
html.pc-ui .m-panel[data-panel="tone"]::before{content:"색 보정"}
html.pc-ui .m-panel[data-panel="tone"] .m-tone-reset{position:absolute;top:14px;right:14px;height:28px;padding:0 4px;border:0;background:transparent;color:#CACACA;font:500 12px var(--body);cursor:pointer}
/* PC 다듬기: 색 보정까지 한 화면에 들어오게 구역 여백을 조금 줄인다 */
html.pc-ui .m-panels .m-panel.cu{padding:16px 20px!important;gap:8px!important}
html.pc-ui .m-panel[data-panel="tone"] .cu-field{flex:0 0 34px;height:34px}
html.pc-ui .m-panel[data-panel="tone"] .m-tone-reset{top:10px}

/* 메달 추가: 촬영하기 · 앨범에서 고르기 */
.hm-add-btns{display:flex;flex-direction:column;gap:10px}
html.pc-ui .hm-add-btns{flex-direction:row-reverse;justify-content:flex-start}
html.pc-ui .hm-add-btns .hm-red,html.pc-ui .hm-add-btns .hm-ghost{width:auto;padding:0 30px}
html.pc-ui #hm-add-go{align-self:auto}

/* 메달 촬영 화면 (가이드: 줄 + 메달) */
html.hm-cam-on,html.hm-cam-on body{overflow:hidden}
.hm-cam{position:fixed;inset:0;z-index:80;background:#000;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none}
.hm-cam video,.hm-cam>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hm-cam-guide{position:absolute;left:0;top:0;pointer-events:none;transition:opacity .2s}
.hm-cam-lab{position:absolute;transform:translateY(-50%);height:24px;padding:0 9px;border-radius:12px;background:#CCFF00;color:#0A0A0A;font:800 12px/24px var(--sans);pointer-events:none}
.hm-cam-top{position:absolute;left:0;right:0;top:0;padding:calc(14px + env(safe-area-inset-top,0px)) 60px 0;display:flex;flex-direction:column;align-items:center;pointer-events:none}
.hm-cam-x{position:absolute;left:12px;top:calc(10px + env(safe-area-inset-top,0px));width:42px;height:42px;border:0;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;pointer-events:auto}
.hm-cam-tip{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:0 16px;text-shadow:0 1px 6px rgba(0,0,0,.8)}
.hm-cam-tip b{font-size:16px;font-weight:700;color:#fff;letter-spacing:-.01em}
.hm-cam-tip span{font-size:12.5px;color:rgba(255,255,255,.8)}
.hm-cam-msg{position:absolute;left:0;right:0;top:50%;margin:0;text-align:center;color:#fff;font-size:14px;text-shadow:0 1px 6px rgba(0,0,0,.8);pointer-events:none}
.hm-cam-bot{position:absolute;left:0;right:0;bottom:0;padding:0 28px calc(30px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:space-between}
.hm-cam-side{width:96px;display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;font-size:12px;font-weight:600;cursor:pointer;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.hm-cam-gap{cursor:default}
.hm-cam-shutter{width:78px;height:78px;padding:0;border-radius:50%;border:4px solid #CCFF00;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}
.hm-cam-shutter i{width:62px;height:62px;border-radius:50%;background:#fff;transition:transform .1s}
.hm-cam-shutter:active i{transform:scale(.9)}
.hm-cam-shutter:disabled{opacity:.4;cursor:default}
.hm-cam-review{position:absolute;left:0;right:0;bottom:0;padding:0 20px calc(26px + env(safe-area-inset-bottom,0px));display:flex;gap:10px}
.hm-cam-review>*{flex:1}
.hm-cam-fail{position:absolute;left:20px;right:20px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:10px;text-align:center}
.hm-cam-fail p{margin:0 0 8px;color:#fff;font-size:15px;line-height:1.55;word-break:keep-all}
html.pc-ui .hm-cam-review,html.pc-ui .hm-cam-fail{max-width:460px;margin:0 auto}
.hm-cam .hm-ghost{background:rgba(0,0,0,.55);border-color:rgba(255,255,255,.35)}

/* 첫 화면 — 폰: 그림 5 : 아래(제목 · 로그인 · 안내) 5, 아래는 가운데 정렬 · 구글 버튼은 글자 폭만큼 */
html.pc-ui .hm-gate-fig{display:contents}
html:not(.pc-ui) .hm-gate>.hm-top{position:absolute;left:0;right:0;top:0;z-index:2}
html:not(.pc-ui) .hm-gate-body{height:100%;display:grid;grid-template-rows:minmax(0,1fr) minmax(50%,max-content);padding:0 20px}
html:not(.pc-ui) .hm-gate-art{height:auto;min-height:0;padding:56px 0 6px;display:flex;align-items:center;justify-content:center;overflow:hidden}
html:not(.pc-ui) .hm-gate-fig{position:relative;flex:none;height:min(330px,100%);aspect-ratio:236/258}
html:not(.pc-ui) .hm-ring{left:0;top:8.53%;width:100%;height:auto;aspect-ratio:1;margin-left:0}
html:not(.pc-ui) .hm-gate-art img{position:absolute;left:50%;top:12.3%;width:58.94%;transform:translateX(-50%);-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 20%);mask-image:linear-gradient(180deg,transparent 0,#000 20%)}
html:not(.pc-ui) .hm-gate-copy{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4px 0 calc(24px + env(safe-area-inset-bottom,0px))}
html:not(.pc-ui) .hm-hero{font-size:48px}
html:not(.pc-ui) .hm-gate-sub{margin-top:14px;font-size:12px}
html:not(.pc-ui) .hm-gate-btns{align-items:center;gap:7px;margin-top:37px}
html:not(.pc-ui) .hm-gbtn{width:auto;height:38px;padding:0 32px;font-size:12px}
html:not(.pc-ui) .hm-skip{height:28px;font-size:12px}
html:not(.pc-ui) .hm-gate-msg{margin:0;min-height:0}
html:not(.pc-ui) .hm-gate-msg:not(:empty){margin-top:6px}
html:not(.pc-ui) .hm-gate-notes{align-self:stretch;align-items:center;gap:7px;margin-top:19px;padding-top:12px}
html:not(.pc-ui) .hm-gate-notes li{justify-content:center;gap:6px;font-size:10.5px;line-height:16px}
html:not(.pc-ui) .hm-gate-notes li svg{width:13px;height:13px}
html:not(.pc-ui) .hm-gate .hm-pp{margin-top:9px;padding:6px 0;font-size:10.5px;line-height:16px}

/* 첫 화면 배경 이미지 (관리자가 올린 사진) */
.hm-gate.has-bg{background-color:#0A0A0A;background-size:cover;background-position:center;background-repeat:no-repeat}
/* 로그인한 뒤 진열장 위쪽 배경 (남성 · 여성) */
#home{isolation:isolate}
.hm-homebg{position:absolute;left:0;right:0;top:0;height:56vh;height:56svh;min-height:380px;z-index:-1;pointer-events:none;background-repeat:no-repeat}
html.pc-ui .hm-homebg{height:min(72vh,680px)}
html:not(.pc-ui) .hm-homebg{position:fixed;height:auto;min-height:0;aspect-ratio:9/16}   /* 폰: 로그인 후 배경도 9:16 그대로 (관리자에서 고른 9:16 윤곽과 같게), 스크롤해도 제자리에 고정 */
.hm-acct-kind{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 2px 4px 14px;font-size:14px;font-weight:600}
.hm-acct-kind div{display:flex;gap:4px;padding:3px;border-radius:12px;background:rgba(255,255,255,.06)}
.hm-acct .hm-acct-kind button{height:34px;padding:0 14px;border-radius:9px;background:transparent;font-size:13px;text-align:center}
.hm-acct .hm-acct-kind button[aria-pressed="true"]{background:var(--acc);color:var(--on-acc)}
.hm-kind-p{margin:6px 0 0;font-size:14px;color:var(--mut)}
.hm-kind-tiles{display:flex;gap:12px;margin-top:18px}
.hm-kind-tile{flex:1;height:200px;border-radius:18px;border:1px solid var(--ln2);background:#151515 center/cover no-repeat;color:var(--w);display:flex;align-items:flex-end;justify-content:center;padding:0 0 16px;cursor:pointer}
.hm-kind-tile:hover{border-color:var(--acc)}
.hm-kind-tile b{font-size:17px;font-weight:800}

/* 관리자 · 첫 화면 배경 */

/* 촬영: 확대 버튼 · 초점 고리 · 짧은 안내 */
.hm-cam-zoom{width:96px;display:flex;align-items:center;justify-content:center;gap:6px}
.hm-cam-zoom button{width:38px;height:38px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font:700 12px/1 var(--sans);cursor:pointer;transition:width .15s,height .15s}
.hm-cam-zoom button[aria-pressed="true"]{width:46px;height:46px;color:#CCFF00;font-size:13px}
.hm-cam-focus{position:absolute;width:72px;height:72px;margin:-36px 0 0 -36px;border:1.5px solid #CCFF00;border-radius:10px;pointer-events:none}
.hm-cam-focus.go{animation:hm-focus 1s ease-out forwards}
@keyframes hm-focus{0%{transform:scale(1.35);opacity:0}15%{opacity:1}35%{transform:scale(1)}80%{opacity:1}100%{opacity:0}}
.hm-cam-hint{position:absolute;left:20px;right:20px;bottom:calc(132px + env(safe-area-inset-bottom,0px));margin:0;text-align:center;color:#fff;font-size:13px;line-height:1.5;word-break:keep-all;text-shadow:0 1px 6px rgba(0,0,0,.9);opacity:0;transition:opacity .2s;pointer-events:none}
.hm-cam-hint.on{opacity:1}
.hm-cam video{transform-origin:50% 50%}

/* 아이폰 사파리: 날짜 칸이 제 폭을 고집해 옆 칸을 덮지 않게 */
.hm-f input[type="date"]{-webkit-appearance:none;appearance:none;display:block;min-width:0;max-width:100%;line-height:48px;text-align:left}
.hm-f input[type="date"]::-webkit-date-and-time-value{text-align:left;margin:0}
/* 각인 색 고르기 */
.cu .eng-box>div.eng-colors{flex:0 0 auto!important;height:auto!important;display:flex;align-items:flex-start;justify-content:space-between;gap:4px;padding:6px 0 2px}
.eng-colors .eng-sw{position:relative;flex:1 1 0;min-width:0;height:auto!important;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px!important;margin:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;color:#CACACA!important;font:500 12px/1.2 var(--body)!important;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.eng-colors .eng-sw i{display:block;width:38px;height:38px;border-radius:50%;border:2px solid #333;box-sizing:border-box}
.eng-colors .eng-sw span{display:block}
.eng-colors .eng-sw[aria-pressed="true"]{color:var(--accent)!important;font-weight:700!important}
.eng-colors .eng-sw[aria-pressed="true"] i{border-color:var(--accent);box-shadow:0 0 0 2px #0A0A0A inset}
.eng-sw-silver i{background:linear-gradient(180deg,#7D8188,#4F535A 55%,#72767D)}
.eng-sw-black i{background:#141210}
.eng-sw-gold i{background:linear-gradient(180deg,#E2C26A,#A97F2C 55%,#D9B657)}
.eng-sw-white i{background:#F5F5F5}
.eng-colors .eng-sw-custom i{--c:#2F5BD3;border-color:transparent;background:linear-gradient(var(--c),var(--c)) padding-box,conic-gradient(#ff4d4d,#ffd84d,#4dff88,#4dd2ff,#7a5cff,#ff4dd8,#ff4d4d) border-box}
.eng-colors .eng-sw-custom[aria-pressed="true"] i{background:linear-gradient(var(--c),var(--c)) padding-box,linear-gradient(var(--accent),var(--accent)) border-box}
.eng-colors .eng-sw-custom input[type="color"]{position:absolute;left:0;top:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.hm-gate.no-art .hm-gate-art{visibility:hidden}
/* 진열장 사진: 몸통 크기 · 줄 길이를 맞춰 건다 (home.js hang) */
.hm-hang{position:absolute;left:0;right:0;top:15px;bottom:0;overflow:hidden;display:block}
.hm-tile .hm-hang img{position:absolute;margin:0;max-width:none;max-height:none;object-fit:fill;opacity:0}
.hm-tile .hm-hang.on img{opacity:1}
.hm-rib{position:absolute;top:0;display:none;background-repeat:no-repeat;background-position:top center}
/* 정보 창: 진열 모습 고치기 · 기록 고르기 */
.hm-thumb{display:flex;gap:14px;align-items:stretch}
.hm-thumb-tile{flex:none;width:118px!important;height:150px!important;border-radius:14px!important;cursor:default}
.hm-thumb-ctl{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px}
.hm-thumb-ctl label{display:grid;grid-template-columns:44px 1fr 40px;align-items:center;gap:8px;font-size:13px;color:var(--mut)}
.hm-thumb-ctl input[type="range"]{width:100%;height:28px;padding:0;border:0;background:transparent;accent-color:var(--acc)}
.hm-thumb-ctl output{text-align:right;color:var(--w);font-size:12px;font-variant-numeric:tabular-nums}
.hm-thumb-ctl p{margin:0;font-size:11.5px;line-height:1.45;color:var(--faint);word-break:keep-all}
.hm-thumb-reset{align-self:flex-start;height:28px;padding:0;border:0;background:transparent;color:var(--acc);font-size:12px;font-weight:600;cursor:pointer}
#hm-f-time{cursor:pointer;caret-color:transparent}
#hm-f-time.on{border-color:var(--acc)}
.eng-wheel.hm-wheel{z-index:300}
/* 나의 기록 (메달 개수 줄 아래): 풀코스 · 하프 · 10K 최고 기록 */
.hm-rec{margin-top:28px}
.hm-rec-h span{display:block;font:700 10.5px/1 var(--disp);letter-spacing:.18em;color:var(--acc)}
.hm-rec-h h2{margin:8px 0 0;font-size:20px;font-weight:800;letter-spacing:-.02em}
.hm-rec-h h2 i{font-style:normal;color:var(--acc)}
.hm-recs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px;border-top:1px solid var(--ln);border-bottom:1px solid var(--ln)}
.hm-recitem{padding:16px 0;display:flex;flex-direction:column;gap:8px;min-width:0}
.hm-recitem+.hm-recitem{border-left:1px solid var(--ln);padding-left:14px}
.hm-recitem span{font-size:13px;font-weight:600}
.hm-recitem b{font:800 24px/1 var(--disp);letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.hm-recitem.none b{color:var(--faint)}
.hm-recitem small{font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.pc-ui .hm-rec{margin-top:44px}
html.pc-ui .hm-rec-h h2{font-size:26px}
html.pc-ui .hm-recitem{padding:22px 0}
html.pc-ui .hm-recitem+.hm-recitem{padding-left:28px}
html.pc-ui .hm-recitem b{font-size:40px}
html.pc-ui .hm-recitem span{font-size:14px}
html.pc-ui .hm-recitem small{font-size:13px}
/* 메달 추가 단추: PC 는 가운데 작은 알약(하단바 위), 폰은 오른쪽 아래 동그라미 */
.hm-fade{display:none}
.hm-main{padding-bottom:110px}
html:not(.pc-ui) .hm-main{padding-bottom:28px}   /* 폰: 총계 바로 아래에 저작권 표시 (아래 메뉴 자리는 .hm-foot 이 비워 둔다) */
.hm-hero-brand{display:none}
html:not(.pc-ui) .hm-gate .hm-top .hm-logo{visibility:hidden}   /* 폰 첫 화면: 왼쪽 위 로고 대신 큰 제목 자리에 MEDALIUM */
html:not(.pc-ui) .hm-gate #hm-hero{display:none}
html:not(.pc-ui) .hm-gate .hm-hero-brand{display:block;font-size:min(12.4vw,56px);line-height:1;letter-spacing:-.04em;white-space:nowrap}
html.pc-ui .hm-main{padding-bottom:130px}
html.pc-ui .hm-pill{bottom:104px;height:48px;padding:0 24px 0 18px;border-radius:24px;font-size:15px;gap:6px}
html.pc-ui .hm-pill svg{width:18px;height:18px}
html:not(.pc-ui) .hm-pill{left:auto;right:18px;bottom:calc(22px + env(safe-area-inset-bottom,0px));transform:none;width:50px;height:50px;padding:0;border-radius:50%;justify-content:center;box-shadow:0 10px 28px rgba(0,0,0,.5),0 8px 24px rgba(204,255,0,.2)}
html:not(.pc-ui) .hm-pill span{display:none}
html:not(.pc-ui) .hm-pill svg{width:22px;height:22px}
html:not(.pc-ui) .hm-pill:active{transform:scale(.96)}
html:not(.pc-ui) .hm-foot{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
html:not(.pc-ui) .hm-foot p{font-size:10px;letter-spacing:.12em}
/* 로그인 중 표시 */
.hm-wait{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;background:rgba(10,10,10,.55);backdrop-filter:blur(2px)}
.hm-wait>div{display:flex;align-items:center;gap:12px;height:56px;padding:0 24px 0 20px;border-radius:28px;background:#171717;border:1px solid var(--ln2);color:var(--w);font-size:15px;font-weight:600;box-shadow:0 20px 50px rgba(0,0,0,.6)}
.hm-wait i{width:22px;height:22px;border-radius:50%;border:2.5px solid rgba(255,255,255,.18);border-top-color:var(--acc);animation:hm-spin .8s linear infinite}
@keyframes hm-spin{to{transform:rotate(360deg)}}
/* 계정 창: 닉네임 · 배경 고르기 */
.hm-acct-nrow{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hm-acct .hm-nick-edit,.hm-acct .hm-kind-change{width:auto;height:28px;padding:0 2px;background:transparent;border:0;color:var(--acc);font-size:12px;font-weight:600;text-align:left}
.hm-acct .hm-kind-change{align-self:flex-end;margin-top:-4px}
.hm-nick{display:flex;gap:6px}
.hm-nick input{flex:1;min-width:0;height:40px;padding:0 12px;border-radius:10px;border:1px solid var(--ln2);background:#0F0F0F;color:var(--w);font-size:14px}
.hm-nick input:focus{outline:none;border-color:var(--acc)}
.hm-acct .hm-nick button{width:auto;height:40px;padding:0 14px;border-radius:10px;background:var(--acc);color:var(--on-acc);font-size:13px;font-weight:800;text-align:center}
.hm-acct-kind{flex-wrap:wrap}
.hm-acct .hm-acct-kind button{padding:0 10px}

/* 나의 기록: 두 줄 (풀코스 · 하프 · 10K / 5K · 1K · 100M) */
.hm-recitem:nth-child(n+4){border-top:1px solid var(--ln)}
.hm-recitem:nth-child(4){border-left:0;padding-left:0}
html.pc-ui .hm-recitem:nth-child(4){padding-left:0;border-left:0}

/* 메달 없이 기록만 있는 대회: 빈 칸 */
.hm-slot-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;border:1px dashed var(--ln2)!important;background:transparent!important;color:var(--mut);font-size:13px;cursor:pointer}
.hm-slot-tile:hover{border-color:var(--acc)!important;color:var(--w)}
/* 폰: 끝까지 내렸을 때 화면이 튕기며 떨리지 않게 */
html,body{overscroll-behavior-y:none}

/* 이미 들어와 있는 사람이 로고로 첫 화면에 왔을 때: 접속 · 둘러보기 · 안내는 빼고 '내 진열장으로' 만 */
.hm-gate.in #hm-google,.hm-gate.in #hm-skip,.hm-gate.in .hm-gate-notes{display:none!important}
.hm-gate-enter{background:var(--acc)!important;color:var(--on-acc)!important;border-color:var(--acc)!important;font-weight:800}

/* 트로피가 없으면 트로피 칸을 숨기고 메달이 전체 너비를 쓴다 */
html.pc-ui .hm-body.no-tro{grid-template-columns:minmax(0,1fr);grid-template-areas:"med"}
.hm-add-tro{display:block;margin-top:14px;text-align:center;font-size:13px;color:var(--mut);cursor:pointer;padding:6px 0}
.hm-add-tro b{color:var(--acc);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hm-body.no-tro{grid-template-areas:"med"}

/* 공용 메달 가져오기 */
button.hm-add-tro{width:100%;border:0;background:transparent;font-family:inherit}
html.pc-ui .hm-catsheet{width:min(720px,calc(100% - 40px))}
.hm-catgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin-top:16px}
html.pc-ui .hm-catgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
.hm-catitem{display:flex;flex-direction:column;gap:4px;min-width:0}
.hm-cattile{height:170px;border-radius:16px;border:1px solid var(--ln2);background:radial-gradient(120% 90% at 50% 0,rgba(255,255,255,.09),rgba(255,255,255,.02) 60%);display:flex;align-items:center;justify-content:center;padding:12px;cursor:pointer;margin-bottom:4px}
.hm-cattile:hover{border-color:var(--acc)}
.hm-cattile img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}
.hm-catitem b{font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-catitem span{font-size:12px;color:var(--mut);min-height:16px}
.hm-catrm{align-self:flex-start;height:26px;padding:0;border:0;background:transparent;color:#FF8A80;font-size:12px;cursor:pointer}
#hm-pub{background:var(--acc);color:var(--on-acc)}#hm-pub:disabled{opacity:.45;cursor:default}

/* 메달 줄: 칸 수를 고른다 (--cols). 칸 높이는 너비에 맞춰 따라간다 */
#hm-grid{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr))!important}
#hm-grid .hm-tile{height:auto;aspect-ratio:3/3.9}
html.pc-ui #hm-grid{gap:26px 16px}
#hm-grid.mid{gap:16px 8px}
#hm-grid.mid .hm-tile{border-radius:14px}
#hm-grid.mid .hm-cap b{font-size:12.5px;-webkit-line-clamp:1}
#hm-grid.mid .hm-cap span{font-size:11px}
#hm-grid.mid .hm-cap{gap:2px;padding:0 0 0 2px}
#hm-grid.dense{gap:6px}
#hm-grid.dense .hm-tile{border-radius:10px}
#hm-grid.dense .hm-cap,#hm-grid.dense .hm-slot-tile span{display:none}
#hm-grid.dense .hm-pbtag,#hm-grid.dense .hm-badge{transform:scale(.8);transform-origin:left top}
.hm-sec-tools{display:flex;align-items:center;gap:8px}
.hm-cols{display:flex;align-items:center;gap:6px;height:36px;padding:0 6px;border:0;border-radius:0;background:transparent;color:var(--mut);cursor:pointer}
.hm-cols:hover{color:var(--w)}
.hm-cols span{font:700 13px var(--disp);font-variant-numeric:tabular-nums;color:var(--mut)}
/* 트로피 자리 고르기 · 선반(메달 위 한 줄) / 제목 옆 */
.hm-seg2{display:inline-flex;padding:3px;border:1px solid var(--ln2);border-radius:18px}
.hm-seg2 button{height:28px;padding:0 12px;border:0;border-radius:14px;background:transparent;color:#CACACA;font:500 12.5px var(--sans);cursor:pointer;white-space:nowrap}
.hm-seg2 button[aria-pressed="true"]{background:var(--w);color:#0A0A0A;font-weight:800}
.hm-heroslot:empty{display:none}
html[data-tro="top"] .hm-body{grid-template-areas:"tro" "med"}
html.pc-ui[data-tro="top"] .hm-body{grid-template-columns:minmax(0,1fr);grid-template-areas:"tro" "med"}
html.pc-ui[data-tro="top"] .hm-tgrid{grid-template-columns:repeat(6,minmax(0,1fr));gap:26px 16px}
html.pc-ui[data-tro="top"] .hm-trophy .hm-tile{height:230px}
html[data-tro="top"]:not(.pc-ui) .hm-tgrid{display:flex;overflow-x:auto;gap:12px;margin:0 -20px;padding:0 20px 4px;scrollbar-width:none}
html[data-tro="top"]:not(.pc-ui) .hm-tgrid>*{flex:0 0 40%}
/* 제목 옆: 제목 오른쪽(폰은 제목 아래)에 조명 받은 칸으로 */
html.pc-ui[data-tro="hero"] .hm-herorow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:48px;align-items:end}
html[data-tro="hero"] #hm-tro .hm-sec-h{margin-bottom:10px}
html[data-tro="hero"] #hm-tro .hm-sec-h h2{font:700 11px/1 var(--disp);letter-spacing:.18em;color:var(--acc)}
html[data-tro="hero"] #hm-tro .hm-sec-h h2 b{margin-left:6px}
html[data-tro="hero"] #hm-tro .hm-add{display:none}
html[data-tro="hero"] #hm-tro .hm-tgrid{display:flex;gap:14px;grid-template-columns:none}
html[data-tro="hero"] #hm-tro .hm-tile{background:radial-gradient(120% 90% at 50% 0,rgba(204,255,0,.16),rgba(255,255,255,.03) 60%);border:1px solid rgba(204,255,0,.35)}
html.pc-ui[data-tro="hero"] #hm-tro .hm-item{width:160px}
html.pc-ui[data-tro="hero"] #hm-tro .hm-tile{height:200px}
html.pc-ui[data-tro="hero"] #hm-tro .hm-tgrid{max-width:540px;overflow-x:auto;scrollbar-width:none}
html.pc-ui[data-tro="hero"] #hm-tro .hm-item{flex:none}
html[data-tro="hero"]:not(.pc-ui) #hm-tro{margin-top:18px}
html[data-tro="hero"]:not(.pc-ui) #hm-tro .hm-tgrid{overflow-x:auto;margin:0 -20px;padding:0 20px 4px;scrollbar-width:none}
html[data-tro="hero"]:not(.pc-ui) #hm-tro .hm-item{flex:0 0 38%}
#hm-edit{height:36px;padding:0 6px;border:0;border-radius:0;background:transparent;color:var(--acc,#CCFF00);font-weight:700}
#hm-edit:hover{background:transparent;opacity:.8}
.hm-acct.drop{outline:2px dashed var(--acc,#CCFF00);outline-offset:-6px}
html:not(.is-admin) #tech-open-start,html:not(.is-admin) #tech-open-viewer,html:not(.is-admin) #creation-timing{display:none!important}
html.pc-ui .hm-gate-btns .hm-gate-enter{height:42px;padding:0 20px;font-size:14px}
/* 긴 창: 주소창에 가려지지 않게 보이는 높이 기준으로 · 닫기 단추는 내려도 위에 붙어 있게 */
.hm-sheet{max-height:92dvh}
html.pc-ui .hm-sheet{max-height:88dvh}
.hm-sheet>.hm-x{position:sticky;top:-12px;right:auto;flex:none;align-self:flex-end;margin:-12px -6px -58px 0;z-index:6;background:#2A2A2A}
/* PC 브라우저 창을 좁혔을 때: 문구가 세로로 찌그러지지 않게 위아래로 쌓는다 */
@media (max-width:900px){
  html.pc-ui .hm-gate-body{flex-direction:column;align-items:stretch;justify-content:center;padding:10px 24px 40px;gap:24px}
  html.pc-ui .hm-gate-copy{flex:none;width:100%}
  html.pc-ui .hm-gate-art{flex:none;height:auto;max-height:46vh;order:-1;align-items:center}
  html.pc-ui .hm-gate-sub{font-size:18px}
}
/* 큰 제목 크기: 관리자가 정한 배율 */
.hm-hero{font-size:calc(56px*var(--hk,1))}
html.pc-ui .hm-hero{font-size:calc(128px*var(--hk,1))}
html:not(.pc-ui) .hm-hero{font-size:calc(48px*var(--hk,1))}
/* 큰 제목 배치: 줄간격 · 버튼과의 간격 · 위치 (관리자) */
.hm-hero{line-height:calc(.9*var(--hlh,1))}
html.pc-ui .hm-hero{line-height:calc(.86*var(--hlh,1))}
.hm-gate-btns{margin-top:calc(28px*var(--hg,1))}
html.pc-ui .hm-gate-btns{margin-top:calc(32px*var(--hg,1))}
html:not(.pc-ui) .hm-gate-btns{margin-top:calc(37px*var(--hg,1))}
.hm-gate-copy{transform:translate(var(--hdx,0px),var(--hdy,0px))}
/* 웹: 문구 덩어리 정렬 (관리자) — 견본 메달 그림이 없을 때는 화면 전체를 기준으로 */
html.pc-ui .hm-gate[data-al="c"].no-art .hm-gate-art,html.pc-ui .hm-gate[data-al="r"].no-art .hm-gate-art{display:none}
html.pc-ui .hm-gate[data-al="c"] .hm-gate-copy{text-align:center}
html.pc-ui .hm-gate[data-al="r"] .hm-gate-copy{text-align:right}
html.pc-ui .hm-gate[data-al="c"] .hm-gate-btns{justify-content:center}
html.pc-ui .hm-gate[data-al="r"] .hm-gate-btns{justify-content:flex-end}
html.pc-ui .hm-gate[data-al="c"] .hm-gate-notes{align-items:center}
html.pc-ui .hm-gate[data-al="r"] .hm-gate-notes{align-items:flex-end}
html.pc-ui .hm-gate[data-al="c"] .hm-gate-msg{text-align:center}
html.pc-ui .hm-gate[data-al="r"] .hm-gate-msg{text-align:right}
/* 아랫줄 · 버튼 · 안내 줄 크기와 간격 (관리자) */
.hm-gate-sub{font-size:calc(16px*var(--sk,1));margin-top:calc(14px*var(--sg,1))}
html.pc-ui .hm-gate-sub{font-size:calc(22px*var(--sk,1));margin-top:calc(22px*var(--sg,1))}
html:not(.pc-ui) .hm-gate-sub{font-size:calc(12px*var(--sk,1));margin-top:calc(14px*var(--sg,1))}
@media (max-width:900px){html.pc-ui .hm-gate-sub{font-size:calc(18px*var(--sk,1))}}
.hm-gate-btns{zoom:var(--bk,1);margin-top:calc(28px*var(--hg,1)/var(--bk,1))}
html.pc-ui .hm-gate-btns{margin-top:calc(32px*var(--hg,1)/var(--bk,1))}
html:not(.pc-ui) .hm-gate-btns{margin-top:calc(37px*var(--hg,1)/var(--bk,1))}
.hm-gate .hm-gate-notes,.hm-gate .hm-pp{zoom:var(--nk,1)}
.hm-gate-notes{margin-top:calc(14px*var(--ng,1)/var(--nk,1))}
html.pc-ui .hm-gate-notes{margin-top:calc(10px*var(--ng,1)/var(--nk,1))}
html:not(.pc-ui) .hm-gate-notes{margin-top:calc(19px*var(--ng,1)/var(--nk,1))}
/* 관리자 미리보기: 고른 요소 표시 */
.hm-gate[data-pvsel="hero"] .hm-hero,.hm-gate[data-pvsel="sub"] .hm-gate-sub,.hm-gate[data-pvsel="btn"] .hm-gate-btns,.hm-gate[data-pvsel="note"] .hm-gate-notes,.hm-gate[data-pvsel="all"] .hm-gate-copy{outline:2px dashed #CCFF00;outline-offset:8px;border-radius:4px}
/* 메달 칸 = 유리 진열장 (case.webp): 조명 아래 안쪽에 메달을 건다 */
#hm-grid .hm-tile{aspect-ratio:965/1365;border:0;border-radius:0;overflow:visible;background:url(case.webp?v=8) center/100% 100% no-repeat}
#hm-grid .hm-tile::before{display:none}
#hm-grid .hm-tile .hm-hang{left:0;right:0;top:6.8%;bottom:12.5%}
#hm-grid .hm-tile>img{margin-top:9%;max-width:62%;max-height:78%}
#hm-grid .hm-trophy .hm-tile>img{position:absolute;left:50%;top:auto;bottom:28.4%;margin:0;max-width:64%;max-height:57%;width:auto;height:auto;transform:translateX(-50%);object-fit:contain;object-position:bottom}   /* 트로피: 케이스 바닥에 선다 (메달은 위에서 걸린다) */
#hm-grid .hm-pbtag{left:auto;top:auto;right:11%;bottom:15%;height:auto;padding:0;border-radius:0;background:none;color:var(--acc);font:800 13px/1 var(--disp);letter-spacing:.08em;z-index:2}
#hm-grid.dense .hm-pbtag{transform:none;font-size:10px}
#hm-grid .hm-sel .hm-tile{border:0;outline:2px solid var(--acc);outline-offset:-2px;border-radius:4px}
#hm-grid .hm-item.just .hm-tile{box-shadow:0 0 30px rgba(204,255,0,.3)}
#hm-grid.mid .hm-tile,#hm-grid.dense .hm-tile{border-radius:0}
#hm-grid .hm-slot-tile{color:var(--mut)}
html:not(.pc-ui) #hm-grid .hm-pbtag{font-size:9.5px;right:10%;bottom:14.5%}
/* 연도: 진열장 바닥 받침 앞면 한가운데 (받침 두께 안에 딱 맞게) */
#hm-grid .hm-tile{container-type:inline-size}
#hm-grid .hm-yr{position:absolute;left:0;right:0;top:91.1%;height:5.8%;display:flex;align-items:center;justify-content:center;font:700 4.6cqw/1 var(--disp);letter-spacing:.32em;padding-left:.32em;color:rgba(255,255,255,.82);text-shadow:0 1px 1px rgba(0,0,0,.7);pointer-events:none;z-index:2}
/* 이름표: 누르면 대회 정보 */
.hm-cap[data-act]{cursor:pointer;border-radius:8px}
@media(hover:hover){.hm-cap[data-act]:hover b{color:var(--acc)}}   /* 폰: 누른 뒤 글자가 형광으로 남지 않게 */
.hm-cap[data-act]:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
html:not(.pc-ui) #hm-grid .hm-yr{font-size:6.2cqw;letter-spacing:.26em;padding-left:.26em}
#hm-grid .hm-yr{padding-top:.02em}
/* 제목 끝의 형광 점은 쓰지 않는다 (첫 화면 큰 제목은 관리자가 정한 대로) */
.hm-title i,.pg-head h1 i,span.dot{display:none}
.hm-avatar.pic{background-color:#1A1A1A;background-size:cover;background-position:center;box-shadow:0 0 0 1.5px var(--acc)}
/* 메달 순서 옮기기 · 꾹 눌러도 그림이 떠오르지 않게 */
#hm-grid .hm-item,#hm-grid .hm-tile,#hm-grid .hm-tile img,#hm-grid .hm-rib{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
#hm-grid .hm-tile img{pointer-events:none}
#hm-grid .hm-item.drag{position:relative;z-index:20;transition:none;filter:drop-shadow(0 18px 26px rgba(0,0,0,.7))}
#hm-grid .hm-item.drag .hm-cap{opacity:0}
#hm-grid.sorting .hm-item:not(.drag){transition:opacity .15s;opacity:.72}
html.hm-sorting{-webkit-user-select:none;user-select:none}
/* 칸이 작아져도 대회 이름 · 기록은 보인다 — 글자가 칸 너비에 맞춰 같이 작아진다 */
#hm-grid .hm-item{container-type:inline-size}
#hm-grid.dense{gap:12px 6px}
#hm-grid.dense .hm-cap{display:flex;gap:1px;padding:0 1px}
#hm-grid.dense .hm-cap b{font-size:max(8px,12.5cqw);line-height:1.25;-webkit-line-clamp:1;letter-spacing:-.02em}
#hm-grid.dense .hm-cap span{font-size:max(7px,10.5cqw);letter-spacing:-.02em}
#hm-grid.dense .hm-cap>div{gap:1px}
#hm-grid.mid .hm-cap b{font-size:max(10px,10.5cqw)}
#hm-grid.mid .hm-cap span{font-size:max(9px,9cqw)}
#hm-grid.dense .hm-pbtag{font-size:max(7px,11cqw)}

/* 올리는 방법 세 가지를 한 줄로 */
.hm-add-btns,html.pc-ui .hm-add-btns{flex-direction:row;justify-content:stretch;gap:8px}
.hm-add-btns .hm-red,.hm-add-btns .hm-ghost,html.pc-ui .hm-add-btns .hm-red,html.pc-ui .hm-add-btns .hm-ghost{flex:1 1 0;min-width:0;width:auto;height:46px;padding:0 6px;border-radius:23px;font-size:14px;font-weight:700;white-space:nowrap;letter-spacing:-.02em}
.hm-add-btns [hidden]{display:none}

/* 꾹 누르면: 메달이 흔들리고 우상단에 − (삭제) */
.hm-minus{display:none;position:absolute;z-index:6;top:-9px;right:-9px;width:26px;height:26px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:#3a3a3c;color:#fff;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.6)}
.hm-minus::after{content:"";position:absolute;inset:-8px}
#hm-grid.wig .hm-minus{display:flex}
#hm-grid.wig .hm-item.drag .hm-minus{display:none}
#hm-grid.dense .hm-minus{width:20px;height:20px;top:-7px;right:-7px}
#hm-grid.dense .hm-minus svg{width:10px;height:10px}
#hm-grid.wig .hm-item:not(.drag) .hm-tile{animation:hm-wig .26s ease-in-out infinite alternate;cursor:grab}
#hm-grid.wig .hm-item:nth-child(even):not(.drag) .hm-tile{animation-delay:-.13s;animation-duration:.3s}
@keyframes hm-wig{from{transform:rotate(-.9deg)}to{transform:rotate(.9deg)}}
#hm-grid.wig.sorting .hm-item:not(.drag){opacity:1}
html.hm-wig #hm-grid{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media (prefers-reduced-motion:reduce){#hm-grid.wig .hm-item .hm-tile{animation:none}}

/* 기록증 같이 올리기 */

/* 새 진열장(받침대가 있는 그림): 이름표는 받침대 안에, 연도는 단 앞면에 */
#hm-grid .hm-item{gap:0}
#hm-grid .hm-tile{aspect-ratio:600/954}
#hm-grid .hm-tile .hm-hang{top:6.15%;bottom:25%}   /* 줄은 조명 바로 아래에서 시작 (조명을 가리지 않게) */
#hm-grid .hm-yr,html:not(.pc-ui) #hm-grid .hm-yr{top:78.55%;height:5.75%;font-size:5.4cqw;letter-spacing:.28em;padding-left:.28em;padding-top:0}
#hm-grid .hm-pbtag,html:not(.pc-ui) #hm-grid .hm-pbtag,#hm-grid.dense .hm-pbtag{right:9.5%;bottom:26.8%;font-size:7.4cqw}
#hm-grid .hm-item .hm-cap,#hm-grid.dense .hm-cap,#hm-grid.mid .hm-cap{position:absolute;z-index:3;left:0;right:0;top:84.7%;height:15%;display:flex;align-items:center;gap:0;padding:0 7.5%;border-radius:0}
#hm-grid .hm-item .hm-cap>div{gap:.9cqw;width:100%}
#hm-grid .hm-item .hm-cap b,html.pc-ui #hm-grid .hm-item .hm-cap b{display:block;font-size:9cqw;line-height:1.12;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.02em;-webkit-line-clamp:unset}
#hm-grid .hm-item .hm-cap span,html.pc-ui #hm-grid .hm-item .hm-cap span{font-size:5.6cqw;line-height:1.12;letter-spacing:0;color:rgba(255,255,255,.58)}
html.pc-ui #hm-grid .hm-item .hm-cap b{font-size:7.8cqw}
html.pc-ui #hm-grid .hm-item .hm-cap span{font-size:5cqw}
#hm-grid .hm-item .hm-cap{text-align:center}
#hm-grid[data-cal="l"] .hm-item .hm-cap{text-align:left}
#hm-grid[data-cal="r"] .hm-item .hm-cap{text-align:right}
#hm-grid .hm-item.drag .hm-cap{opacity:1}
#hm-grid .hm-cap[data-act]:focus-visible{outline-offset:-2px}
#hm-grid .hm-minus{top:-7px;right:-7px}

/* 조명 아래로 떨어지는 은은한 불빛 (메달 앞, 경계 없이 번진다) */
#hm-grid .hm-tile:not(.hm-slot-tile)::after{content:"";position:absolute;left:0;right:0;top:5.2%;height:40%;background:conic-gradient(from 154deg at 50% -40%,rgba(255,255,255,0) 0deg,rgba(255,255,255,.06) 6deg,rgba(255,255,255,.22) 12deg,rgba(255,255,255,.55) 18deg,rgba(255,255,255,.88) 23deg,#fff 26deg,rgba(255,255,255,.88) 29deg,rgba(255,255,255,.55) 34deg,rgba(255,255,255,.22) 40deg,rgba(255,255,255,.06) 46deg,rgba(255,255,255,0) 52deg,rgba(255,255,255,0) 360deg);-webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.62) 28%,rgba(0,0,0,.28) 58%,rgba(0,0,0,.08) 82%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.62) 28%,rgba(0,0,0,.28) 58%,rgba(0,0,0,.08) 82%,transparent 100%);opacity:.34;filter:blur(5px);pointer-events:none;z-index:3}

html:not(.pc-ui) #hm-grid[data-cols="4"] .hm-yr{top:78.75%}

/* 종목 직접 입력: 숫자 + 단위 */
.hm-etc-row{display:flex;gap:8px;align-items:center;margin-top:10px}
.hm-etc-row[hidden]{display:none}
.hm-etc-row #hm-f-etc{flex:1 1 0;min-width:0;margin:0}
.hm-etc-row .hm-segs{flex:none;flex-wrap:nowrap;margin:0}

/* 메달 공유 · 공유받기 */
.hm-sheet-wrap.hm-top{z-index:80}
.hm-share-d{margin:-8px 0 0;font-size:13.5px;line-height:1.5;color:var(--mut);word-break:keep-all}
#hm-share-url{width:100%;height:46px;padding:0 14px;border:1px solid var(--ln2);border-radius:12px;background:#1F1F1F;color:var(--w);font-size:13px}
.hm-get-pic{height:190px;display:flex;align-items:center;justify-content:center;border-radius:16px;background:radial-gradient(circle at 50% 35%,#262626,#111 75%)}
.hm-get-pic img{max-height:170px;max-width:70%;filter:drop-shadow(0 10px 16px rgba(0,0,0,.6))}
#hm-get-msg{margin:0;text-align:center;font-size:15px;color:var(--w)}

/* #home 밖(body)으로 꺼낸 창 · 알림: 메달 보기 화면 위에도 뜨게 한다 */
.hm-out{--bg:#0A0A0A;--acc:#CCFF00;--on-acc:#0A0A0A;--danger:#FF5A4F;--w:#FAFAFA;--mut:#A3A3A3;--faint:#737373;--ln:rgba(255,255,255,.08);--ln2:rgba(255,255,255,.16);--surf:rgba(255,255,255,.035);--disp:'Inter','IBM Plex Sans KR',system-ui,sans-serif;--sans:'IBM Plex Sans KR','Inter',system-ui,sans-serif;color:var(--w);font-family:var(--sans);-webkit-font-smoothing:antialiased}
.hm-out,.hm-out *{box-sizing:border-box}
.hm-toast.hm-out{z-index:9995}
.hm-sheet-wrap.hm-out{top:0;left:0;right:auto;bottom:auto;width:100vw;height:100vh;height:100dvh}

/* 대회 이름 검색 목록 */
.hm-sug{position:fixed;z-index:9990;max-height:260px;overflow:auto;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:#1c1c1e;box-shadow:0 12px 30px rgba(0,0,0,.6)}
.hm-sug[hidden]{display:none}
.hm-sug button{display:flex;flex-direction:column;gap:2px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid rgba(255,255,255,.08);background:none;color:#FAFAFA;text-align:left;font:inherit;cursor:pointer}
.hm-sug button:last-child{border-bottom:0}
.hm-sug button:hover,.hm-sug button:active{background:rgba(255,255,255,.07)}
.hm-sug b{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-sug small{font-size:12px;color:#A3A3A3}

/* 보관함 그림이 먼저: case.webp 가 뜨기 전에는 메달을 감췄다가 같이 나타낸다 (2.5초가 지나면 그냥 보인다) */
#hm-grid .hm-tile:not(.hm-slot-tile)>*{transition:opacity .25s}
html:not(.case-ok) #hm-grid .hm-tile:not(.hm-slot-tile)>*{opacity:0}

/* 폰 첫 화면: 개인정보 처리방침은 화면 맨 아래에 둔다 */
html:not(.pc-ui) .hm-gate .hm-pp{position:absolute;left:0;right:0;bottom:calc(10px + env(safe-area-inset-bottom,0px));margin:0;text-align:center}
html:not(.pc-ui) .hm-gate:not(.in) .hm-gate-copy{padding-bottom:calc(46px + env(safe-area-inset-bottom,0px))}   /* 안내 글과 겹치지 않게 자리를 비운다 */

/* 폰: 드라이브 상태는 글자 없이 동그란 아이콘 하나 (사선 구름 → 도는 동그라미 → 형광 체크) */
.hm-chip-spin{display:none}
html:not(.pc-ui) .hm-chip{position:relative;width:36px;height:36px;padding:0;gap:0;border-radius:50%;justify-content:center;background:#141414}
html:not(.pc-ui) .hm-chip span{display:none}
html:not(.pc-ui) .hm-chip svg{width:18px;height:18px}
html:not(.pc-ui) .hm-chip[data-st="ok"] svg{color:var(--acc)}
html:not(.pc-ui) .hm-chip .hm-chip-spin{display:block;position:absolute;inset:-1px;width:36px;height:36px;animation:hm-spin .9s linear infinite}

/* 3D 보기 창이 열려 있는 동안에는 뒤에 깔린 진열장 배경을 그리지 않는다 (창에 가려 보이지 않고, 매 화면 겹쳐 그리는 일만 줄인다) */
html.ov-open .hm-homebg{visibility:hidden}

/* 대회 정보: 대회 이름 칸 옆 '기록증' — 사진을 넣으면 이름 · 종목 · 날짜 · 기록을 채운다 */
.hm-f-row{display:flex;gap:8px;align-items:stretch}
.hm-f-row input{flex:1 1 auto;min-width:0}
.hm-f-cert{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;height:50px;padding:0 16px;border:1px solid var(--acc);border-radius:14px;color:var(--acc);font-size:15px;font-weight:600;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hm-f-cert[hidden]{display:none}
/* 드라이브에만 저장: 첫 화면 안내 · 불러오는 중 */
.hm-gate-hint{margin:10px 0 0;max-width:340px;font-size:13px;line-height:1.55;color:rgba(255,255,255,.78);text-align:center}
.hm-gate-hint[hidden],#hm-skip[hidden],#hm-gate-note2[hidden]{display:none!important}
html.pc-ui .hm-gate-hint{text-align:left;max-width:420px}
html.pc-ui .hm-gate[data-al="c"] .hm-gate-hint{text-align:center}
html.pc-ui .hm-gate[data-al="r"] .hm-gate-hint{text-align:right}
html:not(.pc-ui) .hm-gate-hint{align-self:center}
.hm-gate.in .hm-gate-hint{display:none!important}
.hm-empty.hm-dvload{display:flex;align-items:center;justify-content:center;gap:12px;border-style:solid;border-color:rgba(255,255,255,.08)}
.hm-dvload i{width:20px;height:20px;flex:none;border-radius:50%;border:2.5px solid rgba(255,255,255,.16);border-top-color:var(--acc);animation:hm-spin .8s linear infinite}
.hm-retry{margin-top:12px;height:38px;padding:0 18px;border-radius:19px;border:1px solid var(--ln2);background:#1b1b1b;color:var(--w);font-size:13px;font-weight:700;cursor:pointer}

/* 바로 걸기: 막 건 메달 NEW · 걸었어요 알림 */
.hm-newtag{position:absolute;z-index:3;color:var(--acc);font:800 13px/1 var(--disp);letter-spacing:.08em;pointer-events:none}
#hm-grid .hm-newtag{right:11%;bottom:15%}
#hm-grid .hm-newtag.with-pb{right:calc(11% + 28px)}
html:not(.pc-ui) #hm-grid .hm-newtag{font-size:9.5px;right:10%;bottom:14.5%}
html:not(.pc-ui) #hm-grid .hm-newtag.with-pb{right:calc(10% + 21px)}
#hm-grid.dense .hm-newtag{font-size:max(7px,11cqw)}
.hm-toast.hm-snack{gap:16px;padding:10px 12px 10px 16px;left:16px;right:16px;width:auto;max-width:440px}
.hm-snack-t{display:inline-flex;align-items:center;gap:9px;margin-right:auto;white-space:nowrap;min-width:0}
.hm-snack-t svg{color:var(--acc);flex:none}
.hm-toast.hm-snack button{padding:8px 4px;color:var(--w);font-weight:600}
.hm-toast.hm-snack button+button{margin-left:-4px}
.hm-add-hint{margin:12px 0 0;text-align:center;font-size:12.5px;color:var(--mut)}

/* ── 여러 장 올리기: ① 사진 확인(앞·뒷면 짝) ② 걸기 전 확인 ── */
.hm-page{position:fixed;inset:0;z-index:50;background:#111;display:flex;justify-content:center;color:var(--w);font-family:var(--sans)}
.hm-page[hidden]{display:none}
.hm-page-in{width:100%;max-width:560px;height:100%;display:flex;flex-direction:column}
.hm-page-top{flex:none;display:flex;align-items:center;justify-content:flex-end;padding:calc(6px + env(safe-area-inset-top,0px)) 6px 6px}
.hm-page-x{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--w);display:grid;place-items:center;cursor:pointer}
.hm-page-head{flex:none;padding:0 20px 14px}
.hm-page-head h2{margin:0;font-size:24px;font-weight:700;letter-spacing:-.02em;line-height:1.3}
.hm-page-head p{margin:6px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13.5px;color:var(--mut);line-height:1.45}
.hm-page-link{border:0;background:none;padding:6px 0;color:var(--acc);font:600 13px var(--sans);white-space:nowrap;cursor:pointer;flex:none}
.hm-page-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 16px 16px}
.hm-page-foot{flex:none;padding:12px 16px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--ln)}
.hm-page-go{width:100%;height:52px;border:0;border-radius:26px;background:var(--acc);color:var(--on-acc);font:800 15.5px var(--sans);cursor:pointer}
.hm-rv-goes{display:flex;gap:8px}   /* 관리자: 진열장 · 진열장 + 공유 · 공유 */
.hm-rv-goes .hm-page-go{padding:0 6px;font-size:14.5px;white-space:nowrap}
.hm-rv-goes .hm-page-go{flex:1;min-width:0}
.hm-page-go2{background:#1E1E1E;color:var(--w);border:1px solid var(--ln2)}
.hm-page-go:disabled{opacity:.4;cursor:default}
.hm-no{position:absolute;left:12px;top:12px;z-index:2;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#262626;color:#BDBDBD;font:800 11.5px/22px var(--disp);text-align:center}
.hm-ck{position:relative;display:flex;align-items:flex-start;justify-content:center;gap:10px;padding:14px 12px 10px;border-radius:18px;background:#1A1A1A;border:1px solid #242424;margin-bottom:10px}
.hm-ck-slot{width:104px;display:flex;flex-direction:column;align-items:center;gap:6px}
.hm-ck-ph{position:relative;width:104px;height:139px;border-radius:10px;overflow:hidden;background:#232323;display:block}
.hm-ck-ph img{width:100%;height:100%;object-fit:cover;display:block}
.hm-ck-ph img:not([src]){visibility:hidden}
.hm-ck-slot em{font-style:normal;font-size:12px;color:var(--mut);font-weight:500;line-height:1.2}
.hm-ck-add{border:1.5px dashed #3E3E3E;background:transparent;color:var(--acc);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;padding:0}
.hm-ck-add span{font:600 12.5px var(--sans);color:#D9D9D9}
.hm-ck-swap{width:32px;height:32px;margin-top:53px;flex:none;border-radius:16px;border:1px solid #333;background:#202020;color:#DADADA;display:grid;place-items:center;cursor:pointer;padding:0}
.hm-ck-gap{width:32px;flex:none}
.hm-ck-del{position:absolute;right:2px;top:2px;width:40px;height:40px;border:0;background:none;color:#8A8A8A;display:grid;place-items:center;cursor:pointer}
.hm-ck-unpair{position:absolute;right:4px;top:4px;width:26px;height:26px;border:0;border-radius:13px;background:rgba(0,0,0,.62);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.hm-ck-unpair svg{width:13px;height:13px}
.hm-ck-sheet .hm-sheet h2{font-size:20px}
.hm-ck-sub{margin:-10px 0 0;font-size:13px;color:var(--mut)}
.hm-ck-picks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-height:46vh;overflow-y:auto;padding:3px}
.hm-ck-picks button{position:relative;aspect-ratio:3/4;border:0;padding:0;border-radius:12px;overflow:hidden;background:#222;opacity:.6;cursor:pointer}
.hm-ck-picks button img{width:100%;height:100%;object-fit:cover;display:block}
.hm-ck-picks button img:not([src]){visibility:hidden}
.hm-ck-picks button[aria-pressed="true"]{opacity:1;box-shadow:0 0 0 3px var(--acc)}
.hm-ck-picks i{position:absolute;right:7px;top:7px;width:24px;height:24px;border-radius:12px;background:var(--acc);color:var(--on-acc);display:none;place-items:center}
.hm-ck-picks button[aria-pressed="true"] i{display:grid}
.hm-ck-picks b{position:absolute;left:7px;bottom:7px;height:20px;padding:0 7px;border-radius:10px;background:rgba(0,0,0,.6);font:700 11px/20px var(--disp);color:#fff}
.hm-rv-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}
.hm-rv-it{display:flex;flex-direction:column;gap:8px;min-width:0}
.hm-rv-case{position:relative;aspect-ratio:4/5;border-radius:16px;background:radial-gradient(ellipse 70% 60% at 50% 42%,#343434,#1B1B1B 62%,#151515);border:1px solid #262626;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hm-rv-case>img{max-width:68%;max-height:84%;object-fit:contain;filter:drop-shadow(0 10px 14px rgba(0,0,0,.55))}
.hm-rv-back{position:absolute;right:8px;bottom:8px;width:50px;height:58px;border-radius:10px;background:#101010;border:1px solid #333;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.hm-rv-back img{width:34px;height:34px;object-fit:contain}
.hm-rv-back em{font-style:normal;font-size:9.5px;color:#BDBDBD;font-weight:600;line-height:1}
.hm-rv-back.txt{height:24px;width:auto;padding:0 8px}
.hm-rv-acts{display:flex;gap:6px}
.hm-rv-acts button{flex:1;height:36px;border-radius:18px;border:1px solid #363636;background:transparent;color:#EDEDED;font:600 13px var(--sans);cursor:pointer}
.hm-rv-acts .hm-rv-out{color:#A8A8A8}
.hm-rv-wait{width:28px;height:28px;border-radius:50%;border:2px solid #333;border-top-color:var(--acc);animation:hm-spin .9s linear infinite}
.hm-hold{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:9px 9px 9px 16px;border-radius:14px;background:rgba(204,255,0,.07);border:1px solid rgba(204,255,0,.26);font-size:13.5px;color:var(--w)}
.hm-hold[hidden]{display:none}
.hm-hold b{color:var(--acc);font-family:var(--disp)}
.hm-hold button{height:34px;padding:0 14px;border:0;border-radius:17px;background:var(--acc);color:var(--on-acc);font:700 13px var(--sans);cursor:pointer;white-space:nowrap}
html.pc-ui .hm-page{background:rgba(0,0,0,.75);align-items:center}
html.pc-ui .hm-page-in{height:auto;max-height:88vh;background:#171717;border-radius:26px;overflow:hidden}
html.pc-ui .hm-page-body{padding:0 20px 18px}
@media (prefers-reduced-motion:reduce){.hm-rv-wait{animation-duration:3s}}
.hm-ck-new{position:relative;aspect-ratio:3/4;border-radius:12px;border:1.5px dashed #3E3E3E;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--acc);cursor:pointer}
.hm-ck-new span{font:600 12.5px var(--sans);color:#D9D9D9}

/* ── 진열장 정리: 전체(연도별) · 지역별 · 부문별 칸 ── */
#hm-grid.grouped{display:block!important}
#hm-grid .hm-gsec{margin-top:30px}
#hm-grid .hm-gsec:first-child{margin-top:4px}
.hm-acct-kind button b{margin-right:6px;font-weight:700;font-variant-numeric:tabular-nums}   /* 마이 · 메달 크기 100% 조절 */
.hm-msz{position:fixed;left:12px;right:12px;top:calc(env(safe-area-inset-top,0px) + 8px);z-index:70;max-width:416px;margin:0 auto;padding:10px 12px 6px;border-radius:16px;background:rgba(23,23,23,.94);border:1px solid var(--ln2);box-shadow:0 12px 30px rgba(0,0,0,.5);color:var(--w)}   /* 메달 크기 조절 바: 위쪽에 떠서 메달 · 아래 글씨가 다 보이게 */
html[data-view]:not([data-view="hall"]) .hm-msz{display:none}
.hm-msz-top{display:flex;align-items:center;gap:8px;height:30px}
.hm-msz-top b{font-size:14px;font-weight:600}
.hm-msz-top span{margin-right:auto;font:700 14px var(--disp);color:var(--acc);font-variant-numeric:tabular-nums}
.hm-msz-reset,.hm-msz-done{height:30px;padding:0 12px;border:0;border-radius:9px;background:rgba(255,255,255,.08);color:var(--w);font-size:13px;font-weight:600;cursor:pointer}
.hm-msz-done{padding:0 14px;background:var(--acc);color:#0a0a0a;font-weight:700}
.hm-msz-row{display:flex;align-items:center;gap:10px;height:44px}
.hm-msz-step{flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:var(--w);font:500 20px/1 var(--disp);cursor:pointer;-webkit-tap-highlight-color:transparent}
#hm-msz-r{flex:1;min-width:0;height:32px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}
#hm-msz-r::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(90deg,var(--acc) var(--p,50%),rgba(255,255,255,.18) var(--p,50%))}
#hm-msz-r::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-9px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.5)}
#hm-msz-r::-moz-range-track{height:4px;border-radius:2px;background:rgba(255,255,255,.18)}
#hm-msz-r::-moz-range-progress{height:4px;border-radius:2px;background:var(--acc)}
#hm-msz-r::-moz-range-thumb{width:22px;height:22px;border:0;border-radius:50%;background:#fff}
.hm-msz button:focus-visible,#hm-msz-r:focus-visible{outline:2px solid #fff;outline-offset:2px}
#hm-grid .hm-ksec+.hm-ksec{margin-top:40px;padding-top:26px;border-top:1px solid var(--ln)}   /* 칸 보기: 메달 · 트로피를 따로 묶는다 (마이 진열 순서대로) */
#hm-grid .hm-ksh{display:flex;align-items:center;gap:12px;margin:0 0 14px}
#hm-grid .hm-ksec:first-child .hm-ksh{margin-top:4px}
#hm-grid .hm-ksh h2{margin:0;font-size:20px;font-weight:700;line-height:1.3;letter-spacing:-.02em;color:var(--w)}
#hm-grid .hm-ksh h2 b{margin-left:6px;font:700 15px var(--disp);color:var(--acc)}
#hm-grid .hm-ksec>.hm-ksh+.hm-gsec{margin-top:0}
#hm-grid .hm-gsh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;height:24px;margin:0 0 14px}   /* 제목 줄 높이 고정: 탭을 바꿔도 메달 칸이 같은 자리 */
#hm-grid .hm-gsh h3{margin:0;font:800 15px/24px var(--disp);letter-spacing:-.02em;color:var(--w)}   /* 2026 같은 숫자 제목도 공유 · 지역 제목과 같은 크기 */
#hm-grid .hm-gsh h3.kr{font:700 16px/24px var(--sans);letter-spacing:-.02em}
#hm-grid .hm-gsh>span{font-size:13px;color:var(--mut);font-variant-numeric:tabular-nums;white-space:nowrap}
#hm-grid .hm-gsh>span b{color:var(--w);font-weight:700;font-family:var(--disp)}
#hm-grid .hm-gpb{display:inline-flex;align-items:center;height:18px;padding:0 6px;margin-right:6px;border-radius:9px;background:var(--acc);color:var(--on-acc);font:800 10px/18px var(--disp);font-style:normal;letter-spacing:.06em;vertical-align:1px}
#hm-grid .hm-glink{border:0;background:none;padding:6px 0;color:var(--acc);font:600 13px var(--sans);cursor:pointer}
#hm-grid .hm-gg{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:20px 12px}
#hm-grid.mid .hm-gg{gap:16px 8px}
#hm-grid.dense .hm-gg{gap:12px 6px}
html.pc-ui #hm-grid .hm-gg{gap:26px 16px}
html.pc-ui #hm-grid .hm-gsec{margin-top:40px}
html.pc-ui #hm-grid .hm-gsec:first-child{margin-top:6px}
html.pc-ui #hm-grid .hm-ksec+.hm-ksec{margin-top:52px;padding-top:34px}
html.pc-ui #hm-grid .hm-ksec:first-child .hm-ksh{margin-top:6px}
html.pc-ui #hm-grid .hm-gsh{height:34px}
html.pc-ui #hm-grid .hm-gsh h3{font-size:17px;line-height:34px}
.hm-f select{height:50px;width:100%;padding:0 40px 0 14px;border-radius:14px;border:1px solid var(--ln2);background:rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;color:var(--w);font-size:16px;outline:none;color-scheme:dark;-webkit-appearance:none;appearance:none}
.hm-f select:focus{border-color:var(--acc)}
.hm-rg-sub{margin:-10px 0 0;font-size:13px;color:var(--mut)}
.hm-rg-list{display:flex;flex-direction:column;gap:8px}
.hm-rg-row{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 12px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid var(--ln)}
.hm-rg-img{width:40px;height:52px;flex:none;object-fit:contain;border-radius:8px;background:#1d1d1d}
.hm-rg-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.hm-rg-tx b{font-size:14.5px;font-weight:700;color:var(--w);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-rg-tx small{font-size:12px;color:var(--mut)}
.hm-rg-row select{flex:none;width:104px;height:40px;padding:0 28px 0 12px;border-radius:12px;border:1px solid var(--ln2);background:#1d1d1d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;color:var(--w);font:600 14px var(--sans);color-scheme:dark;-webkit-appearance:none;appearance:none}
/* 받침 명판: 연도만이 아니라 대회 날짜 전체 (2025.11.02) */
html #hm-grid .hm-yr.d,html:not(.pc-ui) #hm-grid .hm-yr.d{font-size:5cqw;letter-spacing:.1em;padding-left:.1em}
/* 새 보관함 (받침 1단 1.5배 · 2단 1.2배 높게): case.webp?v=10 600×1008 — 유리칸은 그대로, 명판 · 이름표 · PB 자리를 새 받침에 맞춘다 */
#hm-grid .hm-tile{aspect-ratio:600/1008;background-image:url(case.webp?v=10)}
#hm-grid .hm-tile .hm-hang{top:5.82%;bottom:29.02%}
#hm-grid .hm-tile:not(.hm-slot-tile)::after{top:4.92%;height:37.86%}
#hm-grid .hm-yr,html:not(.pc-ui) #hm-grid .hm-yr{top:74.34%;height:8.22%;font-size:6cqw}
html:not(.pc-ui) #hm-grid[data-cols="4"] .hm-yr{top:74.53%}
html #hm-grid .hm-yr.d,html:not(.pc-ui) #hm-grid .hm-yr.d{font-size:5.6cqw}
#hm-grid .hm-pbtag,html:not(.pc-ui) #hm-grid .hm-pbtag,#hm-grid.dense .hm-pbtag{bottom:30.72%}
#hm-grid .hm-item .hm-cap,#hm-grid.dense .hm-cap,#hm-grid.mid .hm-cap{top:82.94%;height:16.88%}
#hm-grid .hm-newtag,html:not(.pc-ui) #hm-grid .hm-newtag,#hm-grid.dense .hm-newtag{right:9.5%;bottom:30.72%;font-size:7.4cqw}
#hm-grid .hm-newtag.with-pb,html:not(.pc-ui) #hm-grid .hm-newtag.with-pb{right:calc(9.5% + 13.5cqw)}
/* 글자 키우기 (받침이 높아진 만큼): 기록 · 대회 이름 · 명판 날짜 · PB/NEW */
#hm-grid .hm-item .hm-cap b,html.pc-ui #hm-grid .hm-item .hm-cap b{font-size:10cqw}
#hm-grid .hm-item .hm-cap span,html.pc-ui #hm-grid .hm-item .hm-cap span{font-size:6.6cqw}
html.pc-ui #hm-grid .hm-item .hm-cap b{font-size:8.8cqw}
html.pc-ui #hm-grid .hm-item .hm-cap span{font-size:5.8cqw}
#hm-grid .hm-item .hm-cap>div{gap:1.4cqw}
#hm-grid .hm-yr,html:not(.pc-ui) #hm-grid .hm-yr{font-size:7cqw}
html #hm-grid .hm-yr.d,html:not(.pc-ui) #hm-grid .hm-yr.d{font-size:6.6cqw;letter-spacing:.08em;padding-left:.08em}
#hm-grid .hm-pbtag,html:not(.pc-ui) #hm-grid .hm-pbtag,#hm-grid.dense .hm-pbtag,#hm-grid .hm-newtag,html:not(.pc-ui) #hm-grid .hm-newtag,#hm-grid.dense .hm-newtag{font-size:8.2cqw}
#hm-grid .hm-newtag.with-pb,html:not(.pc-ui) #hm-grid .hm-newtag.with-pb{right:calc(9.5% + 15cqw)}
/* NEW (새로 올린 메달): 보관함 안쪽 오른쪽 위 */
#hm-grid .hm-newtag,html:not(.pc-ui) #hm-grid .hm-newtag,#hm-grid.dense .hm-newtag,#hm-grid .hm-newtag.with-pb,html:not(.pc-ui) #hm-grid .hm-newtag.with-pb{top:9.4%;bottom:auto;right:10%}
/* 하단 글자 더 크게 — 칸보다 긴 글은 그 칸만 알맞게 줄인다 (fitCaps) */
#hm-grid .hm-item .hm-cap b,html.pc-ui #hm-grid .hm-item .hm-cap b{font-size:12.5cqw;line-height:1.1}
#hm-grid .hm-item .hm-cap span,html.pc-ui #hm-grid .hm-item .hm-cap span{font-size:8.2cqw;line-height:1.15}
html.pc-ui #hm-grid .hm-item .hm-cap b{font-size:10.5cqw}
html.pc-ui #hm-grid .hm-item .hm-cap span{font-size:7cqw}
#hm-grid .hm-item .hm-cap>div{gap:1.8cqw}
#hm-grid .hm-yr,html:not(.pc-ui) #hm-grid .hm-yr{font-size:8cqw}
html #hm-grid .hm-yr.d,html:not(.pc-ui) #hm-grid .hm-yr.d{font-size:7.6cqw;letter-spacing:.07em;padding-left:.07em}
/* 기록 글자 아주 살짝 줄임 */
#hm-grid .hm-item .hm-cap b,html.pc-ui #hm-grid .hm-item .hm-cap b{font-size:11.8cqw}
html.pc-ui #hm-grid .hm-item .hm-cap b{font-size:9.9cqw}
/* 공유 창: 관리자만 — 공용 메달(메달 추가 › 공유된 자료)로 올리기 · 빼기 */
.hm-share-pub{margin-top:2px;padding-top:18px;border-top:1px solid var(--ln);display:flex;flex-direction:column;gap:8px}
.hm-share-pub[hidden]{display:none}
.hm-share-pub b{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:var(--w)}
.hm-share-pub b em{font-style:normal;font:800 10.5px/19px var(--disp);letter-spacing:.06em;padding:0 8px;border-radius:10px;background:var(--acc);color:var(--on-acc)}
.hm-share-pub p{margin:0;font-size:13px;line-height:1.55;color:var(--mut)}
.hm-share-pub .hm-ghost{width:100%;height:50px;margin-top:6px;border-color:rgba(204,255,0,.55);color:var(--acc)}
.hm-share-pub .hm-ghost:disabled{opacity:.6;cursor:wait}
/* 기록증 읽는 중: 가운데 카드 · 뒤는 흐리게(blur) 또는 어둡게(dim) */
.hm-cert{position:fixed;inset:0;z-index:9994;display:flex;align-items:center;justify-content:center;padding:24px;animation:hm-fade .18s ease-out}
.hm-cert[hidden]{display:none}
.hm-cert.dim{background:rgba(0,0,0,.84)}
.hm-cert.blur{background:rgba(8,8,8,.5);-webkit-backdrop-filter:blur(16px) saturate(.8);backdrop-filter:blur(16px) saturate(.8)}
@keyframes hm-fade{from{opacity:0}}
.hm-cert-card{width:min(340px,100%);max-height:100%;overflow-y:auto;background:#171717;border:1px solid var(--ln2);border-radius:26px;padding:24px 20px 18px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.6);animation:hm-in .2s ease-out}
.hm-cert-pic{position:relative;flex:0 0 auto;width:104px;height:140px;border-radius:12px;overflow:hidden;background:#0D0D0D;border:1px solid var(--ln2)}
.hm-cert-pic img{width:100%;height:100%;object-fit:cover;display:block}
.hm-cert-pic i{display:none;position:absolute;left:0;right:0;top:0;height:34%;background:linear-gradient(180deg,rgba(204,255,0,0),rgba(204,255,0,.3));border-bottom:2px solid var(--acc);box-shadow:0 3px 14px rgba(204,255,0,.55);animation:hm-scan 1.3s ease-in-out infinite alternate}
.hm-cert.busy .hm-cert-pic i{display:block}
.hm-cert.s0 .hm-cert-pic i{animation:none;opacity:0}
@keyframes hm-scan{from{transform:translateY(-100%)}to{transform:translateY(200%)}}
.hm-cert-pic b{display:none;position:absolute;right:6px;bottom:6px;width:26px;height:26px;border-radius:50%;background:var(--acc);box-shadow:0 2px 8px rgba(0,0,0,.4)}
.hm-cert-pic b::after{content:'';position:absolute;left:9px;top:5px;width:6px;height:11px;border:solid var(--on-acc);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.hm-cert.ok .hm-cert-pic b{display:block}
.hm-cert h2{margin:2px 0 0;font-size:21px;font-weight:700;letter-spacing:-.02em}
.hm-cert-d{margin:-6px 0 0;font-size:14px;line-height:1.5;color:var(--mut)}
.hm-cert-d:empty{display:none}
.hm-cert-steps{list-style:none;margin:0;padding:0;display:flex;width:100%;gap:6px}
.hm-cert-steps li{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--faint)}
.hm-cert-steps li::before{content:'';display:block;width:100%;height:4px;border-radius:2px;background:rgba(255,255,255,.12)}
.hm-cert-steps li.done{color:var(--mut)}
.hm-cert-steps li.done::before{background:var(--acc)}
.hm-cert-steps li.on{color:var(--w)}
.hm-cert-steps li.on::before{background:linear-gradient(90deg,rgba(204,255,0,.18) 0%,var(--acc) 50%,rgba(204,255,0,.18) 100%);background-size:200% 100%;animation:hm-bar 1.1s linear infinite}
@keyframes hm-bar{from{background-position:100% 0}to{background-position:-100% 0}}
.hm-cert.ok .hm-cert-steps,.hm-cert.bad .hm-cert-steps{display:none}
.hm-cert-res{display:none;width:100%;margin:0;grid-template-columns:1fr 1fr;gap:8px;text-align:left}
.hm-cert.ok .hm-cert-res{display:grid}
.hm-cert-res>div{min-width:0;padding:11px 14px 12px;border:1px solid var(--ln2);border-radius:14px;background:rgba(255,255,255,.03)}
.hm-cert-res>div.w{grid-column:1/-1}
.hm-cert-res dt{margin:0;font-size:12.5px;color:var(--mut);white-space:nowrap}
.hm-cert-res dd{margin:4px 0 0;font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--w);word-break:keep-all;overflow-wrap:anywhere}
.hm-cert-res .no dd{color:var(--faint);font-size:15px;font-weight:500}
.hm-cert-res .pick dd{color:var(--acc);font-size:15px}
.hm-cert-btns{width:100%;display:flex;flex-direction:column;gap:8px}
.hm-cert-btns:empty{display:none}
.hm-cert-btns label.hm-red{cursor:pointer}
.hm-cert-no{align-self:center;border:0;background:none;color:var(--faint);font-size:14px;font-weight:600;padding:8px 16px;cursor:pointer}
.hm-cert.bad .hm-cert-pic{opacity:.5}
@media (prefers-reduced-motion:reduce){.hm-cert,.hm-cert-card{animation:none}.hm-cert-pic i{animation:none;top:33%}.hm-cert-steps li.on::before{animation:none;background:var(--acc)}}
/* 폰: 문서 대신 #home 안에서만 스크롤 → 사파리 주소창 · 아래 막대가 나왔다 들어갔다 하지 않고 늘 그대로 */
html:not(.pc-ui),html:not(.pc-ui) body{height:100%;overflow:hidden}
html:not(.pc-ui) #home{position:fixed;inset:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}   /* 끝에서 사파리 고무줄처럼 튕긴다 (바깥 화면으로는 안 번지게) */
html:not(.pc-ui) #home>*{flex-shrink:0}
html.hm-lock:not(.pc-ui) #home,html.hm-cam-on:not(.pc-ui) #home{overflow:hidden}
/* 아이폰: 사파리 맨 위(시계 쪽) 누르기 → 맨 위로 — 문서를 1px 내려 둘 수 있게 2px 만 더 길게 (보이는 것은 그대로) */
html.st-top:not(.pc-ui){overflow-y:auto}
html.st-top:not(.pc-ui) body{overflow:visible;height:calc(100% + 2px)}
/* 폰: 맨 위에서 세게 당기면 새로고침 — 당기는 만큼 위에 동그라미가 나오고, 충분히 당기면 형광 */
.hm-ptr{position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) + 10px);z-index:45;width:40px;height:40px;margin-left:-20px;border-radius:50%;display:grid;place-items:center;background:rgba(23,23,23,.94);border:1px solid rgba(255,255,255,.14);color:#A3A3A3;opacity:0;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.45);transition:opacity .16s ease-out,background-color .15s,color .15s,border-color .15s}
.hm-ptr svg{display:block;transition:transform .05s linear}
.hm-ptr.ready{background:#CCFF00;border-color:#CCFF00;color:#0A0A0A}
.hm-ptr.spin svg{animation:hm-spin .75s linear infinite}
html.pc-ui .hm-ptr{display:none}
/* 올려 둔 기록증 보기 */
.hm-cert.view .hm-cert-steps{display:none}
.hm-cert.view .hm-cert-pic{width:100%;height:auto;max-height:min(58vh,520px);aspect-ratio:auto;min-height:120px;display:flex;align-items:center;justify-content:center}
.hm-cert.view .hm-cert-pic img{width:100%;height:auto;max-height:min(58vh,520px);object-fit:contain}
.hm-cert.view.wait .hm-cert-pic img,.hm-cert.view.bad .hm-cert-pic img{display:none}
.hm-cert-two{display:flex;gap:8px}.hm-cert-two>*{flex:1 1 0;min-width:0;width:auto;height:52px;padding:0 6px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;cursor:pointer}
#hm-f-cert.has::after,#e-cert.has::after,#v-go-cert.has::after,#v-pc-cert.has::after{content:'✓';margin-left:7px;color:#CCFF00;font-weight:800}   /* 올려 둔 기록증이 있으면: 글자와 띄운 형광 체크 */
.hm-cert h2:empty{display:none}
/* 모음 메달: 묶은 대회 */
#hm-f-set small{font-weight:400;color:var(--faint)}
.hm-set-list{display:grid;gap:6px;max-height:210px;overflow-y:auto}
.hm-set-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--ln2);border-radius:12px;background:rgba(255,255,255,.03);font-size:14px;cursor:pointer}
.hm-set-row input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--acc);margin:0}
.hm-set-row b{flex:1 1 auto;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-set-row em{flex:0 0 auto;font-style:normal;color:var(--mut);font-variant-numeric:tabular-nums}
.hm-set-note,.hm-set-none{margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--faint)}
.hm-ck-auto{margin:8px 0 0;font-size:12.5px;line-height:1.5;color:var(--acc)}
.hm-rv-case.two{gap:6px;padding:0 8px 14px}
.hm-rv-pair{display:flex;align-items:flex-end;justify-content:center;gap:6px;width:100%}   /* 앞 · 뒤: 같은 너비 (메달 크기 같게) · 아래 맞춤 — 너비는 home.js rvFit */
.hm-rv-pair>img{display:block;width:44%;height:auto;min-width:0;filter:drop-shadow(0 10px 14px rgba(0,0,0,.55))}
.hm-rv-cap{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-style:normal;font-size:10.5px;font-weight:600;color:#9A9A9A}

/* 공유용 탭 (오른쪽 끝) · 정리 막대의 '공유용으로 / 진열장으로' */
.hm-tab-share{margin-left:auto}
#hm-mv{background:rgba(255,255,255,.08);color:var(--w)}#hm-mv:disabled{opacity:.45;cursor:default}
.hm-editbar{left:10px;right:10px;transform:none;width:fit-content;width:-webkit-fit-content;margin:0 auto;flex-wrap:wrap;justify-content:center;box-sizing:border-box;row-gap:8px}   /* 단추가 많으면(관리자) 두 줄로 — 가운데 정렬 */
/* 뛰었고 공용 메달로도 올린 메달: 진열장 칸 오른쪽 위에 작은 공유 아이콘 */
.hm-sharetag{position:absolute;z-index:3;top:9.4%;right:10%;width:8.6cqw;height:8.6cqw;min-width:11px;min-height:11px;color:var(--acc);pointer-events:none;display:block}
.hm-sharetag svg{display:block;width:100%;height:100%}
#hm-grid .hm-newtag.with-sh,html:not(.pc-ui) #hm-grid .hm-newtag.with-sh{right:calc(10% + 11cqw)}
#hm-grid.wig .hm-sharetag{opacity:0}
/* 메달 공유 창: 제목 옆 '공유 중' · 단추 가로 한 줄 (공유하기 · 공유 끄기 · 링크 복사) */
#hm-share h2{display:flex;align-items:center;gap:10px}
.hm-live{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 11px;border-radius:13px;background:rgba(204,255,0,.14);color:var(--acc);font:700 13px var(--sans);letter-spacing:0}
.hm-live::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 3px rgba(204,255,0,.22)}
.hm-sheet-btns.hm-share-row,html.pc-ui .hm-sheet-btns.hm-share-row{flex-direction:row;justify-content:stretch;gap:8px}
.hm-share-row button,html.pc-ui .hm-share-row .hm-red,html.pc-ui .hm-share-row .hm-ghost{flex:1 1 0;min-width:0;width:auto;padding:0 6px;height:50px;font-size:15px;white-space:nowrap}
.hm-share-row #hm-share-copy.done{border-color:var(--acc);color:var(--acc)}
/* '맨 위' 창(공유 · 공유받은 메달)이 머리줄(.hm-top) 모양을 물려받아 PC 에서 76px 높이로 눌리던 것 — 창 틀은 화면 전체 */
.hm-sheet-wrap.hm-top,html.pc-ui .hm-sheet-wrap.hm-top{height:100vh;height:100dvh;padding:0;gap:0;justify-content:center}
/* 공유 표시: 공용 = 지구 · 친구 공유 = 공유 아이콘 (둘 다면 나란히) */
.hm-sharetag{display:flex!important;gap:1.8cqw;width:auto!important;height:8.6cqw}
.hm-sharetag svg{flex:none;width:8.6cqw!important;height:8.6cqw!important;min-width:11px;min-height:11px}
#hm-grid .hm-newtag.with-sh2,html:not(.pc-ui) #hm-grid .hm-newtag.with-sh2{right:calc(10% + 21cqw)}
.hm-sharetag{color:rgba(255,255,255,.5)!important}   /* 공유 표시는 회색 (형광은 튄다) */
/* PC: 사진 · 폴더 · zip 을 진열장에 끌어다 놓을 때 */
.hm-dropzone{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:28px;background:rgba(10,10,10,.84);pointer-events:none}
.hm-dropzone[hidden]{display:none}
.hm-dropzone-in{width:min(560px,100%);display:flex;flex-direction:column;align-items:center;gap:10px;padding:52px 28px 48px;border:2px dashed rgba(204,255,0,.75);border-radius:26px;background:rgba(204,255,0,.035);text-align:center;word-break:keep-all}
.hm-dropzone-in i{display:grid;place-items:center;width:58px;height:58px;margin-bottom:6px;border-radius:50%;background:var(--acc);color:var(--on-acc)}
.hm-dropzone-in b{font:800 23px/1.3 var(--sans);letter-spacing:-.02em;color:var(--w)}
.hm-dropzone-in span{font-size:15px;color:#D4D4D4}
.hm-dropzone-in small{font-size:13px;color:var(--mut)}
.hm-add-zip{color:#E5E5E5;text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}   /* 폰: zip 으로 올리기 (파일 앱) */
/* 사진 확인: 이 사진을 어디에 — 새 메달 · 진열장 메달의 사진만 바꾸기 */
.hm-ck{flex-wrap:wrap}
.hm-ck-to{flex:0 0 100%;display:flex;align-items:center;gap:10px;margin-top:6px;padding:8px 12px;border-radius:13px;border:1px dashed #3A3A3A;background:transparent;color:var(--w);font-family:var(--sans);text-align:left;cursor:pointer;min-width:0}
.hm-ck-to.on{border:1px solid rgba(204,255,0,.5);background:rgba(204,255,0,.06)}
.hm-ck-to img{width:30px;height:40px;object-fit:contain;flex:none}
.hm-ck-to-plus{width:30px;height:30px;border-radius:15px;display:grid;place-items:center;background:#242424;color:var(--acc);flex:none;font-style:normal}
.hm-ck-to span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hm-ck-to b{font-size:13.5px;font-weight:700;line-height:1.3}
.hm-ck-to.on b{color:var(--acc)}
.hm-ck-to em{font-style:normal;font-size:12px;line-height:1.35;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-ck-to-go{font-style:normal;font-size:20px;line-height:1;color:#7A7A7A;flex:none}
.hm-ck-tos{display:flex;flex-direction:column;gap:8px;max-height:52vh;overflow-y:auto;padding:2px}
.hm-ck-tos button{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 12px;border-radius:14px;border:1px solid #2A2A2A;background:#1A1A1A;color:var(--w);text-align:left;font-family:var(--sans);cursor:pointer}
.hm-ck-tos button[aria-pressed="true"]{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}
.hm-ck-tos img{width:34px;height:46px;object-fit:contain;flex:none}
.hm-ck-tos span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hm-ck-tos b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-ck-tos em{font-style:normal;font-size:12px;color:var(--mut)}
.hm-ck-tos small{flex:none;font-size:11px;color:#9A9A9A}
.hm-live[hidden],.hm-share-row button[hidden]{display:none!important}
#hm-grid .hm-item .hm-cap span.hm-noname,.hm-cap span.hm-noname{color:var(--faint)}
/* 공유 탭 검색: 제목 오른쪽 돋보기 → 짧은 검색 칸 */
#hm-grid .hm-gsh>span:has(.hm-sq-b),#hm-grid .hm-gsh>span:has(.hm-sq-box){align-self:center;display:flex;align-items:center}
.hm-sq-b{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin:-5px 0;padding:0;border:1px solid var(--ln2);border-radius:50%;background:none;color:var(--w);cursor:pointer}
.hm-sq-box{display:flex;align-items:center;gap:8px;width:190px;height:34px;margin:-5px 0;padding:0 6px 0 12px;border:1px solid var(--acc);border-radius:17px;background:#1b1b1b;color:var(--w)}
.hm-sq-box svg{flex:none}
.hm-sq-box input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;color:var(--w);font:500 16px var(--sans);padding:0;-webkit-appearance:none;appearance:none}
.hm-sq-box input::-webkit-search-cancel-button{display:none}
.hm-sq-box input::placeholder{color:var(--faint)}
.hm-sq-box button{flex:none;width:28px;height:28px;border:0;background:none;color:var(--mut);font-size:15px;cursor:pointer;padding:0}
html.pc-ui .hm-sq-box{width:240px}
#hm-grid .hm-item[hidden]{display:none!important}
/* 폰: 대회 정보 창이 한 화면에 다 들어오게 (대회 이름부터 저장까지 스크롤 없이) */
html:not(.pc-ui) #hm-info .hm-sheet{gap:11px;padding:18px 18px calc(16px + env(safe-area-inset-bottom,0px))}
html:not(.pc-ui) #hm-info .hm-sheet h2{font-size:18px}
html:not(.pc-ui) #hm-info .hm-f{gap:5px}
html:not(.pc-ui) #hm-info .hm-f>span{font-size:12px}
html:not(.pc-ui) #hm-info .hm-f input,html:not(.pc-ui) #hm-info .hm-f select{height:44px;border-radius:12px}
html:not(.pc-ui) #hm-info .hm-f input[type="date"]{line-height:42px}
html:not(.pc-ui) #hm-info .hm-thumb{gap:12px}
html:not(.pc-ui) #hm-info .hm-thumb-tile{width:84px!important;height:107px!important;border-radius:12px!important}
html:not(.pc-ui) #hm-info .hm-thumb-ctl{gap:2px}
html:not(.pc-ui) #hm-info .hm-thumb-ctl p{display:none}
html:not(.pc-ui) #hm-info .pg-msg:empty{display:none}
html:not(.pc-ui) #hm-info .hm-sheet-btns{flex-direction:row-reverse;gap:8px}   /* 나중에 왼쪽 · 저장 오른쪽 (PC 와 같은 순서) */
html:not(.pc-ui) #hm-info .hm-sheet-btns button{height:48px;flex:1 1 0;min-width:0}
html:not(.pc-ui) #hm-info .hm-sheet-btns #hm-info-save{flex:2 1 0}
html:not(.pc-ui) #hm-info .hm-f-cert{height:44px;min-height:0;box-sizing:border-box}
.hm-f2x{display:flex;gap:10px}.hm-f2x>.hm-f{flex:1 1 0;min-width:0}.hm-f2x>.hm-f[hidden]{display:none}
/* 종목: 이어 붙은 토글 (한 덩어리 막대 · 고른 것만 형광) */
#hm-info #hm-f-dist{display:flex;flex-wrap:nowrap;gap:0;margin:0;padding:3px;border:1px solid var(--ln2);border-radius:14px;background:rgba(255,255,255,.04)}
#hm-info #hm-f-dist .hm-seg{flex:1 1 auto;min-width:0;height:36px;padding:0 2px;border:0;border-radius:11px;background:transparent;color:var(--mut);font-size:12.5px;font-weight:700;letter-spacing:-.03em;white-space:nowrap}
#hm-info #hm-f-dist .hm-seg[aria-pressed="true"]{background:var(--acc);color:var(--on-acc)}
#hm-info #hm-f-dist .hm-seg i{font-style:normal}
html:not(.pc-ui) #hm-info #hm-f-dist .hm-seg i{display:none}
html.pc-ui #hm-info #hm-f-dist .hm-seg{height:40px;font-size:14px;letter-spacing:0}
/* 종류(마라톤 · 트레일 · 하이록스): 밑줄 탭 — 고른 종류에 따라 아래 종목 단추가 바뀐다 */
#hm-info .hm-kind{display:flex;gap:22px;margin:0 0 9px;border-bottom:1px solid var(--ln)}
#hm-info .hm-kind button{flex:none;padding:6px 0 9px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--mut);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
#hm-info .hm-kind button[aria-pressed="true"]{color:var(--w);font-weight:800;border-bottom-color:var(--acc)}
html.pc-ui #hm-info .hm-kind button{font-size:15px}
/* 단위(K · M · 마일): 종목처럼 이어 붙은 토글 · 입력 칸과 같은 높이 */
#hm-info #hm-f-unit{align-self:stretch;display:flex;align-items:stretch;gap:0;padding:3px;border:1px solid var(--ln2);border-radius:14px;background:rgba(255,255,255,.04)}
#hm-info #hm-f-unit .hm-seg{flex:none;min-width:46px;height:auto;padding:0 12px;border:0;border-radius:11px;background:transparent;color:var(--mut);font-size:13px;font-weight:700}
#hm-info #hm-f-unit .hm-seg[aria-pressed="true"]{background:var(--acc);color:var(--on-acc)}
html.pc-ui #hm-info #hm-f-unit .hm-seg{font-size:14px;min-width:52px}
/* 기록증: 구글이 읽은 글자 그대로 보기 */
.hm-cert-raw{width:100%;margin:2px 0 0;text-align:left}
.hm-cert-raw[hidden]{display:none}
.hm-cert-raw summary{display:block;cursor:pointer;list-style:none;text-align:center;padding:6px 0;font-size:12.5px;color:var(--faint);text-decoration:underline;text-underline-offset:3px}
.hm-cert-raw summary::-webkit-details-marker{display:none}
.hm-cert-raw pre{margin:4px 0 0;max-height:190px;overflow:auto;padding:10px 12px;border:1px solid var(--ln2);border-radius:12px;background:rgba(255,255,255,.03);font:12px/1.55 ui-monospace,Menlo,monospace;color:var(--mut);white-space:pre-wrap;word-break:break-all;-webkit-user-select:text;user-select:text}
.hm-cert-copy{display:block;margin:8px auto 0;height:34px;padding:0 16px;border:1px solid var(--ln2);border-radius:17px;background:transparent;color:var(--w);font-size:13px;font-weight:600;cursor:pointer}
/* 기록증 창: 보이는 화면(사파리 아래 막대 뺀 높이) 안에 들어오게 · 넘치면 창 전체가 한 번에 스크롤 (안쪽 글자 칸은 따로 스크롤하지 않는다) */
.hm-cert{bottom:auto;height:100vh;height:100dvh}
.hm-cert-card{max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.hm-cert-card>*{flex-shrink:0}
.hm-cert-raw pre{max-height:none;overflow:visible}
.hm-cert-card:has(.hm-cert-raw[open]) .hm-cert-pic{display:none}
/* 여러 개 만드는 동안: 진열장 위 가운데 창 — 몇 개 됐는지(고리 · 3/7) · 지금 만드는 것 몇 % · 그만 만들기. 다 끝날 때까지 닫히지 않는다 */
.hm-bp{position:fixed;inset:0;z-index:9980;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.52);animation:hm-bp-in .2s ease-out}
.hm-bp[hidden]{display:none}
@keyframes hm-bp-in{from{opacity:0}to{opacity:1}}
.hm-bp-card{width:min(100%,340px);max-height:calc(100dvh - 40px);overflow-y:auto;background:#141414;border:1px solid #2A2A2A;border-radius:26px;padding:46px 20px 36px;text-align:center;color:#FAFAFA;font-family:var(--body);box-shadow:0 18px 50px rgba(0,0,0,.55)}
.hm-bp-card:focus{outline:none}
.hm-bp-ring{position:relative;width:150px;height:150px;margin:0 auto 26px}
.hm-bp-ring svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.hm-bp-ring circle{fill:none;stroke-width:5}
.hm-bp-bg{stroke:#262626}
.hm-bp-arc{stroke:#CCFF00;stroke-linecap:round;stroke-dasharray:276.5;stroke-dashoffset:276.5;transition:stroke-dashoffset .35s linear}
.hm-bp-mid{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.hm-bp-mid b{font:800 46px/1 var(--display);color:#fff;font-variant-numeric:tabular-nums}
.hm-bp-mid b small{font-size:24px;color:#CCFF00;margin-left:1px}
.hm-bp-mid em{font-style:normal;font-size:12px;color:#9A9A9A;margin-top:6px}
.hm-bp-eb{margin:0 0 10px;font:700 11px/1.4 var(--body);letter-spacing:.18em;color:#CCFF00}
.hm-bp-card h2{margin:0;font-size:21px;font-weight:700;line-height:1.35;word-break:keep-all;color:#FAFAFA}
.hm-bp-strip{position:relative;margin:26px -20px 0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent)}   /* 많으면 옆으로 넘긴다 — 끝은 흐리게 */
.hm-bp-strip::-webkit-scrollbar{display:none}
.hm-bp-in{display:flex;gap:7px;width:-webkit-max-content;width:max-content;margin:0 auto;padding:4px 20px 22px}
.hm-bp-t{position:relative;flex:none;width:38px;height:38px;border-radius:10px;background:#1F1F1F;transition:opacity .25s,box-shadow .25s}
.hm-bp-t img{display:block;width:100%;height:100%;border-radius:10px;object-fit:contain}
.hm-bp-t img:not([src]){visibility:hidden}
.hm-bp-t.w{opacity:.3}
.hm-bp-t.c{box-shadow:0 0 0 2px #CCFF00;background:#242424}
.hm-bp-t.f{opacity:.55}
.hm-bp-t.d::after,.hm-bp-t.f::after{content:"";position:absolute;right:-4px;bottom:-4px;width:15px;height:15px;border-radius:50%;border:2px solid #141414;background:#CCFF00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat}
.hm-bp-t.f::after{background:#5A5A5A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.2 5.2l5.6 5.6M10.8 5.2l-5.6 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat}
.hm-bp-t i{position:absolute;left:50%;top:100%;margin-top:5px;transform:translateX(-50%);font:700 11px/1 var(--display);font-style:normal;color:#CCFF00;letter-spacing:.02em;white-space:nowrap}
.hm-bp-dl{margin:0;font-size:12px;line-height:1.5;color:#8A8A8A}
.hm-bp-stop{margin-top:18px;height:42px;padding:0 24px;border-radius:21px;border:1px solid rgba(255,255,255,.18);background:transparent;color:#D9D9D9;font:600 14px var(--body);cursor:pointer;-webkit-tap-highlight-color:transparent}
.hm-bp-stop:disabled{opacity:.5;cursor:default}
@media (hover:hover){.hm-bp-stop:hover:not(:disabled){border-color:#CCFF00;color:#CCFF00}}
@media (prefers-reduced-motion:reduce){.hm-bp{animation:none}.hm-bp-arc,.hm-bp-t{transition:none}}
/* 메달 가져오기: 폰도 가로 3개 */
.hm-catgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
.hm-cattile{height:132px;padding:10px;border-radius:14px}
.hm-catitem b{font-size:12.5px}
.hm-catitem span{font-size:11px}
.hm-catrm{height:22px;font-size:11px}
html.pc-ui .hm-catgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 12px}
html.pc-ui .hm-cattile{height:170px;padding:12px;border-radius:16px}
html.pc-ui .hm-catitem b{font-size:13.5px}
html.pc-ui .hm-catitem span,html.pc-ui .hm-catrm{font-size:12px}

/* ── 봉 보기 (메달 레일) — 사용자 시안(Medalium_Rack_4BG)의 진열 화면을 옮김 · 글꼴과 색은 사이트 것 ── */
html[data-hview="rail"] #hm-grid,html[data-hview="rail"] #hm-cols,html[data-hview="rail"] #hm-edit{display:none!important}   /* 칸 보기의 grouped 는 !important 라 같이 */
.hm-view svg{display:block}
.hm-rail{margin:4px 0 26px}
.rl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rl-exhibit{border:1px solid var(--ln2);border-radius:16px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.72fr) minmax(288px,.92fr);background:#151515}
.rl-frame{position:relative;min-width:0;align-self:start}
.rl-stage{--rack-height:clamp(310px,36vw,510px);--rack-height-scale:1;position:relative;min-width:0;width:100%;height:calc(var(--rack-height) * var(--rack-height-scale));overflow:hidden;isolation:isolate;background:#222;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;outline:none}
.rl-stage:active{cursor:grabbing}
.rl-stage{-webkit-touch-callout:none}
.rl-minus{display:flex;z-index:3;top:auto;right:auto;animation:rl-pop .16s ease-out}   /* 봉 보기 꾹 누르기: − (진열장과 같은 모양) */
@keyframes rl-pop{from{transform:scale(.4);opacity:0}}
.rl-stage:focus-visible{outline:2px solid var(--acc);outline-offset:-3px}
.rl-stage canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
.rl-stage,.rl-stage *{touch-action:pan-y}   /* 아이폰: 무대 안 어디를 잡아도 위아래로는 페이지가 움직인다 */
.rl-loading{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);margin:0;font-size:14px;color:#e5e5e5;background:#1c1c1c;padding:8px 14px;border-radius:15px;white-space:nowrap}
.rl-loading:not(.fail){width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);background:none}   /* 불러오는 중은 뼈대 화면으로 (글은 화면 읽기용) · 실패 문구만 보인다 */
/* 뼈대 화면 (스켈레톤): 불러오는 동안 메달 · 이름 · 탭 · 총계 자리를 회색으로 먼저 보여 주고 반짝인다 — 한 번만, 다 되면 스르르 사라진다 */
@keyframes hm-shim{from{background-position:130% 0}to{background-position:-30% 0}}
.rl-skel i,.rl-capskel i,.hm-tabskel i,.hm-tabskel b,.hm-sk,.hm-stats.sk .hm-st b::after{background:linear-gradient(100deg,#1b1b1b 30%,#2b2b2b 50%,#1b1b1b 70%) #1b1b1b;background-size:300% 100%;animation:hm-shim 1.5s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.rl-skel i,.rl-capskel i,.hm-tabskel i,.hm-tabskel b,.hm-sk,.hm-stats.sk .hm-st b::after{animation:none}}
.rl-skel{position:absolute;inset:0;z-index:2;background:#111;opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s .4s;pointer-events:none}
.rl-capskel{position:absolute;left:20px;right:20px;bottom:12px;height:66px;opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s .4s;pointer-events:none}
.rl-wait .rl-skel,.rl-wait .rl-capskel{opacity:1;visibility:visible;transition:none}
.rl-wait .rl-cap{visibility:hidden}
.rl-skel i,.rl-capskel i{position:absolute;display:block}
.rl-skel .sk-rod{left:0;right:0;top:calc(var(--rack-rail-min,46px) - 3px);height:6px;border-radius:3px;animation:none;background:#232323}
.rl-skel .sk-rib{left:calc(var(--x) - 1.6%);width:3.2%;top:calc(var(--rack-rail-min,46px) + 3px);height:21%;border-radius:2px}
.rl-skel .sk-bd{left:calc(var(--x) - 3.4%);width:6.8%;top:calc(var(--rack-rail-min,46px) + 3px + 19%);height:27%;border-radius:50%}
.rl-skel .sk-rib.c{left:43.5%;width:13%;height:24%}
.rl-skel .sk-bd.c{left:30%;width:40%;height:auto;aspect-ratio:1;top:calc(var(--rack-rail-min,46px) + 3px + 22%)}
.rl-capskel .a{left:0;bottom:56px;width:34px;height:10px;border-radius:5px}
.rl-capskel .b{left:0;bottom:34px;width:118px;height:10px;border-radius:5px}
.rl-capskel .c{left:0;bottom:2px;width:150px;height:20px;border-radius:6px}
.rl-capskel .t{right:0;bottom:2px;width:124px;height:38px;border-radius:8px}
.hm-tabskel{display:none;flex:1;align-items:center;gap:20px;min-width:0}
html.hm-sk .hm-tabs[hidden]+.hm-tabskel,html.hm-sk .hm-tabskel:has(+.hm-tabs[hidden]){display:flex}
.hm-tabskel i{width:42px;height:14px;border-radius:7px}
.hm-tabskel i:first-child{width:30px}
.hm-tabskel b{width:22px;height:22px;border-radius:6px}
.hm-tabskel b:first-of-type{margin-left:auto}
.hm-stats.sk .hm-st b{position:relative;color:transparent}
.hm-stats.sk .hm-st b::after{content:"";position:absolute;left:50%;top:50%;width:min(64px,56%);height:78%;transform:translate(-50%,-50%);border-radius:6px}
.hm-tile.hm-sktile{cursor:default}
.hm-sktile i{position:absolute;display:block;left:50%;transform:translateX(-50%)}
.hm-sktile .sk-m1{top:14%;width:12%;height:28%;border-radius:2px}   /* 빈 진열장 안에 메달 모양 뼈대 */
.hm-sktile .sk-m2{top:39%;width:44%;aspect-ratio:1;border-radius:50%}
html:not([data-hview="rail"]) .hm-tabskel b{display:none}   /* 칸 보기: 오른쪽 단추는 진짜가 이미 보인다 */
html.pc-ui .rl-panel{position:relative}
html.pc-ui .rl-capskel{left:19px;right:19px;top:50%;bottom:auto;transform:translateY(-50%)}
.hm-skcap{flex-direction:column;gap:6px}
.hm-skcap i{display:block;height:11px;border-radius:6px}
.hm-skcap i:first-child{width:70%}
.hm-skcap i:last-child{width:45%}
.hm-sk-h{display:inline-block;width:56px;height:16px;border-radius:8px;vertical-align:middle}
.rl-panel{min-width:0;border-left:1px solid var(--ln2);background:#181818;display:flex;align-items:center}
.rl-bgbtn{position:absolute;z-index:1;right:4px;bottom:4px;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.rl-bgbtn:disabled{visibility:hidden}
.rl-dot{position:relative;display:grid;place-items:center;width:28px;height:28px;overflow:hidden;border-radius:50%;border:1px solid rgba(238,241,223,.52);background:#252525;box-shadow:0 1px 4px rgba(0,0,0,.53)}
.rl-dot img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:29% 52%}
.rl-dot svg{position:relative;display:block;width:15px;height:15px;fill:none;stroke:#f1f2e9;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #000)}
.rl-bgbtn:focus-visible{outline:none}
.rl-bgbtn:focus-visible .rl-dot{outline:2px solid var(--acc);outline-offset:2px}
.rl-bgbtn:active .rl-dot{border-color:var(--acc)}
.rl-bgerr{position:absolute;bottom:12px;left:12px;right:54px;width:fit-content;margin:0;padding:4px 8px;border-radius:5px;background:rgba(21,21,21,.93);color:#eee;font-size:13px;pointer-events:none}
/* 아래 이름표: 대회 이름 · PB / 종목 · 대회일 / 완주 기록 — 누르면 메달을 연다 */
.rl-cap{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"no no" "title title" "meta time";align-items:end;gap:8px 10px;width:100%;padding:18px 19px;border:0;background:transparent;color:var(--w);text-align:left;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.rl-left{display:contents}   /* 번호 · 종목 · 이름 묶음: PC 는 칸마다, 폰은 한 덩어리 */
.rl-title{grid-area:title;min-width:0;font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-.03em;word-break:keep-all;overflow-wrap:anywhere}
.rl-go{display:inline-block;vertical-align:middle;width:18px;height:18px;margin:0 0 .12em .3em;fill:none;stroke:var(--mut);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}   /* 누르면 메달이 열린다 */
.rl-pb{margin-right:5px;color:var(--acc);font:600 12px/1 'Oswald',var(--disp);font-style:normal;letter-spacing:.04em}   /* 기록 왼쪽에 작게 */
.rl-meta{grid-area:meta;display:flex;flex-wrap:wrap;gap:7px;align-items:baseline;min-width:0;color:var(--mut);font-size:14px;white-space:nowrap}
.rl-meta span{font-family:var(--disp);font-weight:600;letter-spacing:.03em}
.rl-meta span:not(:empty)+time:not(:empty)::before{content:"·";margin-right:7px;color:var(--faint)}
.rl-time{grid-area:time;justify-self:end;display:flex;align-items:baseline;white-space:nowrap}
.rl-time b{font:600 30px/1 'Oswald',var(--disp);letter-spacing:.01em;font-variant-numeric:tabular-nums}   /* 기록 숫자: 사이트 숫자 글꼴 (Oswald) */
/* 폰: 메달 추가(+) 는 위 머리줄 (명예의 전당 · 기록실) — 아래 떠 있는 + 단추는 총계 · 기록을 가려서 쓰지 않는다 */
.hm-plus{display:none;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--ln);border-radius:50%;background:#141414;color:var(--acc);cursor:pointer;flex:none}
.hm-plus svg{display:block}
html:not(.pc-ui)[data-view="hall"] .hm-plus,html:not(.pc-ui)[data-view="records"] .hm-plus{display:grid}
.hm-storybtn{display:none;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--ln);border-radius:50%;background:#141414;color:var(--w);cursor:pointer;flex:none}   /* 진열장 이미지 (스토리) — 봉 보기에서만 */
.hm-storybtn svg{display:block}
html[data-view="hall"][data-hview="rail"] .hm-storybtn{display:grid}
html:not([data-hview="rail"]) #hm-all{display:none!important}   /* 한눈에 보기: 봉 보기에서만 */
.hm-tabtools .hm-all{padding:0}
.hm-tabtools .hm-all[aria-pressed="true"]{color:var(--acc)}
.rl-panel{transition:opacity .2s ease}
html[data-rlall] .rl-panel:not(.has-pbs){opacity:0;visibility:hidden;transition:opacity .2s ease,visibility 0s .2s}   /* 한눈에 보기: 가운데 메달 이름 칸 대신 종목별 최고 기록 (없으면 비운다) */
html[data-rlall] .rl-cap{display:none}
.rl-pbs{display:none;width:100%}
html[data-rlall] .rl-pbs{display:block;animation:rl-pbin .25s ease-out}
@keyframes rl-pbin{from{opacity:0;transform:translateY(6px)}}
.rl-pbs-h{margin:0 0 12px;font:700 10.5px/1 var(--disp);letter-spacing:.18em;color:var(--acc)}
.rl-pbs-row{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:12px}
.rl-pb1{min-width:0;display:flex;flex-direction:column;gap:6px}
.rl-pb1 span{font-size:11.5px;font-weight:700;color:var(--w);white-space:nowrap}
.rl-pb1 b{font:600 26px/1 'Oswald',var(--disp);letter-spacing:.01em;font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap}
.rl-pb1 em{font-style:normal;font-size:11px;line-height:1.2;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rl-pb1 time{margin-top:-2px;font:600 10.5px/1 'Oswald',var(--disp);letter-spacing:.08em;color:var(--faint)}
html.pc-ui .rl-pbs{padding:22px 24px}
html.pc-ui .rl-pbs-row{grid-template-columns:minmax(0,1fr);gap:16px}
html.pc-ui .rl-pb1 b{font-size:30px}
.hm-story-seg{display:flex;gap:8px;margin-top:14px}
.hm-story-pv{display:flex;align-items:center;justify-content:center;min-height:100%}
.hm-story-pv img,.hm-story-wait{display:block;max-width:100%;height:calc(100vh - 290px);height:calc(100dvh - 290px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:760px;aspect-ratio:9/16;border-radius:16px;border:1px solid var(--ln)}
.hm-story-pv img{width:auto;object-fit:contain;background:#0A0A0A}
.hm-story-wait{display:grid;place-items:center;background:#151515;color:var(--mut);font-size:13.5px}
.hm-story-pv.busy img{opacity:.35;transition:opacity .15s}
html.pc-ui .hm-story-pv img,html.pc-ui .hm-story-wait{height:min(62vh,640px)}
html:not(.pc-ui) .hm-pill{display:none!important}
/* 폰: 저장 상태(구름)는 따로 두지 않고 '내 계정' 아이콘에 — 평소 그대로 · 저장 중 = 둘레가 돈다 · 다시 연결 필요 = 빨간 점 (home.js renderTop) */
html:not(.pc-ui) .hm-chip{display:none!important}
html:not(.pc-ui) .hm-avatar{position:relative;overflow:visible}
html:not(.pc-ui) .hm-avatar[data-st="busy"]::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid rgba(255,255,255,.12);border-top-color:var(--acc);border-right-color:var(--acc);animation:hm-spin .9s linear infinite;pointer-events:none}
html:not(.pc-ui) .hm-avatar[data-st="off"]::after{content:"";position:absolute;top:-1px;right:-1px;width:11px;height:11px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 2.5px #0A0A0A;pointer-events:none}
.rl-no{grid-area:no;font:600 13px/1 'Oswald',var(--disp);letter-spacing:.06em;color:rgba(255,255,255,.62)}   /* 몇 번째 메달 (이름 칸 맨 위) */
.rl-no b{font-weight:600;color:#fff}
.rl-no:empty{display:none}
/* 폰: 봉은 화면 끝까지 · 세로 3:4 무대 (화면이 낮으면 그만큼 낮게 · 메달도 같이 작아진다) · 이름과 기록은 무대 바닥 위에 */
@media(max-width:760px){
  .rl-exhibit{display:block;position:relative;margin:0 -20px;border:0;border-radius:0;background:transparent}
  .rl-stage{height:auto;aspect-ratio:3/4;min-height:280px;max-height:calc(100vh - var(--rl-top,212px) - 160px - env(safe-area-inset-bottom,0px));max-height:calc(100svh - var(--rl-top,212px) - 206px - env(safe-area-inset-bottom,0px));--rack-height-scale:1;--rack-rail-min:46px;--rack-floor:170px}   /* 첫 화면에 이름 · 기록까지 보이게 (+ 단추 위에서 끝난다 · --rl-top 은 home.js railFit) */
  .rl-panel{position:absolute;z-index:1;left:0;right:0;bottom:0;display:block;border:0;padding:80px 20px 12px;background:linear-gradient(rgba(10,10,10,0) calc(100% - 66px),rgba(10,10,10,.5) calc(100% - 34px),rgba(10,10,10,0));pointer-events:none}   /* 이름 칸 뒤만 살짝 어둡게 (가운데 메달 아래쪽은 덮지 않는다) · 아래 끝은 무대와 같이 흐려진다 */
  .rl-cap,.rl-pbs{text-shadow:0 1px 10px rgba(0,0,0,.6),0 0 2px rgba(0,0,0,.35)}   /* 바닥 불빛 위에서도 글씨가 또렷하게 */
  html[data-rlall] .rl-panel{background:linear-gradient(rgba(10,10,10,0) calc(100% - 118px),rgba(10,10,10,.55) calc(100% - 70px),rgba(10,10,10,.55) calc(100% - 40px),rgba(10,10,10,0))}   /* 한눈에 보기: 기록 칸이 높아 조금 위까지 (메달은 더 위에서 끝난다) */
  .rl-cap{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:0;pointer-events:auto}
  .rl-left{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start;min-width:0}   /* 번호 · 종목 · 이름: 한 덩어리 (기록과 아래를 맞춘다) */
  .rl-no{margin-bottom:8px;font-size:11.5px}
  .rl-title{font-size:17px;font-weight:800}
  .rl-go{display:none}
  .rl-meta{gap:0;margin-bottom:2px;color:var(--mut);font:600 10.5px/1 'Oswald',var(--disp);letter-spacing:.12em}   /* 종목 · 날짜: 회색 · 대회 이름에 살짝 붙게 */
  .rl-meta span{font:inherit;letter-spacing:inherit}
  .rl-meta span:not(:empty)+time:not(:empty)::before{margin:0 .45em;color:inherit}
  .rl-time{flex:none}
  .rl-time b{font-size:38px}
  .rl-bgbtn{top:4px;right:8px;bottom:auto}
  html[data-hview="rail"] .hm-tabrow{position:relative;z-index:2;height:44px;margin:-2px 0 -48px;border-bottom-color:transparent}   /* 봉 보기: 탭 줄은 무대 맨 위(봉 위)에 · 제목에 조금 더 가깝게 (무대 높이는 그대로 · 아래가 다 같이 올라온다) */
  html[data-hview="rail"] .hm-tabtools{margin-right:-8px}   /* 아이콘 오른쪽 끝을 기록 · 총계 오른쪽 끝에 맞춘다 */
  html[data-hview="rail"] .hm-rail{margin:0 0 12px}   /* 총계는 이름 칸 바로 아래로 */
  html[data-hview="rail"] .rl-stage{-webkit-mask-image:linear-gradient(rgba(0,0,0,0),#000 40px,#000 calc(100% - 40px),rgba(0,0,0,0));mask-image:linear-gradient(rgba(0,0,0,0),#000 40px,#000 calc(100% - 40px),rgba(0,0,0,0))}   /* 무대 위 · 아래 끝: 경계가 칼같지 않게 (봉 위에서 다 보인다 · 아래는 이름 칸 배경과 같이 흐려진다) */
  html[data-hview="grid"] .hm-tabrow{height:44px;margin-top:-2px}   /* 칸 보기 탭 줄도 봉 보기와 같은 높이 · 같은 자리 */
  .rl-bgerr{top:48px;bottom:auto;left:auto;right:12px}
  html[data-tro="rod"][data-hview="rail"] .hm-tabrow{margin:-2px 0 6px;border-bottom-color:var(--ln)}   /* 트로피가 있으면 탭 줄은 봉 무대 위가 아니라 제목 아래 (트로피 · 메달을 같이 정리) · 높이는 트로피 없을 때와 같은 자리 */
  html[data-tro="rod"] .rl-stage{min-height:240px;max-height:calc(100vh - var(--rl-top,212px) - 84px - env(safe-area-inset-bottom,0px));max-height:calc(100svh - var(--rl-top,212px) - 84px - env(safe-area-inset-bottom,0px))}   /* 트로피가 있으면: 메달 무대(이름 칸까지)가 첫 화면 아래 메뉴 위에서 끝나게 — 메달을 그만큼 줄인다 */
  html[data-tro="rod"] #hm-tro{position:relative;z-index:3;margin:0 0 calc(-1 * var(--tro-rod,42.3px));pointer-events:none}   /* 아래쪽은 메달 무대 윗부분에 겹친다 — 트로피 바닥이 봉 윗면에 */
  html[data-tro="rod"] #hm-tgrid.hm-shelf{height:190px;background:none}   /* 트로피 우선: 트로피 위 빈 곳을 줄여 (222 → 190) 트로피 · 메달을 같이 올린다 */
  html[data-tro="rod"] .hm-sh-ledge,html[data-tro="rod"] .hm-sh-pool,html[data-tro="rod"] .hm-sh-shd{display:none}
  html[data-tro="rod"] .hm-sh-row{height:190px;pointer-events:auto}
  html[data-tro="rod"] .hm-sh-beam{top:auto;bottom:2px}   /* 빛은 트로피 바닥 기준 그대로 (위쪽은 잘린다) */
  html[data-tro="rod"] #hm-tgrid .hm-sh-it .hm-tile{height:188px}
  html[data-tro="rod"] .hm-sh-cap{bottom:12px}   /* 트로피 글씨: 트로피 바닥(봉)에서 12px 위 */
  html[data-tro="below"] .hm-rail{margin-bottom:0}   /* 트로피가 메달 이름 칸 바로 아래 (총계 앞 간격은 트로피 아래로) */
  html[data-tro="below"] #hm-tro{position:relative;z-index:3;margin:0 0 12px}   /* 메달 우선 (마이): 메달 무대는 트로피 없을 때와 같은 크기 · 트로피는 그 아래 같은 메달 봉 위에 선다 */
  html[data-tro="below"] #hm-tgrid.hm-shelf{height:calc(232px + var(--tro-rodh,8.33px));background:none}   /* 트로피 222 + 봉 + 봉 그림자 자리 10 */
  html[data-tro="below"] .hm-sh-pool,html[data-tro="below"] .hm-sh-shd{display:none}
  html[data-tro="below"] .hm-sh-ledge{top:222px;z-index:3;height:var(--tro-rodh,8.33px);background:linear-gradient(90deg,rgba(0,0,0,.21) -9.5%,rgba(255,255,255,.03) 16.7%,rgba(255,255,255,.2) 44%,rgba(255,255,255,.05) 70.2%,rgba(0,0,0,.22) 109.5%) 0 0/100% 37% no-repeat,linear-gradient(#2e2e2e,#6a6a6a 13%,#4e4e4e 29%,#353535 43%,#242424 72%,#141414 92%,#3c3c3c);box-shadow:0 3px 7px rgba(0,0,0,.6)}   /* 봉: rail.js 봉 앞면과 같은 색 · 두께는 메달 무대 봉 그대로 (home.js railFit) · 양 끝 흐림 위에 */
  html[data-tro="below"] .hm-sh-row{height:222px}
  html[data-tro="below"] #hm-tgrid .hm-sh-it .hm-tile{height:220px}
  html[data-tro="below"] .hm-sh-cap{bottom:calc(22px + var(--tro-rodh,8.33px))}   /* 트로피 바닥에서 12px 위 (트로피 우선과 같은 자리) */
}
@media(hover:none) and (pointer:coarse) and (orientation:landscape) and (max-height:600px){.rl-stage{--rack-height-scale:.91}}
.rl-cap.shared .rl-meta{color:var(--acc)}   /* 공유 탭(공유된 메달): 종목 · 날짜를 형광으로 */
#ov.v-flat #view-lid{display:none!important}
/* 트로피 선반 (제목 바로 아래 · home.js shelfPaint): 위에서 은은하게 비추는 빛 아래 검은 선반 — 옆으로 밀면 가운데 트로피가 '지금 트로피' (메달 레일처럼)
   선반 아래 왼쪽: 번호 · 순위 · 대회 이름 (메달 레일 글씨 그대로) · 트로피를 꾹 누르면 − (지우기) */
#hm-tro .hm-sec-h{display:none!important}
#hm-tro{min-width:0}
#hm-tgrid.hm-shelf{position:relative;display:block!important;height:256px;margin:0 -20px!important;padding:0!important;overflow:hidden;max-width:none!important;background:linear-gradient(180deg,#0a0a0a 0,rgba(10,10,10,0) 72px),radial-gradient(130% 80% at 50% -10%,#1b1b1b,#0d0d0d 60%,#090909)}   /* 위 끝은 바탕과 이어지게 (선이 보이지 않게) */
.hm-sh-ledge{position:absolute;left:0;right:0;top:216px;height:22px;background:linear-gradient(180deg,#3a3a3a 0,#292929 7px,#181818 7px,#0c0c0c 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 7px 0 rgba(255,255,255,.04),0 10px 24px rgba(0,0,0,.6)}
.hm-sh-row{position:absolute;left:0;right:0;top:0;height:244px;display:flex;gap:22px;padding:0 calc(50% - 50px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none}   /* 마스크 · 필터 없이 (아이폰에서 밀 때 그림이 잘려 보이지 않게) */
#hm-tgrid.hm-shelf::before,#hm-tgrid.hm-shelf::after{content:"";position:absolute;z-index:2;top:0;bottom:0;width:30px;pointer-events:none}   /* 양 끝: 바탕색으로 흐리게 (마스크 대신 위에 덮는다) */
#hm-tgrid.hm-shelf::before{left:0;background:linear-gradient(90deg,#0a0a0a,rgba(10,10,10,0))}
#hm-tgrid.hm-shelf::after{right:0;background:linear-gradient(270deg,#0a0a0a,rgba(10,10,10,0))}
.hm-sh-row::-webkit-scrollbar{display:none}
#hm-tgrid .hm-sh-it{position:relative;flex:none!important;width:100px;height:100%;min-width:0;margin:0;padding:0;scroll-snap-align:center;background:none;border:0;box-shadow:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#hm-tgrid .hm-sh-it .hm-tile{all:unset;box-sizing:border-box;position:absolute;left:0;right:0;top:0;height:220px;display:flex;justify-content:center;align-items:flex-end;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}
#hm-tgrid .hm-sh-it .hm-tile::before,#hm-tgrid .hm-sh-it .hm-tile::after{display:none!important}
#hm-tgrid .hm-sh-it .hm-tile:focus-visible{outline:2px solid var(--acc);outline-offset:-2px;border-radius:12px}
#hm-tgrid .hm-sh-it .hm-tile img{position:relative;display:block;max-height:150px;max-width:96px;width:auto;height:auto;margin:0 0 -2px;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none;pointer-events:none}
.hm-sh-beam{position:absolute;left:50%;top:6px;width:210px;height:214px;transform:translateX(-50%);background:radial-gradient(48% 52% at 50% 46%,rgba(255,255,255,.12),rgba(255,255,255,.04) 55%,rgba(255,255,255,0) 100%);pointer-events:none}   /* 위에서 은은하게 (마스크 없이 끝이 저절로 사라진다) */
.hm-sh-fig{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:flex-end;pointer-events:none}
#hm-tgrid .hm-sh-fig img{transform-origin:50% 100%}   /* 가운데로 올수록 크고 밝게 — 그림 하나에 크기 · 투명도만 (home.js shelfCur) */
.hm-sh-pool{position:absolute;left:50%;bottom:-8px;width:124px;height:14px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.2),rgba(255,255,255,0));pointer-events:none}
.hm-sh-shd{position:absolute;left:50%;bottom:-4px;width:64%;height:9px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.75),rgba(0,0,0,0));pointer-events:none}
#hm-tgrid .hm-sh-it .hm-check{top:18px;right:2px}
#hm-tgrid .hm-sh-it.hm-sel .hm-tile{outline:0;border:0}
#hm-tgrid .hm-sh-it.hm-sel .hm-tile img{filter:drop-shadow(0 0 10px rgba(204,255,0,.5))}
#hm-tgrid .hm-sh-minus{display:flex;right:auto;bottom:auto;z-index:7;animation:rl-pop .16s ease-out}
.hm-sh-cap{position:absolute;z-index:3;left:20px;right:20px;bottom:61px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;color:var(--w,#fff);pointer-events:none;text-shadow:0 1px 10px rgba(0,0,0,.6),0 0 2px rgba(0,0,0,.35)}   /* 메달 레일 이름 칸과 같은 배치: 선반 위 · 왼쪽 번호 · 날짜 · 대회 이름, 오른쪽(기록 자리) 순위 (밀고 누르는 건 선반이 그대로 받는다) */
.hm-sh-left{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start;min-width:0}
.hm-sh-no{margin-bottom:8px;font:600 11.5px/1 'Oswald',var(--disp);letter-spacing:.06em;color:rgba(255,255,255,.62);font-variant-numeric:tabular-nums}   /* 메달 레일 번호와 같게 */
.hm-sh-no b{font-weight:600;color:#fff}
.hm-sh-meta{display:flex;flex-wrap:wrap;align-items:baseline;margin-bottom:2px;color:var(--mut);font:600 10.5px/1 'Oswald',var(--disp);letter-spacing:.12em;white-space:nowrap}
.hm-sh-title{max-width:100%;font-size:17px;font-weight:800;line-height:1.25;letter-spacing:-.03em;word-break:keep-all;overflow-wrap:anywhere}
.hm-sh-rank{flex:0 1 auto;max-width:60%;font-size:28px;font-weight:600;line-height:1.05;letter-spacing:-.02em;text-align:right;word-break:keep-all;overflow-wrap:anywhere}   /* 순위 (연령별 2위): 메달 기록 자리 · 길면 두 줄 */
.hm-sh-rank:empty{display:none}
html.pc-ui #hm-tgrid.hm-shelf{margin:0!important;border:1px solid var(--ln2);border-radius:16px;height:300px}
html.pc-ui #hm-tro{margin:14px 0 18px}
html.pc-ui .hm-sh-ledge{top:254px}
html.pc-ui .hm-sh-row{height:284px;gap:30px;padding:0 calc(50% - 62px)}
html.pc-ui #hm-tgrid .hm-sh-it{width:124px}
html.pc-ui #hm-tgrid .hm-sh-it .hm-tile{height:258px}
html.pc-ui #hm-tgrid .hm-sh-it .hm-tile img{max-height:182px;max-width:120px}
html.pc-ui .hm-sh-beam{width:250px;height:250px}
html.pc-ui .hm-sh-cap{left:24px;right:24px;bottom:70px}
html.pc-ui .hm-sh-no{font-size:13px}
html.pc-ui .hm-sh-meta{font-size:12px}
html.pc-ui .hm-sh-title{font-size:20px;font-weight:700}
html.pc-ui .hm-sh-rank{font-size:22px}

/* 폰: 탭 줄 오른쪽은 보기 전환 + ⋯ (더 보기) 둘만 — 공유 · 메달 전체 보기(메달렉) · 칸 수 · 정리(칸 보기)는 ⋯ 안에 */
.hm-more,.hm-moremenu{display:none}
html:not(.pc-ui) .hm-tabtools .hm-more{display:inline-flex;position:relative;align-items:center;padding:0;min-width:36px;height:36px}
html:not(.pc-ui) .hm-more i{position:absolute;right:3px;top:5px;width:7px;height:7px;border-radius:50%;background:var(--acc);display:none}
html:not(.pc-ui) .hm-more.dot i{display:block}   /* 공유 목록을 보는 중 */
html:not(.pc-ui) #hm-all,html:not(.pc-ui) #hm-cols,html:not(.pc-ui) #hm-edit,html:not(.pc-ui) #hm-tabs .hm-tab[data-tab="share"]{display:none!important}
html:not(.pc-ui) .hm-tabrow{position:relative}
html:not(.pc-ui) .hm-moremenu:not([hidden]){display:flex;flex-direction:column;position:absolute;right:20px;top:calc(100% - 2px);z-index:40;width:124px;border-radius:14px;background:#1b1b1b;border:1px solid var(--ln2);box-shadow:0 14px 34px rgba(0,0,0,.55);overflow:hidden}
.hm-moremenu button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 12px;border:0;border-bottom:1px solid var(--ln);background:transparent;color:var(--w);font:500 13.5px var(--sans);text-align:left;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hm-moremenu button:last-child{border-bottom:0}
.hm-moremenu button[hidden]{display:none}
.hm-moremenu button b{font:700 13px var(--disp);color:var(--faint)}
.hm-moremenu button[aria-pressed="true"]{color:var(--acc)}
.hm-moremenu button:focus-visible{outline:2px solid var(--acc);outline-offset:-2px}

/* 폰: 보기 전환 · ⋯ 는 메달렉 · 칸 보기에서 같은 자리 (왔다 갔다 해도 안 튄다) */
html:not(.pc-ui) .hm-tabtools{margin-right:-8px;gap:6px}
html:not(.pc-ui) .hm-tabtools .hm-view{width:36px;min-width:36px;height:36px;padding:0}
/* 폰 메달렉: 아래 정보(이름 칸 · 총계)를 올려 첫 화면 맨 아래에 저작권 표시가 보이게 */
html:not(.pc-ui) .hm-main{padding-bottom:14px}
html:not(.pc-ui) .hm-foot{padding-top:12px}

/* 아이폰 사파리: 100vh 는 주소창이 접혔을 때 높이라 보이는 화면보다 크다 — #home (화면에 고정) 이 그만큼 아래로 길어져서, 내용이 조금만 넘치는 메달렉은 스크롤이 아예 안 되고 칸 보기는 맨 끝이 잘렸다 → 보이는 화면 높이에 맞춘다 */
html:not(.pc-ui) #home{min-height:0;height:auto;max-height:none}
/* 폰 도구 줄: 보기 아이콘 ↔ ⋯ 를 더 붙이고, 칸 보기 때 나오는 메달렉 아이콘은 조금 내린다 (칸 아이콘과 높이 맞춤) */
html:not(.pc-ui) .hm-tabtools{gap:0}
html:not(.pc-ui) .hm-tabtools .hm-more{margin-left:-6px}
html:not(.pc-ui):not([data-hview="rail"]) .hm-tabtools .hm-view svg{transform:translateY(2px)}
/* 연도 탭: 누르면 해 목록 (고른 해만 본다) */
.hm-tabrow{position:relative}
.hm-tab[data-tab="yr"]{align-items:center;gap:4px}
.hm-tab[data-tab="yr"] svg{flex:none;opacity:.7}
.hm-tab[hidden]{display:none}
.hm-yearmenu{position:absolute;top:calc(100% - 2px);z-index:40;min-width:92px;max-height:264px;overflow-y:auto;border-radius:14px;background:#1b1b1b;border:1px solid var(--ln2);box-shadow:0 14px 34px rgba(0,0,0,.55)}
.hm-yearmenu[hidden]{display:none}
.hm-yearmenu button{display:block;width:100%;min-height:44px;padding:0 16px;border:0;border-bottom:1px solid var(--ln);background:transparent;color:var(--w);font:600 14px var(--disp);font-variant-numeric:tabular-nums;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hm-yearmenu button:last-child{border-bottom:0}
.hm-yearmenu button[aria-pressed="true"]{color:var(--acc)}
.hm-tabrow:has(.hm-yearmenu:not([hidden])){z-index:60!important}
.hm-yearmenu{min-width:0}
.hm-yearmenu button{padding:0 14px;min-height:40px;text-align:center}
/* 메달렉 지역 · 종목 탭: 묶음이 바뀌는 자리에서 그 이름이 가운데 메달 끈 위에 1.2초 */
.rl-grp{position:absolute;left:50%;top:34px;z-index:6;margin:0;transform:translateX(-50%);padding:5px 12px;border-radius:999px;background:rgba(0,0,0,.62);color:var(--acc);font:800 15px/1.2 var(--sans);letter-spacing:.02em;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden}
.rl-grp.on{visibility:visible;animation:rl-grp 1.2s ease both}
@keyframes rl-grp{0%{opacity:0;transform:translate(-50%,-4px)}12%{opacity:1;transform:translate(-50%,0)}78%{opacity:1}100%{opacity:0}}
.rl-grp{top:calc(var(--rack-rail-min,46px) + 20px);font-size:16px}
.hm-empty-add{cursor:pointer;-webkit-tap-highlight-color:transparent}.hm-empty-add:active{border-color:var(--acc)}
html:not(.pc-ui) .hm-tabtools .hm-more[hidden]{display:none}
html.hm-has[data-view="hall"][data-hview="grid"] .hm-storybtn{display:grid}   /* 칸 보기에서도 공유 (진열장 이미지) */
/* 메달 가져오기: 찾기 */
.hm-cat-q{display:block;width:100%;box-sizing:border-box;height:44px;margin:14px 0 4px;padding:0 14px;border-radius:12px;border:1px solid var(--ln2);background:#0F0F0F;color:var(--w);font:400 16px var(--sans);-webkit-appearance:none;appearance:none}
.hm-cat-q[hidden]{display:none}
.hm-cat-q:focus{outline:none;border-color:var(--acc)}
.hm-cat-q::placeholder{color:var(--faint)}
/* 메달 가져오기: 누른 칸에 '불러오는 중…' */
.hm-cattile{position:relative}
.hm-cattile.busy{border-color:var(--acc)}
.hm-cattile.busy img{opacity:.25}
.hm-cattile.busy::before{content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-24px 0 0 -11px;border-radius:50%;border:2.5px solid rgba(255,255,255,.2);border-top-color:var(--acc);animation:hm-cat-spin .8s linear infinite}
.hm-cattile.busy::after{content:"불러오는 중…";position:absolute;left:0;right:0;top:50%;margin-top:8px;text-align:center;font:700 12px/1.2 var(--sans);color:var(--acc)}
.hm-catgrid.busy .hm-cattile:not(.busy){opacity:.45;pointer-events:none}
@keyframes hm-cat-spin{to{transform:rotate(360deg)}}
/* 대회 정보: '기록증' 아래 안내 말풍선 (창이 뜨고 한 박자 뒤) */
.hm-f-row{position:relative}
.hm-cert-tip{position:absolute;right:0;top:calc(100% + 9px);z-index:5;padding:8px 12px;border-radius:10px;background:var(--acc);color:#0A0A0A;font:700 12.5px/1.3 var(--sans);font-style:normal;white-space:nowrap;pointer-events:none;opacity:0;transform:translateY(-4px);transition:opacity .25s,transform .25s;box-shadow:0 8px 20px rgba(0,0,0,.45)}
.hm-cert-tip::before{content:"";position:absolute;right:28px;top:-5px;width:10px;height:10px;background:var(--acc);transform:rotate(45deg);border-radius:2px}
.hm-cert-tip.on{opacity:1;transform:none}
html.pc-ui .hm-gate .hm-top .hm-logo{visibility:hidden}   /* 웹 첫 화면도 왼쪽 위 로고 없이 */
/* 첫 화면 문구: 관리자 설정이 오기 전에는 감춰 두었다가 부드럽게 */
.hm-gate .hm-gate-copy{transition:opacity .35s ease}
html.site-wait .hm-gate .hm-gate-copy{opacity:0}
