/*
  Player One site styles.
  Brand: Near Black #0A0A0A, White #FFFFFF, Player Red #EA2A33 (small accents only).
  Type: Inter. Black (900) for headlines, Medium (500) for body.
*/

:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --red: #EA2A33;
  --panel: #141414;
  --line: #2A2A2A;
  --line-strong: #3A3A3A;
  --grey-1: #D6D6D6;
  --grey-2: #C4C4C4;
  --grey-3: #A3A3A3;
  --grey-4: #8F8F8F;
  --ink-2: #3D3D3D;
  --ink-3: #5C5C5C;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(56px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--black); }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: 1296px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.dark { background: var(--black); color: var(--white); }

.grid-bg {
  background-color: var(--black);
  background-image:
    linear-gradient(#161616 1px, transparent 1px),
    linear-gradient(90deg, #161616 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--white);
}

/* The red square: the full stop from the logo */
.sq { display: block; flex: 0 0 auto; width: 12px; height: 12px; background: var(--red); }
.sq-sm { width: 10px; height: 10px; }
.sq-grey { background: var(--line-strong); }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: transparent; color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 20px;
}
.topbar-logo { display: flex; align-items: center; min-height: 44px; }
.topbar-logo img { display: block; height: 52px; width: auto; margin-left: -10px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; font-size: 16px; font-weight: 600; }
.nav a { display: flex; align-items: center; min-height: 44px; color: var(--white); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .nav-cta { padding: 0 18px; border: 2px solid var(--white); background: var(--white); color: var(--black); font-weight: 800; transition: background-color 0.15s, color 0.15s; }
.nav .nav-cta:hover { background: transparent; color: var(--white); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 56px;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(56px, 7vw, 104px);
}
.hero-copy { flex: 1 1 440px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-strong);
  background: var(--black);
  font-size: 15px;
  font-weight: 600;
}
.now-playing .sq { animation: p1-blink 1.4s steps(1) infinite; }

.hero h1 { font-size: clamp(42px, 6vw, 92px); font-weight: 900; line-height: 0.92; letter-spacing: -0.045em; }
.stop { display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.05em; background: var(--red); }
.hero-lede { max-width: 34ch; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; color: var(--grey-1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { flex: 1 1 520px; min-width: 0; position: relative; aspect-ratio: 10 / 8.6; }

.hero-game {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  padding: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  transform: rotate(4deg);
  animation: p1-float 7s ease-in-out infinite;
}
.hero-game img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-game-caption { display: flex; justify-content: space-between; gap: 12px; padding: 8px 4px 2px; font-size: 13px; font-weight: 700; }
.hero-game-caption span + span { color: var(--grey-3); }

.window { border: 1px solid var(--line-strong); background: var(--panel); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.window-bar .sq { width: 10px; height: 10px; }
.window-title { margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--grey-3); }
.window img { display: block; width: 100%; height: auto; }

.hero-app { position: absolute; left: 0; bottom: 9%; width: 88%; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75); }
.hero-app .window-bar { padding: 10px 12px; }
.hero-app .window-bar .sq { width: 9px; height: 9px; }
.hero-app .window-title { font-size: 13px; }
.hero-app img { aspect-ratio: 16 / 8.2; object-fit: cover; object-position: left top; }

.hero-alert {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: min(330px, 74%);
  padding: 16px 18px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.hero-alert.pop-a { animation: p1-pop-a 0.55s ease-out both; }
.hero-alert.pop-b { animation: p1-pop-b 0.55s ease-out both; }
.alert-tag { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; }
.alert-tag .sq { width: 9px; height: 9px; }
.alert-who { margin-top: 6px; font-size: 24px; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; }
.alert-what { margin-top: 2px; font-size: 16px; color: var(--ink-2); }

/* ---------- Ticker ---------- */

.ticker { background: var(--white); border-bottom: 2px solid var(--black); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; padding: 16px 0; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; animation: p1-marquee 38s linear infinite; }
.ticker-group { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker .sq { width: 11px; height: 11px; }

/* ---------- CUE ---------- */

.cue-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; padding-top: var(--section); }
.cue-title { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
/* The lockup file has empty space around the mark, so pull it back to the text edge */
.cue-lockup { display: block; height: clamp(84px, 11vw, 150px); width: auto; max-width: none; margin: -1.2% 0 -1.2% calc(clamp(84px, 11vw, 150px) * -0.56); }
.cue-title h2 { font-size: clamp(34px, 4.6vw, 68px); font-weight: 900; line-height: 0.94; letter-spacing: -0.045em; max-width: 13ch; }
.cue-pitch { flex: 1 1 360px; max-width: 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cue-pitch p { font-size: 19px; color: var(--grey-1); }
.cue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cue-actions span { font-size: 16px; color: var(--grey-3); }

.block { padding-top: clamp(40px, 5vw, 72px); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 26px; background: var(--black); transition: background-color 0.2s; }
.feature:hover { background: var(--panel); }
.feature svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.5; }
.feature p { font-size: 16px; color: var(--grey-3); }
.feature-pets { padding: 20px 22px 22px; }
.pets { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.pets img { height: 34px; width: auto; }

.shots { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.shots .window { min-width: 0; border-bottom: 0; }
.shot-main { flex: 999 1 560px; }
.shot-side { flex: 1 1 300px; }
.shot-side .window-title { margin-left: 4px; }

/* ---------- Whisker World ---------- */

.ww { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; padding-top: var(--section); padding-bottom: var(--section); }
.ww-art { flex: 999 1 520px; min-width: 0; position: relative; }
.ww-art-main { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: center top; }
.ww-art-inset {
  position: absolute;
  right: -4%;
  bottom: -9%;
  width: 42%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.ww-copy { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ww-copy h2 { font-size: clamp(44px, 6vw, 92px); font-weight: 900; line-height: 0.88; letter-spacing: -0.05em; }
.ww-copy > p { max-width: 40ch; font-size: 19px; color: var(--ink-2); }
.zeros { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--black); }
.zeros li { display: flex; flex-direction: column; padding: 14px 12px 0 0; font-size: 15px; color: var(--ink-2); }
.zeros b { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: var(--black); }
.ww-copy > p.fine { font-size: 15px; color: var(--ink-3); max-width: none; }
.fine a { font-weight: 700; }

/* ---------- Library ---------- */

.library { padding-top: var(--section); padding-bottom: var(--section); }
.library-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 4px solid var(--white); }
.library-head h2 { font-size: clamp(44px, 7vw, 104px); font-weight: 900; line-height: 0.9; letter-spacing: -0.045em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  transition: background-color 0.15s, color 0.15s;
}
.filters button:hover { background: #2A2A2A; }
.filters button[aria-pressed="true"] { background: var(--white); color: var(--black); }

.lib-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 40px;
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-bottom: 1px solid #4A4A4A;
  text-decoration: none;
  color: var(--white);
  font-size: 17px;
  animation: p1-row 0.35s ease-out both;
}
a.lib-row { transition: padding-left 0.2s ease-out; }
a.lib-row:hover { color: var(--white); padding-left: 14px; }
a.lib-row:hover .lib-title { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.lib-main { flex: 999 1 420px; display: flex; flex-direction: column; gap: 8px; }
.lib-title { font-size: clamp(30px, 4.2vw, 60px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.lib-blurb { color: var(--grey-2); max-width: 52ch; }
.lib-type { flex: 1 1 110px; font-weight: 700; }
.lib-platform { flex: 1 1 110px; color: var(--grey-2); }
.lib-status { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.lib-next { border-bottom-color: var(--line); color: var(--grey-4); }
.lib-next .lib-platform { color: inherit; }
.lib-next .lib-status { font-weight: 500; }
.lib-empty { padding: 34px 0; color: var(--grey-2); }

/* ---------- About and contact ---------- */

.studio { display: flex; flex-wrap: wrap; gap: 48px 96px; padding-top: var(--section); padding-bottom: var(--section); }
.studio > div { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.studio h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; }
.studio p { max-width: 44ch; font-size: 19px; color: var(--ink-2); }
.mail { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 900; letter-spacing: -0.03em; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.footer { background: var(--black); color: var(--grey-2); overflow: hidden; }
.footer-inner { display: flex; flex-direction: column; gap: 28px; padding-top: clamp(32px, 4vw, 56px); padding-bottom: 28px; }
/* The logo file has clear space built in; the negative margins trim it so the letters run edge to edge */
.footer-logo { display: block; width: 112.4%; max-width: none; height: auto; margin: -4.5% -6.2% -5%; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 20px; border-top: 1px solid var(--line-strong); font-size: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: var(--white); }
.footer-nav a:hover { color: var(--red); }

/* ---------- Inner pages ---------- */

.page-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.page-head h1 { font-size: clamp(40px, 6.4vw, 96px); font-weight: 900; line-height: 0.92; letter-spacing: -0.045em; max-width: 16ch; }
.page-head p { color: var(--grey-1); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; max-width: 40ch; }
.page-head .dated { font-size: 16px; color: var(--grey-3); }

.game-head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.game-badge { display: block; width: clamp(104px, 14vw, 176px); height: auto; border: 1px solid var(--line-strong); }
.game-head > div { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.game-shots { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; padding-top: clamp(40px, 5vw, 72px); }
.game-shots img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-shots img:first-child { grid-row: span 2; }

.game-info { display: flex; flex-wrap: wrap; gap: 48px 96px; padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
.game-info > div { flex: 1 1 380px; min-width: 0; }
.game-info h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; padding-bottom: 18px; border-bottom: 3px solid var(--black); }

.checks, .facts { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 16px 0 16px 26px; border-bottom: 1px solid #DCDCDC; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 9px; height: 9px; background: var(--black); }
.facts { display: grid; grid-template-columns: minmax(110px, auto) 1fr; }
.facts dt, .facts dd { margin: 0; padding: 16px 0; border-bottom: 1px solid #DCDCDC; }
.facts dt { padding-right: 24px; font-weight: 800; }
.facts dd { color: var(--ink-2); }
.facts a, .doc a { font-weight: 700; }

.doc { max-width: 1296px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) var(--section); }
.doc > * { max-width: 66ch; }
.doc h2 { margin-top: 48px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; }
.doc p, .doc ul { margin-top: 14px; color: var(--ink-2); }
.doc ul { padding-left: 0; list-style: none; }
.doc li { position: relative; padding-left: 26px; margin-top: 10px; }
.doc li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 8px; height: 8px; background: var(--black); }
.doc .summary { padding: 22px 0; border-top: 3px solid var(--black); border-bottom: 1px solid #DCDCDC; }
.doc .summary p { margin: 0; font-size: clamp(21px, 2.2vw, 27px); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--black); }

/* ---------- Motion ---------- */

@keyframes p1-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes p1-pop-a { 0% { opacity: 0; transform: translateY(18px) scale(.96); } 60% { opacity: 1; transform: translateY(-3px) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes p1-pop-b { 0% { opacity: 0; transform: translateY(18px) scale(.96); } 60% { opacity: 1; transform: translateY(-3px) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes p1-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes p1-float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }
@keyframes p1-row { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .topbar-logo img { height: 44px; }
  /* Logo and Get CUE on the first row, the four links on the second */
  .topbar { justify-content: flex-start; gap: 4px 22px; font-size: 15px; font-weight: 600; }
  .topbar-logo { margin-right: auto; }
  .nav { display: contents; }
  .nav .nav-cta { order: 1; }
  .topbar::before { content: ""; order: 2; flex-basis: 100%; }
  .nav a:not(.nav-cta) { order: 3; }
  .btn { padding: 0 22px; }
  .ticker-track { font-size: 17px; padding: 13px 0; }
  .hero-alert { padding: 12px 14px; }
  .alert-who { font-size: 20px; }
  .alert-what { font-size: 14px; }
  .ww-art { margin-bottom: 5%; }
  .ww-art-inset { right: 0; border-width: 4px; }
  .lib-type, .lib-platform { flex: 0 1 auto; }
  .lib-status { flex-basis: 100%; }
  .game-shots { grid-template-columns: 1fr 1fr; }
  .game-shots img:first-child { grid-row: auto; grid-column: span 2; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 4px; }
}
