/* The studio pages share the original neon palette, wordmark and display type. */
:root { --acid: var(--cyan); }
.section { padding-block: clamp(32px, 4.5vw, 68px); }
.section-head { margin-bottom: clamp(16px, 2.4vw, 30px); }
.page-intro { padding-block: clamp(36px, 5.5vw, 80px); }
.section-head h2, .page-intro h1, .closing h2 { letter-spacing: -.025em; }
.game-section .game-card, .showcase-group, .concept-list { align-self: start; }
.game-section .game-card { min-height: 0; height: auto; }
.arc-feature { padding-top: clamp(12px, 1.6vw, 24px); }
.race-banner { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; min-height: clamp(286px, 27vw, 376px); border-radius: 14px; background: #23122b; text-decoration: none; }
.race-banner picture, .race-banner picture::after { position: absolute; inset: 0; z-index: -1; }
.race-banner picture img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 54%; }
.race-banner picture::after { content: ''; z-index: 0; background: linear-gradient(90deg,#1d0b25 1%,#240d2bec 23%,#28112d99 39%,transparent 68%),linear-gradient(0deg,#140a1e45,transparent 46%); }
.race-copy { padding: 32px clamp(26px, 4.4vw, 66px); color: #fff9f4; }
.race-copy h1 { max-width: none; font: italic 900 clamp(3.7rem, 6.5vw, 6.4rem)/.82 var(--display); letter-spacing: -.025em; }
.race-copy h1 span { display: block; white-space: nowrap; }
.race-copy p { margin: 16px 0 20px; font-weight: 500; font-size: 1rem; max-width: 33ch; }
.start-race { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 20px; border-radius: 7px; background: var(--acid); color: #1a2112; font-size: 1rem; font-weight: 780; }
.play-symbol { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; margin-left: 2px; display: inline-block; }
.race-banner:hover .start-race, .race-banner:focus-visible .start-race { background: #eeffbe; }
.game-library { padding-block: clamp(24px, 3.6vw, 53px) clamp(36px, 5vw, 80px); }
.shelf-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.shelf-heading h2, .shelf-heading h1, .studio-strip h2 { margin: 0; font: italic 900 clamp(2.15rem, 4.1vw, 4.05rem)/.98 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.shelf-heading h2 span, .studio-strip h2 span { color: var(--acid); }
.shelf-count, .section-action { font-size: .875rem; font-weight: 590; }
.shelf-count { color: var(--muted); }
.game-filters { display: flex; flex-wrap: wrap; gap: 2px 5px; margin: 13px 0 15px; }
.game-filters button { background: transparent; color: #bfbac6; border: 1px solid transparent; border-radius: 24px; padding: 7px 14px; min-height: 44px; font-size: .875rem; font-weight: 620; }
.game-filters button[aria-pressed=true] { background: #302e35; border-color: #55515c; color: white; }
.game-filters button:hover { color: white; background: #28262d; }
.game-shelf { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px 16px; }
.game-filters[hidden]+.game-shelf { margin-top: 20px; }
.game-tile { display: block; min-width: 0; align-self: start; text-decoration: none; border-radius: 8px; }
.tile-image { aspect-ratio: 8 / 5; position: relative; overflow: hidden; border-radius: 9px; background: #26232c; box-shadow: inset 0 0 0 1px #ffffff17; }
.tile-image img, .template-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 190ms ease-out; }
.tile-play { position: absolute; bottom: 9px; right: 9px; display: grid; place-items: center; background: #16131cdb; color: #fff; width: 29px; height: 29px; border-radius: 50%; border: 1px solid #ffffff68; }
.tile-play .play-symbol { border-top-width: 4px; border-bottom-width: 4px; border-left-width: 6px; }
.tile-copy { padding: 10px 1px 0; }
.tile-copy h3, .template-meta h3 { margin: 0; color: #fffaf7; font: 720 1.13rem/1.2 Inter,system-ui,sans-serif; letter-spacing: -.045em; }
.tile-copy p { margin: 4px 0 0; font-size: .875rem; line-height: 1.38; color: #c2bec9; }
@media (hover: hover) {
  .game-tile:hover img, .template-card:hover img { transform: scale(1.035); }
  .game-tile:hover .tile-play { color: #1b2010; background: var(--acid); border-color: var(--acid); }
}
.template-band { background: #f0effa; color: #201b36; padding: clamp(36px,5vw,74px) 0; }
.template-band .shelf-heading h2 span, .template-band .shelf-heading h1 span { color: #8b205d; }
.template-lead .shelf-heading h1 { font-size: clamp(2.7rem,6vw,5.5rem); }
.template-band .section-action { color: #413440; text-underline-offset: 4px; }
.gallery-intro { margin: 10px 0 22px; color: #544e55; font-size: 1rem; }
.template-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px 18px; }
.template-card { color: inherit; border-radius: 8px; text-decoration: none; }
.template-card:focus-visible, .template-band a:focus-visible { outline-color: #7d1850; }
.template-art { border-radius: 9px; aspect-ratio: 850/476; overflow: hidden; background: #d7d0c9; }
.template-meta { padding-top: 10px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.template-meta p { color: #5f555c; font-size: .875rem; margin: 0 0 3px; }
.template-meta h3 { color: #221d22; }
.open-template { color: #5b2143; font-size: .875rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.studio-strip { background: #1d1b23; padding-block: clamp(30px,4vw,58px); }
.studio-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.studio-row p { color: var(--muted); margin-top: 10px; }
.studio-links { display: grid; gap: 6px; }
.studio-links a { font-size: .9rem; min-height: 34px; display: flex; align-items: center; }
.site-footer { padding-block: 32px; }
@media (max-width: 900px) {
 .game-shelf { grid-template-columns: repeat(3, minmax(0,1fr)); }
 .template-meta { display: block; }
 .open-template { display: inline-block; margin-top: 5px; }
}
@media (max-width: 720px) {
 .header-row { min-height: 56px; }
 .header-row nav { padding-bottom: 6px; }
 .studio-row { display: block; }
 .studio-links { margin-top: 16px; gap: 0; }
 .studio-links a { min-height: 44px; }
 .template-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
 .arc-feature { padding-top: 10px; }
 .race-banner { min-height: 246px; align-items: flex-end; border-radius: 10px; }
 .race-banner picture img { object-position: 67% 50%; }
 .race-banner picture::after { background: linear-gradient(90deg,#1d0c26dd,transparent 85%),linear-gradient(0deg,#1a0b23ee 0%,#1b0b2255 40%,transparent 72%); }
 .race-copy { padding: 21px; }
 .race-copy h1 { font-size: clamp(2.7rem,10.6vw,3.8rem); line-height: .89; }
 .race-copy p { margin: 9px 0 13px; font-size: .875rem; }
 .start-race { min-height: 44px; padding: 10px 16px; }
 .game-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 11px; }
 .game-filters { gap: 0; margin: 8px 0 11px; }
 .game-filters button { padding: 7px 9px; font-size: .82rem; }
 .tile-copy { padding: 8px 0 0; }
 .tile-copy h3 { font-size: 1rem; }
 .tile-copy p { font-size: .82rem; margin-top: 3px; line-height: 1.32; }
 .tile-image { border-radius: 7px; }
 .tile-play { bottom: 6px; right: 6px; width: 25px; height: 25px; }
 .template-band .shelf-heading { align-items: start; flex-direction: column; gap: 8px; }
 .template-grid { grid-template-columns: 1fr; gap: 23px; }
 .template-meta { display: flex; }
 .template-meta h3 { font-size: 1.14rem; }
 .open-template { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
 .tile-image img, .template-art img { transition: none; }
 .game-tile:hover img, .template-card:hover img { transform: none; }
}
.dru-banner { background: #132241; }
.dru-banner picture { left: 22%; }
.dru-banner picture img { object-position: 58% 31%; }
.dru-banner picture::after { background: linear-gradient(90deg, #132241 0%, #13224175 18%, transparent 44%); }
.dru-banner .race-copy { max-width: 52%; padding-block: 26px; }
.dru-banner h1 { font-size: clamp(4.2rem, 7.6vw, 7.3rem); }
.dru-banner h1 span { display: block; }
.dru-banner .race-copy p { max-width: 34ch; }
.dru-shelf { margin-top: 18px; grid-template-columns: repeat(5,minmax(0,1fr)); }
.game-library:has(.dru-shelf) { padding-bottom: clamp(26px, 3vw, 44px); }
.art-showcase { padding-block: 22px 35px; border-top: 1px solid var(--line); }
.art-showcase .shelf-heading h2 { font-size: clamp(1.45rem,2vw,1.8rem); }
.art-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 20px; margin-top: 15px; }
.art-pair figure { color: #eeeaf1; display: flex; align-items: center; gap: 14px; margin: 0; }
.art-pair img { width: clamp(80px,12vw,168px); height: auto; border-radius: 6px; }
.art-pair figcaption { color: inherit; margin: 0; font-weight: 600; line-height: 1.25; text-align: left; }
@media(max-width:900px){.dru-shelf {grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:600px){
 .dru-shelf {grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px;}
 .dru-banner {min-height:212px;}
 .dru-banner picture {left:0;}
 .dru-banner picture img {object-position:61% 35%;}
 .dru-banner picture::after {background:linear-gradient(90deg,#0d1a32ea 0%,#14203ca8 37%,transparent 70%),linear-gradient(0deg,#0d162ac7 0%,transparent 45%);}
 .dru-banner .race-copy {max-width:65%;padding:16px;}
 .dru-banner h1 {font-size:clamp(2.6rem,11vw,3.9rem);}
 .dru-banner .race-copy p {line-height:1.25;margin:7px 0 10px;}
 .art-pair {gap:12px;}
 .art-pair figure {display:block;}
 .art-pair img {width:100%;}
 .art-pair figcaption {margin-top:7px;}
}

#website-add-ons .example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#website-add-ons .example-grid article {
  background: #171a30;
  border-color: var(--line);
  border-radius: 10px;
}
@media (max-width: 780px) {
  #website-add-ons .example-grid { grid-template-columns: 1fr; }
}
.art-pair a.art-card { color: inherit; text-decoration: none; display: block; border-radius: 8px; transition: opacity .15s ease; }
.art-pair a.art-card:hover { opacity: .88; }
