:root {
  color-scheme: dark;
  --bg: #071918;
  --dark: #041010;
  --surface: #103a31;
  --surface-bright: #165440;
  --highlight: #84e3b3;
  --light: #eff8f1;
  --muted: #b4cabd;
  --gold: #ffdc8f;
  --gold-dark: #d58e36;
  --edge: rgb(152 235 191 / .22);
  --art-hue: 0deg;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="ember"] {
  --bg: #211011;
  --dark: #13090a;
  --surface: #48181c;
  --surface-bright: #771c21;
  --highlight: #ffb599;
  --light: #fff4ea;
  --muted: #d6bdaf;
  --gold: #ffdb90;
  --gold-dark: #d58a38;
  --edge: rgb(255 164 134 / .24);
  --art-hue: -50deg;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--light); background: var(--bg); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
img { display: block; }
a:focus-visible { outline: 2px solid var(--highlight); outline-offset: 5px; }
.frame { width: min(100% - 72px, 1260px); margin-inline: auto; }

.header { display: flex; justify-content: space-between; align-items: center; min-height: 103px; gap: 16px; }
.header nav, .brand { display: flex; align-items: center; }
.header nav { gap: 28px; }
.brand { gap: 12px; color: var(--light); font-weight: 850; font-size: 23px; letter-spacing: -.045em; }
.brand img { border-radius: 13px; }
.home-link { color: var(--muted); font-size: 14px; }
.home-link[aria-current] { padding-block: 3px; border-bottom: 1px solid var(--highlight); }
.nav-entry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  white-space: nowrap;
  padding: 9px 18px;
  border: 1px solid var(--edge);
  border-radius: 99px;
  background: var(--surface);
  font-weight: 720;
}
.nav-entry span { color: var(--highlight); }
.nav-entry:hover { background: var(--surface-bright); }

.showcase { padding-bottom: 14px; }
.showcase-strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.poster {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(98px, 10vw, 145px);
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
  background: linear-gradient(130deg, var(--surface), var(--dark));
}
.poster img, .poster::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster img { z-index: -2; object-fit: cover; object-position: center 55%; transition: transform .5s ease; }
.poster::after { content: ""; z-index: -1; background: linear-gradient(14deg, rgb(7 11 13 / .97), rgb(6 12 13 / .18) 73%); }
.poster:hover img { transform: scale(1.08); }
.poster span, .poster strong { display: block; }
.poster span { color: #f5dba8; font-size: clamp(.65rem, .9vw, .76rem); font-weight: 650; }
.poster strong { font-size: clamp(.92rem, 1.64vw, 1.39rem); line-height: 1.22; letter-spacing: -.024em; }
.poster-slots img { object-position: 52% 45%; }
.poster-info img { object-position: center 45%; }
[data-theme="ember"] .poster { border-color: rgb(255 156 95 / .25); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 545px;
  overflow: hidden;
  text-align: center;
  background: var(--dark);
  border-block: 1px solid var(--edge);
}
.hero-visual, .hero::after { position: absolute; inset: 0; }
.hero-visual {
  z-index: -2;
  background: linear-gradient(90deg, var(--dark), transparent 50%), url("/hero.webp") right 2vw center / min(65vw, 690px) auto no-repeat;
  filter: hue-rotate(var(--art-hue));
  opacity: .64;
}
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, var(--dark), transparent 42%), linear-gradient(100deg, var(--dark), rgb(8 12 12 / .58) 64%, transparent);
}
.hero-content { padding-block: 54px 64px; }
.welcome { margin: 0 0 9px; color: var(--highlight); font-size: 14px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.hero h1 {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  color: var(--gold);
  background: linear-gradient(#fff5d1, var(--gold) 58%, #edaa56);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(3.3rem, 8vw, 7.5rem);
  font-weight: 920;
  letter-spacing: -.075em;
  line-height: .99;
}
.hero-description { margin: 12px 0 0; font-size: clamp(17px, 2.3vw, 25px); font-weight: 660; }
.features { width: min(100%, 580px); margin: 32px auto 25px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.features li { display: grid; justify-items: center; align-content: start; gap: 7px; color: var(--muted); font-size: 13px; }
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 750;
  font-size: 22px;
  line-height: 1;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 4px rgb(255 255 255 / .026), 0 4px 16px rgb(0 0 0 / .18);
}
.hero-detail { margin: 0 auto 22px; max-width: 450px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.hero-entry {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
  min-width: min(100%, 210px);
  min-height: 57px;
  border-radius: 999px;
  padding: 8px 9px 8px 22px;
  background: linear-gradient(140deg, #fff1c9, var(--gold) 62%, #eeb358);
  color: #21180f;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgb(243 192 112 / .13), 0 11px 35px rgb(0 0 0 / .36);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-entry:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgb(243 192 112 / .19), 0 14px 38px rgb(0 0 0 / .42); }
.hero-entry [data-entry-label] { overflow-wrap: anywhere; text-align: left; }
.entry-arrow { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--gold); font-size: 20px; }
.footer { display: flex; justify-content: space-between; align-items: center; min-height: 72px; color: var(--muted); font-size: 13px; }
.footer a { font-weight: 760; color: var(--light); }

@media (max-width: 730px) {
  .frame { width: calc(100% - 32px); }
  .header { min-height: 77px; }
  .header nav { gap: 14px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .showcase { padding-bottom: 8px; }
  .showcase-strip { display: grid; grid-template-columns: none; grid-auto-columns: clamp(125px, 37vw, 190px); grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 7px; scrollbar-width: thin; scrollbar-color: var(--surface-bright) transparent; }
  .poster { scroll-snap-align: start; padding: 10px; }
  .hero { min-height: 490px; }
  .hero-content { padding-block: 54px 52px; }
  .hero-visual { background-position: left top, center; background-size: auto, max(100%, 480px) auto; }
  .features { margin-top: 27px; }
  .feature-icon { width: 39px; height: 39px; font-size: 19px; }
  .features li { font-size: 11px; }
}
@media (max-width: 420px) {
  .home-link { display: none; }
  .hero-detail { max-width: 310px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
