[hidden]{display:none!important}:root{--background:#071925;--surface:#122c3b;--primary:#d7b76c;--text:#f8f2e5;--primary-text:#071925;--accent:#d7b76c}*{box-sizing:border-box}.catalog-app{margin:0;background:var(--background);color:var(--text);font:16px/1.5 var(--serif);min-height:100dvh;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.catalog-header{display:flex;align-items:center;gap:16px;max-width:800px;margin:auto}.catalog-header h1{font-size:26px}.catalog-app button,.demo button,.store-link{font:inherit;cursor:pointer;border:0;border-radius:14px;background:var(--primary);color:var(--primary-text);padding:12px 20px;min-height:44px}.catalog-app button:focus-visible,.demo button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}#game-list,#game-preview{max-width:800px;margin:20px auto}.game-row{display:flex;gap:18px;align-items:center;padding:20px;margin-bottom:16px;border-radius:20px;background:var(--surface)}.game-row img{width:88px;height:88px;border-radius:18px}.game-row h2{margin:0}.game-row p{margin:6px 0}.game-row button{margin-left:auto}.center-state{position:fixed;inset:50% 16px auto;text-align:center;transform:translateY(-50%);margin:0;font-size:24px}.demo{max-width:420px;margin:24px auto;padding:22px;border-radius:22px;background:var(--surface);color:var(--text)}.demo-board{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;aspect-ratio:1;margin:18px 0}.demo-board button{padding:0;font-size:clamp(24px,5vw,38px);border-radius:12px;background:var(--primary);color:var(--primary-text)}.demo-board button:disabled{opacity:1;cursor:default}.demo-board .empty{background:var(--background);border:1px dashed var(--accent)}.demo-board .tile{transition:transform 160ms ease}.demo-status{min-height:48px}.demo-end{border-top:1px solid var(--accent);padding-top:16px}.store-link{display:inline-block;text-decoration:none;margin:5px}.platform-list{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;margin:28px 0}.platform-list p{background:var(--surface);border:1px solid var(--accent);border-radius:16px;padding:20px;text-align:center;min-width:180px}.matrix-page{padding-top:50px;padding-bottom:60px}.matrix-page h1{font-size:clamp(40px,8vw,72px)}.matrix-page>p{max-width:650px}.matrix-art{display:grid;place-items:center;background:#F8F5ED!important}.matrix-art img{width:65%!important;max-height:380px;object-fit:contain}.matrix-art strong{font-size:28px;color:#254153}.matrix-art span{color:#43657c}@media(max-width:520px){.game-row{flex-wrap:wrap;padding:16px}.game-row img{width:64px;height:64px}.game-row>div{flex:1;min-width:120px}.game-row button{width:100%;margin:0}.demo{padding:16px}.platform-list p{width:100%}}@media(prefers-reduced-motion:reduce){.demo-board .tile{transition:none}}
.demo p,.demo strong,.demo .demo-status{color:var(--text)} .demo{font-family:var(--serif)}

.matrix-art .art-title{display:none}

/* Website showcase: all game previews inherit CrownArc's public-site theme. */
:root{--background:#071925;--surface:#102b3b;--primary:#d7b76c;--text:#f8f2e5;--primary-text:#071925;--accent:#c9a85d}

.demo{border:1px solid #d7b76c80;box-shadow:0 18px 60px #0003;width:100%;margin:0 auto}.demo p{font-size:15px;line-height:1.6}.demo-board button{background:linear-gradient(145deg,#17394c,#071925);color:var(--text);border:1px solid var(--accent);font-family:var(--serif);box-shadow:inset 0 1px 0 #ffffff15}.demo-board .empty{background:#05121c;border:1px dashed #d7b76c66}.demo-board .final-tile{background:var(--primary);color:var(--primary-text);animation:tile-appear .5s ease-out}.demo-status{font:14px/1.6 var(--serif)}.demo-end{margin-bottom:16px}.demo-end p{margin:8px 0}.demo button{font-size:16px}.demo-board button{font-size:clamp(26px,4vw,38px)}
@keyframes tile-appear{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
.showcase-hero .hero-inner{display:grid;grid-template-columns:1.25fr 1fr;gap:65px;padding-top:42px;padding-bottom:42px;align-items:center;min-height:640px}.showcase-hero .hero-copy{max-width:650px}.showcase-hero .hero-copy h1{font-size:clamp(44px,5.5vw,78px)}.hero-showcase{padding:28px 38px;max-width:450px;width:100%;justify-self:end;text-align:center;border:1px solid var(--gold);border-radius:22px;background:linear-gradient(140deg,#102535ed,#071925de);box-shadow:0 25px 60px #0005}.hero-showcase h2{font-size:40px;margin:14px 0 3px}.hero-showcase p{font-size:14px;letter-spacing:.09em}.hero-showcase>.button{margin-top:20px;display:block}.hero-puzzle{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;max-width:270px;margin:24px auto 0}.hero-puzzle span{aspect-ratio:1;display:grid;place-items:center;border:1px solid var(--gold);border-radius:9px;background:#071925;font:34px var(--serif);color:var(--ivory)}.hero-puzzle .blank{border-style:dashed;opacity:.45}.hero-puzzle .suggest{background:#65542a;box-shadow:0 0 12px #d7b76c66}.glide-logo{position:relative;width:100px;height:100px;margin:0 auto;flex-shrink:0}.glide-logo-tile{position:absolute;width:30%;height:30%;display:grid;place-items:center;border:1px solid #c9a85d99;border-radius:5px;background:color-mix(in srgb,#d7b76c calc(var(--tone)*8%),#102b3b);color:var(--ivory);font:600 15px var(--serif)}.matrix-description .glide-logo{margin:0 0 20px;width:110px;height:110px}.detail-layout{align-items:center;gap:60px}.detail-hero{padding-top:24px}.page-tools{display:flex;justify-content:flex-end;margin-bottom:24px}.back-link{padding:11px 22px!important;font-size:14px!important;white-space:nowrap;min-height:44px}.about-subtitle{margin-top:32px}.platform-list{justify-content:flex-start;margin:24px 0 0;gap:12px}.platform-list p{min-width:0;flex:1;font-size:14px!important;padding:14px}.platform-list strong{display:block}.catalog-main{min-height:60vh;padding-top:36px;padding-bottom:70px}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:38px}.catalog-heading h1{font-size:clamp(36px,5vw,54px);margin-bottom:12px}.catalog-heading p{max-width:620px}.game-row{background:#102b3b;border:1px solid #d7b76c50;padding:26px;gap:24px}.game-row img{width:100px;height:100px;border:1px solid #d7b76c80}.game-row h2{font-size:28px}.game-row small{color:var(--gold)}.game-row>div{flex:1}.game-row button,#catalog-back,.carousel-controls button{background:var(--primary);color:var(--primary-text);border:1px solid var(--gold);border-radius:9px;min-height:44px;padding:12px 22px;font:14px var(--serif);cursor:pointer}.preview-heading{text-align:center;margin-bottom:26px}.preview-heading h2{font-size:40px;margin-top:20px}.preview-heading p{margin-top:12px}.catalog-main #game-preview .demo{max-width:430px}.catalog-main .center-state{position:static;transform:none;min-height:40vh;display:grid;place-items:center;font-size:24px}.carousel-controls{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:22px}.carousel-controls p{font:14px var(--serif)}.browse-link{text-align:center;margin-top:26px}.matrix-art{background:linear-gradient(145deg,#14374b,#071925)!important}.matrix-art img{max-height:300px;width:70%!important}.game-card{animation:card-in .4s ease}@keyframes card-in{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:760px){.showcase-hero .hero-inner{grid-template-columns:1fr;gap:30px;padding-block:36px}.showcase-hero .hero-copy{padding:0;text-align:center}.hero-showcase{justify-self:center;padding:24px;max-width:400px}.hero-showcase h2{font-size:34px}.hero-puzzle{max-width:235px}.showcase-hero .hero-copy h1{font-size:48px}.catalog-heading{align-items:flex-start}.catalog-heading p{font-size:15px}.game-row{padding:18px;gap:16px}.game-row img{width:72px;height:72px}.game-row h2{font-size:24px}.detail-layout{gap:34px}.detail-layout #play-demo{scroll-margin-top:20px}.matrix-description{text-align:center}.matrix-description .glide-logo{margin:0 auto 20px}.platform-list{justify-content:center}.platform-list p{width:auto}.carousel-controls{flex-wrap:wrap}.catalog-main{padding-top:26px}.catalog-heading h1{font-size:34px}}
@media(prefers-reduced-motion:reduce){.game-card,.demo-board .final-tile{animation:none}}

.catalog-logo{width:180px;height:180px}.catalog-logo .glide-logo-tile{font-size:27px}.hero-showcase .hero-cover{max-width:250px;width:90%;border-radius:15px;margin:24px auto 0}

/* Embedded catalog colors stay isolated from public website defaults. */
.embedded-catalog{background:var(--background);color:var(--text)}.embedded-catalog .catalog-heading h1,.embedded-catalog .catalog-heading p,.embedded-catalog .game-row h2,.embedded-catalog .game-row p,.embedded-catalog .game-row small{color:var(--text)}.embedded-catalog .game-row{background:var(--surface);border-color:var(--accent)}.embedded-catalog .game-row .button,.embedded-catalog .back-link{background:var(--primary);color:var(--primary-text);border-color:var(--accent)}

/* Responsive catalog cards: all games remain in the page, without pagination. */
#game-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:1100px;margin-inline:auto}.game-row{display:flex;flex-direction:column;align-items:center;text-align:center;margin:0;height:100%;min-width:0}.game-row>div{width:100%;min-width:0}.game-row>.button{margin-top:auto;width:100%}#game-list>.center-state{grid-column:1/-1}#game-list>p:not(.center-state){grid-column:1/-1}
.catalog{display:grid;overflow:hidden;isolation:isolate;touch-action:pan-y}.catalog>.game-card,.catalog>.empty-state{grid-area:1/1;min-width:0}.catalog>.game-card{animation:none}.catalog:focus-visible{outline:2px solid var(--gold);outline-offset:5px}.hero-showcase{touch-action:pan-y}#hero-art{display:grid;place-items:center;min-height:100px}.mindforge-logo{width:112px;height:112px;display:grid;grid-template-columns:repeat(6,1fr);border:1px solid var(--gold);background:var(--background);color:var(--gold);margin:auto;flex-shrink:0}.mindforge-logo .mindforge-art-cell{display:grid;place-items:center;min-width:0;aspect-ratio:1;border-right:1px solid #d7b76c55;border-bottom:1px solid #d7b76c55;font:16px/1 var(--serif)}.mindforge-logo .mindforge-art-clue{color:var(--ivory);font-weight:700}.mindforge-logo.catalog-logo{width:210px;height:210px}.mindforge-logo.catalog-logo .mindforge-art-cell{font-size:27px}.mindforge-art-number{opacity:0}
@media(min-width:1200px){#game-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:599px){#game-list{grid-template-columns:minmax(0,1fr)}.game-row{padding:22px}.game-row img{width:88px;height:88px}}@media(prefers-reduced-motion:reduce){.mindforge-art-number{opacity:1}}

.mindforge-logo .mindforge-art-number{color:var(--gold)}

/* Studio hero has no adjacent game showcase. Game rotation lives in Our Games. */
.showcase-hero .hero-inner{grid-template-columns:1fr;min-height:470px;padding-block:70px}.showcase-hero .hero-copy{max-width:760px}.catalog>.game-card{height:100%}.catalog .game-info{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.catalog .game-info .button{margin-top:16px}@media(max-width:760px){.showcase-hero .hero-inner{min-height:400px;padding-block:44px}.showcase-hero .hero-copy{margin:auto}.catalog .game-info{align-items:flex-start}}

/* Frameless catalog previews and demos; keep the actual puzzle's grid and cells. */
#game-list .game-row, .embedded-catalog #game-list .game-row { background:transparent;border:0;box-shadow:none;padding:12px 0 20px; }
#game-list .game-row>img { border:0;box-shadow:none;border-radius:0; }
.catalog-actions { display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:auto;padding-top:8px; }
.catalog-actions .button { margin:0;min-height:44px; }
.catalog-actions .catalog-coming-soon:disabled { opacity:.65;cursor:default; }
#play-demo .demo { padding:0;border:0;box-shadow:none;background:transparent; }

/* More Games: standard rows with Select-Level-style numbered pagination. */
#game-list{display:flex;flex-direction:column;gap:16px;max-width:1000px;scroll-margin-top:24px}
#game-list .game-row,.embedded-catalog #game-list .game-row{display:grid;grid-template-columns:88px minmax(0,1fr) auto;align-items:center;gap:24px;text-align:left;padding:22px;background:var(--surface);border:1px solid var(--accent);border-radius:16px;height:auto}
#game-list .game-row>img{width:88px;height:88px;object-fit:contain;border:0}
#game-list .game-row h2{font-size:25px}#game-list .game-row p{font-size:15px}
#game-list .catalog-actions{width:auto;flex-direction:column;margin:0;padding:0;align-items:stretch}
.catalog-pagination{display:flex;justify-content:center;align-items:center;gap:10px;margin:24px auto 0;max-width:1000px}.catalog-page-numbers{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.catalog-pagination button{min-width:44px;min-height:44px;border:1px solid var(--accent);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;cursor:pointer;padding:8px}
.catalog-pagination button[aria-current="page"]{background:var(--primary);color:var(--primary-text)}.catalog-pagination button:disabled{opacity:.4;cursor:default}.catalog-pagination button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.catalog-page-status{text-align:center;margin:12px auto;color:var(--text);font:14px var(--serif)}
@media(max-width:599px){#game-list .game-row,.embedded-catalog #game-list .game-row{grid-template-columns:64px minmax(0,1fr);gap:14px;padding:16px}#game-list .game-row>img{width:64px;height:64px}#game-list .game-row h2{font-size:22px}#game-list .catalog-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}#game-list .catalog-actions .button{flex:1}.catalog-pagination{gap:6px}.catalog-page-numbers{gap:3px}.catalog-pagination button{min-width:40px}}

/* Paginated cards sit beside each other, adapting to the available width. */
#game-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1100px}
#game-list .game-row,.embedded-catalog #game-list .game-row{display:flex;flex-direction:column;text-align:center;align-items:center;gap:14px;padding:22px;height:100%}
#game-list .game-row>img{width:100px;height:100px}
#game-list .catalog-actions{flex-direction:row;flex-wrap:wrap;justify-content:center;width:100%;margin-top:auto}
#game-list .catalog-actions .button{flex:1;white-space:nowrap}
@media(max-width:999px){#game-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#game-list .game-row,.embedded-catalog #game-list .game-row{padding:16px}#game-list .game-row h2{font-size:21px}#game-list .game-row p{font-size:14px}#game-list .catalog-actions{flex-direction:column}#game-list .catalog-actions .button{width:100%}}
@media(max-width:359px){#game-list{grid-template-columns:minmax(0,1fr)}}
#game-list .catalog-actions{flex:0 0 auto}

/* Vertical catalog applies only inside apps. Public website retains its paginated responsive grid. */
html.app-catalog :is(#game-list,#shop-list){display:grid;grid-template-columns:minmax(0,1fr);max-width:1000px;gap:18px}
html.app-catalog :is(#game-list,#shop-list) .game-row,html.app-catalog .embedded-catalog :is(#game-list,#shop-list) .game-row{display:grid;grid-template-columns:minmax(170px,36%) minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:14px 26px;text-align:left;height:auto;position:relative;padding:24px;border-radius:20px}
html.app-catalog :is(#game-list,#shop-list) .game-row>img{grid-row:1/3;width:100%;height:clamp(170px,28vw,300px);object-fit:contain;border:0;border-radius:0;background:transparent}
html.app-catalog :is(#game-list,#shop-list) .game-row>div:not(.catalog-actions){align-self:end;min-width:0}
html.app-catalog :is(#game-list,#shop-list) .game-row h2{font-size:clamp(22px,3vw,34px);line-height:1.2;overflow-wrap:anywhere}
html.app-catalog :is(#game-list,#shop-list) .game-row p{line-height:1.45;overflow-wrap:anywhere}
html.app-catalog :is(#game-list,#shop-list) .catalog-actions{grid-column:2;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-self:start;gap:10px;margin:0;width:100%}
html.app-catalog :is(#game-list,#shop-list) .catalog-actions .button{flex:1 1 125px;min-width:0;white-space:normal;text-align:center;min-height:44px}
.catalog-release-label{display:inline-block;font-size:12px;line-height:1;padding:7px 12px;border-radius:20px;background:var(--primary);color:var(--primary-text);margin:0 0 10px;font-weight:700}
.catalog-release-announcement{display:flex;gap:12px;align-items:center;border:1px solid color-mix(in srgb,var(--primary) 30%,transparent);border-radius:16px;background:var(--surface);padding:16px;margin:0 auto 20px;max-width:1000px}
.catalog-release-announcement strong{display:block;font-size:20px}.catalog-release-announcement p{margin:3px 0 0}.catalog-release-announcement>span{font-size:30px;color:var(--accent)}
.catalog-release-announcement button{margin-left:auto;background:transparent;color:var(--text);border:0;font:28px/1 inherit;min-width:44px;min-height:44px;cursor:pointer}
@media(max-width:519px){html.app-catalog :is(#game-list,#shop-list) .game-row,html.app-catalog .embedded-catalog :is(#game-list,#shop-list) .game-row{display:flex;flex-direction:column;text-align:center;padding:18px;gap:12px}html.app-catalog :is(#game-list,#shop-list) .game-row>img{height:clamp(160px,48vw,240px);width:100%;max-width:100%}html.app-catalog :is(#game-list,#shop-list) .game-row>div:not(.catalog-actions){align-self:stretch}html.app-catalog :is(#game-list,#shop-list) .catalog-actions{justify-content:center;align-self:stretch}html.app-catalog :is(#game-list,#shop-list) .game-row h2{font-size:24px}.catalog-release-announcement strong{font-size:17px}.catalog-release-announcement p{font-size:14px}}
