/* Firepip Productions – forside. Holo-/Google Play-æra (ca. 2013) i stil. */

:root {
  --bg: #e9e9e9;
  --bg-stripe: #e3e3e3;
  --card: #ffffff;
  --ink: #222222;
  --ink-2: #555555;
  --ink-3: #8a8a8a;
  --line: #d6d6d6;
  --bar: #1f1f1f;
  --bar-2: #2b2b2b;
  --holo: #33b5e5;
  --holo-dark: #0099cc;
  --play: #8ab932;
  --play-dark: #6e9a1e;
  --fire: #ff6a1f;
  --fire-2: #ffb02e;
  --soon: #9e9e9e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 1px 1px rgba(0, 0, 0, .06);
  --shadow-up: 0 6px 18px rgba(0, 0, 0, .22);
  --radius: 3px;
  --font: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, var(--bg) 0 6px, var(--bg-stripe) 6px 7px),
    var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--holo-dark); }
button { font: inherit; }

/* ---------- App bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(var(--bar-2), var(--bar));
  border-bottom: 3px solid var(--fire);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.appbar__inner {
  max-width: 1180px; margin: 0 auto; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand__logo { width: 36px; height: 36px; }
.brand__name { font-family: var(--font-cond); font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.brand__name span { font-weight: 400; color: #bdbdbd; }
.appbar__nav { display: flex; gap: 4px; }
.appbar__nav a {
  color: #e0e0e0; text-decoration: none; text-transform: uppercase;
  font-size: 13px; font-weight: 500; letter-spacing: .8px;
  padding: 8px 12px; border-radius: 2px;
}
.appbar__nav a:hover, .appbar__nav a:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 15% 120%, rgba(255, 176, 46, .35), transparent 55%),
    radial-gradient(circle at 90% -20%, rgba(51, 181, 229, .35), transparent 50%),
    linear-gradient(160deg, #2c2c2c, #151515 70%);
  border-bottom: 1px solid #000;
}
.hero__inner {
  max-width: 1180px; margin: 0 auto; padding: 36px 16px 32px;
  display: flex; gap: 28px; align-items: center;
}
.hero__logo {
  width: 112px; height: 112px; flex: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5));
}
.hero__kicker {
  margin: 0 0 4px; color: var(--fire-2);
  font-size: 12px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase;
}
.hero h1 {
  margin: 0; font-family: var(--font-cond); font-weight: 700;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.05; letter-spacing: .3px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .4);
}
.hero__lead { margin: 10px 0 0; max-width: 640px; color: #d4d4d4; font-weight: 300; font-size: 16px; }
.hero__stats { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__stats li {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px; padding: 6px 10px; font-size: 13px; color: #e8e8e8;
}
.hero__stats b { color: #fff; font-weight: 700; margin-right: 4px; }

/* ---------- Toolbar ---------- */
.shelf, .about { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between;
  padding: 24px 0 4px;
}
.holo-title {
  margin: 0; padding: 0 2px 6px; min-width: 200px;
  font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--holo-dark); border-bottom: 2px solid var(--holo);
}
.toolbar__controls { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.seg__btn, .sortbtn {
  border: 0; background: #fff; color: var(--ink-2); cursor: pointer;
  padding: 8px 14px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px;
  min-height: 36px;
}
.seg__btn + .seg__btn { border-left: 1px solid var(--line); }
.seg__btn.is-on { background: var(--holo); color: #fff; }
.sortbtn { border-radius: var(--radius); box-shadow: var(--shadow); display: inline-flex; gap: 6px; align-items: center; }
.seg__btn:hover:not(.is-on), .sortbtn:hover { background: #f2f2f2; }
.seg__btn:focus-visible, .sortbtn:focus-visible, .card:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(51, 181, 229, .6); outline-offset: 2px;
}

/* ---------- Timeline ---------- */
.rail {
  list-style: none; margin: 14px 0 16px; padding: 0 0 4px;
  display: flex; overflow-x: auto; position: relative;
  scrollbar-width: thin;
}
.rail li { flex: 1 0 auto; position: relative; min-width: 84px; }
.rail li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 3px; background: #c4c4c4;
}
.rail li:first-child::before { left: 50%; }
.rail li:last-child::before { right: 50%; }
.rail__year {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--ink-2); padding: 0 6px;
}
.rail__year b {
  font-family: var(--font-cond); font-size: 18px; line-height: 1; color: #fff;
  background: var(--bar); padding: 10px 10px 9px; border-radius: 2px;
  box-shadow: inset 0 -3px 0 var(--fire), var(--shadow);
  transition: background .15s ease;
}
.rail__year span { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); }
.rail__year:hover b, .rail__year:focus-visible b { background: var(--fire); box-shadow: inset 0 -3px 0 #c2410c, var(--shadow); }
.rail__year:focus-visible { outline: none; }
.card__year {
  position: absolute; left: 0; top: 12px;
  font-family: var(--font-cond); font-weight: 700; font-size: 20px; line-height: 1;
  color: #fff; background: rgba(20, 20, 20, .85); padding: 6px 10px 5px 12px;
  box-shadow: inset 0 -3px 0 var(--fire), 0 2px 4px rgba(0, 0, 0, .35);
}
.card.is-flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--fire), var(--shadow-up); } }

