.game-box-showcase[hidden], .game-box-link [hidden] { display: none; }
.game-box-showcase { margin: 0; min-width: 0; align-self: start; display: grid; justify-items: center; gap: 12px; }
.game-box-showcase:not([data-state="ready"]):not([data-state="fallback"]) { opacity: 0; pointer-events: none; }
.game-box-link { position: relative; display: block; width: 100%; height: clamp(260px, calc(100dvh - 430px), 560px); color: inherit; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.game-box-link:active { cursor: grabbing; }
.game-box-link:focus-visible { outline: 2px solid #080b0a; outline-offset: 4px; }
.game-box-link canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.game-box-fallback { display: block; width: 100%; height: 100%; object-fit: contain; }
.game-box-play { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 2px solid #080b0a; border-radius: 4px; background: #080b0a; color: var(--panel-colour); font: 700 16px "Space Grotesk", system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.game-box-play img { width: 24px; height: 24px; filter: invert(1); }
.game-box-play:hover { background: #fff; color: #080b0a; }
.game-box-play:hover img { filter: none; }
.game-box-play:focus-visible { outline: 2px solid #080b0a; outline-offset: 4px; }
.game-box-viewer { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: #000; color: #fff; overflow: hidden; --panel-colour: #ff4930; }
.game-box-viewer::backdrop { background: #000; }
.game-box-viewer[open] { display: grid; place-items: center; }
.game-box-viewer .game-box-showcase { width: 100%; height: 100%; grid-template-rows: minmax(0,1fr) auto; gap: 12px; }
.game-box-viewer .game-box-link { width: 100%; height: 100%; min-height: 0; max-height: none; touch-action: none; }
.game-box-viewer .game-box-showcase figcaption { padding-bottom: env(safe-area-inset-bottom,0px); }
.game-box-viewer .game-box-play { border-color: #ff4930; }
.game-box-viewer .game-box-link:focus-visible, .game-box-viewer .game-box-play:focus-visible { outline-color: #fff; }
.game-box-close { position: absolute; z-index: 2; top: max(16px,env(safe-area-inset-top)); right: max(16px,env(safe-area-inset-right)); display: grid; place-items: center; width: 48px; height: 48px; padding: 10px; border: 1px solid #fff6; border-radius: 4px; background: #000; cursor: pointer; }
.game-box-close img { filter: invert(1); }
.game-box-close:hover, .game-box-close:focus-visible { background: #ff4930; border-color: #ff4930; outline-color: #fff; }
.section-view[data-section="7"]:not([hidden]) { background: var(--panel-colour); }
.game-box-cta { display: none; }
.section-view[data-section="7"] .game-box-cta { display: block; }
.section-view[data-section="7"] .game-box-cta + #websites-contact-cta { margin-top: 8px; }
.section-view[data-section="7"] #websites-content { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .85fr); grid-template-rows: min-content min-content min-content 1fr; column-gap: 36px; align-items: start; scrollbar-width: none; }
.section-view[data-section="7"] #websites-content::-webkit-scrollbar { display: none; }
.section-view[data-section="7"] #websites-content > :not(.game-box-showcase) { grid-column: 1; }
.section-view[data-section="7"] #websites-content > .game-box-showcase { grid-column: 2; grid-row: 1 / 5; }
.section-view[data-section="7"] .website-highlight { padding: 20px; }
.section-view[data-section="7"] .website-highlight h2 { font-size: 28px; }
.section-view[data-section="7"] .highlight-icon { width: 26px; height: 26px; top: 20px; right: 20px; }
.section-view[data-section="7"] .game-box-showcase:is([data-state="ready"],[data-state="fallback"]) { animation: game-box-in 900ms 80ms cubic-bezier(.16,1,.3,1) both; }
.section-view[data-section="7"].section-exiting .game-box-showcase { animation: game-box-out 360ms ease both; }
@keyframes game-box-in { from { opacity: 0; transform: translateY(12px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes game-box-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
@media(min-width:1101px) {
  .section-view[data-section="7"] #websites-content > .game-box-showcase { position: absolute; top: 200px; right: var(--page-gutter); width: max(300px, calc((100% - 2 * var(--page-gutter) - 36px) * .3469387755)); }
}
@media(min-width:1101px) and (max-height:800px) {
  .section-view[data-section="7"] #websites-content > .game-box-showcase { top: 180px; }
}
@media(max-width:1100px) {
  .section-view[data-section="7"] #websites-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .section-view[data-section="7"] #websites-content > .game-box-showcase { grid-column: 1; grid-row: 3; margin: 0 0 28px; width: 100%; }
  .game-box-link { height: 420px; max-height: 55dvh; min-height: 300px; }
}
@media(prefers-reduced-motion:reduce) {
  .section-view[data-section="7"] .game-box-showcase, .section-view[data-section="7"].section-exiting .game-box-showcase { animation: none; }
}
