.workspace-header { justify-content: flex-start; }
.workspace-header .resume-link { margin-left: auto; }
.site-footer { justify-content: space-between; color: var(--soft); gap: 12px; }
.icon-notes { --shape: polygon(12% 6%,85% 6%,85% 94%,12% 94%,12% 6%,24% 20%,24% 33%,71% 33%,71% 20%,24% 20%,24% 49%,24% 62%,71% 62%,71% 49%,24% 49%,24% 75%,24% 84%,62% 84%,62% 75%,24% 75%); }
.studio-hero {
  min-height: 328px; display: flex; align-items: center; padding: clamp(18px, 5vw, 48px); border: 1px solid #664982; border-radius: 12px;
  background: linear-gradient(90deg, #1a122be8 0%, #1a122bda 38%, #1a122b3b 83%), url('/media/arcade-plaza.webp') center 19% / cover;
  box-shadow: inset 0 0 80px #18102180;
}
.studio-hero-content { max-width: 580px; }
.studio-hero h2 { font-size: clamp(2.6rem, 6.2vw, 5.8rem); line-height: .92; letter-spacing: -.052em; text-shadow: 0 4px #180c2c; }
.studio-hero p { color: #f2e5ff; margin: 15px 0; max-width: 490px; line-height: 1.5; }
.studio-hero .tool-row { gap: 8px; }
.studio-panels { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr); gap: 20px; margin-top: 22px; align-items: start; }
.studio-panels > section { min-width: 0; }
.studio-project, .lab-card { min-width: 0; background: #231930; border: 1px solid #5b426d; border-radius: 8px; overflow: hidden; }
.studio-project-cover { display: block; background: #38264a; aspect-ratio: 16 / 8; overflow: hidden; }
.studio-project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.studio-project-cover:hover img { transform: scale(1.035); }
.studio-project-copy, .lab-card-copy { padding: 12px; display: grid; gap: 7px; align-content: start; }
.studio-project-copy h3, .lab-card h3 { letter-spacing: -.025em; font-size: 1.22rem; line-height: 1.12; overflow-wrap: anywhere; }
.studio-project-copy h3 a { text-decoration: none; }
.studio-project-copy h3 a:hover, .devlog-meta a:hover { color: var(--lime); }
.studio-project-copy p, .lab-card p { line-height: 1.45; color: var(--soft); font-size: .93rem; }
.studio-project-copy .project-genre, .lab-card .project-genre { color: var(--violet); }
.studio-project-copy .project-actions { margin-top: 3px; }
.project-checksum { font-size: 0.85rem; }
.project-checksum summary { cursor: pointer; }
.project-checksum code { overflow-wrap: anywhere; }
.studio-version { color: var(--cyan); }
.download-archives { margin-top: 22px; }
.project-view, .downloads-view, .news-view { max-width: 1120px; margin-left: 0; }
.project-detail.text-only { grid-template-columns: minmax(0,1fr); }
.project-detail img { max-width: none; aspect-ratio: 16 / 10; }
.project-media-block { margin-top: 22px; }
.project-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.project-media-grid figure { margin: 0; min-width: 0; background: #1f162b; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.project-media-grid img, .project-media-grid video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: contain; background: #120d1c; }
.project-media-grid figcaption { padding: 8px 10px; color: var(--soft); font-size: .875rem; }
.devlog-list { display: grid; gap: 9px; }
.devlog-entry { padding: 13px; border: 1px solid #514064; border-radius: 7px; background: #21182d; min-width: 0; }
.devlog-meta { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 3px; align-items: baseline; margin-bottom: 7px; }
.devlog-meta time { color: var(--soft); font-size: .82rem; }
.devlog-meta a { color: var(--cyan); font-size: .8rem; font-weight: 700; text-decoration: none; }
.devlog-entry h3 { font-size: 1.07rem; line-height: 1.17; }
.devlog-entry p { margin-top: 7px; color: var(--soft); line-height: 1.44; white-space: pre-wrap; }
.lab-banner { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; justify-content: space-between; padding: 20px; margin-bottom: 14px; border: 1px solid #634a82; border-radius: 8px; background: linear-gradient(120deg,#281b40,#17283c); }
.lab-banner h2, .experiment-title { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; }
.lab-banner p, .experiment-description { color: var(--soft); margin-block: 8px; }
.lab-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.lab-card-art { aspect-ratio: 3 / 1; background: radial-gradient(circle at center,#ad91ff 0 4%,#7148c880 6%,transparent 21%), repeating-radial-gradient(ellipse at center,#352758 0 3px,transparent 4px 24px), #1a132b; }
.lab-arcade .lab-card-art { background: url('/media/arcade-plaza.webp') center 24% / cover; }
.lab-card .button { justify-self: start; }
.experiment-frame { width: 100%; display: block; height: clamp(405px,64vh,650px); border: 1px solid #6f568f; border-radius: 9px; background: #151022; margin-top: 10px; }
.experiment-open { margin-top: 10px; }
#arcade-section { margin-top: 18px; }
#arcade-feedback:empty { display: none; }
@media (max-width: 900px) { .studio-panels { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 580px) {
  .studio-hero { min-height: 320px; background-position: 57% top; }
  .studio-hero h2 { font-size: clamp(1.9rem, 9vw, 3.2rem); }
  .studio-hero p { font-size: .95rem; }
  .project-media-grid, .lab-grid { grid-template-columns: minmax(0,1fr); }
  .studio-project-copy { padding: 9px; }
  .studio-project-copy h3 { font-size: 1.05rem; }
  .site-footer { font-size: .82rem; }
}
