:root {
  --red: #8b0000;
  --red-bright: #c10000;
  --panel: #2a0a0a;
  --ink: #f3e9e9;
  --cur-default: auto;
  --cur-pointer: pointer;
  --cur-text: text;
  --cur-wait: wait;
  --cur-progress: progress;
  --cur-move: move;
  --cur-help: help;
  --cur-not-allowed: not-allowed;
  --cur-ew: ew-resize;
  --cur-ns: ns-resize;
  --cur-nwse: nwse-resize;
  --cur-nesw: nesw-resize;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body { cursor: var(--cur-default); }
a, button, .btn, .cat-item, .card, [role="button"], label[for] { cursor: var(--cur-pointer); }
input, textarea, select, [contenteditable="true"] { cursor: var(--cur-text); }
:disabled, .disabled, [aria-disabled="true"] { cursor: var(--cur-not-allowed); }
[draggable="true"], .drag { cursor: var(--cur-move); }
body.is-busy, .loading { cursor: var(--cur-wait); }
.cursor-help, [data-cursor="help"] { cursor: var(--cur-help); }
textarea { resize: both; }

body {
  min-height: 100vh;
  padding-bottom: 60px;
  font-family: "Cormorant Infant", Georgia, serif;
  color: var(--ink);
  background-color: #160404;
  background-image: url(theme/pattern_site_bg.png), url(theme/site_bg.svg);
  background-repeat: repeat, no-repeat;
  background-size: 376px 376px, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
}

a { color: var(--ink); text-decoration: none; }

.page {
  position: relative;
  z-index: 1;
  padding: 4px clamp(48px, 18vw, 320px) 0 clamp(14px, 4vw, 48px);
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 22px;
  padding: 8px 6px 14px;
  background-color: #160404;
  background-image: url(theme/pattern_site_bg.png), url(theme/site_bg.svg);
  background-repeat: repeat, no-repeat;
  background-size: 376px 376px, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-self: start;
}
.logo img { height: clamp(48px, 8vw, 76px); width: auto; display: block; }

.ribbon {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 50px;
  padding: 0 26px;
  background: url(theme/plagka_wide_bg.png) no-repeat center / 100% 100%;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  font-size: 19px;
  line-height: 50px;
  letter-spacing: .3px;
  color: #ffe9e9;
  text-shadow: 0 1px 3px #000;
  animation: marquee 22s linear infinite;
}
.marquee:hover span { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.cursor-pick {
  flex: 0 0 auto;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  white-space: nowrap;
  text-shadow: 0 1px 4px #000;
  color: var(--ink);
}
.cursor-pick select {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #1a0606;
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 4px 8px;
}
.cursor-pick select:focus { outline: 1px solid var(--red-bright); }

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 3;
  background: #000;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(14px, 2.4vw, 20px);
}
.footer-inner .skull { width: 30px; height: 30px; }
.footer-links { display: flex; align-items: center; gap: 10px; }
.footer-links a:hover { color: var(--red-bright); text-decoration: underline; }

.layout {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 6px;
}

.sidebar {
  flex: 0 0 270px;
  align-self: flex-start;
  position: sticky;
  top: 100px;
  width: 270px;
  height: calc(100vh - 176px);
  display: flex;
  flex-direction: column;
  padding: 14px 12px 14px 16px;
  background: url(theme/bg_window.png) no-repeat center / 100% 100%;
  border-radius: 14px;
  z-index: 1;
}
.chrest {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 72px;
  height: 72px;
  opacity: .9;
  pointer-events: none;
}
.side-head {
  flex: 0 0 auto;
  background: url(theme/h1_category_bg.png) no-repeat center / 100% 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px #000;
}
.scroll-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.cats-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding-right: 16px;
}

