:root {
  --text: #f4f8ff;
  --muted: rgba(229, 236, 250, 0.72);

  --panel: rgba(8, 20, 45, 0.72);
  --panel-hover: rgba(15, 48, 96, 0.82);

  --border: rgba(130, 190, 255, 0.18);
  --border-hover: rgba(180, 225, 255, 0.55);

}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #020817;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  position: relative;

  background-color: #020817;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(76, 160, 255, 0.22), transparent 32vw),
    radial-gradient(circle at 82% 8%, rgba(120, 105, 255, 0.14), transparent 30vw),
    linear-gradient(
      180deg,
      #103d7d 0px,
      #092b62 320px,
      #061b43 760px,
      #040d25 1180px,
      #020817 1600px
    );
  background-repeat: no-repeat;
  background-size: 100% 1800px;
}

/* ===== Animated Aurora Background ===== */

.ps4-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Большая мягкая подсветка, которая медленно гуляет по экрану */
.ps4-bg::before {
  content: "";
  position: absolute;
  inset: -28%;

  background:
    radial-gradient(
      ellipse at 18% 22%,
      rgba(86, 170, 255, 0.20),
      transparent 36%
    ),
    radial-gradient(
      ellipse at 74% 24%,
      rgba(135, 110, 255, 0.15),
      transparent 34%
    ),
    linear-gradient(
      118deg,
      transparent 0%,
      transparent 28%,
      rgba(95, 185, 255, 0.00) 36%,
      rgba(95, 185, 255, 0.13) 44%,
      rgba(255, 255, 255, 0.075) 50%,
      rgba(75, 135, 255, 0.10) 57%,
      rgba(95, 185, 255, 0.00) 66%,
      transparent 100%
    );

  opacity: 0.78;
  transform: translate3d(-8%, -4%, 0) rotate(-3deg) scale(1.08);
  animation: auroraGlow 18s ease-in-out infinite alternate;
}

/* Едва заметный слой глубины, без сетки и без резких линий */
.ps4-bg::after {
  content: "";
  position: absolute;
  inset: -20%;

  background:
    linear-gradient(
      135deg,
      transparent 0%,
      transparent 22%,
      rgba(255, 255, 255, 0.035) 32%,
      transparent 43%,
      transparent 100%
    ),
    linear-gradient(
      35deg,
      transparent 0%,
      transparent 52%,
      rgba(90, 180, 255, 0.055) 61%,
      transparent 72%,
      transparent 100%
    );

  opacity: 0.5;
  transform: translate3d(4%, 0, 0) rotate(1deg) scale(1.04);
}

