@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --bg: #070807;
  --panel: #111512;
  --panel-2: #18201a;
  --green: #5f9f21;
  --green-bright: #92d33f;
  --orange: #cc4a0c;
  --orange-bright: #f16b1b;
  --gold: #d4a34e;
  --gold-soft: #f2c66f;
  --gray: #c9ced0;
  --muted: #8e9992;
  --white: #f8f8f2;
  --red: #db2f2f;
  --blue: #2d5aa8;
  --shadow: 0 0 22px rgba(146, 211, 63, .14);
  --pixel: 'Press Start 2P', monospace;
  --body: 'VT323', monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(33, 67, 42, .35), transparent 35%),
    linear-gradient(180deg, #050605 0%, #0a0d0a 100%);
  color: var(--white);
  font-family: var(--body);
  font-size: 23px;
  min-height: 100vh;
  overflow-x: hidden;
}
body.scanlines::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.016), rgba(255,255,255,.016) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: screen;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link { position: fixed; left: -999px; top: 0; z-index: 10000; }
.skip-link:focus { left: 16px; top: 16px; background: var(--gold); color: #111; padding: 8px 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 7, 5, .94);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 86px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.brand img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(212,163,78,.25)); }
.brand-copy strong { display: block; font-family: var(--pixel); color: var(--green-bright); font-size: 13px; line-height: 1.5; }
.brand-copy span { display: block; color: var(--orange-bright); font-size: 18px; letter-spacing: .12em; }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: var(--gold-soft); border: 1px solid var(--gold); padding: 8px 10px; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1; }
.main-nav a {
  font-family: var(--pixel);
  font-size: 9px;
  padding: 11px 10px;
  color: var(--gray);
  border: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-soft); border-color: var(--gold); background: rgba(212,163,78,.08); box-shadow: 0 0 12px rgba(212,163,78,.12); }
