/* Entrepixel editorial refresh. See /design-system/entrepixel/MASTER.md. */
:root {
  --paper: #f2f6fa;
  --ink: #15283b;
  --muted: #687b8d;
  --line: #d7e1ea;
  --green: #75b8de;
  --gold: #e2a650;
  --sky: #75b8de;
  --accent-blue: #214bd1;
  --deep: #132947;
  --card: #fff;
  --red: #d75e4d;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); }
.shell { max-width: 1360px; padding-inline: clamp(18px, 4.5vw, 68px); }
.topline { min-height: 30px; height: auto; padding: 7px 16px; background: var(--deep); color: #e9f3fa; font-size: 9px; letter-spacing: .16em; }
.topline span { color: var(--green); }
.nav { height: 74px; border-color: var(--line); }
.brand { color: var(--ink); font-size: 21px; }
.brand-e { color: var(--ink); -webkit-text-fill-color: var(--ink); }
.navlinks { color: var(--muted); }
.navlinks a { min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--ink); }
.navlinks a:hover::after { content: ""; position: absolute; right: 0; bottom: 7px; left: 0; height: 2px; background: var(--accent-blue); }
.nav-search-form { height: 40px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px 0 10px; background: var(--card); transition: border-color .18s, box-shadow .18s; }
.nav-search-form:focus-within { border-color: #8caa58; box-shadow: 0 0 0 3px rgba(197, 239, 99, .34); }
.nav-search-form input, .nav-search-form input:focus { width: clamp(115px, 13vw, 180px); color: var(--ink); }
.nav-search-form button { color: var(--ink); }
.avatar { border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }

.home-opening { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 14px; margin-top: 20px; }
.home-opening > .hero {
  min-height: 365px;
  padding: clamp(25px, 3.5vw, 46px);
  border: 1px solid #244568;
  border-radius: 12px;
  background-color: var(--deep);
  background-image: linear-gradient(105deg, rgba(9, 28, 53, .95), rgba(17, 58, 88, .82) 64%, rgba(17, 58, 88, .66)), url('/game-grid.svg') !important;
  box-shadow: none;
}
.home-opening > .hero .eyebrow { color: #dce9f5; }
.home-opening > .hero .eyebrow::before { background: var(--sky); }
.home-opening > .hero h1 { max-width: 13ch; font-size: clamp(39px, 4.3vw, 64px); line-height: .98; letter-spacing: -.065em; }
.home-opening > .hero h1 em { color: #a9d9f5; font-style: normal; }
.home-opening > .hero p { max-width: 42ch; color: #dce8f2; line-height: 1.65; }
.home-opening > .hero .search {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 4px;
  background: var(--card);
  padding: 0 15px;
  color: var(--ink);
  font-size: 14px;
}
.home-opening > .hero .search:focus { border-color: var(--accent-blue); outline: 3px solid rgba(33, 75, 209, .24); outline-offset: 2px; }
.home-opening > .hero .primary-list-button { min-height: 48px; border: 1px solid var(--accent-blue); border-radius: 6px; background: var(--accent-blue); color: #fff; font-size: 13px; }
.home-opening > .hero .primary-list-button:hover { border-color: #173da9; background: #173da9; }

.home-opening > .featured {
  min-height: 330px;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid #244568;
  border-radius: 12px;
  background: var(--deep);
  box-shadow: none;
}
.home-opening > .featured .feature-image { min-height: 300px; filter: saturate(.84); }
.home-opening > .featured .feature-image::after { top: 14px; left: 14px; border-radius: 4px; background: var(--accent-blue); color: #fff; font-size: 9px; }
.home-opening > .featured .feature-body { padding: clamp(18px, 2.4vw, 32px); background: var(--deep); }
.home-opening > .featured .feature-body .tag { color: #a9d9f5; }
.home-opening > .featured .feature-body h2,
.home-opening > .featured .feature-body h3 { color: #f3f7ff; font-size: clamp(25px, 2.8vw, 38px); line-height: 1.02; }
.home-opening > .featured .feature-body p { color: #d2e0ef; font-size: 13px; }
.home-opening > .featured .meta { color: #c4d6e8; }
.home-opening > .featured .score { color: #a9d9f5; }
.home-opening > .featured .cta { min-height: 44px; border-radius: 6px; background: var(--accent-blue); color: #fff; }
.home-opening > .featured .cta:hover { background: #173da9; }
.home-opening > .featured.game-feature .feature-body { min-height: 300px; gap: 11px; }
.home-opening > .featured.game-feature .team-trailer { margin-top: 6px !important; }

.sectionhead { gap: 14px; margin: 42px 0 17px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.sectionhead h2 { color: var(--ink); font-size: clamp(22px, 2.2vw, 28px); }
.sectionhead span { color: var(--muted); letter-spacing: .1em; }
.grid { gap: 26px 18px; }
.show { transition: transform .2s var(--ease); }
.show:hover { transform: translateY(-3px); }
.poster { border-radius: 8px; background: #e1e5df; }
.poster img { border-radius: inherit; }
.poster-save { border: 1px solid rgba(20, 33, 40, .12); background: rgba(255, 255, 255, .96); color: var(--ink); }
.show-title { color: var(--ink); }
.show-sub { color: var(--muted); }
.footer { border-top: 1px solid var(--line); color: var(--muted); }

.community-lists { border-radius: 12px; }
.community-card { overflow: hidden; border-radius: 9px; border-color: #8da8c5; }
.community-cover { border-radius: 8px 0 0 8px; }

.cta, .submit, .primary-list-button, .secondary-button,
.search-page-form button, .developer-search button, .developer-button {
  border-radius: 4px;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.filter { min-height: 40px; border-radius: 4px; }
.filter.active { background: var(--deep); color: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #78943e;
  outline-offset: 3px;
}
.modal, .game-preview, .profile-editor, .quick-show-modal, .quick-list-picker {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}

@media (max-width: 900px) {
  .home-opening { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-opening > .hero { min-height: 345px; }
  .home-opening > .featured { min-height: 300px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .home-opening > .featured .feature-image { min-height: 300px; }
  .home-opening > .featured.game-feature .feature-body { min-height: 300px; }
}

@media (max-width: 650px) {
  .shell { padding-inline: 18px; }
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 9px 12px;
    height: auto;
    min-height: 0;
    padding-block: 10px 12px;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .navright { grid-column: 2; grid-row: 1; gap: 8px; }
  .navlinks {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 0;
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    gap: 8px;
    overflow-x: auto;
    padding-top: 7px;
    border-top: 1px solid var(--line);
    white-space: nowrap;
  }
  .navlinks a { min-height: 32px; }
  .home-opening { margin-top: 14px; }
  .home-opening > .hero { min-height: 340px; padding: 23px 19px; }
  .home-opening > .hero h1 { max-width: 12ch; font-size: clamp(36px, 9vw, 48px); }
  .home-opening > .hero p { font-size: 14px; }
  .home-opening > .featured { min-height: 285px; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .home-opening > .featured .feature-image { min-height: 285px; }
  .home-opening > .featured .feature-body { padding: 16px 14px; }
  .home-opening > .featured.game-feature .feature-body { min-height: 285px; gap: 9px; }
  .home-opening > .featured .feature-body h2,
  .home-opening > .featured .feature-body h3 { font-size: clamp(21px, 6vw, 27px); }
  .home-opening > .featured .feature-body p { font-size: 11px; }
  .home-opening > .featured.game-feature .feature-body p { line-height: 1.5; }
  .home-opening > .featured.game-feature .team-trailer { margin-top: 3px !important; }
  .sectionhead { margin-top: 34px; }
  .grid { gap: 19px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
