/* Game landing pages (/spotthehippo/...). Loaded after home.css, which provides colors, footer, .btn, .play-badge. */
.gp-head { padding:12px 0; }
.gp-head-in { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; }
.gp-logo img { display:block; width:56px; height:auto; }
.gp-head-in { flex-wrap:nowrap; }
.lang { position:relative; margin:0; padding:0; border:0; border-radius:0; background:none; font-size:.95rem; --globe:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2c3 3 4.5 6.5 4.5 10S15 19 12 22c-3-3-4.5-6.5-4.5-10S9 5 12 2z'/%3E%3C/svg%3E"); }
.lang summary { display:flex; align-items:center; gap:8px; padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--fg); cursor:pointer; list-style:none; user-select:none; }
.lang summary::-webkit-details-marker { display:none; }
.lang summary::before { content:""; width:16px; height:16px; background:currentColor; -webkit-mask:var(--globe) center / contain no-repeat; mask:var(--globe) center / contain no-repeat; }
.lang summary::after { content:""; width:7px; height:7px; border:solid currentColor; border-width:0 2px 2px 0; transform:translateY(-2px) rotate(45deg); }
.lang[open] summary::after { transform:translateY(1px) rotate(-135deg); }
.lang ul { position:absolute; right:0; top:calc(100% + 6px); z-index:20; min-width:170px; margin:0; padding:6px; list-style:none; background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); }
.lang li a { display:block; padding:9px 14px; border-radius:10px; color:var(--fg); text-decoration:none; }
.lang li a:focus-visible, .lang summary:focus-visible { background:var(--accent); color:var(--accent-fg); }
.lang li a[aria-current] { font-weight:800; background:var(--band); }
@media (hover:hover) { .lang li a:hover, .lang summary:hover { background:var(--accent); color:var(--accent-fg); } }

.gp-hero { padding:16px 0 28px; text-align:center; background:linear-gradient(180deg, var(--hero-a), var(--bg)); margin-top:-6px; }
.gp-icon { display:block; width:128px; height:auto; margin:8px auto 16px; border-radius:28px; box-shadow:var(--shadow); }
.gp-hero h1 { font-size:clamp(1.9rem, 7vw, 3rem); }
.gp-tagline { max-width:40ch; margin:12px auto 20px; font-size:clamp(1.05rem, 3.5vw, 1.3rem); font-weight:600; }
.gp-hero .play-badge { margin:0 auto; }

.gp-shots h2, .gp-sec h2 { font-size:clamp(1.3rem, 4.5vw, 1.7rem); margin:28px 0 12px; }
.gp-shots h2 { margin-top:8px; }
.shots-wrap { position:relative; max-width:1560px; margin:0 auto; }
.shots { display:flex; justify-content:safe center; gap:12px; margin:0; padding:8px 20px 16px; list-style:none; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.shots::-webkit-scrollbar { display:none; }
.shots li { flex:0 0 auto; width:min(240px, 62vw); scroll-snap-align:center; }
.shots img { display:block; width:100%; height:auto; aspect-ratio:480 / 853; border-radius:16px; box-shadow:var(--shadow); background:var(--card); }
.shots-btn { position:absolute; top:calc(50% - 8px); transform:translateY(-50%); z-index:2; width:44px; height:44px; padding:0 0 4px; border:0; border-radius:50%; background:var(--card); color:var(--fg); font-size:2rem; line-height:1; box-shadow:var(--shadow); cursor:pointer; }
.shots-btn[hidden] { display:none; }
@media (hover:hover) { .shots-btn:hover { background:var(--accent); color:var(--accent-fg); } }
.shots-btn:focus-visible { background:var(--accent); color:var(--accent-fg); }
.shots-btn.prev { left:8px; }
.shots-btn.next { right:8px; }

.gp-sec { padding:24px 0 32px; }
.gp-sec .wrap { max-width:760px; }
.gp-sec h2:first-child { margin-top:0; }
.gp-sec ul { padding-left:1.2em; }
.gp-sec li { margin:.35em 0; }
.gp-alt { background:var(--band); }
.lead { font-size:1.15rem; font-weight:600; }
.small { font-size:.85rem; color:var(--muted); }
.gp-alt .small { color:var(--fg); opacity:.8; }

.gp-sec .chips { display:flex; flex-wrap:wrap; gap:8px; padding:0; list-style:none; }
.chips li { margin:0; padding:6px 14px; border-radius:999px; background:var(--card); border:1px solid var(--line); font-size:.95rem; }

details { margin:8px 0; padding:12px 16px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
summary { cursor:pointer; font-weight:700; }
details p { margin:.6em 0 0; }

.gp-foot { padding:32px 0 40px; margin-top:0; }
.gp-foot .wrap { display:block; }
.gp-foot nav { display:flex; flex-wrap:wrap; gap:8px 20px; margin-bottom:12px; }

/* full-screen screenshot viewer: close and arrows sit next to the picture */
.shots a { display:block; cursor:zoom-in; }
.lightbox { width:100vw; max-width:none; height:100vh; max-height:none; margin:0; padding:0; border:0; background:rgba(0,0,0,.88); }
.lightbox[open] { display:flex; align-items:center; justify-content:center; }
.lightbox::backdrop { background:rgba(0,0,0,.88); }
.lb-stage { position:relative; display:flex; align-items:center; gap:16px; }
.lb-figure { position:relative; }
.lightbox img { display:block; max-width:calc(100vw - 150px); max-height:92vh; width:auto; height:auto; border-radius:16px; touch-action:pan-y; user-select:none; -webkit-user-drag:none; }
.lb-close { position:absolute; top:-14px; right:-14px; width:40px; height:40px; padding:0 0 3px; border:0; border-radius:50%; background:var(--card); color:var(--fg); font-size:1.7rem; line-height:1; box-shadow:var(--shadow); cursor:pointer; z-index:2; }
@media (hover:hover) { .lb-close:hover { background:var(--accent); color:var(--accent-fg); } }
.lb-close:focus-visible { background:var(--accent); color:var(--accent-fg); }
.lightbox .shots-btn { position:static; transform:none; flex:0 0 auto; }
@media (max-width:640px) {
  .lightbox img { max-width:94vw; }
  .lightbox .shots-btn { position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; opacity:.85; }
  .lightbox .lb-prev { left:6px; }
  .lightbox .lb-next { right:6px; }
  .lb-close { top:8px; right:8px; }
}

/* no tap flash / sticky highlight on touch devices */
.shots-btn, .lb-close, .shots a, .lang summary, .lang a { -webkit-tap-highlight-color:transparent; }
.shots-btn:focus:not(:focus-visible), .lb-close:focus:not(:focus-visible) { outline:none; }
