:root{color-scheme:dark;--portal-panel:rgba(18,36,64,.94);--portal-line:rgba(146,180,222,.2);--portal-ink:#edf5ff;--portal-muted:#b2c5de}*{box-sizing:border-box}body{margin:0;color:var(--portal-ink);font:15px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#1b2d49 url('/itchio-mainRes/resources/images/itchio/undermax-background-20260924.webp') center/cover fixed}body [hidden]{display:none!important}.portal-shell{width:min(1120px,calc(100% - 40px));margin:108px auto 64px}.portal-hero{margin-bottom:32px}.portal-hero h1{font-size:clamp(30px,5vw,48px);letter-spacing:-1.4px;line-height:1.15;margin:12px 0 16px}.portal-hero p{color:var(--portal-muted);font-size:17px;max-width:670px}.eyebrow{font-size:11px;letter-spacing:2.5px;font-weight:800;color:#90cdf6}.hero-actions{display:flex;gap:16px;flex-wrap:wrap;align-items:center}.panel{background:var(--portal-panel);border:1px solid var(--portal-line);border-radius:22px;padding:28px;margin:22px 0;box-shadow:0 18px 42px rgba(3,13,28,.18);animation:panel-in .3s ease-out}.panel h2{font-size:21px;letter-spacing:-.4px;margin:0 0 12px}.panel p{max-width:760px}.panel h3{font-size:17px;margin:0}.muted{color:var(--portal-muted);font-size:13px}.portal-shell a{color:#a8dbff}.portal-shell .button{min-height:44px;padding:11px 18px;border-radius:11px;border:1px solid var(--portal-line);font-family:inherit;font-size:14px;font-weight:700;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;cursor:pointer;transition:background .18s,transform .18s;color:#edf6ff;background:rgba(117,164,208,.1)}.portal-shell .button.primary{background:linear-gradient(125deg,#246eaa,#3184b5);border-color:#73b6e066}.portal-shell .button:hover{filter:brightness(1.15);transform:translateY(-1px)}.portal-shell button:disabled{opacity:.55;cursor:wait;transform:none}.text-link{text-decoration:none;font-size:14px}.text-link:hover{text-decoration:underline}.notice{border:1px solid #5793bf70;background:#19395d;border-radius:12px;padding:15px 18px;color:#e1f0ff}.notice.error{background:#482b3e;border-color:#da7b9966}.notice.good{background:#183f3e;border-color:#58b8a866}.sync-panel,.section-heading{display:flex;justify-content:space-between;gap:24px;align-items:center}.sync-panel p{margin-bottom:0}.stack{display:grid;gap:18px}.portal-shell label{display:grid;gap:7px;font-size:13px;font-weight:600;color:#cadaee}.portal-shell input,.portal-shell select{width:100%;min-height:46px;border:1px solid #7297bd55;border-radius:10px;background:#11253e;color:#edf5ff;font:inherit;padding:10px 13px}.portal-shell input:focus,.portal-shell select:focus{outline:2px solid #6dbdf2;outline-offset:2px}.portal-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:22px 0}.portal-filters label{flex:1;min-width:135px}.order-list{display:grid;gap:16px}.order-card{border:1px solid var(--portal-line);background:#172d49;border-radius:16px;padding:20px}.order-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center}.order-meta{display:flex;gap:15px;flex-wrap:wrap;color:var(--portal-muted);font-size:12px;margin:10px 0 16px;overflow-wrap:anywhere}.badge{display:inline-block;border-radius:30px;padding:5px 11px;background:#294564;color:#d6eaff;font-size:12px;font-weight:700}.badge.good{background:#204d47;color:#a5edcc}.key-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-top:1px solid var(--portal-line)}.key-row p{margin:3px 0;font-size:12px;color:#b8cce3}.key-row .button{flex-shrink:0}.library-grid,.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.library-item{padding:18px;border-radius:13px;background:#1c3452;border:1px solid var(--portal-line)}.library-item p{margin:8px 0}.empty-panel{text-align:center;padding:45px 25px}.empty-panel p{margin:12px auto 24px;max-width:560px;color:var(--portal-muted)}.round-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:20px;margin:0 auto 18px;background:#2b5278;color:#bee6ff;font-size:27px}.auth-panel{max-width:480px;margin:24px auto}.auth-panel h2{text-align:center}.auth-panel .button{width:100%}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat{padding:25px;border:1px solid var(--portal-line);background:var(--portal-panel);border-radius:18px}.stat strong{display:block;font-size:30px;margin-top:8px}.stat span{color:var(--portal-muted);font-size:13px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:#bbd0e9;font-weight:600;white-space:nowrap}th,td{padding:14px 12px;border-bottom:1px solid var(--portal-line)}td{vertical-align:top}td:first-child{white-space:nowrap}.pagination{display:flex;gap:15px;align-items:center;justify-content:center;margin-top:22px;font-size:13px}.mini-spinner{display:inline-block;width:17px;height:17px;border:2px solid #81b7e844;border-top-color:#d7edff;border-radius:50%;animation:portal-spin .7s linear infinite;vertical-align:middle}.portal-shell :focus-visible{outline:2px solid #9adaff;outline-offset:3px}.portal-shell code{font-size:20px;overflow-wrap:anywhere}.portal-grid>.panel{margin-top:0}.product-names{margin:12px 0;padding-left:20px;color:#c4d4e8}@keyframes portal-spin{to{transform:rotate(360deg)}}@keyframes panel-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(max-width:700px){.portal-shell{width:calc(100% - 24px);margin-top:92px}.panel{padding:20px;border-radius:17px}.sync-panel,.section-heading{align-items:flex-start;flex-direction:column;gap:14px}.portal-grid,.library-grid{grid-template-columns:1fr}.stats-grid{gap:9px}.stat{padding:15px 10px}.stat strong{font-size:22px}.key-row{align-items:flex-start;flex-direction:column}.key-row .button{width:100%}.portal-hero p{font-size:15px}.hero-actions{gap:12px}.portal-filters .button{width:100%}.order-card{padding:16px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Partner entry: one shared visual language, with clear local feedback. */
.partner-entry{display:grid;grid-template-columns:1fr 1fr;max-width:1040px;margin:34px auto 56px;border:1px solid #82bbde38;border-radius:28px;overflow:hidden;background:#112b49;box-shadow:0 26px 80px #06162f45;animation:panel-in .35s ease-out}
.partner-story{position:relative;padding:42px;background:radial-gradient(ellipse at 45% 30%,#3b99bd24,transparent 70%),linear-gradient(155deg,#154368,#102d4e);display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.partner-story>.eyebrow{display:flex;align-items:center;gap:9px;letter-spacing:2px;font-size:10px}
.partner-emblem{position:relative;display:grid;place-items:center;align-self:center;width:224px;height:208px;margin:22px 0 28px}
.partner-emblem img{position:relative;width:146px;height:146px;object-fit:contain;filter:drop-shadow(0 12px 26px #49c9f622);animation:emblem-arrive .6s ease-out both}
.emblem-orbit{position:absolute;inset:2px;border:1px solid #84ccec18;border-radius:50%;transform:rotate(-24deg);background:radial-gradient(ellipse,#47a8df0a,transparent 70%)}
.emblem-orbit::before{content:'';position:absolute;inset:22px -18px;border:1px solid #84ccec10;border-radius:50%;transform:rotate(64deg)}
.partner-story h1{font-size:clamp(30px,3.2vw,40px);font-weight:600;line-height:1.16;letter-spacing:-1px;margin:0 0 18px}
.partner-story h1 span{color:#8fd9ef}
.partner-story>p{font-size:15px;color:#b5cedf;line-height:1.65;max-width:290px;margin:0 0 26px}
.partner-benefits{display:flex;flex-wrap:wrap;gap:14px 18px;font-size:12px;color:#b4d3e7}
.partner-benefits span{display:flex;gap:8px;align-items:center}.partner-benefits i{color:#8ccee8}
.partner-signin{padding:46px 42px;background:linear-gradient(145deg,#142e4e,#112841);display:flex;flex-direction:column;justify-content:center}
.auth-heading{display:flex;align-items:center;gap:13px;margin-bottom:25px}.auth-heading .eyebrow{font-size:10px;letter-spacing:2px;color:#8bb8d5}
.auth-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;border:1px solid #7cb4da25;background:#3f88b018;color:#9ed9f0;font-size:18px}
.partner-signin h2{font-size:32px;font-weight:600;letter-spacing:-.8px;line-height:1.15;margin:0 0 10px}
.auth-subtitle{font-size:14px;color:#a6c0d7;margin-bottom:30px}
.partner-signin .stack{gap:9px}.partner-signin label{font-size:12px;font-weight:500;color:#c3d7e8;margin-top:10px}
.auth-field{position:relative;display:flex;align-items:center}.auth-field>i{position:absolute;left:16px;pointer-events:none;font-size:14px;color:#76a4c5}
.portal-shell .auth-field input{padding:14px 45px;min-height:52px;border-radius:13px;background:#0d233c;border:1px solid #739ebe36;font-size:14px;transition:border-color .2s,background .2s}
.portal-shell input::placeholder{color:#7997b0;opacity:1}
.portal-shell .auth-field input:focus{background:#102c48}
.password-toggle{position:absolute;right:7px;width:37px;height:37px;border:0;border-radius:10px;background:transparent;color:#96bdd7;display:grid;place-items:center;cursor:pointer}
.password-toggle:hover{background:#70bcea18;color:#d6f4ff}
.portal-shell .auth-submit{justify-content:space-between;padding-inline:20px;min-height:51px;margin-top:15px;background:linear-gradient(115deg,#287fa9,#256c9e);border-color:#6fc9e64d;box-shadow:0 6px 20px #031d3938;border-radius:13px}
.auth-submit i{font-size:13px}.auth-submit[aria-busy="true"]{justify-content:center}
.auth-help{font-size:12px;color:#9fb9d1;line-height:1.7;margin:19px 0 24px}.auth-help a{color:#b6e1f7;text-decoration:underline;text-decoration-color:#83bfd04d;text-underline-offset:3px}
.auth-divider{display:flex;align-items:center;gap:12px;color:#86a6bf;font-size:11px;margin-bottom:17px}.auth-divider::before,.auth-divider::after{content:'';height:1px;flex:1;background:#84b4d31c}
.auth-customer{display:flex;align-items:center;gap:11px;padding:13px 15px;border:1px solid #73a8d026;border-radius:12px;font-size:13px;background:#4387b10a;transition:background .18s}.auth-customer:hover{background:#4387b11f}.auth-customer i:first-child{font-size:18px;color:#a7d2ee}.auth-customer i:last-child{margin-left:auto;font-size:11px;opacity:.65}
.auth-feedback{font-size:13px;line-height:1.5;border:1px solid #ee879936;background:#9836531a;color:#ffc6d0;border-radius:10px;padding:11px 13px;margin:6px 0 0}
.portal-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;min-height:170px;border:1px dashed #80b4dc26;border-radius:16px;padding:26px}.portal-empty>i{font-size:25px;color:#78b1d4;margin-bottom:7px}.portal-empty strong{font-size:15px;font-weight:500}.portal-empty p{margin:0}
.order-card details{padding-top:12px}.order-card summary{color:#a6cae5;font-size:12px;cursor:pointer;min-height:30px}.order-card details[open] summary{margin-bottom:10px}.order-card{box-shadow:0 4px 18px #051a3010}.library-item{background:linear-gradient(140deg,#1a3856,#18314f)}
.panel h2 i{font-size:.85em;color:#8bc5e9;margin-right:6px}.portal-filters{padding:16px;border:1px solid #739ec31a;border-radius:15px;background:#061d2e16}.portal-filters label{font-weight:500;font-size:12px}.sync-panel{background:linear-gradient(125deg,#133857,#152c49)}
@keyframes emblem-arrive{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@media(max-width:780px){.partner-entry{grid-template-columns:1fr;max-width:510px;margin:10px auto 36px}.partner-story{padding:26px 28px;display:block}.partner-story>p,.partner-benefits,.partner-emblem{display:none}.partner-story h1{font-size:27px;margin:15px 0 0}.partner-story h1 br{display:none}.partner-story h1 span::before{content:' '}.partner-signin{padding:28px}.auth-heading{margin-bottom:20px}.auth-subtitle{margin-bottom:18px}.partner-signin h2{font-size:29px}}

/* Account hub and product detail cards. */
.account-product-image{opacity:0;transition:opacity .25s ease}.account-product-image.is-loaded{opacity:1}
.account-overview{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:28px 0}.account-identity{display:flex;gap:14px;align-items:center}.account-identity img{width:52px;height:52px;object-fit:cover;border-radius:18px;border:1px solid #7fbeec3b}.account-identity h2{font-size:21px;margin:2px 0 0}.account-identity .eyebrow{font-size:9px}.account-shortcuts{display:flex;gap:6px;flex-wrap:wrap}.account-shortcuts a{display:flex;gap:8px;align-items:center;border:1px solid #85b9df26;border-radius:12px;padding:10px 13px;font-size:13px;background:#1a385945;transition:background .2s}.account-shortcuts a:hover{background:#32608b5c}.stat>i{float:right;color:#86bedf;font-size:19px}.stat strong{font-weight:600}.library-search{position:relative;max-width:380px;margin:22px 0}.library-search i{position:absolute;top:17px;left:15px;color:#80afd0}.portal-shell .library-search input{padding-left:40px}.library-item{padding:0;overflow:hidden;display:flex;flex-direction:column}.library-item>.account-product-image{width:100%;height:auto;aspect-ratio:2.05;object-fit:contain;background:#092039;padding:14px;border-bottom:1px solid #82bbde22}.library-item-content{padding:21px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;flex:1}.library-item-content h3{line-height:1.35;font-size:18px}.library-item-content p{margin:0}.library-item-content .button{margin-top:auto}.library-item-content .badge{font-size:10px;padding:4px 9px}.library-description{font-size:13px;line-height:1.65;color:#b9cce0;padding-bottom:10px}.library-grid{margin-bottom:20px}.purchased-item{display:flex;align-items:flex-start;gap:17px;padding:17px 0;border-top:1px solid #739bbb24}.purchased-item>.account-product-image{width:110px;aspect-ratio:2;object-fit:contain;border:1px solid #83bbdf24;border-radius:10px;background:#102943;padding:7px}.purchased-item-copy{min-width:0;flex:1}.purchased-item-copy strong{font-size:15px}.purchased-item-copy p{margin:5px 0}.purchased-item-copy details{padding-top:3px}.connection-row{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:18px 20px;border:1px solid #6faacb30;border-radius:16px;background:#11304a;margin:18px 0}.connection-row p{margin:4px 0 0}.connection-row .button{flex-shrink:0}.disconnect-confirm{max-width:420px;display:flex;flex-wrap:wrap;gap:10px}.disconnect-confirm p{flex-basis:100%;margin-bottom:6px}.steam-claim{padding:20px;gap:12px;align-items:flex-start}.steam-claim .button{margin-top:auto}.support-activity{display:grid;gap:10px}.support-activity-row{display:flex;align-items:center;gap:14px;border:1px solid #6faacb25;border-radius:14px;padding:16px;background:#12304b}.support-activity-row>i{color:#8dbfdc}.support-activity-row>div{flex:1;min-width:0}.support-activity-row strong{display:block;font-size:14px;overflow-wrap:anywhere}.support-activity-row small{color:#89acc8;font-size:11px}.support-activity-row:hover{background:#1a3d5d}#connectionsMessage.error{color:#ffc7d0}#accountStats{margin-top:24px}.account-shortcuts a:focus-visible{background:#32608b5c}
@media(max-width:780px){.account-overview{flex-direction:column;align-items:flex-start;gap:18px}.account-shortcuts{gap:8px}.account-shortcuts a{padding:9px 11px;font-size:12px}.connection-row{align-items:flex-start;flex-direction:column;gap:16px}.purchased-item>.account-product-image{width:78px}.library-item-content{padding:18px}.stat>i{float:none;display:block;margin-bottom:9px;font-size:17px}.stats-grid .stat strong{font-size:22px}.stats-grid .stat span{font-size:11px}}

/* Compact library with disclosure details and bounded pages. */
#myLibrary .library-grid{display:flex;flex-direction:column;gap:8px}#myLibrary .library-item{display:flex;flex-direction:row;align-items:center;gap:16px;padding:12px 14px;border-radius:16px;background:#14304a}#myLibrary .library-item>.account-product-image{width:76px;height:66px;aspect-ratio:auto;object-fit:cover;padding:0;border:1px solid #83bcdd30;border-radius:12px;flex-shrink:0}#myLibrary .library-item-content{padding:0;min-width:0;gap:5px}#myLibrary .library-item-content h3{font-size:15px;line-height:1.3}#myLibrary .library-item-content>.muted{font-size:11px}#myLibrary .library-item>.button{min-height:38px;padding:8px 13px;font-size:12px;flex-shrink:0}#myLibrary .library-details{font-size:12px;color:#a9cfe5;width:100%}#myLibrary .library-details summary{cursor:pointer;width:fit-content}#myLibrary .library-description{padding:8px 0 2px;font-size:12px;max-width:660px}#myLibrary .library-search{margin:16px 0 8px}#libraryCount{margin:0 0 12px}#libraryPagination:empty{display:none}#libraryPagination{margin:14px 0}#myLibrary>.text-link{display:inline-block;margin-top:10px}.portal-hero{margin-bottom:22px}.portal-hero h1{font-size:clamp(28px,4vw,38px)}.portal-shell>.panel,.portal-shell #purchasePanel>.panel{padding:22px;margin:16px 0}.portal-shell .stat{padding:18px 22px}.portal-shell .stat strong{font-size:26px}
@media(max-width:600px){#myLibrary .library-item{gap:10px;padding:12px;flex-wrap:wrap}#myLibrary .library-item>.account-product-image{width:56px;height:56px}#myLibrary .library-item-content{flex:1;min-width:150px}#myLibrary .library-item>.button{margin-left:66px}#myLibrary .library-item-content h3{font-size:14px}.portal-shell #purchasePanel>.panel{padding:18px}}
.library-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}#myLibrary .library-metadata .muted{font-size:11px}
