/* ============================================================
   PokiiiGame (pokiiigame.com) — Modern Neo Brutalism Design System
   ============================================================ */

/* --- Tokens --- */
:root {
  --primary: #0C71DC;
  --primary-hover: #095CB4;
  --primary-light: #EAF4FF;
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --border: #111111;
  --text: #111111;
  --text-secondary: #666666;
  --success: #22C55E;
  --warning: #FACC15;
  --danger: #EF4444;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --border-w: 3px;
  --shadow: 4px 4px 0 var(--border);
  --shadow-hover: 6px 6px 0 var(--border);
  --shadow-sm: 3px 3px 0 var(--border);

  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --header-h: 72px;
  --transition: 180ms ease;
  --container: 1200px;
}

/* --- Reset / Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

p {
  margin: 0;
  color: var(--text-secondary);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* --- Layout --- */
.np-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .np-container {
    padding-inline: 24px;
  }
}

@media (min-width: 1025px) {
  .np-container {
    padding-inline: 32px;
  }
}

.np-section {
  padding-block: 40px;
}

@media (min-width: 768px) {
  .np-section {
    padding-block: 56px;
  }
}

/* --- Buttons --- */
.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    color var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.np-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.np-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--border);
}

.np-btn--primary {
  background: var(--primary);
  color: #fff;
}

.np-btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.np-btn--secondary {
  background: var(--card);
  color: var(--text);
}

.np-btn--secondary:hover {
  background: var(--primary-light);
  color: var(--text);
}

.np-btn--ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  color: var(--text);
  min-height: 44px;
  padding: 8px 14px;
}

.np-btn--ghost:hover {
  background: var(--primary-light);
  transform: none;
  box-shadow: none;
}

.np-btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.np-btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--card);
  color: var(--text);
}

.np-btn--icon:hover {
  background: var(--primary-light);
}

/* --- Header --- */
.np-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--card);
  border-bottom: var(--border-w) solid var(--border);
}

.np-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.np-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.np-logo__img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(180px, 48vw);
  object-fit: contain;
}

.np-logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--border);
  font-size: 18px;
}

.np-logo__text span {
  color: var(--primary);
}

.np-footer .np-logo__img {
  height: 40px;
}

.np-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.np-nav__link {
  padding: 8px 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 10px;
  transition: background-color var(--transition), color var(--transition);
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .np-nav__link {
    padding: 10px 14px;
    font-size: 15px;
  }
}

.np-nav__link:hover,
.np-nav__link.is-active {
  background: var(--primary-light);
  color: var(--primary);
}

.np-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.np-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.np-burger:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.np-burger[aria-expanded="true"] {
  background: var(--primary-light);
}

@media (min-width: 1025px) {
  .np-nav {
    display: flex;
    margin-left: auto;
    margin-right: 12px;
  }

  .np-burger {
    display: none;
  }
}

/* Mobile drawer */
.np-drawer[hidden] {
  display: none !important;
}

.np-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  display: block;
  background: rgba(17, 17, 17, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.np-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.np-drawer__panel {
  width: min(320px, 88vw);
  height: 100%;
  margin-left: auto;
  background: var(--card);
  border-left: var(--border-w) solid var(--border);
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.np-drawer.is-open .np-drawer__panel {
  transform: translateX(0);
}

.np-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.np-drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  border: var(--border-w) solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), border-color var(--transition);
}

.np-drawer__link:hover,
.np-drawer__link.is-active {
  background: var(--primary-light);
  border-color: var(--border);
  color: var(--primary);
}

@media (min-width: 1025px) {
  .np-drawer {
    display: none;
  }
}

/* --- Hero --- */
.np-hero {
  padding-block: 32px 24px;
}

@media (min-width: 768px) {
  .np-hero {
    padding-block: 48px 32px;
  }
}

.np-hero__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1025px) {
  .np-hero__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
  }
}

.np-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--primary);
}

.np-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  margin-bottom: 16px;
  max-width: 14ch;
}

.np-hero__desc {
  font-size: 1.05rem;
  max-width: 38ch;
  margin-bottom: 28px;
  line-height: 1.65;
}

.np-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.np-hero__banner {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.np-hero__banner:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.np-hero__banner-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #0C71DC 0%, #095CB4 55%, #063A73 100%);
  overflow: hidden;
}

.np-hero__banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(0, 0, 0, 0.06) 18px,
      rgba(0, 0, 0, 0.06) 20px
    );
  pointer-events: none;
}