.utility { display: flex; gap: 8px; }
.icon-btn { border: 1px solid #3f4c42; background: #0b100c; color: var(--gray); width: 38px; height: 38px; cursor: pointer; }
.icon-btn:hover { border-color: var(--green-bright); color: var(--green-bright); }

main { min-height: calc(100vh - 170px); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section.compact { padding: 42px 0; }
.section-title {
  margin: 0 0 14px;
  font-family: var(--pixel);
  font-size: clamp(18px, 2.2vw, 28px);
  color: var(--gold-soft);
  line-height: 1.45;
  text-transform: uppercase;
}
.section-kicker { color: var(--orange-bright); letter-spacing: .16em; text-transform: uppercase; font-size: 20px; }
.lead { color: var(--gray); font-size: 27px; max-width: 860px; }
.pixel-rule { height: 5px; background: repeating-linear-gradient(90deg, var(--gold) 0 16px, transparent 16px 24px); opacity: .55; margin: 22px 0 34px; }

.hero {
  min-height: 670px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
  background: #000;
}
.hero-bg { position: absolute; inset: 0; background: url('../images/hero-banner.png') center/cover no-repeat; transform: scale(1.015); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.12) 45%, rgba(0,0,0,.55)); }
.hero-content { position: relative; z-index: 2; width: min(820px, calc(100% - 36px)); text-align: center; padding: 34px; background: rgba(0,0,0,.54); border: 3px solid var(--gold); box-shadow: 0 0 0 5px rgba(0,0,0,.7), 0 0 32px rgba(212,163,78,.22); }
.hero-logo { width: 150px; margin: 0 auto 18px; filter: drop-shadow(0 0 10px rgba(212,163,78,.25)); }
.hero h1 { font-family: var(--pixel); font-size: clamp(27px, 5vw, 56px); line-height: 1.35; margin: 0; color: var(--green-bright); text-shadow: 5px 5px 0 #16330d; }
.hero h1 span { display: block; color: var(--orange-bright); text-shadow: 5px 5px 0 #5a1f06; }
.hero p { margin: 14px 0 24px; color: var(--white); font-size: 27px; }
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 12px 18px;
  border: 2px solid var(--gold);
  background: #0b0d0b;
  color: var(--gold-soft);
  font-family: var(--pixel);
  font-size: 11px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #4b3518;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-1px,-1px); background: #151a15; }
.btn.primary { border-color: var(--green-bright); color: #0b100c; background: var(--green-bright); box-shadow: 4px 4px 0 #345d14; }
.btn.orange { border-color: var(--orange-bright); color: #fff; background: var(--orange); box-shadow: 4px 4px 0 #672305; }
.btn.small { min-height: 38px; font-size: 9px; padding: 9px 12px; }

.status-strip { margin-top: -32px; position: relative; z-index: 5; }
.status-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: #0b0e0c; border: 2px solid var(--gold); padding: 20px 24px; box-shadow: var(--shadow); }
.status-orb { width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.status-card strong { font-family: var(--pixel); font-size: 12px; color: var(--red); }
.status-card span { color: var(--gray); }
.platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.platform { border: 1px solid #39443b; padding: 6px 10px; color: var(--gray); font-size: 18px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card { background: linear-gradient(180deg, rgba(25,31,26,.95), rgba(10,13,10,.98)); border: 2px solid #354137; padding: 22px; box-shadow: 5px 5px 0 rgba(0,0,0,.45); }
.card:hover { border-color: var(--gold); }
.card h3 { font-family: var(--pixel); font-size: 14px; line-height: 1.5; color: var(--green-bright); margin: 0 0 12px; }
.card p { color: var(--gray); margin: 0 0 12px; }
.card .meta { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: 18px; }

.feature-card { min-height: 260px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.feature-card::before { content: ''; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle at 1px 1px, var(--gold) 1px, transparent 1px); background-size: 12px 12px; }
.feature-card > * { position: relative; }
.feature-icon { font-size: 48px; margin-bottom: auto; }

.video-card { padding: 0; overflow: hidden; }
.video-thumb { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg, #21321f, #090b09); border-bottom: 2px solid #354137; position: relative; }
.video-thumb::after { content: '▶'; width: 58px; height: 58px; display: grid; place-items: center; border: 3px solid var(--gold-soft); color: var(--gold-soft); border-radius: 50%; background: rgba(0,0,0,.6); padding-left: 4px; }
.video-body { padding: 18px; }

.page-hero { padding: 90px 0 60px; background: linear-gradient(180deg, rgba(30,58,34,.5), transparent); border-bottom: 2px solid #29362c; }
.page-hero h1 { font-family: var(--pixel); color: var(--green-bright); font-size: clamp(28px, 5vw, 50px); line-height: 1.4; margin: 0 0 14px; }
.page-hero p { color: var(--gray); max-width: 780px; font-size: 28px; }

.live-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 22px; }
.player-shell { aspect-ratio: 16/9; background: #000; border: 3px solid var(--gold); display: grid; place-items: center; position: relative; overflow: hidden; }
.player-shell::before { content: ''; position: absolute; inset: 0; background: url('../images/hero-banner.png') center/cover; opacity: .22; filter: blur(2px); }
.player-placeholder { position: relative; text-align: center; padding: 24px; }
.player-placeholder .big { font-family: var(--pixel); color: var(--orange-bright); font-size: 19px; line-height: 1.5; }
.chat-shell { min-height: 100%; border: 2px solid #354137; background: #0b0e0b; padding: 18px; }
.chat-message { border-left: 3px solid var(--green); padding: 8px 10px; margin: 12px 0; background: rgba(95,159,33,.07); }
.schedule-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; border-bottom: 1px solid #2b352d; padding: 16px 0; }
.schedule-row:last-child { border: 0; }
.schedule-row strong { color: var(--gold-soft); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.filter-btn { background: #0d110e; color: var(--gray); border: 1px solid #3b463d; padding: 8px 12px; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { color: var(--green-bright); border-color: var(--green-bright); }

.shelf { border: 5px solid #5c3418; background: linear-gradient(#2e190c, #150b06); padding: 24px 22px 12px; box-shadow: inset 0 -12px 0 #764722; }
.cartridge-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 18px; align-items: end; }
.cartridge { min-height: 176px; padding: 14px; background: #aaa59b; color: #161616; border: 5px solid #d5d0c5; border-radius: 8px 8px 2px 2px; box-shadow: inset 0 -14px 0 #777268, 5px 6px 0 rgba(0,0,0,.35); cursor: pointer; transition: transform .15s ease; }
.cartridge:hover { transform: translateY(-10px); }
.cart-label { min-height: 105px; border: 3px solid #111; background: linear-gradient(135deg, #153812, #cb4c0c); display: grid; place-items: center; padding: 8px; text-align: center; color: #fff; font-family: var(--pixel); font-size: 9px; line-height: 1.5; }
.cart-meta { margin-top: 10px; font-size: 18px; text-align: center; }

.console-card { text-align: center; }
.console-icon { height: 100px; display: grid; place-items: center; font-family: var(--pixel); color: var(--gold-soft); border: 2px dashed #48544a; margin-bottom: 16px; }

.profile-panel { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; }
.profile-panel img { width: 220px; margin: auto; }

.form-grid { display: grid; gap: 16px; }
label { display: grid; gap: 6px; color: var(--gold-soft); }
input, textarea, select { width: 100%; background: #090c0a; color: var(--white); border: 2px solid #39463c; padding: 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--green-bright); }
textarea { min-height: 150px; resize: vertical; }

.site-footer { border-top: 2px solid var(--gold); background: #050605; padding: 38px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 78px; }
.footer-links { display: grid; gap: 6px; color: var(--gray); }
.footer-links a:hover { color: var(--gold-soft); }
.copyright { text-align: center; color: #707872; border-top: 1px solid #252c26; margin-top: 28px; padding-top: 18px; font-size: 18px; }

.toast { position: fixed; right: 18px; bottom: 18px; z-index: 2000; background: #111811; color: var(--green-bright); border: 2px solid var(--green-bright); padding: 12px 16px; transform: translateY(150%); transition: transform .25s ease; }
.toast.show { transform: translateY(0); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 86px; background: #050705; border-bottom: 2px solid var(--gold); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .utility { margin-left: 0; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .live-layout, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 21px; }
  .header-inner { padding: 9px 14px; }
  .brand-copy { display: none; }
  .brand { min-width: auto; }
  .hero { min-height: 590px; }
  .hero-content { padding: 24px 16px; }
  .hero-logo { width: 110px; }
  .status-card { grid-template-columns: auto 1fr; }
  .platforms { grid-column: 1 / -1; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .profile-panel { grid-template-columns: 1fr; text-align: center; }
  .schedule-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { text-align: center; }
  .footer-brand { justify-content: center; }
}


/* RetroDad Gaming V6 logo refresh — original Phase 1 layout retained */
.brand { min-width: 260px; }
.brand img { width: 250px; height: auto; max-height: 64px; object-fit: contain; }
.hero-logo { width: min(620px, 90%); max-height: 210px; object-fit: contain; margin: 0 auto 14px; }
.footer-brand img { width: 230px; max-height: 88px; object-fit: contain; }
.profile-panel img { width: min(430px, 100%); max-height: 220px; object-fit: contain; }
@media (max-width: 980px) { .brand { min-width: auto; } .brand img { width: 205px; } }
@media (max-width: 680px) { .brand img { width: 165px; } .hero-logo { width: min(480px, 96%); } .footer-brand { flex-direction: column; } .footer-brand img { width: 210px; } }

/* V6 logo sizing correction — consistent new logo across every page */
.header-inner {
  max-width: 1480px;
  min-height: 112px;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 18px;
}
.brand {
  flex: 0 0 auto;
  min-width: 340px;
}
.brand img {
  display: block;
  width: 340px;
  height: auto;
  max-height: 94px;
  object-fit: contain;
}
.hero-content {
  width: min(980px, calc(100% - 36px));
}
.hero-logo {
  display: block;
  width: min(780px, 96%);
  max-height: none;
  margin: 0 auto 18px;
  object-fit: contain;
}
.footer-brand img {
  width: min(320px, 100%);
  max-height: 110px;
  object-fit: contain;
}
.profile-panel {
  grid-template-columns: minmax(300px, 430px) 1fr;
}
.profile-panel img {
  width: min(430px, 100%);
  max-height: none;
  object-fit: contain;
}

@media (max-width: 1220px) {
  .header-inner { flex-wrap: wrap; }
  .brand { min-width: 300px; }
  .brand img { width: 300px; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: center; padding-bottom: 4px; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 86px; flex-wrap: nowrap; }
  .brand { min-width: 0; max-width: calc(100% - 120px); }
  .brand img { width: min(250px, 100%); max-height: 78px; }
  .hero-logo { width: 100%; }
  .footer-brand img { width: min(280px, 100%); }
  .profile-panel { grid-template-columns: 1fr; }
  .profile-panel img { width: min(340px, 100%); }
}


/* Version 1.0.1 — homepage center logo refinement */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hero {
  min-height: 520px;
}
.hero-content {
  width: min(720px, calc(100% - 40px));
  padding: 22px 28px 20px;
  background: rgba(0, 0, 0, .86);
}
.hero-logo {
  width: min(360px, 72vw);
  height: auto;
  max-height: 300px;
  margin: 0 auto 8px;
  object-fit: contain;
}
.hero p {
  margin: 8px 0 16px;
  font-size: 24px;
}
.hero .blink {
  margin: 12px 0 0;
  font-size: 20px;
}
@media (max-width: 680px) {
  .hero { min-height: 470px; }
  .hero-content { width: calc(100% - 24px); padding: 18px 14px; }
  .hero-logo { width: min(285px, 82vw); max-height: 235px; }
  .hero p { font-size: 21px; }
}

/* Version 1.0.2 — compact homepage hero */
.hero {
  min-height: 400px;
}

.hero-content {
  width: min(660px, calc(100% - 40px));
  padding: 14px 24px 16px;
  transform: translateY(-12px);
}

.hero-logo {
  width: min(285px, 58vw);
  height: auto;
  max-height: 240px;
  margin: 0 auto 4px;
  object-fit: contain;
}

.hero p {
  margin: 5px 0 12px;
  font-size: 22px;
}

.hero .btn {
  min-height: 43px;
  padding: 10px 16px;
}

.hero .blink {
  margin: 8px 0 0;
  font-size: 18px;
}

@media (max-width: 680px) {
  .hero {
    min-height: 390px;
  }

  .hero-content {
    width: calc(100% - 24px);
    padding: 12px 12px 14px;
    transform: translateY(-6px);
  }

  .hero-logo {
    width: min(235px, 72vw);
    max-height: 205px;
  }

  .hero p {
    margin: 4px 0 10px;
    font-size: 19px;
  }

  .hero .btn {
    min-height: 40px;
    padding: 9px 12px;
  }

  .hero .blink {
    margin-top: 7px;
    font-size: 16px;
  }
}



/* Version 1.2.0 fixed homepage — purpose-built HTML/CSS, no mockup crops */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.hero-v12{height:405px;min-height:405px;border-bottom:2px solid var(--green-bright);overflow:hidden}
.hero-v12 .hero-bg{background-image:url('../images/hero-banner-v12-clean.png');background-size:cover;background-position:center top;transform:none}
.hero-v12 .hero-bg::after{background:linear-gradient(90deg,rgba(0,0,0,.08),transparent 24%,transparent 76%,rgba(0,0,0,.08))}
.hero-v12 .hero-content{width:min(760px,calc(100% - 24px));padding:4px 14px 12px;border:0;background:transparent;box-shadow:none;transform:translateY(-2px)}
.hero-v12 .hero-logo{width:min(500px,72vw);max-height:290px;margin:0 auto -2px;object-fit:cover;transform:scale(1.05);filter:drop-shadow(0 7px 0 rgba(0,0,0,.7)) drop-shadow(0 0 12px rgba(213,163,78,.22))}
.hero-tagline{display:flex;justify-content:center;align-items:center;gap:9px 14px;flex-wrap:wrap;margin:0 0 10px!important;font-family:var(--pixel);font-size:clamp(10px,1.05vw,15px)!important;text-transform:uppercase;text-shadow:2px 2px #000}
.hero-tagline span:nth-of-type(1){color:var(--green-bright)}.hero-tagline span:nth-of-type(2){color:var(--gold-soft)}.hero-tagline span:nth-of-type(3){color:var(--orange-bright)}.hero-tagline b{color:var(--gold)}
.hero-actions{gap:22px}.hero-actions .btn{min-width:220px;min-height:46px;padding:10px 16px}.hero-actions i{width:13px;height:13px;border-radius:50%;background:#df2626;box-shadow:0 0 8px #df2626}
.home-dashboard{padding:10px 7px 18px;background:#020302;border-bottom:2px solid #2b312c}.dashboard-grid{width:min(1690px,calc(100% - 10px));margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.dashboard-card{display:flex;flex-direction:column;min-width:0;padding:14px 16px 15px;background:#030403;border:3px solid #303632;border-radius:9px;box-shadow:inset 0 0 0 2px #090b09}.dashboard-card h2{margin:0 0 12px;font-family:var(--pixel);font-size:clamp(10px,1vw,15px);line-height:1.4;color:var(--green-bright);white-space:nowrap}.yellow{color:#ffc20b}.red{color:#f12626;text-shadow:0 0 7px rgba(241,38,38,.65)}
.media-thumb{position:relative;display:block;aspect-ratio:16/8.7;overflow:hidden;border:1px solid #6d8f1e;background:#111}.media-thumb img{width:100%;height:100%;object-fit:cover}.play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:56px;height:56px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:rgba(0,0,0,.65);font-size:21px;padding-left:3px}
.panel-lines{min-height:55px;margin:9px 0 11px;color:#f0f0ed;font-size:18px;line-height:1.3}.panel-button{align-self:center;margin-top:auto;min-width:180px;padding:8px 14px;border:2px solid #4f7904;background:#020402;color:var(--green-bright);font-family:var(--pixel);font-size:9px;text-align:center}.panel-button:hover{background:var(--green-bright);color:#071006}
.pixel-tv{position:relative;display:grid;place-items:center;min-height:205px;margin-bottom:10px}.pixel-tv:before{content:'';position:absolute;width:225px;height:170px;border:12px solid #5a554c;border-radius:13px;background:#1b1b18;box-shadow:inset 0 0 0 6px #2a2824,8px 8px 0 #111}.pixel-tv:after{content:'';position:absolute;top:19px;width:90px;height:42px;border-left:5px solid #777;border-right:5px solid #777;transform:rotate(0deg);clip-path:polygon(0 100%,15% 0,24% 0,50% 100%,76% 0,85% 0,100% 100%)}.tv-screen{position:relative;z-index:2;width:176px;height:125px;margin-top:20px;padding:17px 18px;background:#050705;border:5px solid #0d0d0b;border-radius:6px;display:grid;align-content:start;gap:2px;color:#eceee9;font-size:15px}.tv-screen strong{margin-bottom:10px;color:#ff2b21;font-family:var(--pixel);font-size:16px;text-align:center}.tv-screen em{color:var(--green-bright);font-style:normal}
.pixel-game{position:relative;aspect-ratio:16/8.7;overflow:hidden;border:1px solid #7c8842;background:#2765b5}.game-title{position:absolute;left:17px;top:15px;color:#e7d0a0;font-family:var(--pixel);font-size:clamp(11px,1.15vw,18px);line-height:1.35;text-shadow:3px 3px #5d3815}.ground{position:absolute;left:0;right:0;bottom:0;height:31px;background:repeating-linear-gradient(90deg,#9a581c 0 18px,#d08a32 18px 21px);border-top:6px solid #2a8d26}.pipe{position:absolute;right:19%;bottom:29px;width:42px;height:60px;background:#45a925;border:5px solid #176813}.pipe:before{content:'';position:absolute;left:-8px;top:-10px;width:48px;height:17px;background:#55bd2c;border:5px solid #176813}.cloud,.cloud:before,.cloud:after{position:absolute;background:#f1eee5}.cloud{width:36px;height:13px;top:38px;border-radius:12px}.cloud:before,.cloud:after{content:'';border-radius:50%}.cloud:before{width:18px;height:18px;left:7px;top:-7px}.cloud:after{width:13px;height:13px;right:4px;top:-4px}.c1{right:29%}.c2{right:10%;top:53px;transform:scale(.8)}.pixel-hero{position:absolute;left:28%;bottom:30px;width:20px;height:28px;background:#d54822;box-shadow:0 -10px 0 #e6b14d,10px 0 0 #d54822,-7px 8px 0 #2360aa,7px 12px 0 #2360aa}
.console-row{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;align-items:end;margin:20px 0 12px;text-align:center}.console-row>div{display:grid;gap:6px;justify-items:center}.console-row b{font-size:13px;font-weight:400}.console-row strong{font-size:21px;font-weight:400}.console{position:relative;display:block;width:61px;height:34px;border:4px solid #777;background:#c8c9c4;box-shadow:inset 0 -6px #9a9a95}.console:before{content:'';position:absolute;left:8px;top:8px;width:24px;height:5px;background:#333}.console:after{content:'';position:absolute;right:7px;top:7px;width:7px;height:7px;background:#d94135}.snes{border-radius:7px;background:#d6d3d0}.snes:after{background:#6943a8;box-shadow:-10px 0 #65439c}.gen{border-radius:50% 50% 12px 12px;background:#272727;border-color:#555}.gen:after{background:#be3030}.n64{width:55px;border-radius:18px 18px 8px 8px;background:#c9c9c9}.n64:before{left:21px;top:6px;width:10px;height:10px;border-radius:50%;background:#555}.n64:after{right:9px;background:#d33331;box-shadow:-10px 4px #38a952,-17px -1px #e1c12a}
.collection-total{margin:0 0 16px;padding-top:12px;border-top:1px dashed #353a35;color:#e9eae6;font-size:18px;text-align:center}
@media(max-width:1100px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-v12{height:395px;min-height:395px}}
@media(max-width:680px){.hero-v12{height:420px;min-height:420px}.hero-v12 .hero-bg{background-size:auto 420px}.hero-v12 .hero-content{width:calc(100% - 16px);padding:6px}.hero-v12 .hero-logo{width:min(345px,92vw);max-height:255px}.hero-tagline{font-size:9px!important;gap:5px 7px}.hero-actions{gap:8px}.hero-actions .btn{min-width:0;min-height:42px;padding:9px 10px;font-size:8px}.dashboard-grid{grid-template-columns:1fr;width:100%}.dashboard-card h2{font-size:12px}}

/* ==========================================================================
   RetroDad Gaming Version 1.2.0 — approved final hero
   The supplied artwork is used intact so the composition cannot drift.
   ========================================================================== */

.approved-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #020302;
  border-top: 2px solid #4d6d09;
  border-bottom: 2px solid #4d6d09;
}

.approved-hero-art {
  position: relative;
  width: 100%;
  margin: 0 auto;
  line-height: 0;
}

.approved-hero-art > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1825 / 424;
  object-fit: cover;
}

.approved-hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  top: 81.5%;
  height: 13.5%;
  border-radius: 8px;
  outline: none;
}

.approved-live {
  left: 34.1%;
  width: 12.9%;
}

.approved-game-room {
  left: 48.4%;
  width: 15.7%;
}

.approved-hotspot:hover,
.approved-hotspot:focus-visible {
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 18px rgba(211, 165, 37, .55);
}

.approved-hotspot:active {
  transform: translateY(2px);
}

@media (max-width: 760px) {
  .approved-hero {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .approved-hero::-webkit-scrollbar {
    display: none;
  }

  .approved-hero-art {
    width: 980px;
    max-width: none;
  }

  .approved-hero-art > img {
    min-width: 980px;
  }
}


/* ==========================================================================
   RetroDad Gaming Version 1.2.1 — interactive hero buttons
   ========================================================================== */

.approved-hotspot {
  display: none !important;
}

.hero-action-button {
  position: absolute;
  z-index: 5;
  top: 81.2%;
  height: 14.2%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 3px solid;
  border-radius: 8px;
  font-family: var(--pixel);
  font-size: clamp(10px, 1.05vw, 16px);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .72);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.13),
    0 4px 0 rgba(0,0,0,.75);
  transition:
    transform .12s ease,
    filter .12s ease,
    box-shadow .12s ease;
}

.hero-action-live {
  left: 34.1%;
  width: 12.9%;
  color: #f5fff0;
  border-color: #d4ad28;
  background:
    linear-gradient(#8bdd38 0 50%, #56a81d 50% 100%);
}

.hero-action-game {
  left: 48.4%;
  width: 15.7%;
  color: #fff8ef;
  border-color: #f0b13c;
  background:
    linear-gradient(#f16c2d 0 50%, #c93d13 50% 100%);
}

.hero-action-button:hover,
.hero-action-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.12);
  outline: none;
}

.hero-action-live:hover,
.hero-action-live:focus-visible {
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.18),
    0 5px 0 rgba(0,0,0,.75),
    0 0 18px rgba(118,220,49,.72);
}

.hero-action-game:hover,
.hero-action-game:focus-visible {
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.18),
    0 5px 0 rgba(0,0,0,.75),
    0 0 18px rgba(240,126,39,.72);
}

.hero-action-button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.1),
    0 1px 0 rgba(0,0,0,.8);
}

.hero-live-dot {
  width: clamp(9px, .8vw, 14px);
  height: clamp(9px, .8vw, 14px);
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e72f2f;
  box-shadow: 0 0 8px rgba(231,47,47,.8);
}

@media (max-width: 760px) {
  .hero-action-button {
    font-size: 12px;
  }
}


/* ==========================================================================
   RetroDad Gaming Version 1.2.2 — Members Portal
   ========================================================================== */

.member-nav-link {
  color: var(--green-bright) !important;
  border-color: rgba(146, 211, 63, .35) !important;
}

.member-body {
  background:
    radial-gradient(circle at 50% 0, rgba(54, 104, 39, .32), transparent 38%),
    linear-gradient(180deg, #050605, #090d09 55%, #050605);
}

.member-hero,
.member-dashboard-hero {
  border-bottom: 2px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.35), rgba(0,0,0,.84)),
    url('../images/hero-approved-v12.png') center/cover no-repeat;
}

.member-hero-inner,
.member-welcome {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.member-hero h1,
.member-dashboard-hero h1 {
  margin: 8px 0 12px;
  font-family: var(--pixel);
  color: var(--green-bright);
  font-size: clamp(25px, 4vw, 46px);
  line-height: 1.35;
  text-shadow: 4px 4px 0 #173c10;
}

.member-hero p,
.member-dashboard-hero p {
  max-width: 760px;
  color: var(--gray);
  font-size: 26px;
}

.member-crest,
.member-avatar {
  flex: 0 0 auto;
  width: 144px;
  height: 144px;
  display: grid;
  place-items: center;
  border: 5px solid var(--gold);
  background: linear-gradient(135deg, #162118, #080a08);
  color: var(--orange-bright);
  font-family: var(--pixel);
  font-size: 31px;
  box-shadow: 0 0 0 7px #0a0c0a, 0 0 30px rgba(212,163,78,.26);
  clip-path: polygon(50% 0, 94% 19%, 87% 76%, 50% 100%, 13% 76%, 6% 19%);
}

.member-avatar {
  width: 116px;
  height: 116px;
  font-size: 25px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
  align-items: start;
}

.auth-card {
  padding: 28px;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(22,29,23,.98), rgba(7,10,8,.99));
  box-shadow: 7px 7px 0 rgba(0,0,0,.48);
}

.auth-card h2 {
  margin: 0 0 24px;
  font-family: var(--pixel);
  font-size: 18px;
  color: var(--gold-soft);
}

.auth-info {
  position: sticky;
  top: 112px;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--gray);
}

.auth-switch a {
  color: var(--green-bright);
  text-decoration: underline;
}

.form-alert {
  margin-bottom: 20px;
  padding: 12px 15px;
  border: 2px solid;
  background: #0a0d0a;
}

.form-alert p {
  margin: 4px 0;
}

.form-alert.error {
  border-color: var(--red);
  color: #ffb4b4;
}

.form-alert.success {
  border-color: var(--green-bright);
  color: #caff9d;
}

.member-alert {
  margin-bottom: 25px;
}

.member-welcome {
  justify-content: flex-start;
}

.member-welcome .btn {
  margin-left: auto;
}

.member-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.member-stat {
  padding: 20px;
  border: 2px solid #334136;
  background: #0b0f0c;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0,0,0,.4);
}

.member-stat span,
.member-stat small {
  display: block;
}

.member-stat span {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--gold-soft);
}

.member-stat strong {
  display: block;
  margin: 12px 0 7px;
  font-family: var(--pixel);
  font-size: 30px;
  color: var(--green-bright);
}

.member-stat small {
  color: var(--muted);
}

.xp-panel {
  margin: 18px 0 26px;
  padding: 17px 20px;
  border: 2px solid #334136;
  background: #0b0f0c;
}

.xp-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--gold-soft);
}

.xp-panel strong {
  font-family: var(--pixel);
  font-size: 10px;
}

.xp-track {
  height: 14px;
  border: 2px solid #405044;
  background: #050705;
  overflow: hidden;
}

.xp-track span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--green-bright) 0 14px, var(--green) 14px 18px);
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.member-panel {
  min-height: 330px;
  padding: 22px;
  border: 2px solid #354137;
  background: linear-gradient(180deg, rgba(20,27,22,.98), rgba(8,11,9,.99));
  box-shadow: 6px 6px 0 rgba(0,0,0,.4);
}

.member-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 2px dashed #344037;
}

.member-panel-heading h2 {
  margin: 0;
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--green-bright);
}

.member-panel-heading a,
.member-panel-heading span {
  color: var(--gold-soft);
  font-size: 17px;
}

.member-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 10px;
  border-bottom: 1px solid #2c352e;
}

.member-list-item:hover {
  background: rgba(146,211,63,.06);
}

.member-list-item strong,
.member-list-item small {
  display: block;
}

.member-list-item strong {
  color: var(--white);
}

.member-list-item small {
  color: var(--muted);
}

.member-list-item > span {
  color: var(--orange-bright);
  font-family: var(--pixel);
  font-size: 12px;
}

.member-empty {
  min-height: 235px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
}

.member-empty > span {
  font-size: 46px;
}

.achievement-grid {
  display: grid;
  gap: 10px;
}

.achievement-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #344038;
  background: #0a0d0a;
}

.achievement-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  color: var(--gold-soft);
  font-size: 23px;
}

.achievement-card strong,
.achievement-card small,
.achievement-card em {
  display: block;
}

.achievement-card strong {
  color: var(--white);
}

.achievement-card small {
  color: var(--muted);
}

.achievement-card em {
  color: var(--green-bright);
  font-style: normal;
}

@media (max-width: 1000px) {
  .member-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .member-hero-inner,
  .member-welcome {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .member-welcome .btn { margin-left: 0; }
  .member-crest { width: 110px; height: 110px; font-size: 23px; }
  .auth-shell,
  .member-dashboard-grid { grid-template-columns: 1fr; }
  .auth-info { position: static; }
  .member-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-stat strong { font-size: 23px; }
}

@media (max-width: 430px) {
  .member-stat-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   RetroDad Gaming Version 1.4.0 — compact cinematic homepage
   A true cropped hero treatment so the artwork is visibly shorter on desktop.
   ========================================================================== */
@media (min-width: 761px) {
  .site-header .header-inner {
    min-height: 72px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .site-header .brand img {
    width: 225px;
    max-height: 58px;
  }

  .site-header .main-nav a {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .approved-hero {
    height: clamp(270px, 18.25vw, 315px);
    min-height: 270px;
  }

  .approved-hero-art {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .approved-hero-art > img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 51%;
  }

  .hero-action-button {
    top: 78.5%;
    height: 17%;
    min-height: 44px;
  }

  .home-dashboard {
    padding-top: 8px;
  }
}

@media (min-width: 1450px) {
  .approved-hero {
    height: 305px;
  }
}

/* ========================================================================== 
   RetroDad Gaming Version 1.4.1 — Premium floating hero logo
   Keeps the compact 1.4.0 hero while separating the logo and tagline.
   ========================================================================== */
.premium-hero-art {
  isolation: isolate;
}

.premium-hero-background {
  z-index: 0;
}

.premium-hero-logo {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 1.5%;
  width: clamp(250px, 21vw, 375px) !important;
  height: auto !important;
  max-height: 67%;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 5px 0 rgba(0,0,0,.78))
    drop-shadow(0 0 14px rgba(211,165,37,.24));
  animation: premium-logo-idle 4.8s ease-in-out infinite;
  pointer-events: none;
}

.premium-hero-tagline {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 19.5%;
  width: min(760px, 58vw);
  margin: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px 12px;
  flex-wrap: wrap;
  font-family: var(--pixel);
  font-size: clamp(8px, .88vw, 14px);
  line-height: 1.35;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
  pointer-events: none;
}

.premium-hero-tagline span:nth-of-type(1) { color: var(--green-bright); }
.premium-hero-tagline span:nth-of-type(2) { color: #eee9df; }
.premium-hero-tagline span:nth-of-type(3) { color: var(--orange-bright); }
.premium-hero-tagline b { color: var(--gold); font-weight: 400; }

@keyframes premium-logo-idle {
  0%, 100% { transform: translateX(-50%) translateY(0); filter: drop-shadow(0 5px 0 rgba(0,0,0,.78)) drop-shadow(0 0 12px rgba(211,165,37,.2)); }
  50% { transform: translateX(-50%) translateY(-2px); filter: drop-shadow(0 6px 0 rgba(0,0,0,.78)) drop-shadow(0 0 18px rgba(211,165,37,.32)); }
}

@media (min-width: 761px) {
  .premium-hero-art .hero-action-button {
    top: auto;
    bottom: 2.8%;
    height: 15.5%;
    min-height: 43px;
  }

  .premium-hero-art .hero-action-live {
    left: 34.1%;
    width: 12.9%;
  }

  .premium-hero-art .hero-action-game {
    left: 48.4%;
    width: 15.7%;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .premium-hero-logo { width: clamp(235px, 24vw, 300px) !important; }
  .premium-hero-tagline { bottom: 20%; width: 64vw; font-size: 8px; }
}

@media (max-width: 760px) {
  .premium-hero-logo {
    width: 300px !important;
    max-height: 65%;
    top: 2%;
  }

  .premium-hero-tagline {
    bottom: 20%;
    width: 600px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-hero-logo { animation: none; }
}


/* ========================================================================== 
   RetroDad Gaming Version 1.4.2 — Cinematic generated hero
   Uses the approved full-width artwork intact with transparent live hotspots.
   ========================================================================== */
.cinematic-hero-background {
  object-position: center center !important;
}

.premium-hero-art .premium-hero-logo,
.premium-hero-art .premium-hero-tagline {
  display: none !important;
}

@media (min-width: 761px) {
  .approved-hero {
    height: clamp(300px, 22.42vw, 374px);
    min-height: 300px;
  }

  .approved-hero-art,
  .approved-hero-art > .cinematic-hero-background {
    width: 100%;
    height: 100%;
  }

  .approved-hero-art > .cinematic-hero-background {
    object-fit: cover;
    object-position: center center !important;
  }

  .premium-hero-art .hero-action-button {
    top: 84.2%;
    bottom: auto;
    height: 13.2%;
    min-height: 38px;
    border-color: transparent;
    background: transparent;
    color: transparent;
    text-shadow: none;
    box-shadow: none;
  }

  .premium-hero-art .hero-action-live {
    left: 32.8%;
    width: 14.3%;
  }

  .premium-hero-art .hero-action-game {
    left: 48.4%;
    width: 16.1%;
  }

  .premium-hero-art .hero-action-button:hover,
  .premium-hero-art .hero-action-button:focus-visible {
    background: rgba(255,255,255,.07);
    box-shadow: 0 0 22px rgba(211,165,37,.62);
    filter: none;
    transform: translateY(-1px);
    outline: 2px solid rgba(255,224,112,.75);
    outline-offset: -2px;
  }

  .premium-hero-art .hero-action-button:active {
    transform: translateY(2px);
  }

  .premium-hero-art .hero-live-dot {
    display: none;
  }

  .home-dashboard {
    padding-top: 8px;
  }
}

@media (max-width: 760px) {
  .approved-hero-art {
    width: 980px;
    height: 224px;
  }

  .approved-hero-art > .cinematic-hero-background {
    width: 980px;
    height: 224px;
    min-width: 980px;
    object-fit: cover;
  }

  .premium-hero-art .hero-action-button {
    top: 84.2%;
    bottom: auto;
    height: 13.2%;
    min-height: 30px;
    border-color: transparent;
    background: transparent;
    color: transparent;
    box-shadow: none;
  }

  .premium-hero-art .hero-action-live { left: 32.8%; width: 14.3%; }
  .premium-hero-art .hero-action-game { left: 48.4%; width: 16.1%; }
  .premium-hero-art .hero-live-dot { display: none; }
}

/* ========================================================================== 
   RetroDad Gaming Version 2.0.0 — Cinematic Hero Fit
   Shows the approved cinematic artwork intact without cropping while keeping
   the compact desktop presentation. The existing page structure is unchanged.
   ========================================================================== */

@media (min-width: 761px) {
  .site-header .brand img {
    width: 182px;
  }

  .approved-hero {
    height: clamp(300px, 18.5vw, 342px);
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
      radial-gradient(circle at 50% 45%, rgba(73, 35, 68, .30), transparent 44%),
      #020302;
  }

  .approved-hero-art.premium-hero-art {
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 1640 / 374;
    flex: 0 0 auto;
    overflow: hidden;
  }

  .approved-hero-art > .cinematic-hero-background {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: contain;
    object-position: center center !important;
  }

  .premium-hero-art .hero-action-button {
    top: 84.1%;
    height: 13.1%;
  }

  .home-dashboard {
    padding-top: 8px;
  }
}

@media (max-width: 760px) {
  .approved-hero {
    overflow-x: auto;
    background: #020302;
  }

  .approved-hero-art.premium-hero-art {
    width: 980px;
    height: calc(980px * 374 / 1640);
    aspect-ratio: 1640 / 374;
  }

  .approved-hero-art > .cinematic-hero-background {
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: contain;
  }
}

/* ========================================================================== 
   RetroDad Gaming Version 2.1.0 — Integrated Wide Hero
   Uses the approved V2.0.0 artwork and controls unchanged. The hero now shares
   the dashboard content width and the cards tuck slightly beneath it.
   ========================================================================== */

@media (min-width: 761px) {
  .approved-hero {
    height: auto;
    min-height: 0;
    padding: 0 7px;
    overflow: visible;
    display: flex;
    justify-content: center;
    background: #020302;
  }

  .approved-hero-art.premium-hero-art {
    width: min(1690px, calc(100% - 10px)) !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 1640 / 374;
    flex: 0 1 auto;
    border: 2px solid rgba(118, 155, 24, .72);
    border-bottom-color: rgba(211, 165, 37, .62);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .58), 0 0 14px rgba(118, 155, 24, .10);
    overflow: hidden;
  }

  .approved-hero-art > .cinematic-hero-background {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .premium-hero-art .hero-action-button {
    top: 84.1%;
    height: 13.1%;
  }

  .home-dashboard {
    position: relative;
    z-index: 3;
    margin-top: -10px;
    padding-top: 0;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .approved-hero-art.premium-hero-art {
    width: calc(100% - 4px) !important;
  }
}

/* ========================================================================== 
   RetroDad Gaming Version 2.1.2 — Hero / Dashboard Breathing Room
   Keeps the approved V2.1.0 hero and dashboard layout intact, but restores a
   clear visual gap between the hero artwork and the four dashboard cards.
   ========================================================================== */

@media (min-width: 761px) {
  .home-dashboard {
    margin-top: 0 !important;
    padding-top: 32px !important;
  }
}

@media (max-width: 760px) {
  .home-dashboard {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }
}

/* ========================================================================== 
   RetroDad Gaming Version 2.1.3 — Clean Hero Edges
   Removes the two horizontal accent lines above and below the homepage hero
   while preserving the hero artwork, spacing, frame, cards, and navigation.
   ========================================================================== */

.approved-hero {
  border-top: 0 !important;
  border-bottom: 0 !important;
}


/* ========================================================================== 
   RetroDad Gaming Version 2.1.4 — Remove Remaining Hero Divider Lines
   Removes the homepage navigation divider and the hero's horizontal frame
   edges while preserving the left/right frame, spacing, artwork, and cards.
   ========================================================================== */

.home-page .site-header {
  border-bottom: 0 !important;
}

.home-page .approved-hero-art.premium-hero-art {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* =========================================================
   RetroDad Gaming V2.2.0 — Video navigation dropdown
   ========================================================= */
.main-nav .nav-dropdown { position: relative; }
.main-nav .nav-dropdown-trigger { display: flex; align-items: stretch; }
.main-nav .nav-dropdown-link {
  border-right: 0;
  padding-right: 5px;
}
.main-nav .nav-dropdown-toggle {
  width: 24px;
  padding: 0 5px 0 2px;
  border: 1px solid transparent;
  border-left: 0;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  font-size: 8px;
  line-height: 1;
}
.main-nav .nav-dropdown:hover .nav-dropdown-link,
.main-nav .nav-dropdown:focus-within .nav-dropdown-link,
.main-nav .nav-dropdown.active .nav-dropdown-link {
  color: var(--gold-soft);
  border-color: var(--gold);
  background: rgba(212,163,78,.08);
  box-shadow: 0 0 12px rgba(212,163,78,.12);
}
.main-nav .nav-dropdown:hover .nav-dropdown-toggle,
.main-nav .nav-dropdown:focus-within .nav-dropdown-toggle,
.main-nav .nav-dropdown.active .nav-dropdown-toggle {
  color: var(--gold-soft);
  border-color: var(--gold);
  background: rgba(212,163,78,.08);
}
.main-nav .nav-dropdown-toggle span { display: inline-block; transition: transform .18s ease; }
.main-nav .nav-dropdown:hover .nav-dropdown-toggle span,
.main-nav .nav-dropdown:focus-within .nav-dropdown-toggle span,
.main-nav .nav-dropdown.open .nav-dropdown-toggle span { transform: rotate(180deg); }
.main-nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  min-width: 225px;
  padding: 7px;
  background: #070b08;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 28px rgba(0,0,0,.7), 0 0 16px rgba(212,163,78,.15);
}
.main-nav .nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: #070b08;
  border-left: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  transform: rotate(45deg);
}
.main-nav .nav-dropdown:hover .nav-dropdown-menu,
.main-nav .nav-dropdown:focus-within .nav-dropdown-menu,
.main-nav .nav-dropdown.open .nav-dropdown-menu { display: grid; }
.main-nav .nav-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  white-space: nowrap;
  color: var(--gray);
  border: 1px solid transparent;
  box-shadow: none;
  background: transparent;
}
.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a:focus {
  color: var(--green-bright);
  border-color: #38533e;
  background: rgba(80,255,120,.06);
  box-shadow: none;
}
.video-page-hero { border-bottom: 1px solid rgba(212,163,78,.18); }
.video-gallery-section { padding-top: 48px; }
.video-thumb { position: relative; overflow: hidden; min-height: 190px; background: radial-gradient(circle at 50% 35%, #243428, #0a0f0b 68%); }
.youtube-thumb { background: radial-gradient(circle at 50% 35%, #522026, #110809 68%); }
.tiktok-thumb { background: radial-gradient(circle at 40% 30%, #153d40, #120b19 68%); }
.video-platform-badge { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 7px; background: rgba(0,0,0,.72); border: 1px solid var(--gold); color: var(--gold-soft); font-family: var(--pixel); font-size: 7px; }
.video-play-icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green-bright); font-size: 42px; text-shadow: 0 0 16px rgba(80,255,120,.35); }

@media (max-width: 980px) {
  .main-nav .nav-dropdown { width: 100%; }
  .main-nav .nav-dropdown-trigger { width: 100%; }
  .main-nav .nav-dropdown-link { flex: 1; text-align: center; border-right: 0; }
  .main-nav .nav-dropdown-toggle { width: 44px; border-left: 1px solid transparent; }
  .main-nav .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .main-nav .nav-dropdown.open .nav-dropdown-menu { display: grid; }
  .main-nav .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    border-width: 1px;
    box-shadow: none;
  }
  .main-nav .nav-dropdown-menu::before { display: none; }
  .main-nav .nav-dropdown-menu a { text-align: center; }
}


/* Version 4.2.4 — homepage live card repair */
.home-live-preview {
  text-decoration: none;
  cursor: pointer;
}
.home-live-screen {
  padding: 0;
  overflow: hidden;
  align-content: stretch;
  background: #050705;
}
.home-live-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.home-live-card .pixel-tv:hover .tv-screen,
.home-live-card .pixel-tv:focus-visible .tv-screen {
  box-shadow: 0 0 0 3px var(--green-bright), 0 0 16px rgba(151, 255, 37, .45);
}
.home-live-card .pixel-tv:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}


/* Version 4.2.5 — clear homepage live/offline status */
.home-live-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.home-live-heading-dot {
  color: #777;
  text-shadow: none;
}
.home-live-heading-dot.is-live {
  color: #ff3131;
  animation: home-live-pulse 1.25s infinite;
  text-shadow: 0 0 10px rgba(255,49,49,.9);
}
.home-live-heading-dot.is-offline { color: #777; }
.home-live-heading-status {
  margin-left: auto;
  padding: 4px 8px;
  border: 2px solid currentColor;
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .08em;
  font-family: var(--pixel-font, monospace);
  background: #101410;
}
.home-live-heading-status.is-live { color: #ff4b4b; }
.home-live-heading-status.is-offline { color: #a5aaa5; }
.home-live-screen { position: relative; }
.home-live-status-badge {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 3px 3px 0 rgba(0,0,0,.65);
  color: #fff;
  font-family: var(--pixel-font, monospace);
  font-size: .72rem;
  letter-spacing: .08em;
  line-height: 1;
  pointer-events: none;
}
.home-live-status-badge::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.home-live-status-badge.is-live {
  background: #d31212;
  color: #fff;
}
.home-live-status-badge.is-live::before { animation: home-live-pulse 1.25s infinite; }
.home-live-status-badge.is-offline {
  background: #363b36;
  color: #d7dbd7;
}
.home-live-card .panel-button.is-live {
  background: #d31212;
  border-color: #ff6a6a;
  color: #fff;
  box-shadow: 0 0 14px rgba(211,18,18,.35);
}
.home-live-card .panel-button.is-offline {
  background: #303630;
  border-color: #6a736a;
  color: #d9ded9;
}
@keyframes home-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}
@media (prefers-reduced-motion: reduce) {
  .home-live-heading-dot.is-live,
  .home-live-status-badge.is-live::before { animation: none; }
}


/* ==========================================================================\n   RetroDad Gaming v4.3.0 — pixel retro CRT homepage live card\n   ========================================================================== */
.home-live-card .retro-tv{
  display:block;
  position:relative;
  min-height:0;
  margin:2px auto 16px;
  padding:0 8px 13px;
  color:inherit;
  filter:drop-shadow(8px 10px 0 #090a08);
}
.home-live-card .retro-tv::before,
.home-live-card .retro-tv::after{content:none!important;display:none!important}
.retro-tv-cabinet{
  position:relative;
  width:100%;
  max-width:340px;
  margin:auto;
  padding:13px 14px 15px;
  border:4px solid #2a160c;
  border-radius:10px 10px 15px 15px;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 2px,rgba(0,0,0,.045) 2px 5px),
    linear-gradient(135deg,#8c4e21 0%,#5d2c12 48%,#3b1d0d 100%);
  box-shadow:
    inset 0 0 0 3px #b56b30,
    inset 0 -12px 0 rgba(34,13,5,.35),
    0 0 0 2px #120904;
}
.retro-tv-brand{
  margin:0 0 8px 10px;
  color:#e7c688;
  font-family:var(--pixel);
  font-size:8px;
  letter-spacing:.18em;
  text-shadow:2px 2px 0 #321508;
}
.retro-tv-face{
  display:grid;
  grid-template-columns:minmax(0,1fr) 62px;
  gap:10px;
  align-items:stretch;
  padding:10px;
  border:3px solid #151613;
  border-radius:8px;
  background:linear-gradient(145deg,#575b52,#282b26 58%,#171916);
  box-shadow:inset 0 0 0 3px #777c70,inset 0 -8px 0 #1b1d1a;
}
.retro-tv-bezel{
  position:relative;
  padding:8px;
  border:4px solid #0b0c0a;
  border-radius:18px;
  background:#11130f;
  box-shadow:inset 0 0 0 3px #33382f,0 2px 0 #777c70;
  overflow:hidden;
}
.home-live-card .retro-tv .tv-screen{
  position:relative;
  width:100%;
  height:auto;
  min-height:150px;
  margin:0;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:42% / 13%;
  background:
    radial-gradient(ellipse at center,#18231a 0%,#081008 68%,#010301 100%);
  box-shadow:
    inset 0 0 26px #000,
    inset 0 0 6px rgba(126,255,70,.35),
    0 0 9px rgba(130,255,61,.12);
  transform:translateZ(0);
}
.home-live-card .retro-tv .tv-screen::before{
  content:'';
  position:absolute;
  z-index:4;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(115deg,rgba(255,255,255,.16) 0 8%,transparent 18% 76%,rgba(255,255,255,.04) 86% 100%),
    repeating-linear-gradient(0deg,rgba(0,0,0,.18) 0 1px,transparent 1px 3px);
  mix-blend-mode:screen;
}
.home-live-card .retro-tv .tv-screen::after{
  content:'';
  position:absolute;
  z-index:4;
  inset:-15% -5%;
  border-radius:50%;
  pointer-events:none;
  box-shadow:inset 0 0 24px 14px rgba(0,0,0,.72);
}
.home-live-card .retro-tv .tv-screen iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform:scale(1.04);
  filter:saturate(.88) contrast(1.08) brightness(.82);
}
.retro-tv-controls{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  min-width:0;
  padding:4px 2px 2px;
}
.retro-tv-speaker{
  width:43px;
  height:67px;
  border:2px solid #171916;
  background:repeating-linear-gradient(0deg,#161815 0 3px,#70746a 3px 5px);
  box-shadow:inset 3px 0 #3b3e38,inset -3px 0 #1b1d1a;
}
.retro-tv-knobs{display:flex;flex-direction:column;gap:8px;align-items:center}
.retro-tv-knobs span{
  position:relative;
  width:29px;
  height:29px;
  border:3px solid #161814;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#a7aa9e,#55594f 55%,#242722 58%);
  box-shadow:2px 2px 0 #0c0d0b;
}
.retro-tv-knobs span::after{
  content:'';
  position:absolute;
  left:12px;
  top:3px;
  width:3px;
  height:9px;
  background:#171915;
  transform:rotate(20deg);
  transform-origin:50% 11px;
}
.retro-tv-power{
  display:flex;
  align-items:center;
  gap:4px;
  color:#c5c8bc;
  font-family:var(--pixel);
  font-size:5px;
  letter-spacing:.08em;
}
.retro-tv-power i{
  display:block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#e12620;
  box-shadow:0 0 7px rgba(255,38,31,.95);
}
.retro-tv-feet{
  display:flex;
  justify-content:space-between;
  width:min(270px,80%);
  margin:-1px auto 0;
}
.retro-tv-feet span{
  width:45px;
  height:13px;
  border:3px solid #130b07;
  border-top:0;
  background:#47220f;
  clip-path:polygon(8% 0,92% 0,100% 100%,0 100%);
}
.home-live-card .retro-tv:hover .retro-tv-cabinet,
.home-live-card .retro-tv:focus-visible .retro-tv-cabinet{
  filter:brightness(1.08);
  box-shadow:inset 0 0 0 3px #d08a42,inset 0 -12px 0 rgba(34,13,5,.35),0 0 0 2px #120904,0 0 18px rgba(146,255,60,.22);
}
.home-live-card .retro-tv:hover .tv-screen,
.home-live-card .retro-tv:focus-visible .tv-screen{
  box-shadow:inset 0 0 26px #000,inset 0 0 8px rgba(126,255,70,.5),0 0 14px rgba(130,255,61,.25);
}
@media(max-width:420px){
  .retro-tv-face{grid-template-columns:minmax(0,1fr) 50px;gap:7px;padding:7px}
  .home-live-card .retro-tv .tv-screen{min-height:135px}
  .retro-tv-speaker{width:35px;height:59px}
  .retro-tv-knobs span{width:25px;height:25px}
}

/* ==========================================================================\n   RetroDad Gaming v4.3.1 — wide RetroVision broadcast station\n   ========================================================================== */
.home-live-card-v431{grid-column:span 2;padding:14px 16px 16px;overflow:hidden}
.live-card-titlebar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.live-card-titlebar h2{margin:0!important;font-size:clamp(12px,1.25vw,18px)!important;letter-spacing:.05em}
.live-card-titlebar .home-live-heading-status{position:static;border:2px solid currentColor;padding:6px 10px;font-family:var(--pixel);font-size:8px;line-height:1;color:#d9ded9;background:#111}
.live-card-titlebar .home-live-heading-status.is-live{color:#fff;border-color:#ff4646;background:#b80f12;box-shadow:0 0 12px rgba(255,28,28,.35)}
.live-card-titlebar .home-live-heading-status.is-offline{color:#b8beb8;border-color:#5a625a;background:#242924}
.retro-broadcast-station{display:block;max-width:860px;width:100%;margin:0 auto 13px;text-decoration:none;color:inherit;filter:drop-shadow(8px 10px 0 #070807)}
.retro-broadcast-station::before,.retro-broadcast-station::after{content:none!important}
.broadcast-tv{position:relative;padding:8px;border:3px solid #221108;border-radius:11px;background:linear-gradient(180deg,#7c431e,#4b2511 65%,#2e160b);box-shadow:inset 0 0 0 3px #a8602d,inset 0 -8px 0 #35170a,0 0 0 2px #0d0704}
.broadcast-cabinet{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px;min-height:300px;padding:12px;border:4px solid #11130f;border-radius:8px;background:linear-gradient(145deg,#4f524b,#232621 62%,#121411);box-shadow:inset 0 0 0 3px #73776e,inset 0 -8px 0 #171916}
.broadcast-screen-wrap{display:flex;flex-direction:column;min-width:0;padding:10px 10px 6px;border:5px solid #080908;border-radius:36px;background:#11130f;box-shadow:inset 0 0 0 3px #3c4038,0 2px 0 #74786f}
.home-live-card-v431 .home-live-screen{position:relative;flex:1;width:100%;min-height:250px!important;overflow:hidden;border:0!important;border-radius:13% / 10%!important;background:radial-gradient(ellipse at center,#17291b,#071008 70%,#010201)!important;box-shadow:inset 0 0 38px #000,inset 0 0 8px rgba(100,255,65,.28)!important}
.home-live-card-v431 .home-live-screen::before{content:'';position:absolute;z-index:5;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.12),transparent 18% 78%,rgba(255,255,255,.035)),repeating-linear-gradient(0deg,rgba(0,0,0,.24) 0 1px,transparent 1px 3px);mix-blend-mode:screen}
.home-live-card-v431 .home-live-screen::after{content:'';position:absolute;z-index:5;inset:-12%;pointer-events:none;border-radius:40%;box-shadow:inset 0 0 35px 22px rgba(0,0,0,.7)}
.home-live-card-v431 .home-live-screen iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none;transform:scale(1.035);filter:saturate(.95) contrast(1.08) brightness(.88)}
.home-live-card-v431 .home-live-status-badge{z-index:7;top:13px;left:14px;right:auto;font-size:8px;padding:7px 10px}
.broadcast-brand{padding:7px 0 0;text-align:center;color:#beb7a7;font-family:var(--pixel);font-size:7px;letter-spacing:.18em;text-shadow:1px 1px 0 #000}
.broadcast-controls{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:6px 7px 3px;border:2px solid #10120f;background:linear-gradient(180deg,#343730,#171916);box-shadow:inset 0 0 0 2px #585c54}
.broadcast-control-label{margin:2px 0 3px;color:#c8c4b7;font-family:var(--pixel);font-size:7px;letter-spacing:.12em}
.broadcast-dial{position:relative;width:54px;height:54px;margin-bottom:7px;border:5px solid #10110f;border-radius:50%;background:radial-gradient(circle at 36% 31%,#9a9b91,#484b44 54%,#1b1d19 57%);box-shadow:0 2px 0 #080908,0 0 0 2px #65695f}
.broadcast-dial::after{content:'';position:absolute;left:24px;top:5px;width:5px;height:19px;background:#151612;transform:rotate(34deg);transform-origin:50% 22px}
.dial-two{width:47px;height:47px}.dial-two::after{left:21px;height:16px}
.broadcast-speaker{width:72px;height:58px;margin-top:3px;border:2px solid #10110f;background:repeating-linear-gradient(0deg,#11130f 0 4px,#62665d 4px 6px);box-shadow:inset 4px 0 #2d302b,inset -4px 0 #11130f}
.broadcast-power{display:flex;align-items:center;gap:6px;margin-top:auto;color:#bbbdb5;font-family:var(--pixel);font-size:6px}.broadcast-power i{width:9px;height:9px;border-radius:50%;background:#f42125;box-shadow:0 0 9px #ff2428}
.retro-tv-shelf{display:grid;grid-template-columns:1.15fr 1fr .8fr;gap:14px;align-items:end;margin:-2px 28px 0;padding:12px 17px 10px;border:4px solid #25150c;border-top-color:#7b4827;background:linear-gradient(#5b351e,#26150d);box-shadow:inset 0 3px 0 #9b6338,0 6px 0 #120a06}
.mini-nes{height:72px;padding:7px;border:3px solid #141512;background:linear-gradient(135deg,#d0cdc3,#8d8a82 55%,#383a36 56%);box-shadow:inset 0 0 0 2px #676a63}.mini-nes-top{height:20px;padding:4px 7px;color:#a11718;font:7px var(--pixel)}.mini-nes-slot{height:9px;margin:0 5px;background:#171815;border:2px solid #555850}.mini-nes-front{display:flex;align-items:center;gap:6px;margin-top:6px;font:5px var(--pixel);color:#6e1616}.mini-nes-front i{width:7px;height:7px;border-radius:50%;background:#e91b20;box-shadow:0 0 6px #f41b20}.mini-nes-front b{padding:4px;border:1px solid #242622;background:#aaa79f}
.mini-controller{display:flex;align-items:center;justify-content:space-around;height:53px;padding:5px 10px;border:4px solid #161714;border-radius:4px;background:#aaa79f;box-shadow:inset 0 0 0 3px #343631}.controller-dpad{font:31px/1 monospace;color:#111}.controller-select{font:5px var(--pixel);color:#6a1414}.mini-controller i{width:17px;height:17px;border:3px solid #7a1111;border-radius:50%;background:#e42525;box-shadow:1px 1px 0 #111}
.game-stack{display:flex;flex-direction:column;gap:5px}.game-stack span{padding:8px 5px;border:3px solid #161714;background:#252722;color:#f3b318;text-align:center;font:7px var(--pixel);box-shadow:inset 0 0 0 2px #55584f}
.retro-watch-button{max-width:430px!important;margin:5px auto 0!important;font-size:11px!important;box-shadow:0 0 15px rgba(225,21,21,.35)!important}.retro-watch-button span{margin-right:7px}
.retro-broadcast-station:hover .broadcast-tv,.retro-broadcast-station:focus-visible .broadcast-tv{filter:brightness(1.08);box-shadow:inset 0 0 0 3px #ca7b39,inset 0 -8px 0 #35170a,0 0 0 2px #0d0704,0 0 18px rgba(116,255,62,.2)}
@media(max-width:1100px){.home-live-card-v431{grid-column:span 2}}
@media(max-width:700px){.home-live-card-v431{grid-column:span 1}.broadcast-cabinet{grid-template-columns:minmax(0,1fr) 74px;min-height:225px;padding:8px}.home-live-card-v431 .home-live-screen{min-height:190px!important}.broadcast-dial{width:39px;height:39px;border-width:4px}.broadcast-dial::after{left:16px;top:4px;height:13px;transform-origin:50% 16px}.dial-two{width:35px;height:35px}.dial-two::after{left:14px}.broadcast-speaker{width:49px;height:43px}.retro-tv-shelf{grid-template-columns:1fr 1fr;margin:0 8px;padding:9px}.game-stack{display:none}}
@media(max-width:430px){.broadcast-cabinet{grid-template-columns:minmax(0,1fr) 60px;gap:6px}.broadcast-screen-wrap{padding:6px 6px 4px;border-width:4px}.home-live-card-v431 .home-live-screen{min-height:160px!important}.broadcast-controls{padding:4px}.broadcast-speaker{width:40px;height:38px}.retro-tv-shelf{display:none}}

/* ==========================================================================\n   RetroDad Gaming v4.4.0 — compact balanced RetroVision live card\n   ========================================================================== */
@media (min-width:1101px){
  .dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
  .home-live-card-v431{grid-column:span 1}
  .dashboard-grid>.dashboard-card:nth-child(4){grid-column:1/-1}
}
.home-live-card-v431{padding:12px 14px 13px;min-height:0}
.home-live-card-v431 .live-card-titlebar{margin-bottom:8px}
.home-live-card-v431 .live-card-titlebar .home-live-heading-status{padding:4px 7px;font-size:6px}
.home-live-card-v431 .retro-broadcast-station{width:min(100%,470px);margin:0 auto 8px;filter:drop-shadow(5px 6px 0 #070807)}
.home-live-card-v431 .broadcast-tv{padding:6px;border-width:2px;border-radius:8px}
.home-live-card-v431 .broadcast-cabinet{grid-template-columns:minmax(0,1fr) 72px;gap:7px;min-height:205px;padding:8px;border-width:3px}
.home-live-card-v431 .broadcast-screen-wrap{padding:7px 7px 4px;border-width:4px;border-radius:25px}
.home-live-card-v431 .home-live-screen{min-height:172px!important;border-radius:11% / 9%!important}
.home-live-card-v431 .home-live-status-badge{top:9px;left:10px;padding:5px 7px;font-size:6px}
.home-live-card-v431 .broadcast-brand{padding-top:4px;font-size:5px}
.home-live-card-v431 .broadcast-controls{padding:4px 4px 2px}
.home-live-card-v431 .broadcast-control-label{margin:1px 0 2px;font-size:5px}
.home-live-card-v431 .broadcast-dial{width:36px;height:36px;margin-bottom:4px;border-width:3px;box-shadow:0 1px 0 #080908,0 0 0 1px #65695f}
.home-live-card-v431 .broadcast-dial::after{left:15px;top:3px;width:3px;height:12px;transform-origin:50% 15px}
.home-live-card-v431 .dial-two{width:32px;height:32px}
.home-live-card-v431 .dial-two::after{left:13px;height:10px;transform-origin:50% 13px}
.home-live-card-v431 .broadcast-speaker{width:44px;height:34px;margin-top:1px;border-width:1px;background:repeating-linear-gradient(0deg,#11130f 0 3px,#62665d 3px 4px)}
.home-live-card-v431 .broadcast-power{gap:4px;font-size:4px}
.home-live-card-v431 .broadcast-power i{width:6px;height:6px}
.home-live-card-v431 .retro-tv-shelf{grid-template-columns:1.1fr .95fr .65fr;gap:8px;margin:-1px 18px 0;padding:7px 9px 6px;border-width:3px;box-shadow:inset 0 2px 0 #9b6338,0 4px 0 #120a06}
.home-live-card-v431 .mini-nes{height:45px;padding:4px;border-width:2px}
.home-live-card-v431 .mini-nes-top{height:12px;padding:2px 4px;font-size:5px}
.home-live-card-v431 .mini-nes-slot{height:6px;margin:0 3px;border-width:1px}
.home-live-card-v431 .mini-nes-front{gap:3px;margin-top:3px;font-size:3px}
.home-live-card-v431 .mini-nes-front i{width:5px;height:5px}
.home-live-card-v431 .mini-nes-front b{padding:2px}
.home-live-card-v431 .mini-controller{height:34px;padding:3px 6px;border-width:2px;box-shadow:inset 0 0 0 2px #343631}
.home-live-card-v431 .controller-dpad{font-size:21px}
.home-live-card-v431 .controller-select{font-size:3px}
.home-live-card-v431 .mini-controller i{width:11px;height:11px;border-width:2px}
.home-live-card-v431 .game-stack{gap:3px}
.home-live-card-v431 .game-stack span{padding:4px 3px;border-width:2px;font-size:4px}
.home-live-card-v431 .retro-watch-button{width:min(210px,75%)!important;margin:3px auto 0!important;padding:7px 10px!important;font-size:7px!important;min-height:0!important}
@media(max-width:1100px) and (min-width:701px){
  .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-live-card-v431{grid-column:span 1}
  .dashboard-grid>.dashboard-card:nth-child(4){grid-column:span 2}
}
@media(max-width:700px){
  .home-live-card-v431 .retro-broadcast-station{max-width:430px}
  .home-live-card-v431 .broadcast-cabinet{min-height:190px}
  .home-live-card-v431 .home-live-screen{min-height:160px!important}
}

/* ========================================================================
   RetroDad Gaming v4.5.0 — authentic pixel-art collection console icons
   ======================================================================== */
.home-page .console-row {
  gap: 10px;
  margin-top: 14px;
  align-items: start;
}
.home-page .console-row > div {
  min-width: 0;
  padding: 8px 3px 7px;
  border: 1px solid #242b25;
  background: linear-gradient(180deg, rgba(20,24,20,.72), rgba(4,6,4,.15));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.home-page .console-row > div:hover {
  transform: translateY(-3px);
  border-color: #567b15;
  background: linear-gradient(180deg, rgba(38,49,29,.72), rgba(4,6,4,.22));
}
.home-page .console-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 58px;
  margin: 0 auto 2px;
  filter: drop-shadow(3px 4px 0 rgba(0,0,0,.65));
}
.home-page .console-art img {
  display: block;
  width: 78px;
  max-width: 100%;
  height: 54px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: transform .16s ease, filter .16s ease;
}
.home-page .console-row > div:hover .console-art img {
  transform: scale(1.07);
  filter: brightness(1.13);
}
.home-page .console-row b {
  color: #c8cbc6;
  font-family: var(--pixel);
  font-size: 8px;
  line-height: 1.35;
}
.home-page .console-row strong {
  color: #f1f1ec;
  font-family: var(--pixel);
  font-size: 17px;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
}
@media (max-width: 460px) {
  .home-page .console-row { grid-template-columns: repeat(2, 1fr); }
  .home-page .console-art { height: 64px; }
  .home-page .console-art img { width: 88px; height: 60px; }
}

/* v4.5.1 authentic collection console artwork */
.home-page .console-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 8px;align-items:start;margin:14px 0 10px}
.home-page .console-row>div{min-width:0;padding:5px 2px;border:1px solid rgba(119,255,67,.12);background:rgba(0,0,0,.18)}
.home-page .console-art{height:54px;width:100%;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 5px 0 rgba(0,0,0,.32))}
.home-page .console-art img{width:84px;height:54px;max-width:100%;object-fit:cover;transform:scale(1.05);image-rendering:pixelated;image-rendering:crisp-edges;transition:transform .16s ease,filter .16s ease}
.home-page .console-row>div:hover .console-art img{transform:translateY(-3px) scale(1.06);filter:drop-shadow(0 0 5px rgba(119,255,67,.45))}
.home-page .console-row b{font-size:10px;line-height:1.15;min-height:22px;display:flex;align-items:center;justify-content:center}
.home-page .console-row strong{font-size:17px;line-height:1;color:#f4f4ed}
@media(max-width:700px){.home-page .console-row{grid-template-columns:repeat(2,minmax(0,1fr))}.home-page .console-art{height:62px}.home-page .console-art img{width:96px;height:62px}}


/* v4.5.2 genuine raster pixel-art console collection assets */
.home-page .console-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 10px}
.home-page .console-row>div{padding:8px 4px 9px;background:linear-gradient(180deg,rgba(24,28,23,.82),rgba(3,5,3,.32));border:1px solid rgba(117,255,62,.2);overflow:hidden}
.home-page .console-art{height:74px;margin-bottom:4px;filter:none}
.home-page .console-art img{width:118px;height:70px;object-fit:cover;transform:scale(1.05);image-rendering:pixelated;filter:drop-shadow(0 7px 2px rgba(0,0,0,.58));transform-origin:center bottom}
.home-page .console-row>div:hover .console-art img{transform:translateY(-3px) scale(1.07);filter:drop-shadow(0 0 9px rgba(119,255,67,.45)) drop-shadow(0 7px 2px rgba(0,0,0,.58))}
.home-page .console-row b{font-size:9px;min-height:20px;color:#d8ddd5}
.home-page .console-row strong{font-size:19px;color:#fff3b0}
@media(max-width:700px){.home-page .console-art{height:82px}.home-page .console-art img{width:132px;height:78px}}

/* RetroDad Gaming v4.6.1 — Phase 2 collection card rebuild */
.home-page .collection-showcase{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:10px;
  margin:14px 0 12px;
}
.home-page .collection-stat-card{
  position:relative;
  min-width:0;
  min-height:184px;
  padding:10px 6px 11px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  overflow:hidden;
  border:1px solid #39413b;
  border-radius:5px;
  background:
    linear-gradient(180deg,rgba(28,32,29,.94),rgba(4,6,4,.98)),
    repeating-linear-gradient(0deg,transparent 0 3px,rgba(119,255,67,.025) 3px 4px);
  box-shadow:inset 0 0 0 1px #0b0e0b,0 5px 0 rgba(0,0,0,.42);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.home-page .collection-stat-card::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.055),transparent 34%);
}
.home-page .collection-stat-card:hover{
  transform:translateY(-4px);
  border-color:#77ff43;
  box-shadow:inset 0 0 0 1px #101510,0 7px 0 rgba(0,0,0,.48),0 0 14px rgba(119,255,67,.2);
}
.home-page .collection-console-art{
  width:100%;
  height:104px;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.home-page .collection-console-art img{
  display:block;
  width:100%;
  height:100%;
  max-width:150px;
  object-fit:cover;transform:scale(1.05);
  image-rendering:auto;
  filter:drop-shadow(0 8px 4px rgba(0,0,0,.65));
  transition:transform .16s ease,filter .16s ease;
}
.home-page .collection-stat-card:hover .collection-console-art img{
  transform:translateY(-3px) scale(1.035);
  filter:drop-shadow(0 8px 4px rgba(0,0,0,.7)) drop-shadow(0 0 6px rgba(119,255,67,.2));
}
.home-page .collection-count{
  position:relative;
  z-index:1;
  margin:0 0 4px;
  color:#fff3b0;
  font-family:var(--pixel);
  font-size:clamp(17px,1.35vw,24px);
  line-height:1;
  font-weight:400;
  text-shadow:2px 2px 0 #191b17;
}
.home-page .collection-system{
  position:relative;
  z-index:1;
  min-height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#f0f3ec;
  font-family:var(--pixel);
  font-size:clamp(7px,.58vw,10px);
  line-height:1.35;
  text-align:center;
}
.home-page .collection-stat-card small{
  position:relative;
  z-index:1;
  color:#80dfff;
  font-family:var(--pixel);
  font-size:7px;
  letter-spacing:.6px;
}
@media(max-width:1280px){
  .home-page .collection-showcase{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-page .collection-stat-card{min-height:196px}
  .home-page .collection-console-art{height:116px}
}
@media(max-width:700px){
  .home-page .collection-showcase{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .home-page .collection-stat-card{min-height:188px;padding-top:8px}
  .home-page .collection-console-art{height:108px}
  .home-page .collection-console-art img{max-width:160px}
  .home-page .collection-count{font-size:20px}
  .home-page .collection-system{font-size:8px}
}


/* v4.6.2 — honest offline state for the homepage RetroVision card */
.home-live-offline-panel{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;overflow:hidden;text-align:center;color:#d8ffd0;background:radial-gradient(ellipse at center,#18321b 0%,#07120a 58%,#010301 100%);text-shadow:0 0 8px rgba(112,255,82,.75)}
.home-live-offline-panel .offline-static{position:absolute;inset:0;opacity:.18;background-image:repeating-radial-gradient(circle at 30% 40%,rgba(255,255,255,.42) 0 1px,transparent 1px 3px),repeating-linear-gradient(0deg,rgba(255,255,255,.08) 0 1px,transparent 1px 4px);animation:offline-static-shift .18s steps(2,end) infinite;pointer-events:none}
.home-live-offline-panel strong,.home-live-offline-panel small{position:relative;z-index:2;font-family:var(--font-pixel,monospace);letter-spacing:.08em}
.home-live-offline-panel strong{font-size:clamp(16px,2.2vw,26px);color:#fff}
.home-live-offline-panel small{font-size:clamp(6px,.8vw,9px);color:#8edb80}
@keyframes offline-static-shift{0%{transform:translate(0,0)}25%{transform:translate(-2px,1px)}50%{transform:translate(1px,-1px)}75%{transform:translate(2px,1px)}100%{transform:translate(0,0)}}
@media (prefers-reduced-motion:reduce){.home-live-offline-panel .offline-static{animation:none}}

.studio-announcement{background:#f6c400;color:#090909;text-align:center;padding:12px 20px;font-weight:900;letter-spacing:1px;border-bottom:4px solid #c22;box-shadow:0 4px 0 #000}


/* v7.0 Phase 3 stream schedule */
.stream-countdown{margin-top:16px;padding:18px;text-align:center;border:2px solid #f6c400;background:#070a07;box-shadow:5px 5px 0 #000}.stream-countdown small{display:block;color:#9ef5aa;letter-spacing:2px}.stream-countdown strong{display:block;color:#f6c400;font-size:clamp(26px,5vw,48px);margin-top:8px;text-shadow:3px 3px #8b1717}

/* Phase 4 Step 3: Video Vault CMS */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.video-vault-section{background:radial-gradient(circle at 50% 0,rgba(30,105,55,.12),transparent 45%),#090c09}
.video-vault-toolbar{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:18px;padding:14px;border:1px solid rgba(113,255,134,.24);background:rgba(0,0,0,.46);box-shadow:0 0 0 3px rgba(0,0,0,.45),inset 0 0 22px rgba(52,255,98,.04)}
.video-search-wrap{flex:1;max-width:620px}
.video-vault-search{width:100%;min-height:46px;padding:11px 14px;border:2px solid #4f6251;background:#050805;color:#efffe9;font:inherit;letter-spacing:.06em;outline:none;box-shadow:inset 0 0 0 2px #111}
.video-vault-search:focus{border-color:#78ff8b;box-shadow:0 0 0 3px rgba(120,255,139,.14),inset 0 0 0 2px #111}
.video-vault-count{font-weight:800;color:#ffe56c;white-space:nowrap;text-shadow:2px 2px 0 #000}
.video-vault-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:28px}
.video-vault-featured{margin-bottom:34px}
.video-featured-panel{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr);border:3px solid #ffda47;background:linear-gradient(145deg,#14170f,#080a07);box-shadow:0 0 0 5px #181105,0 16px 40px rgba(0,0,0,.45);overflow:hidden}
.video-featured-media-link{display:block;min-height:310px;background:#000}
.video-featured-media{height:100%;min-height:310px;position:relative;overflow:hidden;background:#000}
.video-featured-media img{width:100%;height:100%;object-fit:cover;display:block}
.video-featured-media:after,.video-vault-thumb:after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to bottom,rgba(255,255,255,.025) 0,rgba(255,255,255,.025) 1px,rgba(0,0,0,.06) 2px,rgba(0,0,0,.06) 4px)}
.video-featured-content{padding:34px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.video-featured-content h2{margin:.2em 0 .45em;font-size:clamp(1.55rem,3vw,2.65rem);color:#fff}
.video-featured-content p{margin:14px 0 24px;color:#cbd5c6}
.video-featured-badge{position:absolute;left:12px;top:12px;z-index:2;padding:7px 10px;background:#e92727;color:#fff;border:2px solid #fff;font-size:.72rem;font-weight:900;letter-spacing:.08em;box-shadow:3px 3px 0 #000}
.video-vault-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.video-vault-card{display:flex;flex-direction:column;overflow:hidden;padding:0;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.video-vault-card:hover{transform:translateY(-5px);border-color:#78ff8b;box-shadow:0 12px 30px rgba(0,0,0,.4),0 0 22px rgba(80,255,106,.12)}
.video-vault-thumb-link{display:block;background:#000}
.video-vault-thumb{position:relative;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#111,#020302)}
.video-vault-thumb img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .24s ease}
.video-vault-card:hover .video-vault-thumb img{transform:scale(1.035)}
.video-vault-card .video-body{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:20px}
.video-vault-card .video-body h3{margin:.4em 0 .5em}
.video-vault-card .video-body p{flex:1;color:#bfc9bb}
.video-vault-loading,.video-vault-empty{grid-column:1/-1;text-align:center;padding:54px 20px;border:2px dashed rgba(120,255,139,.28);background:rgba(0,0,0,.34);color:#d9f7d9}
.video-vault-empty .big{font-size:1.35rem;color:#ffe56c;margin-bottom:10px}
@media (max-width:900px){.video-vault-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.video-featured-panel{grid-template-columns:1fr}.video-featured-media-link,.video-featured-media{min-height:250px}}
@media (max-width:620px){.video-vault-toolbar{align-items:stretch;flex-direction:column}.video-vault-count{white-space:normal}.video-vault-grid{grid-template-columns:1fr}.video-featured-content{padding:24px}.video-featured-media-link,.video-featured-media{min-height:205px}.video-vault-filters{gap:7px}.video-vault-filters .filter-btn{font-size:.72rem;padding:8px 10px}}


/* ================================================================
   RDG Stable Game Room visual baseline — locked CRT/NES experience
   Merged without replacing modern homepage/video/CMS styling.
   ================================================================ */
/* RetroDad Gaming v2.4.0 — Wooden Shelf Game Room */
.shelf-room{background:radial-gradient(circle at 50% 0,rgba(112,58,20,.18),transparent 30%),#050606}
.shelf-hero{padding:40px 0 18px;background:linear-gradient(180deg,#080b12,#070708);border-bottom:3px solid #8c2d16}
.shelf-hero-inner{text-align:center}.shelf-title-wrap{display:flex;justify-content:center;align-items:center;gap:30px;max-width:930px;margin:auto;padding:18px 30px;background:linear-gradient(#4a2b15,#24150c);border:5px solid #16100a;outline:2px solid #b87825;box-shadow:0 8px 0 #000,inset 0 0 0 3px #6f421e}
.shelf-title-wrap h1{font-family:var(--pixel);font-size:clamp(32px,6vw,72px);margin:5px 0 0;color:#fff1b2;text-shadow:5px 5px 0 #111}.shelf-title-wrap .section-kicker{color:#ffe17a}.triforce-row{color:#f3c623;font-size:34px;text-shadow:3px 3px #7c4d00}.shelf-hero p{margin:22px 0 0;color:#d8d5cc;font-size:22px}
.cartridge-showcase{padding:28px 0 42px;background:linear-gradient(90deg,rgba(49,22,9,.28),transparent 22%,transparent 78%,rgba(49,22,9,.28)),#080909}
.wood-shelf{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr));gap:24px;align-items:end;padding:24px 28px 0;background:linear-gradient(180deg,rgba(0,0,0,.2),transparent),repeating-linear-gradient(90deg,#7a3d13 0 50px,#8a4818 50px 100px);border:4px solid #2b1308;border-bottom:24px solid #5e2d0f;box-shadow:0 14px 0 #1d0d05,0 20px 28px rgba(0,0,0,.55),inset 0 -7px 0 #ad6426;position:relative}
.wood-shelf:after{content:"";position:absolute;left:-10px;right:-10px;bottom:-30px;height:12px;background:#8a4617;border:3px solid #2a1208;box-shadow:0 5px 0 #160a04}
.shelf-game{text-align:center;transition:opacity .2s}.shelf-game h2{font-family:var(--pixel);font-size:11px;color:#ffd741;background:#090909;border:2px solid #6d4320;margin:10px 0 8px;padding:10px 5px;box-shadow:3px 3px 0 #000}.shelf-game.selected h2{color:#70ef5a;border-color:#70ef5a}
.nes-cart{position:relative;display:block;width:100%;aspect-ratio:.78;border:0;border-radius:10px 10px 3px 3px;background:linear-gradient(90deg,#777 0 26%,#909090 26% 89%,#777 89%);box-shadow:inset 0 0 0 4px #aaa,inset -5px 0 0 #5a5a5a,7px 8px 0 rgba(0,0,0,.55);cursor:pointer;transition:transform .18s ease,filter .18s ease;overflow:hidden}.nes-cart:hover,.nes-cart:focus-visible{transform:translateY(-18px) scale(1.025);filter:brightness(1.08);z-index:2;outline:3px solid #ffd52a;outline-offset:4px}.cart-ribs{position:absolute;left:9%;top:2%;bottom:5%;width:20%;background:repeating-linear-gradient(180deg,#505050 0 5px,#777 5px 9px);border-left:3px solid #4c4c4c;border-right:3px solid #aaa}.cart-label{position:absolute;left:34%;right:12%;top:9%;height:58%;padding:10% 5% 6%;display:flex;flex-direction:column;justify-content:center;align-items:center;border:3px solid rgba(0,0,0,.65);box-shadow:inset 0 0 0 2px rgba(255,255,255,.28);font-family:var(--pixel);line-height:1.25;text-shadow:2px 2px rgba(0,0,0,.55)}.cart-label b{font-size:clamp(6px,.7vw,10px)}.cart-label strong{font-size:clamp(11px,1.35vw,20px)}.cart-label small{font-size:clamp(5px,.55vw,8px);margin-top:10px}.label-zelda{background:linear-gradient(135deg,#cba846,#7f651c);color:#2b1606}.label-zelda strong{color:#d71913;text-shadow:1px 1px #fff}.label-zelda2{background:linear-gradient(#d0bd55,#6f9037);color:#162c65}.label-zelda2 strong{color:#1559b0;text-shadow:1px 1px #f2d34b}.label-mario1{background:linear-gradient(135deg,#111 0 55%,#176bc0 55%);color:#ff6b23}.label-mario1 strong{color:#ff5a1f}.label-mario2{background:linear-gradient(#36a2e0 0 58%,#65bd65 58%);color:#ffe02d}.label-mario2 strong{color:#ffdc20;text-shadow:2px 2px #143f99}.label-mario3{background:linear-gradient(135deg,#f0da19,#f6b71b);color:#1760b8}.label-mario3 strong{color:#165fbe;text-shadow:2px 2px #fff}.cart-arrow{position:absolute;left:58%;bottom:10%;font-size:22px;color:#595959;text-shadow:1px 1px #aaa}.cart-notch{position:absolute;bottom:0;width:12%;height:12%;background:#080909;z-index:3}.cart-notch.left{left:0}.cart-notch.right{right:0}
.game-dashboard{display:grid;grid-template-columns:.85fr 1.25fr .9fr;gap:18px;margin-top:42px}.panel-frame{background:linear-gradient(180deg,#10141a,#080a0d);border:3px solid #54595e;box-shadow:inset 0 0 0 2px #15191d,5px 6px 0 #000;padding:18px}.panel-title{font-family:var(--pixel);font-size:12px;color:#ffd742;margin-bottom:18px}.vertical-filters{display:grid;gap:8px;margin-top:14px}.vertical-filters .game-filter{text-align:left;width:100%;padding:12px 14px;background:#0c1117;border:2px solid #303a46;color:#e6e6e6;font-family:var(--pixel);font-size:8px}.vertical-filters .game-filter.active,.vertical-filters .game-filter:hover{border-color:#ffd52a;color:#ffd52a}.game-search input{width:100%;background:#05070a;border:2px solid #3c4653;color:#fff;padding:13px;font-family:var(--pixel);font-size:8px}.featured-shelf-content{display:grid;grid-template-columns:145px 1fr;gap:22px;align-items:center}.mini-cart{aspect-ratio:.78;background:linear-gradient(90deg,#666 0 28%,#8d8d8d 28%);border:4px solid #aaa;border-radius:8px;box-shadow:5px 6px #000;display:grid;place-items:center;padding-left:24%}.mini-cart span{display:grid;place-items:center;width:75%;height:55%;background:#b79533;border:3px solid #4c3307;color:#df1515;font-family:var(--pixel);font-size:10px;text-align:center}.featured-shelf-game h2{font-family:var(--pixel);font-size:18px;color:#fff;margin:0 0 12px}.featured-shelf-game p{font-size:20px;color:#d5d5d5}.featured-score{color:#ffd52a;margin:14px 0}.featured-score strong{color:#fff;margin-left:7px}.featured-play{width:100%;font-size:10px}.room-stats dl{margin:0}.room-stats dl div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #2a2f34}.room-stats dt{font-family:var(--pixel);font-size:8px;color:#ddd}.room-stats dd{margin:0;font-weight:800;color:#fff}.shelf-info{border-top:3px solid #7c2917}.game-empty{text-align:center;padding:30px;font-family:var(--pixel);color:#ffda31}
@media(max-width:1050px){.wood-shelf{grid-template-columns:repeat(3,1fr)}.game-dashboard{grid-template-columns:1fr 1fr}.room-stats{grid-column:1/-1}.shelf-title-wrap{gap:15px}}
@media(max-width:720px){.shelf-title-wrap{padding:15px}.triforce-row{display:none}.wood-shelf{grid-template-columns:repeat(2,1fr);padding:18px 16px 0}.game-dashboard{grid-template-columns:1fr}.room-stats{grid-column:auto}.featured-shelf-content{grid-template-columns:105px 1fr}.shelf-hero p{font-size:18px}.cart-label strong{font-size:13px}}
@media(max-width:460px){.wood-shelf{grid-template-columns:1fr}.nes-cart{max-width:260px;margin:auto}.featured-shelf-content{grid-template-columns:1fr}.mini-cart{width:150px;margin:auto}.featured-shelf-game{text-align:center}}

/* v2.4.1 — Uploaded classic box-art labels inside the pixel-retro cartridges */
.cart-label.cart-label-art{
  padding:0;
  overflow:hidden;
  background:#111;
  border:3px solid rgba(0,0,0,.82);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.25),0 0 0 1px #222;
}
.cart-label-art img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  filter:saturate(.96) contrast(1.05);
}
.cart-label-art::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,rgba(0,0,0,.035) 1px 3px);
  mix-blend-mode:overlay;
}
.mini-cart{
  overflow:hidden;
  position:relative;
}
.mini-cart img{
  width:69%;
  height:58%;
  margin-left:22%;
  object-fit:cover;
  object-position:center;
  border:3px solid #333;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.25);
  image-rendering:pixelated;
  image-rendering:crisp-edges;
}

/* v2.4.2 — Genuine low-resolution pixel-art cartridge labels */
.cart-label-art img,
.mini-cart img{
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  filter:saturate(1.08) contrast(1.08);
}


/* v2.4.3 — Featured cartridge now matches the shelf cartridge artwork */
.featured-shelf-content .mini-cart{
  position:relative;
  width:100%;
  aspect-ratio:.78;
  overflow:hidden;
  padding:0;
  margin:0;
  display:block;
  border:4px solid #aaa;
  border-radius:8px 8px 3px 3px;
  background:linear-gradient(90deg,#777 0 26%,#909090 26% 89%,#777 89%);
  box-shadow:inset -5px 0 0 #5a5a5a,5px 6px 0 #000;
}
.featured-shelf-content .mini-cart-ribs{
  position:absolute;
  left:8%;
  top:2%;
  bottom:5%;
  width:20%;
  background:repeating-linear-gradient(180deg,#505050 0 4px,#777 4px 8px);
  border-left:2px solid #4c4c4c;
  border-right:2px solid #aaa;
}
.featured-shelf-content .mini-cart-label{
  position:absolute;
  left:34%;
  right:12%;
  top:9%;
  height:58%;
  overflow:hidden;
  border:3px solid rgba(0,0,0,.82);
  background:#111;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.25),0 0 0 1px #222;
}
.featured-shelf-content .mini-cart-label img{
  width:100%;
  height:100%;
  margin:0;
  display:block;
  object-fit:cover;
  object-position:center;
  border:0;
  box-shadow:none;
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  filter:saturate(1.08) contrast(1.08);
}
.featured-shelf-content .mini-cart-arrow{
  position:absolute;
  left:58%;
  bottom:10%;
  color:#595959;
  font-size:16px;
  text-shadow:1px 1px #aaa;
}
.featured-shelf-content .mini-cart-notch{
  position:absolute;
  bottom:0;
  width:12%;
  height:12%;
  background:#080909;
  z-index:3;
}
.featured-shelf-content .mini-cart-notch.left{left:0}
.featured-shelf-content .mini-cart-notch.right{right:0}


/* v2.4.4 — Featured panel reuses the exact selected shelf cartridge */
.featured-cart-stage{
  width:145px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.featured-cart-stage .featured-cart-clone{
  width:145px;
  max-width:100%;
  margin:0;
  transform:none !important;
  cursor:default;
  pointer-events:none;
}
.featured-cart-stage .featured-cart-clone:hover{transform:none !important;}
@media(max-width:720px){.featured-cart-stage{width:105px}.featured-cart-stage .featured-cart-clone{width:105px}}
@media(max-width:460px){.featured-cart-stage{width:150px;margin:auto}.featured-cart-stage .featured-cart-clone{width:150px}}

/* v2.5.0 embedded NES player */
body.emulator-open{overflow:hidden}
.emulator-modal[hidden]{display:none}
.emulator-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:18px}
.emulator-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.88);backdrop-filter:blur(4px)}
.emulator-dialog{position:relative;width:min(1120px,96vw);height:min(850px,92vh);background:#07090b;border:2px solid #68727b;box-shadow:0 0 0 3px #151a1e,0 22px 80px rgba(0,0,0,.8);display:flex;flex-direction:column}
.emulator-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px;background:#11161a;border-bottom:2px solid #353d44}
.emulator-dialog-bar h2{margin:0;color:#ffd928;font-size:clamp(.9rem,2vw,1.2rem)}
.emulator-close{width:40px;height:36px;border:1px solid #794239;background:#321714;color:#fff;font-size:1.1rem;cursor:pointer}
.emulator-close:hover,.emulator-close:focus-visible{background:#a52a20}
.emulator-dialog iframe{display:block;width:100%;height:100%;border:0;background:#050607}
@media(max-width:700px){.emulator-modal{padding:5px}.emulator-dialog{width:100%;height:96vh}.emulator-dialog-bar{padding:8px 10px}}

/* v2.6.0 inline Game Room emulator */
.featured-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.featured-player-close{appearance:none;border:1px solid #8f3a2d;background:#321713;color:#ffd9d3;padding:8px 10px;font-family:var(--pixel);font-size:7px;cursor:pointer}
.featured-player-close:hover{border-color:#ef6a54;color:#fff}
.inline-emulator[hidden]{display:none}
.inline-emulator{width:100%;background:#050607;border:2px solid #394149;box-shadow:inset 0 0 0 2px #101419}
.inline-emulator iframe{display:block;width:100%;height:min(76vh,760px);min-height:560px;border:0;background:#050607}
.featured-shelf-game.is-playing{grid-column:1/-1;padding:14px}
.featured-shelf-game.is-playing .panel-title{margin-bottom:10px}
.game-finder[hidden],.room-stats[hidden]{display:none}
@media(max-width:800px){.inline-emulator iframe{height:72vh;min-height:500px}}
@media(max-width:520px){.featured-panel-title{align-items:flex-start;flex-direction:column}.inline-emulator iframe{height:68vh;min-height:460px}.featured-player-close{width:100%}}

/* RetroDad Gaming v2.7.0 - immersive Game Room */
.continue-playing{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px;border-color:#806016;background:linear-gradient(90deg,#16120a,#0b0d10 58%,#11160d)}
.continue-playing[hidden]{display:none}.continue-copy{display:grid;gap:5px}.continue-kicker{font-family:var(--pixel);font-size:9px;color:#ffd52a}.continue-copy strong{font-family:var(--pixel);font-size:15px;color:#fff}.continue-copy span:last-child{color:#aeb7bf;font-size:15px}.continue-button{min-width:190px}
.featured-meta-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.player-mode,.last-played{display:inline-flex;align-items:center;min-height:28px;padding:7px 9px;border:1px solid #3b4650;background:#090d11;color:#b9c4cc;font-family:var(--pixel);font-size:7px}.gamepad-connected .player-mode{border-color:#61d93c;color:#8df36e}
.cartridge-flight{position:fixed!important;z-index:9999!important;margin:0!important;pointer-events:none!important;transition:left .48s cubic-bezier(.2,.75,.2,1),top .48s cubic-bezier(.2,.75,.2,1),width .48s,height .48s,transform .48s,opacity .48s;transform:rotate(5deg) scale(1.04);filter:brightness(1.2);box-shadow:0 20px 45px #000!important}
.inline-emulator{position:relative;overflow:hidden;min-height:560px}.nes-boot{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#020303;color:#fff;text-align:center;transition:opacity .3s ease}.nes-boot[hidden]{display:none}.nes-boot.boot-complete{opacity:0}.boot-power,.boot-title{font-family:var(--pixel)}.boot-power{color:#ef352c;font-size:18px;letter-spacing:3px;margin-bottom:28px}.boot-title{color:#ffd52a;font-size:13px;max-width:80%;line-height:1.6}.boot-tip{font-family:var(--pixel);font-size:7px;color:#69737b;margin-top:24px}.boot-bars{display:flex;gap:5px;margin-bottom:26px}.boot-bars i{display:block;width:12px;height:30px;background:#ddd;animation:bootBar .75s steps(2,end) infinite}.boot-bars i:nth-child(2){animation-delay:.08s}.boot-bars i:nth-child(3){animation-delay:.16s}.boot-bars i:nth-child(4){animation-delay:.24s}.boot-bars i:nth-child(5){animation-delay:.32s}.boot-bars i:nth-child(6){animation-delay:.40s}.boot-bars i:nth-child(7){animation-delay:.48s}.boot-bars i:nth-child(8){animation-delay:.56s}@keyframes bootBar{0%,100%{height:10px;opacity:.35}50%{height:34px;opacity:1}}
.shelf-game.selected .nes-cart{transform:translateY(-14px);outline:3px solid #72ef49;outline-offset:4px;filter:brightness(1.08)}
@media(max-width:720px){.continue-playing{align-items:stretch;flex-direction:column}.continue-button{width:100%}.featured-meta-row{justify-content:center}.inline-emulator{min-height:500px}}

/* RetroDad Gaming v2.8.0 — 1980s Bedroom Game Room */
.bedroom-page{background:#08090a}.bedroom-intro{text-align:center;padding:52px 20px 34px;background:linear-gradient(#101318,#08090a)}.bedroom-intro h1{font-family:var(--pixel);font-size:clamp(25px,5vw,48px);color:#ffd52a;margin:12px 0}.bedroom-intro p{color:#c1c6c9;font-size:20px}.bedroom-section{padding-top:26px}.retro-bedroom{border:4px solid #2a1a14;box-shadow:0 20px 60px #000;background:#17100d;overflow:hidden}.room-wall{position:relative;min-height:850px;padding:38px 4% 0;background:linear-gradient(90deg,rgba(50,30,20,.1),rgba(255,255,255,.025),rgba(30,18,12,.12)),repeating-linear-gradient(90deg,#35251d 0 5px,#3c2a20 5px 10px);border-bottom:24px solid #4b2d18}.room-wall:after{content:"";position:absolute;left:0;right:0;bottom:0;height:150px;background:linear-gradient(165deg,#6c4325,#3d2416);clip-path:polygon(0 35%,100% 0,100% 100%,0 100%);z-index:0}.pixel-dust{position:absolute;inset:0;background-image:radial-gradient(#fff 1px,transparent 1px);background-size:83px 71px;opacity:.07;animation:dust 12s linear infinite}@keyframes dust{to{background-position:83px -71px}}.wall-poster{position:absolute;top:44px;width:145px;height:190px;padding:16px 10px;text-align:center;border:6px solid #17100d;box-shadow:8px 10px 0 rgba(0,0,0,.35);font-family:var(--pixel);z-index:2}.wall-poster span,.wall-poster small{display:block;font-size:7px;line-height:1.5}.wall-poster strong{display:block;font-size:55px;margin:22px 0}.poster-zelda{left:5%;background:#17451c;color:#ffd834;transform:rotate(-2deg)}.poster-mario{right:5%;background:#154479;color:#fff;transform:rotate(2deg)}.poster-mario strong{color:#ffd52a}.triforce-lamp{position:absolute;right:9%;top:280px;width:120px;height:115px;z-index:3}.triforce-lamp i{position:absolute;width:52px;height:45px;background:#ffd52a;clip-path:polygon(50% 0,100% 100%,0 100%);filter:drop-shadow(0 0 12px #ffcc22)}.triforce-lamp i:nth-child(1){left:34px}.triforce-lamp i:nth-child(2){top:43px;left:7px}.triforce-lamp i:nth-child(3){top:43px;right:7px}.triforce-lamp span{position:absolute;width:10px;height:55px;left:55px;top:85px;background:#382316}.digital-clock{position:absolute;left:8%;top:275px;padding:13px 16px;border:4px solid #111;background:#050505;color:#ff351f;font-family:var(--pixel);font-size:13px;box-shadow:0 0 18px rgba(255,40,20,.25);z-index:3}.tv-zone{position:relative;z-index:4;width:min(760px,78%);margin:38px auto 0;display:grid;justify-items:center}.crt-tv{width:min(680px,100%)}.crt-shell{padding:22px 24px 14px;border:9px solid #303136;border-radius:42px 42px 25px 25px;background:linear-gradient(135deg,#777,#393a3e 58%,#202126);box-shadow:inset 8px 8px #999,inset -8px -8px #17181b,15px 20px 0 rgba(0,0,0,.35)}.crt-screen-wrap{padding:14px;border:8px solid #17181b;border-radius:48% / 13%;background:#090a0b}.crt-screen{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:44% / 10%;background:#030605;box-shadow:inset 0 0 45px #000}.crt-screen iframe{display:none;width:100%;height:100%;border:0;background:#000}.crt-screen.playing iframe{display:block}.crt-screen.playing{animation:tvOn .45s ease-out}.crt-screen.booting{animation:flicker .14s steps(2) infinite}@keyframes tvOn{0%{transform:scaleY(.03);filter:brightness(5)}60%{transform:scaleY(1.04)}100%{transform:none}}@keyframes flicker{50%{filter:brightness(1.8)}}.tv-idle,.tv-boot{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#97ef7b;background:radial-gradient(circle,#0d2b17,#020503 65%);font-family:var(--pixel);z-index:1}.tv-idle[hidden],.tv-boot[hidden]{display:none!important}.tv-idle strong,.tv-boot strong{font-size:clamp(10px,2vw,18px);margin:20px 0}.tv-idle small,.tv-boot small{font-size:7px;color:#6f9472}.tv-logo{font-size:clamp(18px,4vw,36px);color:#ffd52a}.tv-boot>span{color:#ef382c}.boot-line{width:60%;height:7px;margin:25px;background:linear-gradient(90deg,#ef382c 70%,#222 70%)}.crt-glass{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,rgba(0,0,0,.06) 1px 4px),linear-gradient(115deg,rgba(255,255,255,.13),transparent 28%);z-index:5}.tv-controls{display:flex;align-items:center;gap:13px;padding:12px 22px 2px;color:#191a1d}.tv-controls i{width:22px;height:22px;border-radius:50%;background:#1c1d20;box-shadow:inset 2px 2px #45464a}.tv-controls b{margin-left:auto;width:10px;height:10px;border-radius:50%;background:#39110f}.tv-brand{font-family:var(--pixel);font-size:8px}.tv-stand{width:65%;height:30px;margin:auto;background:#25262a;clip-path:polygon(10% 0,90% 0,100% 100%,0 100%)}.nes-console{width:min(520px,82%);margin-top:16px;z-index:5;filter:drop-shadow(12px 14px 0 rgba(0,0,0,.35))}.nes-top{height:46px;padding:10px 20px;background:#ddd;border:5px solid #777;border-bottom:0;color:#d52e27}.nes-top span{font-weight:900;font-style:italic}.nes-top small{margin-left:8px;color:#333}.nes-slot{position:relative;height:70px;border:5px solid #777;background:linear-gradient(#333 0 48%,#111 48% 64%,#aaa 64%);text-align:center;color:#ccc;font-family:var(--pixel);font-size:7px;padding-top:45px}.inserted-cart{position:absolute;left:50%;bottom:35px;width:92px;height:112px;transform:translateX(-50%);transition:bottom .35s}.inserted-cart:empty{display:none}.inserted-cart .nes-cart{width:100%;height:100%;transform:none!important;pointer-events:none}.cart-loaded .inserted-cart{bottom:14px}.nes-front{display:flex;align-items:center;gap:12px;height:50px;padding:8px 18px;background:#bfc0c2;border:5px solid #777;border-top:0}.nes-front button{height:30px;border:3px solid #777;background:#ddd;font-family:var(--pixel);font-size:7px}.nes-front button i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#55201e;margin-right:5px}.nes-front button i.on{background:#ff2f26;box-shadow:0 0 10px #ff2f26}.controller-port{margin-left:auto;width:34px;height:24px;border:4px solid #555;background:#222;color:#aaa;text-align:center}.room-status-bar{position:relative;z-index:5;display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:24px 0}.room-eject{padding:8px 10px;border:1px solid #b34b3e;background:#381713;color:#fff;font-family:var(--pixel);font-size:7px}.bedroom-shelf{position:relative;z-index:5;margin:8px auto 0;max-width:980px}.bedroom-dashboard{display:grid;grid-template-columns:.75fr 1.4fr .75fr;gap:18px;margin-top:24px}.selected-game-content{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:20px}.selected-game-card h2{font-family:var(--pixel);color:#fff;font-size:16px;line-height:1.5}.selected-game-card p{color:#c6c9cc;font-size:18px}.featured-play{width:100%}.bedroom-shelf .shelf-game.selected .nes-cart{transform:translateY(-18px) scale(1.03)}
@media(max-width:1000px){.room-wall{min-height:820px}.wall-poster{transform:scale(.8)}.poster-zelda{left:1%}.poster-mario{right:1%}.bedroom-dashboard{grid-template-columns:1fr 1fr}.room-stats{grid-column:1/-1}.tv-zone{width:88%}}
@media(max-width:720px){.room-wall{min-height:760px;padding-left:2%;padding-right:2%}.wall-poster,.triforce-lamp,.digital-clock{display:none}.tv-zone{width:100%;margin-top:5px}.crt-shell{padding:12px;border-width:6px}.nes-console{width:90%}.bedroom-shelf{grid-template-columns:repeat(2,1fr)}.bedroom-dashboard{grid-template-columns:1fr}.room-stats{grid-column:auto}.selected-game-content{grid-template-columns:110px 1fr}.room-wall:after{height:100px}}
@media(max-width:470px){.bedroom-shelf{grid-template-columns:1fr}.selected-game-content{grid-template-columns:1fr;text-align:center}.featured-cart-stage{margin:auto}.room-status-bar{align-items:stretch;flex-direction:column}.room-eject{width:100%}.nes-front{gap:5px;padding:7px}.controller-port{margin-left:0}.tv-controls{padding-left:8px;padding-right:8px}}
@media(prefers-reduced-motion:reduce){.pixel-dust,.crt-screen.booting,.crt-screen.playing{animation:none!important}.cartridge-flight{transition:none!important}}

/* v2.8.1: ensure TV overlays truly disappear when JavaScript sets hidden */
.tv-idle[hidden],.tv-boot[hidden]{display:none!important}

/* v2.8.3 CRT live-canvas stacking patch */
.crt-screen{isolation:isolate;}
.crt-screen iframe[data-room-emulator]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;border:0!important;background:#000!important;z-index:20!important;visibility:hidden!important;opacity:0!important;display:block!important;}
.crt-screen.playing iframe[data-room-emulator]{visibility:visible!important;opacity:1!important;}
.crt-screen.playing .tv-idle,.crt-screen.playing .tv-boot{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
.crt-screen .crt-glass{z-index:30!important;pointer-events:none!important;}
.crt-screen .tv-idle,.crt-screen .tv-boot{z-index:40!important;}

/* v2.8.5: Scale the complete emulator iframe for CRT overscan.
   This preserves EmulatorJS controls and prevents its restart overlay from being distorted. */
.crt-screen.playing iframe[data-room-emulator]{
  width:108%!important;
  height:108%!important;
  inset:-4%!important;
  max-width:none!important;
  max-height:none!important;
  transform:none!important;
}

/* v2.8.6 direct cartridge launch */
.shelf-launch-hint{position:relative;z-index:6;margin:22px auto 4px;text-align:center;font-family:var(--pixel);font-size:10px;color:#ffd52a;letter-spacing:.04em;text-shadow:2px 2px #000}.bedroom-shelf .nes-cart{cursor:pointer}.bedroom-shelf .nes-cart:hover{filter:brightness(1.12)}

/* === RetroDad Gaming v2.8.7: Cinematic Game Room layout === */
.bedroom-intro{
  padding:16px 20px 10px;
}
.bedroom-intro .section-kicker{
  font-size:7px;
  margin-bottom:3px;
}
.bedroom-intro h1{
  font-size:clamp(20px,3.2vw,34px);
  margin:5px 0 4px;
  line-height:1.08;
}
.bedroom-intro p{
  font-size:13px;
  line-height:1.35;
  margin:0;
}
.bedroom-section{
  padding-top:10px;
}
.bedroom-section>.container{
  width:min(1180px,96%);
}
.continue-playing{
  min-height:42px;
  gap:12px;
  margin:0 0 10px;
  padding:7px 12px;
}
.continue-copy{
  grid-template-columns:auto 1fr;
  align-items:center;
  column-gap:10px;
  row-gap:1px;
}
.continue-kicker{
  grid-column:1 / -1;
  font-size:7px;
}
.continue-copy strong{
  font-size:11px;
}
.continue-copy span:last-child{
  font-size:11px;
}
.continue-button{
  min-width:150px;
  min-height:34px;
  padding:8px 12px;
  font-size:9px;
}
.retro-bedroom{
  margin-top:0;
}
.shelf-launch-hint{
  margin-top:5px;
}
@media (min-width:900px) and (min-height:760px){
  .room-wall{
    min-height:810px;
    padding-top:26px;
  }
  .tv-zone{
    margin-top:25px;
  }
  .room-status-bar{
    margin:14px 0;
  }
  .bedroom-shelf{
    margin-top:2px;
  }
}
@media(max-width:720px){
  .bedroom-intro{padding:14px 14px 9px}
  .bedroom-intro p{font-size:12px}
  .continue-playing{align-items:stretch;padding:9px}
  .continue-copy{grid-template-columns:1fr}
  .continue-kicker{grid-column:auto}
  .continue-button{width:100%}
}


/* === RetroDad Gaming v2.9.0: CRT Immersion Update ===
   Recesses the emulator image inside the tube, centers it lower, and adds
   authentic overscan, curved clipping, edge shading, glass bloom, and softer scanlines. */
.crt-screen{
  isolation:isolate;
  overflow:hidden;
  background:#010201;
  box-shadow:
    inset 0 0 56px 18px #000,
    inset 0 0 9px rgba(205,255,221,.10),
    0 0 0 2px rgba(255,255,255,.025);
}
.crt-picture{
  position:absolute;
  z-index:20;
  top:10px;
  right:12px;
  bottom:8px;
  left:12px;
  overflow:hidden;
  border-radius:42% / 11%;
  background:#000;
  transform:translateY(8px) scale(.985,.98);
  transform-origin:center center;
  box-shadow:
    inset 0 0 24px 10px rgba(0,0,0,.92),
    inset 0 0 4px rgba(190,255,210,.14),
    0 0 12px rgba(80,255,150,.04);
  clip-path:ellipse(72% 67% at 50% 50%);
}
.crt-screen iframe[data-room-emulator]{
  position:absolute!important;
  z-index:1!important;
  display:block!important;
  visibility:hidden!important;
  opacity:0!important;
  width:106%!important;
  height:106%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  top:-3%!important;
  right:auto!important;
  bottom:auto!important;
  left:-3%!important;
  border:0!important;
  background:#000!important;
  transform:none!important;
  transition:opacity .16s ease-out;
}
.crt-screen.playing .crt-picture iframe[data-room-emulator]{
  visibility:visible!important;
  opacity:1!important;
}
.crt-screen.playing .tv-idle,
.crt-screen.playing .tv-boot{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.crt-screen::before{
  content:"";
  position:absolute;
  z-index:27;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:
    radial-gradient(ellipse at center,transparent 55%,rgba(0,0,0,.20) 72%,rgba(0,0,0,.88) 100%);
  box-shadow:inset 0 0 22px 8px rgba(0,0,0,.75);
}
.crt-screen::after{
  content:"";
  position:absolute;
  z-index:28;
  inset:4% 5%;
  pointer-events:none;
  border-radius:44% / 12%;
  background:radial-gradient(ellipse at center,rgba(105,255,162,.025),transparent 66%);
  mix-blend-mode:screen;
}
.crt-screen .crt-glass{
  z-index:30!important;
  pointer-events:none!important;
  border-radius:inherit;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.016) 0 1px,rgba(0,0,0,.038) 1px 4px),
    linear-gradient(116deg,rgba(255,255,255,.095),transparent 24%,transparent 73%,rgba(140,220,255,.025));
  opacity:.78;
}
.crt-screen.playing{
  filter:saturate(.97) contrast(1.035);
}
@media(max-width:720px){
  .crt-picture{
    top:6px;
    right:7px;
    bottom:5px;
    left:7px;
    transform:translateY(5px) scale(.987,.982);
  }
}
@media(prefers-reduced-motion:reduce){
  .crt-screen iframe[data-room-emulator]{transition:none}
}


/* Phase 5 Step 3.2 — isolate homepage mini NES from full Game Room NES */
.home-live-card-v431 .mini-nes{height:45px;padding:4px;border:2px solid #141512;background:linear-gradient(135deg,#d0cdc3,#8d8a82 55%,#383a36 56%);box-shadow:inset 0 0 0 2px #676a63;filter:none}
.home-live-card-v431 .mini-nes-top{height:12px;padding:2px 4px;color:#a11718;font:5px var(--pixel);background:transparent;border:0}
.home-live-card-v431 .mini-nes-slot{position:static;height:6px;margin:0 3px;padding:0;border:1px solid #555850;background:#171815;color:transparent}
.home-live-card-v431 .mini-nes-front{display:flex;align-items:center;gap:3px;height:auto;margin-top:3px;padding:0;border:0;background:transparent;color:#6e1616;font:3px var(--pixel)}
.home-live-card-v431 .mini-nes-front i{display:block;width:5px;height:5px;margin:0;border:0;border-radius:50%;background:#e91b20;box-shadow:0 0 6px #f41b20}
.home-live-card-v431 .mini-nes-front b{display:block;margin:0;padding:2px;border:1px solid #242622;background:#aaa79f;color:#6e1616;font:inherit}
.home-live-card-v431 .retro-tv-shelf{position:relative;z-index:1;overflow:hidden}
.home-live-card-v431 .retro-watch-button{position:relative;z-index:2}


/* === Phase 5 · Game Room Step 4: Unlimited Dynamic Cartridge Shelves === */
.bedroom-shelves{
  position:relative;
  z-index:5;
  display:grid;
  gap:38px;
  margin:8px auto 0;
  max-width:980px;
}
.bedroom-shelves .bedroom-shelf{
  width:100%;
  margin:0 auto;
}
.bedroom-shelves .game-shelf-row + .game-shelf-row{
  margin-top:4px;
}
.bedroom-shelves .game-shelf-row::before{
  content:"SHELF " attr(data-shelf-row);
  position:absolute;
  top:-20px;
  right:8px;
  padding:4px 7px;
  border:2px solid #2b1308;
  background:#12100d;
  color:#a76b2b;
  font-family:var(--pixel);
  font-size:6px;
  letter-spacing:.08em;
  box-shadow:2px 2px 0 #000;
}
.bedroom-shelves .shelf-game{min-width:0}
.bedroom-shelves .shelf-game h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-label-placeholder{padding:8%!important;background:linear-gradient(145deg,#6f4b1a,#20170c)!important;color:#ffe06b!important}
.game-label-placeholder strong{font-size:clamp(7px,.8vw,12px)!important;line-height:1.35}
.game-label-placeholder small{font-size:6px!important;color:#fff!important;margin-top:8px!important}
@media(max-width:1050px){.bedroom-shelves{gap:34px}}
@media(max-width:720px){.bedroom-shelves{gap:30px}.bedroom-shelves .game-shelf-row::before{display:none}}

/* Phase 5 Game Room Step 5 — isolated per-game emulator display settings */
.crt-picture.aspect-4-3 iframe{width:88%;height:100%;margin-inline:auto;display:block}
.crt-picture.aspect-8-7 iframe{width:78%;height:100%;margin-inline:auto;display:block}
.crt-picture.aspect-16-9 iframe{width:100%;height:88%;margin-block:auto;display:block}
.crt-screen.crt-filter-disabled .crt-glass{opacity:.08!important;background:none!important}
.crt-screen.crt-filter-disabled::before,.crt-screen.crt-filter-disabled::after{opacity:0!important}

/* Phase 5 Step 6: dynamic console and cartridge skins. Scoped to the locked Game Room. */
.bedroom-page .nes-console{transition:width .28s ease,filter .28s ease,transform .28s ease}
.bedroom-page .nes-console .nes-top,.bedroom-page .nes-console .nes-slot,.bedroom-page .nes-console .nes-front{transition:background .28s ease,border-color .28s ease,border-radius .28s ease,color .28s ease}
.bedroom-page .nes-cart{transition:transform .22s ease,filter .22s ease,background .22s ease,border-radius .22s ease}

/* SNES: North American light-gray hardware and purple controls. */
.bedroom-page .console-skin-snes{width:min(545px,84%)}
.bedroom-page .console-skin-snes .nes-top{height:52px;background:linear-gradient(#e8e8e5,#bdbdb8);border-color:#77777d;border-radius:18px 18px 0 0;color:#5b4a87}
.bedroom-page .console-skin-snes .nes-top span{font-style:normal;letter-spacing:.04em}
.bedroom-page .console-skin-snes .nes-slot{height:62px;padding-top:38px;background:linear-gradient(#b9b9b5 0 45%,#77777d 45% 57%,#d4d4d0 57%);border-color:#77777d;color:#45434e}
.bedroom-page .console-skin-snes .nes-front{background:#d4d4d0;border-color:#77777d;border-radius:0 0 24px 24px}
.bedroom-page .console-skin-snes .nes-front button{border-color:#77777d;background:#aaa8b7;color:#342b4e;border-radius:12px}
.bedroom-page .console-skin-snes .controller-port{border-radius:50%;border-color:#6b6875;background:#d0cfcc;color:#51476c}
.bedroom-page .cart-skin-snes{height:190px;background:linear-gradient(90deg,#b8b8b5 0 14%,#ddd 14% 86%,#a6a6a3 86%);border-color:#77777d;border-radius:10px 10px 30px 30px}
.bedroom-page .cart-skin-snes .cart-ribs{background:repeating-linear-gradient(90deg,#8f8f8d 0 4px,#c9c9c6 4px 9px)}
.bedroom-page .cart-skin-snes .cart-arrow{color:#5c4a87}

/* Genesis: low black oval console and rounded black cartridge. */
.bedroom-page .console-skin-genesis{width:min(560px,86%);filter:drop-shadow(12px 14px 0 rgba(0,0,0,.42))}
.bedroom-page .console-skin-genesis .nes-top{height:58px;background:radial-gradient(ellipse at center,#3b3b3d 0 24%,#111 25% 62%,#252527 63%);border:6px solid #090909;border-radius:50% 50% 12px 12px;color:#fff;text-align:center}
.bedroom-page .console-skin-genesis .nes-top span{font-style:normal;font-weight:900}.bedroom-page .console-skin-genesis .nes-top small{color:#e72f2d}
.bedroom-page .console-skin-genesis .nes-slot{height:64px;background:linear-gradient(#171719,#050505 56%,#262628 57%);border-color:#080808;color:#d9d9d9}
.bedroom-page .console-skin-genesis .nes-front{background:#171719;border-color:#080808;border-radius:0 0 44px 44px;color:#eee}
.bedroom-page .console-skin-genesis .nes-front button{background:#242426;border-color:#050505;color:#eee;border-radius:50%}
.bedroom-page .console-skin-genesis .controller-port{border-color:#050505;background:#090909;color:#ddd;border-radius:8px}
.bedroom-page .cart-skin-genesis{height:176px;background:linear-gradient(90deg,#111 0 12%,#29292b 12% 88%,#080808 88%);border:5px solid #050505;border-radius:28px 28px 10px 10px}
.bedroom-page .cart-skin-genesis .cart-ribs{background:repeating-linear-gradient(90deg,#050505 0 5px,#2c2c2e 5px 10px)}
.bedroom-page .cart-skin-genesis .cart-arrow{color:#e72f2d}

/* Nintendo 64: charcoal curved console and compact gray Game Pak. */
.bedroom-page .console-skin-n64{width:min(550px,85%)}
.bedroom-page .console-skin-n64 .nes-top{height:55px;background:linear-gradient(145deg,#53555b,#202126 62%);border-color:#191a1d;border-radius:46px 46px 8px 8px;color:#f3f3f3;text-align:center}
.bedroom-page .console-skin-n64 .nes-top span{font-style:normal}.bedroom-page .console-skin-n64 .nes-top small{color:#6ee16c}
.bedroom-page .console-skin-n64 .nes-slot{height:60px;background:linear-gradient(#2c2d32,#111216 55%,#3e4046 56%);border-color:#191a1d;color:#c8c8c8}
.bedroom-page .console-skin-n64 .nes-front{background:#303238;border-color:#191a1d;border-radius:0 0 52px 52px}
.bedroom-page .console-skin-n64 .nes-front button{background:#44464d;border-color:#191a1d;color:#eee;border-radius:50%}
.bedroom-page .console-skin-n64 .controller-port{border-color:#15161a;background:#666970;color:#fff;border-radius:50%}
.bedroom-page .cart-skin-n64{height:170px;background:linear-gradient(90deg,#777 0 12%,#aaa 12% 88%,#666 88%);border-color:#4b4b4d;border-radius:18px 18px 8px 8px}
.bedroom-page .cart-skin-n64 .cart-ribs{height:18px;background:repeating-linear-gradient(90deg,#555 0 4px,#888 4px 9px)}
.bedroom-page .cart-skin-n64 .cart-arrow{color:#3b8f48}

/* Handheld systems become docked handheld hardware beneath the CRT. */
.bedroom-page .console-skin-gb,.bedroom-page .console-skin-gbc,.bedroom-page .console-skin-gba,.bedroom-page .console-skin-gamegear{width:min(430px,78%)}
.bedroom-page .console-skin-gb .nes-top,.bedroom-page .console-skin-gbc .nes-top,.bedroom-page .console-skin-gba .nes-top,.bedroom-page .console-skin-gamegear .nes-top{height:70px;border-radius:24px 24px 6px 6px;text-align:center;font-style:normal}
.bedroom-page .console-skin-gb .nes-slot,.bedroom-page .console-skin-gbc .nes-slot,.bedroom-page .console-skin-gba .nes-slot,.bedroom-page .console-skin-gamegear .nes-slot{height:55px;padding-top:32px}
.bedroom-page .console-skin-gb .nes-front,.bedroom-page .console-skin-gbc .nes-front,.bedroom-page .console-skin-gba .nes-front,.bedroom-page .console-skin-gamegear .nes-front{border-radius:0 0 34px 34px;justify-content:center}
.bedroom-page .console-skin-gb .nes-top{background:#d7d1bb;border-color:#76756f;color:#243e74}.bedroom-page .console-skin-gb .nes-slot,.bedroom-page .console-skin-gb .nes-front{background:#c8c2ae;border-color:#76756f}
.bedroom-page .console-skin-gbc .nes-top{background:linear-gradient(135deg,rgba(111,48,150,.9),rgba(74,27,110,.9));border-color:#39204f;color:#fff}.bedroom-page .console-skin-gbc .nes-slot,.bedroom-page .console-skin-gbc .nes-front{background:#6e3a91;border-color:#39204f}
.bedroom-page .console-skin-gba .nes-top{background:linear-gradient(#7055aa,#443476);border-color:#302250;color:#fff}.bedroom-page .console-skin-gba .nes-slot,.bedroom-page .console-skin-gba .nes-front{background:#5a448c;border-color:#302250}
.bedroom-page .console-skin-gamegear .nes-top{background:#16171a;border-color:#050506;color:#fff}.bedroom-page .console-skin-gamegear .nes-top small{color:#ef342c}.bedroom-page .console-skin-gamegear .nes-slot,.bedroom-page .console-skin-gamegear .nes-front{background:#101114;border-color:#050506;color:#ddd}
.bedroom-page .cart-skin-gb,.bedroom-page .cart-skin-gbc{height:150px;border-radius:10px;background:linear-gradient(90deg,#aaa 0 12%,#d2d2cf 12% 88%,#999 88%);border-color:#676767}
.bedroom-page .cart-skin-gbc{background:linear-gradient(90deg,#3d2452 0 12%,#79509a 12% 88%,#2f183f 88%);border-color:#2d173d}
.bedroom-page .cart-skin-gba{height:132px;border-radius:18px 18px 8px 8px;background:linear-gradient(90deg,#444 0 10%,#6d6d70 10% 90%,#333 90%);border-color:#242426}
.bedroom-page .cart-skin-gamegear{height:145px;border-radius:8px;background:linear-gradient(90deg,#0c0c0e 0 10%,#26262a 10% 90%,#050506 90%);border-color:#050506}

/* Inserted cartridges retain their system silhouette. */
.bedroom-page .inserted-cart .cart-skin-snes{height:100%}.bedroom-page .inserted-cart .cart-skin-genesis{height:90%;border-radius:18px 18px 7px 7px}.bedroom-page .inserted-cart .cart-skin-n64{height:88%}.bedroom-page .inserted-cart .cart-skin-gb,.bedroom-page .inserted-cart .cart-skin-gbc,.bedroom-page .inserted-cart .cart-skin-gba,.bedroom-page .inserted-cart .cart-skin-gamegear{height:82%}

@media(max-width:720px){
 .bedroom-page .console-skin-snes,.bedroom-page .console-skin-genesis,.bedroom-page .console-skin-n64{width:94%}
 .bedroom-page .console-skin-gb,.bedroom-page .console-skin-gbc,.bedroom-page .console-skin-gba,.bedroom-page .console-skin-gamegear{width:82%}
}

/* Phase 5 Step 7: cartridge template rendering engine */
.bedroom-page .cartridge-template-cart{
  position:relative;background:transparent!important;border:0!important;box-shadow:none!important;
  overflow:visible;padding:0;width:142px;height:184px;display:block;
}
.bedroom-page .cartridge-template-image{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.05);image-rendering:pixelated;
  filter:drop-shadow(7px 8px 0 rgba(0,0,0,.38));pointer-events:none;
}
.bedroom-page .cartridge-template-cart .template-label{
  position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;overflow:hidden;
  background:#111;color:#fff;text-align:center;
}
.bedroom-page .cartridge-template-cart .template-label img{width:100%;height:100%;object-fit:cover;image-rendering:auto}
.bedroom-page .cartridge-template-cart .template-label strong{font-size:8px;line-height:1.15;padding:4px}
.bedroom-page .cartridge-template-cart .template-label small{display:none}
.bedroom-page .cartridge-template-cart .cart-arrow{position:absolute;z-index:3;left:50%;bottom:3px;transform:translateX(-50%)}
.bedroom-page .cart-skin-snes.cartridge-template-cart{width:150px;height:122px}
.bedroom-page .cart-skin-snes .template-label{left:28%;top:9%;width:47%;height:34%}
.bedroom-page .cart-skin-genesis.cartridge-template-cart{width:154px;height:116px}
.bedroom-page .cart-skin-genesis .template-label{left:29%;top:11%;width:57%;height:69%}
.bedroom-page .cart-skin-n64.cartridge-template-cart{width:150px;height:118px}
.bedroom-page .cart-skin-n64 .template-label{left:25%;top:18%;width:50%;height:53%;border-radius:3px}
.bedroom-page .cart-skin-gb.cartridge-template-cart,.bedroom-page .cart-skin-gbc.cartridge-template-cart{width:118px;height:150px}
.bedroom-page .cart-skin-gb .template-label{left:22%;top:31%;width:57%;height:43%}
.bedroom-page .cart-skin-gbc .template-label{left:20%;top:34%;width:60%;height:45%}
.bedroom-page .cart-skin-gba.cartridge-template-cart{width:154px;height:100px}
.bedroom-page .cart-skin-gba .template-label{left:20%;top:33%;width:60%;height:43%}
.bedroom-page .cart-skin-gamegear.cartridge-template-cart{width:126px;height:132px}
.bedroom-page .cart-skin-gamegear .template-label{left:15%;top:23%;width:70%;height:54%}
.bedroom-page .inserted-cart .cartridge-template-cart{width:86px!important;height:108px!important}
.bedroom-page .inserted-cart .cartridge-template-image{filter:none}
@media(max-width:700px){
 .bedroom-page .cartridge-template-cart{transform:scale(.88);transform-origin:center bottom}
}

/* Phase 5 Step 7.1: normalize cartridge shelf scale across systems */
.bedroom-page .bedroom-shelf .shelf-game{
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
}
.bedroom-page .bedroom-shelf .nes-cart{
  margin-left:auto;
  margin-right:auto;
}
/* NES: reduce the tall shell slightly so it no longer dominates a mixed shelf. */
.bedroom-page .bedroom-shelf .cart-skin-nes:not(.cartridge-template-cart){
  width:124px;
  height:159px;
  aspect-ratio:auto;
  flex:0 0 auto;
}
/* SNES: enlarge the wide shell so its visual weight matches the NES cartridge. */
.bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart{
  width:168px;
  height:137px;
  flex:0 0 auto;
}
/* Keep the title plates aligned even when cartridge silhouettes differ. */
.bedroom-page .bedroom-shelf .shelf-game h2{
  width:100%;
  min-width:0;
}
@media(max-width:720px){
  .bedroom-page .bedroom-shelf .cart-skin-nes:not(.cartridge-template-cart){width:116px;height:149px}
  .bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart{width:154px;height:126px}
}

/* Phase 5 Step 7.2: balanced mixed-system cartridge sizing */
.bedroom-page .bedroom-shelf .shelf-game{
  display:grid;
  grid-template-rows:168px auto;
  align-items:end;
  justify-items:center;
  min-width:0;
}
.bedroom-page .bedroom-shelf .shelf-game > .nes-cart{
  align-self:end;
  justify-self:center;
  margin:0 auto;
  transform-origin:center bottom;
}
/* The original NES shell is intentionally reduced so it matches wide carts visually. */
.bedroom-page .bedroom-shelf .cart-skin-nes:not(.cartridge-template-cart){
  width:112px;
  height:144px;
}
/* The SNES shell is intentionally enlarged to occupy the same visual shelf presence. */
.bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart{
  width:180px;
  height:147px;
}
/* Keep the other system templates within the same visual display bay. */
.bedroom-page .bedroom-shelf .cart-skin-genesis.cartridge-template-cart{width:166px;height:125px}
.bedroom-page .bedroom-shelf .cart-skin-n64.cartridge-template-cart{width:160px;height:126px}
.bedroom-page .bedroom-shelf .cart-skin-gb.cartridge-template-cart,
.bedroom-page .bedroom-shelf .cart-skin-gbc.cartridge-template-cart{width:116px;height:148px}
.bedroom-page .bedroom-shelf .cart-skin-gba.cartridge-template-cart{width:166px;height:108px}
.bedroom-page .bedroom-shelf .cart-skin-gamegear.cartridge-template-cart{width:136px;height:142px}
.bedroom-page .bedroom-shelf .shelf-game h2{
  align-self:end;
  width:100%;
  margin-top:8px;
}
@media(max-width:720px){
  .bedroom-page .bedroom-shelf .shelf-game{grid-template-rows:150px auto}
  .bedroom-page .bedroom-shelf .cart-skin-nes:not(.cartridge-template-cart){width:104px;height:134px}
  .bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart{width:164px;height:134px}
  .bedroom-page .bedroom-shelf .cart-skin-genesis.cartridge-template-cart{width:150px;height:113px}
  .bedroom-page .bedroom-shelf .cart-skin-n64.cartridge-template-cart{width:146px;height:115px}
}

/* Phase 5 Step 8: Game Room console filters */
.game-room-filter-panel{
  position:relative;z-index:6;max-width:980px;margin:24px auto 16px;padding:14px 16px;
  display:grid;grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);gap:16px;align-items:center;
  background:linear-gradient(180deg,#15191a,#090b0c);border:2px solid #46504c;box-shadow:6px 7px 0 rgba(0,0,0,.38);
}
.game-room-filter-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.game-room-filter-copy strong{font-family:var(--pixel);font-size:12px;color:#9cff63;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-room-filter-copy span:last-child{font-family:var(--pixel);font-size:7px;color:#aeb9b5}
.game-room-filter-buttons{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.game-room-filter{min-height:31px;padding:7px 9px;border:2px solid #4a514e;background:#0a0d0c;color:#d9dfdc;font-family:var(--pixel);font-size:7px;cursor:pointer;box-shadow:2px 2px 0 #000;transition:transform .12s,background .12s,border-color .12s,color .12s}
.game-room-filter:hover,.game-room-filter:focus-visible{border-color:#ffd52a;color:#ffd52a;transform:translateY(-1px)}
.game-room-filter.active{background:#76bf30;border-color:#a9ed54;color:#071006;box-shadow:0 0 12px rgba(126,222,49,.28),2px 2px 0 #000}
.game-room-empty-shelf{position:relative;z-index:6;max-width:980px;margin:20px auto;padding:38px 20px;text-align:center;background:linear-gradient(180deg,#17100c,#0a0705);border:3px solid #6e3d18;box-shadow:8px 9px 0 rgba(0,0,0,.35)}
.game-room-empty-shelf strong{display:block;font-family:var(--pixel);font-size:14px;color:#ffd52a;margin-bottom:12px}
.game-room-empty-shelf span{color:#c8c9c5;font-size:17px}
@media(max-width:820px){.game-room-filter-panel{grid-template-columns:1fr}.game-room-filter-buttons{justify-content:flex-start}}
@media(max-width:520px){.game-room-filter-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.game-room-filter{width:100%}}

/* Phase 5 Step 9: Game Room search, sorting, and visitor favorites */
.game-room-filter-panel{grid-template-columns:minmax(170px,.7fr) minmax(360px,1.8fr)}
.game-room-library-tools{grid-column:1/-1;display:grid;grid-template-columns:minmax(230px,1fr) minmax(190px,.45fr) auto;gap:9px;align-items:end;padding-top:11px;border-top:1px solid rgba(255,255,255,.1)}
.game-room-search,.game-room-sort{display:flex;flex-direction:column;gap:5px;font-family:var(--pixel);font-size:7px;color:#9cff63}
.game-room-search input,.game-room-sort select{width:100%;min-height:39px;border:2px solid #4a514e;background:#070a09;color:#f2f5f3;padding:9px 11px;font:inherit;box-shadow:inset 0 0 0 2px #111,2px 2px 0 #000}
.game-room-search input:focus,.game-room-sort select:focus{outline:2px solid #ffd52a;outline-offset:2px;border-color:#ffd52a}
.game-room-sort select{cursor:pointer}
.game-room-clear{min-height:39px;padding:8px 13px;border:2px solid #754b26;background:#26170d;color:#ffd52a;font-family:var(--pixel);font-size:7px;cursor:pointer;box-shadow:2px 2px 0 #000}
.game-room-clear:hover,.game-room-clear:focus-visible{border-color:#ffd52a;background:#3b2413}
.shelf-game{position:relative}
.game-favorite-toggle{position:absolute;top:-7px;right:-4px;z-index:8;width:30px;height:30px;border:2px solid #555;background:#101312;color:#707773;font-size:17px;line-height:1;cursor:pointer;box-shadow:2px 3px 0 rgba(0,0,0,.7);opacity:.72;transition:transform .13s,color .13s,border-color .13s,opacity .13s}
.game-favorite-toggle:hover,.game-favorite-toggle:focus-visible{opacity:1;color:#ffd52a;border-color:#ffd52a;transform:translateY(-2px)}
.game-favorite-toggle.active{opacity:1;color:#ffd52a;border-color:#d49e24;background:#33250b;text-shadow:0 0 6px rgba(255,213,42,.55)}
@media(max-width:820px){.game-room-filter-panel{grid-template-columns:1fr}.game-room-library-tools{grid-template-columns:1fr 1fr}.game-room-clear{grid-column:1/-1}}
@media(max-width:560px){.game-room-library-tools{grid-template-columns:1fr}.game-room-clear{grid-column:auto}.game-favorite-toggle{width:28px;height:28px;font-size:15px}}


/* Phase 5 Step 10: Game Room release-candidate polish */
.game-room-system-message{max-width:980px;margin:12px auto;padding:11px 14px;text-align:center;font-family:var(--pixel);font-size:8px;color:#dbe3df;background:#0b0e0d;border:2px solid #46504c;box-shadow:4px 5px 0 rgba(0,0,0,.35)}
.game-room-system-message[data-type="success"]{color:#b7ff72;border-color:#5c9730;background:#0c1609}
.game-room-system-message[data-type="error"]{color:#ffd06a;border-color:#9c542d;background:#1c0e08}
.crt-load-error{position:absolute;z-index:12;inset:10%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px;text-align:center;background:rgba(2,5,3,.94);border:3px solid #b64b35;color:#fff;box-shadow:inset 0 0 28px rgba(182,75,53,.25)}
.crt-load-error[hidden]{display:none!important}.crt-load-error strong{font-family:var(--pixel);font-size:11px;color:#ff7c61}.crt-load-error span{font-size:15px;color:#cfd8d2}.crt-load-error button{padding:8px 14px;border:2px solid #ffd52a;background:#241b07;color:#ffd52a;font-family:var(--pixel);font-size:8px;cursor:pointer}.crt-load-error button:hover,.crt-load-error button:focus-visible{background:#ffd52a;color:#121008}
.game-label-placeholder{display:flex!important;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:5px;overflow:hidden;background:linear-gradient(145deg,#252a28,#0c0e0d);color:#f4f5f4}.game-label-placeholder strong{max-width:100%;font-family:var(--pixel);font-size:7px;line-height:1.25;overflow-wrap:anywhere}.game-label-placeholder small{display:block!important;margin-top:4px;font-family:var(--pixel);font-size:5px;color:#9cff63}
.bedroom-page .shelf-game:focus-within h2{outline:2px solid #ffd52a;outline-offset:2px}.bedroom-page .nes-cart:focus-visible{outline:3px solid #ffd52a;outline-offset:5px}.bedroom-page .game-favorite-toggle:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:720px){.game-room-filter-panel{margin-inline:8px;padding:12px}.bedroom-page .bedroom-shelves{overflow-x:hidden}.bedroom-page .game-shelf-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 8px;padding-inline:8px}.bedroom-page .bedroom-shelf .shelf-game{width:100%;min-width:0}.bedroom-page .bedroom-shelf .shelf-game h2{font-size:8px;overflow-wrap:anywhere}.crt-load-error{inset:6%;padding:12px}.crt-load-error strong{font-size:8px}.crt-load-error span{font-size:13px}}
@media(prefers-reduced-motion:reduce){.bedroom-page *,.bedroom-page *::before,.bedroom-page *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.cartridge-flight{display:none!important}}


/* v7.1.0 — Game Room Collection Stats Panel */
.game-room-collection-panel{margin:18px 0 24px;padding:0;overflow:hidden;border-color:#7d6332;background:linear-gradient(180deg,#17120c,#090806)}
.collection-panel-toggle{width:100%;display:grid;grid-template-columns:1fr auto auto;gap:18px;align-items:center;text-align:left;padding:15px 18px;border:0;background:linear-gradient(180deg,#251a0e,#130d08);color:#fff;cursor:pointer}
.collection-panel-toggle:hover,.collection-panel-toggle:focus-visible{background:linear-gradient(180deg,#342314,#191008);outline:3px solid #ffd742;outline-offset:-3px}
.collection-panel-toggle>span:first-child{display:grid;gap:5px}.collection-panel-toggle small{font-family:var(--pixel);font-size:7px;color:#bca36e;letter-spacing:.08em}.collection-panel-toggle strong{font-family:var(--pixel);font-size:12px;color:#ffd742}
.collection-panel-total{font-family:var(--pixel);font-size:8px;color:#ddd;white-space:nowrap}.collection-panel-total b{font-size:17px;color:#fff;margin-right:6px}
.collection-panel-chevron{font-size:22px;color:#ffd742;transition:transform .2s ease}.collection-panel-toggle[aria-expanded="false"] .collection-panel-chevron{transform:rotate(-90deg)}
.collection-panel-content{padding:18px;border-top:2px solid #4e3820}.collection-panel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.collection-panel-card{min-height:94px;display:flex;align-items:center;gap:12px;padding:10px 12px;background:linear-gradient(180deg,#11161c,#090b0e);border:2px solid #303943;box-shadow:3px 4px 0 #000}
.collection-panel-icon{width:72px;height:68px;display:grid;place-items:center;flex:0 0 auto}.collection-panel-icon img{max-width:100%;max-height:100%;object-fit:cover;transform:scale(1.05);image-rendering:auto;filter:drop-shadow(3px 4px 0 rgba(0,0,0,.65))}.collection-panel-icon.image-missing:before{content:'🎮';font-size:30px}
.collection-panel-card>div:last-child{display:grid;gap:5px}.collection-panel-card strong{font-family:var(--pixel);font-size:15px;color:#fff}.collection-panel-card span{font-family:var(--pixel);font-size:7px;line-height:1.45;color:#aeb8c2}
.collection-panel-loading{grid-column:1/-1;padding:24px;text-align:center;font-family:var(--pixel);font-size:8px;color:#bfc6cd}.collection-panel-note{margin:15px 0 0;color:#a9a9a9;font-size:15px;text-align:center}
@media(max-width:900px){.collection-panel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.collection-panel-toggle{grid-template-columns:1fr auto;gap:10px}.collection-panel-total{grid-column:1/2}.collection-panel-chevron{grid-column:2;grid-row:1/3}.collection-panel-content{padding:12px}.collection-panel-grid{grid-template-columns:1fr}.collection-panel-card{min-height:82px}.collection-panel-icon{width:62px;height:58px}}

/* =========================================================
   RetroDad Gaming v7.2.0 — Game Room Deluxe
   ========================================================= */
.game-room-deluxe-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0;padding:14px 18px;background:linear-gradient(180deg,rgba(15,24,18,.96),rgba(5,10,7,.98));border-color:rgba(121,255,102,.42);box-shadow:0 0 22px rgba(66,255,95,.08),inset 0 0 0 2px rgba(0,0,0,.45)}
.deluxe-status{display:flex;flex-direction:column;gap:3px}.deluxe-status strong{font-family:var(--font-pixel,monospace);font-size:12px;letter-spacing:.08em;color:#f5f0cf;text-shadow:2px 2px #000}.deluxe-controls{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.deluxe-button{border:2px solid #5f765d;background:#101710;color:#e8f4df;padding:10px 12px;font:700 10px/1 var(--font-pixel,monospace);letter-spacing:.04em;cursor:pointer;box-shadow:3px 3px 0 #000}.deluxe-button:hover,.deluxe-button:focus-visible{border-color:#79ff66;color:#79ff66;transform:translateY(-1px)}.deluxe-button[aria-pressed="true"]{background:#183119;border-color:#79ff66;color:#fff}.deluxe-button b{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:5px;border-radius:50%;background:#e63b32;color:#fff;font-size:9px}
.game-room-achievements{margin:0 0 18px;padding:18px;background:linear-gradient(180deg,rgba(21,15,10,.98),rgba(8,7,5,.98));border-color:#8f6a35}.achievement-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:14px}.achievement-heading h2{margin:4px 0 0;font-size:18px;color:#ffd45b}.achievement-heading>span{font:700 10px/1.4 var(--font-pixel,monospace);color:#9fc29a}.achievement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.achievement-card{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;min-height:70px;padding:10px;border:2px solid #493b2a;background:#0c0d0b}.achievement-card>span{font-size:24px;filter:grayscale(1);opacity:.45}.achievement-card strong,.achievement-card small{display:block}.achievement-card strong{font:700 10px/1.35 var(--font-pixel,monospace);color:#a49f8d}.achievement-card small{margin-top:5px;color:#777;font-size:11px}.achievement-card>b{font:700 8px/1 var(--font-pixel,monospace);color:#777}.achievement-card.unlocked{border-color:#e4b83f;background:linear-gradient(135deg,#19170d,#0b100b);box-shadow:0 0 14px rgba(255,204,68,.12)}.achievement-card.unlocked>span{filter:none;opacity:1}.achievement-card.unlocked strong{color:#ffd45b}.achievement-card.unlocked small{color:#c7c5b4}.achievement-card.unlocked>b{color:#79ff66}
.retro-bedroom{transition:filter .45s ease,box-shadow .45s ease}.retro-bedroom.room-powered{filter:brightness(1.07) saturate(1.05);box-shadow:0 0 55px rgba(89,206,255,.14),inset 0 0 80px rgba(80,160,255,.06)}.retro-bedroom.room-powered .crt-tv{filter:drop-shadow(0 0 17px rgba(127,213,255,.35))}.retro-bedroom.tv-powering .crt-tv{animation:deluxe-tv-warmup .72s steps(5,end)}
.crt-screen.static-burst::before{content:"";position:absolute;inset:0;z-index:12;pointer-events:none;opacity:.68;background:repeating-radial-gradient(circle at 20% 20%,#fff 0 1px,#111 1px 3px,#999 3px 4px);background-size:6px 5px;animation:deluxe-static .08s steps(2,end) infinite}.crt-screen.static-burst .tv-boot{z-index:13}.tv-boot [data-boot-stage]{color:#79ff66;text-shadow:0 0 8px rgba(121,255,102,.65)}
@keyframes deluxe-static{to{background-position:11px -9px}}@keyframes deluxe-tv-warmup{0%{filter:brightness(.1);transform:scaleY(.04)}35%{filter:brightness(2);transform:scaleY(.06)}65%{filter:brightness(.45);transform:scaleY(1)}100%{filter:brightness(1);transform:scaleY(1)}}
@media(max-width:820px){.achievement-grid{grid-template-columns:1fr 1fr}.game-room-deluxe-bar{align-items:flex-start;flex-direction:column}.deluxe-controls{justify-content:flex-start;width:100%}.deluxe-button{flex:1}}
@media(max-width:520px){.achievement-grid{grid-template-columns:1fr}.achievement-heading{align-items:flex-start;flex-direction:column}.deluxe-controls{flex-direction:column}.deluxe-button{width:100%}}
@media(prefers-reduced-motion:reduce){.retro-bedroom.tv-powering .crt-tv,.crt-screen.static-burst::before{animation:none!important}.retro-bedroom{transition:none}}

/* =========================================================
   VIDEO VAULT 2.0 · STEP 1 · SELF-HOSTED RETRO TV PLAYER
   ========================================================= */
.vault-tv-lounge{margin:0 0 38px;padding:20px;border:1px solid rgba(255,211,55,.46);background:radial-gradient(circle at 50% 28%,rgba(84,255,112,.07),transparent 40%),linear-gradient(180deg,#11170f,#080b08 70%);box-shadow:0 0 0 4px rgba(0,0,0,.52),inset 0 0 36px rgba(0,0,0,.72)}
.vault-tv-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid rgba(113,255,134,.18)}
.vault-tv-heading h2{margin:.25rem 0 0;color:#a6ff52}
.vault-tv-status{padding:7px 10px;border:1px solid #4a5f4d;background:#050805;color:#ffe56c;font-size:.78rem;white-space:nowrap;box-shadow:inset 0 0 10px #000}
.vault-entertainment-center{max-width:930px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.vault-crt{width:min(100%,820px);filter:drop-shadow(0 20px 18px rgba(0,0,0,.58));transition:filter .2s ease,transform .2s ease}
.vault-crt.is-playing{filter:drop-shadow(0 20px 18px rgba(0,0,0,.65)) drop-shadow(0 0 22px rgba(84,255,108,.12))}
.vault-crt.has-error{animation:vault-error-shake .18s linear 3}
.vault-crt-shell{padding:18px 18px 12px;border:5px solid #171b19;border-radius:28px 28px 16px 16px;background:linear-gradient(145deg,#5b625d,#2b302d 47%,#181c1a);box-shadow:inset 0 0 0 4px #858b86,inset 0 -18px 24px rgba(0,0,0,.35),0 0 0 5px #080a09}
.vault-crt-screen{position:relative;aspect-ratio:16/9;overflow:hidden;border:10px solid #111612;border-radius:42px / 26px;background:#020603;box-shadow:inset 0 0 0 3px #3c463e,inset 0 0 58px #000}
.vault-crt-screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.05);background:#000;z-index:2}
.vault-no-signal,.vault-tv-boot{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;z-index:1;color:#92ff75;background:radial-gradient(circle at center,rgba(38,85,45,.3),transparent 62%),repeating-linear-gradient(to bottom,rgba(255,255,255,.025) 0,rgba(255,255,255,.025) 1px,rgba(0,0,0,.06) 2px,rgba(0,0,0,.06) 4px)}
.vault-no-signal span{color:#ffe04a;font-size:clamp(1.4rem,4vw,2.8rem);text-shadow:4px 4px 0 #000}
.vault-no-signal strong{margin:.45rem 0;color:#d7ffd0;font-size:clamp(1rem,2.8vw,1.8rem);letter-spacing:.1em}
.vault-no-signal small,.vault-tv-boot small{color:#72a979}
.vault-tv-boot{z-index:3;background:#020403;color:#f6ffe9}
.vault-tv-boot span{color:#ff4b35;font-size:.75rem;letter-spacing:.2em}
.vault-tv-boot strong{margin-top:12px;color:#a6ff52;font-size:clamp(.95rem,2.4vw,1.5rem)}
.vault-static{width:86%;height:44%;margin:12px 0;background:repeating-radial-gradient(circle at 34% 28%,#111 0 1px,#444 1px 2px,#050505 2px 4px);opacity:.62;animation:vault-static .12s steps(2) infinite}
.vault-crt-glass{position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:32px / 20px;background:radial-gradient(ellipse at center,transparent 52%,rgba(0,0,0,.42) 100%),linear-gradient(115deg,rgba(255,255,255,.06),transparent 28%);mix-blend-mode:screen}
.vault-tv-console{display:grid;grid-template-columns:1fr auto 120px;align-items:center;gap:16px;padding:11px 15px 2px;color:#151915;text-shadow:0 1px rgba(255,255,255,.22)}
.vault-tv-console strong{display:block;font-size:.84rem;letter-spacing:.08em}.vault-tv-console small{display:block;font-size:.55rem}
.vault-power-button{border:2px solid #151817;background:#434944;color:#f7fff3;padding:8px 10px;font:inherit;font-size:.65rem;cursor:pointer;box-shadow:inset 0 0 0 2px #6b716d}.vault-power-button i{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#ef3038;box-shadow:0 0 8px #ef3038}
.vault-speaker{height:32px;background:repeating-linear-gradient(to bottom,#151815 0 2px,#555b55 2px 4px);border:2px solid #191d1a}
.vault-vcr-deck{width:min(82%,700px);margin-top:8px;padding:11px 18px;display:grid;grid-template-columns:1fr 34px auto auto 64px;gap:12px;align-items:center;border:4px solid #151715;background:linear-gradient(#4a4d49,#242724);color:#e7eee5;box-shadow:0 8px 0 #0a0b0a,inset 0 0 0 2px #6d716c;font-size:.62rem}.vault-vcr-deck i{height:8px;background:#090a09;border:1px solid #686c67}.vault-vcr-deck b{color:#ffdc51}.vault-vcr-deck em{padding:5px;background:#071008;color:#6cff79;font-style:normal;text-align:center}
.vault-now-playing-copy{max-width:930px;margin:22px auto 0;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid rgba(113,255,134,.25);background:rgba(0,0,0,.42)}
.vault-now-playing-copy h3{margin:.25rem 0}.vault-now-playing-copy p{margin:0;color:#bac7b8}
.vault-player-message{margin-top:14px;text-align:center;color:#9eb19b;font-size:.82rem}
.video-vault-thumb-link,.video-featured-media-link{appearance:none;width:100%;padding:0;border:0;text-align:inherit;cursor:pointer;background:#000;color:inherit}
.vault-card-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:54px;border:2px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(0,0,0,.62);color:#fff;font-size:1.15rem;z-index:3;transition:transform .18s ease,background .18s ease}
.video-vault-thumb-link:hover .vault-card-play,.video-featured-media-link:hover .vault-card-play{transform:translate(-50%,-50%) scale(1.08);background:rgba(80,240,88,.78)}
.video-vault-card.is-current{border-color:#8cff62;box-shadow:0 0 0 2px #1f541c,0 0 24px rgba(89,255,91,.2)}
.video-vault-card.is-current:before{content:'NOW PLAYING';position:absolute;right:8px;top:8px;z-index:5;padding:5px 7px;background:#80ff51;color:#071008;font-size:.62rem;font-weight:900}
.video-vault-card{position:relative}
@keyframes vault-static{0%{background-position:0 0}100%{background-position:18px -12px}}
@keyframes vault-error-shake{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
@media(max-width:760px){.vault-tv-lounge{padding:13px}.vault-tv-heading{align-items:flex-start;flex-direction:column}.vault-tv-status{white-space:normal}.vault-crt-shell{padding:10px 10px 8px;border-width:3px;border-radius:18px}.vault-crt-screen{border-width:6px;border-radius:24px / 16px}.vault-tv-console{grid-template-columns:1fr auto}.vault-speaker{display:none}.vault-vcr-deck{width:88%;grid-template-columns:1fr 30px auto auto}.vault-vcr-deck em{display:none}.vault-now-playing-copy{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.vault-static,.vault-crt.has-error{animation:none}.vault-card-play,.vault-crt{transition:none}}

/* === RetroDad Gaming v8.0.2: Video Vault Step 3 - VHS Category Shelves === */
.video-vault-shelves{display:grid;gap:34px;margin-top:28px}
.vault-shelf-section{position:relative;padding:0 0 24px;overflow:hidden}
.vault-shelf-header{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:13px;padding:0 4px}
.vault-shelf-header h2{margin:0;font-family:var(--pixel);font-size:clamp(14px,2vw,22px);color:#fff;text-transform:uppercase;letter-spacing:.04em}
.vault-shelf-header span{display:block;margin-top:6px;color:#aeb4b7;font-size:12px}
.vault-shelf-header strong{font-family:var(--pixel);font-size:18px;color:#ffd52a;text-shadow:2px 2px #000}
.vault-shelf-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(210px,265px);gap:16px;overflow-x:auto;overflow-y:hidden;padding:5px 6px 20px;scroll-snap-type:x proximity;scrollbar-color:#9d6331 #17110d;scrollbar-width:thin}
.vault-shelf-row::-webkit-scrollbar{height:10px}.vault-shelf-row::-webkit-scrollbar-track{background:#17110d;border:2px solid #382313}.vault-shelf-row::-webkit-scrollbar-thumb{background:#9d6331;border:2px solid #3c2415}
.vault-shelf-card{position:relative;scroll-snap-align:start;min-width:0;background:#111515;border:3px solid #32393a;box-shadow:7px 8px 0 rgba(0,0,0,.34);transition:transform .18s ease,border-color .18s ease,filter .18s ease}
.vault-shelf-card:hover,.vault-shelf-card:focus-within{transform:translateY(-5px);border-color:#ffd52a;filter:brightness(1.06)}
.vault-shelf-card.is-current{border-color:#54e54e;box-shadow:0 0 0 2px #163818,7px 8px 0 rgba(0,0,0,.34)}
.vault-shelf-card .video-vault-thumb-link{display:block;width:100%;padding:0;border:0;background:#000;cursor:pointer}
.vault-shelf-card .video-vault-thumb{aspect-ratio:16/9;overflow:hidden;background:#050706}
.vault-shelf-card .video-vault-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.vault-shelf-card-body{padding:12px 13px 14px}
.vault-shelf-card-body .meta{font-size:10px;color:#7ed976;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vault-shelf-card-body h3{min-height:42px;margin:7px 0 11px;font-size:17px;line-height:1.25;color:#fff}
.vault-shelf-play{width:100%;padding:9px;border:2px solid #b62d24;background:#7b1711;color:#fff;font-family:var(--pixel);font-size:8px;cursor:pointer}
.vault-shelf-play:hover{background:#b62d24}
.vault-wood-rail{height:22px;margin:0 1px;background:linear-gradient(#b17a3f 0 18%,#855226 18% 55%,#4d2b17 55% 100%);border:3px solid #2d190f;box-shadow:0 8px 0 rgba(0,0,0,.28)}
.video-vault-loading{padding:40px;text-align:center;font-family:var(--pixel);font-size:10px;color:#ffd52a}
@media(max-width:720px){.video-vault-shelves{gap:28px}.vault-shelf-row{grid-auto-columns:minmax(190px,78vw);gap:12px}.vault-shelf-header{align-items:start}.vault-shelf-header strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.vault-shelf-card{transition:none}.vault-shelf-row{scroll-behavior:auto}}

/* === RetroDad Video Vault VHS thumbnail renderer === */
.vhs-video-art{position:relative!important;display:block;aspect-ratio:400/235!important;background:transparent!important;overflow:visible!important}
.vhs-video-art>.vhs-shell{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover;transform:scale(1.05)!important;display:block!important;z-index:1!important;transform:none!important}
.vhs-video-art>.vhs-label-window{position:absolute;left:29.4%;top:34.1%;width:41.5%;height:33.2%;overflow:hidden;z-index:2;background:#e8dfc4}
.vhs-video-art>.vhs-label-window img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;transform:none!important}
.vhs-video-art .vault-card-play{z-index:4}
.vhs-video-art .video-featured-badge{z-index:5}
.vault-shelf-card .vhs-video-art{padding:8px 6px 2px;background:linear-gradient(#0e1310,#090c0a)!important}
.video-featured-media.vhs-video-art{min-height:0;aspect-ratio:400/235!important;padding:16px;background:radial-gradient(circle at 50% 50%,rgba(112,255,100,.08),transparent 60%),#030503!important}
.video-vault-thumb.vhs-video-art:after,.video-featured-media.vhs-video-art:after{display:none}

/* =========================================================
   RetroDad Gaming v8.0.11 — Retro TV Overlay Visibility Fix
   The component display rules previously overrode the browser's [hidden]
   behavior, leaving the boot/static screen above a playing video.
   ========================================================= */
.vault-crt-screen [hidden],
.vault-tv-lounge [hidden] {
  display: none !important;
}

/* v8.1.0 Hotfix 1: YouTube playback inside RetroVision CRT */
/* v8.1.0 Hotfix 1.2: enlarge the YouTube iframe beyond the CRT aperture so
   YouTube's internal letterboxing is cropped by the television bezel. */
.vault-crt-screen [data-vault-youtube]{
  position:absolute;
  top:-9%;
  left:-9%;
  width:118%;
  height:118%;
  border:0;
  background:#000;
  z-index:2;
  display:block;
  transform:translateZ(0);
}
.vault-crt-screen [data-vault-player]{z-index:2}
.vault-crt-screen [data-vault-youtube][hidden]{display:none!important}


/* v8.1.0 Hotfix 2.2 — Five-row Pixel Blockbuster shelves below the CRT */
.blockbuster-vault{margin-top:36px;padding:24px 18px 42px;border:1px solid rgba(255,213,42,.28);background:radial-gradient(circle at 50% 0,rgba(27,75,126,.18),transparent 52%),rgba(0,0,0,.3)}
.blockbuster-vault-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 auto 26px;max-width:1120px;padding-bottom:13px;border-bottom:2px solid #174b8a}
.blockbuster-vault-heading h2{margin:.25rem 0 0;color:#ffd52a;font-family:var(--pixel);font-size:clamp(16px,2.2vw,25px);text-shadow:3px 3px 0 #06182e}
.blockbuster-vault-count{color:#fff;font-family:var(--pixel);font-size:10px;letter-spacing:.05em;text-shadow:2px 2px 0 #0b2f63}
.blockbuster-racks{display:grid;grid-template-columns:repeat(auto-fit,minmax(560px,760px));justify-content:center;align-items:start;gap:48px 42px;max-width:1500px;margin:0 auto}
.blockbuster-rack{position:relative;width:100%;max-width:760px;aspect-ratio:2/3;filter:drop-shadow(12px 18px 12px rgba(0,0,0,.48));isolation:isolate;margin-inline:auto}
.blockbuster-rack-template{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;image-rendering:auto;z-index:1;pointer-events:none}
.blockbuster-rack-slots{position:absolute;inset:0;z-index:2}
.blockbuster-slot{position:absolute;width:20.5%;height:13.3%;display:flex;align-items:flex-end;justify-content:center}
.blockbuster-slot-1,.blockbuster-slot-4,.blockbuster-slot-7,.blockbuster-slot-10,.blockbuster-slot-13{left:16.2%}
.blockbuster-slot-2,.blockbuster-slot-5,.blockbuster-slot-8,.blockbuster-slot-11,.blockbuster-slot-14{left:39.75%}
.blockbuster-slot-3,.blockbuster-slot-6,.blockbuster-slot-9,.blockbuster-slot-12,.blockbuster-slot-15{left:63.3%}
.blockbuster-slot-1,.blockbuster-slot-2,.blockbuster-slot-3{top:18.2%}
.blockbuster-slot-4,.blockbuster-slot-5,.blockbuster-slot-6{top:33.8%}
.blockbuster-slot-7,.blockbuster-slot-8,.blockbuster-slot-9{top:49.4%}
.blockbuster-slot-10,.blockbuster-slot-11,.blockbuster-slot-12{top:65.0%}
.blockbuster-slot-13,.blockbuster-slot-14,.blockbuster-slot-15{top:80.4%}
.blockbuster-video-case{position:relative;width:100%;height:100%;padding:4px;border:3px solid #111;border-radius:3px;background:#0a0d10;color:#fff;cursor:pointer;overflow:hidden;box-sizing:border-box;box-shadow:4px 4px 0 rgba(0,0,0,.5),inset 0 0 0 2px #444;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;transform-origin:50% 100%;image-rendering:pixelated}
.blockbuster-video-case:hover,.blockbuster-video-case:focus-visible{transform:translateY(-5px) scale(1.035);filter:brightness(1.1);box-shadow:6px 9px 0 rgba(0,0,0,.45),0 0 0 4px #ffd52a;z-index:5;outline:none}
.blockbuster-video-case.is-current{box-shadow:0 0 0 4px #78ff58,6px 9px 0 rgba(0,0,0,.45)}
.blockbuster-case-cover{position:absolute;left:5px;right:5px;top:5px;bottom:35px;overflow:hidden;background:#050505;border:2px solid #555}
.blockbuster-case-cover img{width:100%;height:100%;display:block;object-fit:cover}
.blockbuster-case-spine{position:absolute;left:5px;right:5px;bottom:5px;height:27px;padding:3px 5px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:normal;overflow-wrap:anywhere;background:#071d43;color:#ffd52a;font-size:9px;font-weight:900;line-height:1.08;text-align:center;text-transform:none;border:1px solid #30435a;border-top:2px solid #f2c622;z-index:3}
.blockbuster-case-badge{display:none!important}
@media(max-width:760px){.blockbuster-vault{padding:18px 8px 30px}.blockbuster-vault-heading{align-items:flex-start;flex-direction:column}.blockbuster-racks{grid-template-columns:minmax(310px,590px);gap:32px}.blockbuster-video-case:hover{transform:translateY(-4px) scale(1.04)}}
@media(max-width:420px){.blockbuster-racks{grid-template-columns:minmax(275px,1fr)}.blockbuster-case-spine{height:22px;font-size:6px;padding:2px 3px}.blockbuster-case-cover{bottom:30px}.blockbuster-case-badge{display:none!important}}
@media(prefers-reduced-motion:reduce){.blockbuster-video-case{transition:none}}

/* v8.1.0 Hotfix 2.3 — CRT-first Video Vault */
.video-vault-section{padding-top:18px}
.vault-tv-lounge-top{position:relative;padding-top:18px}
.vault-tv-lounge-top .vault-entertainment-center{margin-top:0}
.vault-tv-status-floating{position:absolute;top:12px;right:12px;z-index:12;max-width:42%;pointer-events:none}
@media(max-width:760px){
  .video-vault-section{padding-top:10px}
  .vault-tv-lounge-top{padding-top:14px}
  .vault-tv-status-floating{top:8px;right:8px;max-width:58%;font-size:8px}
}


/* Homepage Hotfix 1: RetroVision featured-video lightbox */
.home-video-lightbox[hidden]{display:none!important}
.home-video-lightbox{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto;margin:0!important;transform:none!important}
.home-video-lightbox-backdrop{position:fixed;inset:0;background:rgba(2,5,12,.9);backdrop-filter:blur(7px)}
.home-video-cinema{position:relative;margin:auto;z-index:1;width:min(980px,96vw);padding:22px 22px 18px;background:linear-gradient(180deg,#151923,#080a0f);border:3px solid #f6c945;border-radius:18px;box-shadow:0 26px 90px rgba(0,0,0,.8),0 0 42px rgba(246,201,69,.2)}
.home-video-close{position:absolute;right:12px;top:10px;z-index:4;width:42px;height:42px;border:2px solid #f6c945;border-radius:50%;background:#111722;color:#fff;font:700 30px/1 system-ui;cursor:pointer}
.home-video-close:hover,.home-video-close:focus-visible{background:#f6c945;color:#111;outline:3px solid #fff;outline-offset:2px}
.home-video-tv{position:relative;margin:20px auto 0;padding:32px 78px 48px 38px;background:linear-gradient(145deg,#6d5037,#2a1b12 58%,#111);border:7px solid #17110d;border-radius:42px 42px 30px 30px;box-shadow:inset 0 0 0 5px #8a684b,0 18px 40px rgba(0,0,0,.65)}
.home-video-tv-screen{position:relative;aspect-ratio:16/9;overflow:hidden;border:9px solid #171717;border-radius:34px;background:#030608;box-shadow:inset 0 0 35px #000}
.home-video-tv-screen video,.home-video-tv-screen iframe{position:absolute;inset:-3%;width:106%;height:106%;border:0;object-fit:cover;background:#000}
.home-video-idle{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:8px;color:#62ff8b;background:repeating-linear-gradient(0deg,#07110b 0 3px,#0b1b10 3px 6px);font-family:monospace;letter-spacing:.12em}
.home-video-idle strong{font-size:clamp(24px,5vw,54px)}
.home-video-idle span{color:#fff;font-size:13px}
.home-video-tv-brand{position:absolute;right:16px;top:44%;writing-mode:vertical-rl;color:#f6c945;font-weight:900;letter-spacing:.14em;font-size:13px}
.home-video-tv-controls{position:absolute;right:18px;bottom:26px;display:flex;gap:10px}.home-video-tv-controls span{width:17px;height:17px;border-radius:50%;background:#222;border:2px solid #9b7a57;box-shadow:inset 0 0 0 3px #111}.home-video-tv-controls span:first-child{background:#b31c1c}
.home-video-lightbox-copy{text-align:center;padding-top:14px}.home-video-lightbox-copy h2{margin:5px 0;color:#fff}.home-video-lightbox-copy p{margin:0;color:#cbd3dd}
body.home-video-modal-open{overflow:hidden}
@media(max-width:720px){.home-video-lightbox{padding:8px}.home-video-cinema{padding:14px 8px}.home-video-tv{padding:22px 42px 34px 18px;border-radius:28px}.home-video-tv-screen{border-width:6px;border-radius:22px}.home-video-tv-brand{right:7px;font-size:9px}.home-video-tv-controls{right:8px;bottom:17px;gap:5px}.home-video-tv-controls span{width:11px;height:11px}.home-video-close{right:6px;top:5px}}
@media(prefers-reduced-motion:reduce){.home-video-lightbox *{scroll-behavior:auto!important;transition:none!important}}

/* Homepage Featured Game image fill hotfix */
.pixel-game > .featured-game-custom-image{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center;
  z-index:10;
}
.pixel-game > .featured-game-custom-image[hidden]{display:none!important;}
.pixel-game > .featured-game-custom-image:not([hidden]) ~ .cloud,
.pixel-game > .featured-game-custom-image:not([hidden]) ~ .pipe,
.pixel-game > .featured-game-custom-image:not([hidden]) ~ .pixel-hero,
.pixel-game > .featured-game-custom-image:not([hidden]) ~ .ground,
.pixel-game > .featured-game-custom-image:not([hidden]) ~ .game-title{
  display:none!important;
}


/* RetroDad Analytics 1.0 */
.rdg-counter{max-width:760px;margin:28px auto;padding:14px 18px;display:flex;justify-content:center;gap:28px;flex-wrap:wrap;background:#07111f;border:3px solid #f3c62f;box-shadow:0 0 0 4px #153e75,0 10px 28px #0008;color:#fff;font-family:monospace;text-align:center}.rdg-counter span{letter-spacing:1px}.rdg-counter b{display:inline-block;margin-left:7px;color:#f3c62f;font-size:1.15em}

[data-vault-restart]{display:none!important}


/* ==========================================================
   RetroDad Gaming — Video Page 5.5 Wide Card Shelf
   Target: wide landscape thumbnails + compact yellow title bar
   on the ORIGINAL Blockbuster shelf artwork.
   ========================================================== */

.blockbuster-racks{
  grid-template-columns:repeat(auto-fit,minmax(620px,820px)) !important;
  max-width:1500px !important;
  justify-content:center !important;
}

.blockbuster-rack{
  max-width:820px !important;
  margin-inline:auto !important;
}

/* Three wide landscape cards across each original shelf. */
.blockbuster-slot{
  width:24.2% !important;
  height:11.4% !important;
  overflow:visible !important;
  align-items:flex-end !important;
}

.blockbuster-slot-1,.blockbuster-slot-4,.blockbuster-slot-7,.blockbuster-slot-10,.blockbuster-slot-13{
  left:11.8% !important;
}
.blockbuster-slot-2,.blockbuster-slot-5,.blockbuster-slot-8,.blockbuster-slot-11,.blockbuster-slot-14{
  left:37.9% !important;
}
.blockbuster-slot-3,.blockbuster-slot-6,.blockbuster-slot-9,.blockbuster-slot-12,.blockbuster-slot-15{
  left:64.0% !important;
}

/* Center cards vertically in each shelf opening. */
.blockbuster-slot-1,.blockbuster-slot-2,.blockbuster-slot-3{top:19.0% !important}
.blockbuster-slot-4,.blockbuster-slot-5,.blockbuster-slot-6{top:34.6% !important}
.blockbuster-slot-7,.blockbuster-slot-8,.blockbuster-slot-9{top:50.2% !important}
.blockbuster-slot-10,.blockbuster-slot-11,.blockbuster-slot-12{top:65.8% !important}
.blockbuster-slot-13,.blockbuster-slot-14,.blockbuster-slot-15{top:81.3% !important}

/* Wide video-card frame, not a portrait VHS box. */
.blockbuster-video-case{
  width:100% !important;
  height:100% !important;
  padding:3px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  border:3px solid #11161c !important;
  border-radius:4px !important;
  background:#05080b !important;
  box-shadow:
    3px 4px 0 rgba(0,0,0,.55),
    inset 0 0 0 1px #53606b !important;
}

/* Landscape thumbnail dominates the card. */
.blockbuster-case-cover{
  position:absolute !important;
  left:4px !important;
  right:4px !important;
  top:4px !important;
  bottom:25px !important;
  border:1px solid #56616b !important;
  background:#020304 !important;
  overflow:hidden !important;
}

.blockbuster-case-cover img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  image-rendering:auto !important;
}

/* Compact black/yellow title strip like the target image. */
.blockbuster-case-spine{
  position:absolute !important;
  left:4px !important;
  right:4px !important;
  bottom:4px !important;
  width:auto !important;
  height:19px !important;
  min-height:19px !important;
  padding:2px 4px !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  background:#050505 !important;
  color:#ffd52a !important;
  border:1px solid #ffd52a !important;
  font-family:var(--pixel, "Courier New", monospace) !important;
  font-size:7px !important;
  font-weight:900 !important;
  line-height:1.02 !important;
  text-align:center !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  z-index:4 !important;
}

/* No corner badge of any kind. */
.blockbuster-case-badge,
.video-featured-badge,
.video-platform-badge,
[data-featured-badge],
.featured-badge{
  display:none !important;
  visibility:hidden !important;
}

/* Selected card uses a green outline, but keeps the target proportions. */
.blockbuster-video-case.is-current{
  box-shadow:
    0 0 0 3px #78ff58,
    3px 4px 0 rgba(0,0,0,.55) !important;
}

.blockbuster-video-case:hover,
.blockbuster-video-case:focus-visible{
  transform:translateY(-4px) scale(1.035) !important;
  filter:brightness(1.08) !important;
  box-shadow:
    0 0 0 3px #ffd52a,
    4px 6px 0 rgba(0,0,0,.5) !important;
  z-index:20 !important;
}

/* Rewind/Restart remains removed. */
[data-vault-restart],
.vault-rewind,
.rewind-video,
.restart-video{
  display:none !important;
}

/* Tablet: retain 3-across shelf relationship. */
@media(max-width:900px){
  .blockbuster-racks{
    grid-template-columns:minmax(500px,760px) !important;
  }
  .blockbuster-case-spine{
    font-size:6px !important;
    height:18px !important;
    min-height:18px !important;
  }
  .blockbuster-case-cover{
    bottom:24px !important;
  }
}

/* Mobile: scale the whole original shelf/card system together. */
@media(max-width:620px){
  .blockbuster-racks{
    grid-template-columns:minmax(300px,1fr) !important;
  }
  .blockbuster-slot{
    width:23.4% !important;
    height:10.9% !important;
  }
  .blockbuster-slot-1,.blockbuster-slot-4,.blockbuster-slot-7,.blockbuster-slot-10,.blockbuster-slot-13{
    left:12.5% !important;
  }
  .blockbuster-slot-2,.blockbuster-slot-5,.blockbuster-slot-8,.blockbuster-slot-11,.blockbuster-slot-14{
    left:38.2% !important;
  }
  .blockbuster-slot-3,.blockbuster-slot-6,.blockbuster-slot-9,.blockbuster-slot-12,.blockbuster-slot-15{
    left:63.9% !important;
  }
  .blockbuster-video-case{
    padding:2px !important;
    border-width:2px !important;
  }
  .blockbuster-case-cover{
    left:2px !important;
    right:2px !important;
    top:2px !important;
    bottom:16px !important;
  }
  .blockbuster-case-spine{
    left:2px !important;
    right:2px !important;
    bottom:2px !important;
    height:12px !important;
    min-height:12px !important;
    padding:1px 2px !important;
    font-size:4px !important;
    border-width:1px !important;
  }
}

/* Video Vault Spotlight: intentionally separate from legacy hidden badges. */
.blockbuster-video-case.is-vault-spotlight{
  box-shadow:0 0 0 3px #ffd52a,3px 4px 0 rgba(0,0,0,.55),0 0 18px rgba(255,213,42,.38) !important;
}
.vault-spotlight-ribbon{
  position:absolute;
  top:7px;
  left:7px;
  z-index:12;
  padding:4px 6px;
  border:1px solid #fff4a8;
  background:#ffd52a;
  color:#111;
  box-shadow:2px 2px 0 #000;
  font-family:var(--pixel);
  font-size:6px;
  font-weight:900;
  line-height:1;
  pointer-events:none;
}
@media(max-width:620px){.vault-spotlight-ribbon{top:3px;left:3px;padding:2px 3px;font-size:4px}}


/* ==========================================================
   RetroDad Gaming — Video Page 5.6 Title Style Polish
   Keeps the 5.5 shelf/card geometry unchanged.
   ========================================================== */

.blockbuster-case-cover{
  bottom:34px !important;
}

.blockbuster-case-spine{
  left:4px !important;
  right:4px !important;
  bottom:4px !important;
  width:auto !important;
  height:28px !important;
  min-height:28px !important;
  padding:3px 7px !important;
  box-sizing:border-box !important;

  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;

  overflow:hidden !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;

  background:#050a12 !important;
  color:#f4f7f8 !important;
  border:1px solid #1768b8 !important;
  border-top:2px solid #2d8de8 !important;

  font-family:"Trebuchet MS","Arial Narrow",Arial,sans-serif !important;
  font-size:9px !important;
  font-weight:800 !important;
  line-height:1.12 !important;
  letter-spacing:.02em !important;
  text-align:center !important;
  text-transform:none !important;
  text-shadow:0 1px 0 #000 !important;
}

.blockbuster-video-case.is-current .blockbuster-case-spine{
  color:#fff !important;
  border-color:#78ff58 !important;
  border-top-color:#78ff58 !important;
  background:#07120b !important;
}

.blockbuster-video-case:hover .blockbuster-case-spine,
.blockbuster-video-case:focus-visible .blockbuster-case-spine{
  color:#fff !important;
  border-color:#56aaff !important;
  border-top-color:#56aaff !important;
}

@media(max-width:900px){
  .blockbuster-case-cover{
    bottom:32px !important;
  }
  .blockbuster-case-spine{
    height:26px !important;
    min-height:26px !important;
    font-size:8px !important;
    padding:3px 5px !important;
  }
}

@media(max-width:620px){
  .blockbuster-case-cover{
    bottom:19px !important;
  }
  .blockbuster-case-spine{
    height:15px !important;
    min-height:15px !important;
    padding:1px 2px !important;
    font-size:5px !important;
    line-height:1.05 !important;
    border-top-width:1px !important;
  }
}


/* RDG V8.19.1a — apply Game Manager cartridge artwork settings to public Game Room */
.bedroom-page .cartridge-template-cart .template-label img{
  object-position:var(--label-focus-x,50%) var(--label-focus-y,50%);
}
.bedroom-page .cartridge-template-cart .template-label.label-fit-fill img{
  object-fit:cover;
}
.bedroom-page .cartridge-template-cart .template-label.label-fit-fit img{
  object-fit:contain;
}
/* Game Gear box art is portrait artwork placed inside a landscape cartridge window.
   Contain the entire cover instead of cropping the title/edges. */
.bedroom-page .cart-skin-gamegear .template-label{
  background:#050506;
}
.bedroom-page .cart-skin-gamegear .template-label.label-fit-fit img{
  object-fit:contain;
  width:100%;
  height:100%;
}


/* =========================================================
   RDG V8.19.1b — Cartridge artwork rendering engine fix
   Makes Auto / Fit / Fill / Horizontal / Vertical genuinely work.
   ========================================================= */

.bedroom-page .cartridge-template-cart .template-label{
  position:absolute;
  overflow:hidden;
}

/* Neutralize the older direct-image sizing rules. */
.bedroom-page .cartridge-template-cart .template-label > img{
  display:none !important;
}

/* New dedicated artwork frame. */
.bedroom-page .cartridge-template-cart .template-label .template-label-art-frame{
  position:absolute;
  inset:0;
  overflow:hidden;
  display:block;
  background:#050506;
}

/* ---------- FILL ---------- */
/* Fill the entire label and crop whatever overflows. */
.bedroom-page .cartridge-template-cart .template-label.label-fit-fill .template-label-art-frame img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:
    calc(var(--label-focus-x,50) * 1%)
    calc(var(--label-focus-y,50) * 1%) !important;
  transform:none !important;
}

/* ---------- FIT ---------- */
/* Show the whole artwork. The image itself is deliberately oversized
   only along the free axis so horizontal/vertical focus can move it
   when there is extra room in the label window. */
.bedroom-page .cartridge-template-cart .template-label.label-fit-fit .template-label-art-frame{
  display:flex;
  align-items:center;
  justify-content:center;
}

.bedroom-page .cartridge-template-cart .template-label.label-fit-fit .template-label-art-frame img{
  position:relative !important;
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:
    translate(
      calc((var(--label-focus-x,50) - 50) * 0.18%),
      calc((var(--label-focus-y,50) - 50) * 0.18%)
    ) !important;
}

/* ---------- GAME GEAR ---------- */
/* Game Gear artwork is normally a portrait cover inside a landscape
   label window. Fit shows the entire cover and gives it controlled
   horizontal movement inside the window. */
.bedroom-page .cart-skin-gamegear .template-label.label-fit-fit .template-label-art-frame{
  padding:2px;
}

.bedroom-page .cart-skin-gamegear .template-label.label-fit-fit .template-label-art-frame img{
  height:100% !important;
  width:auto !important;
  max-height:100% !important;
  max-width:none !important;
  left:0;
  transform:
    translateX(calc((var(--label-focus-x,50) - 50) * 0.32%))
    translateY(calc((var(--label-focus-y,50) - 50) * 0.14%)) !important;
}

/* Ensure FILL is visibly different for Game Gear. */
.bedroom-page .cart-skin-gamegear .template-label.label-fit-fill .template-label-art-frame img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

/* Better black backing for letterboxing in FIT mode. */
.bedroom-page .cartridge-template-cart .template-label.label-fit-fit{
  background:#050506 !important;
}


/* RDG V8.19.1c — JS owns final artwork geometry. */
.bedroom-page .cartridge-template-cart .template-label .template-label-art-frame{
  position:absolute!important;inset:0!important;overflow:hidden!important;display:block!important;
}
.bedroom-page .cartridge-template-cart .template-label .template-label-art-frame img{
  display:block!important;
}


/* RDG V8.19.1d — Stretch-to-fill artwork behavior */
.bedroom-page .cartridge-template-cart .template-label.label-fit-stretch .template-label-art-frame img{
  position:absolute!important;
  left:0!important;
  top:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  transform:none!important;
}


/* =========================================================
   RDG V8.19.4 — SNES real-template geometry
   Source template: 900 x 598 (aspect ratio 1.505)
   ========================================================= */

/* Preserve the actual SNES cartridge proportions instead of stretching it. */
.bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart{
  width:180px !important;
  height:120px !important;
  aspect-ratio:900 / 598 !important;
}

/* The template PNG itself should be fully visible, never cropped. */
.bedroom-page .cart-skin-snes.cartridge-template-cart .cartridge-template-image{
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  transform:none !important;
}

/*
 Real SNES blank label area measured from the supplied 900x598 template:
 approx x=171..725, y=31..278.
*/
.bedroom-page .cart-skin-snes.cartridge-template-cart .template-label{
  left:19% !important;
  top:5.2% !important;
  width:62% !important;
  height:41.5% !important;
  border-radius:3px !important;
}

/* Stretch mode fills the complete physical SNES label window. */
.bedroom-page .cart-skin-snes .template-label.label-fit-stretch .template-label-art-frame img{
  width:100% !important;
  height:100% !important;
  object-fit:fill !important;
}

/* Keep the cartridge centered over its own title card/bay. */
.bedroom-page .bedroom-shelf .shelf-game > .cart-skin-snes.cartridge-template-cart{
  justify-self:center !important;
  align-self:end !important;
  margin-left:auto !important;
  margin-right:auto !important;
  transform:none !important;
}

/* Correct mobile ratio too. */
@media(max-width:720px){
  .bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart{
    width:164px !important;
    height:109px !important;
  }
}


/* =========================================================
   RDG V8.19.5 — SNES shelf alignment refinement
   ========================================================= */

/* Give mixed cartridge systems a little more breathing room. */
.bedroom-page .bedroom-shelf .game-shelf-row,
.bedroom-page .game-shelf-row{
  column-gap:14px !important;
}

/* SNES sits slightly higher and centered in its shelf bay. */
.bedroom-page .bedroom-shelf .shelf-game > .cart-skin-snes.cartridge-template-cart{
  position:relative !important;
  left:0 !important;
  top:-7px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  justify-self:center !important;
  align-self:end !important;
}

/* Keep the SNES title plate aligned with the other systems after lifting the shell. */
.bedroom-page .bedroom-shelf .shelf-game:has(.cart-skin-snes) h2{
  margin-top:-5px !important;
}

/* Slightly refine the actual SNES artwork window based on the current screenshot. */
.bedroom-page .cart-skin-snes.cartridge-template-cart .template-label{
  left:20.2% !important;
  top:7.2% !important;
  width:59.2% !important;
  height:36.8% !important;
}

/* Keep SNES visual weight balanced against taller Game Gear / NES carts. */
.bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart{
  width:176px !important;
  height:117px !important;
}

/* Avoid any inherited transforms from older mixed-system balancing rules. */
.bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart,
.bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart .cartridge-template-image{
  transform:none !important;
}

/* Mobile keeps the same geometry proportions. */
@media(max-width:720px){
  .bedroom-page .bedroom-shelf .cart-skin-snes.cartridge-template-cart{
    width:160px !important;
    height:106px !important;
    top:-5px !important;
  }
}


/* =========================================================
   RDG V8.19.6 — SNES public Game Room refinement
   ========================================================= */

/* More room between mixed cartridge systems on the shelf. */
.bedroom-page .bedroom-shelf.game-shelf-row{
  column-gap:24px !important;
}

/* Keep SNES cartridge centered and slightly separated from neighbors. */
.bedroom-page .bedroom-shelf .shelf-game > .cart-skin-snes.cartridge-template-cart{
  width:174px !important;
  height:116px !important;
  top:-6px !important;
  margin-left:6px !important;
  margin-right:6px !important;
}

/* Expand SNES artwork to the usable black label recess.
   This removes the undersized / floating look from the current screenshot. */
.bedroom-page .cart-skin-snes.cartridge-template-cart .template-label{
  left:17.8% !important;
  top:4.8% !important;
  width:64.4% !important;
  height:43.8% !important;
  border-radius:2px !important;
}

/* Auto / Fill continues to stretch full artwork into the entire label window. */
.bedroom-page .cart-skin-snes .template-label.label-fit-stretch .template-label-art-frame,
.bedroom-page .cart-skin-snes .template-label.label-fit-stretch .template-label-art-frame img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
}
.bedroom-page .cart-skin-snes .template-label.label-fit-stretch .template-label-art-frame img{
  object-fit:fill !important;
  object-position:center !important;
}

/* Preserve title-card alignment after shell spacing adjustment. */
.bedroom-page .bedroom-shelf .shelf-game:has(.cart-skin-snes) h2{
  margin-top:-4px !important;
}

/* Keep neighboring cards from visually colliding. */
.bedroom-page .bedroom-shelf .shelf-game{
  padding-left:4px !important;
  padding-right:4px !important;
}

@media(max-width:720px){
  .bedroom-page .bedroom-shelf.game-shelf-row{column-gap:16px !important}
  .bedroom-page .bedroom-shelf .shelf-game > .cart-skin-snes.cartridge-template-cart{
    width:158px !important;
    height:105px !important;
    margin-left:3px !important;
    margin-right:3px !important;
  }
}


/* =========================================================
   RDG V8.19.7 — Actual shelf-grid / SNES spacing fix
   The .wood-shelf grid owns cartridge spacing.
   ========================================================= */

@media(min-width:721px){
  /* Five equal cartridge bays with real spacing between them. */
  .bedroom-page .wood-shelf.game-shelf-row{
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    column-gap:32px !important;
    row-gap:0 !important;
    padding-left:28px !important;
    padding-right:28px !important;
  }

  /* Every game owns only its grid bay; cartridges cannot visually pull
     neighboring title plates toward them. */
  .bedroom-page .wood-shelf.game-shelf-row > .shelf-game{
    width:100% !important;
    min-width:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    justify-self:stretch !important;
  }

  /* SNES now fits inside a ~159px desktop bay instead of overflowing it. */
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-snes.cartridge-template-cart{
    width:158px !important;
    height:105px !important;
    top:-8px !important;
    left:0 !important;
    margin:0 auto !important;
    justify-self:center !important;
  }

  /* Preserve actual shell geometry. */
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-snes .cartridge-template-image{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    transform:none !important;
  }

  /* Use the real label recess and stretch artwork to it. */
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-snes .template-label{
    left:17.8% !important;
    top:4.8% !important;
    width:64.4% !important;
    height:43.8% !important;
  }

  /* Title card stays centered under the same grid bay. */
  .bedroom-page .wood-shelf.game-shelf-row .shelf-game:has(.cart-skin-snes) h2{
    width:100% !important;
    margin-top:-3px !important;
  }
}


/* =========================================================
   RDG V8.19.8 — Game Boy real-template geometry
   Keeps V8.19.7 SNES + Game Gear behavior unchanged.
   ========================================================= */

@media(min-width:721px){
  /* Preserve the actual GB shell proportions and keep it centered in its bay. */
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-gb.cartridge-template-cart{
    width:126px !important;
    height:160px !important;
    top:0 !important;
    left:0 !important;
    margin:0 auto !important;
    justify-self:center !important;
    transform:none !important;
  }

  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-gb.cartridge-template-cart .cartridge-template-image{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    transform:none !important;
  }

  /* Expand artwork to the actual recessed Game Boy label panel. */
  .bedroom-page .cart-skin-gb.cartridge-template-cart .template-label{
    left:15.8% !important;
    top:27.5% !important;
    width:68.4% !important;
    height:49.8% !important;
    border-radius:2px !important;
  }

  /* Auto / Fill stretch the entire source artwork into the whole label area. */
  .bedroom-page .cart-skin-gb .template-label.label-fit-stretch .template-label-art-frame,
  .bedroom-page .cart-skin-gb .template-label.label-fit-stretch .template-label-art-frame img{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }

  .bedroom-page .cart-skin-gb .template-label.label-fit-stretch .template-label-art-frame img{
    object-fit:fill !important;
    object-position:center !important;
    transform:none !important;
  }
}

@media(max-width:720px){
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-gb.cartridge-template-cart{
    width:116px !important;
    height:147px !important;
  }
}


/* =========================================================
   RDG V8.19.8a — Game Boy label final refinement
   Slightly enlarges and raises the artwork window.
   ========================================================= */

@media(min-width:721px){
  .bedroom-page .cart-skin-gb.cartridge-template-cart .template-label{
    left:13.8% !important;
    top:25.7% !important;
    width:72.4% !important;
    height:53.8% !important;
    border-radius:2px !important;
  }
}

@media(max-width:720px){
  .bedroom-page .cart-skin-gb.cartridge-template-cart .template-label{
    left:13.8% !important;
    top:25.7% !important;
    width:72.4% !important;
    height:53.8% !important;
  }
}


/* =========================================================
   RDG V8.20.2 — Sega Genesis real-template geometry
   Template: 900 x 607
   Leaves Game Gear / SNES / GB rules untouched.
   ========================================================= */

@media(min-width:721px){
  /* Preserve the real Genesis cartridge aspect ratio. */
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-genesis.cartridge-template-cart{
    width:166px !important;
    height:112px !important;
    aspect-ratio:900 / 607 !important;
    top:-5px !important;
    left:0 !important;
    margin:0 auto !important;
    justify-self:center !important;
    transform:none !important;
  }

  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-genesis.cartridge-template-cart .cartridge-template-image{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    transform:none !important;
  }

  /* Real blank label panel begins just to the right of the built-in red GENESIS spine
     and fills nearly the full cartridge height. */
  .bedroom-page .cart-skin-genesis.cartridge-template-cart .template-label{
    left:21.4% !important;
    top:2.7% !important;
    width:65.6% !important;
    height:85.4% !important;
    border-radius:2px !important;
  }

  /* Auto / Fill stretches the complete box art into the full Genesis label panel. */
  .bedroom-page .cart-skin-genesis .template-label.label-fit-stretch .template-label-art-frame,
  .bedroom-page .cart-skin-genesis .template-label.label-fit-stretch .template-label-art-frame img{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }
  .bedroom-page .cart-skin-genesis .template-label.label-fit-stretch .template-label-art-frame img{
    object-fit:fill !important;
    object-position:center !important;
    transform:none !important;
  }
}

@media(max-width:720px){
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-genesis.cartridge-template-cart{
    width:150px !important;
    height:101px !important;
    aspect-ratio:900 / 607 !important;
  }
  .bedroom-page .cart-skin-genesis.cartridge-template-cart .template-label{
    left:21.4% !important;
    top:2.7% !important;
    width:65.6% !important;
    height:85.4% !important;
  }
}


/* =========================================================
   RDG V8.20.4 — Game Boy Advance real-template geometry
   Leaves Game Gear / SNES / GB / Genesis untouched.
   ========================================================= */

@media(min-width:721px){
  /* Keep the real wide GBA cartridge shape and center it in the shelf bay. */
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-gba.cartridge-template-cart{
    width:172px !important;
    height:110px !important;
    top:-2px !important;
    left:0 !important;
    margin:0 auto !important;
    justify-self:center !important;
    transform:none !important;
  }

  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-gba.cartridge-template-cart .cartridge-template-image{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    transform:none !important;
  }

  /* Expand artwork to the actual recessed GBA label panel. */
  .bedroom-page .cart-skin-gba.cartridge-template-cart .template-label{
    left:12.8% !important;
    top:25.2% !important;
    width:74.4% !important;
    height:52.8% !important;
    border-radius:2px !important;
  }

  /* Auto / Fill stretches the complete artwork into the whole label panel. */
  .bedroom-page .cart-skin-gba .template-label.label-fit-stretch .template-label-art-frame,
  .bedroom-page .cart-skin-gba .template-label.label-fit-stretch .template-label-art-frame img{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }

  .bedroom-page .cart-skin-gba .template-label.label-fit-stretch .template-label-art-frame img{
    object-fit:fill !important;
    object-position:center !important;
    transform:none !important;
  }
}

@media(max-width:720px){
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-gba.cartridge-template-cart{
    width:158px !important;
    height:101px !important;
  }
  .bedroom-page .cart-skin-gba.cartridge-template-cart .template-label{
    left:12.8% !important;
    top:25.2% !important;
    width:74.4% !important;
    height:52.8% !important;
  }
}


/* =========================================================
   RDG V8.20.7 — Game Boy Color real-template geometry
   Leaves Game Gear / SNES / GB / Genesis / GBA untouched.
   ========================================================= */

@media(min-width:721px){
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-gbc.cartridge-template-cart{
    width:124px !important;
    height:158px !important;
    top:0 !important;
    left:0 !important;
    margin:0 auto !important;
    justify-self:center !important;
    transform:none !important;
  }

  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-gbc.cartridge-template-cart .cartridge-template-image{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    transform:none !important;
  }

  /* Fill the actual recessed Game Boy Color label panel. */
  .bedroom-page .cart-skin-gbc.cartridge-template-cart .template-label{
    left:14.2% !important;
    top:28.0% !important;
    width:71.6% !important;
    height:48.6% !important;
    border-radius:2px !important;
  }

  .bedroom-page .cart-skin-gbc .template-label.label-fit-stretch .template-label-art-frame,
  .bedroom-page .cart-skin-gbc .template-label.label-fit-stretch .template-label-art-frame img{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }

  .bedroom-page .cart-skin-gbc .template-label.label-fit-stretch .template-label-art-frame img{
    object-fit:fill !important;
    object-position:center !important;
    transform:none !important;
  }
}

@media(max-width:720px){
  .bedroom-page .wood-shelf.game-shelf-row .cart-skin-gbc.cartridge-template-cart{
    width:114px !important;
    height:145px !important;
  }
  .bedroom-page .cart-skin-gbc.cartridge-template-cart .template-label{
    left:14.2% !important;
    top:28.0% !important;
    width:71.6% !important;
    height:48.6% !important;
  }
}


/* =========================================================
   RDG V8.20.7a — Game Boy Color final label refinement
   Slightly wider/taller and raised to reduce remaining border.
   ========================================================= */

@media(min-width:721px){
  .bedroom-page .cart-skin-gbc.cartridge-template-cart .template-label{
    left:12.8% !important;
    top:26.8% !important;
    width:74.4% !important;
    height:50.8% !important;
    border-radius:2px !important;
  }
}

@media(max-width:720px){
  .bedroom-page .cart-skin-gbc.cartridge-template-cart .template-label{
    left:12.8% !important;
    top:26.8% !important;
    width:74.4% !important;
    height:50.8% !important;
  }
}
