@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Mono:wght@400;700&family=Inter:wght@400;600;700;800;900&display=swap');

@font-face {
  font-family: 'Brodish';
  src: url('../fonts/brodish/BRODISH.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Brodish';
  src: url('../fonts/brodish/BRODISH%20Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

:root {
  --cream: #FCEEDD;
  --cream-deep: #F5E3C9;
  --ink: #111111;
  --pink: #FF6FA0;
  --yellow: #FFC845;
  --teal: #2FD9B5;
  --blue: #8B9FFF;
  --paper: #FFFDF8;
  --panel: #FFFFFF;
  --green: #4ADE80;
  --red: #F87171;
  --volt: #DFFF3C;
  --riot: #FF3B5C;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;
  --r-chip: 3px;
  --line: 2px;
  --line-thick: 3px;
  --bw: 3px;
  --bw-thick: 4px;

  --shadow-soft: 0 8px 20px rgba(37,27,58,0.10);
  --shadow-soft-hover: 0 16px 32px rgba(37,27,58,0.16);
  --shadow-pop: 0 6px 0 0 var(--ink);
  --shadow-pop-hover: 0 9px 0 0 var(--ink);
  --shadow-sm: 4px 4px 0 0 var(--ink);
  --shadow: 6px 6px 0 0 var(--ink);
  --shadow-hover: 9px 9px 0 0 var(--ink);

  --f-display: 'Brodish', sans-serif;
  --f-mono: 'Space Mono', monospace;
  --f-body: 'Brodish', sans-serif;
}

html, body {
  overscroll-behavior: none;
}
.playriot-body *, .playriot-body *::before, .playriot-body *::after { box-sizing:border-box; margin:0; padding:0; }
.playriot-body {
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.playriot-body img { display:block; max-width:100%; }
.playriot-body a { color:inherit; text-decoration:none; }
.playriot-body button { font-family: inherit; cursor:pointer; border:none; background:none; }
.playriot-body ul { list-style:none; }
.playriot-body h1, .playriot-body h2, .playriot-body h3, .playriot-body h4,
.playriot-body .hero-title-h1, .playriot-body .featured-title-h2, .playriot-body .section-title-h2 {
  font-family: var(--f-display);
  font-weight: bold;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.playriot-body b, .playriot-body strong {
  font-family: 'Brodish', sans-serif;
  font-weight: bold;
}

@media (prefers-reduced-motion: reduce){
  .playriot-body * { animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.playriot-body a:focus-visible, .playriot-body button:focus-visible, .playriot-body input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 2. UTILITIES */
.playriot-body .wrap { width: 100%; max-width: 1560px; margin:0 auto; padding: 0 32px; }

.playriot-body .tag {
  display:inline-flex; align-items:center; gap:6px;
  font-family: var(--f-display);
  font-weight:700;
  font-size: 0.78rem;
  padding: 7px 15px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
}

.playriot-body .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 7px 13px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--r-chip);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}
.playriot-body .chip.neon {
  background: #D4FA22;
}

/* 3. AMBIENT DECORATION */
.playriot-body .blob {
  position:absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events:none;
  z-index:1;
}
@keyframes drift {
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-16px) rotate(4deg); }
}
.playriot-body .float { animation: drift 6s ease-in-out infinite; }
.playriot-body .mascot { position:absolute; pointer-events:none; z-index:2; }
.playriot-body .mascot svg { display:block; }

/* 4. HEADER */
.playriot-body .site-header {
  position: sticky; top:0; z-index: 100;
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
}
.playriot-body .header-inner {
  display:flex; align-items:center; gap: 20px;
  padding: 14px 32px 14px 70px;
  max-width: 100%; margin:0 auto;
}
.playriot-body .logo {
  font-family: var(--f-display);
  font-weight:800;
  font-size: 1.4rem;
  display:flex; align-items:center; gap:9px;
  flex-shrink:0;
}
.playriot-body .logo .dot {
  width:32px; height:32px;
  background: var(--pink);
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  transform: none;
  position:relative;
}
.playriot-body .logo .dot::after {
  content:"";
  width:10px; height:10px; border-radius:50%;
  background: var(--ink);
}
.playriot-body .logo .mark {
  background: var(--pink);
  color: var(--ink);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--line-thick) solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  transform: rotate(-4deg);
  font-size: 1rem;
  line-height: 1;
}

.playriot-body .search-form {
  flex: 1 1 auto;
  display:flex;
  max-width: 460px;
  margin: 0 auto;
  border: var(--line-thick) solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  box-shadow: 4px 4px 0 0 var(--ink);
  overflow:hidden;
}
.playriot-body .search-form input {
  flex:1; border:none; outline:none;
  font-family: var(--f-body); font-weight:600; font-size:0.95rem;
  padding: 10px 8px 10px 18px;
  background: transparent;
  color: var(--ink);
}
.playriot-body .search-form input::placeholder { color:#8A7E9C; font-weight:600; }
.playriot-body .search-form button {
  background: var(--yellow);
  margin: 0;
  border-radius: 0;
  border-left: var(--line-thick) solid var(--ink);
  padding: 0 16px;
  display:flex; align-items:center; justify-content:center;
  transition: background 0.15s ease;
}
.playriot-body .search-form button:hover { background: var(--pink); }
.playriot-body .search-form svg { width:17px; height:17px; stroke: var(--ink); }

.playriot-body .header-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; }

.playriot-body .btn {
  font-family: var(--f-display);
  font-weight:800;
  font-size: 0.85rem;
  padding: 10px 20px;
  border: var(--line-thick) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 4px 4px 0 0 var(--ink);
  text-transform: uppercase;
  display:inline-flex; align-items:center; gap:8px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  white-space: nowrap;
  color: var(--ink);
}
.playriot-body .btn:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 0 var(--ink); }
.playriot-body .btn:active { transform: translateY(2px); box-shadow: 2px 2px 0 0 var(--ink); }
.playriot-body .btn.solid-yellow { background: var(--yellow); }
.playriot-body .btn.solid-blue { background: var(--blue); }
.playriot-body .btn.solid-coral { background: var(--pink); }
.playriot-body .btn.solid-mint { background: var(--teal); }
.playriot-body .btn.solid-riot { background: var(--riot); color: var(--paper); }
.playriot-body .btn.solid-volt { 
  background: #D4FA22; 
  border: var(--line-thick) solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 0 var(--ink);
  text-transform: uppercase;
  font-weight: 800;
}
.playriot-body .btn.solid-volt:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 0 var(--ink); }
.playriot-body .btn.solid-volt:active { transform: translateY(2px); box-shadow: 2px 2px 0 0 var(--ink); margin-bottom: 30px; }

/* Vote Buttons Active States */
.playriot-body .btn-vote.upvote.active-up {
  background: var(--volt);
  box-shadow: 0 2px 0 0 var(--ink);
  transform: translateY(4px);
}
.playriot-body .btn-vote.downvote.active-down {
  background: var(--riot);
  color: #fff;
  box-shadow: 0 2px 0 0 var(--ink);
  transform: translateY(4px);
}