.np-hero__banner-media .np-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.np-hero__banner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: clamp(64px, 12vw, 96px);
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.25));
}

.np-hero__banner-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.np-hero__banner-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.np-hero__banner-title {
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-hero__banner-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Section header --- */
.np-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.np-section__title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

/* --- Game grid --- */
.np-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .np-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1025px) {
  .np-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}

/* --- Game card --- */
.np-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

/* Full-card hit area — sits above image so clicks never open the media URL */
.np-card__link {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: transparent;
  color: transparent;
  text-decoration: none;
}

.np-card__thumb,
.np-card__body {
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.np-card:hover,
.np-card:focus-within {
  transform: translate(-2px, -2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  color: inherit;
}

.np-card:hover .np-card__play,
.np-card:focus-within .np-card__play {
  background: var(--primary-hover);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.np-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e8e8;
}

.np-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-card__thumb-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.92);
}

.np-card__thumb-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 14px,
    rgba(0, 0, 0, 0.05) 14px,
    rgba(0, 0, 0, 0.05) 16px
  );
  pointer-events: none;
}

.np-card__thumb-placeholder i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2));
}

.np-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  flex: 1;
}

@media (min-width: 768px) {
  .np-card__body {
    padding: 16px;
  }
}

.np-card__title {
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

@media (min-width: 768px) {
  .np-card__title {
    font-size: 1.05rem;
  }
}

.np-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--primary-light);
  color: var(--primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
}

.np-card__footer {
  margin-top: auto;
  padding-top: 4px;
}

.np-card__play {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
}

/* Thumbnail accent colors */
.thumb-blue { background: #0C71DC; }
.thumb-navy { background: #1B3A5F; }
.thumb-teal { background: #0D9488; }
.thumb-coral { background: #E85D4C; }
.thumb-amber { background: #EAB308; }
.thumb-indigo { background: #4338CA; }
.thumb-slate { background: #334155; }
.thumb-rose { background: #E11D48; }
.thumb-emerald { background: #059669; }
.thumb-orange { background: #EA580C; }
.thumb-violet { background: #7C3AED; }
.thumb-cyan { background: #0891B2; }

/* --- Search modal --- */
.np-search[hidden] {
  display: none !important;
}

.np-search {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: start center;
  padding: 12vh 16px 24px;
  background: rgba(17, 17, 17, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.np-search.is-open {
  opacity: 1;
  visibility: visible;
}

.np-search__panel {
  width: min(560px, 100%);
  background: var(--card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--border);
  padding: 20px;
  transform: translateY(-12px) scale(0.98);
  transition: transform var(--transition);
}

.np-search.is-open .np-search__panel {
  transform: translateY(0) scale(1);
}

.np-search__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.np-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 16px;
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.np-search__field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.np-search__field i {
  color: var(--text-secondary);
  font-size: 18px;
  flex-shrink: 0;
}

.np-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
}

.np-search__input::placeholder {
  color: #999;
}

.np-search__submit {
  flex-shrink: 0;
}

.np-search__hint {
  margin-top: 12px;
  font-size: 13px;
}

.np-search__results {
  margin-top: 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.np-search__results.is-visible {
  display: flex;
}

.np-search__result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), border-color var(--transition);
}

.np-search__result:hover {
  background: var(--primary-light);
  border-color: var(--border);
}

.np-search__result-thumb {
  width: 48px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}

.np-search__result-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}

.np-search__result-cat {
  font-size: 12px;
  color: var(--text-secondary);
}

body.is-locked {
  overflow: hidden;
}

/* --- Footer --- */
.np-footer {
  margin-top: 24px;
  background: var(--card);
  border-top: var(--border-w) solid var(--border);
  padding-block: 48px 28px;
}

.np-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 20px;
}

@media (min-width: 768px) {
  .np-footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.np-footer__title {
  font-size: 1rem;
  margin-bottom: 14px;
}

.np-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.np-footer__link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.np-footer__link:hover {
  color: var(--primary);
}

.np-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.np-social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--border);
  font-size: 18px;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.np-social:hover {
  background: var(--primary);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--border);
}

.np-footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid #e5e5e5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.np-footer__copy {
  font-size: 13px;
}

/* --- Alt section --- */
.np-section--alt {
  background: #fff;
  border-block: var(--border-w) solid var(--border);
}

/* --- Inner pages --- */
.np-page {
  padding-block: 40px 64px;
}

@media (min-width: 768px) {
  .np-page {
    padding-block: 56px 80px;
  }
}

.np-page__hero {
  margin-bottom: 32px;
}

.np-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--primary);
}

.np-page__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.np-page__lead {
  font-size: 1.1rem;
  max-width: 54ch;
  line-height: 1.65;
}

.np-panel {
  background: var(--card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

@media (min-width: 768px) {
  .np-panel {
    padding: 32px;
  }
}

.np-prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 72ch;
}

.np-prose h2 {
  font-size: 1.35rem;
  margin-top: 12px;
}

.np-prose p,
.np-prose li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.np-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.np-prose a:not(.np-btn) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.np-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}

.np-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.np-field input,
.np-field select,
.np-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.np-field textarea {
  min-height: 140px;
  resize: vertical;
}

.np-field input:focus,
.np-field select:focus,
.np-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.np-dev-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .np-dev-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.np-dev-card {
  background: var(--card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.np-dev-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.np-dev-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  background: var(--primary-light);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--primary);
  font-size: 22px;
}

.np-dev-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.np-dev-card p {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Game Details Page
   ============================================================ */
.np-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.np-breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.np-breadcrumb a:hover {
  color: var(--primary);
}

.np-breadcrumb__sep {
  color: #bbb;
  font-size: 12px;
}

.np-breadcrumb__current {
  color: var(--text);
  font-weight: 600;
}

.np-game-detail {
  padding-block: 24px 48px;
}

@media (min-width: 768px) {
  .np-game-detail {
    padding-block: 32px 64px;
  }
}

.np-game-detail__title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  margin-bottom: 20px;
}

.np-game-detail__hero {
  display: grid;
  gap: 20px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .np-game-detail__hero {
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: stretch;
  }
}

.np-game-detail__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.np-game-detail__thumb-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(64px, 14vw, 96px);
  color: rgba(255, 255, 255, 0.92);
}

.np-game-detail__thumb-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 18px,
    rgba(0, 0, 0, 0.05) 18px,
    rgba(0, 0, 0, 0.05) 20px
  );
  pointer-events: none;
}

.np-game-detail__thumb-placeholder i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.2));
}

