/* Shared Hunter Ops skin for the panels mounted below the portal. */
:root {
  color-scheme: dark;
  --hp-bg: #0c1210;
  --hp-surface: #14201a;
  --hp-surface-2: #18271f;
  --hp-fg: #e9efe5;
  --hp-muted: #93a497;
  --hp-line: rgba(210, 226, 210, .13);
  --hp-line-strong: rgba(210, 226, 210, .24);
  --hp-accent: #a8d88f;
  --hp-accent-deep: #5f9e67;
  --hp-gold: #d9bb7b;
  --hp-danger: #e07d72;
  --hp-blue: #83b9d1;
  --hp-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

/* the common bar on every mounted panel */
.hpbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2147483647;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 26px;
  background: rgba(12, 18, 16, .94);
  border-bottom: 1px solid var(--hp-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  color: var(--hp-fg) !important;
  font: 13px/1.4 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important;
  backdrop-filter: blur(14px);
}
.hpbrand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--hp-fg) !important;
  text-decoration: none !important;
}
.hpmark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 216, 143, .52);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(168, 216, 143, .12), rgba(168, 216, 143, .02));
  color: var(--hp-accent) !important;
  line-height: 0;
}
.hpmark svg { width: 26px; height: 26px; display: block; }
.hpcopy { display: flex; flex-direction: column; gap: 0; line-height: 1.25; }
.hpcopy strong { font-size: 13px; letter-spacing: .14em; }
.hpcopy small { color: var(--hp-muted) !important; font-size: 9px; letter-spacing: .16em; }
.hpnav { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.hpnav a {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--hp-muted) !important;
  text-decoration: none !important;
  font-size: 12px !important;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.hpnav a:hover { color: var(--hp-fg) !important; background: rgba(255, 255, 255, .04); }
.hpnav a.active { color: var(--hp-accent) !important; background: rgba(168, 216, 143, .09); }

body.hp-hub,
body.hp-mh3u,
body.hp-ppsspp {
  background-color: var(--hp-bg) !important;
  color: var(--hp-fg) !important;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
body.hp-hub { padding-top: 82px !important; }
body.hp-mh3u { padding-top: 82px !important; }
body.hp-ppsspp { padding-top: 82px !important; }

/* ---------- MHGU Hub ---------- */
:root {
  --paper: #14201a;
  --paper-2: #18271f;
  --ink: #e9efe5;
  --muted: #93a497;
  --line: rgba(210, 226, 210, .13);
  --line-strong: rgba(210, 226, 210, .24);
  --forest: #a8d88f;
  --forest-2: #0c1210;
  --forest-3: #1e3026;
  --gold: #d9bb7b;
  --gold-soft: #e6d3a5;
  --red: #e07d72;
  --green: #a8d88f;
  --shadow: 0 18px 46px rgba(0, 0, 0, .28);
  --radius: 16px;
  --bg: #0c1210;
  --card: #14201a;
  --txt: #e9efe5;
  --dim: #93a497;
  --ok: #a8d88f;
  --warn: #d9bb7b;
  --bad: #e07d72;
  --acc: #a8d88f;
}
body.hp-hub {
  background:
    radial-gradient(1000px 600px at 78% -10%, rgba(111, 154, 91, .13), transparent 62%),
    radial-gradient(900px 600px at 8% 110%, rgba(116, 87, 45, .1), transparent 60%),
    var(--hp-bg) !important;
  color: var(--hp-fg) !important;
}
body.hp-hub::before { opacity: .05 !important; mix-blend-mode: normal !important; }
body.hp-hub .page { margin-top: 22px !important; }
body.hp-hub .masthead {
  background: radial-gradient(700px 180px at 8% 0%, rgba(168, 216, 143, .12), transparent 65%),
              linear-gradient(115deg, #101a15, #14201a 52%, #1b2b22) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--hp-shadow), inset 0 0 0 4px rgba(0, 0, 0, .12) !important;
  color: var(--hp-fg) !important;
}
body.hp-hub .masthead::after { border-color: rgba(168, 216, 143, .22) !important; }
body.hp-hub .crest {
  background: linear-gradient(145deg, #d9bb7b, #9b793f 65%, #6f552d) !important;
  color: #14201a !important;
}
body.hp-hub .crest::before, body.hp-hub .crest i { border-color: rgba(217, 187, 123, .5) !important; }
body.hp-hub h1 { color: var(--hp-fg) !important; font-family: "Noto Serif SC", Georgia, serif !important; }
body.hp-hub .tagline { color: var(--hp-muted) !important; }
body.hp-hub .eyebrow { color: var(--hp-gold) !important; opacity: 1 !important; }
body.hp-hub .langs button {
  background: rgba(255, 255, 255, .03) !important;
  border-color: var(--hp-line-strong) !important;
  color: var(--hp-muted) !important;
}
body.hp-hub .langs button.active { background: var(--hp-gold) !important; color: #172018 !important; border-color: var(--hp-gold) !important; }
body.hp-hub .stat {
  background: linear-gradient(150deg, rgba(24, 39, 31, .96), rgba(16, 26, 21, .94)) !important;
  border-color: var(--hp-line) !important;
  box-shadow: var(--hp-shadow) !important;
}
body.hp-hub .stat::before { background: linear-gradient(var(--hp-accent), var(--hp-gold)) !important; }
body.hp-hub .stat-value { color: var(--hp-fg) !important; }
body.hp-hub .stat-label { color: var(--hp-muted) !important; }
body.hp-hub .board {
  background: rgba(20, 32, 26, .88) !important;
  border-color: var(--hp-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--hp-shadow) !important;
  backdrop-filter: blur(6px) !important;
}
body.hp-hub .board-head h2 { color: var(--hp-fg) !important; font-family: "Noto Serif SC", Georgia, serif !important; }
body.hp-hub .board-head .eyebrow { color: var(--hp-gold) !important; }
body.hp-hub .updated { color: var(--hp-muted) !important; }
body.hp-hub .search-table th { color: var(--hp-gold) !important; border-color: var(--hp-line-strong) !important; }
body.hp-hub .search-table td { color: var(--hp-fg) !important; border-color: var(--hp-line) !important; }
body.hp-hub .search-age { color: var(--hp-muted) !important; }
body.hp-hub .room {
  background: linear-gradient(160deg, rgba(24, 39, 31, .97), rgba(16, 26, 21, .96)) !important;
  border-color: var(--hp-line) !important;
  box-shadow: var(--hp-shadow) !important;
}
body.hp-hub .room::before { background: linear-gradient(var(--hp-accent), var(--hp-gold)) !important; }
body.hp-hub .room:hover { border-color: var(--hp-line-strong) !important; box-shadow: 0 16px 34px rgba(0, 0, 0, .3) !important; }
body.hp-hub .room-kicker { color: var(--hp-muted) !important; }
body.hp-hub .room h3 { color: var(--hp-fg) !important; font-family: "Noto Serif SC", Georgia, serif !important; }
body.hp-hub .badge { background: rgba(168, 216, 143, .1) !important; border-color: var(--hp-line) !important; color: var(--hp-accent) !important; }
body.hp-hub .badge.key { background: rgba(217, 187, 123, .12) !important; color: var(--hp-gold) !important; }
body.hp-hub .badge.phone { background: rgba(224, 125, 114, .12) !important; color: var(--hp-danger) !important; }
body.hp-hub .quest { background: rgba(255, 255, 255, .035) !important; border-color: var(--hp-line) !important; }
body.hp-hub .field-label { color: var(--hp-muted) !important; }
body.hp-hub .quest strong { color: var(--hp-fg) !important; }
body.hp-hub .quest-goal, body.hp-hub .quest-time { color: var(--hp-muted) !important; }
body.hp-hub .quest-rank { color: var(--hp-gold) !important; }
body.hp-hub .count { color: var(--hp-fg) !important; }
body.hp-hub .count span { color: var(--hp-muted) !important; }
body.hp-hub .hunter { background: rgba(168, 216, 143, .1) !important; color: #cde6c1 !important; }
body.hp-hub .hunter.empty-name { background: transparent !important; color: var(--hp-muted) !important; }
body.hp-hub .pass { color: var(--hp-muted) !important; }
body.hp-hub .pass:not(.none) { color: var(--hp-danger) !important; }
body.hp-hub .state.open { background: rgba(168, 216, 143, .12) !important; color: var(--hp-accent) !important; }
body.hp-hub .state.waiting { background: rgba(217, 187, 123, .14) !important; color: var(--hp-gold) !important; }
body.hp-hub .state.full { background: rgba(224, 125, 114, .12) !important; color: var(--hp-danger) !important; }
body.hp-hub .empty { color: var(--hp-muted) !important; }
body.hp-hub .empty-mark { color: var(--hp-gold) !important; }
body.hp-hub .spinner { border-color: var(--hp-line) !important; border-top-color: var(--hp-gold) !important; }
body.hp-hub footer { color: var(--hp-muted) !important; }
body.hp-hub footer a { color: var(--hp-accent) !important; border-color: var(--hp-line) !important; }

/* ---------- MH3U Revival ---------- */
body.hp-mh3u {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(131, 185, 209, .08), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(168, 216, 143, .06), transparent 62%),
    var(--hp-bg) !important;
  color: var(--hp-fg) !important;
  font: 14px/1.55 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 82px 20px 40px !important;
}
body.hp-mh3u .toprow { align-items: flex-start !important; margin-bottom: 18px !important; }
body.hp-mh3u h1 { color: var(--hp-fg) !important; font-family: "Noto Serif SC", Georgia, serif !important; font-size: 25px !important; letter-spacing: -.02em; }
body.hp-mh3u .sub { color: var(--hp-muted) !important; }
body.hp-mh3u .dot { background: var(--hp-danger) !important; }
body.hp-mh3u .dot.ok { background: var(--hp-accent) !important; box-shadow: 0 0 0 4px rgba(168, 216, 143, .08); }
body.hp-mh3u .cards { gap: 10px !important; margin-bottom: 14px !important; }
body.hp-mh3u .card, body.hp-mh3u section {
  background: linear-gradient(150deg, rgba(24, 39, 31, .96), rgba(16, 26, 21, .94)) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--hp-shadow) !important;
  padding: 16px !important;
}
body.hp-mh3u .card .k { color: var(--hp-muted) !important; font-size: 10px !important; letter-spacing: .12em; text-transform: uppercase; }
body.hp-mh3u .card .v { color: var(--hp-fg) !important; font-size: 24px !important; letter-spacing: -.02em; }
body.hp-mh3u .card .v small { color: var(--hp-muted) !important; }
body.hp-mh3u .grid { gap: 14px !important; }
body.hp-mh3u h2 { color: var(--hp-accent) !important; font-size: 11px !important; letter-spacing: .12em; text-transform: uppercase; }
body.hp-mh3u table { font-size: 12px !important; }
body.hp-mh3u th { color: var(--hp-muted) !important; border-color: var(--hp-line) !important; font-size: 10px !important; letter-spacing: .06em; }
body.hp-mh3u td { color: #d5e2d4 !important; border-color: var(--hp-line) !important; }
body.hp-mh3u .empty { color: var(--hp-muted) !important; }
body.hp-mh3u .evlog { color: #a9bba8 !important; }
body.hp-mh3u .ev .d, body.hp-mh3u .ev .t { color: var(--hp-muted) !important; }
body.hp-mh3u .ev .join { color: var(--hp-accent) !important; }
body.hp-mh3u .ev .left { color: var(--hp-danger) !important; }
body.hp-mh3u .ev .room { color: var(--hp-blue) !important; }
body.hp-mh3u .ev .port { color: var(--hp-gold) !important; }
body.hp-mh3u .badge { background: rgba(255, 255, 255, .05) !important; color: var(--hp-muted) !important; border: 1px solid var(--hp-line) !important; }
body.hp-mh3u .badge.host { background: rgba(217, 187, 123, .12) !important; color: var(--hp-gold) !important; }
body.hp-mh3u .badge.full { background: rgba(224, 125, 114, .12) !important; color: var(--hp-danger) !important; }
body.hp-mh3u select {
  background: var(--hp-surface) !important;
  color: var(--hp-fg) !important;
  border: 1px solid var(--hp-line-strong) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
}

/* ---------- PPSSPP / aemu relay ---------- */
body.hp-ppsspp .sponsor-section { display: none !important; }
body.hp-ppsspp {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(168, 216, 143, .08), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(116, 87, 45, .08), transparent 62%),
    var(--hp-bg) !important;
  color: var(--hp-fg) !important;
  font: 14px/1.55 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important;
  min-height: 100vh !important;
  padding: 82px 20px 40px !important;
  display: block !important;
}
body.hp-ppsspp .handheld-container {
  max-width: 1180px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.hp-ppsspp .handheld-container::before { display: none !important; }
body.hp-ppsspp .screen-frame {
  background: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.hp-ppsspp .screen {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
body.hp-ppsspp .screen::before, body.hp-ppsspp .screen::after { display: none !important; }
body.hp-ppsspp .headline {
  border-bottom: 1px solid var(--hp-line) !important;
  font-family: "Noto Serif SC", Georgia, serif !important;
  color: var(--hp-fg) !important;
  font-size: 30px !important;
  letter-spacing: -.03em !important;
  text-align: left !important;
  margin: 6px 0 18px !important;
  text-shadow: none !important;
}
body.hp-ppsspp .notice-board,
body.hp-ppsspp .sponsor-section,
body.hp-ppsspp .gametitle,
body.hp-ppsspp .status-bar {
  background: linear-gradient(150deg, rgba(24, 39, 31, .96), rgba(16, 26, 21, .94)) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--hp-shadow) !important;
  padding: 17px !important;
  margin-bottom: 12px !important;
}
body.hp-ppsspp .notice-header, body.hp-ppsspp .sponsor-header,
body.hp-ppsspp .game-name, body.hp-ppsspp .usercount {
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif !important;
  color: var(--hp-accent) !important;
  letter-spacing: .03em !important;
  text-shadow: none !important;
}
body.hp-ppsspp .notice-header, body.hp-ppsspp .sponsor-header {
  font-size: 12px !important;
  border-bottom: 1px solid var(--hp-line) !important;
}
body.hp-ppsspp .notice-content { color: #cbdcc8 !important; line-height: 1.9 !important; }
body.hp-ppsspp .notice-content p { margin: 2px 0 !important; }
body.hp-ppsspp .sponsor-header span { color: var(--hp-gold) !important; }
body.hp-ppsspp .sponsor-link {
  background: rgba(217, 187, 123, .08) !important;
  border: 1px solid rgba(217, 187, 123, .28) !important;
  border-radius: 8px !important;
  color: var(--hp-gold) !important;
  font: 12px/1.4 "Noto Sans SC", system-ui, sans-serif !important;
  padding: 6px 10px !important;
}
body.hp-ppsspp .sponsor-loading, body.hp-ppsspp .sponsor-empty { color: var(--hp-muted) !important; }
body.hp-ppsspp .game-header { background: rgba(255, 255, 255, .035) !important; border: 1px solid var(--hp-line) !important; border-radius: 10px !important; color: var(--hp-fg) !important; }
body.hp-ppsspp .game-ids { color: var(--hp-muted) !important; font-family: system-ui, sans-serif !important; }
body.hp-ppsspp .usercount { background: rgba(168, 216, 143, .1) !important; border: 1px solid rgba(168, 216, 143, .2) !important; border-radius: 8px !important; }
body.hp-ppsspp .groups th, body.hp-ppsspp .players-table th, body.hp-ppsspp .sponsor-table th {
  background: rgba(255, 255, 255, .035) !important;
  color: var(--hp-muted) !important;
  font-family: "Noto Sans SC", system-ui, sans-serif !important;
  font-size: 10px !important;
  letter-spacing: .06em !important;
}
body.hp-ppsspp .groups td, body.hp-ppsspp .players-table td, body.hp-ppsspp .sponsor-table td {
  color: #d5e2d4 !important;
  border-color: var(--hp-line) !important;
}
body.hp-ppsspp .status-bar { color: var(--hp-muted) !important; font-size: 12px !important; }
body.hp-ppsspp .status-dot { background: var(--hp-accent) !important; box-shadow: 0 0 0 4px rgba(168, 216, 143, .08) !important; }
body.hp-ppsspp .footer { display: none !important; }

@media (max-width: 760px) {
  .hpbar { height: 58px; padding: 0 14px; gap: 10px; }
  .hpmark { width: 30px; height: 30px; flex-basis: 30px; font-size: 15px !important; }
  .hpcopy strong { font-size: 12px; }
  .hpcopy small { display: none; }
  .hpnav { gap: 1px; }
  .hpnav a { padding: 6px 7px; font-size: 11px !important; }
  body.hp-hub, body.hp-mh3u, body.hp-ppsspp { padding-top: 72px !important; }
  body.hp-mh3u, body.hp-ppsspp { padding-left: 14px !important; padding-right: 14px !important; }
}


/* ---- Hub admin page: force the portal's dark palette ---- */
body.hp-hub {
  color-scheme: dark !important;
  background: #0c1210 !important;
  color: #e9efe5 !important;
}
body.hp-hub header {
  background: linear-gradient(115deg, #101a15, #14201a 55%, #18271f) !important;
  border-bottom-color: rgba(217, 187, 123, .55) !important;
  color: #e9efe5 !important;
}
body.hp-hub h1, body.hp-hub h2 { color: #e9efe5 !important; }
body.hp-hub h2 { margin-top: 30px !important; }
body.hp-hub a { color: #a8d88f !important; }
body.hp-hub table {
  background: rgba(20, 32, 26, .92) !important;
  border-color: rgba(210, 226, 210, .13) !important;
  box-shadow: none !important;
}
body.hp-hub th {
  background: rgba(168, 216, 143, .07) !important;
  color: #93a497 !important;
}
body.hp-hub td, body.hp-hub th { border-color: rgba(210, 226, 210, .12) !important; }
body.hp-hub td { color: #e9efe5 !important; }
body.hp-hub small, body.hp-hub p { color: #93a497 !important; }
body.hp-hub code { color: #a8d88f !important; }
body.hp-hub pre {
  background: rgba(5, 9, 7, .6) !important;
  border-color: rgba(210, 226, 210, .13) !important;
  color: #b9c9b8 !important;
}
body.hp-hub .stat {
  background: rgba(20, 32, 26, .92) !important;
  border-color: rgba(210, 226, 210, .13) !important;
  box-shadow: none !important;
}
body.hp-hub .stat b { color: #e9efe5 !important; }
body.hp-hub .settings label {
  background: rgba(20, 32, 26, .92) !important;
  border-color: rgba(210, 226, 210, .13) !important;
  color: #e9efe5 !important;
}
body.hp-hub input {
  background: rgba(8, 14, 10, .6) !important;
  border-color: rgba(210, 226, 210, .18) !important;
  color: #e9efe5 !important;
}
body.hp-hub button {
  background: #a8d88f !important;
  border-color: #a8d88f !important;
  color: #0c1210 !important;
}
body.hp-hub button:hover { background: #bce8a5 !important; }
body.hp-hub details.lang summary {
  border-color: rgba(168, 216, 143, .35) !important;
  background: rgba(168, 216, 143, .06) !important;
  color: #e9efe5 !important;
}
body.hp-hub details.lang .menu {
  background: #14201a !important;
  border-color: rgba(210, 226, 210, .13) !important;
}
body.hp-hub details.lang .menu a { color: #e9efe5 !important; }
body.hp-hub details.lang .menu a:hover, body.hp-hub details.lang .menu a.cur { background: rgba(168, 216, 143, .1) !important; }


/* ---- PPSSPP page cleanup ---- */
body.hp-ppsspp {
  background: #0c1210 !important;
  color: #e9efe5 !important;
}
body.hp-ppsspp .navigation { display: none !important; }
body.hp-ppsspp .headline {
  font: 600 clamp(22px, 3vw, 34px)/1.4 "Noto Sans SC", "PingFang SC", system-ui, sans-serif !important;
  color: #e9efe5 !important;
  padding: 26px 0 18px !important;
  border-bottom: 1px solid rgba(210, 226, 210, .13) !important;
  margin-bottom: 18px !important;
}
body.hp-ppsspp .headline a { color: #a8d88f !important; text-decoration: none !important; }
body.hp-ppsspp .headline b { color: #a8d88f !important; font-weight: 650 !important; }
.pp-empty { padding: 30px 0; color: #93a497; font-size: 13px; }
body.hp-ppsspp .gametitle {
  background: rgba(20, 32, 26, .9) !important;
  border: 1px solid rgba(210, 226, 210, .13) !important;
  border-radius: 12px !important;
  color: #e9efe5 !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
}
body.hp-ppsspp .splitter td, body.hp-ppsspp .groups th, body.hp-ppsspp .groups td {
  color: #d5e2d4 !important;
  border-color: rgba(210, 226, 210, .12) !important;
  background: transparent !important;
}
