
:root{font-family:Inter,Arial,sans-serif;color:#edf2ec;background:#101513;font-synthesis:none;--lime:#ccff67;--muted:#8b9790;--border:#2d3730}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}header{height:88px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1320px)/2));gap:20px}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-weight:850;font-size:20px;letter-spacing:1px}.brand small{display:block;font-size:8px;color:var(--muted);letter-spacing:2px;margin-top:5px}.brand-mark{background:var(--lime);color:#131b13;display:grid;place-items:center;width:43px;height:43px;font-size:29px;font-style:italic;border-radius:9px}.brand-mark span{font-size:18px;position:absolute;margin:14px 0 0 20px}.header-right{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:1.5px;color:#a9b4ad}.status-dot,.live i,footer i{width:6px;height:6px;background:var(--lime);border-radius:50%;display:inline-block}.beta{border:1px solid #48543e;border-radius:5px;color:var(--lime);padding:5px 7px;margin-left:9px}main{max-width:1376px;padding:16px 28px 0;margin:auto}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#9ca99e;font-weight:650}h1 em{font-style:normal;color:var(--lime)}.workspace{display:grid;grid-template-columns:1.38fr 1fr;gap:24px}.studio{height:570px;border:1px solid #374132;border-radius:16px;background:radial-gradient(ellipse at 50% 38%,#344334 0,#202b22 40%,#18201b 75%);position:relative;overflow:hidden}.studio-top{position:absolute;left:24px;right:24px;top:22px;display:flex;justify-content:space-between;z-index:2;font-size:9px;letter-spacing:1.4px;color:#b0bcae;pointer-events:none}.live{display:flex;gap:8px;align-items:center}#viewport{position:absolute;inset:0;touch-action:none}#viewport canvas{display:block;width:100%;height:100%}#loading{position:absolute;inset:40% 25% auto;background:#111d18e6;padding:18px;border-radius:12px;text-align:center;font-size:13px;z-index:5}#loading[hidden]{display:none}.view-controls{position:absolute;top:56px;left:50%;transform:translateX(-50%);display:flex;gap:3px;background:#101712c9;border:1px solid #3c4938;border-radius:30px;padding:4px;white-space:nowrap}.view-controls button{border:0;border-radius:24px;padding:9px 12px;background:none;color:#a5b19f;font-size:10px}.view-controls button.active{background:#d3dfc6;color:#20291d}.view-controls #rotate{font-size:19px;padding:3px 11px}.view-controls #rotate[aria-pressed=true]{color:var(--lime)}.studio-bottom{position:absolute;left:25px;right:25px;bottom:46px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.studio-bottom h2{font-size:25px;letter-spacing:-.6px;margin:8px 0 0}.studio-bottom .eyebrow{font-size:8px}.studio-bottom button{pointer-events:auto;background:#ffffff0a;border:1px solid #5b6958;border-radius:50%;color:#dae1d5;width:33px;height:33px;font-size:23px}.gesture{position:absolute;bottom:17px;left:0;right:0;text-align:center;font-size:10px;color:#85927e;pointer-events:none}.gesture span{margin:0 7px}.catalog{min-width:0;height:570px;display:flex;flex-direction:column}.catalog-title{display:flex;align-items:center;justify-content:space-between;margin:4px 0 18px}.catalog h2{font-size:19px;margin:0;font-weight:550;letter-spacing:-.4px}.catalog-title>span{font-size:10px;color:var(--muted)}.search{display:flex;align-items:center;gap:9px;padding:0 12px;height:43px;border:1px solid #344036;border-radius:8px;background:#19211b}.search>span{font-size:26px;color:#8e9c8c}.search input{color:#eef1ec;border:0;background:none;outline:0;min-width:0;flex:1;font-size:12px}.search input::placeholder{color:#778775}.search kbd{border:1px solid #384432;color:#6f7c6a;border-radius:3px;padding:1px 5px;font-size:10px}.filters{display:flex;gap:6px;padding:14px 0 17px}.filters button{border:1px solid var(--border);border-radius:20px;background:none;color:#9ba898;padding:7px 13px;font-size:11px}.filters button.active{background:var(--lime);border-color:var(--lime);color:#20300d}.items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:auto;padding:0 7px 8px 0;scrollbar-width:thin;scrollbar-color:#45513c transparent;align-content:start;flex:1}.item{text-align:left;position:relative;border:1px solid #2c382e;border-radius:10px;background:#1a231d;color:#e4eade;padding:0;overflow:hidden;min-height:145px;transition:border-color .15s,background .15s}.item:hover{border-color:#718259;background:#243022}.item.selected{border-color:var(--lime);background:#293621}.item img{display:block;width:100%;height:104px;object-fit:contain}.item .thumb-placeholder{height:104px;display:grid;place-items:center;font-size:34px;font-weight:800;color:#586d4b;background:radial-gradient(#2f3f27,transparent)}.item img[hidden],.item .thumb-placeholder[hidden]{display:none}.item .item-name{display:block;margin:0 10px 4px;font-size:11px;font-weight:600}.item .item-type{display:block;margin:0 10px 10px;font-size:8px;color:#84957e;letter-spacing:.6px}.item .check{position:absolute;right:7px;top:7px;background:var(--lime);border-radius:50%;width:18px;height:18px;color:#1c2c0a;text-align:center;font-size:12px;line-height:18px}.details{border:1px solid var(--border);background:#19211b;border-radius:12px;display:flex;align-items:center;gap:20px;padding:19px 23px;margin-top:18px;min-height:90px}.details>div:first-child{flex:1}.label{display:block;font-size:8px;letter-spacing:1.5px;color:#85947d;margin-bottom:7px}.details strong{font-size:14px;font-weight:550}.details #detail-file{font-size:10px;color:#889781;display:block;margin-top:5px}.save{border:0;background:var(--lime);color:#1c2b0d;padding:14px 20px;border-radius:8px;font-size:12px;font-weight:650;min-width:188px;display:flex;justify-content:space-between;gap:20px}.save:disabled{opacity:.45;cursor:wait}.details select{background:#283321;color:#e7eedf;border:1px solid #4e5e42;border-radius:7px;padding:8px;max-width:160px}#variants label{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:6px}#toast{min-height:14px;font-size:11px;color:var(--lime);margin:9px 0 0;text-align:right}footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 0 28px;font-size:9px;letter-spacing:.3px;color:#6d7f6a}footer i{margin-right:6px;width:4px;height:4px}footer a{color:#a0b291;text-decoration:none}#empty{color:var(--muted);font-size:13px;padding:20px}button:disabled{opacity:.5}
@media(min-width:1500px){.studio,.catalog{height:650px}.item img,.item .thumb-placeholder{height:126px}}
@media(max-width:800px){header{height:66px;padding:0 18px}.brand{font-size:16px}.brand-mark{height:35px;width:35px;font-size:25px}.brand small{font-size:7px}.header-right{font-size:8px;gap:6px}.beta{margin-left:0}main{padding:10px 16px 0}.workspace{grid-template-columns:1fr;gap:25px}.studio{height:470px}.catalog{height:480px}.catalog-title{margin-bottom:14px}.items{grid-template-columns:repeat(3,minmax(0,1fr))}.details{padding:16px;gap:14px;flex-wrap:wrap}.details .save{width:100%}.details select{max-width:138px}.item img,.item .thumb-placeholder{height:100px}.item{min-height:141px}.studio-top{left:18px;right:18px}.studio-bottom{left:18px;right:18px}footer{flex-wrap:wrap;justify-content:center;gap:13px;font-size:8px}footer>span:nth-child(2){order:3;width:100%;text-align:center}#toast{text-align:center;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto;transition:none!important}}

/* v3: the studio remains in view while the mobile catalogue scrolls below. */
.header-label{font-size:9px;letter-spacing:1.5px;color:var(--muted)}.camera-views{position:absolute;left:18px;top:107px;display:flex;gap:4px;flex-wrap:wrap}.camera-views button{border:1px solid #475440;background:#172218d9;color:#a4b298;border-radius:6px;padding:7px 9px;font-size:10px}.camera-views button.active{color:var(--lime);border-color:#8ba956}.item{min-height:176px}.item-pick{width:100%;display:block;border:0;background:none;color:inherit;padding:0;text-align:left;cursor:pointer}.item img{height:132px;background:radial-gradient(ellipse,#34412b,transparent)}.item .check{left:7px;right:auto}.favorite{position:absolute;right:6px;top:6px;z-index:1;width:32px;height:32px;border:1px solid #546246;border-radius:50%;background:#172116ed;color:#bbcab0;font-size:20px}.favorite[aria-pressed=true]{color:var(--lime);border-color:var(--lime)}.filters{overflow-x:auto;flex-shrink:0;scrollbar-width:thin}.filters button{white-space:nowrap;flex-shrink:0}.tools-panel{margin-top:18px;border:1px solid var(--border);border-radius:12px;background:#19211b;padding:18px 23px}.animation-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.animation-tools label{font-size:11px;color:#a8b59e}.animation-tools select,.animation-tools button{padding:9px 12px;border:1px solid #485b3a;border-radius:7px;background:#26331f;color:#edf4e8;font-size:12px;min-height:38px}.animation-tools button[aria-pressed=true]{color:var(--lime);border-color:var(--lime)}.compare-tools{border-top:1px solid #34432b;margin-top:16px;padding-top:16px;display:flex;gap:18px;align-items:center;justify-content:space-between}.compare-tools p{font-size:10px;line-height:1.5;color:var(--muted);margin:0}.compare-slots{display:flex;gap:10px;flex:1;max-width:500px}.compare-slots button{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #44563a;background:#202c1b;color:#b0c1a4;border-radius:8px;min-width:0;flex:1;text-align:left}.compare-slots button[aria-pressed=true]{border-color:var(--lime);color:var(--lime);background:#2d3c20}.compare-slots b{display:grid;place-items:center;width:23px;height:23px;border:1px solid currentColor;border-radius:5px;font-size:12px;flex-shrink:0}.compare-slots span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.action-buttons{display:flex;gap:10px}.secondary{border:1px solid #526643;background:transparent;color:#d9e8cd;border-radius:8px;padding:12px 16px;font-size:12px;cursor:pointer}.save{text-decoration:none;align-items:center;justify-content:center}.details .save{min-width:170px}dialog{background:#172016;color:#e7efdf;border:1px solid #50613d;border-radius:16px;padding:20px;max-width:480px;width:calc(100% - 28px);max-height:94dvh;overflow:auto}dialog::backdrop{background:#050b06d9}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.dialog-top h2{font-size:19px;margin:0}.dialog-top button{border:0;background:none;color:#c2cdb9;font-size:27px;padding:0 6px}.photo-actions{display:flex;gap:10px;margin-top:15px}.photo-actions>*{flex:1}#photo{width:100%;max-height:60dvh;object-fit:contain;border-radius:9px}dialog p{font-size:11px;line-height:1.5;color:#a1b294}#toast{min-height:18px;line-height:1.5}body:has(dialog[open]){overflow:hidden}
@media(max-width:800px){.workspace{display:block}.studio{position:sticky;top:0;z-index:5;height:clamp(390px,52svh,500px);margin:0 -6px 20px;isolation:isolate;box-shadow:0 8px 22px #101513}.catalog{height:auto;min-height:300px}.catalog-title{margin-top:0}.items{overflow:visible;padding-right:0;flex:none;grid-template-columns:repeat(3,minmax(0,1fr))}.item{min-height:145px}.item img{height:104px}.item .item-name{font-size:10px;margin-left:8px;margin-right:5px}.item .item-type{font-size:7px;margin-left:8px}.favorite{width:29px;height:29px;font-size:18px}.studio-top{top:13px;font-size:8px}.view-controls{top:34px;z-index:3}.view-controls button{padding:8px 10px}.camera-views{top:79px;left:12px;right:12px;z-index:3;gap:4px}.camera-views button{font-size:9px;padding:6px 8px}#viewport{top:118px}.studio-bottom{bottom:29px}.studio-bottom h2{font-size:20px;margin-top:4px}.studio-bottom .eyebrow{font-size:7px}.gesture{font-size:8px;bottom:10px}.tools-panel{padding:16px}.animation-tools{gap:8px}.animation-tools label{font-size:10px}.animation-tools select,.animation-tools button{font-size:11px;padding:8px}.compare-tools{display:block}.compare-slots{margin-top:12px}.action-buttons{width:100%;flex-wrap:wrap}.action-buttons>*{flex:1}.details .save{width:auto}.details{margin-top:12px}.header-label{font-size:8px}header{height:58px}.speed-label{margin-left:0}}
@media(max-width:360px){.items{grid-template-columns:repeat(2,minmax(0,1fr))}.animation-tools .speed-label{display:none}}


/* Model library: lightweight previews, separate filters, one active 3D model. */

.catalog-tabs{display:flex;gap:5px;padding:4px;background:#18211a;border:1px solid #344030;border-radius:11px;flex-shrink:0;margin-bottom:15px}.catalog-tabs>button{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:7px;background:none;color:#93a08e;min-height:38px;font-size:12px;font-weight:600}.catalog-tabs>button[aria-selected=true]{background:#344529;color:#e9f5d9}.catalog-tabs>button span{font-size:10px;font-weight:400;color:#9baa8b;border:1px solid #46523d;border-radius:5px;padding:2px 5px}.catalog-tabs>button[aria-selected=true] span{color:var(--lime);border-color:#5c733e}.catalog-panel{display:flex;flex-direction:column;min-height:0;flex:1}.catalog-panel[hidden],.model-empty[hidden],.model-check[hidden]{display:none}.catalog-panel .search{flex-shrink:0}.catalog-panel .catalog-title{margin:0 0 12px}.model-toolbar{flex-shrink:0}.model-filters{padding:12px 0 10px}.model-filters button{padding:7px 10px;font-size:10px}.model-sort-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:9px;color:#83947a}.model-sort-row b{font-weight:500;color:#a5b69b}.model-sort-row label{display:flex;align-items:center;gap:7px}.model-sort-row select{max-width:145px;background:#1c281b;color:#b9c7af;border:1px solid #3a4931;border-radius:6px;padding:5px 7px;font-size:10px}.model-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:auto;min-height:0;align-content:start;flex:1;padding:0 6px 7px 0;scrollbar-width:thin;scrollbar-color:#45513c transparent}.model-card{position:relative;min-width:0;border:1px solid #31402f;border-radius:11px;background:#1b251d;overflow:hidden;transition:border-color .15s,background .15s}.model-card:hover{background:#253020;border-color:#778d5b}.model-card.selected{border-color:var(--lime);background:#283820}.model-pick{display:block;width:100%;height:100%;background:none;border:0;color:#eaf0e4;text-align:left;padding:0 0 10px}.model-picture{height:140px;background:radial-gradient(ellipse at 50% 66%,#3b4b31,transparent 72%);display:grid;place-items:center;overflow:hidden}.model-picture img{width:100%;height:100%;object-fit:contain;display:block}.model-picture img[hidden]{display:none}.model-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:29px;font-size:11px;line-height:1.35;font-weight:600;margin:3px 10px 4px}.model-genre{display:block;margin:0 10px 8px;color:#8c9e81;font-size:8px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-card-status{display:block;margin:0 10px;font-size:8px;color:#a4b797}.model-card.selected .model-card-status{color:var(--lime)}.model-check{position:absolute;left:7px;top:7px;display:grid;place-items:center;pointer-events:none;width:21px;height:21px;border-radius:50%;background:var(--lime);color:#243216;font-size:13px}.model-favorite{position:absolute;top:6px;right:6px;width:30px;height:30px;border:1px solid #536344;border-radius:50%;background:#182417ed;color:#bbcab0;font-size:20px;line-height:1}.model-favorite[aria-pressed=true]{color:var(--lime);border-color:var(--lime)}.model-card.is-loading{border-color:var(--lime);opacity:.7}.model-card.is-loading .model-card-status{color:var(--lime)}.model-image-fallback{font-size:30px;font-weight:800;color:#9bb482}.model-empty{text-align:center;border:1px dashed #394a31;border-radius:12px;padding:32px 18px;color:#93a38a;margin-top:4px}.model-empty>span{font-size:38px;color:#a9c485}.model-empty h3{font-size:15px;color:#d7e2cd;margin:12px 0 8px}.model-empty p{font-size:11px;line-height:1.6;max-width:270px;margin:0 auto 18px}.model-empty .secondary{font-size:11px;padding:10px 15px}
@media(min-width:1500px){.model-picture{height:162px}}
@media(max-width:800px){.catalog-tabs{margin-bottom:15px;scroll-margin-top:12px}.catalog-tabs>button{font-size:12px;min-height:40px}.model-items{overflow:visible;flex:none;padding-right:0;gap:10px}.model-picture{height:130px}.model-name{font-size:11px;margin-left:9px;margin-right:7px}.model-genre{margin-left:9px;margin-right:7px;font-size:8px}.model-card-status{margin-left:9px;font-size:8px}.model-sort-row{margin-bottom:12px}.model-favorite{width:29px;height:29px}.model-catalog-open .catalog{scroll-margin-top:0}.model-catalog-open .model-items{padding-top:4px}.model-filters{padding-bottom:11px}.model-sort-row{font-size:9px}.model-sort-row label{gap:5px}}
@media(max-width:360px){.model-items{grid-template-columns:repeat(2,minmax(0,1fr))}.model-picture{height:150px}}
.model-card{min-height:220px}.model-filters{scrollbar-color:#45513c transparent}@media(max-width:800px){.model-card{min-height:210px}}@media(max-width:600px){.header-label{display:none}}


.brand-logo{width:44px;height:44px;flex:none;display:block}@media(max-width:800px){.brand-logo{width:34px;height:34px}}


.back-to-top{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:20;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 16px;border:1px solid #ddff98;border-radius:28px;background:var(--lime);color:#1e2c13;font-size:12px;font-weight:650;box-shadow:0 5px 24px #0007;cursor:pointer}.back-to-top>span:first-child{font-size:23px;line-height:1}.back-to-top:hover{background:#dcff98}.back-to-top[hidden]{display:none}

/* Keep the amount and billing period together when the model name is long. */
.studio-top {
  gap: 12px;
  align-items: baseline;
}
.live {
  flex-shrink: 0;
}
.model-identity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 10px;
  min-width: 0;
  max-width: 70%;
  text-align: right;
}
#model-label {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-prices {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px 5px;
  max-width: 100%;
}
.studio-price {
  flex-shrink: 0;
  padding: 2px 6px;
  border: 1px solid #668748;
  border-radius: 7px;
  background: #26371f;
  color: #e1ffa9;
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
}
#model-price {
  animation: model-price-pulse 2.2s ease-in-out infinite;
}
.studio-prices[hidden], .studio-price[hidden] {
  display: none;
}
.has-three-prices .studio-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
}
.has-three-prices .model-identity {
  display: contents;
}
.has-three-prices .studio-prices {
  grid-column: 1 / -1;
}
@keyframes model-price-pulse {
  0%, 100% {
    border-color: #668748;
    box-shadow: 0 0 0 #ccff6700;
  }
  50% {
    border-color: #bde966;
    box-shadow: 0 0 12px #ccff6760;
  }
}
@media (max-width: 800px) {
  .model-identity {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }
  .studio-price {
    font-size: 9px;
    padding: 2px 4px;
  }
  .has-preview-prices .view-controls {
    top: 56px;
  }
  .has-preview-prices .camera-views {
    top: 101px;
  }
  .has-preview-prices #viewport {
    top: 140px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #model-price {
    animation: none;
  }
}
@media (max-width: 360px) {
  .has-three-prices .view-controls { top: 64px; }
  .has-three-prices .camera-views { top: 109px; }
  .has-three-prices #viewport { top: 148px; }
}

.catalog-tabs > button {
  min-width: 0;
}

#weapon-items img {
  object-fit: contain;
}

#weapon-items .item-name {
  overflow-wrap: anywhere;
}
.catalog-item-price {
  display: block;
  margin: 0 8px 8px;
  color: #e1ffa9;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
#items .item-type {
  margin-bottom: 4px;
}

.details {
  flex-wrap: wrap;
}

.details > div:first-child {
  flex: 1 1 150px;
  overflow-wrap: anywhere;
}

#variants:empty {
  display: none;
}

.purchase-selection {
  display: grid;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 0;
}

#purchase-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#purchase-options[hidden],
#purchase-options > button[hidden] {
  display: none;
}

#purchase-options > button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #526643;
  border-radius: 7px;
  background: #202c1b;
  color: #d9e8cd;
  font-size: 12px;
}

#purchase-options > button[aria-pressed="true"] {
  border-color: var(--lime);
  background: #2d3c20;
  color: var(--lime);
}

.purchase-summary {
  min-width: 0;
  overflow-wrap: anywhere;
}

.purchase-summary #purchase-name {
  display: block;
}

#purchase-price:not([hidden]) {
  display: block;
  margin-top: 4px;
  color: #d6ebbb;
  font-size: 12px;
  font-weight: 550;
}

.purchase-selection #buy {
  min-width: 0;
  min-height: 44px;
}

#buy[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
}

#loading {
  inset-inline: 12px;
  max-width: 320px;
  margin-inline: auto;
}

#loading-message {
  display: block;
  line-height: 1.45;
}

#retry-model:not([hidden]) {
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  pointer-events: auto;
}

@media (max-width: 800px) {
  .catalog-tabs > button {
    gap: 4px;
  }

  .catalog-tabs > button span {
    padding-inline: 3px;
  }
}