.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---------- Card ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; cursor: pointer; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.card__banner {
  position: relative; aspect-ratio: 16 / 9; background: #111 center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.card__banner { overflow: hidden; }
.card__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__banner--contain img { object-fit: contain; background: #72c4cf; }
.card--soon .card__banner img { filter: saturate(.55) brightness(.8); }
.ribbon {
  position: absolute; top: 14px; right: -34px; transform: rotate(45deg);
  width: 140px; text-align: center; padding: 4px 0;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: var(--soon); box-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.ribbon--play { background: var(--play); }
.ribbon--new { background: var(--fire); }
.card__head { display: flex; gap: 12px; padding: 0 14px; margin-top: -30px; position: relative; }
.icon {
  width: 72px; height: 72px; flex: none; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 3px #fff;
  object-fit: cover;
}
.card__titles { padding-top: 34px; min-width: 0; }
.card__titlebtn {
  display: block; padding: 0; margin: 0; border: 0; background: none; color: inherit;
  text-align: left; cursor: pointer;
}
.card__titlebtn:focus-visible { outline: 3px solid rgba(51, 181, 229, .6); outline-offset: 2px; }
.card__title { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.2; }
.card__dev { margin: 2px 0 0; font-size: 13px; color: var(--holo-dark); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.chip {
  font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 2px;
  padding: 2px 6px; background: #fafafa; white-space: nowrap;
}
.chip--app { color: #fff; background: var(--holo-dark); border-color: var(--holo-dark); font-weight: 500; }
.card__tagline { margin: 10px 14px 0; font-size: 14px; color: var(--ink-2); }
.card__rating { margin: 6px 14px 0; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.card__dl { color: var(--ink-2); font-weight: 500; }
.stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.card__foot {
  margin-top: auto; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card__free { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 8px 18px; border: 0; border-radius: 2px;
  font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--play {
  color: #fff; background: linear-gradient(#97c83c, var(--play));
  box-shadow: inset 0 -2px 0 var(--play-dark), 0 1px 2px rgba(0, 0, 0, .25);
}
.btn--play:hover { background: linear-gradient(#a2d348, #92c33a); }
.btn--play:active { box-shadow: inset 0 2px 0 var(--play-dark); }
.btn--soon { color: #fff; background: #bdbdbd; box-shadow: inset 0 -2px 0 #a3a3a3; cursor: default; }
.btn--ghost { color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: #f3f3f3; }

/* ---------- Sheet (detaljer) ---------- */
.sheet {
  width: min(860px, calc(100% - 24px)); max-height: calc(100% - 24px);
  padding: 0; border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.sheet::backdrop { background: rgba(10, 10, 10, .7); }
.sheet__top {
  display: flex; gap: 16px; align-items: center; padding: 18px;
  background: linear-gradient(#fafafa, #efefef); border-bottom: 1px solid var(--line);
}
.sheet__top .icon { width: 88px; height: 88px; border-radius: 18px; }
.sheet__title { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.2; }
.sheet__dev { margin: 2px 0 8px; color: var(--holo-dark); font-size: 14px; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sheet__close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-3); font-size: 26px; line-height: 1; cursor: pointer;
}
.sheet__close:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.shots {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 18px; background: #262626;
  scroll-snap-type: x mandatory;
}
.shots img {
  height: 220px; width: auto; max-width: none; border-radius: 2px; scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6); background: #111;
}
.shots__empty { color: #bbb; font-size: 14px; padding: 30px 6px; }
.sheet__section { padding: 16px 18px 4px; }
.sheet__section h3 {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--holo-dark);
}
.sheet__section p { margin: 0 0 10px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 14px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- About ---------- */
.about { padding-top: 28px; padding-bottom: 28px; }
.about__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-top: 14px; }
.about__card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.about__card p { margin: 0 0 10px; color: var(--ink-2); }
.about__card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.about__card--notes ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.about__card--notes li { margin-bottom: 6px; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  padding: 18px 16px 28px; color: var(--ink-3); font-size: 13px;
  border-top: 1px solid var(--line); background: #f3f3f3;
}
.footer img { width: 24px; height: 24px; }
.empty { padding: 30px 0; color: var(--ink-3); }

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
  .hero__inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 24px; }
  .hero__logo { width: 72px; height: 72px; }
  .about__grid { grid-template-columns: 1fr; }
  .brand__name span { display: none; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .holo-title { min-width: 0; width: 100%; }
  .sheet { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
  .sheet__top { flex-direction: column; align-items: flex-start; padding-right: 52px; }
  .shots img { height: 180px; }
  .footer__sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
.card__banner img.card__bannericon {
  position: absolute; left: 50%; top: 45%; width: 42%; height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 22%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
}
