.hgs-app { display: flex; flex-direction: column; gap: 16px; color: #f7f1e8; }
.hgs-app [hidden] { display: none !important; }
.hgs-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #3d332c; }
.hgs-modes, .hgs-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hgs-label { font-size: 12px; font-weight: 600; color: #b8a898; text-transform: uppercase; letter-spacing: 0.04em; }
.hgs-pill { min-height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid #4a3f37; background: #26201c; color: #f7f1e8; font-size: 14px; font-weight: 600; cursor: pointer; }
.hgs-pill:hover { border-color: #e0a03a; color: #e0a03a; }
.hgs-pill.is-active { background: #c2562f; border-color: #c2562f; color: #ffffff; }
.hgs-select { height: 40px; padding: 0 12px; line-height: 38px; border-radius: 12px; border: 1px solid #4a3f37; background: #26201c; color: #f7f1e8; font-size: 14px; font-family: inherit; vertical-align: middle; }
.hgs-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hgs-stat { background: #26201c; border: 1px solid #3d332c; border-radius: 12px; padding: 12px 16px; }
.hgs-stat-k { display: block; font-size: 12px; color: #b8a898; }
.hgs-stat-v { display: block; font-size: 22px; font-weight: 700; color: #e0a03a; font-family: 'Fraunces', Georgia, serif; }
.hgs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hgs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hgs-btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid #4a3f37; background: #26201c; color: #f7f1e8; font-size: 14px; font-weight: 600; cursor: pointer; }
.hgs-btn:hover { border-color: #e0a03a; color: #e0a03a; }
.hgs-btn-primary { background: #c2562f; border-color: #c2562f; color: #ffffff; }
.hgs-btn-primary:hover { background: #a64422; border-color: #a64422; color: #ffffff; }
.hgs-btn-gold { background: #e0a03a; border-color: #e0a03a; color: #1b1714; }
.hgs-btn-gold:hover { background: #cc8f2c; border-color: #cc8f2c; color: #1b1714; }
.hgs-panel { background: #26201c; border: 1px solid #3d332c; border-radius: 12px; padding: 16px; }
.hgs-panel-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #e0a03a; font-family: 'Fraunces', Georgia, serif; }
.hgs-textarea, .hgs-input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #4a3f37; background: #1b1714; color: #f7f1e8; font-family: inherit; font-size: 14px; }
.hgs-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.hgs-notice { font-size: 14px; color: #e0a03a; min-height: 20px; }
.hgs-roster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hgs-district-card { background: #26201c; border: 1px solid #3d332c; border-radius: 12px; padding: 12px; }
.hgs-district-title { font-size: 12px; font-weight: 600; color: #e0a03a; margin-bottom: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.hgs-tribute-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.hgs-tribute-row:hover { background: #1b1714; border-color: #4a3f37; }
.hgs-avatar { width: 32px; height: 32px; border-radius: 8px; background: #3d332c; color: #f7f1e8; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.hgs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hgs-tribute-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hgs-stage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hgs-phase-title { margin: 0; font-size: 28px; color: #f7f1e8; font-family: 'Fraunces', Georgia, serif; }
.hgs-phase-sub { font-size: 14px; color: #b8a898; }
.hgs-events { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.hgs-event { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #1b1714; border: 1px solid #3d332c; }
.hgs-event.is-fatal { border-color: #c2562f; background: #261815; }
.hgs-event.is-arena { border-color: #e0a03a; background: #262014; }
.hgs-event-avatars { display: flex; gap: 6px; flex-shrink: 0; }
.hgs-event-text { font-size: 15px; line-height: 1.5; color: #f7f1e8; }
.hgs-badge-fatal { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 8px; background: #c2562f; color: #ffffff; font-size: 12px; font-weight: 600; }
.hgs-victor-box { text-align: center; padding: 24px 16px; background: #1b1714; border: 2px solid #e0a03a; border-radius: 12px; margin-bottom: 16px; }
.hgs-victor-crown { font-size: 14px; font-weight: 600; color: #e0a03a; letter-spacing: 0.06em; text-transform: uppercase; }
.hgs-victor-name { font-size: 36px; margin: 8px 0; color: #f7f1e8; font-family: 'Fraunces', Georgia, serif; }
.hgs-victor-meta { color: #b8a898; font-size: 16px; margin-bottom: 16px; }
.hgs-status-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 320px; overflow-y: auto; }
.hgs-status-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; background: #1b1714; border: 1px solid #3d332c; font-size: 14px; }
.hgs-status-item.is-dead { opacity: 0.55; }
.hgs-edit-modal { background: #1b1714; border: 1px solid #e0a03a; border-radius: 12px; padding: 16px; margin-top: 12px; }
.hgs-custom-list { display: grid; gap: 8px; margin-top: 12px; }
.hgs-custom-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: #1b1714; border-radius: 8px; font-size: 14px; }
@media (max-width: 900px) {
  .hgs-roster-grid { grid-template-columns: repeat(2, 1fr); }
  .hgs-hud { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hgs-roster-grid, .hgs-status-list, .hgs-form-grid { grid-template-columns: 1fr; }
  .hgs-actions { width: 100%; }
  .hgs-btn { flex: 1 1 auto; }
  .hgs-phase-title { font-size: 22px; }
  .hgs-victor-name { font-size: 28px; }
}