/* HANPUZZLE 공용 셸 v7 — 홈/게임/아카이브가 공유하는 최소 스타일 */
:root{
  color-scheme:only light;
  --bg:#f5f6f3; --surface:#fff; --text:#171a17; --muted:#747a73;
  --line:#dfe3dc; --green:#2f8f62; --soft:#e8f3ec;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg)!important;color:var(--text);overscroll-behavior-y:none;color-scheme:only light}
body{
  font-family:"Pretendard","Segoe UI Variable","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
button{font:inherit}
[hidden]{display:none!important}

/* 상단 바 */
.hp-bar{
  height:58px;display:flex;align-items:center;justify-content:space-between;
  padding:0 14px;border-bottom:1px solid var(--line);
  background:rgba(245,246,243,.96);position:sticky;
  top:env(safe-area-inset-top,0px);z-index:20;backdrop-filter:blur(10px);
}
.hp-brand{font-weight:950;font-size:19px;letter-spacing:-.04em;text-decoration:none}
.hp-gtitle{font-weight:900;font-size:17px}
.hp-ib{
  width:38px;height:38px;border:0;background:transparent;border-radius:11px;
  font-size:21px;color:var(--text);display:flex;align-items:center;justify-content:center;
  text-decoration:none;
}
.hp-bar-actions{display:flex;align-items:center;gap:2px}

/* 본문 */
.hp-wrap{max-width:690px;margin:auto;padding:24px 14px 42px;overflow-x:clip}
.hp-hero{padding:6px 2px 20px}
.hp-date{font-size:12px;color:var(--green);font-weight:850;margin-bottom:7px}
.hp-hero h1{font-size:30px;line-height:1.14;letter-spacing:-.05em;margin:0 0 8px}
.hp-hero p{margin:0;color:var(--muted);font-size:14px}
.hp-sec{margin:7px 2px 10px;font-size:13px;color:var(--muted);font-weight:800}

/* 홈 카드 */
.hp-grid{display:grid;gap:9px}
.hp-game{
  width:100%;border:1px solid var(--line);background:#fff;border-radius:17px;padding:14px;
  text-align:left;display:grid;grid-template-columns:40px 1fr auto;gap:11px;align-items:center;
  color:var(--text);text-decoration:none;
}
.hp-num{
  width:40px;height:40px;border-radius:12px;background:var(--soft);color:var(--green);
  display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;
}
.hp-name{display:block;font-size:16px;font-weight:900;margin-bottom:3px}
.hp-desc{display:block;font-size:12px;color:var(--muted);line-height:1.4}
.hp-status{
  font-size:11px;font-weight:900;border-radius:999px;padding:6px 8px;
  background:#f0f2ee;color:#747a73;white-space:nowrap;
}
.hp-status.done{background:var(--soft);color:var(--green)}
.hp-status.fail{background:#fbeceb;color:#b84d45}
@media(min-width:620px){.hp-grid{grid-template-columns:1fr 1fr}.hp-game{min-height:87px}}

/* 결과 */
.hp-rcard{
  background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px;margin-top:12px;
}
.hp-rhead{font-size:18px;font-weight:950;margin-bottom:5px}
.hp-rsub{font-size:13px;color:var(--muted);margin-bottom:13px}
.hp-ract{display:flex;gap:8px;flex-wrap:wrap}
.hp-btn{
  border:1px solid #d7dcd4;background:#fff;color:var(--text);border-radius:11px;
  padding:10px 14px;font-weight:850;font-size:14px;text-decoration:none;display:inline-block;
}
.hp-btn-primary{background:#171a17;color:#fff;border-color:#171a17}

/* 광고 슬롯 — ADS.client 미설정 시 비어 있고 높이도 차지하지 않는다 */
.hp-ad{margin:16px 0}
.hp-ad:empty{display:none}

/* 사전 팝업 */
.hp-dictpop{
  position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));
  z-index:100;max-width:520px;margin:auto;background:#fff;border:1px solid var(--line);
  box-shadow:0 12px 36px rgba(0,0,0,.18);border-radius:16px;padding:12px 42px 12px 13px;display:none;
}
.hp-dictpop.show{display:block}
.hp-dw{font-size:16px;font-weight:950}
.hp-dp{font-size:11px;color:var(--green);font-weight:800;margin-left:6px}
.hp-dd{font-size:13px;line-height:1.48;color:#3e443e;margin-top:4px}
.hp-dx{position:absolute;right:8px;top:7px;width:30px;height:30px;border:0;background:#f0f2ee;border-radius:9px}

/* 게임별 이용 방법 */
.hp-modal-layer{position:fixed;inset:0;background:rgba(14,18,15,.48);display:none;align-items:center;justify-content:center;padding:18px;z-index:150}
.hp-modal-layer.show{display:flex}
.hp-modal{position:relative;width:min(100%,480px);max-height:min(78vh,620px);overflow:auto;background:#fff;color:#171a17;border-radius:20px;padding:22px;box-shadow:0 22px 70px rgba(0,0,0,.24)}
.hp-modal h2{font-size:20px;margin:0 36px 14px 0;letter-spacing:-.03em}
.hp-modal ol{margin:0;padding-left:22px}
.hp-modal li{font-size:15px;line-height:1.65;margin:8px 0}
.hp-modal-tip{font-size:13px;line-height:1.55;color:#586159;background:#f1f5f2;border-radius:12px;padding:11px 12px;margin:16px 0 0}
.hp-help-dismiss{display:flex;align-items:flex-start;gap:9px;margin:14px 2px 0;font-size:14px;line-height:1.4;color:#303630;cursor:pointer}
.hp-help-dismiss input{width:18px;height:18px;margin:1px 0 0;accent-color:#23653b;flex:0 0 auto}
.hp-help-dismiss small{font-size:12px;color:#687068}
.hp-modal-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border:0;border-radius:10px;background:#eef1ed;color:#171a17;font-size:21px}

/* 토스트 */
.hp-toast{
  position:fixed;left:50%;transform:translateX(-50%) translateY(12px);
  bottom:calc(22px + env(safe-area-inset-bottom,0px));
  background:#171a17;color:#fff;padding:10px 16px;border-radius:999px;font-size:13px;font-weight:800;
  opacity:0;pointer-events:none;transition:.2s;z-index:120;
}
.hp-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

.hp-foot{text-align:center;color:#8b918a;font-size:11px;line-height:1.9;padding-top:22px}
.hp-foot-row{display:block;white-space:nowrap}
.hp-foot a{text-underline-offset:3px}
.dict-word,[data-dict-word],[data-hp-word]{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.hp-err{color:#b84d45;font-size:13px;font-weight:800;padding:12px 2px}

/* 지난 문제 아카이브 */
.hp-archive-head{margin-bottom:22px}
.hp-archive-head h1{font-size:28px;letter-spacing:-.045em;margin:0 0 8px}
.hp-archive-head p{font-size:14px;line-height:1.65;color:var(--muted);margin:0}
.hp-month{margin:26px 0 10px;font-size:17px;font-weight:950}
.hp-days{display:grid;gap:9px}
.hp-day{background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px}
.hp-day-title{font-size:14px;font-weight:900;margin-bottom:9px}
.hp-day-links{display:flex;gap:6px;flex-wrap:wrap}
.hp-day-links a{font-size:12px;text-decoration:none;background:var(--soft);color:#286e4e;border-radius:999px;padding:6px 9px;font-weight:800}
.hp-article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;line-height:1.75}
.hp-article h1{font-size:25px;line-height:1.3;letter-spacing:-.04em;margin:0 0 8px}
.hp-article h2{font-size:18px;margin:25px 0 8px}
.hp-article h3{font-size:15px;margin:18px 0 5px}
.hp-article p{font-size:16px;margin:0 0 12px}
.hp-article ul,.hp-article ol{padding-left:22px}
.hp-article li{font-size:15px;margin:4px 0}
.hp-kicker{font-size:13px;color:var(--green);font-weight:900;margin-bottom:7px}
.hp-answer{background:#f4f8f5;border-left:4px solid var(--green);border-radius:10px;padding:12px 14px;margin:12px 0}
.hp-answer strong{color:#236b49}
.hp-tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.hp-tag{font-size:12px;background:#f0f2ee;border-radius:999px;padding:5px 8px;color:#59605a}
.hp-archive-nav{display:flex;justify-content:space-between;gap:10px;margin:14px 0}
.hp-archive-nav a{font-size:13px;font-weight:850;text-decoration:none}
@media(max-width:480px){.hp-article{padding:16px}.hp-article h1{font-size:22px}}

/* 사이트 소개·정책·문의 */
.hp-info{line-height:1.72}
.hp-info h2{padding-top:4px;border-top:1px solid #eef0ec}
.hp-info h3{margin-bottom:3px}
.hp-info a{color:#236b49;text-underline-offset:3px;overflow-wrap:anywhere}
.hp-policy-date{display:inline-block;background:var(--soft);color:#286e4e;border-radius:999px;padding:5px 9px;font-size:12px!important;font-weight:850}
.hp-policy-note{background:#f4f8f5;border:1px solid #dce9e0;border-radius:13px;padding:13px 14px;margin-top:22px;font-size:13px;line-height:1.65;color:#4d574f}
.hp-contact-card{background:#f4f8f5;border:1px solid #dce9e0;border-radius:16px;padding:18px;margin:18px 0 24px}
.hp-contact-label{font-size:12px;color:var(--green);font-weight:900;margin-bottom:5px}
.hp-contact-mail{display:inline-block;font-size:19px;font-weight:950;margin-bottom:7px}
.hp-contact-card p{font-size:13px;margin:0;color:#59625b}

/* v7.5 낱말그물 도움말 경로 예시 */
.hp-net-example{margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#f7f9f6}
.hp-net-example-title{font-size:12px;font-weight:900;color:#59605a;margin-bottom:9px}
.hp-net-example-row{display:grid;grid-template-columns:116px 1fr;gap:12px;align-items:center}
.hp-net-example-wrap{position:relative;width:116px;height:116px}
.hp-net-example-wrap svg{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.hp-net-example-wrap polyline{fill:none;stroke:#2f8f62;stroke-width:.13;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.hp-net-example-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);gap:3px}
.hp-net-example-grid span{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;border:1px solid #d7dcd4;border-radius:7px;background:#fff;font-size:14px;font-weight:850;color:#555}
.hp-net-example-grid span.path{background:#e3f1e8;border-color:#6ca382;color:#175f3a}
.hp-net-example-copy{font-size:12px;line-height:1.55;color:#59605a}
.hp-net-example-copy b{font-size:13px;color:#171a17}
@media(max-width:390px){.hp-net-example-row{grid-template-columns:104px 1fr;gap:9px}.hp-net-example-wrap{width:104px;height:104px}.hp-net-example-copy{font-size:11px}}

/* v7.7 archive / developer tools */
.hp-day-links a{display:inline-flex;align-items:center;gap:5px}
.hp-day-links a small{font-size:10px;opacity:.82;font-weight:800}
.hp-day-links a.done{background:#e8f3ec;color:#286e4e}
.hp-day-links a.fail{background:#fbeceb;color:#a9443e}
.hp-day-links a.progress{background:#fff3d8;color:#7a5a0a}
.hp-day-links a.new{background:#f0f2ee;color:#5e655f}
.hp-dev-label{display:block;font-weight:900;margin:10px 0 6px}
.hp-dev-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hp-dev-row input,.hp-dev-row select{min-height:42px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;color:var(--ink);font:inherit}
.hp-dev-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.hp-dev-grid a{display:block;text-decoration:none;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;padding:11px 12px;font-weight:850;text-align:center}
@media(max-width:520px){.hp-dev-grid{grid-template-columns:1fr}}

/* v7.10 개인 기록 */
.hp-sec-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hp-sec-row a{font-size:12px;color:#286e4e;text-decoration:none;font-weight:900}
.hp-rank-entry{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:-4px 0 18px;padding:12px 14px;border:1px solid #cfe2d5;border-radius:14px;background:#eef7f1;color:#215f40;text-decoration:none}
.hp-rank-entry>span:first-child{font-size:21px}.hp-rank-entry b{display:block;font-size:14px}.hp-rank-entry small{display:block;margin-top:2px;font-size:10px;color:#5d7465}.hp-rank-entry>span:last-child{font-size:23px;font-weight:800}
.hp-record-head{margin-bottom:18px}
.hp-record-head h1{font-size:28px;letter-spacing:-.045em;margin:0 0 8px}
.hp-record-head p{font-size:14px;line-height:1.65;color:var(--muted);margin:0}
.hp-record-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:20px}
.hp-record-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 12px;min-width:0}
.hp-record-card small{display:block;font-size:11px;color:var(--muted);font-weight:800;margin-bottom:5px}
.hp-record-card strong{display:block;font-size:20px;letter-spacing:-.03em;white-space:nowrap}
.hp-record-games{display:grid;gap:8px;margin-bottom:20px}
.hp-record-game{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 13px}
.hp-record-game b{display:block;font-size:14px;margin-bottom:3px}
.hp-record-game span{display:block;font-size:11px;color:var(--muted)}
.hp-record-game>strong{font-size:15px;color:var(--green);white-space:nowrap}
.hp-record-extra{font-size:12px;line-height:1.6;background:#f4f8f5;border:1px solid #dce9e0;border-radius:13px;padding:11px 12px;color:#4d574f}
.hp-record-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:15px}
.hp-record-day{min-width:0;border:1px solid var(--line);border-radius:9px;padding:7px 3px;text-align:center;background:#f0f2ee;color:#747a73}
.hp-record-day span{display:block;font-size:9px;margin-bottom:2px;white-space:nowrap}
.hp-record-day b{display:block;font-size:10px}
.hp-record-day.played{background:#fff3d8;color:#7a5a0a;border-color:#eedda9}
.hp-record-day.perfect{background:var(--soft);color:#286e4e;border-color:#cfe4d5}
.hp-record-actions{margin:10px 0 2px}
@media(max-width:480px){.hp-record-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-record-calendar{gap:4px}.hp-record-day{padding:6px 1px}.hp-record-day span{font-size:8px}}


/* v7.14 결과 공유 / 재방문 */
.hp-status.progress{background:#fff3d8;color:#7a5a0a}
.hp-mini-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;max-width:320px;margin:0 0 13px}
.hp-mini-board span{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border:1px solid #e2e4de;border-radius:8px;background:#f7f8f5;font-size:16px;line-height:1}
.hp-share-modal{max-width:430px}
.hp-share-preview{white-space:pre-wrap;word-break:keep-all;margin:0 0 10px;padding:14px;border:1px solid var(--line);border-radius:13px;background:#f7f8f5;color:#171a17;font:700 14px/1.7 "Pretendard","Noto Sans KR",system-ui,sans-serif}
.hp-share-note{font-size:12px;color:var(--muted);margin:0 0 14px}
.hp-resume-note{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:900;color:#7a5a0a;margin-bottom:8px}
@media(max-width:390px){.hp-mini-board{gap:4px}.hp-mini-board span{font-size:14px;border-radius:7px}.hp-share-preview{font-size:13px}}


/* v7.16 일일 루틴 */
.hp-routine{margin:0 0 18px;padding:15px;border:1px solid var(--line);border-radius:17px;background:#fff}
.hp-routine-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.hp-routine-title{font-size:15px;font-weight:950;letter-spacing:-.02em}
.hp-routine-copy{font-size:12px;line-height:1.55;color:var(--muted);margin-top:3px}
.hp-routine-streak{flex:none;text-align:right}.hp-routine-streak b{display:block;font-size:20px;line-height:1;color:var(--green)}.hp-routine-streak span{font-size:10px;color:var(--muted);font-weight:850}
.hp-routine-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:0 0 12px}
.hp-routine-day{min-width:0;text-align:center;border:1px solid var(--line);border-radius:9px;padding:6px 2px;background:#f5f6f3;color:#777e77}
.hp-routine-day small{display:block;font-size:9px;font-weight:800;margin-bottom:3px}.hp-routine-day b{display:block;font-size:10px}
.hp-routine-day.active{background:#fff3d8;border-color:#eedda9;color:#75570b}.hp-routine-day.complete{background:var(--soft);border-color:#cfe4d5;color:#286e4e}.hp-routine-day.today{box-shadow:inset 0 0 0 1px #2f8f62}
.hp-routine-actions{display:flex;gap:7px;flex-wrap:wrap}.hp-routine-actions .hp-btn{margin:0}
.hp-routine-yesterday{margin-top:9px;font-size:11px;line-height:1.5;color:#6a716a}.hp-routine-yesterday a{color:#286e4e;font-weight:900;text-decoration:none}
.hp-routine-countdown{margin-top:8px;font-size:11px;font-weight:850;color:#59605a}
.hp-record-routine{margin-bottom:20px;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff}.hp-record-routine h2{font-size:15px;margin:0 0 9px}.hp-record-routine p{font-size:12px;color:var(--muted);line-height:1.55;margin:7px 0 0}
@media(max-width:390px){.hp-routine{padding:13px}.hp-routine-top{gap:8px}.hp-routine-week{gap:3px}.hp-routine-day{padding:5px 1px}.hp-routine-day small{font-size:8px}.hp-routine-actions .hp-btn{font-size:12px;padding:9px 10px}}


/* v7.17 계정 */
.hp-account-hero{margin-bottom:16px}.hp-account-hero h1{font-size:25px;margin:0 0 7px}.hp-account-hero p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}
.hp-account-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:14px}.hp-account-card h2{font-size:16px;margin:0 0 10px}.hp-account-card p{font-size:12px;line-height:1.6;color:var(--muted);margin:7px 0}
.hp-auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}.hp-auth-tabs button{border:1px solid var(--line);background:#f5f6f3;border-radius:10px;padding:9px 5px;font-weight:900;color:#626a63}.hp-auth-tabs button.active{background:var(--soft);border-color:#bdd8c6;color:#246947}
.hp-form-row{margin:0 0 11px}.hp-form-row label{display:block;font-size:11px;font-weight:900;color:#5f675f;margin-bottom:5px}.hp-form-row input{width:100%;box-sizing:border-box;border:1px solid #ccd2cc;border-radius:11px;background:#fff;padding:11px 12px;font-size:16px;outline:none}.hp-form-row input:focus{border-color:#76aa8c;box-shadow:0 0 0 3px rgba(47,143,98,.1)}.hp-form-help{font-size:10px;color:#7b837c;line-height:1.5;margin-top:4px}
.hp-auth-msg{margin:10px 0 0;padding:10px 11px;border-radius:10px;background:#f4f5f2;font-size:11px;line-height:1.55}.hp-auth-msg.ok{background:#eaf6ee;color:#286e4e}.hp-auth-msg.err{background:#fff0ed;color:#9b4335}
.hp-recovery{border:1px dashed #b9c8bc;background:#f8faf7;border-radius:12px;padding:12px;margin-top:12px}.hp-recovery code{display:block;word-break:break-all;font-size:13px;line-height:1.6;margin:7px 0;color:#26362c}.hp-recovery strong{font-size:12px}.hp-account-id{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.hp-account-id b{font-size:18px}.hp-account-id span{font-size:11px;color:var(--muted)}
.hp-account-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.hp-account-actions .hp-btn{margin:0}.hp-account-danger{border-top:1px solid var(--line);padding-top:13px;margin-top:15px}.hp-account-danger h3{font-size:13px;margin:0 0 7px;color:#91483e}.hp-login-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#eef5f0;color:#306949;font-size:10px;font-weight:900;text-decoration:none}
@media(max-width:390px){.hp-account-card{padding:14px}.hp-auth-tabs button{font-size:11px}.hp-account-id{align-items:flex-start;flex-direction:column}.hp-account-actions .hp-btn{font-size:12px}}


/* v7.17.1 Google + simple account */
.hp-auth-choice{display:grid;gap:12px}.hp-google-card{background:#fbfcfa;border:1px solid #dfe5df;border-radius:14px;padding:13px}.hp-google-card h2{margin:0 0 6px;font-size:16px}.hp-google-slot{min-height:42px;display:flex;align-items:center;justify-content:flex-start;margin-top:10px}.hp-auth-or{display:flex;align-items:center;gap:9px;color:#909790;font-size:11px;font-weight:800}.hp-auth-or:before,.hp-auth-or:after{content:"";height:1px;background:var(--line);flex:1}.hp-ranking-note{display:flex;gap:8px;align-items:flex-start;background:#f2f7f3;border:1px solid #d7e7db;border-radius:11px;padding:10px 11px;font-size:11px;line-height:1.55;color:#476152}.hp-ranking-note b{color:#266745}.hp-provider-pill{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#f0f2ef;color:#697169;font-size:9px;font-weight:900;margin-left:5px}.hp-simple-signup .hp-form-row{margin-bottom:9px}.hp-google-disabled{font-size:11px;color:#8b5b4d;background:#fff2ed;padding:9px 10px;border-radius:10px}.hp-account-method{font-size:10px;color:var(--muted);font-weight:800;margin-top:3px}


/* v7.20 RC · 공개 랭킹 유지 */
.hp-rank-hero{margin-bottom:15px}.hp-rank-hero h1{margin:0 0 7px;font-size:25px}.hp-rank-hero p{margin:0;color:var(--muted);font-size:12px;line-height:1.65}
.hp-rank-date{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 13px}.hp-rank-date button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 11px;font-weight:900}.hp-rank-date strong{min-width:112px;text-align:center;font-size:14px}
.hp-rank-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;margin-bottom:14px}.hp-rank-card h2{font-size:16px;margin:0 0 5px}.hp-rank-card>p{font-size:11px;line-height:1.55;color:var(--muted);margin:0 0 11px}
.hp-rank-games{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:10px}.hp-rank-games button{min-width:0;border:1px solid var(--line);background:#f6f7f4;border-radius:10px;padding:8px 3px;font-size:10px;font-weight:900;color:#5c655d}.hp-rank-games button.active{background:var(--soft);border-color:#bdd8c6;color:#256a48}
.hp-rank-mode{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 10px}.hp-rank-mode button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:900}.hp-rank-mode button.active{background:#243c2f;color:#fff;border-color:#243c2f}
.hp-rank-rule{font-size:10px;color:#737b74;margin:0 0 8px}.hp-rank-list{display:grid;gap:6px}.hp-rank-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #e5e7e1;border-radius:11px;padding:9px 10px;background:#fbfcfa}.hp-rank-pos{font-weight:950;font-size:13px;text-align:center}.hp-rank-name{font-weight:900;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hp-rank-metric{font-size:10px;color:#687069;text-align:right;white-space:nowrap}.hp-rank-empty{padding:18px 8px;text-align:center;color:var(--muted);font-size:12px}
.hp-rank-policy{background:#f2f7f3;border:1px solid #d7e7db;border-radius:13px;padding:11px 12px;font-size:11px;line-height:1.6;color:#496153;margin:0 0 14px}.hp-rank-policy b{color:#246947}
.hp-admin-rank-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:9px 0}.hp-admin-rank-row:last-child{border-bottom:0}.hp-admin-rank-meta{font-size:10px;color:var(--muted);margin-top:2px}.hp-admin-rank-row button{margin:0}
@media(max-width:390px){.hp-rank-games{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-rank-row{grid-template-columns:30px minmax(0,1fr) auto;padding:8px}.hp-rank-metric{font-size:9px;max-width:120px;overflow:hidden;text-overflow:ellipsis}}
