/* ============================================================
   PRISONERS - Clinical Cold / Steel / Blood-Red Horror VN Portal
   Palette: cold dark steel-blue / iron-gray / clinical / blood-red accent
   Mirrors the prison-cell / examination / execution atmosphere of the game.
   ============================================================ */

:root {
  --bg:              #0b0d12;
  --bg-elev:         #131820;
  --bg-elev-2:       #1a2029;
  --bg-elev-3:       #232c38;
  --bg-noise:        rgba(190, 200, 220, 0.022);

  --slate:           #3d5b73;   /* primary cold steel - clinical / iron bars */
  --slate-2:         #5a7e9a;   /* hover / highlight */
  --slate-deep:      #1f3346;   /* deeper steel */
  --slate-glow:      rgba(61, 91, 115, 0.45);
  --slate-glow-2:    rgba(61, 91, 115, 0.18);

  --blood:           #a83228;   /* exam / execution red */
  --blood-2:         #c8483a;
  --blood-deep:      #6a1e18;
  --blood-glow:      rgba(168, 50, 40, 0.4);
  --blood-glow-2:    rgba(168, 50, 40, 0.18);

  --text:            #e8e6df;
  --text-muted:      #a0a8b4;
  --text-dim:        #707682;
  --text-faint:      #4a4f5a;

  --border:          #2a313c;
  --border-bright:   #38414f;
  --border-slate:    #3d5b73;
  --border-blood:    #6a1e18;

  --serif:           'EB Garamond', Georgia, 'Times New Roman', serif;
  --display:         'Cinzel', 'Cinzel Decorative', 'EB Garamond', serif;
  --mono:            'Special Elite', 'Courier New', monospace;
  --sans:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius:          6px;
  --radius-lg:       10px;
  --max-w:           1180px;
  --max-w-narrow:    760px;
  --shadow:          0 8px 24px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.45);
  --shadow-slate:    0 0 0 1px var(--border-slate), 0 8px 30px var(--slate-glow-2), 0 2px 6px rgba(0,0,0,0.55);
  --shadow-blood:    0 0 0 1px var(--border-blood), 0 8px 30px var(--blood-glow-2), 0 2px 6px rgba(0,0,0,0.55);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(77,108,176,0.10) 0%, transparent 38%),
    radial-gradient(circle at 90% 100%, rgba(26,32,54,0.45) 0%, transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.9  0 0 0 0 1  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100vw;
}
html { overflow-x: clip; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: 0.5px; color: var(--text); margin-top: 1.6em; margin-bottom: 0.6em; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); color: #fff; text-shadow: 0 0 28px var(--slate-glow-2); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--slate-2); border-left: 3px solid var(--slate); padding-left: 14px; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--text); }
h4 { font-size: 1.05rem; color: var(--slate-2); margin-bottom: 0.4em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--slate-2); text-decoration: none; transition: color .18s ease; }
a:hover, a:focus { color: #fff; text-decoration: underline; text-decoration-color: var(--slate-2); }
strong { color: #fff; }
em { color: var(--text-muted); }
hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; padding: 8px 14px; background: var(--slate); color: #fff;
  font-family: var(--sans); font-size: 14px; border-radius: 0 0 var(--radius) 0; z-index: 9999;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
header.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px;
  background: rgba(10,15,28,0.92);
  border-bottom: 1px solid var(--border-bright);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
}
.logo {
  font-family: var(--display); font-size: 1.32rem; font-weight: 700;
  color: #fff; letter-spacing: 2.5px; text-decoration: none;
  text-shadow: 0 0 18px var(--slate-glow-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.logo::before {
  content: "Ø"; color: var(--slate-2); font-size: 1.2rem; opacity: 0.85;
}
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav a { color: var(--text-muted); font-family: var(--sans); font-size: 0.92rem; }
.header-nav a:hover { color: var(--slate-2); text-decoration: none; }

/* ---------- main wrapper ---------- */
.wrapper { max-width: var(--max-w); margin: 0 auto; padding: 24px 22px 60px; }
main { grid-column: 1 / -1; }

/* Keep the player first, followed immediately by more games. */
main { display: flex; flex-direction: column; }
/* The player must always be the first piece of page content. Some inner pages
   include optional sections whose default flex order is 0. */
main > .game-section { order: -2; }
main > .brand-longtail { order: 2; }
main > .info-card { order: 3; }
main > .game-videos { order: 4; }
main > .endings-section { order: 5; }
main > .guide-spotlight { order: 1; }
main > .related-section { order: 0; }

/* ============================================================
   GAME PLAYER
   ============================================================ */
.game-section { margin: 8px 0 36px; }
.frame-box-game { position: relative; }
.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(19,24,41,0.55) 0%, rgba(10,15,28,0.85) 100%),
    radial-gradient(ellipse at 30% 35%, rgba(77,108,176,0.20) 0%, transparent 60%),
    url('/images/overdose-hero-evren.png') center/cover no-repeat,
    #0a0f1c;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-slate);
  overflow: hidden;
}
.game-frame-bg {
  position: absolute; inset: 0;
  background:
    url('/images/prisoners-keyart.png') center/cover no-repeat,
    linear-gradient(180deg, rgba(11,13,18,0.0) 0%, rgba(11,13,18,0.55) 100%);
  filter: contrast(0.95) saturate(0.9);
}
.game-frame-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,18,0.1) 0%, rgba(11,13,18,0.5) 80%, rgba(11,13,18,0.85) 100%);
}
.game-frame-trust {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center;
  padding: 12px 14px; background: linear-gradient(0deg, rgba(10,15,28,0.95) 0%, rgba(10,15,28,0.5) 80%, transparent 100%);
  font-family: var(--sans); font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.3px;
}
.game-frame-trust span { display: inline-flex; align-items: center; gap: 6px; }
.game-frame-trust i { color: var(--slate-2); font-style: normal; }