/* How to Play Section */
.playriot-body .htp-section {
  margin-top: 48px;
}
.playriot-body .htp-heading {
  font-family: var(--f-display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--ink);
}
.playriot-body .htp-subheading {
  font-family: var(--f-display); font-size: 1.1rem; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--ink);
}

.playriot-body .htp-steps {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px;
}
.playriot-body .htp-step-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--r-md); padding: 20px;
  box-shadow: 2px 2px 0 0 var(--ink);
}
.playriot-body .htp-step-num {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); border: var(--line) solid var(--ink); border-radius: var(--r-sm);
  font-family: var(--f-display); font-size: 1.1rem; flex-shrink: 0; box-shadow: 2px 2px 0 0 var(--ink);
}
.playriot-body .htp-step-text strong {
  display: block; font-family: var(--f-display); font-size: 1rem; text-transform: uppercase; margin-bottom: 4px;
}
.playriot-body .htp-step-text p {
  font-size: 0.95rem; color: #3A352C; margin: 0; line-height: 1.5; font-weight: 500;
}

.playriot-body .htp-controls {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px;
}
.playriot-body .htp-control-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--r-sm); padding: 12px 16px;
  box-shadow: 2px 2px 0 0 var(--ink); flex: 1; min-width: 250px;
}
.playriot-body .htp-key {
  background: var(--ink); color: var(--volt); font-family: monospace; font-weight: bold; font-size: 0.75rem;
  padding: 4px 8px; border-radius: var(--r-chip); text-transform: uppercase; letter-spacing: 0.5px;
}
.playriot-body .htp-action {
  font-size: 0.85rem; font-weight: 600; color: #3A352C;
}

.playriot-body .htp-pro-tips {
  background: var(--paper); border: var(--line-thick) solid var(--ink); border-radius: var(--r-md); padding: 24px;
  box-shadow: 4px 4px 0 0 var(--ink); margin-bottom: 40px;
}
.playriot-body .htp-pro-tips h4 {
  font-family: var(--f-display); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; color: var(--ink);
}
.playriot-body .htp-pro-tips h4 svg {
  color: var(--yellow); fill: var(--yellow); stroke: var(--ink);
}
.playriot-body .htp-pro-tips ul {
  list-style: none; padding: 0; margin: 0;
}
.playriot-body .htp-pro-tips li {
  position: relative; padding-left: 20px; margin-bottom: 12px; font-weight: 600; font-size: 0.95rem; color: #3A352C; line-height: 1.5;
}
.playriot-body .htp-pro-tips li:last-child { margin-bottom: 0; }
.playriot-body .htp-pro-tips li::before {
  content: '✦'; position: absolute; left: 0; top: 0; color: var(--pink); font-size: 1rem;
}

/* Video Walkthrough Section */
.playriot-body .video-walkthrough-section {
  margin-top: 40px; margin-bottom: 24px;
}
.playriot-body .video-container {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border: var(--line-thick) solid var(--ink); border-radius: var(--r-md); box-shadow: 6px 6px 0 0 var(--ink);
  background: var(--ink);
}
.playriot-body .video-container iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Store Buttons */
.playriot-body .store-buttons {
  display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; justify-content: center;
}
.playriot-body .store-btn {
  padding: 8px 20px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); text-transform: none;
}
.playriot-body .store-btn svg {
  width: 26px; height: 26px; flex-shrink: 0;
}
.playriot-body .store-btn .text {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1;
}
.playriot-body .store-btn .text .small {
  font-size: 0.65rem; font-weight: 700; font-family: monospace; opacity: 0.9; text-transform: uppercase;
}
.playriot-body .store-btn .text .big {
  font-size: 1.15rem; font-weight: 800; margin-top: 2px;
}
.playriot-body .store-btn.app-store-btn {
  background: var(--blue);
}
.playriot-body .store-btn.play-store-btn {
  background: var(--teal);
}
.playriot-body .btn.small { padding: 9px 16px; font-size: 0.78rem; }
.playriot-body .btn svg { width:16px; height:16px; }

.playriot-body .categories-wrap { position:relative; }
.playriot-body .categories-menu {
  position:absolute; top: calc(100% + 12px); right:0;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft-hover);
  min-width: 220px;
  padding: 10px;
  display:none;
  flex-direction:column;
  gap: 2px;
  z-index: 50;
}
.playriot-body .categories-menu.open { display:flex; }
.playriot-body .categories-menu a {
  font-family: var(--f-display);
  font-weight:700;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--r-sm);
}
.playriot-body .categories-menu a:hover { background: var(--cream); }

/* Favorites — sidebar trigger button (mirrors the nav <a> styling exactly,
   since it sits in the same <ul> as Home/Recently Played/etc. but is a
   <button> because it opens a popup instead of navigating). */
.playriot-side-menu .side-menu-section ul li button.fav-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 23px;
  background: none;
  border: var(--line) solid transparent;
  border-radius: 0;
  color: var(--ink);
  font-family: 'Brodish', sans-serif;
  font-weight: normal;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s, border-color 0.2s;
}
.playriot-side-menu .side-menu-section ul li button.fav-trigger .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.playriot-side-menu .side-menu-section ul li button.fav-trigger .icon svg { width: 20px; height: 20px; }
.playriot-side-menu .side-menu-section ul li button.fav-trigger .label {
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-10px);
}
.playriot-side-menu:hover .side-menu-section ul li button.fav-trigger .label {
  opacity: 1;
  transform: translateX(0);
}
.playriot-side-menu .side-menu-section ul li button.fav-trigger:hover {
  background: var(--pink);
  border-bottom: var(--line) solid var(--ink);
  border-top: var(--line) solid var(--ink);
}

/* Favorites — the heart button turns solid "riot" red and fills in once a
   game has actually been saved, so its state is visible at a glance. */
.playriot-body .btn.solid-volt.is-favorited { background: var(--riot); color: var(--paper); }
.playriot-body .btn.solid-volt.is-favorited svg { fill: currentColor; }

/* Generic popup modal (overlay + centered box) — shared by the Favorites and
   Share popups; each just fills the header/body with its own content. */
.playriot-body .pr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.playriot-body .pr-modal-overlay.open { display: flex; }
.playriot-body .pr-modal {
  background: var(--paper);
  border: var(--line-thick) solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: 8px 8px 0 0 var(--ink);
  width: 100%;
  max-width: 760px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.playriot-body .pr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: var(--line-thick) solid var(--ink);
  background: var(--yellow);
  flex-shrink: 0;
}
.playriot-body .pr-modal-header .pr-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0;
}
.playriot-body .pr-modal-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: var(--line-thick) solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 0 var(--ink);
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.playriot-body .pr-modal-close:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 0 var(--ink); }
.playriot-body .pr-modal-close:active { transform: translateY(1px); box-shadow: 1px 1px 0 0 var(--ink); }
.playriot-body .pr-modal-close svg { width: 18px; height: 18px; }
.playriot-body .pr-modal-body { padding: 20px; overflow-y: auto; }

