/* HELLWAY GAMES / REFINEMENT 006
   Better grid discipline and tactile interactions. No new illustrations, no poster recoloring.
   Homepage remains a game-first arcade; the original studio film lives on Studio. */
:root { --hw-bone: #efdfbd; --hw-faded: #c8a981; --hw-red: #ef432c; --hw-dark: #110c0b; }

/* 01 — Header: consistently centered, equally sized navigation cells. */
.site-header .head-inner {
  display: grid;
  grid-template-columns: minmax(150px, 185px) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 3vw, 48px);
  width: min(calc(100% - 64px), 1500px);
  min-height: 82px;
}
.site-header .brand { justify-self: start; }
.site-header .nav {
  width: 100%; min-width: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center; gap: clamp(7px, .85vw, 14px);
}
.site-header .nav a {
  min-height: 46px; height: 46px;
  display: flex; justify-content: center; align-items: center;
  padding: 0 6px; margin: 0;
  text-align: center; line-height: 1;
  border: 1px solid #916f56;
  outline: 1px solid #24150e; outline-offset: -5px;
  box-shadow: inset 0 -3px 0 #261913;
  font: 900 clamp(.65rem, .78vw, .76rem)/1 'Courier New', Courier, monospace;
  letter-spacing: .105em;
  color: #f0dec0; background: #1a120f;
  transform: none; transition: background .13s steps(2,end), color .13s steps(2,end), border-color .13s steps(2,end);
}
.site-header .nav a:hover,
.site-header .nav a:focus-visible { background: #42231a; color: #fff1d7; border-color: #efc895; transform: none; }
.site-header .nav a[aria-current="page"] {
  background: #b63022; border-color: #e7b77e;
  box-shadow: inset 0 0 0 1px #661e15, inset 0 -3px 0 #661e15;
  color: #fff0cc;
}
.site-header .nav a:focus-visible,
.site-header .brand:focus-visible,
.site-header .menu-button:focus-visible { outline: 3px solid #f5d69e; outline-offset: 4px; }

/* 02 — Hero: enough air for the actual emblem and the lettering. */
.hw4-hero { border-bottom-color: #d7aa76; }
.hw4-hero:after { opacity: .6; }
.hw4-screen-shadow {
  background: radial-gradient(ellipse 63% 55% at 50% 37%, rgba(9,7,8,.90) 4%, rgba(11,8,9,.70) 53%, rgba(9,7,8,.13) 100%),
              linear-gradient(180deg, rgba(8,7,7,.04) 0%, rgba(8,7,7,.01) 70%, rgba(10,8,8,.32) 100%);
}
.hw4-suptitle { letter-spacing: .13em; }
.hw4-lockup { margin-top: 36px; }
.hw4-motto { letter-spacing: .14em; font-size: clamp(.8rem,1.3vw,1.09rem); }
.hw4-primary { min-width: 246px; }
.hw4-primary:active { transform: translate(5px,5px); box-shadow: 1px 1px 0 #2a130d; }
.hw4-primary:focus-visible,
.hw4-secondary:focus-visible,
.hw4-text-link:focus-visible,
.hw4-cover:focus-visible,
.hw4-game-footer a:focus-visible { outline: 3px solid #f0c57f; outline-offset: 5px; }
.hw4-scenery-credit { opacity: .82; }

/* 03 — Album shelf. Every original cover remains unmodified and fully visible. */
.hw4-select { padding-top: clamp(56px,5vw,76px); padding-bottom: clamp(64px,5vw,84px); }
.hw4-select-head { gap: 36px; padding-bottom: 24px; margin-bottom: 28px; }
.hw4-select-head p { max-width: 300px; color: #d2b998; }
.hw4-game-grid { gap: clamp(10px,1vw,17px); }
.hw4-game { transition: transform .18s steps(3,end); }
.hw4-game:hover, .hw4-game:focus-within { transform: translateY(-5px); }
.hw4-cover { border-color: #b58d62; box-shadow: 5px 5px 0 #030303; }
.hw4-cover:hover, .hw4-cover:focus-visible { border-color: #f14b32; }
.hw4-cover .official-poster { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: none !important; }
.hw4-game-footer { padding-top: 14px; gap: 9px; }
.hw4-game-footer>span { color: #cb9871; }
.hw4-game-footer a { color: #f4dfb8; }
.hw4-game-footer a:hover { color: #ff6447; }
.hw4-select-foot { margin-top: 35px; }

/* 04 — Supporting chapters: deliberate spacing instead of extra visual clutter. */
.hw4-feature, .hw4-physical { padding-block: clamp(78px,7vw,105px); }
.hw4-feature-heading h2, .hw4-notes h2, .hw4-physical h2 { text-wrap: balance; }
.hw4-feature-gallery a:focus-visible, .hw4-articles a:focus-visible { outline: 3px solid #f0bf82; outline-offset: 4px; }
.hw4-feature-gallery a { transition: border-color .15s steps(2,end); }
.hw4-feature-gallery a:hover { border-color: #f0442e; }
.hw4-articles a { transition: padding-left .14s steps(2,end), background .14s steps(2,end); }
.hw4-articles a:hover, .hw4-articles a:focus-visible { padding-left: 12px; }
.hw4-notes { padding-block: clamp(75px,6.5vw,95px); }
.hw4-physical-visual { box-shadow: 9px 9px 0 #0a0908; }
.hw4-lastcall { padding-block: 52px; }
.hw4-lastcall a { transition: background .13s steps(2,end), transform .13s steps(2,end); }
.hw4-lastcall a:hover { transform: translate(2px,2px); }
.hw4-ticker div { animation-duration: 44s; }
.hw4-ticker:hover div { animation-play-state: paused; }

/* 05 — Studio: the film speaks for itself without technical labels or a timer. */
.studio-reel .section-head { align-items: end; }
.studio-reel .studio-video { max-width: 1020px; margin-inline: auto; border-color: #bb895f; }
.studio-reel .studio-video video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; }

/* 06 — Mobile: natural stacked navigation, no compression or tiny tap zones. */
@media (max-width: 1080px) {
  .site-header .head-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: calc(100% - 36px); min-height: 74px; gap: 14px;
  }
  .site-header .menu-button {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; min-width: 106px; min-height: 43px;
    padding: 10px 14px; line-height: 1;
    background: #241611; border: 1px solid #c6a781;
    font: 900 .73rem/1 'Courier New', monospace; letter-spacing: .08em;
  }
  .site-header .nav {
    display: none; position: absolute; top: calc(100% - 1px);
    left: 0; right: 0; width: 100%;
    padding: 18px max(18px, 5vw) 24px;
    background: #130e0c;
    border-top: 1px solid #6d4b33; border-bottom: 4px solid #e9432c;
    box-shadow: 0 18px 28px rgba(0,0,0,.65);
    grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px;
  }
  .site-header .nav.open { display: grid; }
  .site-header .nav a { min-height: 54px; height: 54px; font-size: .83rem; letter-spacing: .07em; }
}
@media (max-width: 640px) {
  .hw4-suptitle { font-size: .52rem; }
  .hw4-hero-buttons { gap: 14px; }
  .hw4-primary { min-width: min(100%,280px); }
  .hw4-motto { letter-spacing: .04em; }
  .hw4-select-head { gap: 16px; }
  .hw4-game-grid { gap: 18px 12px; }
  .hw4-game-footer a { overflow-wrap: anywhere; }
  .hw4-articles a:hover { padding-left: 0; }
  .hw4-select-foot { gap: 15px; }
  .studio-reel .section-head { display: block; }
}
@media (max-width: 370px) {
  .site-header .head-inner { width: calc(100% - 24px); }
  .site-header .brand img { width: 30px; height: 36px; }
  .site-header .brand-name { font-size: 1.04rem; }
  .site-header .brand .small-label { font-size: .44rem; }
  .site-header .nav { grid-template-columns: 1fr 1fr; gap: 7px; padding-inline: 12px; }
  .site-header .nav a { font-size: .72rem; }
  .hw4-lockup { gap: 5px; }
  .hw4-words h1 { font-size: clamp(42px,14vw,55px); }
  .hw4-skull { width: 55px; }
  .hw4-game-grid { gap: 15px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hw4-float, .hw4-ticker div { animation: none !important; }
  .site-header .nav a, .hw4-game, .hw4-feature-gallery a, .hw4-articles a, .hw4-lastcall a, .hw4-primary { transition: none !important; }
}
