
:root {
  --hn-gold: rgba(201, 162, 74, .85);
  --hn-gold-solid: #c9a24a;
  --hn-glass: linear-gradient(180deg, rgba(40, 50, 72, .74), rgba(16, 22, 36, .78));
  --hn-panel: linear-gradient(180deg, #1b2540, #0f1729);
  --hn-ink: #fbf1d6;
  --hn-ink-soft: #c9bf9c;
  --hn-serif: "Noto Serif KR", "Batang", serif;
  --hn-sans: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}


.hn-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hn-gold);
  background: var(--hn-glass); color: var(--hn-ink); font: 600 13.5px/1 var(--hn-sans); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .26), inset 0 0 0 1px rgba(255, 255, 255, .07); cursor: pointer;
  transition: background .15s, border-color .15s, transform .08s;
}
.hn-btn:hover, .hn-btn:focus-visible { border-color: #e6c778; background: linear-gradient(180deg, rgba(54, 66, 94, .82), rgba(22, 30, 48, .84)); outline: none; }
.hn-btn:active { transform: scale(.97); }
.hn-btn.gold { background: linear-gradient(180deg, #e2c27a, #b88f36); color: #2b2008; border-color: #f0d890; }
.hn-btn.gold:hover, .hn-btn.gold:focus-visible { background: linear-gradient(180deg, #ecd08e, #c79d40); }
@media (pointer: coarse) { .hn-btn { min-height: 44px; } }


.hgt-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 12px; background: var(--hn-panel); border-bottom: 1px solid var(--hn-gold); color: var(--hn-ink); }
.hgt-head .t { flex: 1; min-width: 0; text-align: center; font: 700 15px/1.2 var(--hn-serif); letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hgt-head .snd { margin-left: auto; }


.hgt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--hn-gold); background: rgba(20, 28, 44, .55); color: var(--hn-ink); font: 600 12px/1.3 var(--hn-sans); white-space: nowrap; }
.hgt-chip b { color: #f0d890; }


.hgt-card {
  width: min(360px, calc(100vw - 32px)); padding: 22px 20px 18px; text-align: center; color: var(--hn-ink);
  background: var(--hn-panel); border: 1px solid var(--hn-gold); border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06); font-family: var(--hn-sans);
}
.hgt-card .k { font: 600 11.5px/1 var(--hn-sans); letter-spacing: .2em; color: var(--hn-ink-soft); margin-bottom: 8px; }
.hgt-card h2 { margin: 0 0 12px; font: 700 21px/1.3 var(--hn-serif); letter-spacing: .04em; color: #f6e7b8; word-break: keep-all; }
.hgt-card .score { font: 800 44px/1.1 var(--hn-serif); color: #fff6dc; }
.hgt-card .score small { font: 600 16px var(--hn-sans); color: var(--hn-ink-soft); margin-left: 4px; }
.hgt-card .lines { margin: 12px 0 4px; display: grid; gap: 4px; font-size: 13.5px; color: var(--hn-ink-soft); word-break: keep-all; }
.hgt-card .lines b { color: #f0d890; font-weight: 700; }
.hgt-card .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.hgt-card .acts .hn-btn { padding: 0 6px; width: 100%; font-size: 13px; }
.hgt-card .acts .hn-btn.gold { grid-column: 1 / -1; min-height: 46px; font-size: 15px; }
@media (max-width: 340px) { .hgt-card .acts { grid-template-columns: 1fr; } }


.hgt-join {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin-top: 12px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--hn-gold); color: #f6e7b8; font-family: var(--hn-sans); text-align: center; cursor: pointer; word-break: keep-all;
  background: linear-gradient(100deg, rgba(201, 162, 74, .16) 0%, rgba(255, 226, 140, .42) 45%, rgba(201, 162, 74, .16) 90%) 0 0 / 220% 100%, #1a2238;
  animation: hgt-shine 4.5s ease-in-out infinite;
}
.hgt-join .a { font: 700 13.5px/1.35 var(--hn-sans); }
.hgt-join .b { font: 500 11.5px/1.35 var(--hn-sans); color: var(--hn-ink-soft); }
.hgt-join:hover, .hgt-join:focus-visible { border-color: #f0d890; outline: none; }
@keyframes hgt-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hgt-join { animation: none; } }
.hgt-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; background: #0f1729; border: 1px solid var(--hn-gold); color: var(--hn-ink); font: 600 13.5px var(--hn-sans); text-align: center; }

.pv-box.hgt-hallbox { background: var(--hn-panel); border: 1px solid var(--hn-gold); color: var(--hn-ink); width: min(420px, 100%); }
.hgt-hallbox .hgt-head { border-radius: 16px 16px 0 0; }
.hgt-hallbody { padding: 14px 14px 16px; }
.hgt-who { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }


.hgt-rank { width: 100%; color: var(--hn-ink); font-family: var(--hn-sans); }
.hgt-rank .basis { margin: 0 0 8px; font-size: 12.5px; color: var(--hn-ink-soft); }
.hgt-rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hgt-rank li { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(201, 162, 74, .25); font-size: 14px; }
.hgt-rank li:nth-child(1) { border-color: var(--hn-gold); background: rgba(201, 162, 74, .14); }
.hgt-rank .n { font: 700 14px var(--hn-serif); color: #f0d890; text-align: center; }
.hgt-rank .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hgt-rank .sc { font-weight: 700; color: #fff6dc; }
.hgt-rank .dt { font-size: 11.5px; color: var(--hn-ink-soft); }
.hgt-rank .empty { padding: 14px 8px; text-align: center; color: var(--hn-ink-soft); font-size: 13.5px; word-break: keep-all; }
