/* minibia.com's /css/device-showcase.css, recoloured to Minibia Idle's blue by tools/idle/minibia-css-recolor.js. Edit Idle's look in site/idle.css, not here. */
/* Shared desktop, landscape-phone and portrait-phone gameplay showcase. */
.home-device-showcase { min-width: 0; width: 100%; }
.home-device-stage { position: relative; width: 100%; aspect-ratio: 1.4; background: none; }
.home-device-stage::after { content: ''; position: absolute; z-index: 0; width: 70%; height: 6%; bottom: 2%; left: 6%; border-radius: 50%; background: #0105086b; filter: blur(8px); pointer-events: none; }
.home-device-frame { position: absolute; z-index: 1; padding: 0; cursor: zoom-in; line-height: 0; background: #050e15; box-shadow: 0 18px 36px #00000077, inset 0 1px #d9dfb52b; transition: border-color .2s, box-shadow .2s; }
.home-device-frame:hover { border-color: #adb38a; box-shadow: 0 20px 38px #00000088, 0 0 25px #b8ad5410; }
.home-device-frame img { display: block; width: 100%; height: auto; border-radius: inherit; }
.device-frame-desktop { --device-bezel: 3px; top: 3%; right: 10%; width: 82%; padding: 12px 7px 15px; border: var(--device-bezel) solid #67859e; border-radius: 12px 12px 5px 5px; background: #040c12; box-shadow: 0 10px 26px #00000055, 0 0 0 1px #92a7b933, inset 0 1px #b3c2ce22; }
.device-frame-desktop::before { content: ''; position: absolute; width: 4px; height: 4px; top: 3px; left: calc(50% - 2px); border-radius: 50%; background: #0e1f2c; box-shadow: 0 0 0 1px #7590a6; }
.device-frame-desktop img { border-radius: 2px; box-shadow: 0 0 0 1px #1f415c33; }
/* The SVG rear edge spans the outer display; its front lip widens in perspective. */
.device-laptop-base { position: absolute; left: calc(0px - var(--device-bezel)); top: calc(100% + var(--device-bezel) - 1px); width: calc(100% + var(--device-bezel) + var(--device-bezel)); height: auto; overflow: visible; filter: drop-shadow(0 10px 8px #00000044); pointer-events: none; }
.device-frame-mobile { bottom: 3%; left: 1%; z-index: 2; width: 65%; border: 3px solid #5e7c94; border-radius: 22px; padding: 7px 18px; transform: rotate(-3deg); }
.device-frame-mobile::before { content: ''; position: absolute; left: 7px; top: calc(50% - 14px); width: 3px; height: 28px; background: #3c729e8c; border-radius: 4px; }
.device-frame-portrait { right: 0; bottom: 6%; width: 23%; z-index: 2; padding: 12px 5px 9px; border: 3px solid #67859e; border-radius: 21px; transform: rotate(3deg); box-shadow: 0 13px 24px #00000088, inset 0 1px #ddc7ae30; }
.device-frame-portrait::before { content: ''; position: absolute; top: 4px; left: calc(50% - 11px); width: 22px; height: 3px; border-radius: 3px; background: #386b95; }
.device-frame-portrait .home-device-screen { border-radius: 8px; }
@media (max-width: 600px) { .device-frame-portrait { width: 26%; bottom: 5%; border-width: 2px; padding: 9px 3px 6px; border-radius: 14px; } .device-frame-portrait::before { top: 3px; height: 2px; width: 15px; left: calc(50% - 7.5px); } }
.home-device-screen { position: relative; display: block; overflow: hidden; border-radius: 8px; }
.home-device-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; }
.home-device-screen video.has-frame { opacity: 1; }
.home-device-caption { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px 9px; color: #9aaebf; font-size: .75rem; line-height: 1.6; text-align: center; margin: 12px 0 0; }
.home-device-caption span { white-space: nowrap; }
.home-device-caption span + span::before { content: '·'; padding-right: 9px; }
.home-device-showcase .home-device-frame:focus-visible { outline: 2px solid #f0d594; outline-offset: 4px; }
.home-device-frame:focus-visible { z-index: 3; }

.home-screenshot-dialog { width: min(1200px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 18px; border: 1px solid #59758b; border-radius: 10px; background: #091722; color: #f0e8df; }
.home-screenshot-dialog::backdrop { background: #02080ce8; }
body.home-preview-open { overflow: hidden; }
.home-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home-screenshot-dialog .home-preview-heading h2 { margin: 0; font: 1rem / 1.4 'Cinzel', Georgia, serif; }
.home-preview-close { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 88px; padding: 8px 14px; border: 1px solid #366b96; border-radius: 5px; background: #132c41; color: #ecdfb9; font: inherit; cursor: pointer; }
.home-screenshot-dialog > img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 4px; }
.home-screenshot-dialog > video { display: block; width: 100%; max-height: 75vh; border-radius: 4px; background: #04080c; }
.home-screenshot-dialog[data-preview=portrait] { width: min(440px, calc(100% - 32px)); }
.home-screenshot-dialog[data-preview=portrait] > img { width: auto; max-width: 100%; max-height: 75vh; margin-inline: auto; object-fit: contain; }
.home-screenshot-dialog > [hidden] { display: none; }

@media (max-width: 900px) {
  .home-device-showcase { width: min(100%, 640px); justify-self: center; }
}
@media (max-width: 600px) {
  .device-frame-desktop { --device-bezel: 2px; padding: 8px 4px 10px; border-radius: 8px 8px 4px 4px; }
  .device-frame-desktop::before { width: 3px; height: 3px; top: 2px; }
  .home-device-stage { aspect-ratio: 1.2; }
  .home-device-caption { flex-direction: column; gap: 2px; }
  .home-device-caption span + span::before { content: none; }
  .device-frame-mobile { width: 66%; border-width: 2px; border-radius: 16px; padding: 5px 13px; }
  .device-frame-mobile::before { left: 4px; width: 2px; height: 22px; top: calc(50% - 11px); }
  .home-device-screen { border-radius: 5px; }
  .home-screenshot-dialog { padding: 12px; width: calc(100% - 16px); }
}
@media (prefers-reduced-motion: reduce) { .home-device-frame { transition: none; } }

/* Today's moments in the devices (owner 2026-10-03: "If we showcase the shorrs inside these mockups it would cover two
   use cases"; POC, /js/home-device-moments.js): a short plays in each screenshot's game view, and the UI over the game
   view is drawn again above it from the same picture. */
/* one device's short, invisible (the screenshot as it is) until its video plays, then a short fade in */
.home-device-screen .device-moment { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; }
.home-device-screen .device-moment.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .home-device-screen .device-moment { transition: opacity .4s ease; } }
.home-device-screen .device-live { position: absolute; z-index: 1; overflow: hidden; background: #030b11; pointer-events: none; }
.home-device-screen .device-live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.home-device-screen .device-over { position: absolute; z-index: 2; background-repeat: no-repeat; pointer-events: none; }
.home-device-screen .device-under { position: absolute; z-index: 1; background: #264865 none repeat; pointer-events: none; }
.home-device-screen .device-over.is-round { border-radius: 50%; }
.device-screen-laptop { border-radius: 2px; }
