/* Gaming page: Mount Vernon Gaming Studios + Let's Plays (markup: mtvernon-source/mvg.py, behavior: mv-gaming.js) */
.mvg-sec {
  --yellow: #fed031; --orange: #f48346; --ink: #0d0d0d; --line: rgba(255, 255, 255, .14); --muted: rgba(255, 255, 255, .66);
  position: relative; color: #fff; padding: clamp(56px, 8vw, 110px) 0; overflow: hidden;
}
.mvg-studios { background: #0b0b0b; }
.mvg-studios::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
.mvg-plays { background: #15111a; }
.mvg-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* headings */
.mvg-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.mvg-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mvg-eyebrow, .mvg-kicker { margin: 0 0 10px; font: 600 12px/1.3 "ibm-plex-mono", monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); }
.mvg-sec h2 { margin: 0; font: 400 clamp(36px, 6vw, 68px)/1 "Shrikhand", serif; color: #fff; }
.mvg-lede { margin: 14px 0 0; font: 400 clamp(18px, 2vw, 22px)/1.35 "new-spirit-condensed", serif; color: var(--muted); }
.mvg-head-actions { display: flex; flex-wrap: nowrap; gap: 12px; margin-top: 24px; width: max-content; max-width: calc(100vw - 48px); }   /* the three buttons on one row, past the heading's measure */
@media (max-width: 900px) { .mvg-head-actions { flex-wrap: wrap; width: auto; max-width: none; } }

/* buttons */
.mvg-btn, .mvg-sub { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  font: 700 17px/1 "new-spirit-condensed", serif; transition: transform .2s cubic-bezier(.2, 1.6, .4, 1), background .2s, color .2s; }
.mvg-btn { background: var(--yellow); color: var(--ink); border: 2px solid var(--yellow); }
.mvg-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.mvg-sub { background: #ff0033; color: #fff; border: 2px solid #ff0033; }
.mvg-sub--ghost { background: transparent; border-color: rgba(255, 255, 255, .4); }
.mvg-sub--ghost .mvg-yt { color: #ff0033; }
.mvg-sub--big { height: 56px; padding: 0 28px; font-size: 19px; }
.mvg-btn:hover, .mvg-sub:hover { transform: translateY(-2px) scale(1.03); }
.mvg-btn:focus-visible, .mvg-sub:focus-visible, .mvg-mod:focus-visible, .mvg-card:focus-visible, .mvg-tab:focus-visible, .mvg-poster:focus-visible, .mvg-more:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 3px; }
.mvg-yt { width: 24px; height: 24px; flex: none; }

/* studio: player + mod picker */
.mvg-studio { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.mvg-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, .55); }
.mvg-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mvg-poster { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.mvg-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.mvg-poster:hover img { transform: scale(1.03); filter: brightness(1.08); }
.mvg-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); }
.mvg-play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); }
.mvg-poster:hover .mvg-play, .mvg-card:hover .mvg-play { transform: scale(1.1); }
.mvg-info { padding: 22px 4px 0; min-height: 150px; }
.mvg-info h3 { margin: 0; font: 400 clamp(26px, 3vw, 36px)/1.1 "Shrikhand", serif; }
.mvg-blurb { margin: 10px 0 18px; max-width: 640px; font: 400 19px/1.4 "new-spirit-condensed", serif; color: var(--muted); }
.mvg-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mvg-count { margin-right: 6px; font: 500 13px/1 "ibm-plex-mono", monospace; letter-spacing: .06em; color: var(--muted); }
.mvg-count b { color: #fff; font-size: 18px; }

.mvg-mods { display: flex; flex-direction: column; gap: 10px; }
.mvg-mod { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); color: #fff; transition: border-color .2s, background .2s, transform .2s; }
.mvg-mod img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; display: block; }
.mvg-mod b { display: block; font: 400 18px/1.15 "Shrikhand", serif; }
.mvg-mod small { display: block; margin-top: 5px; font: 500 11px/1.3 "ibm-plex-mono", monospace; letter-spacing: .04em; color: var(--muted); }
.mvg-mod em { font: 600 12px/1 "ibm-plex-mono", monospace; font-style: normal; color: var(--yellow); white-space: nowrap; }
.mvg-mod:hover { border-color: rgba(255, 255, 255, .35); transform: translateX(-3px); }
.mvg-mod.is-on { border-color: var(--yellow); background: rgba(254, 208, 49, .09); }