.np-game-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-game-detail__cta-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 20px;
  background: var(--card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .np-game-detail__cta-wrap {
    padding: 28px;
  }
}

.np-btn--xl {
  width: 100%;
  min-height: 60px;
  padding: 16px 28px;
  font-size: 1.15rem;
  border-radius: var(--radius-sm);
}

.np-game-detail__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 48px;
}

.np-game-block {
  background: var(--card);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

@media (min-width: 768px) {
  .np-game-block {
    padding: 28px;
  }
}

.np-game-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.np-game-block__title i {
  color: var(--primary);
}

.np-game-block p,
.np-game-block li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.np-game-block p + p {
  margin-top: 12px;
}

.np-game-block ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.np-game-facts {
  display: grid;
  gap: 12px;
}

@media (min-width: 480px) {
  .np-game-facts {
    grid-template-columns: 1fr 1fr;
  }
}

.np-game-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
}

.np-game-fact__label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.np-game-fact__value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.np-section--more {
  padding-block: 8px 0;
}

.np-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.np-tag:hover {
  background: var(--primary);
  color: #fff;
  transform: translate(-1px, -1px);
}

/* ============================================================
   Play Game Page
   ============================================================ */
.np-play {
  padding-block: 20px 40px;
}

@media (min-width: 768px) {
  .np-play {
    padding-block: 28px 56px;
  }
}

.np-play__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 16px;
}

.np-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.np-player__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0a0a0a;
}

.np-player__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #0a0a0a;
  color: #fff;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.np-player__loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.np-player__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  border-right-color: #fff;
  border-radius: 50%;
  animation: np-spin 0.7s linear infinite;
}

.np-player__loader-text {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes np-spin {
  to { transform: rotate(360deg); }
}

.np-player__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.np-player__actions .np-btn {
  flex: 1 1 auto;
  min-width: calc(50% - 10px);
}

@media (min-width: 640px) {
  .np-player__actions .np-btn {
    flex: 0 1 auto;
    min-width: 0;
  }
}

.np-play__back {
  display: inline-flex;
}

.np-player:fullscreen,
.np-player:-webkit-full-screen {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
}

.np-player:fullscreen .np-player__frame,
.np-player:-webkit-full-screen .np-player__frame {
  width: 100%;
  height: 100%;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