.cats-scroll, .privacy-window {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cats-scroll::-webkit-scrollbar, .privacy-window::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.scroll-track {
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 4px;
  width: 21px;
  background: url(theme/scroll_bar_inactive.png) center / 100% 100% no-repeat;
  border-radius: 8px;
  cursor: pointer;
  z-index: 6;
  display: none;
}
.cats-scroll .scroll-track { top: 8px; }
.scroll-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  background: url(theme/scroll_bar_active.png) center / 100% 100% no-repeat;
  border-radius: 8px;
  cursor: grab;
}
.scroll-thumb:active { cursor: grabbing; }
.cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: var(--cur-pointer);
  font-size: 18px;
  transition: background .15s;
}
.cat:hover, .cat.active {
  background: url(theme/highlight_category.png) center / 100% 100% no-repeat;
}
.cat .cat-icon { width: 26px; height: 26px; flex: 0 0 26px; text-align: center; font-size: 22px; line-height: 26px; }
.cat .cat-icon img { width: 100%; height: 100%; }

.content {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 18px 20px;
  border-radius: 14px;
}
.content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(theme/bg_window.png) no-repeat center / 100% 100%;
  border-radius: 14px;
  pointer-events: none;
}
.search {
  width: 100%;
  max-width: 360px;
  margin: 0 0 16px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 19px;
  color: var(--ink);
  background: rgba(0, 0, 0, .45);
  border: 1px solid #5a1414;
  border-radius: 8px;
}
.search::placeholder { color: #c9a9a9; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
  gap: 18px;
  justify-content: start;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, .35);
  border: none;
  border-radius: 10px;
  overflow: hidden;
  clip-path: polygon(0.00% 0.00%, 1.56% 0.04%, 3.13% 0.08%, 4.69% 0.13%, 6.25% 0.15%, 7.81% 0.42%, 9.38% 0.46%, 10.94% 0.36%, 12.50% 0.34%, 14.06% 0.26%, 15.63% 0.25%, 17.19% 0.02%, 18.75% 0.16%, 20.31% 0.55%, 21.88% 0.28%, 23.44% 0.94%, 25.00% 0.94%, 26.56% 1.16%, 28.13% 0.17%, 29.69% 0.34%, 31.25% 0.10%, 32.81% 0.38%, 34.38% 0.44%, 35.94% 0.70%, 37.50% 1.42%, 39.06% 0.59%, 40.63% 1.53%, 42.19% 0.62%, 43.75% 1.73%, 45.31% 0.41%, 46.88% 0.41%, 48.44% 0.45%, 50.00% 0.21%, 51.56% 0.50%, 53.13% 0.55%, 54.69% 1.53%, 56.25% 0.87%, 57.81% 0.44%, 59.38% 1.51%, 60.94% 1.35%, 62.50% 0.37%, 64.06% 0.00%, 65.63% 0.01%, 67.19% 0.48%, 68.75% 0.38%, 70.31% 1.01%, 71.88% 1.07%, 73.44% 0.36%, 75.00% 0.77%, 76.56% 1.29%, 78.13% 1.05%, 79.69% 0.44%, 81.25% 0.12%, 82.81% 0.05%, 84.38% 0.43%, 85.94% 0.04%, 87.50% 0.45%, 89.06% 0.44%, 90.63% 0.29%, 92.19% 0.25%, 93.75% 0.21%, 95.31% 0.19%, 96.88% 0.00%, 98.44% 0.02%, 100.00% 0.00%, 100.00% 0.00%, 99.98% 1.56%, 99.96% 3.13%, 99.77% 4.69%, 99.88% 6.25%, 99.55% 7.81%, 99.59% 9.38%, 99.50% 10.94%, 99.94% 12.50%, 99.64% 14.06%, 99.56% 15.63%, 100.00% 17.19%, 99.78% 18.75%, 99.67% 20.31%, 99.49% 21.88%, 99.73% 23.44%, 99.62% 25.00%, 98.59% 26.56%, 99.62% 28.13%, 99.91% 29.69%, 99.38% 31.25%, 99.42% 32.81%, 99.09% 34.38%, 99.35% 35.94%, 98.87% 37.50%, 98.85% 39.06%, 98.48% 40.63%, 98.70% 42.19%, 99.22% 43.75%, 99.57% 45.31%, 99.99% 46.88%, 99.84% 48.44%, 99.37% 50.00%, 99.51% 51.56%, 99.00% 53.13%, 98.31% 54.69%, 98.16% 56.25%, 98.91% 57.81%, 98.90% 59.38%, 98.79% 60.94%, 98.98% 62.50%, 98.86% 64.06%, 99.21% 65.63%, 99.27% 67.19%, 99.80% 68.75%, 99.75% 70.31%, 99.19% 71.88%, 99.17% 73.44%, 99.33% 75.00%, 99.66% 76.56%, 99.48% 78.13%, 99.14% 79.69%, 99.78% 81.25%, 99.83% 82.81%, 99.65% 84.38%, 99.92% 85.94%, 99.58% 87.50%, 99.48% 89.06%, 99.67% 90.63%, 99.54% 92.19%, 99.79% 93.75%, 99.83% 95.31%, 99.88% 96.88%, 100.00% 98.44%, 100.00% 100.00%, 100.00% 100.00%, 98.44% 99.98%, 96.88% 99.87%, 95.31% 99.81%, 93.75% 99.91%, 92.19% 99.79%, 90.63% 99.47%, 89.06% 99.57%, 87.50% 99.42%, 85.94% 99.95%, 84.38% 99.83%, 82.81% 99.58%, 81.25% 99.34%, 79.69% 99.31%, 78.13% 99.41%, 76.56% 99.28%, 75.00% 99.05%, 73.44% 99.04%, 71.88% 99.77%, 70.31% 98.89%, 68.75% 99.95%, 67.19% 99.74%, 65.63% 99.11%, 64.06% 99.07%, 62.50% 98.71%, 60.94% 98.87%, 59.38% 99.04%, 57.81% 98.84%, 56.25% 98.93%, 54.69% 98.69%, 53.13% 99.77%, 51.56% 99.50%, 50.00% 99.85%, 48.44% 99.20%, 46.88% 99.83%, 45.31% 99.14%, 43.75% 99.33%, 42.19% 98.46%, 40.63% 98.53%, 39.06% 99.13%, 37.50% 99.90%, 35.94% 99.92%, 34.38% 99.87%, 32.81% 99.52%, 31.25% 98.98%, 29.69% 99.29%, 28.13% 99.62%, 26.56% 98.88%, 25.00% 99.46%, 23.44% 99.57%, 21.88% 99.61%, 20.31% 99.96%, 18.75% 99.74%, 17.19% 99.83%, 15.63% 99.86%, 14.06% 99.70%, 12.50% 99.37%, 10.94% 99.57%, 9.38% 99.88%, 7.81% 99.74%, 6.25% 99.69%, 4.69% 99.85%, 3.13% 99.96%, 1.56% 99.98%, 0.00% 100.00%, 0.00% 100.00%, 0.05% 98.44%, 0.10% 96.88%, 0.14% 95.31%, 0.19% 93.75%, 0.42% 92.19%, 0.42% 90.63%, 0.14% 89.06%, 0.60% 87.50%, 0.54% 85.94%, 0.21% 84.38%, 0.37% 82.81%, 0.53% 81.25%, 0.82% 79.69%, 0.42% 78.13%, 0.33% 76.56%, 0.35% 75.00%, 1.04% 73.44%, 0.41% 71.88%, 0.04% 70.31%, 0.89% 68.75%, 0.09% 67.19%, 0.11% 65.63%, 0.07% 64.06%, 0.54% 62.50%, 0.82% 60.94%, 0.70% 59.38%, 1.83% 57.81%, 1.52% 56.25%, 1.67% 54.69%, 0.28% 53.13%, 0.64% 51.56%, 0.07% 50.00%, 0.86% 48.44%, 0.17% 46.88%, 0.71% 45.31%, 1.71% 43.75%, 1.73% 42.19%, 1.19% 40.63%, 1.61% 39.06%, 0.48% 37.50%, 0.04% 35.94%, 0.48% 34.38%, 0.68% 32.81%, 0.12% 31.25%, 0.18% 29.69%, 1.36% 28.13%, 0.47% 26.56%, 0.44% 25.00%, 0.99% 23.44%, 0.73% 21.88%, 0.63% 20.31%, 0.24% 18.75%, 0.27% 17.19%, 0.09% 15.63%, 0.32% 14.06%, 0.42% 12.50%, 0.51% 10.94%, 0.37% 9.38%, 0.36% 7.81%, 0.29% 6.25%, 0.09% 4.69%, 0.02% 3.13%, 0.01% 1.56%, 0.00% 0.00%);
  transition: transform .15s;
}
.card:hover, .card:focus, .card:focus-within {
  transform: translateY(-3px);
  outline: none;
}
.card .card-stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.card .card-stroke path {
  stroke: #000;
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
  fill: none;
  transition: stroke .15s;
}
.card:hover .card-stroke path,
.card:focus .card-stroke path,
.card:focus-within .card-stroke path {
  stroke: #730000;
}
.card-cover { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; display: block; background: #1a0606; }
.card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.card-title { font-size: 18px; font-weight: 700; line-height: 1.15; }
.card-meta { font-size: 14px; opacity: .8; }

.btn {
  align-self: flex-start;
  border: none;
  cursor: var(--cur-pointer);
  color: #fff;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  padding: 9px 28px;
  background: url(theme/button.png) no-repeat center / 100% 100%;
  text-shadow: 0 1px 2px #000;
}
.btn:hover { filter: brightness(1.12); }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 12px;
}
.pager button.page {
  min-width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #f3e6e6;
  background: url(theme/page_cirle_idle.png) no-repeat center / 100% 100%;
  border: none;
  border-radius: 50%;
  cursor: var(--cur-pointer);
  transition: transform .15s, filter .15s;
}
.pager button.page:hover:not(.disabled),
.pager button.page.active {
  background-image: url(theme/page_cirle_hover.png);
  color: #fff;
}
.pager button.page:hover:not(.disabled) {
  transform: translateY(-2px);
}
.pager button.page.disabled {
  opacity: .4;
  cursor: var(--cur-not-allowed);
}
.pager button.page.arrow {
  background-image: none;
  border-radius: 0;
  min-width: auto;
  height: auto;
  font-family: 'Fleur De Leah', cursive;
  font-size: 32px;
  line-height: 1;
  padding: 0 10px;
  color: #f3e6e6;
}
.pager button.page.arrow:hover:not(.disabled) {
  background-image: none;
  transform: translateY(-2px);
  color: #ffd9d9;
}
.pager .gap {
  color: #c9a9a9;
  padding: 0 2px;
}

