/* Generic game page (nimrods/, pickcrafter/, …): components + storefront layout. */

/* Hero art */
.g-hero{position:relative;background:#0f110e}
.g-hero img{display:block;width:100%;height:auto;object-fit:cover}

/* Title block */
.g-top{padding:32px 24px 8px}
.g-head{display:grid;gap:18px}
.g-title{display:grid;gap:2px}
.g-title h1{margin:0;font-size:clamp(36px,6vw,64px);line-height:1;letter-spacing:.01em}
.g-icon{width:120px;height:120px;border-radius:22%;border:1px solid #343931}
.g-tagline{margin:0;font-family:"Chakra Petch","Arial Narrow",sans-serif;font-weight:600;font-size:clamp(18px,2.4vw,24px);color:#b6bcae}
.g-head .lede{margin:0}

/* Sections */
.g-section{padding:40px 0;text-align:left}
.g-section+.g-section{border-top:1px solid #343931}
.g-section h3{font-size:19px;margin:0 0 .4em}

/* Trailer */
.facade{position:relative;aspect-ratio:16/9;background:#000;border-radius:6px;overflow:hidden;border:1px solid #343931}
.facade>button{all:unset;position:absolute;inset:0;cursor:pointer;display:block}
.facade img{width:100%;height:100%;object-fit:cover;opacity:.85}
.facade .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:84px;height:84px;border-radius:50%;background:#8dc63f;color:#101208;display:grid;place-items:center;font-size:34px;padding-left:6px;box-shadow:0 10px 30px rgba(0,0,0,.45);transition:transform .15s}
.facade>button:hover .play{transform:translate(-50%,-50%) scale(1.06)}
.facade>button:focus-visible{outline:3px solid #8dc63f;outline-offset:-3px}
.facade iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* About + features */
.g-about{display:flex;align-items:flex-start;gap:28px;margin-bottom:28px}
.g-about-img{width:120px;height:auto;flex-shrink:0;image-rendering:pixelated}
.g-chars{width:auto;display:flex;gap:8px;image-rendering:auto}
.g-chars img{width:80px;height:80px;object-fit:contain}
.g-about p:last-child{margin-bottom:0}
.features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.feature{background:#20231f;border:1px solid #343931;border-radius:6px;padding:22px 22px 18px}
.feature h3{font-size:19px;color:#a3dd52;margin:0 0 .4em}
.feature p{margin:0;color:#b6bcae;font-size:15px}

/* Screenshots + lightbox */
.shots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.shots a{display:block;border-radius:6px;overflow:hidden;border:1px solid #343931;background:#20231f;aspect-ratio:16/9}
.shots a:hover{border-color:#8dc63f}
.shots img{display:block;width:100%;height:100%;object-fit:cover}
.shots .wide{grid-column:span 2;grid-row:span 2}
.shots.portrait a{aspect-ratio:9/16}
.lightbox{border:0;padding:0;background:transparent;max-width:min(96vw,1600px);max-height:96vh}
.lightbox::backdrop{background:rgba(0,0,0,.88)}
.lightbox img{display:block;max-width:96vw;max-height:92vh;width:auto;height:auto;border-radius:6px}
.lightbox-close{position:fixed;top:14px;right:18px;background:#20231f;color:#eef0e9;border:1px solid #454b41;border-radius:50%;width:44px;height:44px;font-size:26px;line-height:1;cursor:pointer}

/* Press kit */
.g-press{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:40px;align-items:start}
.g-press-copy{max-width:60ch}
.g-press-copy h3{margin-top:1.2em}
.g-press-copy a{color:#a3dd52}
.g-press-copy a:hover{color:#8dc63f}
.g-downloads{display:grid;gap:12px}
.g-download{display:flex;align-items:center;gap:16px;background:#20231f;border:1px solid #343931;border-radius:6px;padding:14px 16px;color:#eef0e9;text-decoration:none}
.g-download:hover{border-color:#8dc63f;color:#eef0e9}
.g-download img{width:56px;height:56px;border-radius:14px;object-fit:contain;background:#2a2e28;flex-shrink:0}
.g-download>span{display:grid;gap:2px}
.g-download strong{font-family:"Chakra Petch","Arial Narrow",sans-serif;font-size:17px}
.g-download span span{color:#868c7f;font-size:13px}

/* Credits */
.g-credits{background:#20231f;border:1px solid #343931;border-radius:6px;padding:0 20px}
.g-credits summary{cursor:pointer;padding:16px 0;color:#eef0e9}
.g-credits summary h2{display:inline;margin:0;font-size:17px;font-weight:600;line-height:1.2}
.g-credits[open] summary{border-bottom:1px solid #343931;margin-bottom:16px}
.g-credits h3{font-size:15px;letter-spacing:.08em;text-transform:uppercase;color:#8dc63f;margin:18px 0 8px}
.g-credits p{color:#b6bcae;font-size:15px}
.g-attrib{list-style:none;margin:0 0 12px;padding:0;columns:2;column-gap:32px;font-size:14px;color:#b6bcae}
.g-attrib li{break-inside:avoid;padding:4px 0}
.g-attrib a{color:#eef0e9}
.g-attrib span{color:#868c7f}
.g-credits>:last-child{margin-bottom:0;padding-bottom:16px}

@media (max-width:900px){
  .features{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-press{grid-template-columns:1fr}
  .g-attrib{columns:1}
}
@media (max-width:600px){
  .features{grid-template-columns:1fr}
  .g-about{flex-direction:column}
  .game .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .facade .play{transition:none}
}

/* Layout: blurred key art behind a title band, full-width trailer and two-row screenshot strip */

.game{position:relative;max-width:1180px;margin:0 auto;padding:0 24px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);column-gap:32px;row-gap:0;align-items:start}

/* Key art becomes a soft backdrop */
.g-hero{position:absolute;left:50%;top:0;width:100vw;height:620px;margin-left:-50vw;overflow:hidden;z-index:-1;background:none;pointer-events:none;-webkit-mask-image:linear-gradient(#000 40%,transparent);mask-image:linear-gradient(#000 40%,transparent)}
.g-hero img{height:100%;width:100%;object-fit:cover;filter:blur(28px) saturate(1.3);opacity:.32;transform:scale(1.15)}

.g-top{display:contents}
.g-head{grid-column:1/-1;grid-row:1;padding:40px 0 28px;grid-template-columns:auto 1fr;grid-template-areas:"icon title" "lede lede" "btns btns";column-gap:22px;row-gap:14px;align-items:center;margin-bottom:8px}
.g-icon{grid-area:icon;width:128px;height:128px;border-radius:26%;box-shadow:0 12px 30px rgba(0,0,0,.5)}
.g-title{grid-area:title}
.g-title h1{font-size:clamp(34px,4.6vw,54px)}
.g-head .lede{grid-area:lede;font-size:16px;max-width:64ch}
.g-head .btn-row{grid-area:btns}

.g-section{grid-column:1/-1;padding:36px 0}
.g-section .wrap{max-width:none;margin:0;padding:0}
#trailer{grid-column:1/-1;grid-row:2;padding:0 0 32px}
#screenshots{grid-column:1/-1;grid-row:3;padding:0 0 36px;min-width:0;border-top:0}

/* Screenshot strip */
.shots{display:grid;grid-auto-flow:column;grid-template-rows:auto auto;grid-auto-columns:min(360px,72%);overflow-x:auto;gap:10px;padding-bottom:8px;scroll-snap-type:x mandatory;scrollbar-color:#454b41 transparent}
.shots a{scroll-snap-align:start}
.shots.portrait{grid-template-columns:none;grid-auto-columns:170px}
.shots.single{grid-template-rows:auto}
.shots .wide{grid-column:auto;grid-row:auto}

#about{grid-row:4}
#about .section-head h2{font-size:28px;margin-bottom:10px}
@media (min-width:901px){.g-press{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

@media (max-width:900px){
  .game{display:block}
  .shots{grid-template-columns:none}
  .g-head{padding-top:28px}
  #trailer{padding-bottom:24px}
  .g-icon{width:96px;height:96px}
}
@media (max-width:600px){
  .g-head{grid-template-columns:1fr;grid-template-areas:"icon" "title" "lede" "btns"}
}