/* Play CTA - slate-blue circle with subtle red glow (the medical/overdose cue) */
.game-play-cta {
  position: absolute; inset: 0; margin: auto;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--slate) 0%, var(--slate-deep) 70%, #1a2238 100%);
  border: 2px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--display); font-size: 1.3rem; letter-spacing: 2.5px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  z-index: 6;
  box-shadow: 0 0 50px var(--slate-glow), 0 0 90px var(--blood-glow-2), inset 0 0 30px rgba(0,0,0,0.4);
  transition: transform .18s ease, box-shadow .18s ease;
  text-transform: uppercase;
  animation: slatePulse 2.8s ease-in-out infinite;
}
.game-play-cta .play-icon { font-size: 1.6rem; margin-bottom: 4px; line-height: 1; }
.game-play-cta:hover { transform: scale(1.06); box-shadow: 0 0 70px var(--slate-glow), 0 0 110px var(--blood-glow-2), inset 0 0 40px rgba(0,0,0,0.5); }
.game-play-cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes slatePulse {
  0%, 100% { box-shadow: 0 0 50px var(--slate-glow), 0 0 90px var(--blood-glow-2), inset 0 0 30px rgba(0,0,0,0.4); }
  50%      { box-shadow: 0 0 80px var(--slate-glow), 0 0 130px var(--blood-glow-2), 0 0 20px rgba(239,68,68,0.4), inset 0 0 40px rgba(0,0,0,0.5); }
}
.loading-overlay {
  position: absolute; inset: 0; z-index: 7;
  background: rgba(10,15,28,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--display); letter-spacing: 2px; color: var(--text);
}
.loading-overlay.hidden { display: none; }
.loading-overlay .pulse-dot {
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, var(--slate-2) 0%, var(--slate) 60%, transparent 75%);
  box-shadow: 0 0 60px var(--slate-glow);
  animation: slatePulse 1.6s ease-in-out infinite;
}
.loading-overlay p { margin: 0; font-size: 0.92rem; color: var(--text-muted); letter-spacing: 3px; }
#game-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; background: #000; z-index: 5;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.game-frame.is-playing #game-iframe { opacity: 1; pointer-events: auto; }
.game-frame.is-playing .game-frame-bg { opacity: 0; transition: opacity .4s ease; }
.game-frame.is-playing .game-play-cta { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.fs-close-inside {
  position: absolute; top: 14px; right: 14px; z-index: 30;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,15,28,0.85); border: 1px solid var(--border-bright);
  color: #fff; font-size: 1.2rem; cursor: pointer; display: none; align-items: center; justify-content: center;
}
.fs-close-inside.is-visible { display: inline-flex; }
.fs-close-inside:hover { background: var(--slate); border-color: var(--slate-2); }

.game-share-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding: 10px 14px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  flex-wrap: wrap; gap: 10px;
}
.btn-fullscreen-main {
  background: transparent; border: 1px solid var(--border-bright); color: var(--text);
  padding: 8px 16px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.88rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all .18s ease;
}
.btn-fullscreen-main:hover { background: var(--slate); border-color: var(--slate-2); color: #fff; }
.game-share-group { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-share-group-label { color: var(--text-muted); font-family: var(--sans); font-size: 0.84rem; margin-right: 4px; }
.game-share-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-elev-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .18s ease;
  text-decoration: none !important;
}
.game-share-btn:hover { background: var(--slate); color: #fff; border-color: var(--slate-2); transform: translateY(-1px); }
.game-share-more {
  width: auto; padding: 0 12px; border-radius: 999px; font-size: 0.84rem; gap: 6px;
}

/* theater / fullscreen
   `100vh` is the layout viewport on iOS and can leave space for Safari's
   expanding address bar.  Use the dynamic viewport when it is available so
   the fallback theater mode truly fills phones and iPads. */
.game-frame.theater-mode, .game-frame.is-fullscreen,
.game-frame:fullscreen, .game-frame:-webkit-full-screen {
  position: fixed; inset: 0; z-index: 2147483647; box-sizing: border-box;
  width: 100vw; height: 100vh; min-height: 0; max-height: none;
  border-radius: 0; border: none; aspect-ratio: auto; background: #000;
}
@supports (height: 100dvh) {
  .game-frame.theater-mode, .game-frame.is-fullscreen,
  .game-frame:fullscreen, .game-frame:-webkit-full-screen { height: 100dvh; }
}
body.theater-active { overflow: hidden; overscroll-behavior: none; }
.game-frame.theater-mode #game-iframe, .game-frame.is-fullscreen #game-iframe,
.game-frame:fullscreen #game-iframe, .game-frame:-webkit-full-screen #game-iframe {
  width: 100%; height: 100%; touch-action: manipulation;
}
.game-frame.theater-mode .fs-close-inside, .game-frame.is-fullscreen .fs-close-inside,
.game-frame:fullscreen .fs-close-inside, .game-frame:-webkit-full-screen .fs-close-inside {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
}

/* ============================================================
   ENDINGS TRACKER (2 endings for the demo)
   ============================================================ */
.endings-section {
  margin: 38px 0;
  padding: 26px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
}
.endings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.endings-header h2 { margin: 0; font-size: 1.4rem; color: var(--slate-2); border-left: none; padding: 0; }
.endings-header .endings-note-inline { font-family: var(--sans); font-size: 0.82rem; color: var(--text-dim); }
.endings-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.endings-progress-bar {
  flex: 1; height: 10px; background: rgba(0,0,0,0.45); border-radius: 999px; overflow: hidden;
  border: 1px solid var(--border);
}
.endings-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--slate-deep) 0%, var(--slate) 60%, var(--slate-2) 100%);
  box-shadow: 0 0 12px var(--slate-glow);
  transition: width .35s ease;
}
.endings-progress-text { font-family: var(--mono); font-size: 0.9rem; color: var(--text-muted); }
.endings-progress-text strong { color: var(--slate-2); font-size: 1.1rem; }
.endings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.ending-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; text-align: left;
  background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); cursor: pointer; transition: all .18s ease;
  font-family: var(--sans); font-size: 0.9rem;
}
.ending-card:hover { border-color: var(--slate); transform: translateY(-1px); }
.ending-card[data-found="true"] { border-color: var(--slate); background: linear-gradient(135deg, rgba(77,108,176,0.25), rgba(26,32,54,0.45)); }
.ending-checkbox {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 4px;
  border: 1.5px solid var(--border-bright); background: rgba(0,0,0,0.45);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; font-size: 0.75rem;
}
.ending-card[data-found="true"] .ending-checkbox { background: var(--slate); border-color: var(--slate-2); color: #fff; }
.ending-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ending-name { font-family: var(--serif); font-size: 1rem; color: #fff; }
.ending-tag { font-family: var(--sans); font-size: 0.72rem; color: var(--slate-2); letter-spacing: 1.2px; text-transform: uppercase; }
.ending-card[data-found="false"] .ending-name { color: var(--text-dim); }
.ending-card[data-found="false"] .ending-tag { color: var(--text-faint); }
.endings-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; gap: 10px; }
.endings-btn {
  background: transparent; border: 1px solid var(--border-bright); color: var(--text-muted);
  padding: 7px 14px; border-radius: var(--radius); font-family: var(--sans); font-size: 0.84rem; cursor: pointer;
}
.endings-btn:hover { border-color: var(--slate); color: var(--slate-2); }

/* ============================================================
   GAME VIDEOS (YouTube embeds)
   ============================================================ */
.game-videos {
  margin: 38px 0;
  padding: 26px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
}
.game-videos-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.game-videos-header h2 {
  margin: 0; font-size: 1.4rem; color: var(--slate-2);
  border-left: none; padding: 0;
  font-family: var(--display);
}
.game-videos-note-inline { font-family: var(--sans); font-size: 0.82rem; color: var(--text-dim); }
.game-videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .game-videos-grid { grid-template-columns: 1fr 1fr; }
}
.game-video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.game-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.game-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.game-video-caption h3 {
  margin: 4px 0 4px;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1.3;
}
.game-video-caption p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   INFO CARD & content sections
   ============================================================ */
.brand-longtail {
  margin: 30px 0; padding: 22px 24px;
  background: linear-gradient(135deg, rgba(77,108,176,0.15) 0%, rgba(26,32,54,0.4) 100%);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
}
.brand-longtail h2 {
  margin-top: 0; color: var(--slate-2); border-left: 3px solid var(--slate-2); padding-left: 14px;
  font-size: 1.35rem;
}
.brand-longtail-features { color: var(--text); line-height: 1.85; padding-left: 22px; margin: 18px 0 6px; }
.brand-longtail-features li { margin-bottom: 6px; }

