/* Browser tools as projects (v2): Projects page groups, tool project pages, notes on the download twins */

/* Projects page: three groups (with Streamer.bot / without / in the browser) */
.so-project-group{margin:0 0 6px}
.so-project-group .tools-category-heading{margin:26px 0 14px}
.so-project-group:first-child .tools-category-heading{margin-top:8px}
.so-project-group .tools-category-heading p{margin:4px 0 0;opacity:.75}

/* card picture: a real screenshot of the tool */
.so-card-shot{position:relative;overflow:hidden}
.so-card-shot{background:#1b1724}
.so-card-shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.so-card-icon img{object-fit:contain;padding:16px;filter:drop-shadow(0 6px 18px rgba(155,99,255,.45))}

/* tool project page: the tool itself sits in the page; it reports its own height (stream-tools.js) */
.so-tool-panel{scroll-margin-top:84px}
.so-tool-panel>p:not(.eyebrow){margin:0 0 14px}
.so-tool-frame{display:block;width:100%;height:900px;border:0;border-radius:var(--radius,14px);background:transparent;color-scheme:normal}
/* 2026-10-23: hidden until stream-tools.js has the tool's look + final size (it jumped big/small on slow connections), then one fade-in */
.so-tool-frame{opacity:0;transition:opacity .35s ease;animation:so-tool-show .35s ease 12s forwards}
.so-tool-frame.so-shown{opacity:1;animation:none}
@keyframes so-tool-show{to{opacity:1}}
.so-project .so-kofi{white-space:nowrap}
.so-project .real-project-information ol{margin:0;padding-left:1.3em}
.so-project .real-project-information li+li{margin-top:6px}
.so-rights-panel p{margin:0;opacity:.8}

/* note box on the download projects that have a browser twin */
.so-note{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin:16px 0;padding:14px 18px;border:1px solid rgba(155,99,255,.45);border-radius:var(--radius,14px);background:linear-gradient(135deg,rgba(155,99,255,.14),transparent 60%),var(--panel,#120d22)}
.so-note strong{white-space:nowrap}
.so-note a{color:#c9a8ff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.so-note a:hover{color:#fff}

@media (max-width:900px){
  .so-project-group .project-layout-filler{display:none}
}
@media (max-width:640px){
  .so-project .real-project-information{grid-template-columns:1fr !important}
  .so-note strong{white-space:normal}
  .so-tool-frame{border-radius:10px}
}

/* download version panel on the tool pages (2026-10-20) */
.so-download-panel ul{margin:8px 0 0;padding-left:1.3em}
.so-download-panel li+li{margin-top:6px}
.so-download-actions{margin-top:14px;display:flex;flex-wrap:wrap;gap:var(--inner-gap,10px)}

/* info boxes under the tool (2026-10-21, user: no half-empty boxes): "How it works" is long, "Requirements" and
   "Free to use" are short -> How on the left, the two short ones stacked on the right, both sides end level */
@media (min-width:901px){
  .so-project .real-project-information:has(>.so-rights-panel),html body .real-project-information:has(>.catmint-wheel-privacy-panel){grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;grid-auto-flow:row dense!important;align-items:stretch!important}
  .so-project .real-project-information:has(>.so-rights-panel)>:first-child,html body .real-project-information:has(>.catmint-wheel-privacy-panel)>:first-child{grid-row:span 2!important}
}

/* download box (2026-10-21): Browser Source + Dock side by side, what a dock is, a real picture of that tool's dock */
.so-download-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:var(--section-gap,18px);align-items:start}
.so-download-main>:first-child{margin-top:0}
.so-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--inner-gap,10px);margin:12px 0 0}
.so-file{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid rgba(202,174,255,.28);border-radius:12px;background:rgba(155,99,255,.06)}
.so-file strong{color:#fff;font-size:1.02rem}
.so-file span{color:var(--muted,#c9b6dc);line-height:1.45}
.so-file-dock{border-color:rgba(196,126,255,.6);background:rgba(155,99,255,.12)}
.so-dock-what{margin:12px 0 0;color:var(--muted,#c9b6dc);line-height:1.5}
.so-dock-shot{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px}
.so-dock-shot img{display:block;width:100%;max-width:300px;height:auto;border:1px solid rgba(202,174,255,.3);border-radius:10px}
.so-dock-shot figcaption{font-size:.85rem;color:var(--muted,#c9b6dc)}
@media (max-width:760px){.so-download-panel{grid-template-columns:1fr}.so-files{grid-template-columns:1fr}.so-dock-shot img{max-width:260px}}
/* 2026-10-24 owner rule - no empty space: an info box stretched by its row spreads its list over the full height (no empty strip at the bottom) */
.project-info-panel{display:flex!important;flex-direction:column!important}
.project-info-panel>:is(ol,ul):last-child{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-evenly;margin-bottom:0}
/* 2026-10-30 owner (no empty space): the tool picture fills the header's left column to the height of the channel box */
.so-project .real-project-header{align-items:stretch}
.so-project .real-project-header>div:first-child{display:flex;flex-direction:column;flex:1;min-width:0;max-width:none}
.so-head-shot{flex:1 1 0;min-height:220px;width:100%;object-fit:cover;object-position:center 70%;border-radius:14px;border:1px solid var(--line);margin-top:14px;display:block}
@media (max-width:900px){.so-head-shot{flex:none;min-height:0;aspect-ratio:720/378;height:auto}}

/* 2026-11-02 owner: no picture on top (the working tool is right below); header right column stays as it was */
/* the dock right next to the working tool; it stays in view while the settings scroll */
.so-tool-row{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.so-tool-row:not(:has(.so-tool-dock)){grid-template-columns:1fr}
.so-tool-dock{margin:0;position:sticky;top:90px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#080510}
.so-tool-dock img{display:block;width:100%;height:auto}
.so-tool-dock figcaption{padding:8px 10px;text-align:center;font-weight:800;color:#f3ddff;font-size:14px}
@media (max-width:900px){.so-tool-row{grid-template-columns:1fr}.so-tool-dock{position:static;max-width:320px;margin:0 auto}}

/* 2026-11-02 owner: title + hearts top; text + How it works | the game | its dock; the setup under (download box with its channel field further down) */
.so-project .real-project-header.so-head{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 24px;align-items:start}
.so-head .real-project-main-actions{display:contents!important}
.so-head .so-head-title{grid-column:1/5;grid-row:1}
.so-head .project-engagement{grid-column:5/7;grid-row:1;justify-self:end;align-self:start;margin:0!important}
.so-head .so-head-text{grid-column:1/3;grid-row:2}
.so-head .so-head-how{grid-column:1/3;grid-row:3}
.so-head .so-head-preview{grid-column:3/6;grid-row:2/span 2;justify-self:center;width:100%;max-width:min(720px,calc(520px * (var(--ar))))}
.so-head .so-tool-dock{grid-column:6/7;grid-row:2/span 2;position:static}
.so-head-how{border:1px solid var(--line);border-radius:14px;padding:14px 18px;background:rgba(14,9,24,.6)}
.so-head-how h3{margin:4px 0 8px;font-size:17px}.so-head-how ol{margin:0;padding-left:22px}.so-head-how li{margin:4px 0;font-size:15px}
.so-head-preview iframe,.so-head-preview img{display:block;width:100%;aspect-ratio:var(--ar);height:auto;border:0;background:transparent;color-scheme:normal;object-fit:contain}
@media (max-width:1100px){.so-project .real-project-header.so-head{grid-template-columns:minmax(0,1fr) 190px}
  .so-head .so-head-title{grid-column:1/2;grid-row:1}.so-head .project-engagement{grid-column:2/3;grid-row:1}
  .so-head .so-head-text{grid-column:1/3;grid-row:2}.so-head .so-head-preview{grid-column:1/2;grid-row:3}.so-head .so-tool-dock{grid-column:2/3;grid-row:3}
  .so-head .so-head-how{grid-column:1/3;grid-row:4}}
@media (max-width:560px){.so-project .real-project-header.so-head{grid-template-columns:1fr}
  .so-head .so-head-title,.so-head .project-engagement,.so-head .so-head-text,.so-head .so-head-preview,.so-head .so-tool-dock,.so-head .so-head-how{grid-column:1/2;grid-row:auto}
  .so-head .project-engagement{justify-self:start}.so-head .so-tool-dock{max-width:260px;justify-self:center}}
.so-tool-dock figcaption strong{display:block}
.so-tool-dock figcaption span{display:block;margin-top:4px;font-weight:600;font-size:13px;line-height:1.35;color:#d9c8f0;text-align:left}
/* the setup dropdown: just a thin chevron, no background; it turns up when open (owner 2026-11-02) */
.so-tool-drop>summary{list-style:none;cursor:pointer;position:relative;padding-right:64px}
.so-tool-drop>summary::-webkit-details-marker{display:none}
.so-tool-drop>summary::after{content:"";position:absolute;right:16px;top:50%;width:20px;height:20px;margin-top:-14px;border:solid #e9d5ff;border-width:0 4px 4px 0;border-radius:3px;transform:rotate(45deg);transition:transform .25s,margin-top .25s,filter .2s}
.so-tool-drop>summary:hover::after{filter:drop-shadow(0 0 6px rgba(192,132,252,.9))}
.so-tool-drop[open]>summary::after{transform:rotate(-135deg);margin-top:-4px}
.so-tool-drop[open]>summary{margin-bottom:14px}

/* Streamlabs / other app tick box under How it works (2026-11-03) */
.so-head-how .so-app{display:flex;gap:8px;align-items:center;margin-top:12px;cursor:pointer;font-weight:700}
.so-head-how .so-app input{width:18px;height:18px;accent-color:#8d31f5;margin:0}
.so-head-how .so-app-steps{display:none}
.so-head-how:has(.so-app input:checked) .so-app-steps{display:block}
.so-head-how:has(.so-app input:checked) > ol:not(.so-app-steps){display:none}
