/* The Money Pit game page: /oak-island-money-pit-game
   Same fixed-background hero as the Stone Decoder and the Money Pit Map: the image stays put while
   the opaque body scrolls over it. Play is the first thing on the page; the game opens over it in a
   full-screen layer (desktop) or on its own page (phones). */

.c-mpg__hero {
    position: relative; z-index: 1; min-height: min(88svh, 820px);
    display: flex; align-items: flex-end; justify-content: center;
    text-align: center; padding: calc(var(--nav-height) + 40px) 20px 56px; overflow: hidden;
}
.c-mpg__hero-bg { position: absolute; inset: 0; z-index: 0; }
.c-mpg__hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.c-mpg__hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse at 50% 38%, rgba(10,10,10,0) 0%, rgba(10,10,10,0.25) 55%, rgba(10,10,10,0.55) 100%),
        linear-gradient(to bottom, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.1) 35%, rgba(10,10,10,0.75) 72%, rgba(10,10,10,1) 100%);
}
.c-mpg__hero-bg, .c-mpg__hero-overlay { position: fixed; inset: 0 0 auto 0; height: var(--hero-h, min(88svh, 820px)); }
.c-mpg__hero-content { position: relative; z-index: 2; max-width: 900px; }

.c-mpg__label {
    display: block; color: var(--accent); text-transform: uppercase; letter-spacing: 3px;
    font-size: 0.75rem; font-family: var(--font-display); margin-bottom: 10px;
}
/* Title, lede, Play and facts share the title's width; the lede and facts never widen it */
.c-mpg__lockup { display: inline-grid; justify-items: stretch; max-width: 100%; }
.c-mpg__lockup .c-mpg__lede, .c-mpg__lockup .c-mpg__facts { contain: inline-size; width: 100%; }
.c-mpg__lockup .c-mpg__title { white-space: nowrap; font-size: clamp(1.9rem, 8.4vw, 5rem); }
.c-mpg__lockup .c-mpg-play { width: 100%; justify-content: center; }
.c-mpg__title { font-size: clamp(2.6rem, 9vw, 5rem); color: #fff; text-shadow: var(--shadow-text); margin: 0 0 12px; line-height: 1.05; }
.c-mpg__hero .c-mpg__lede { color: var(--text-primary); font-size: clamp(1rem, 2.6vw, 1.2rem); line-height: 1.6; margin: 0 auto 28px; max-width: 560px; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }

/* The play button: the biggest thing on the page after the title */
.c-mpg .c-mpg-play {
    display: inline-flex; align-items: center; gap: 14px; padding: 18px 48px; min-height: 60px;
    font-size: 1rem; letter-spacing: 3px; color: #0a0a0a; background: var(--accent); border: 1px solid var(--accent);
    backdrop-filter: none; box-shadow: 0 10px 34px rgba(201,169,98,0.28);
}
.c-mpg .c-mpg-play:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #0a0a0a; transform: translateY(-2px); }
.c-mpg-play__icon { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #0a0a0a; }
.c-mpg-play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.c-mpg__facts { margin: 14px 0 0; color: var(--text-muted); font-size: 0.82rem; font-style: italic; }

/* Everything after the hero sits in full-width opaque blocks so the fixed hero never shows through */
.c-mpg__body { position: relative; z-index: 2; width: 100%; background: var(--bg-dark); display: flow-root; }
.c-mpg .c-briefing { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.c-mpg .c-briefing__inner { margin: 0; }

/* Screenshots: four tall frames edge to edge; on phones a swipeable strip */
.c-mpg__shots { max-width: 760px; margin: 0 auto; padding: var(--space-md) 20px 0; }
.c-mpg__shot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.c-mpg__shot { margin: 0; border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; background: #070606; box-shadow: var(--shadow-md); }
.c-mpg__shot img { display: block; width: 100%; height: auto; }

.c-mpg__section { max-width: var(--container-max); margin: 0 auto; padding: var(--space-lg) 20px 0; }
.c-mpg__h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); color: #fff; margin: 0 0 14px; }
.c-mpg__h3 { font-size: 1rem; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px; }
.c-mpg__section .c-mpg__lede { color: var(--text-muted); max-width: 720px; line-height: 1.7; margin: 0 0 12px; }

.c-mpg__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.c-mpg__card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; }
.c-mpg__keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--text-primary); line-height: 1.7; font-size: 0.95rem; }
.c-mpg kbd, .c-mpg__tnt {
    display: inline-block; min-width: 28px; padding: 1px 7px; margin-right: 4px; text-align: center;
    border: 1px solid var(--border-light); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-elevated);
    font-family: var(--font-display); font-size: 0.8rem; color: #fff; line-height: 1.6;
}
.c-mpg__tnt { color: #e07a5a; border-color: rgba(224,122,90,0.55); }

/* Your finds: dug up in the game, they light up here and link to their records */
.c-mpg__count { color: var(--text-primary); margin: 6px 0 18px; line-height: 1.6; }
.c-mpg__find-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.c-mpg-find__box { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 68px; border: 1px dashed rgba(255,255,255,0.1); border-radius: 8px; color: var(--text-faint); text-decoration: none; }
.c-mpg-find.is-found .c-mpg-find__box { border: 1px solid rgba(201,169,98,0.4); background: var(--bg-card); color: var(--text-primary); transition: border-color var(--transition-fast), transform var(--transition-fast); }
.c-mpg-find.is-found a.c-mpg-find__box:hover, .c-mpg-find.is-found a.c-mpg-find__box:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.c-mpg-find__icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px; background: #0a0a0a; }
.c-mpg-find__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.c-mpg-find__name { font-family: var(--font-display); font-size: 0.85rem; line-height: 1.3; }
.c-mpg-find__sub { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }
.c-mpg-find:not(.is-found) .c-mpg-find__sub { color: var(--text-faint); }

.c-mpg__story { padding-top: var(--space-lg); }
.c-mpg__closing { text-align: center; padding: var(--space-md) 20px var(--space-lg); }

/* The game over the page */
html.c-mpg-open, html.c-mpg-open body { overflow: hidden; }
.c-mpg-layer {
    position: fixed; inset: 0; z-index: 1000; background: rgba(5,5,5,0.97);
    opacity: 0; transition: opacity 0.22s ease;
}
.c-mpg-layer.is-open { opacity: 1; }
.c-mpg-layer__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0a0a0a; }
.c-mpg-layer__close {
    position: absolute; z-index: 2; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-light); background: rgba(17,19,24,0.9);
    color: var(--text-primary); font-size: 28px; line-height: 1; cursor: pointer;
}
.c-mpg-layer__close:hover, .c-mpg-layer__close:focus-visible { border-color: var(--accent); color: var(--accent); }
/* narrow screens: the game shows its own close button in its top bar */
@media (max-width: 979px) { .c-mpg-layer__close { display: none; } }