.info-card {
  margin: 32px 0; padding: 32px 30px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.info-card .content-body { max-width: 100%; }

.rating-row { display: flex; align-items: center; gap: 14px; margin: 12px 0 22px; flex-wrap: wrap; }
.stars { color: var(--slate-2); letter-spacing: 2px; font-size: 1.1rem; }
.rating-label { font-family: var(--sans); font-size: 0.92rem; color: var(--text-muted); }
.rating-label strong { color: #fff; }
.rating-label .hl { color: var(--blood-2); }

.testimonial {
  margin: 18px 0 26px; padding: 16px 20px;
  background: rgba(0,0,0,0.35); border-left: 3px solid var(--slate-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-style: italic; color: var(--text); font-size: 1.02rem;
}
.testimonial cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--sans); font-size: 0.82rem; color: var(--text-faint); }

/* ----- How to play ----- */
.how-to-play {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 18px 0 24px;
}
.how-step {
  background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 14px; align-items: flex-start;
}
.step-num {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--slate); border: 1px solid var(--slate-2);
  color: #fff; font-family: var(--display); font-size: 0.95rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  text-shadow: 0 0 10px var(--slate-glow);
}
.how-step p { margin: 0; color: var(--text); font-size: 0.96rem; }

/* ----- Characters ----- */
.characters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0 22px; }
.character {
  background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; overflow: hidden; transition: all .2s ease;
}
.character:hover { border-color: var(--slate); transform: translateY(-2px); box-shadow: var(--shadow-slate); }
.character-img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center;
  background: #0a0f1c; border-bottom: 1px solid var(--border);
}
.character-body { padding: 16px 18px 18px; }
.character h4 { margin: 0 0 4px; color: var(--slate-2); font-size: 1.1rem; font-family: var(--display); }
.character .role { font-family: var(--sans); font-size: 0.72rem; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.character p { margin: 0; color: var(--text); font-size: 0.92rem; line-height: 1.6; }
.character .blurb { font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 0.88rem; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.character .redacted { color: var(--blood-2); font-family: var(--mono); font-size: 0.85rem; letter-spacing: 2px; }

/* ----- Screenshot gallery ----- */
.screenshot-gallery {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin: 18px 0 24px;
}
@media (min-width: 760px) { .screenshot-gallery { grid-template-columns: 1fr 1fr; } }
.screenshot-gallery figure { margin: 0; background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.screenshot-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.screenshot-gallery figcaption { padding: 10px 14px; font-family: var(--sans); font-size: 0.86rem; color: var(--text-muted); border-top: 1px solid var(--border); }

/* ----- Content warnings ----- */
.content-warnings {
  margin: 18px 0 24px; padding: 20px 22px;
  background: linear-gradient(135deg, rgba(127,29,29,0.18) 0%, rgba(10,15,28,0.4) 100%);
  border: 1px solid var(--border-blood); border-left: 4px solid var(--blood-2);
  border-radius: var(--radius);
}
.content-warnings h4 { color: var(--blood-2); margin: 0 0 10px; font-size: 1rem; font-family: var(--display); letter-spacing: 1.5px; text-transform: uppercase; }
.content-warnings p { margin: 0; color: var(--text); font-size: 0.94rem; line-height: 1.75; }
.content-warnings strong { color: var(--blood-2); }

/* ----- Features grid ----- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 24px; }
.feature { background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: all .18s ease; }
.feature:hover { border-color: var(--slate); }
.feature h4 { color: var(--slate-2); margin: 0 0 6px; font-size: 1rem; }
.feature p { margin: 0; color: var(--text); font-size: 0.94rem; }

/* ----- Quotes strip ----- */
.quotes-strip {
  max-width: 900px; margin: 50px auto 0;
  padding: 26px 22px;
  background: linear-gradient(180deg, rgba(77,108,176,0.12) 0%, rgba(10,15,28,0.65) 100%);
  border: 1px solid var(--border-bright); border-radius: var(--radius-lg);
  font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--text);
  text-align: center;
}
.quotes-strip blockquote { margin: 0; padding: 0; }
.quotes-strip .attr { display: block; margin-top: 10px; font-style: normal; font-family: var(--sans); font-size: 0.82rem; color: var(--text-faint); letter-spacing: 1.5px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { margin: 40px 0; }
.faq-section h2 { margin-bottom: 18px; }
.faq-item { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 16px 20px;
  background: transparent; border: none; cursor: pointer; color: var(--text);
  font-family: var(--serif); font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .18s ease;
}
.faq-question:hover { background: rgba(77,108,176,0.08); }
.faq-icon { font-family: var(--mono); font-size: 1.2rem; color: var(--slate-2); flex: 0 0 24px; text-align: center; transition: transform .2s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-answer { max-height: 600px; }
.faq-answer p { padding: 0 20px 18px; margin: 0; color: var(--text-muted); font-size: 0.96rem; line-height: 1.75; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-section { margin: 40px 0; }
.reviews-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.reviews-header h2 { margin: 0; }
.header-meta { display: inline-flex; align-items: center; gap: 14px; }
.reviews-rating-big { font-family: var(--display); color: var(--slate-2); }
.reviews-rating-big .num { font-size: 1.6rem; font-weight: 700; }
.reviews-rating-big .out-of { font-size: 0.95rem; color: var(--text-muted); margin-left: 4px; }
.reviews-stars { color: var(--slate-2); letter-spacing: 1.5px; }
.reviews-count { font-family: var(--sans); font-size: 0.88rem; color: var(--text-muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.review-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.review-stars-row { color: var(--slate-2); letter-spacing: 1.5px; margin-bottom: 8px; }
.review-stars-row .empty { color: var(--text-faint); }
.review-body { color: var(--text); font-size: 0.95rem; line-height: 1.65; margin: 0 0 12px; }
.review-meta { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--slate-deep);
  color: #fff; font-family: var(--display); font-size: 0.95rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.review-name { font-family: var(--sans); font-size: 0.88rem; color: #fff; }
.review-source { font-family: var(--sans); font-size: 0.74rem; color: var(--text-faint); }
.reviews-cta { font-family: var(--sans); font-size: 0.88rem; color: var(--text-muted); text-align: center; margin: 14px 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  margin-top: 60px; padding: 32px 22px 28px;
  background: var(--bg-elev); border-top: 1px solid var(--border-bright);
  text-align: center;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 18px; }
.footer-nav a {
  font-family: var(--sans); font-size: 0.88rem; color: var(--text-muted);
  padding: 6px 10px; border-radius: 4px;
}
.footer-nav a:hover { color: var(--slate-2); background: rgba(77,108,176,0.08); text-decoration: none; }
.footer-disclaimer { font-family: var(--sans); font-size: 0.82rem; color: var(--text-faint); max-width: 880px; margin: 0 auto 6px; line-height: 1.6; }
.footer-partners {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 10px;
  font-family: var(--sans);
}
.footer-partners-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 4px;
}
.footer-partners a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.footer-partners a:hover { color: var(--slate-2); background: rgba(77,108,176,0.08); }
.footer-partners a:focus-visible { outline: 2px solid var(--slate-2); outline-offset: 2px; }
.footer-partners-sep { color: var(--text-faint); font-size: 0.85rem; }

/* ============================================================
   SHARE MODAL
   ============================================================ */
.share-modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.78);
  display: none; align-items: center; justify-content: center; padding: 22px;
  backdrop-filter: blur(4px);
}
.share-modal-overlay.is-visible { display: flex; }
.share-modal {
  background: var(--bg-elev-2); border: 1px solid var(--border-bright); border-radius: var(--radius-lg);
  padding: 28px 26px 24px; max-width: 460px; width: 100%; position: relative;
  box-shadow: var(--shadow);
}
.share-modal h3 { margin: 0 0 6px; color: var(--text); font-size: 1.3rem; }
.share-modal .sub { margin: 0 0 18px; font-family: var(--sans); font-size: 0.88rem; color: var(--text-muted); }
.close-x {
  position: absolute; top: 12px; right: 14px; background: transparent; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.close-x:hover { color: #fff; background: rgba(77,108,176,0.18); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-elev); border: 1px solid var(--border-bright);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: all .18s ease;
}
.socials a:hover { background: var(--slate); color: #fff; border-color: var(--slate-2); transform: translateY(-1px); }
.url-row { display: flex; gap: 8px; }
.url-row input { flex: 1; padding: 10px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--border-bright); border-radius: var(--radius); font-family: var(--mono); font-size: 0.88rem; }
.url-row button { padding: 10px 18px; background: var(--slate); color: #fff; border: 1px solid var(--slate-2); border-radius: var(--radius); cursor: pointer; font-family: var(--sans); font-size: 0.88rem; }
.url-row button:hover { background: var(--slate-2); }

/* ============================================================
   AD SLOT (Adsterra native banner placeholder style)
   ============================================================ */
.ad-slot {
  margin: 28px 0; padding: 14px;
  background: var(--bg-elev); border: 1px dashed var(--border-bright); border-radius: var(--radius);
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.78rem; color: var(--text-faint); letter-spacing: 1px; text-transform: uppercase;
}
.ad-slot [data-nat-ad] { display: block; width: 100%; }

/* ============================================================
   SUB-PAGE STYLES (about / contact / privacy / terms)
   ============================================================ */
.subpage-content { max-width: var(--max-w-narrow); margin: 30px auto; }
.subpage-content h1 { color: #fff; }
.subpage-content p, .subpage-content li { color: var(--text); }

/* Walkthrough entry point and route guide */
.guide-spotlight {
  max-width: var(--max-w);
  margin: 0 auto 26px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  background: linear-gradient(125deg, rgba(24,33,44,.97), rgba(13,17,23,.98));
  border: 1px solid rgba(112,145,172,.32);
  border-left: 4px solid var(--slate-2);
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,.26);
}
.guide-spotlight h2 { margin: 3px 0 10px; color: #fff; border: 0; padding: 0; }
.guide-spotlight p { margin: 0 0 14px; }
.guide-quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-quick-links a { padding: 6px 10px; font: 700 .74rem var(--sans); color: var(--slate-2); border: 1px solid rgba(112,145,172,.28); border-radius: 999px; }
.guide-quick-links a:hover { color: #fff; border-color: var(--slate-2); text-decoration: none; }
.guide-spotlight-cta { min-width: 190px; padding: 18px; background: rgba(61,91,115,.18); border: 1px solid var(--slate); border-radius: 6px; font-family: var(--sans); text-decoration: none; }
.guide-spotlight-cta span, .guide-spotlight-cta strong { display: block; }
.guide-spotlight-cta span { margin-bottom: 4px; color: var(--text-dim); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.guide-spotlight-cta strong { color: #fff; }
.guide-spotlight-cta:hover { background: rgba(61,91,115,.3); text-decoration: none; transform: translateY(-1px); }
.guide-lede { font-size: 1.1rem; color: var(--text); }
.spoiler-note { padding: 16px 18px; margin: 20px 0; background: rgba(128,30,30,.14); border: 1px solid rgba(185,60,60,.35); border-radius: 6px; }
.route-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 20px 0 30px; }
.route-index a { padding: 10px 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 5px; font-family: var(--sans); }
.route-card { margin: 18px 0; padding: 22px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 7px; scroll-margin-top: 90px; }
.route-card h2 { margin-top: 0; }
.route-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.route-meta span { padding: 4px 8px; font: 700 .72rem var(--sans); color: var(--text-muted); background: rgba(112,145,172,.1); border: 1px solid rgba(112,145,172,.22); border-radius: 999px; }
.route-card ol { margin-bottom: 0; }
.route-tip { margin-top: 14px; padding: 12px 14px; background: rgba(61,91,115,.12); border-left: 3px solid var(--slate-2); }

@media (max-width: 720px) {
  .guide-spotlight { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; }
  .guide-spotlight-cta { min-width: 0; }
  .route-index { grid-template-columns: 1fr; }
  .route-card { padding: 18px 16px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .wrapper { padding: 18px 16px 40px; }
  header.site-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .logo { font-size: 1.1rem; letter-spacing: 2px; }
  .header-nav { gap: 12px; }
  .header-nav a { font-size: 0.84rem; }
  .info-card { padding: 24px 20px; }
  /* game frame = ~2/3 viewport height, like a real mobile game launcher */
  /* 18px below the player + 2px above the related block = 20px total. */
  .game-section { margin: 4px 0 18px; }
  .related-section { margin-top: 2px; }
  .game-frame {
    aspect-ratio: auto;
    height: 68vh;
    min-height: 400px;
    max-height: 600px;
  }
  .game-play-cta { width: 110px; height: 110px; font-size: 1.05rem; }
  .game-play-cta .play-icon { font-size: 1.3rem; }
  .game-frame-trust {
    font-size: 0.66rem;
    padding: 8px 6px;
    gap: 4px 8px;
    line-height: 1.3;
  }
  .game-frame-trust span { white-space: nowrap; }
  .game-share-bar { justify-content: center; }
  .game-share-group-label { display: none; }
  .footer-nav { font-size: 0.84rem; gap: 4px 10px; }
  .ad-slot { min-height: 60px; }
  .endings-grid { grid-template-columns: 1fr; }
  .screenshot-gallery { grid-template-columns: 1fr; }
  .characters { grid-template-columns: 1fr 1fr; }
  .how-to-play { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  header.site-header { padding: 10px 12px; }
  .logo { font-size: 1rem; letter-spacing: 1.5px; }
  .header-nav { width: 100%; justify-content: space-between; gap: 8px; overflow-x: auto; padding-top: 3px; }
  .header-nav a { font-size: 0.78rem; }
  .game-frame { height: 66vh; min-height: 380px; max-height: 540px; }
  .game-frame-trust { gap: 3px 6px; font-size: 0.6rem; }
  .game-frame-trust span { font-size: 0.6rem; }
  .reviews-header { flex-direction: column; align-items: flex-start; }
  .characters { grid-template-columns: 1fr; }
}

/* ============================================================
   RELATED GAMES GRID (More Free Horror Games)
   ============================================================ */
.related-section {
  margin: 38px auto 0;
  max-width: var(--max-w);
  padding: 26px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
}
.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.related-header h2 {
  margin: 0;
  font-size: 1.32rem;
  color: var(--blood-2);
  border-left: 3px solid var(--blood);
  padding-left: 14px;
  font-family: var(--display);
}
.related-header h2 i { color: var(--blood-2); margin-right: 6px; }
.related-sub {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
/* Tablets and landscape phones. */
@media (max-width: 1200px) {
  .related-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
/* Wider phones show three thumbnail-only cards per row. */
@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
/* Narrow Android and iPhone screens retain comfortably tappable two-column cards. */
@media (max-width: 520px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.related-card {
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.related-card:hover {
  border-color: var(--blood);
  background: rgba(127,29,29,0.10);
  transform: translateY(-1px);
}
.related-card.is-self {
  border-color: var(--blood);
  background: rgba(127,29,29,0.12);
  cursor: default;
}
.related-card.is-self:hover { transform: none; }
/* When the only card in the grid (solo mode after we removed the
   over-dose cross-link tiles), let it span the full grid and cap its
   width so the keyart reads well at any breakpoint. */
.related-card.is-self:only-child {
  grid-column: 1 / -1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}
.related-card.is-self:only-child .related-thumb { aspect-ratio: 16 / 9; }
.related-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  border-radius: 0;
  background: #000;
}
.related-title {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.related-tag {
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--blood-2);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.2;
}
.related-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.play-pill,
.self-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
}
.play-pill {
  background: var(--blood);
  color: #fff;
}
.play-pill i { font-size: 0.6rem; }
.self-pill {
  background: transparent;
  color: var(--blood-2);
  border: 1px solid var(--blood);
}
.related-card.is-self .related-meta { color: var(--text-faint); }
@media (max-width: 600px) {
  .related-section { padding: 18px 16px; }
  /* .related-thumb keeps the full-width banner style set by the 760px rule */
}

/* ============================================================
   COMMENTS (Community Notes)
   ============================================================ */
.comments-section {
  margin: 50px 0 0;
  padding: 0 22px;
}
.comments-section h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.comments-section h2 #commentsCount {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--slate-2);
  font-weight: 600;
  margin-left: 6px;
}
#commentsBody.collapsed,
#commentsHeader.collapsed + #commentsBody { display: none; }
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.comment-form input,
.comment-form textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 0.95rem;
  resize: vertical;
}
.comment-form textarea { min-height: 80px; }
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--slate);
}
.comment-form button {
  align-self: flex-start;
  background: var(--slate);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s;
}
.comment-form button:hover { background: var(--slate-2); }
.comment-error { color: var(--blood-2); font-size: 0.85rem; }
.comment-success { color: var(--slate-2); font-size: 0.85rem; }
.comments-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 30px;
  font-style: italic;
}
.comment-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-deep);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--display);
  flex-shrink: 0;
}
.comment-name {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.comment-time {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-left: auto;
}
.comment-body {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ============================================================
   PRISONERS - Custom additions
   Cookie banner / footer / character-art placeholder / screenshot placeholder
   ============================================================ */

/* ---------- Site footer ---------- */
.site-footer {
  margin: 60px 0 0;
  padding: 36px 22px 24px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border-bright);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.88rem;
}
.footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.footer-section h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  padding: 0;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section li { margin-bottom: 7px; }
.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color .15s ease;
}
.footer-section a:hover { color: var(--slate-2); text-decoration: underline; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.7;
}
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: var(--text-dim); text-decoration: underline; }
.footer-bottom a:hover { color: var(--slate-2); }

/* ---------- Character art placeholder ---------- */
.character-art {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--bg-elev-2) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.character-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(61, 91, 115, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(168, 50, 40, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}
.character-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.character-art--offset img {
  object-position: 22% center;
}
.character-art-placeholder {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--text-faint);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 2;
  display: none;
}
.character-art img[src]:not([src=""]) ~ .character-art-placeholder { display: none; }

/* ---------- Screenshot placeholder ---------- */
.screenshot {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screenshot-placeholder {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text-faint);
  text-align: center;
  padding: 0 16px;
}

/* ---------- FAQ <details> refinement (overrides default browser style) ---------- */
.faq-item {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin: 10px 0;
  transition: border-color .15s ease;
}
.faq-item[open] { border-color: var(--border-slate); }
.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-2);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--slate-2); }
.faq-item p {
  padding: 0 18px 16px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}
.faq-item p a { color: var(--slate-2); text-decoration: underline; }


/* ============================================================
   MORE FREE HORROR GAMES (related-section)
   Hero-style thumbnail grid placed right after the game player.
   Each card links to a sibling sub-page; "self" card is
   a non-clickable placeholder for the game the host site is about.
   ============================================================ */

.related-section {
  margin: 2.6rem 0 0.4rem;
  padding: 1.4rem 1.4rem 1.6rem;
  background: linear-gradient(180deg, rgba(19,24,32,0.55), rgba(11,13,18,0.78));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.related-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 1.0rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.7rem;
}
.related-header h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  color: #fff;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.related-header h2 i { color: var(--slate-2); font-style: normal; }
.related-header .related-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 1100px) {
  .related-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  aspect-ratio: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-card:hover, .related-card:focus {
  transform: translateY(-3px);
  border-color: var(--slate);
  box-shadow: var(--shadow-slate);
  text-decoration: none;
  color: #fff;
}
.related-card.is-self {
  cursor: default;
  border-color: var(--border-blood);
  box-shadow: 0 0 0 1px var(--border-blood), 0 4px 16px var(--blood-glow-2);
  pointer-events: none;
}

.related-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--bg-elev-3);
}
.related-card.is-self:only-child .related-thumb { aspect-ratio: 1 / 1; }

