/* Phase 6 dark-fantasy progression interface: no changes to combat or puzzle styles. */
.hub-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:10px 0 13px}
.hub-shortcut{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:6px;min-height:63px;padding:7px 1px;border-radius:11px;border:1px solid #566aa3;color:#e4edff;background:linear-gradient(160deg,#24345b,#151d37);font-size:10px;font-weight:850;box-shadow:inset 0 1px 0 #fff2,0 3px 9px #04071955;cursor:pointer}
.hub-shortcut span{font-size:22px;line-height:1}.hub-shortcut:active{transform:translateY(1px)}
.hub-layer[hidden]{display:none!important}.hub-layer{position:fixed;z-index:50;inset:0;display:flex;justify-content:center;align-items:stretch;background:#020615ec;color:#e5e9fd;backdrop-filter:blur(8px);font-family:inherit}
.hub-window{width:min(100vw,490px);height:100dvh;overflow:hidden;background:linear-gradient(175deg,#14213e 0,#0a1125 40%,#080e20 100%);border-inline:1px solid #425181;display:flex;flex-direction:column;box-shadow:0 0 40px #0008}
.hub-header{padding:calc(env(safe-area-inset-top) + 13px) 17px 12px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #3c4e7e;background:radial-gradient(ellipse at 80% 0,#7155b52d,transparent 76%)}
.hub-header small{font-size:10px;letter-spacing:3px;font-weight:800;color:#98c7ff}.hub-header h2{margin:3px 0 0;font-size:21px;color:#fff4db;letter-spacing:.05em}
#hubClose{background:#29385c;color:#fff;border:1px solid #6576ae;border-radius:11px;width:43px;height:43px;font-size:19px;cursor:pointer}
.hub-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:9px 9px;background:#0d1730;border-bottom:1px solid #313c66}
.hub-tabs button{min-height:38px;background:#1c2a4c;border:1px solid #374b78;color:#aebde6;border-radius:8px;font-weight:800;font-size:11px;cursor:pointer}
.hub-tabs button.active{color:#fff9e7;border-color:#a7a2eb;background:linear-gradient(120deg,#373b7a,#49337d);box-shadow:0 0 10px #9273d04a}
.hub-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:13px 12px 28px;scrollbar-width:thin}
.hub-toast{position:absolute;bottom:max(15px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);border:1px solid #95adf0;background:#21365af2;border-radius:12px;padding:10px 15px;color:#f6f2ff;box-shadow:0 9px 22px #0009;max-width:90%;min-width:190px;text-align:center;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}
.hub-toast.visible{opacity:1}
.hub-banner{border:1px solid #566ca7;background:linear-gradient(125deg,#233253,#1a2243 70%,#332751);border-radius:13px;padding:11px 12px;margin-bottom:11px;box-shadow:inset 0 1px 0 #ffffff19}
.hub-banner strong{font-size:16px;color:#fff2c7;display:block}.hub-banner p,.hub-sub{font-size:11px;color:#b2c2e4;line-height:1.6;margin:5px 0 0}
.hub-headerline{display:flex;align-items:center;justify-content:space-between;margin:14px 2px 9px}.hub-headerline b{font-size:14px;color:#f6e2c0}.hub-headerline small{font-size:10px;color:#a8b8dc}
.area-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
.area-tabs button{min-height:36px;border:1px solid #3b5184;background:#1d294b;color:#9fb6dc;border-radius:9px;font-size:10px;font-weight:800;padding:3px;cursor:pointer}
.area-tabs button.active{border-color:#9b93ea;color:#fff;background:#3d3779}.area-tabs button.locked{opacity:.42}
.area-cover{height:132px;background-position:center;background-size:cover;border-radius:12px;border:1px solid #667baa;position:relative;overflow:hidden;display:flex;align-items:flex-end;padding:11px;margin-bottom:11px}
.area-cover:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 15%,#070d22dc)}.area-cover div{position:relative;z-index:1;text-shadow:0 2px 7px #000}.area-cover b{font-size:17px}.area-cover p{font-size:10px;margin:3px 0;color:#d6e3fe}
.stage-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:14px}.stage-cell{height:62px;border:1px solid #46567a;background:#17213d;color:#e3eaff;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;gap:3px;cursor:pointer}
.stage-cell .stage-mark{font-size:10px;color:#ffd980;letter-spacing:-2px;white-space:nowrap}.stage-cell.selected{background:#343878;border-color:#b2a4ff;box-shadow:0 0 14px #9186ff48}.stage-cell.boss{background:linear-gradient(145deg,#463056,#1c2243);border-color:#b48add}.stage-cell.locked{opacity:.38;cursor:not-allowed}.stage-cell:disabled{filter:grayscale(.5)}
.hub-preview{border:1px solid #4d5e91;background:#0e1935;border-radius:13px;padding:12px;display:flex;flex-direction:column;gap:8px}.hub-preview strong{font-size:14px;color:#ffefc9}.hub-preview .hub-meta{display:flex;gap:7px;flex-wrap:wrap}.hub-chip{font-size:10px;padding:5px 7px;background:#25365e;border-radius:7px;color:#cde0fd}.hub-chip.gold{color:#ffdf94}
.hub-cta,.hub-action{width:100%;min-height:44px;border-radius:10px;padding:10px 12px;background:linear-gradient(100deg,#4269a8,#7251a4);border:1px solid #9bb4f3;color:#fff;font-size:13px;font-weight:900;cursor:pointer}
.hub-cta:disabled,.hub-action:disabled{opacity:.35;cursor:not-allowed}.hub-action{font-size:11px;width:auto;min-height:36px;padding:7px 11px;background:linear-gradient(120deg,#273a64,#4b3971)}
.hub-action.gold{background:linear-gradient(120deg,#88612b,#ba8639);border-color:#f1d28e;color:#fff5da}
.progress-card{border:1px solid #3c4d78;background:#111b35;border-radius:12px;padding:12px;margin-bottom:9px}.progress-card strong{font-size:13px;color:#e7e5ff}.progress-card .card-desc{font-size:11px;color:#b7c4db;line-height:1.45;margin:5px 0}.progress-card .card-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:8px}.progress-card .card-actions span{font-size:11px;color:#e7d3ac;font-weight:800}
.progress-track{height:7px;background:#253454;border-radius:8px;overflow:hidden;border:1px solid #43547b;margin-top:8px}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#557dcc,#ad78ff);border-radius:8px;transition:width .22s}
.hub-hero{display:flex;align-items:center;gap:12px;padding:7px 10px 0;background:linear-gradient(140deg,#202c4c,#171c3b);border:1px solid #536594;border-radius:13px;margin-bottom:10px}.hub-hero img{width:100px;height:115px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 0 12px #587cf7)}.hub-hero .hub-stat{flex:1}.hub-hero h3{font-size:18px;margin:0 0 7px;color:#fff0c9}.hub-hero p{font-size:11px;margin:3px 0;color:#a7c5e4}
.hub-grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hub-grid-two .progress-card{margin:0}.hub-tiny{font-size:10px;color:#93a8ca}.hub-tally{font-weight:900;color:#f9dc9b;font-size:12px}
.hub-campaign{padding:8px 10px;border:1px solid #465981;background:#141e3a;border-radius:10px;margin-bottom:12px;font-size:11px;color:#c9d7ed}
.hub-trophy{color:#ffcc70;letter-spacing:2px}
.hub-empty{color:#97a7cd;font-size:12px;text-align:center;padding:12px}
.hub-layer :focus-visible,.hub-shortcut:focus-visible{outline:3px solid #f6d58a;outline-offset:2px}
@media(max-width:360px){.hub-shortcut{font-size:9px}.hub-header h2{font-size:19px}.stage-grid{gap:4px}.hub-content{padding-inline:8px}.stage-cell{height:54px}.hub-action{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hub-toast,.progress-track span{transition:none}}