@media (max-width: 900px) {
    .c-mpg__shot-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .c-mpg__shot { scroll-snap-align: start; }
}
@media (max-width: 768px) {
    .c-mpg__hero { min-height: 86svh; padding-bottom: 40px; }
    .c-mpg__hero-bg, .c-mpg__hero-overlay { height: var(--hero-h, 86svh); }
    .c-mpg__hero-bg img { object-position: 52% 22%; }
    .c-mpg__hero .c-mpg__lede { font-size: 1rem; margin-bottom: 22px; }
    .c-mpg__shots, .c-mpg__section { padding-left: 16px; padding-right: 16px; padding-top: var(--space-md); }
    .c-mpg__cards { grid-template-columns: 1fr; }
    .c-mpg__find-list { grid-template-columns: 1fr 1fr; }
    .c-mpg-find__box { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .c-mpg-layer, .c-mpg-find.is-found .c-mpg-find__box { transition: none; }
}

/* Also on iPhone (2026-11-03): one line */
.c-mpg__ios { max-width: var(--container-max); margin: 0 auto; padding: var(--space-md) 20px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; color: var(--text-muted); font-size: 0.95rem; }
.c-mpg__ios a { display: inline-flex; align-items: center; min-height: 44px; line-height: 0; color: var(--accent); text-decoration: none; }
.c-mpg__ios a img { height: 40px; width: auto; }
