/* Approved portfolio demo, scoped to the live game component. */
.fund-portfolio{--gold:#ffb600;--muted:#7a5e6c;--ink:#4b1835;--paper:#fffdf8;--line:#e9dfdf;width:min(1232px,100%);height:100%;min-height:0;display:flex;flex-direction:column;font-family:Gellix,Arial,sans-serif;color:var(--ink);text-align:left}
.fund-portfolio *{box-sizing:border-box}.fund-portfolio [hidden]{display:none!important}
.fund-portfolio button,.fund-portfolio a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.fund-portfolio button{font-family:inherit;color:inherit;cursor:pointer}
.fund-portfolio button:focus-visible,.fund-portfolio a:focus-visible,.fund-portfolio .portfolio-scroll:focus-visible{outline:3px solid #613add;outline-offset:3px}
.fund-portfolio[data-suspended=true]{visibility:hidden;pointer-events:none}
.fund-portfolio .fund-sheet{display:flex;flex-direction:column;flex:1;min-height:0;background:var(--paper);border:2px solid var(--ink);border-radius:28px;box-shadow:7px 8px 0 var(--ink);overflow:hidden;animation:portfolio-reveal .35s ease-out}
.fund-portfolio .sheet-header{display:grid;grid-template-columns:90px 1fr 90px;align-items:center;gap:20px;padding:24px 38px 23px;border-bottom:1px solid var(--line);flex:none}.fund-portfolio .heading{text-align:center}.fund-portfolio .heading h2{font-family:Gellix,Arial,sans-serif;font-weight:700;font-size:clamp(30px,3.9vw,51px);line-height:1.05;letter-spacing:-1.9px;margin:0 0 10px;outline:none}.fund-portfolio .heading p{font-size:16px;color:var(--muted);margin:0}.fund-portfolio .fund-seal{position:relative;width:76px;height:76px;transform:rotate(-9deg);display:grid;place-items:center}.fund-portfolio .fund-seal svg{position:absolute;inset:0;width:100%;height:100%;fill:var(--gold);stroke:var(--ink);stroke-width:1.8;stroke-linejoin:round}.fund-portfolio .fund-seal span{position:relative;font-family:Gellix,Arial,sans-serif;font-size:32px;font-weight:700}.fund-portfolio .portfolio-nox{width:90px;height:90px}
.fund-portfolio .portfolio-wrap{position:relative;flex:1;min-height:0}.fund-portfolio .portfolio-scroll{height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#bba3af transparent;scrollbar-width:thin;padding:18px 26px 40px;scroll-padding:14px}.fund-portfolio .portfolio-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));column-gap:8px;row-gap:14px}.fund-portfolio .portfolio-company{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-width:0;min-height:107px;padding:14px 8px 10px;border-radius:10px;color:#735364;text-decoration:none}.fund-portfolio .portfolio-company:hover,.fund-portfolio .portfolio-company:focus-visible{background:#f7efeb}.fund-portfolio .company-art{width:100%;height:49px;display:flex;align-items:center;justify-content:center}.fund-portfolio .company-art img{width:100%;height:100%;object-fit:contain}.fund-portfolio .company-label{font-size:11px;line-height:1.2;text-align:center}.fund-portfolio .company-fallback{font-weight:700;font-size:16px;text-align:center}.fund-portfolio .scroll-cue{position:absolute;bottom:0;left:0;right:12px;height:40px;background:linear-gradient(transparent,var(--paper) 36%);display:flex;align-items:flex-end;justify-content:center;gap:4px;padding-bottom:8px;color:var(--muted);font-size:11px;pointer-events:none}.fund-portfolio .scroll-cue svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6}.fund-portfolio .scroll-cue.at-end{visibility:hidden}
.fund-portfolio .sheet-footer{flex:none;border-top:1px solid var(--line);padding:20px 34px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fffdf8}.fund-portfolio .footer-copy{display:flex;align-items:center;gap:18px;color:var(--muted);font-size:12px}.fund-portfolio .fund-progress{display:flex;align-items:center;gap:6px}.fund-portfolio .fund-progress b{width:25px;height:25px;border:1px solid #d7c9cf;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;color:#8f7884}.fund-portfolio .fund-progress b.released{background:var(--gold);border-color:var(--ink);color:var(--ink)}.fund-portfolio .fund-progress i{display:block;width:12px;height:1px;background:#d7c9cf}.fund-portfolio .continue-button{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:15px 23px;min-height:54px;border:2px solid var(--ink);border-radius:12px;background:var(--gold);font-size:16px;font-weight:700;box-shadow:4px 4px 0 var(--ink);white-space:nowrap}.fund-portfolio .continue-button:hover{background:#ffc12d;transform:translateY(-1px)}.fund-portfolio .continue-button:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--ink)}.fund-portfolio .continue-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@keyframes portfolio-reveal{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.fund-portfolio .portfolio-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.fund-portfolio .sheet-header{padding:20px 28px}.fund-portfolio .footer-copy{gap:10px}.fund-portfolio .sheet-footer{padding:18px 25px 21px}}
@media(max-width:650px){.fund-portfolio .fund-sheet{border-radius:20px;box-shadow:4px 5px 0 var(--ink)}.fund-portfolio .sheet-header{grid-template-columns:40px 1fr 40px;gap:8px;padding:21px 14px 20px}.fund-portfolio .fund-seal{width:39px;height:39px}.fund-portfolio .fund-seal span{font-size:20px}.fund-portfolio .portfolio-nox{width:42px;height:42px}.fund-portfolio .heading h2{font-size:28px;letter-spacing:-1px;line-height:1.08;margin-bottom:8px}.fund-portfolio .heading p{font-size:12px;line-height:1.4}.fund-portfolio .portfolio-scroll{padding:10px 10px 35px}.fund-portfolio .portfolio-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 2px}.fund-portfolio .portfolio-company{min-height:92px;padding:12px 8px;gap:9px}.fund-portfolio .company-art{height:39px}.fund-portfolio .company-label{font-size:10px}.fund-portfolio .sheet-footer{padding:13px 16px 19px;flex-direction:column;gap:12px}.fund-portfolio .footer-copy{width:100%;justify-content:center;gap:16px;font-size:11px}.fund-portfolio .fund-progress b{width:20px;height:20px;font-size:9px}.fund-portfolio .continue-button{width:100%;font-size:15px;min-height:48px;padding:12px 18px}}
@media(max-width:380px){.fund-portfolio .heading h2{font-size:24px}.fund-portfolio .sheet-header{grid-template-columns:30px 1fr 30px}.fund-portfolio .fund-seal{width:31px;height:31px}.fund-portfolio .portfolio-nox{width:33px;height:33px}}
@media(orientation:landscape) and (max-height:550px){.fund-portfolio .fund-sheet{border-radius:18px;box-shadow:4px 4px 0 var(--ink)}.fund-portfolio .sheet-header{grid-template-columns:40px 1fr 40px;padding:10px 23px;gap:10px}.fund-portfolio .heading h2{font-size:28px;margin:0 0 3px;letter-spacing:-1px}.fund-portfolio .heading p{font-size:12px}.fund-portfolio .fund-seal{width:39px;height:39px}.fund-portfolio .fund-seal span{font-size:19px}.fund-portfolio .portfolio-nox{width:44px;height:44px}.fund-portfolio .portfolio-grid{grid-template-columns:repeat(6,minmax(0,1fr));row-gap:4px}.fund-portfolio .portfolio-scroll{padding:7px 16px 28px}.fund-portfolio .portfolio-company{min-height:77px;padding:8px;gap:6px}.fund-portfolio .company-art{height:36px}.fund-portfolio .company-label{font-size:10px}.fund-portfolio .scroll-cue{height:25px;padding-bottom:3px;font-size:10px}.fund-portfolio .sheet-footer{padding:9px 21px 12px;flex-direction:row}.fund-portfolio .continue-button{width:auto;min-height:42px;padding:9px 17px;font-size:14px}.fund-portfolio .footer-copy{width:auto;font-size:11px}}
@media(prefers-reduced-motion:reduce){.fund-portfolio *,.fund-portfolio *:before,.fund-portfolio *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