/* video card rows */
.mvg-row { margin-top: clamp(44px, 6vw, 72px); }
.mvg-row-h { margin: 0 0 18px; font: 600 13px/1 "ibm-plex-mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.mvg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.mvg-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc((100% - 2 * clamp(14px, 2vw, 24px)) * 2 / 3 + clamp(14px, 2vw, 24px)); }
.mvg-card { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.mvg-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.mvg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.mvg-card:hover .mvg-thumb img { transform: scale(1.05); }
.mvg-thumb .mvg-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.mvg-thumb .mvg-play::after { left: 21px; top: 16px; border-width: 10px 0 10px 15px; }
.mvg-card-title { margin-top: 6px; font: 700 18px/1.25 "new-spirit-condensed", serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mvg-card-meta { font: 500 12px/1 "ibm-plex-mono", monospace; letter-spacing: .06em; color: var(--muted); }
.mvg-more { display: inline-block; margin-top: 22px; font: 600 13px/1.3 "ibm-plex-mono", monospace; letter-spacing: .08em; color: var(--yellow); text-decoration: none; border-bottom: 1.5px solid currentColor; }

/* let's plays */
.mvg-tabs { display: flex; gap: 10px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.mvg-tab { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 20px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: #fff; font: 400 19px/1 "Shrikhand", serif; transition: border-color .2s, background .2s; }
.mvg-tab small { font: 500 11px/1 "ibm-plex-mono", monospace; letter-spacing: .06em; color: var(--muted); }
.mvg-tab.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.mvg-tab.is-on small { color: rgba(0, 0, 0, .65); }

/* popup player */
.mvg-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .86); }
.mvg-modal[hidden] { display: none; }
.mvg-modal-box { position: relative; width: min(1100px, 100%, calc((100vh - 120px) * 16 / 9)); }
.mvg-modal-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.mvg-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mvg-modal-x { position: absolute; right: 0; top: -56px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: transparent; cursor: pointer; }
.mvg-modal-x::before, .mvg-modal-x::after { content: ""; position: absolute; left: 11px; top: 19px; width: 18px; height: 2px; background: #fff; transform: rotate(45deg); }
.mvg-modal-x::after { transform: rotate(-45deg); }
html.mvg-locked { overflow: hidden; }

@media (max-width: 900px) {
  .mvg-studio { grid-template-columns: 1fr; }
  .mvg-mods { order: -1; flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mvg-mod { flex: none; width: min(78vw, 300px); scroll-snap-align: start; }
  .mvg-mod:hover { transform: none; }
  .mvg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mvg-cards--two { max-width: none; }
}
@media (max-width: 560px) {
  .mvg-cards, .mvg-cards--two { grid-template-columns: 1fr; }
  .mvg-head--row .mvg-sub--big { width: 100%; justify-content: center; }
  .mvg-btn, .mvg-sub { flex: 1 1 auto; justify-content: center; }
  .mvg-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .mvg-play::after { left: 26px; top: 20px; border-width: 12px 0 12px 19px; }
}
@media (prefers-reduced-motion: reduce) { .mvg-sec * { transition: none !important; } }
/* the site theme colors h3 black; keep ours readable */
.mvg-sec .mvg-info h3, .mvg-sec .mvg-studio h3 { color: #fff; }
.mvg-sec h3.mvg-row-h { color: var(--yellow); }
.mvg-sec p.mvg-lede, .mvg-sec p.mvg-blurb { color: var(--muted); }
.mvg-sec p.mvg-eyebrow, .mvg-sec p.mvg-kicker { color: var(--yellow); }
/* Patreon */
.mvg-btn.mvg-patreon { background: #ff424d; border-color: #ff424d; color: #fff; }
.mvg-pt { width: 18px; height: 18px; flex: none; }
/* the orange band between the game and the mods: a thin stripe */
section.page-section.mvg-band, .mvg-band .content-wrapper { min-height: 0 !important; height: 14px !important; padding: 0 !important; }
.mvg-band .fluid-engine { display: none; }

/* Work with us: collabs, Mount Vernon Studio projects, game help (all to gaming@mtvernon.co) */
.mvg-work { background: #0b0b0b; border-top: 1px solid var(--line); }
.mvg-work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.mvg-work-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgba(254, 208, 49, .07), rgba(244, 131, 70, .03) 60%, transparent), #141016; border: 1px solid var(--line);
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), border-color .2s, box-shadow .25s; }
.mvg-work-card:hover, .mvg-work-card:focus-visible { transform: translateY(-4px); border-color: rgba(254, 208, 49, .55); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 60px -20px var(--yellow); }
.mvg-work-ico { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: rgba(254, 208, 49, .12); color: var(--yellow); }
.mvg-sec .mvg-work-card h3 { margin: 4px 0 0; font: 400 26px/1.1 "Shrikhand", serif; letter-spacing: 0; text-transform: none; color: #fff; }
.mvg-work-card p { margin: 0; font: 400 18px/1.4 "new-spirit-condensed", serif; color: var(--muted); }
.mvg-work-go { margin-top: auto; padding-top: 10px; font: 700 13px/1 "ibm-plex-mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.mvg-work-mail { margin: 26px 0 0; font: 400 18px/1.4 "new-spirit-condensed", serif; color: var(--muted); }
.mvg-work-mail a { color: var(--yellow); }