.related-card .related-caption {
  position: static;
  padding: 0.55rem 0.65rem;
  background: var(--bg-elev);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.25;
  text-shadow: none;
  display: flex;
  align-items: flex-end;
  min-height: 2.8rem;
}
.related-card.is-self .related-caption {
  color: var(--blood-2);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.related-card.is-self .related-caption::before {
  content: "\25CF  ";
  color: var(--blood-2);
  font-size: 0.7rem;
  margin-right: 0.25rem;
}

.related-section .related-foot {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.55;
}
.related-section .related-foot a { color: var(--slate-2); }

.udgi-main{display:block}.udgi-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);align-items:center;gap:clamp(24px,5vw,70px);padding:clamp(26px,5vw,64px);min-height:460px;border:1px solid var(--border-bright);border-radius:var(--radius-lg);background:radial-gradient(circle at 80% 20%,rgba(74,105,145,.23),transparent 48%),linear-gradient(135deg,#141b27,#0b0d12 72%);box-shadow:var(--shadow);overflow:hidden}.udgi-eyebrow{font-family:var(--mono);text-transform:uppercase;letter-spacing:2px;color:var(--slate-2);font-size:.78rem;margin-bottom:16px}.udgi-hero h1{font-size:clamp(2.7rem,6vw,5.6rem);line-height:1.05;letter-spacing:.07em;margin:0 0 22px}.udgi-hero h1 span{color:#a6bbd2}.udgi-hero-copy>p:not(.udgi-eyebrow){max-width:60ch}.udgi-lead{font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.45;color:#fff}.udgi-hero-art{width:100%;height:auto;aspect-ratio:504/388;object-fit:cover;border-radius:8px;box-shadow:0 20px 55px rgba(0,0,0,.45);border:1px solid var(--border-bright)}.udgi-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin:28px 0 15px}.udgi-button{display:inline-block;background:#557a9b;color:#fff;border:1px solid #86a6c1;border-radius:5px;padding:11px 18px;font:600 .9rem var(--sans);text-decoration:none}.udgi-button:hover{background:#6d91af;text-decoration:none}.udgi-text-link{font:600 .88rem var(--sans)}.udgi-platforms{color:var(--text-dim);font:.78rem var(--sans)}.udgi-player{margin:34px 0;border:1px solid var(--border-bright);border-radius:var(--radius-lg);background:#080a0f;box-shadow:var(--shadow);overflow:hidden}.udgi-player-top{display:flex;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--border);font:.7rem var(--mono);letter-spacing:1px;color:var(--text-dim)}.udgi-player-body{min-height:clamp(260px,41vw,470px);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:32px;background:radial-gradient(circle at center,rgba(42,63,88,.26),transparent 60%)}.udgi-player-mark{font-size:3rem;color:#83a4c2;line-height:1}.udgi-player h2{border:0;padding:0;margin:12px 0;color:#fff}.udgi-player p{color:var(--text-muted);max-width:48ch}.udgi-player a{font:600 .9rem var(--sans)}.udgi-story h2,.udgi-features h2,.udgi-faq h2{margin-top:0}.udgi-story{margin:34px 0}.udgi-source{font:.82rem var(--sans);color:var(--text-dim);margin:24px 0 0}.udgi-features{margin:34px 0}.udgi-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.udgi-feature-grid>div{padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-elev)}.udgi-feature-grid span{font:.77rem var(--mono);color:var(--slate-2)}.udgi-feature-grid h3{margin:13px 0 10px}.udgi-feature-grid p{color:var(--text-muted);font-size:.95rem;margin:0}.udgi-faq{margin-top:34px}.udgi-faq details{border-bottom:1px solid var(--border);padding:12px 0}.udgi-faq summary{cursor:pointer;font:600 .95rem var(--sans)}.udgi-faq details p{color:var(--text-muted);margin:12px 0 4px}@media(max-width:800px){.udgi-hero{grid-template-columns:1fr}.udgi-hero-art{max-width:600px;margin:auto}.udgi-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.udgi-feature-grid{grid-template-columns:1fr}.udgi-hero{padding:22px}.udgi-player-top{font-size:.61rem}.udgi-player-body{padding:24px}}

/* Homepage art direction: an icy editorial version of the reference site's image-led layout. */
body.udgi-page {
  --ink: #252c46;
  --muted: #626b83;
  --blue: #546b9e;
  --red: #aa3451;
  --paper: #f8f9fc;
  color: var(--ink);
  background: #f7f8fc;
  background-image: radial-gradient(circle at 78% 5%, #e9eefa 0, transparent 35%), radial-gradient(circle at 2% 45%, #fbeef2 0, transparent 30%);
  font-family: var(--sans);
}
.udgi-page h1,.udgi-page h2,.udgi-page h3,.udgi-page h4 { color: var(--ink); font-family: var(--sans); text-shadow: none; border: 0; padding: 0; }
.udgi-page p { color: var(--muted); }
.udgi-page a { color: var(--blue); }
/* main.css ships a dark-theme `strong { color:#fff }`; the light homepage must override it
   or emphasised text renders white-on-white. Dark blocks below re-assert white explicitly. */
.udgi-page strong { color: var(--ink); }
.udgi-page a:focus-visible,.udgi-page summary:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.udgi-ribbon { background: #9f354f; color: #fff; text-align: center; padding: 7px 12px; font-size: .65rem; font-weight: 800; letter-spacing: .22em; }
.udgi-page header.site-header { position: sticky; top: 0; background: rgba(255,255,255,.94); border-color: #e4e8f0; padding: 12px max(24px,calc((100vw - 1240px)/2)); box-shadow: 0 5px 24px rgba(34,45,75,.05); }
.udgi-page .logo { flex: 0 0 auto; gap: 14px; color: #283251; font-family: 'Cinzel Decorative', Georgia, serif; font-weight: 700; font-size: 1.16rem; letter-spacing: -.035em; line-height: 1.14; text-shadow: none; text-decoration: none; }
.udgi-page .logo::before { content: none; }
.udgi-page .logo-portrait { display: block; width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; object-position: center 38%; border: 2px solid #e3d8e4; border-radius: 14px; box-shadow: 0 4px 12px rgba(35,46,77,.16); }
.udgi-page .logo-wordmark { display: flex; flex-direction: column; white-space: nowrap; }
.udgi-page .logo-wordmark span:last-child { color: #a63e5a; letter-spacing: .06em; }
.udgi-page .header-nav { gap: clamp(12px,2.2vw,30px); }
.udgi-page .header-nav a { color: #434b62; font-size: .82rem; font-weight: 700; }
.udgi-page .header-nav a:hover { color: var(--red); }
.udgi-page .wrapper { max-width: 1240px; padding: 0 24px 80px; }
.udgi-page .udgi-main { display: block; }
.udgi-page .udgi-hero { position: relative; min-height: 600px; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(30px,5vw,80px); align-items: center; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; padding: clamp(60px,8vw,112px) 0 82px; }
.udgi-page .udgi-hero::before { content: ''; position: absolute; z-index: -1; left: -10vw; right: -10vw; inset-block: 0; background: radial-gradient(circle at 72% 52%, #e2e9f7, transparent 42%), radial-gradient(circle at 25% 15%, #fff, transparent 36%), #f4f6fb; }
.udgi-page .udgi-eyebrow { color: #9d3d5c; font-family: var(--sans); font-size: .7rem; font-weight: 800; letter-spacing: .22em; margin: 0 0 22px; }
.udgi-page .udgi-eyebrow::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #c85c7c; box-shadow: 0 0 0 5px #f4dfe8; vertical-align: 1px; }
.udgi-page .udgi-hero h1 { color: #28304b; font-size: clamp(3.5rem,5.1vw,5.4rem); line-height: .98; letter-spacing: -.075em; font-weight: 900; margin: 0 0 32px; }
.udgi-page .udgi-hero h1 span { display: block; color: #aa3857; }
.udgi-page .udgi-lead { font-size: clamp(1.3rem,2.2vw,1.75rem); line-height: 1.35; font-weight: 700; color: #303850 !important; margin-bottom: 17px; }
.udgi-page .udgi-hero-copy > p:not(.udgi-eyebrow) { max-width: 46ch; }
.udgi-page .udgi-hero-copy > p:not(.udgi-eyebrow,.udgi-lead) { font-size: .98rem; line-height: 1.75; }
.udgi-page .udgi-actions { margin: 30px 0 16px; }
.udgi-page .udgi-button { background: #a83a59; color: #fff; border: 0; border-radius: 999px; box-shadow: 0 12px 24px rgba(151,49,78,.18); padding: 14px 24px; font-weight: 800; }
.udgi-page .udgi-button:hover { background: #84243e; color: #fff; transform: translateY(-2px); }
.udgi-page .udgi-text-link { color: #344d82; font-weight: 800; }
.udgi-page .udgi-platforms { color: #81899b !important; font-size: .76rem !important; }
.udgi-page .udgi-hero-art { aspect-ratio: 794/496; object-fit: cover; border: 10px solid #fff; border-radius: 12px; transform: rotate(2.2deg); box-shadow: 0 24px 70px rgba(40,53,93,.22); }
.udgi-page .udgi-hero::after { content: '✦'; position: absolute; right: -12px; top: 90px; font-size: 4rem; color: #d5a9bb; opacity: .8; }
.udgi-page .udgi-hero { min-height: 0; padding-block: 70px; }
.udgi-page .udgi-hero h1 { margin-bottom: 0; }
.udgi-gallery { padding: 80px 0 46px; }
.udgi-section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.65fr); align-items: end; gap: 12px 30px; margin-bottom: 28px; }
.udgi-section-heading .udgi-eyebrow { grid-column: 1 / -1; margin-bottom: 2px; }
.udgi-section-heading h2 { font-size: clamp(2.3rem,4vw,4.4rem); font-weight: 900; letter-spacing: -.065em; line-height: 1.05; margin: 0; max-width: 700px; }
.udgi-section-heading h2 em { color: var(--red); font-style: normal; }
.udgi-section-heading > p:last-child { max-width: 38ch; line-height: 1.7; margin-bottom: 3px; }
.udgi-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.udgi-shot { margin: 0; padding: 8px 8px 0; overflow: hidden; background: #fff; border: 1px solid #e3e6ee; border-radius: 14px; box-shadow: 0 12px 32px rgba(40,52,80,.065); transition: transform .2s ease, box-shadow .2s ease; }
.udgi-shot:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(40,52,80,.13); }
.udgi-shot img { display: block; width: 100%; height: auto; aspect-ratio: 794/496; object-fit: cover; border-radius: 8px; background: #17213a; }
.udgi-shot figcaption { display: flex; flex-direction: column; gap: 4px; padding: 15px 12px 18px; }
.udgi-shot small { color: #a34d67; font-size: .64rem; font-weight: 900; letter-spacing: .17em; }
.udgi-shot strong { color: #29334e; font-size: 1.08rem; line-height: 1.35; }
.udgi-gallery-credit { font-size: .8rem; color: #7c8496 !important; margin-top: 18px; }
.udgi-page .udgi-player { margin: 54px 0 70px; background: #dce4f2; border: 0; border-radius: 18px; box-shadow: none; }
.udgi-page .udgi-player { margin-bottom: 0; }
.udgi-page .udgi-player-top { background: #2d3c61; color: #d9e1f0; border: 0; padding: 13px 20px; }
.udgi-page .udgi-player-body { min-height: 330px; background: radial-gradient(circle at 50% 30%,#eef3fc,#d7e1f1); }
.udgi-page .udgi-player-mark { color: #a43d58; }
.udgi-page .udgi-player h2 { color: #27324e; font-weight: 900; letter-spacing: -.04em; font-size: clamp(1.8rem,3.5vw,3rem); }
.udgi-page .udgi-player p { color: #5d6882; }
.udgi-page .udgi-player a { display: inline-block; border-radius: 999px; padding: 12px 20px; color: #fff; background: #a83a59; }
.udgi-page .udgi-player { overflow: hidden; background: #fff; border: 1px solid #dfe5f0; }
.udgi-page .udgi-player-intro { padding: clamp(24px,4vw,44px) clamp(20px,4vw,44px) 28px; text-align: center; }
.udgi-page .udgi-player-intro .udgi-eyebrow { margin-bottom: 12px; }
.udgi-page .udgi-player-intro h2 { margin: 0 auto 10px; }
.udgi-page .udgi-player-intro p:last-child { margin: 0 auto; }
.udgi-game-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 300px; background: #090d19; overflow: hidden; }
.udgi-game-stage iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #000; }
.udgi-page #game-iframe { opacity: 1; pointer-events: auto; z-index: 0; }
.udgi-game-cover { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; text-align: center; background: #101728; }
.udgi-game-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .8; }
.udgi-game-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(9,14,32,.65),rgba(9,14,32,.18)); pointer-events: none; }
.udgi-game-cover[hidden],.udgi-game-cover-content[hidden],.udgi-game-pending[hidden],.udgi-game-exit[hidden] { display: none; }
.udgi-game-cover-content,.udgi-game-pending { position: relative; z-index: 2; padding: 20px; }
.udgi-game-play { display: inline-flex; align-items: center; gap: 13px; padding: 17px 25px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: #a83a59; box-shadow: 0 14px 35px rgba(0,0,0,.35); color: #fff; font: 800 1rem var(--sans); cursor: pointer; transition: transform .2s,background .2s; }
.udgi-game-play:hover { transform: translateY(-3px); background: #862a45; }
.udgi-game-play:focus-visible,.udgi-fullscreen:focus-visible,.udgi-game-exit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.udgi-game-cover p { color: #edf0fa; margin: 14px 0 0; font-size: .8rem; font-weight: 700; }
.udgi-game-pending { display: grid; justify-items: center; gap: 12px; width: min(340px,85%); color: #fff; text-shadow: 0 2px 8px #000; }
.udgi-game-pending strong { color: #fff; font-size: 1.05rem; }
.udgi-game-pending small { color: #e6eaf5; font-size: .76rem; }
.udgi-loading-track { display: block; width: 100%; height: 8px; overflow: hidden; border: 1px solid #ffffff80; border-radius: 99px; background: #d4d9e260; }
.udgi-loading-track span { display: block; width: 35%; height: 100%; border-radius: 99px; background: #fff; animation: udgi-loading 1.4s ease-in-out infinite alternate; }
@keyframes udgi-loading { from { transform: translateX(0); } to { transform: translateX(185%); } }
.udgi-game-exit { position: absolute; z-index: 5; top: max(14px,env(safe-area-inset-top)); right: max(14px,env(safe-area-inset-right)); width: 42px; height: 42px; border: 1px solid #fff8; border-radius: 50%; color: #fff; background: rgba(12,18,31,.85); font-size: 1.2rem; cursor: pointer; }
.udgi-player-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 24px; padding: 17px 20px; }
.udgi-page .udgi-player-actions a { padding: 0; color: #4d5e86; background: none; font: 700 .83rem var(--sans); }
.udgi-fullscreen { border: 1px solid #bdc8dd; border-radius: 999px; padding: 9px 15px; color: #304362; background: #f1f4fa; font: 800 .83rem var(--sans); cursor: pointer; }
.udgi-fullscreen:hover { background: #e4eaf6; }
.udgi-game-stage:fullscreen,.udgi-game-stage.theater-mode { position: fixed; inset: 0; z-index: 2147483647; width: 100vw; height: 100vh; min-height: 0; aspect-ratio: auto; }
@supports(height:100dvh) { .udgi-game-stage:fullscreen,.udgi-game-stage.theater-mode { height: 100dvh; } }
body.udgi-theater-active { overflow: hidden; }
.udgi-page .udgi-story { background: #fff; border: 1px solid #e3e8f0; border-radius: 16px; box-shadow: 0 12px 34px rgba(39,52,84,.05); padding: clamp(28px,5vw,60px); }
.udgi-page .udgi-story h2,.udgi-page .udgi-features h2,.udgi-page .udgi-faq h2 { font-size: clamp(2rem,3.5vw,3.8rem); letter-spacing: -.055em; font-weight: 900; line-height: 1.1; margin: 0 0 28px; }
.udgi-page .udgi-story p { max-width: 75ch; font-size: 1.02rem; line-height: 1.8; }
.udgi-page .udgi-story em { color: #9d3d59; }
.udgi-page .udgi-features { margin: 86px 0; }
.udgi-page .udgi-feature-grid { grid-template-columns: repeat(4,1fr); }
.udgi-page .udgi-feature-grid > div { background: #fff; border-color: #e3e8f0; border-radius: 14px; padding: 27px 22px; box-shadow: 0 10px 28px rgba(39,52,84,.05); }
.udgi-page .udgi-feature-grid span { color: #ad4d68; font-family: var(--sans); font-weight: 900; }
.udgi-page .udgi-feature-grid h3 { color: #29334e; font-size: 1.08rem; font-weight: 800; margin: 15px 0 9px; }
.udgi-page .udgi-feature-grid p { color: #667187; }
.udgi-page .related-section { background: transparent; border: 0; padding: 0; margin: 80px 0; box-shadow: none; }
.udgi-page .related-section { margin: 32px 0 80px; }
.udgi-share { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 0; }
.udgi-share-label { color: #3a4662; font-size: .9rem; font-weight: 800; }
.udgi-share-links { display: grid; grid-template-columns: repeat(5, 44px); gap: 12px; }
.udgi-page .udgi-share-links a { display: grid; place-items: center; width: 44px; height: 44px; color: #405680; background: #fff; border: 1px solid #dce3ef; border-radius: 50%; box-shadow: 0 5px 16px rgba(39,52,84,.06); transition: background .2s, color .2s, transform .2s; }
.udgi-page .udgi-share-links a:hover { color: #fff; background: #a83a59; transform: translateY(-2px); }
.udgi-share-links svg { width: 22px; height: 22px; fill: currentColor; }
.udgi-page .related-header h2 { color: #29334e; font-size: clamp(2rem,3.5vw,3.5rem); font-weight: 900; letter-spacing: -.05em; }
.udgi-page .related-sub { color: #6c768b; }
.udgi-page .related-card { border: 1px solid #e3e7ef; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(39,52,84,.07); }
.udgi-page .related-card .related-caption { background: #fff; color: #29334e; font-weight: 800; }
.udgi-page .udgi-faq { background: #fff; border: 1px solid #e3e8f0; border-radius: 16px; padding: clamp(26px,5vw,58px); margin: 70px 0 20px; }
.udgi-page .udgi-faq details { border-color: #e3e8f0; }
.udgi-page .udgi-faq summary { color: #313d5b; font-weight: 800; }
.udgi-page .udgi-how-to { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,.8fr); gap: clamp(25px,4vw,60px); align-items: start; margin: 70px 0; padding: clamp(28px,5vw,60px); background: #eef2f9; border: 1px solid #dfe6f1; border-radius: 16px; }
.udgi-page .udgi-how-to h2 { font-size: clamp(2rem,3.5vw,3.8rem); letter-spacing: -.055em; font-weight: 900; line-height: 1.1; margin: 0 0 24px; }
.udgi-page .udgi-how-to h3 { font-size: 1.2rem; font-weight: 900; margin: 0 0 14px; }
.udgi-page .udgi-how-to p,.udgi-page .udgi-how-to li { color: #4e5a74; line-height: 1.75; }
.udgi-page .udgi-controls { background: #fff; padding: 26px; border-radius: 12px; border: 1px solid #dfe6f1; }
.udgi-page .udgi-controls ul { margin: 0; padding-left: 20px; }
.udgi-page .udgi-controls li + li { margin-top: 12px; }
.udgi-page .udgi-story,.udgi-page .udgi-features,.udgi-page .udgi-how-to,.udgi-page .udgi-faq { scroll-margin-top: 110px; }
.udgi-page .site-footer { background: #26334f; border: 0; }
.udgi-page .footer-section h3 { margin: 0 0 12px; font-family: var(--display); font-size: .95rem; font-weight: 600; letter-spacing: .5px; border: 0; padding: 0; color: #fff; }
.udgi-page .footer-section a:hover { color: #fff; }
.udgi-page .site-footer strong { color: #fff; }
.udgi-page .site-footer p,.udgi-page .site-footer a { color: #c3cddd; }
@media (max-width: 900px) {
  .udgi-page .udgi-how-to { grid-template-columns: 1fr; }
  .udgi-page .udgi-hero { grid-template-columns: 1fr; min-height: 0; padding: 60px 0; gap: 36px; }
  .udgi-page .udgi-hero-art { max-width: 720px; }
  .udgi-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .udgi-page .udgi-feature-grid { grid-template-columns: repeat(2,1fr); }
  .udgi-page .header-nav { gap: 12px; }
}
@media (max-width: 620px) {
  .udgi-page header.site-header { flex-wrap: wrap; }
  .udgi-page .header-nav { width: 100%; justify-content: space-between; gap: 7px; }
  .udgi-page .header-nav a { font-size: .65rem; }
  .udgi-ribbon { font-size: .53rem; }
  .udgi-page header.site-header { padding: 12px 17px; }
  .udgi-page .logo { gap: 9px; font-size: .85rem; letter-spacing: -.04em; }
  .udgi-page .logo-portrait { width: 46px; height: 46px; flex-basis: 46px; border-radius: 10px; }
  .udgi-page .header-nav { gap: 10px; flex-wrap: wrap; justify-content: end; }
  .udgi-page .header-nav a { font-size: .68rem; }
  .udgi-page .wrapper { padding: 0 17px 50px; }
  .udgi-page .udgi-hero h1 { font-size: clamp(3.5rem,15vw,5.3rem); }
  .udgi-page .udgi-hero::after { display: none; }
  .udgi-section-heading { display: block; }
  .udgi-section-heading > p:last-child { margin-top: 15px; }
  .udgi-gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .udgi-page .udgi-feature-grid { grid-template-columns: 1fr; }
  .udgi-page .udgi-player { margin: 45px 0; }
  .udgi-page .udgi-player { margin-bottom: 0; }
  .udgi-share { flex-direction: column; align-items: flex-start; gap: 12px; }
  .udgi-share-links { width: 100%; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; }
  .udgi-page .udgi-share-links a { width: 100%; }
  .udgi-page .udgi-player-body { min-height: 270px; }
  .udgi-game-stage { min-height: 220px; }
  .udgi-page .udgi-player-intro h2 { font-size: 1.8rem; }
}

:root{--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--serif:Georgia,"Times New Roman",serif;--display:Georgia,serif;--mono:"Courier New",monospace}.udgi-page .logo{font-family:Georgia,serif}