.game-panel { flex: 1 1 auto; min-width: 0; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.game-name {
  flex: 0 1 auto;
  width: auto;
  max-width: 60%;
  min-width: 0;
  background: url(theme/game_name_bg.png) no-repeat center / 100% 100%;
  padding: 10px 28px;
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-buttons { display: flex; gap: 12px; flex: 0 0 auto; }

#game {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  background: #000;
  border: 4px solid #3a0d0d;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#game ruffle-player, #game embed, #game object { width: 100% !important; height: 100% !important; }

.desc-wrap { display: none; }
.desc-wrap.open { display: block; }
.desc-plate {
  padding: 16px 20px;
  background: url(theme/description_bg.png) no-repeat center / 100% 100%;
  border-radius: 10px;
  font-size: clamp(17px, 2.6vw, 20px);
  line-height: 1.4;
}
.desc-plate .orig { color: var(--red-bright); font-weight: 700; margin-bottom: 6px; }

.section-title { font-size: clamp(20px, 3vw, 24px); font-weight: 700; margin: 6px 0; text-shadow: 0 1px 3px #000; }
  .similar-section { background: url(theme/bg_window.png) no-repeat center / 100% 100%; border-radius: 14px; padding: 14px 16px; }
  #similarGrid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 160px; gap: 18px; overflow: hidden; }

  .howto-panel {
    position: fixed;
    top: 90px;
    right: 0;
    width: 320px;
    max-width: 86vw;
    max-height: 72vh;
    overflow: auto;
    z-index: 50;
    padding: 18px 20px;
    background: url(theme/howtoplay_bg.png) no-repeat center / 100% 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
  }
  .howto-panel[hidden] { display: none; }
  .howto-plate { color: var(--ink); font-size: clamp(16px, 2.4vw, 19px); line-height: 1.45; }
  .howto-plate h3 { margin: 0 0 10px; color: var(--red-bright); font-family: "MarckScript", "Fleur De Leah", cursive; font-size: 26px; text-shadow: 0 1px 3px #000; }
  .howto-plate p { margin: 0 0 10px; }
  .howto-plate ul, .howto-plate ol { margin: 0 0 10px; padding-left: 22px; }
  .howto-plate li { margin: 4px 0; }
  .howto-plate a { color: #ffd9d9; }
  .howto-plate code { background: #2a0a0a; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
  .howto-plate strong { color: #ffd9d9; }
  .howto-plate h1, .howto-plate h2 { color: var(--red-bright); font-size: 20px; margin: 8px 0 6px; }
  .howto-plate blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid #5a1620; opacity: .9; }

  .video-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.72);
    z-index: 100;
  }
  .video-modal[hidden] { display: none; }
  .video-frame {
    position: relative;
    width: min(880px, 92vw);
    aspect-ratio: 16 / 9;
    background: #000;
    border: none;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.7);
  }
  .video-frame iframe {
    position: absolute;
    inset: 18px;
    width: calc(100% - 36px);
    height: calc(100% - 36px);
    border: 0;
    border-radius: 6px;
  }
  .video-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border: 1px solid #5a1620;
    border-radius: 50%;
    background: #2a0a0a;
    color: #f3e6e6;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }
  .video-close:hover { filter: brightness(1.2); }

.privacy-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 0 18px;
}
.vampire-left {
  position: fixed;
  left: 0;
  bottom: 0;
  top: auto;
  height: 100vh;
  width: auto;
  max-width: 42vw;
  pointer-events: none;
  z-index: -1;
}
.vampire-left img { position: absolute; bottom: 0; left: 0; height: 86vh; width: auto; display: block; object-fit: contain; }
.privacy-col { flex: 1 1 auto; max-width: 1300px; position: relative; }
body.privacy .ribbon { display: none; }
body.privacy header {
  grid-template-columns: auto 1fr auto;
  max-width: 1300px;
  margin: 0 auto;
}
body.privacy .page {
  padding-left: clamp(48px, 20vw, 420px);
  padding-right: clamp(48px, 20vw, 420px);
}
body.privacy .cursor-pick {
  position: static;
  grid-column: 3;
  justify-self: end;
}
.privacy-title {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px #000;
  margin: 16px 0 18px;
  text-align: center;
}
.privacy-window {
  position: relative;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 30px 52px 30px 40px;
  background: url(theme/bg_window.png) no-repeat center / 100% 100%;
  border-radius: 14px;
  font-size: clamp(17px, 2.6vw, 21px);
  line-height: 1.5;
}
.privacy-block { margin-bottom: 18px; }
.privacy-block h3 { margin: 0 0 6px; font-size: 24px; color: #ffd9d9; }
.privacy-block p { margin: 0; }

.back-btn { position: absolute; right: 14px; bottom: -8px; }

.vampire {
  position: fixed;
  right: 0;
  top: 0;
  bottom: auto;
  height: 100vh;
  width: auto;
  max-width: min(56vw, 680px);
  pointer-events: none;
  z-index: -1;
}
.vampire img { height: 100vh; width: auto; display: block; object-fit: contain; }

@media (max-width: 1024px) {
  .layout { flex-direction: column; }
  .sidebar {
    position: static;
    flex: 1 1 auto;
    width: auto;
    max-height: none;
    overflow: visible;
  }
  .content, .game-panel { max-width: none; margin: 0; }
}
@media (max-width: 768px) {
  header { grid-template-columns: 1fr auto; gap: 12px; }
  .logo { justify-self: start; }
  .cursor-pick { position: static; justify-self: end; width: auto; }
  .ribbon { grid-column: 1 / -1; }
  .vampire { display: none; }
  .page { padding-right: clamp(14px, 4vw, 48px); }
  .game-bar { gap: 10px; }
  .game-name { max-width: 100%; }
  .footer-inner { flex-wrap: wrap; padding: 6px 10px; }
}
@media (max-width: 520px) {
  .search { max-width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .card-title { font-size: 16px; }
  .card-meta { font-size: 13px; }
  .logo img { height: 52px; }
  .cursor-pick { font-size: 15px; }
  .game-name { font-size: 19px; padding: 8px 16px; }
  .desc-plate { font-size: 17px; padding: 12px 14px; }
  .privacy-window { padding: 16px 14px; }
  .vampire-left { display: none; }
  .pager button.page { min-width: 40px; height: 40px; font-size: 16px; }
  .pager button.page.arrow { font-size: 26px; }
}