/* Мягкие диагональные ленты. Используем существующие ps4-shape div'ы из HTML. */
.ps4-shape {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(120, 205, 255, 0.00) 10%,
      rgba(120, 205, 255, 0.13) 34%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(105, 150, 255, 0.10) 66%,
      rgba(120, 205, 255, 0.00) 90%,
      transparent 100%
    );

  border: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow:
    0 0 46px rgba(85, 165, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ps4-shape-1 {
  width: 74vw;
  height: 120px;
  top: 16vh;
  left: -24vw;
  opacity: 0.40;
  transform: rotate(-13deg);
}

.ps4-shape-2 {
  width: 62vw;
  height: 90px;
  top: 45vh;
  right: -22vw;
  opacity: 0.24;
  transform: rotate(-16deg);
}

.ps4-shape-3 {
  width: 78vw;
  height: 100px;
  bottom: 10vh;
  left: 18vw;
  opacity: 0.18;
  transform: rotate(-12deg);
}

/* ===== Header ===== */

.page-header,
.controls,
.results-line,
#content,
.modal {
  position: relative;
  z-index: 1;
}

.page-header {
  position: relative;
  text-align: center;
  padding: 32px 20px 18px;
}

.back-link {
  position: absolute;
  top: 18px;
  left: 20px;

  color: rgba(220, 236, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;

  transition: color 0.18s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: rgba(245, 250, 255, 0.96);
  outline: none;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(205, 230, 255, 0.58);
}

h1 {
  margin: 0;

  font-size: clamp(30px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 0.08em;

  color: rgba(245, 250, 255, 0.96);
  text-shadow:
    0 0 18px rgba(90, 180, 255, 0.22),
    0 10px 30px rgba(0, 0, 0, 0.42);
}

.subtitle {
  margin: 10px 0 0;
  color: rgba(220, 236, 255, 0.62);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ===== Stats ===== */

.stats {
  width: min(860px, calc(100% - 28px));
  margin: 22px auto 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stat {
  padding: 12px 14px;
  border-radius: 8px;

  background: rgba(8, 26, 58, 0.56);
  border: 1px solid rgba(160, 215, 255, 0.14);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.stat-value {
  color: rgba(245, 250, 255, 0.96);
  font-size: 22px;
  font-weight: 600;
}

.stat-label {
  margin-top: 3px;
  color: rgba(220, 236, 255, 0.50);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== Year chart ===== */

.year-chart {
  width: min(860px, calc(100% - 28px));
  margin: 12px auto 0;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.year-bar {
  width: 46px;
  padding: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;

  background: none;
  border: none;
  cursor: pointer;
}

.year-bar-track {
  width: 100%;
  height: 46px;

  display: flex;
  align-items: flex-end;

  background: rgba(8, 26, 58, 0.5);
  border: 1px solid rgba(160, 215, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.year-bar-fill {
  width: 100%;
  min-height: 3px;
  background: rgba(120, 200, 255, 0.34);
  transition: background 0.18s ease;
}

.year-bar-label {
  color: rgba(220, 236, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: color 0.18s ease;
}

.year-bar:hover .year-bar-fill,
.year-bar:focus-visible .year-bar-fill {
  background: rgba(150, 220, 255, 0.58);
}

.year-bar:focus-visible {
  outline: 2px solid rgba(180, 225, 255, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

.year-bar[aria-pressed="true"] .year-bar-fill {
  background: rgba(190, 235, 255, 0.85);
}

.year-bar[aria-pressed="true"] .year-bar-label {
  color: rgba(245, 250, 255, 0.96);
}

/* ===== Status tabs ===== */

.status-tabs {
  width: min(1100px, calc(100% - 44px));
  margin: 22px auto 10px;

  display: flex;
  gap: 8px;
}

.status-tab {
  height: 38px;
  padding: 0 16px;

  display: flex;
  align-items: center;
  gap: 8px;

  color: rgba(220, 236, 255, 0.62);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: rgba(5, 18, 43, 0.58);
  border: 1px solid rgba(160, 215, 255, 0.14);
  border-radius: 7px;

  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.status-tab:hover,
.status-tab:focus-visible {
  color: rgba(245, 250, 255, 0.92);
  border-color: rgba(180, 225, 255, 0.36);
  outline: none;
}

.status-tab[aria-pressed="true"] {
  color: rgba(245, 250, 255, 0.98);
  background: rgba(20, 58, 116, 0.82);
  border-color: rgba(180, 225, 255, 0.46);
}

.status-count {
  padding: 1px 7px;
  border-radius: 999px;

  font-size: 11px;
  letter-spacing: 0;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Controls ===== */

.controls {
  width: min(1100px, calc(100% - 44px));
  margin: 8px auto 10px;

  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 170px auto;
  gap: 10px;
  align-items: center;
}

.search-wrap {
  position: relative;
}

.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(220, 236, 255, 0.52);
  font-size: 18px;
  pointer-events: none;
}

input,
select {
  width: 100%;
  height: 42px;

  color: rgba(245, 250, 255, 0.92);
  background: rgba(5, 18, 43, 0.72);
  border: 1px solid rgba(160, 215, 255, 0.16);
  border-radius: 7px;

  outline: none;
  font: inherit;
  font-size: 14px;

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

input {
  padding: 0 12px 0 38px;
}

select {
  padding: 0 12px;
  cursor: pointer;
}

input:focus,
select:focus {
  background: rgba(8, 28, 62, 0.84);
  border-color: rgba(180, 225, 255, 0.42);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    0 0 0 2px rgba(120, 200, 255, 0.12);
}

input::placeholder {
  color: rgba(220, 236, 255, 0.42);
}

.checkbox-control {
  min-height: 42px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  gap: 8px;

  color: rgba(235, 245, 255, 0.74);
  font-size: 13px;
  white-space: nowrap;

  background: rgba(5, 18, 43, 0.58);
  border: 1px solid rgba(160, 215, 255, 0.14);
  border-radius: 7px;

  cursor: pointer;
  user-select: none;
}

.checkbox-control input {
  width: 16px;
  height: 16px;
  accent-color: #78c8ff;
  cursor: pointer;
}

.results-line {
  width: min(1500px, calc(100% - 44px));
  margin: 0 auto 8px;
  color: rgba(220, 236, 255, 0.48);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Main content ===== */

#content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 8px 22px 80px;
}

.year-section {
  padding: 18px 0 30px;
}

.year-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.year-title {
  display: inline-block;
  padding: 7px 12px;

  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(245, 250, 255, 0.94);

  background: rgba(10, 32, 70, 0.55);
  border-left: 3px solid rgba(120, 200, 255, 0.8);
  border-radius: 3px;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.year-count {
  color: rgba(220, 236, 255, 0.48);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grid,
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

/* ===== Cards ===== */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  animation: cardAppear 0.28s ease both;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.card:focus-visible {
  outline: 2px solid rgba(180, 225, 255, 0.72);
  outline-offset: 3px;
}

.card:hover {
  transform: translateY(-5px) scale(1.035);
  background: var(--panel-hover);
  border-color: var(--border-hover);

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 0 2px rgba(120, 190, 255, 0.18),
    0 0 28px rgba(80, 170, 255, 0.22);
}

/* Backlog and in-progress covers read as pending, not finished. */
.card-queued .card-cover img {
  filter: saturate(0.35) brightness(0.82);
}

.card-queued:hover .card-cover img {
  filter: saturate(0.8) brightness(0.95);
}

.card-cover {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      transparent 36%,
      rgba(0, 0, 0, 0.26)
    );
  pointer-events: none;
  z-index: 1;
}

.card-cover-completed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255, 210, 90, 0.18),
      transparent 34%,
      rgba(255, 255, 255, 0.04)
    );
  pointer-events: none;
  z-index: 2;
}

.card-side-badges {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.card-achievement-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  background: rgba(255, 210, 90, 0.18);
  border: 1px solid rgba(255, 225, 140, 0.42);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 210, 90, 0.16);

  backdrop-filter: blur(6px);
}

.card-small-badge {
  max-width: 92px;
  padding: 4px 7px;
  border-radius: 999px;

  color: rgba(245, 250, 255, 0.94);
  font-size: 10px;
  line-height: 1.2;
  text-align: right;
  letter-spacing: 0.04em;

  background: rgba(5, 18, 43, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(7px);

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.platform-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;

  max-width: calc(100% - 16px);
  padding: 4px 7px;
  border-radius: 5px;

  color: rgba(245, 250, 255, 0.94);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: rgba(5, 18, 43, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(7px);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-playstation {
  border-color: rgba(120, 190, 255, 0.34);
  background: rgba(20, 70, 145, 0.70);
}

.platform-pc {
  border-color: rgba(180, 225, 255, 0.28);
  background: rgba(50, 70, 90, 0.70);
}

.platform-switch {
  border-color: rgba(255, 120, 140, 0.30);
  background: rgba(135, 35, 55, 0.70);
}

.platform-xbox {
  border-color: rgba(120, 255, 150, 0.30);
  background: rgba(35, 105, 55, 0.70);
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.card:hover img {
  transform: scale(1.035);
}

.card-info {
  min-height: 88px;
  padding: 10px 11px 12px;
  line-height: 1.4;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.01)
  );
}

.card-title {
  margin-bottom: 5px;
  color: rgba(245, 250, 255, 0.95);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.card-meta {
  color: rgba(235, 245, 255, 0.68);
  font-size: 12px;
}

/* ===== Empty / Skeleton ===== */

.empty-state {
  max-width: 520px;
  margin: 70px auto;
  padding: 34px 24px;

  text-align: center;

  background: rgba(8, 20, 45, 0.60);
  border: 1px solid rgba(160, 215, 255, 0.14);
  border-radius: 10px;

  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.empty-icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
}

.empty-state button {
  height: 38px;
  padding: 0 16px;

  color: rgba(245, 250, 255, 0.92);
  background: rgba(120, 200, 255, 0.14);
  border: 1px solid rgba(180, 225, 255, 0.28);
  border-radius: 6px;

  font: inherit;
  cursor: pointer;
}

.skeleton-card {
  height: 338px;
  border-radius: 6px;

  background:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.09) 42%,
      rgba(255, 255, 255, 0.045) 78%
    );
  background-size: 220% 100%;
  border: 1px solid rgba(160, 215, 255, 0.10);

  animation: skeletonPulse 1.2s ease-in-out infinite;
}

/* ===== Modal ===== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(1, 8, 22, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal[hidden] {
  display: none;
}

.modal-content {
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: auto;

  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
  gap: 24px;

  padding: 24px;
  border-radius: 8px;

  background:
    linear-gradient(
      180deg,
      rgba(17, 54, 108, 0.92),
      rgba(5, 18, 43, 0.94)
    );

  border: 1px solid rgba(160, 215, 255, 0.24);

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.045) inset;
}

.modal-cover-column {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#modal-img {
  width: 240px;
  max-width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 5px;

  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.modal-cover-achievement {
  display: none;

  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;

  color: rgba(255, 245, 210, 0.96);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;

  background: rgba(255, 210, 90, 0.12);
  border: 1px solid rgba(255, 220, 120, 0.20);

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal-details {
  min-width: 0;
  color: var(--text);
}

.modal-kicker {
  margin-bottom: 6px;
  color: rgba(120, 200, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-title-row h2 {
  margin: 0;
  flex: 1;
}

.modal-details h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(245, 250, 255, 0.98);
}

.info-list {
  margin-bottom: 14px;
}

.modal-details p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-details b {
  color: var(--text);
  font-weight: 600;
}

.sessions-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.session-block {
  padding: 12px 14px;
  border-radius: 5px;

  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(160, 215, 255, 0.12);
}

.session-block p:last-child {
  margin-bottom: 0;
}

.close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  z-index: 30;

  color: white;
  background: rgba(10, 32, 70, 0.72);
  border: 1px solid rgba(160, 215, 255, 0.22);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.close:hover,
.close:focus-visible {
  transform: scale(1.06);
  background: rgba(20, 58, 116, 0.86);
  border-color: rgba(180, 225, 255, 0.42);
  outline: none;
}

.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);

  width: 52px;
  height: 76px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 31;

  color: rgba(245, 250, 255, 0.94);
  background: rgba(10, 32, 70, 0.62);
  border: 1px solid rgba(160, 215, 255, 0.20);

  font-size: 54px;
  line-height: 1;
  cursor: pointer;

  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

.modal-nav:hover,
.modal-nav:focus-visible {
  transform: translateY(-50%) scale(1.05);
  background: rgba(20, 58, 116, 0.86);
  border-color: rgba(180, 225, 255, 0.42);
  outline: none;
}

.modal-nav:disabled {
  opacity: 0.24;
  cursor: default;
  pointer-events: none;
}

.modal-nav-prev {
  left: 24px;
}

.modal-nav-next {
  right: 24px;
}

/* ===== Store icons ===== */

.store-links {
  display: flex;
  gap: 8px;
}

.store-links-title {
  margin: 2px 0 0;
  flex-shrink: 0;
}

.store-links a {
  width: 34px;
  height: 34px;
  border-radius: 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(160, 215, 255, 0.12);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.store-links a:hover,
.store-links a:focus-visible {
  transform: translateY(-2px) scale(1.05);
  background: rgba(120, 200, 255, 0.14);
  border-color: rgba(180, 225, 255, 0.32);
  outline: none;
}

.store-links img {
  width: 20px;
  height: 20px;
  opacity: 0.92;
  filter: brightness(0) invert(1);
}

/* ===== Scrollbar ===== */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

::-webkit-scrollbar-thumb {
  background: rgba(140, 205, 255, 0.24);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 225, 255, 0.34);
  background-clip: padding-box;
}

/* ===== Animations ===== */

@keyframes auroraGlow {
  0% {
    opacity: 0.54;
    transform: translate3d(-12%, -5%, 0) rotate(-4deg) scale(1.06);
  }

  45% {
    opacity: 0.88;
    transform: translate3d(4%, 1%, 0) rotate(-1deg) scale(1.12);
  }

  100% {
    opacity: 0.64;
    transform: translate3d(14%, -3%, 0) rotate(2deg) scale(1.08);
  }
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes skeletonPulse {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

/* ===== Responsive ===== */

@media (max-width: 980px) {
  .controls {
    grid-template-columns: 1fr 1fr;
  }

  .checkbox-control {
    justify-content: center;
  }

  .modal-nav {
    width: 44px;
    height: 62px;
    font-size: 44px;
  }

  .modal-nav-prev {
    left: 10px;
  }

  .modal-nav-next {
    right: 10px;
  }
}

@media (max-width: 860px) {
  .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-cover-column {
    width: min(260px, 72vw);
  }

  #modal-img {
    width: 100%;
    max-width: 100%;
  }

  .modal-cover-achievement {
    width: 100%;
  }

  .modal-details {
    width: 100%;
  }

  .modal-title-row {
    align-items: flex-start;
  }

  .ps4-shape-1 {
    width: 90vw;
    left: -42vw;
  }

  .ps4-shape-2 {
    width: 82vw;
    right: -44vw;
  }

  .ps4-shape-3 {
    width: 96vw;
    left: 4vw;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding: 18px 14px 16px;
  }

  /* Absolute placement collides with the eyebrow on narrow screens. */
  .back-link {
    position: static;
    display: block;
    margin-bottom: 14px;
    text-align: left;
  }

  h1 {
    font-size: 30px;
  }

  .subtitle {
    font-size: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    width: calc(100% - 28px);
  }

  /* Three tabs have to share one phone row without clipping the last label. */
  .status-tabs {
    width: calc(100% - 28px);
  }

  .status-tab {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .status-count {
    padding: 1px 5px;
  }

  .controls {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .results-line {
    width: calc(100% - 28px);
  }

  #content {
    padding: 10px 14px 60px;
  }

  .grid,
  .skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
  }

  .year-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .year-title {
    font-size: 20px;
  }

  .card-info {
    min-height: 92px;
  }

  .modal {
    padding: 14px 56px;
  }

  .modal-content {
    padding: 18px;
    border-radius: 7px;
  }

  .modal-title-row {
    flex-direction: column;
    gap: 10px;
  }

  .store-links-title {
    margin-top: 0;
  }

  .close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .modal-nav {
    width: 36px;
    height: 54px;
    font-size: 36px;
  }

  .modal-nav-prev {
    left: 8px;
  }

  .modal-nav-next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps4-bg::before,
  .card,
  .card img,
  .store-links a,
  .close,
  .modal-nav,
  .skeleton-card {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}