/* Share — copy-link row + feedback message */
.playriot-body .share-copy-row { display: flex; gap: 8px; margin-bottom: 8px; }
.playriot-body .share-copy-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: var(--line-thick) solid var(--ink);
  border-radius: 0;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  background: var(--cream);
  color: var(--ink);
}
.playriot-body .share-copy-feedback {
  display: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 16px;
}
.playriot-body .share-copy-feedback.show { display: block; }

/* Share — social platform buttons grid */
.playriot-body .share-platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 480px) { .playriot-body .share-platforms { grid-template-columns: 1fr; } }
.playriot-body .share-platform-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: var(--line-thick) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 3px 3px 0 0 var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.playriot-body .share-platform-btn:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 0 var(--ink); }
.playriot-body .share-platform-btn:active { transform: translateY(1px); box-shadow: 1px 1px 0 0 var(--ink); }
.playriot-body .share-platform-btn .share-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.playriot-body .share-platform-btn.whatsapp { background: var(--teal); }
.playriot-body .share-platform-btn.facebook { background: var(--blue); color: var(--paper); }
.playriot-body .share-platform-btn.discord { background: var(--pink); }
.playriot-body .share-platform-btn.x { background: var(--ink); color: var(--paper); }
.playriot-body .share-platform-btn.reddit { background: var(--riot); color: var(--paper); }

.playriot-body .favorites-empty { display: none; text-align: center; padding: 40px 10px; font-weight: 700; color: var(--ink); }
.playriot-body .favorites-empty.show { display: block; }
.playriot-body .favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 640px) { .playriot-body .favorites-grid { grid-template-columns: repeat(2, 1fr); } }

.playriot-body .favorite-card {
  position: relative;
  border: var(--line-thick) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 5px 5px 0 0 var(--ink);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.playriot-body .favorite-card:hover { transform: translateY(-3px); box-shadow: 8px 8px 0 0 var(--ink); }
.playriot-body .favorite-card-link { display: block; color: var(--ink); text-decoration: none; }
.playriot-body .favorite-thumb { aspect-ratio: 288/192; overflow: hidden; background: var(--cream); }
.playriot-body .favorite-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.playriot-body .favorite-title {
  padding: 10px 12px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playriot-body .favorite-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--riot);
  color: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 2px 2px 0 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.playriot-body .favorite-remove:hover { transform: scale(1.08); box-shadow: 3px 3px 0 0 var(--ink); }
.playriot-body .favorite-remove svg { width: 12px; height: 12px; }

/* ============================================================
   4. MARQUEE TICKER — the signature element. A skewed strip of
   scrolling arcade-marquee text, striped like warning tape.
   ============================================================ */
.playriot-body .ticker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink), var(--ink) 14px,
    #FF3B5C 14px, #FF3B5C 28px
  );
  border-top: var(--line-thick) solid var(--ink);
  border-bottom: var(--line-thick) solid var(--ink);
  overflow: hidden;
  z-index: 2;
}

/* 5. HERO */
.playriot-body .hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  padding: 46px 0 22px;
  border-bottom: var(--bw-thick) solid var(--ink);
}
.playriot-body .halftone {
  position:absolute; inset:0;
  background-image: radial-gradient(var(--ink) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  opacity: 0.07;
  pointer-events:none;
  z-index:1;
}
.playriot-body .hero-inner {
  max-width: 1320px; margin:0 auto; padding: 0 32px;
  position: relative; z-index: 3;
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items:center;
}
.playriot-body .hero-text .hero-title-h1 {
  font-family: 'Brodish', sans-serif;
  font-weight: bold;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
}
.playriot-body .hero-text .hero-title-h1 .hl {
  color: var(--paper);
  background: var(--riot);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 10px;
  border: var(--bw) solid var(--ink);
  display: inline-block;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-sm);
}
.playriot-body .hero-tagline {
  font-family: 'Brodish', sans-serif;
  font-size: 1.05rem;
  font-weight: normal;
  margin-top: 20px;
  max-width: 440px;
  color: #3A352C;
}
.playriot-body .hero-stats {
  display:flex; gap: 10px; margin-top: 22px; flex-wrap:wrap;
}
.playriot-body .hero-stats .chip:nth-child(2) { background: var(--volt); }
.playriot-body .hero-stats .chip:nth-child(3) { background: var(--paper); }

