/* NEXUS product system — responsive, accessible, no UI framework required. */
.portal-overlay{position:fixed;inset:0;z-index:50;padding:clamp(16px,4vh,48px) clamp(12px,6vw,100px);display:flex;align-items:center;justify-content:center;background:rgba(2,8,17,.75);backdrop-filter:blur(17px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s,visibility .22s}
.portal-overlay.visible{opacity:1;visibility:visible;pointer-events:auto}
.portal-window{display:flex;flex-direction:column;width:min(1120px,100%);height:min(800px,100%);background:linear-gradient(135deg,#0e1d30,#091321 70%);border:1px solid rgba(128,231,222,.27);box-shadow:0 28px 150px #000d;position:relative;overflow:hidden}
.portal-window::after{content:'';position:absolute;left:0;top:0;right:0;height:2px;background:linear-gradient(90deg,transparent,#77fee5 35%,#a487ff 65%,transparent);pointer-events:none}
.portal-header{padding:26px clamp(18px,4vw,40px) 23px;border-bottom:1px solid #36506766;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;position:relative;z-index:1}
.portal-eyebrow{display:block;font-size:10px;font-weight:900;letter-spacing:.22em;color:#70eedc}.portal-header h2{font-size:clamp(23px,3vw,38px);font-weight:860;line-height:1.05;letter-spacing:-.05em;margin:10px 0}.portal-header p{margin:0;color:#8daabb;font-size:12px}.portal-header>button{background:rgba(131,201,209,.08);border:1px solid rgba(131,201,209,.22);width:39px;height:39px;color:#e5f9ff;font-size:29px;line-height:1;flex-shrink:0}.portal-header>button:hover{border-color:#83ffe5}
.portal-body{padding:clamp(18px,3vw,36px);overflow:auto;min-height:0;flex:1;scrollbar-color:#2c6870 transparent}.portal-footer{padding:14px clamp(18px,4vw,40px);border-top:1px solid #36506766;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#6c8c9b;font-size:9px;letter-spacing:.12em}.portal-footer div{display:flex;gap:19px}.portal-footer a{color:#82bcbf;text-decoration:none}.portal-footer a:hover{text-decoration:underline}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.product-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.product-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.product-card{background:linear-gradient(155deg,#142e40,#0f2333);border:1px solid rgba(132,199,207,.19);border-radius:6px;padding:21px;min-width:0;position:relative;overflow:hidden}.product-card:hover{border-color:rgba(123,240,218,.48)}.product-card h3{font-size:17px;margin:12px 0 5px;font-weight:800;letter-spacing:-.02em}.product-card p{font-size:12px;color:#9db4c0;line-height:1.6;margin:7px 0 17px}.product-card .piece-icon{font-size:42px;display:block;filter:drop-shadow(0 0 15px currentColor);line-height:1.3}.product-card .category{font-size:9px;font-weight:900;letter-spacing:.15em;color:#75dfd0}.product-card .price{color:#c7fff1;font-size:12px;font-weight:900}.product-card .price small{font-size:9px;color:#8ea5b1}.product-card .meta{font-size:10px;color:#91b1bd}.product-card .tag{position:absolute;right:15px;top:16px;font-size:9px;letter-spacing:.08em;color:#b89df7;border:1px solid #8869ad66;padding:5px 8px}
.action-btn{appearance:none;border:0;background:#78ffe0;color:#0b2e34;border-radius:3px;padding:12px 17px;font-size:11px;font-weight:900;letter-spacing:.07em;cursor:pointer;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:8px}.action-btn:hover{background:#a1ffea}.action-btn:disabled{opacity:.43;cursor:not-allowed}.action-btn.secondary{background:#213b4c;color:#d8f9f4;border:1px solid #446773}.action-btn.secondary:hover{background:#345566}.action-btn.violet{background:#bd9bff;color:#26163e}.action-btn.full{width:100%}.action-btn.small{padding:9px 12px;font-size:10px}.action-btn.ghost{background:transparent;color:#88d9d0;border:1px solid #335c65}.action-btn.ghost:hover{background:#18343c}
.panel-heading{font-size:13px;letter-spacing:.08em;font-weight:900;margin:0 0 12px}.panel-description{color:#96b3bf;font-size:12px;line-height:1.7;margin:0 0 20px}.fineprint{color:#7493a4;font-size:10px;line-height:1.5}.status-line{margin:0 0 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid #315468;background:#10283b;padding:13px 16px;color:#a8c7d0;font-size:11px}.status-line strong{color:#8effdb}.mini-badge{display:inline-flex;padding:5px 9px;background:#214437;color:#9cf4c2;font-size:9px;letter-spacing:.11em;font-weight:900}.mini-badge.muted{background:#323c53;color:#bdc4db}.mini-badge.gold{background:#533c30;color:#ffe3af}
.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px}.stat-tile{background:#122839;border:1px solid #2c4b58;padding:17px}.stat-tile strong{font-size:27px;display:block;color:#d2fff1;letter-spacing:-.06em}.stat-tile small{font-size:9px;letter-spacing:.09em;color:#87a4af}
.notice{background:rgba(93,216,206,.06);border-left:2px solid #67e8d4;padding:15px 17px;color:#a9cace;font-size:11px;line-height:1.65;margin:0 0 21px}.notice.warn{border-color:#e5af69;background:#56402b38;color:#e7c69e}.notice.error{border-color:#f57c94;background:#6d27343c;color:#ffd8df}.notice.success{border-color:#79f0bd;color:#baffd8}.empty-state{padding:42px 20px;text-align:center;background:#112333;border:1px dashed #365467;border-radius:5px;color:#9fb4be}.empty-state .empty-icon{font-size:37px;color:#7cf9df}.empty-state strong{display:block;color:#f1feff;font-size:16px;margin:10px 0}.empty-state p{max-width:460px;margin:0 auto 18px;font-size:12px;line-height:1.7}
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px}.toolbar select,.form-row select,.form-row input,.form-row textarea,.message-entry input,.npc-entry input{appearance:none;outline:0;color:#e7f8f9;background:#0c2031;border:1px solid #395c6a;border-radius:3px;padding:12px 14px;font-size:12px;font-family:inherit;min-width:0}.toolbar select:focus,.form-row input:focus,.form-row textarea:focus,.message-entry input:focus,.npc-entry input:focus{border-color:#81f7d7}.toolbar select option,.form-row select option{background:#112334;color:white}.toolbar input{max-width:220px}.form-row{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;flex:1}.form-row label{font-size:10px;color:#a4d6d8;letter-spacing:.1em;font-weight:850}.form-row input,.form-row textarea,.form-row select{width:100%}.form-row textarea{resize:vertical;min-height:80px}.form-split{display:flex;gap:13px}.form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.linkish{background:none;border:0;padding:0;color:#77f7db;text-decoration:underline;font-size:11px}
.studio-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(255px,.6fr);gap:20px}.studio-stage{background:radial-gradient(circle at 50% 30%,#173d4c,#081421 75%);min-height:410px;position:relative;border:1px solid #416472;overflow:hidden}.studio-stage::before{content:'';position:absolute;inset:0;background-image:radial-gradient(#69cbbb28 1px,transparent 1px);background-size:23px 23px;pointer-events:none}.studio-stage canvas{width:100%;height:390px;display:block;touch-action:manipulation;cursor:crosshair}.studio-controls{background:#12293a;border:1px solid #315366;padding:16px}.studio-controls .group-label{color:#79ead9;font-size:10px;font-weight:900;letter-spacing:.1em;display:block;margin:0 0 10px}.tool-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.tool-tile{background:#193449;border:1px solid #325c6d;color:#c0e4e7;min-width:0;padding:10px 5px;font-size:9px;display:flex;align-items:center;flex-direction:column;gap:7px}.tool-tile span{font-size:20px}.tool-tile.active{border-color:#70ffe1;color:white;background:#24514f}.workbench-bottom{margin-top:12px;border-top:1px solid #335360;padding-top:14px}.workbench-bottom p{font-size:10px;color:#9caebb;line-height:1.6;margin:5px 0 13px}.studio-stage .canvas-legend{position:absolute;left:15px;top:12px;color:#b1f8df;letter-spacing:.1em;font-size:9px;pointer-events:none}
.chat-log{height:min(330px,43vh);overflow:auto;border:1px solid #335266;background:#0b1c2c;padding:15px;display:flex;flex-direction:column;gap:12px}.chat-bubble{display:flex;flex-direction:column;gap:4px;padding:12px 14px;max-width:82%;background:#1b3b4b;border:1px solid #2f5a69}.chat-bubble.own{margin-left:auto;background:#244746;border-color:#428c85}.chat-bubble .who{font-size:9px;font-weight:900;letter-spacing:.1em;color:#9bfae7}.chat-bubble p{margin:0;color:#e0f5f6;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.chat-bubble time{font-size:9px;color:#7695a6}.message-entry,.npc-entry{display:flex;gap:10px;margin-top:12px}.message-entry input,.npc-entry input{flex:1}.msg-placeholder{color:#718c9f;font-size:12px;text-align:center;padding:20px}.memberships{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-bottom:22px}.tier-card{padding:25px;background:#11283c;border:1px solid #36546a}.tier-card.premium{background:linear-gradient(140deg,#36244f,#193546 85%);border-color:#ac8eff}.tier-title{font-size:10px;font-weight:900;letter-spacing:.2em;color:#8bfadf}.tier-card.premium .tier-title{color:#d4adff}.tier-price{display:flex;align-items:baseline;gap:5px;font-size:32px;font-weight:950;margin:13px 0;letter-spacing:-.05em}.tier-price small{font-size:12px;color:#90aabb;letter-spacing:0}.tier-card ul{list-style:none;padding:0;margin:18px 0 25px}.tier-card li{padding:8px 0;font-size:12px;color:#c7e1e6;border-bottom:1px solid #65829625}.tier-card li::before{content:'✓';color:#83f7d8;margin-right:9px}.login-wrap{max-width:500px;margin:auto}.login-wrap>h3{text-align:center;letter-spacing:-.025em;font-size:25px}.login-wrap>p{text-align:center;color:#93b5c3;line-height:1.7;font-size:12px}.account-buttons{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.profile-info{display:flex;align-items:center;gap:14px;padding:16px;background:#132b3e;border:1px solid #345768;margin-bottom:18px}.profile-info .big-avatar{width:53px;height:53px;border-radius:12px;background:#4d93a0;color:#08111a;display:grid;place-items:center;font-size:26px;font-weight:900}.profile-info strong{font-size:17px}.profile-info small{display:block;font-size:10px;color:#8ea8b5;margin-top:6px}
@media(max-width:800px){.product-grid,.product-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-layout{grid-template-columns:1fr}.studio-stage canvas{height:310px}.studio-stage{min-height:345px}.portal-footer{flex-direction:column;align-items:flex-start}}
@media(max-width:560px){.portal-overlay{padding:0}.portal-window{height:100dvh;max-height:100dvh;border:0}.portal-header{padding:20px 16px 14px}.portal-body{padding:15px}.portal-header h2{font-size:22px}.portal-eyebrow{font-size:8px}.product-grid,.product-grid.two,.product-grid.four{grid-template-columns:1fr}.memberships{grid-template-columns:1fr}.form-split{flex-direction:column;gap:0}.stats-row{gap:7px}.stat-tile{padding:10px}.stat-tile strong{font-size:20px}.message-entry{gap:6px}.portal-footer{padding:10px 16px}.portal-footer div{gap:10px}.product-card{padding:15px}}
@media(prefers-reduced-motion:reduce){.portal-overlay{transition:none}}
@media(max-width:740px){.location-panel{display:none}.world-dock{bottom:175px}}

/* UX patch 1.2: functional local guest workflow. */
.guest-welcome{text-align:center}.guest-quick-actions{display:grid;gap:11px;margin:25px 0}.guest-world-entry{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:5px 0}.guest-world-entry button:first-child{flex:1;text-align:left;justify-content:flex-start}.guest-world-entry button:last-child{flex-shrink:0}.guest-welcome .notice{text-align:left}.guest-welcome .fineprint{margin:0 auto;max-width:460px}

/* NEXUS 2 — immersive player hub. Accessible native buttons; no secrets or mocked payment state. */
.hub-shell{max-width:1180px;margin:auto;color:#eafaff}.hub-hero{position:relative;overflow:hidden;min-height:215px;border:1px solid #4c807d77;border-radius:14px;padding:32px;display:flex;align-items:center;justify-content:space-between;gap:22px;background:radial-gradient(ellipse at 95% 10%,#8659c350,transparent 45%),radial-gradient(ellipse at 4% 75%,#2b979647,transparent 49%),linear-gradient(125deg,#123245,#0a192c 82%)}.hub-hero:before{content:'';position:absolute;inset:0;background-image:linear-gradient(#8de2d80e 1px,transparent 1px),linear-gradient(90deg,#8de2d80e 1px,transparent 1px);background-size:38px 38px;mask-image:linear-gradient(90deg,transparent,#000);pointer-events:none}.hub-hero-copy{position:relative;z-index:1}.hub-eyebrow{color:#78f9df;font-weight:850;font-size:10px;letter-spacing:.19em}.hub-pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:#75f8dc;box-shadow:0 0 13px #75f8dc;margin-right:9px}.hub-name-row{display:flex;align-items:center;gap:18px;margin:24px 0 21px}.hub-avatar{width:74px;height:74px;display:grid;place-items:center;flex-shrink:0;font-size:36px;font-weight:900;border-radius:22px;color:#092e38;background:linear-gradient(145deg,#81ffe0,#78a1d9);box-shadow:0 12px 55px #75ffdb44}.hub-name-row h3{font-size:clamp(23px,3vw,34px);letter-spacing:-.05em;line-height:1.1;margin:0 0 8px}.hub-name-row h3 em{font-style:normal;color:#a1fff1}.hub-name-row p{color:#9dbac9;font-size:11px;margin:0}.hub-orb{border-radius:50%;width:170px;height:170px;flex-shrink:0;border:1px solid #b2a0ff99;box-shadow:inset 0 0 48px #b79fff29,0 0 80px #8369dd32;background:radial-gradient(circle at 30% 20%,#95ffe04f,#8372e211,transparent 72%);display:flex;align-items:center;justify-content:center;flex-direction:column}.hub-orb span{font-size:67px;color:#bcafff;text-shadow:0 0 30px #b79aff}.hub-orb small{letter-spacing:.22em;font-size:10px;font-weight:800;color:#d6c5ff}.hub-cta-row{display:flex;gap:11px;flex-wrap:wrap}.hub-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 30px}.hub-stat{display:flex;flex-direction:column;gap:7px;min-height:115px;padding:16px 20px;border:1px solid #568b9170;background:linear-gradient(150deg,#163246,#0e2135);border-radius:11px}.hub-stat-icon{color:#7df0d3;font-size:19px}.hub-stat b{color:#f1fdff;font-size:27px;line-height:1;font-weight:900;letter-spacing:-.04em}.hub-stat small{color:#88a8b6;font-weight:800;font-size:9px;letter-spacing:.09em}.hub-section-head{display:flex;justify-content:space-between;align-items:end;margin:0 0 14px;gap:10px}.hub-section-head h3{font-size:24px;margin:7px 0 0;letter-spacing:-.035em}.hub-world-state{color:#94ffce;font-size:10px;font-weight:850;letter-spacing:.11em}.hub-link-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:28px}.hub-link-grid button{min-height:172px;display:flex;position:relative;flex-direction:column;align-items:flex-start;gap:10px;border:1px solid #45778984;border-radius:11px;background:linear-gradient(155deg,#17374b,#102334);color:#eafcff;padding:20px;text-align:left;cursor:pointer;transition:transform .2s,border-color .2s,background .2s}.hub-link-grid button:hover{transform:translateY(-4px);border-color:#8af6dd;background:linear-gradient(155deg,#25566b,#162d42)}.hub-link-grid button .hub-link-symbol{font-size:27px;color:#88f8e2}.hub-link-grid button strong{font-size:12px;letter-spacing:.08em}.hub-link-grid button small{font-size:11px;color:#9cbac5;line-height:1.55}.hub-link-grid button i{position:absolute;right:16px;top:16px;color:#94ffee;font-style:normal}.hub-columns{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.hub-card{border:1px solid #567c8870;border-radius:12px;padding:24px;background:#0f2334}.hub-card h3{font-size:21px;margin:9px 0 21px}.hub-wallet{background:radial-gradient(ellipse at 100% 0%,#7055a438,transparent 65%),#101f33}.hub-balance{display:flex;align-items:baseline;gap:9px;color:#ecfff7}.hub-balance strong{font-size:clamp(37px,4vw,53px);font-weight:900;letter-spacing:-.07em}.hub-balance span{font-size:16px;font-weight:800;color:#8afce8}.hub-wallet>p{font-size:12px;line-height:1.65;color:#9dbbc6}.hub-wallet-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:23px}.hub-payment-note{font-size:10px;color:#adc7c9;padding:12px 0 0;border-top:1px solid #42647566;margin-top:24px}.hub-wallet .action-btn{font-size:10px}
@media(max-width:890px){.hub-stat-grid,.hub-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-columns{grid-template-columns:1fr}}
@media(max-width:550px){.hub-hero{padding:20px;min-height:unset}.hub-orb{display:none}.hub-name-row{gap:11px}.hub-avatar{width:53px;height:53px;font-size:24px;border-radius:15px}.hub-name-row h3{font-size:23px}.hub-stat-grid,.hub-link-grid{gap:7px}.hub-stat{min-height:95px;padding:12px}.hub-link-grid button{padding:13px;min-height:148px}.hub-card{padding:15px}.hub-section-head h3{font-size:21px}}
