.menu-nav [data-hub-open] { position: relative; }
.hub-indicator { display: inline-block; vertical-align: middle; width: 7px; height: 7px; border-radius: 50%; background: #f6c561; box-shadow: 0 0 7px #f6a73d; }
.hub-dialog { width: min(1050px, calc(100vw - 24px)); max-height: calc(100dvh - 22px); padding: clamp(16px,3vw,34px); }
.hub-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hub-heading h2 { margin: 0 auto 0 0; font: 700 clamp(20px,4vw,34px)/1.15 Georgia, serif; color: #f0d091; }
.hub-heading form { margin: 0; }
.hub-balance, .hub-price { display: inline-flex; align-items: center; gap: 5px; color: #f2d581; white-space: nowrap; }
.hub-price img,.hub-balance img { width: 22px; height: 22px; object-fit: contain; }
.hub-balance { font: bold 16px Georgia, serif; }
.hub-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #896538; }
.hub-tabs button { min-height: 37px; padding: 5px 10px; border: 1px solid #725334; background: #2f2319; color: #e0c69a; font: bold 13px Georgia, serif; }
.hub-tabs button[aria-pressed="true"],.hub-tabs button:hover { border-color: #d7ae5f; background: #523521; color: #ffe0a0; }
.hub-content { font: 13px/1.45 'Trebuchet MS', sans-serif; color: #dbc8a5; max-height: min(680px,67dvh); overflow: auto; scrollbar-gutter: stable; padding: 0 6px 8px 1px; }
.hub-content h3 { font: 700 17px/1.2 Georgia,serif; color: #efce8d; }
.hub-content > p,.hub-deadline { margin: 7px 0 13px; }
.hub-deadline time { font-weight: bold; color: #ffe092; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: 12px; }
.hub-card { --rarity:#ad9e80; display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 13px; border: 1px solid var(--rarity); border-radius: 3px; background: linear-gradient(150deg,#35291f,#181411); box-shadow: inset 0 0 0 1px #110c09; }
.hub-card:hover,.hub-card:focus-within { box-shadow: inset 0 0 0 1px #382616, 0 0 10px color-mix(in srgb,var(--rarity),transparent 80%); }
.rarity-common { --rarity:#c2beb9; }.rarity-uncommon { --rarity:#9bd480; }.rarity-rare { --rarity:#88bfff; }.rarity-epic { --rarity:#df9bf9; }.rarity-legendary { --rarity:#ffa465; }.rarity-artifact { --rarity:#ffe186; }
.hub-card header, .hub-spell { display: flex; align-items: center; gap: 8px; }
.hub-card header > img,.hub-spell img { width: 43px; height: 43px; object-fit: contain; border: 1px solid var(--rarity); background: #140e0b; border-radius: 3px; }
.hub-card h3,.hub-card header small { margin: 0; color: var(--rarity); }
.hub-card p,.hub-card ul,.hub-spell p { margin: 0; }
.hub-card p,.hub-card li { overflow-wrap: anywhere; }
.hub-card .hub-requirement { color: #f4aa83; }
.hub-spell { align-items: flex-start; }
.hub-spell strong { color: #efd697; }
.hub-card footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.hub-card footer .button { padding: 5px 8px; min-height: 35px; font-size: 12px; }
.hub-badge { margin-left: auto; flex: none; padding: 2px 4px; border: 1px solid #846747; color: #e8dcb9; font-size: 10px; }
.hub-filters,.hub-actions { display: flex; flex-wrap: wrap; gap: 9px 16px; margin: 10px 0 14px; }
.hub-filters select { margin-left: 4px; padding: 6px; background: #211811; border: 1px solid #ba9556; color: #f0daa7; }
.hub-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.hub-slots span { padding: 6px; background: #1f1713; border: 1px solid #775934; }
.hub-slots strong { display: block; }
.hub-compare,.hub-results { padding: 12px; border: 1px solid #946d3e; background: #201711; margin: 12px 0; color: #e2cb9c; }
.hub-compare table { border-collapse: collapse; text-align: left; width: min(100%,530px); }
.hub-compare th,.hub-compare td { padding: 5px; border-bottom: 1px solid #735533; }
.hub-goal.complete { --rarity:#e8bf6b; }
.hub-goal progress { width: 100%; height: 10px; accent-color: #dab25f; }
.hub-statistics { margin-bottom: 13px; }
.hub-statistics summary { cursor: pointer; color: #efd597; }
.hub-statistics dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(122px,1fr)); gap: 6px; }
.hub-statistics dl div { border: 1px solid #755637; background: #251c15; padding: 5px 8px; }
.hub-statistics dd { margin: 0; color: #ffe3a5; font-weight: 700; }
.hub-subdialog { width: min(600px,calc(100vw - 28px)); max-height: calc(100dvh - 22px); }
.hub-subdialog p { color: #e2cb9c; }
.hub-model-preview { display: block; max-width: 100%; height: auto !important; margin: auto; background: radial-gradient(#4d3e36,#171411); }
.hub-preview-fallback { display: block; max-width: 100%; max-height: 240px; margin: auto; }
.hub-notification,.hub-result-award { display: flex; align-items: center; gap: 8px; border: 2px ridge #c99d53; background: linear-gradient(115deg,#49361d,#1d160f); color: #ffe0a0; padding: 9px 12px; box-shadow: 0 3px 16px #0008; }
.hub-notification { position: fixed; right: 14px; bottom: 110px; width: min(340px,calc(100vw - 28px)); z-index: 35; pointer-events: none; border-color: var(--rarity,#c99d53); }
.hub-notification img,.hub-result-award img { width: 36px; height: 36px; border: 1px solid #d7aa60; }
.hub-notification small,.hub-result-award small { display: block; color: #d6ba84; }
.hub-notification b,.hub-result-award b { margin-left: auto; white-space: nowrap; }
.hub-results ul { margin: 4px 0 12px; }
.hub-results .hub-result-award { margin: 6px 0; }
@media (max-width:760px),(pointer:coarse) {
  .hub-tabs button { min-height: 42px; font-size: 12px; }
  .hub-card footer .button { min-height: 44px; }
  .hub-content { max-height: min(640px,62dvh); }
  .hub-heading { margin-bottom: 9px; }
  .hub-notification { bottom: 155px; right: 8px; width: min(235px,calc(100vw - 16px)); padding: 6px; font-size: 11px; }
  .hub-notification img { width: 26px; height: 26px; }
}