/* Featured game card */
.playriot-body .featured-card {
  position:relative;
  background: var(--panel);
  border: var(--bw-thick) solid var(--ink);
  box-shadow: var(--shadow-hover);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
}
.playriot-body .featured-card:hover { transform: translate(-4px,-4px); box-shadow: 13px 13px 0 0 var(--ink); }
.playriot-body .featured-card .img-frame {
  border: var(--bw) solid var(--ink);
  overflow:hidden;
  aspect-ratio: 2 / 1;
}
.playriot-body .featured-card .img-frame img { width:100%; height:100%; object-fit:cover; filter: contrast(1.05) saturate(1.05); }
.playriot-body .featured-badge {
  position:absolute; top:-18px; left:24px;
  background: var(--volt); color:var(--ink);
  font-family: var(--f-mono); font-weight:700; font-size:0.78rem;
  text-transform:uppercase; letter-spacing:0.03em;
  padding: 9px 16px;
  border: var(--bw) solid var(--ink);
  display:flex; align-items:center; gap:6px;
  transform: rotate(-4deg);
  z-index:4;
  box-shadow: var(--shadow-sm);
}
.playriot-body .featured-meta { padding-top: 20px; display:flex; justify-content:space-between; align-items:flex-end; gap:16px; }
.playriot-body .featured-meta .featured-title-h2 { font-size:1.65rem; }
.playriot-body .featured-meta p { font-size:0.9rem; font-weight:600; color:#5A5347; margin-top:8px; max-width:270px; text-transform:none; font-family:var(--f-body); }

/* 7. GAME SECTIONS & CAROUSEL SLIDER */
.playriot-body .games-section { 
  padding: 28px 0; 
  position: relative; 
  border-bottom: var(--line-thick) solid var(--ink);
}

/* Background pattern for every 3rd games section (fallback) */
.playriot-body section.games-section:nth-of-type(3n+1) {
  background-image: radial-gradient(rgba(17, 17, 17, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Background pattern for every 3rd games section (modern browsers) */
@supports selector(:nth-child(3n of .games-section)) {
  .playriot-body section.games-section:nth-of-type(3n+1) {
    background-image: none;
  }
  .playriot-body .games-section:nth-child(3n of .games-section) {
    background-image: radial-gradient(rgba(17, 17, 17, 0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
  }
}
.playriot-body .games-section:nth-of-type(odd) { background-color: var(--cream); }
.playriot-body .games-section:nth-of-type(even) { background-color: var(--cream-deep); }
.playriot-body .games-section#hot { 
  background-color: #D4FA22 !important; 
}
.playriot-body .games-section#puzzle { background-color: #A7DBD8 !important; }

.playriot-body .section-head {
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom: 12px; flex-wrap:wrap; gap:12px;
}
.playriot-body .section-head .section-title-h2 { font-family: 'Brodish', sans-serif; font-size: 22px; display:flex; align-items:center; gap:10px; text-transform: uppercase; font-weight: bold; letter-spacing: 0.05em; }
.playriot-body .section-head .section-title-h2 .num {
  background: var(--ink); color: var(--paper); padding: 4px 8px; font-size: 0.75em;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; border-radius: 0;
}
.playriot-body .see-all {
  font-family: var(--f-display); font-weight:800; font-size:0.85rem;
  color: var(--ink); background: var(--paper);
  padding: 6px 14px;
  border: var(--line-thick) solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.playriot-body .see-all:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 0 var(--ink); }

.playriot-body .carousel-container { position: relative; width: 100%; }
.playriot-body .card-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px 12px;
  padding-bottom: 24px;
}
@media (max-width: 1400px) { .playriot-body .card-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1200px) { .playriot-body .card-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .playriot-body .card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .playriot-body .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px)  { .playriot-body .card-grid { grid-template-columns: repeat(2, 1fr); } }

.playriot-body .card-row {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; align-items: start; 
  padding-top: 12px; padding-bottom: 56px; margin-top: -12px; margin-bottom: -52px;
}
.playriot-body .card-row::-webkit-scrollbar { display: none; }
.playriot-body .game-card {
  flex: 0 0 calc((100% - ((var(--games-per-line, 5) - 1) * 12px)) / (var(--games-per-line, 5) + 0.6));
  scroll-snap-align: start; position:relative; display:block;
  border: var(--line-thick) solid var(--ink); border-radius: 0;
  background: var(--paper);
  box-shadow: 6px 6px 0 0 var(--ink);
  overflow:hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor:pointer;
}
.playriot-body .game-card:hover { transform: translateY(-4px); box-shadow: 10px 10px 0 0 var(--ink); z-index: 5; }
.playriot-body .game-card .thumb {
  position:relative; overflow:hidden;
  aspect-ratio: 288/192; background: var(--paper); height: 100%;
}
.playriot-body .game-card .thumb img {
  width:100%; height:100%; object-fit: cover; transform-origin: center center;
  transition: transform 0.35s ease;
}
.playriot-body .game-card:hover .thumb img { transform: scale(1.05); }

.playriot-body .scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; background: var(--paper);
  border: var(--line-thick) solid var(--ink); border-radius: 0;
  box-shadow: 4px 4px 0 0 var(--ink); display: flex; align-items: center; justify-content: center;
  color: var(--ink); z-index: 10; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.playriot-body .scroll-btn svg { width: 22px; height: 22px; stroke: var(--ink); }
.playriot-body .scroll-btn.prev-btn { left: -18px; }
.playriot-body .scroll-btn.next-btn { right: -18px; }
.playriot-body .carousel-container:hover .scroll-btn { opacity: 1; pointer-events: auto; }
.playriot-body .carousel-container.at-start .scroll-btn.prev-btn { opacity: 0 !important; pointer-events: none !important; }
.playriot-body .scroll-btn:hover {
  transform: translateY(-50%) scale(1.05); box-shadow: 6px 6px 0 0 var(--ink); background: var(--yellow);
}

.playriot-body .card-badge {
  position:absolute; top:7px; left:7px; z-index:2;
  display:inline-flex; align-items:center; gap:3px;
  font-family: var(--f-display); font-weight:800; font-size:0.62rem; text-transform: uppercase;
  padding: 3px 8px; border-radius: 0; border: var(--line-thick) solid var(--ink);
  color: var(--ink); line-height:1.4; box-shadow: 2px 2px 0 0 var(--ink);
}
.playriot-body .card-badge.top { background: #D4FA22; }
.playriot-body .card-badge.hot { background: var(--pink); }
.playriot-body .card-badge.trending { background: var(--blue); color: var(--paper); }
.playriot-body .card-badge.updated { background: var(--teal); }
.playriot-body .card-badge.originals { background: var(--paper); }

.playriot-body .game-card .card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 12px 10px; font-family: 'Brodish', sans-serif; font-weight:bold; font-size: 0.85rem;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10; pointer-events: none;
}
.playriot-body .game-card:hover .card-label {
  opacity: 1; transform: translateY(0);
}
.playriot-body .game-card .card-label .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.playriot-body .game-card .play-dot {
  width:9px; height:9px; border-radius:50%; background: var(--teal); flex-shrink:0;
}

/* 8. ABOUT SECTION */
.playriot-body .about {
  background: #111111; color: var(--paper); padding: 100px 0; position: relative; overflow:hidden;
}
.playriot-body .halftone.on-dark {
  background-image: radial-gradient(rgba(255,255,255,0.1) 1.5px, transparent 1.5px);
  opacity: 1;
}
.playriot-body .about-inner { max-width: 820px; margin: 0 auto; padding: 0 32px; position:relative; z-index:2; }
.playriot-body .about .chip { 
  background: #D4FA22; 
  color: #111111; 
  border: none; 
  box-shadow: none; 
  padding: 6px 12px;
  font-size: 0.7rem;
}
.playriot-body .about h1 { 
  color: #FFFFFF; 
  font-size: clamp(2.5rem, 4.5vw, 3.5rem); 
  text-transform: uppercase;
  margin-top: 24px; 
  margin-bottom: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.playriot-body .about h1 .stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px #FF2A5F;
}
.playriot-body .about p, .playriot-body .about .article-content, .playriot-body .about .article-content * { 
  font-size: 0.95rem; 
  font-weight:500; 
  color: #FFFFFF !important; 
  margin-bottom: 22px; 
  max-width: 84ch; 
  line-height: 1.6;
}
.playriot-body .about p strong, .playriot-body .about .article-content strong { color: #D4FA22 !important; font-weight: 800; }
.playriot-body .about .article-content a { color: #D4FA22 !important; text-decoration: underline; text-decoration-color: #D4FA22 !important; }

/* 9. FOOTER */
.playriot-body .site-footer {
  background: var(--paper); padding: 56px 0 0;
  border-top: var(--bw-thick) solid var(--ink);
  margin-top: auto !important;
}
.playriot-body .footer-grid {
  display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px;
}
.playriot-body .footer-col-title { margin-bottom: 24px; font-family: var(--f-display); text-transform: uppercase; font-size: 1.2rem; font-weight: 800; }
.playriot-body .footer-col ul li { margin-bottom: 11px; }
.playriot-body .footer-col ul li a { font-family: monospace; font-size: 0.85rem; font-weight:800; color: var(--ink); }
.playriot-body .footer-col ul li a:hover { color: var(--pink); }
.playriot-body .footer-about p { font-size:0.9rem; font-weight:600; color:#5A4E6D; max-width: 300px; margin-top:10px; }

.playriot-body .social-row { display:flex; gap:10px; margin-top:24px; }
.playriot-body .social-row a {
  width: 36px; height: 36px; border: var(--line-thick) solid var(--ink); border-radius: 0;
  box-shadow: 3px 3px 0 0 var(--ink); background: var(--paper); color: var(--ink);
  display:flex; align-items:center; justify-content:center;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.playriot-body .social-row a:hover { background: var(--pink); transform: translateY(-2px); box-shadow: 5px 5px 0 0 var(--ink); }
.playriot-body .social-row svg { width:18px; height:18px; stroke-width: 2.5; }

.playriot-body .footer-bottom {
  border-top: var(--line-thick) solid var(--ink); padding: 22px 0;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size: 0.75rem; font-weight:800; color:var(--ink); font-family: monospace;
}
.playriot-body .footer-bottom .flogo { font-family: var(--f-display); color:var(--ink); font-size:1rem; text-transform: uppercase; }

/* ============================================================
   SINGLE GAME PAGE STYLES
   ============================================================ */
/* ============================================================
   2. GAME PAGE LAYOUT
   ============================================================ */
.playriot-body .game-hero {
  padding: 26px 0 60px;
  background: var(--paper);
  position: relative;
}
.playriot-body .game-layout-grid {
  max-width: 1560px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
  position: relative; z-index: 1;
}

.playriot-body .breadcrumb {
  display:flex; align-items:center; gap:8px; flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.78rem; font-weight:700; text-transform: uppercase;
  margin-bottom: 16px;
  color: #5A5347;
}
.playriot-body .breadcrumb a:hover { color: var(--riot); }
.playriot-body .breadcrumb span[aria-hidden] { color: #B5AE9C; }
.playriot-body .breadcrumb .current { color: var(--ink); }

/* ---- GAME CABINET: the iframe treatment ---- */
.playriot-body .player-shell {
  background: var(--panel);
  border: var(--bw-thick) solid var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  position: relative;
}
.playriot-body .cabinet-bolt {
  position:absolute; width:14px; height:14px;
  background: var(--ink);
  border-radius: 50%;
  z-index: 3;
}
.playriot-body .cabinet-bolt::after {
  content:""; position:absolute; inset:3px;
  background: #444; border-radius: 50%;
}
.playriot-body .cabinet-bolt.tl { top:-7px; left:-7px; }
.playriot-body .cabinet-bolt.tr { top:-7px; right:-7px; }
.playriot-body .cabinet-bolt.bl { bottom:-7px; left:-7px; }
.playriot-body .cabinet-bolt.br { bottom:-7px; right:-7px; }

.playriot-body .iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ink);
  border-bottom: var(--bw-thick) solid var(--ink);
  overflow: hidden;
}
.playriot-body .iframe-container iframe {
  width: 100%; height: 100%; border: none; position:relative; z-index:1;
}
.playriot-body .game-preloader {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.playriot-body .game-preloader.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
/* Blurred zoomed featured image background */
.playriot-body .gp-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(28px);
  transform: scale(1.15);
  z-index: 0;
}
/* 30% black overlay */
.playriot-body .gp-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 1;
}
.playriot-body .game-preloader-card {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center; padding: 24px;
}
.playriot-body .gp-thumb {
  width: 96px; height: 96px; border-radius: var(--r-md);
  border: var(--bw-thick) solid var(--ink);
  overflow: hidden;
  box-shadow: 4px 4px 0 0 var(--ink), 0 8px 28px rgba(0,0,0,0.5);
}
.playriot-body .gp-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.playriot-body .gp-title {
  font-family: var(--f-display); font-size: 1.15rem;
  color: #fff; text-transform: uppercase; letter-spacing: 0.01em;
  margin-top: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.playriot-body .gp-category {
  font-family: var(--f-mono); font-size: 0.72rem;
  color: var(--volt); text-transform: uppercase; letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
/* FUN TODAY style play button */
.playriot-body .gp-play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 16px 48px;
  font-family: var(--f-display); font-size: 1.1rem; text-transform: uppercase;
  color: #fff; background: var(--riot);
  border: var(--bw-thick) solid var(--ink);
  border-radius: 0;
  box-shadow: 5px 5px 0 0 var(--ink);
  cursor: pointer;
  transform: rotate(-1.5deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.playriot-body .gp-play-btn:hover {
  transform: rotate(-1.5deg) translateY(-3px);
  box-shadow: 7px 7px 0 0 var(--ink);
}
.playriot-body .gp-play-btn:active {
  transform: rotate(-1.5deg) translateY(0);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.playriot-body .gp-play-btn:disabled {
  opacity: 0.8; cursor: wait;
}
.playriot-body .gp-play-btn .spin-box {
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.playriot-body .cabinet-tag {
  position:absolute; top:14px; right:14px; z-index:2;
  font-family: var(--f-mono); font-weight:700; font-size:0.66rem; text-transform:uppercase;
  background: var(--volt); color:var(--ink);
  padding: 5px 10px;
  border: 2px solid var(--ink);
  transform: rotate(3deg);
}

.playriot-body .player-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; /* Slimmer padding */
  background: var(--panel);
  flex-wrap: wrap; gap: 14px;
}
.playriot-body .game-title-badge { display: flex; align-items: center; gap: 12px; }
.playriot-body .game-icon-box {
  width: 38px; height: 38px; /* Slimmer icon */
  border: var(--bw) solid var(--ink);
  background: var(--volt);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.playriot-body .game-icon-box img { width: 100%; height: 100%; object-fit: cover; }
.playriot-body .game-heading h1 { font-size: 1.35rem; line-height: 1.05; }

.playriot-body .rating-row { display:flex; align-items:center; gap:8px; margin-top:3px; flex-wrap:wrap; }
.playriot-body .stars { display:inline-flex; gap:1px; }
.playriot-body .stars svg { width:12px; height:12px; }
.playriot-body .stars svg.full { fill: var(--tangerine); stroke: var(--ink); stroke-width: 1; }
.playriot-body .stars svg.empty { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.playriot-body .rating-num { font-family: var(--f-mono); font-weight:700; font-size:0.75rem; }
.playriot-body .rating-votes { font-family: var(--f-mono); font-size:0.7rem; color:#6B6558; }

.playriot-body .player-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Icon-only player action buttons — labels stay in the DOM (aria-label on
   each button covers accessibility) but are visually hidden. */
.playriot-body .player-actions .btn { padding: 10px; }
.playriot-body .player-actions .btn span { display: none; }

/* ============================================================
   3. COMPACT META BOX
   ============================================================ */
.playriot-body .compact-meta-box {
  margin-top: 18px;
  background: var(--panel);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.playriot-body .meta-stats-row {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
}
.playriot-body .meta-item { display: flex; align-items: center; gap: 6px; }
.playriot-body .meta-label { font-weight: 700; color: #6B6558; text-transform:uppercase; }
.playriot-body .meta-val { font-weight: 700; color: var(--ink); }

.playriot-body .meta-categories-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 10px;
  border-top: var(--bw) dashed var(--ink);
}
.playriot-body .cat-pill {
  font-family: var(--f-mono); font-weight: 700; font-size: 0.72rem; text-transform: uppercase;
  padding: 5px 11px;
  border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink);
  transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
}
.playriot-body .cat-pill:hover { transform: translate(-2px,-2px); background: var(--volt); box-shadow: var(--shadow-sm); }

.playriot-body .controls-hint {
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  padding-top: 10px; border-top: var(--bw) dashed var(--ink);
}
.playriot-body .controls-hint .lbl { font-family: var(--f-mono); font-size:0.72rem; font-weight:700; text-transform:uppercase; color:#6B6558; }
.playriot-body kbd {
  font-family: var(--f-mono); font-size:0.72rem; font-weight:700;
  background: var(--ink); color: var(--paper);
  padding: 3px 7px; border: 1.5px solid var(--ink);
}

/* ============================================================
   4. SIDEBAR — "Play Next"
   ============================================================ */
.playriot-body .sidebar-panel {
  background: var(--panel);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.playriot-body .sidebar-panel-title {
  font-family: var(--f-display);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.playriot-body .sidebar-panel-title .riot-label {
  font-family: var(--f-mono); font-size:0.66rem; font-weight:700; text-transform:uppercase;
  background: var(--riot); color:var(--paper);
  padding: 4px 8px;
}
.playriot-body .play-next-stack { display: flex; flex-direction: column; gap: 14px; }
.playriot-body .next-card {
  display: block;
  background: var(--panel);
  border: var(--bw) solid var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.playriot-body .next-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.playriot-body .next-thumb { position: relative; width: 100%; aspect-ratio: 16/9; border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.playriot-body .next-thumb img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(1.05); transition: transform 0.3s ease; }
.playriot-body .next-card:hover .next-thumb img { transform: scale(1.06); }
.playriot-body .next-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--volt);
  font-family: var(--f-mono); font-weight: 700; font-size: 0.62rem; text-transform:uppercase;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  z-index: 2;
  transform: rotate(-3deg);
}
.playriot-body .next-label {
  padding: 9px 11px;
  font-family: var(--f-mono); font-weight: 700; font-size: 0.82rem; text-transform:uppercase;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel);
}
.playriot-body .play-dot { width:9px; height:9px; background: var(--riot); border: 1.5px solid var(--ink); flex-shrink:0; }

.playriot-body .ad-slot {
  margin-top: 18px;
  border: var(--bw) dashed var(--ink);
  background: var(--paper-deep);
  padding: 22px 14px;
  text-align: center;
  font-family: var(--f-mono); font-size: 0.68rem; text-transform:uppercase; color:#6B6558;
}

/* ============================================================
   5. ARTICLE / SEO CONTENT
   ============================================================ */
.playriot-body .game-details-section {
  margin-top: 26px;
  background: var(--panel);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}
.playriot-body .page-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.playriot-body .page-content-box {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  padding: 40px;
  border-radius: 0;
}
@media (max-width: 768px) {
  .playriot-body .page-content-box {
    padding: 24px;
  }
}
.playriot-body .article-content { margin-top: 4px; }
.playriot-body .article-content p a,
.playriot-body .article-content li a {
  color: var(--pink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}
.playriot-body .article-content p a:hover,
.playriot-body .article-content li a:hover {
  color: var(--ink);
  background: var(--pink);
  text-decoration-color: var(--ink);
}
.playriot-body .article-content h2 { 
  font-size: 1.5rem; 
  margin-top: 36px; 
  margin-bottom: 16px; 
  font-family: var(--f-display); 
  font-weight: 800;
  text-transform: uppercase;
  color: #2D2342;
  letter-spacing: -0.01em;
  position: relative;
  display: block;
  padding-left: 28px;
}
.playriot-body .article-content h2::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--pink);
  font-size: 1.2rem;
}
.playriot-body .article-content h2:first-child { margin-top: 0; }
.playriot-body .article-content h3 { 
  font-size: 1.15rem; 
  margin-top: 24px; 
  margin-bottom: 12px; 
  font-family: var(--f-display); 
  font-weight: 800; 
  text-transform: uppercase; 
  color: var(--pink);
  letter-spacing: -0.01em;
}
.playriot-body .article-content p { font-size: 0.98rem; color: #3A352C; margin-bottom: 14px; font-weight: 500; }
.playriot-body .article-content ul { margin-bottom: 16px; padding-left: 4px; font-weight: 500; color: #3A352C; }
.playriot-body .article-content li { margin-bottom: 8px; padding-left: 22px; position:relative; }
.playriot-body .article-content li::before {
  content:"▸"; position:absolute; left:0; color: var(--riot); font-weight:700;
}

.playriot-body .faq-box {
  border: var(--bw) solid var(--ink);
  background: var(--paper);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.playriot-body .faq-box summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  font-family: var(--f-display); font-size: 0.95rem; text-transform:none; font-weight: bold;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.playriot-body .faq-box summary::-webkit-details-marker { display:none; }
.playriot-body .faq-box summary .plus {
  font-family: var(--f-mono); font-weight:700; font-size:1.1rem;
  width:26px; height:26px; flex-shrink:0;
  border: 2px solid var(--ink); background: var(--volt);
  display:flex; align-items:center; justify-content:center;
  transition: transform 0.15s ease;
}
.playriot-body .faq-box[open] summary .plus { transform: rotate(45deg); background: var(--riot); }
.playriot-body .faq-box p { padding: 0 18px 16px; margin: 0; font-size: 0.92rem; color:#3A352C; font-weight:500; }

/* Gap between the FAQ section and the injected "You May Also Like" list. */
.playriot-body .related-games-section { margin-top: 40px; }

/* ============================================================
   SIDE MENU (Neo-brutalist)
   ============================================================ */
.playriot-side-menu {
  position: fixed;
  top: 73px;
  left: 0;
  bottom: 0;
  width: 70px;
  background: var(--paper);
  border-right: var(--line-thick) solid var(--ink);
  z-index: 90;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-x: hidden;
  overflow-y: auto;
  white-space: nowrap;
}

/* Hide scrollbar for cleaner look */
.playriot-side-menu::-webkit-scrollbar {
  display: none;
}
.playriot-side-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.playriot-side-menu:hover {
  width: 250px;
  box-shadow: 12px 0 0 rgba(0,0,0,1); /* brutalist shadow when expanded */
}

.playriot-side-menu .side-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  min-height: 100%;
}

.playriot-side-menu .side-menu-section {
  margin-bottom: 0;
}

.playriot-side-menu .side-menu-section.bottom-legal {
  margin-top: auto;
  margin-bottom: 0;
}

.playriot-side-menu .menu-heading {
  font-family: 'Brodish', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 16px 12px 70px; /* Offset for the icon width */
  margin: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.playriot-side-menu:hover .menu-heading {
  opacity: 1;
}

.playriot-side-menu .side-menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.playriot-side-menu .side-menu-section ul li a {
  display: flex;
  align-items: center;
  padding: 6px 23px; /* Reduced vertical padding for tighter spacing */
  color: var(--ink);
  text-decoration: none;
  font-family: 'Brodish', sans-serif;
  font-weight: normal;
  font-size: 14px; /* Reduced font size */
  border-bottom: var(--line) solid transparent;
  border-top: var(--line) solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.playriot-side-menu .side-menu-section ul li a .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-right: 14px; /* Tighter space between icon and text */
  display: flex;
  align-items: center;
  justify-content: center;
}

.playriot-side-menu .side-menu-section ul li a .icon img {
  filter: brightness(0);
}

.playriot-side-menu .side-menu-section ul li a .label {
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-10px);
}

.playriot-side-menu:hover .side-menu-section ul li a .label {
  opacity: 1;
  transform: translateX(0);
}

.playriot-side-menu .side-menu-section ul li:nth-child(6n+1) a:hover {
  background: var(--pink);
  border-bottom: var(--line) solid var(--ink);
  border-top: var(--line) solid var(--ink);
}
.playriot-side-menu .side-menu-section ul li:nth-child(6n+2) a:hover {
  background: var(--volt);
  border-bottom: var(--line) solid var(--ink);
  border-top: var(--line) solid var(--ink);
}
.playriot-side-menu .side-menu-section ul li:nth-child(6n+3) a:hover {
  background: var(--blue);
  border-bottom: var(--line) solid var(--ink);
  border-top: var(--line) solid var(--ink);
}
.playriot-side-menu .side-menu-section ul li:nth-child(6n+4) a:hover {
  background: var(--teal);
  border-bottom: var(--line) solid var(--ink);
  border-top: var(--line) solid var(--ink);
}
.playriot-side-menu .side-menu-section ul li:nth-child(6n+5) a:hover {
  background: var(--yellow);
  border-bottom: var(--line) solid var(--ink);
  border-top: var(--line) solid var(--ink);
}
.playriot-side-menu .side-menu-section ul li:nth-child(6n+0) a:hover {
  background: var(--green);
  border-bottom: var(--line) solid var(--ink);
  border-top: var(--line) solid var(--ink);
}

/* Main content wrapper flex layout to push footer down */
.main-content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Offset the main content so it doesn't get hidden behind the 70px sidebar */
@media (min-width: 1024px) {
  .main-content-wrapper {
    padding-left: 70px;
  }
}

@media (max-width: 1023px) {
  .playriot-side-menu {
    display: none; /* Hide on mobile to preserve layout */
  }
}


/* --- Side Menu Restructure Additions --- */
.playriot-side-menu .side-separator {
  margin: 6px 16px; /* Tighter space between multiplayer and separator */
  border: none;
  border-top: 2px dashed var(--ink);
  opacity: 0.3;
}

/* When collapsed, hide the separator completely to keep it clean */
.playriot-side-menu:not(:hover) .side-separator {
  opacity: 0;
}

.playriot-side-menu:hover .side-separator {
  opacity: 1;
  transition: opacity 0.2s ease 0.1s;
}

.playriot-side-menu .side-contact-btn {
  margin: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
}

.playriot-side-menu:not(:hover) .side-contact-btn {
  margin: 12px auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
}

.playriot-side-menu:not(:hover) .side-contact-btn svg {
  margin: 0;
}

.playriot-side-menu:not(:hover) .side-contact-btn span {
  display: none;
}

.playriot-side-menu .legal-links {
  list-style: none;
  padding: 0 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playriot-side-menu .legal-links a {
  color: #555;
  text-decoration: none;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}

.playriot-side-menu .legal-links a:hover {
  color: var(--ink);
}

.playriot-side-menu:not(:hover) .legal-links {
  display: none;
}

.playriot-side-menu .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 16px;
  margin: 20px 0;
}

.playriot-side-menu .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #000;
  transition: background 0.2s, border-color 0.2s;
}

.playriot-side-menu .social-icons a svg {
  width: 16px;
  height: 16px;
}

.playriot-side-menu .social-icons a:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

.playriot-side-menu:not(:hover) .social-icons {
  display: none;
}


/* ============================================================
   TAGS PAGE (ALPHABETICAL)
   ============================================================ */
.playriot-body .playriot-tags-page {
  padding-top: 40px;
  padding-bottom: 120px; /* Big gap before the footer */
}

.tags-page-header {
  margin-bottom: 40px;
}

.tags-directory {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tag-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tag-letter-header h2 {
  font-family: var(--f-display);
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: var(--bw-thick) solid var(--ink);
  display: inline-block;
  min-width: 60px;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tag-card.neo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: var(--bw-thick) solid var(--ink);
  border-radius: 0;
  padding: 8px 16px; /* Reduced vertical padding by 20-30% */
  text-decoration: none;
  color: var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.tag-card.neo-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--ink);
  background: var(--yellow);
}

.tag-card.neo-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--ink);
}

.tag-card .tag-name {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
}

.tag-card .tag-count {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--riot);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px 6px;
  border-radius: 0;
}


/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 1080px){
  .playriot-body .game-card { flex: 0 0 calc((100% - (3 * 12px)) / 4.2); }
  .playriot-body .hero-inner { grid-template-columns: 1fr; }
  .playriot-body .game-layout-grid { grid-template-columns: 1fr; }
  .playriot-body .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px){
  .playriot-body .header-inner { flex-wrap:wrap; padding: 14px 20px; }
  .playriot-body .search-form { order:3; max-width:100%; flex-basis:100%; }
  .playriot-body .header-actions .btn span.label { display:none; }
  .playriot-body .wrap, .playriot-body .hero-inner, .playriot-body .about-inner { padding-left:20px; padding-right:20px; }
  .playriot-body .card-row { gap: 14px; }
  .playriot-body .game-card { flex: 0 0 calc((100% - (1 * 14px)) / 2.2); }
  .playriot-body .scroll-btn { display: none; }
  .playriot-body .hero { padding: 48px 0 60px; }
  .playriot-body .hero-text .hero-title-h1 { font-size: 2.3rem; }
  .playriot-body .featured-meta { flex-direction:column; align-items:flex-start; }
  .playriot-body .player-bar { flex-direction: column; align-items: flex-start; }
  .playriot-body .player-actions { width: 100%; justify-content: space-between; }
  .playriot-body .meta-stats-row { flex-direction: column; gap: 6px; }
  .playriot-body .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .playriot-body .about { padding: 60px 0; }
  .playriot-body .mascot { display:none; }
}
@media (max-width: 420px){
  .playriot-body .btn.small span.label { display:none; }
}
/* ============================================================
   BLOG — shared by archive-blog_post.php, category.php, tag.php,
   and single-blog_post.php, so all blog surfaces look consistent.
   ============================================================ */
.playriot-body .blog-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
}
.playriot-body .blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
@media (max-width: 1100px) { .playriot-body .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .playriot-body .blog-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .playriot-body .blog-layout { grid-template-columns: 1fr; }
  .playriot-body .blog-sidebar { position: static !important; margin-top: 40px; }
}

.playriot-body .blog-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.playriot-body .blog-thumb {
  aspect-ratio: 16/9; border: var(--line-thick) solid var(--ink); box-shadow: 4px 4px 0 0 var(--ink);
  overflow: hidden; margin-bottom: 20px; background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.playriot-body .blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.playriot-body .blog-thumb .blog-thumb-fallback { width: 40%; height: 40%; opacity: 0.35; }
.playriot-body .blog-card:hover .blog-thumb { transform: translateY(-4px); box-shadow: 8px 8px 0 0 var(--ink); }
.playriot-body .blog-card:hover .blog-thumb img { transform: scale(1.05); }
.playriot-body .blog-card:hover .blog-title { text-decoration: underline; }

.playriot-body .blog-meta {
  font-family: var(--f-body); font-size: 14px; font-weight: 600; color: #4E4B4C; margin-bottom: 8px;
}
.playriot-body .blog-title {
  font-family: var(--f-display); font-size: 20px; font-weight: bold; color: #4E4B4C;
  margin: 0 0 10px 0; line-height: 1.3; text-transform: none;
}
.playriot-body .blog-excerpt {
  margin: 0; font-family: var(--f-body); font-size: 16px; font-weight: 500; color: #4E4B4C; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.playriot-body .blog-sidebar { position: sticky; top: 100px; }
.playriot-body .blog-sidebar-cta {
  background: var(--blue); color: var(--paper); padding: 30px;
  border: var(--line-thick) solid var(--ink); box-shadow: 6px 6px 0 0 var(--ink); margin-bottom: 40px;
}
.playriot-body .blog-sidebar-cta-title {
  font-family: var(--f-body); font-size: 1.2rem; font-weight: 700; margin: 0 0 20px 0; line-height: 1.4;
}
.playriot-body .blog-sidebar-widget-title {
  font-family: var(--f-display); font-weight: bold; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 20px;
}
.playriot-body .blog-sidebar-categories { list-style: none; padding: 0; margin: 0; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.playriot-body .blog-sidebar-categories li { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.playriot-body .blog-sidebar-categories li .dot { display: inline-block; width: 6px; height: 6px; background: var(--ink); border-radius: 50%; flex-shrink: 0; }
.playriot-body .blog-sidebar-categories a { text-decoration: none; color: inherit; }
.playriot-body .blog-sidebar-categories a:hover { text-decoration: underline; color: var(--pink); }

.playriot-body .blog-related-card {
  display: flex; gap: 12px; border: var(--line-thick) solid var(--ink); background: var(--paper);
  box-shadow: 4px 4px 0 0 var(--ink); padding: 8px; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.playriot-body .blog-related-card:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 0 var(--ink); }
.playriot-body .blog-related-thumb {
  width: 120px; aspect-ratio: 2/1; flex-shrink: 0; border: var(--bw) solid var(--ink);
  overflow: hidden; background: var(--cream-deep);
}
.playriot-body .blog-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.playriot-body .blog-related-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.playriot-body .blog-related-title {
  margin: 0 0 4px 0; font-family: var(--f-display); font-weight: bold; font-size: 1rem; text-transform: uppercase; line-height: 1.1;
}
.playriot-body .blog-related-cta { font-size: 0.75rem; font-weight: 700; color: #666; text-transform: uppercase; }

/* Sidebar white-box containers — Categories / Latest Posts / Play Next all
   sit in the same panel treatment used for the main content box. */
.playriot-body .blog-sidebar-box {
  background: var(--panel);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 30px;
}
.playriot-body .blog-sidebar-box:last-child { margin-bottom: 0; }

.playriot-body .blog-sidebar-latest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.playriot-body .blog-sidebar-latest-card { display: block; text-decoration: none; color: inherit; }
.playriot-body .blog-sidebar-latest-thumb {
  aspect-ratio: 1/1; border: var(--bw) solid var(--ink); overflow: hidden; background: var(--cream-deep);
  margin-bottom: 8px;
}
.playriot-body .blog-sidebar-latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.playriot-body .blog-sidebar-latest-title {
  font-family: var(--f-display); font-weight: bold; font-size: 0.8rem; line-height: 1.25;
}
.playriot-body .blog-sidebar-latest-card:hover .blog-sidebar-latest-title { text-decoration: underline; }

/* Single post */
.playriot-body .blog-post-meta { font-size: 0.9rem; text-transform: uppercase; font-weight: 400; color: #666; margin-bottom: 10px; }
.playriot-body .blog-post-title { margin-bottom: 20px; font-size: clamp(1.5rem, 4vw, 2.5rem); font-family: var(--f-display); font-weight: bold; }
.playriot-body .blog-post-terms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
/* Capped height + object-fit: cover — a full-bleed, iframe-sized featured
   image reads as "this is the game" rather than an illustrative photo, which
   is confusing (especially for kids). Keeping it visibly smaller than the
   game player fixes that. */
.playriot-body .blog-featured-image {
  border: var(--bw) solid var(--ink); border-radius: 0; box-shadow: 6px 6px 0 0 var(--ink);
  margin-bottom: 40px; overflow: hidden; background: var(--paper);
  max-height: 320px;
}
.playriot-body .blog-featured-image img { width: 100%; height: 320px; max-height: 320px; object-fit: cover; display: block; }
@media (max-width: 600px) {
  .playriot-body .blog-featured-image, .playriot-body .blog-featured-image img { max-height: 200px; height: 200px; }
}
.playriot-body .blog-content-box {
  background: var(--panel);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}
.playriot-body .blog-content-box .article-content { max-width: 68ch; margin: 0 auto; }
@media (max-width: 600px) { .playriot-body .blog-content-box { padding: 20px; } }

/* Prev/Next post navigation */
.playriot-body .blog-post-nav {
  display: flex; gap: 20px; margin-top: 30px;
}
.playriot-body .blog-post-nav-link {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px;
  background: var(--panel); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm);
  padding: 18px 22px; text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.playriot-body .blog-post-nav-link:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 0 var(--ink); }
.playriot-body .blog-post-nav-link.next { text-align: right; margin-left: auto; }
.playriot-body .blog-post-nav-label {
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #8A8272;
}
.playriot-body .blog-post-nav-title {
  font-family: var(--f-display); font-weight: bold; font-size: 1.05rem; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
@media (max-width: 600px) { .playriot-body .blog-post-nav { flex-direction: column; } .playriot-body .blog-post-nav-link.next { text-align: left; margin-left: 0; } }

/* Related articles (same category) at the bottom of a single post */
.playriot-body .blog-related-articles { margin-top: 50px; }
.playriot-body .blog-related-articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .playriot-body .blog-related-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .playriot-body .blog-related-articles-grid { grid-template-columns: 1fr; } }

.playriot-body .blog-empty {
  grid-column: 1 / -1; padding: 40px; background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 0 var(--ink);
}
.playriot-body .blog-empty p { margin: 0; font-size: 1.2rem; font-weight: bold; }

.playriot-body .blog-pagination { margin-top: 40px; display: flex; gap: 12px; justify-content: center; font-family: var(--f-display); }
.playriot-body .blog-pagination ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.playriot-body .blog-pagination li { display: inline-flex; }
.playriot-body .blog-pagination a, .playriot-body .blog-pagination span {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 16px; border: var(--line) solid var(--ink); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: 1.1rem;
  box-shadow: 2px 2px 0 0 var(--ink); text-decoration: none; transition: transform 0.1s, box-shadow 0.1s;
}
.playriot-body .blog-pagination a:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 0 var(--ink); }
.playriot-body .blog-pagination .current { background: var(--volt); }

@media (max-width: 768px){
  .tags-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .tag-letter-header h2 { font-size: 36px; }
}
