/* The play page on a computer with a mouse (approved board D2-Play): a blurred Pack Hall behind, the phone at full height in the middle,
   Back to site with its Esc key, the logo, the mouse hints on the left and the account note on the right. The page links this file with the
   same media query and every rule sits inside it again, so a phone never uses any of it and draws the game exactly as index.html does. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  /* The phone: full height less the frame and a margin, in the board's 374 x 832 shape. */
  body.live { --ph: clamp(540px, calc(100dvh - 68px), 1200px); --pw: calc(var(--ph) * 374 / 832); background: #05060A; }
  /* Shown here only: the play page hides both with a one-line style in its head (game.css forces [hidden], so that attribute can't be used). */
  body.live .pp-bg, body.live .pp { display: block; }

  .pp-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  .pp-bg::before { content: ''; position: absolute; inset: -40px; background: url(img/hall_wide_red.jpg) center / cover no-repeat; filter: blur(18px) brightness(.34) saturate(1.15); }
  .pp-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 34% 60% at 50% 50%, rgba(5,6,10,0) 0%, rgba(5,6,10,.55) 70%, rgba(5,6,10,.85) 100%); }

  body.live .page { box-sizing: border-box; position: relative; z-index: 1; min-height: 100dvh; padding: 24px 0; justify-content: center; }
  body.live .phone { width: var(--pw); height: var(--ph); border-radius: 46px; box-shadow: none; }
  body.live .page::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: calc(var(--pw) + 20px); height: calc(var(--ph) + 20px); transform: translate(-50%, -50%); border-radius: 56px; background: linear-gradient(150deg, #E0E4EC 0%, #6A7284 30%, #262B36 55%, #A3ABBA 100%); box-shadow: 0 50px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08), 0 0 140px rgba(255,90,78,.22); }
  body.live .site-foot { display: none; }

  /* Over the page: only the links and notes take the mouse; the rest lets it through to the game. */
  .pp { position: fixed; inset: 0; z-index: 2; pointer-events: none; color: #F4F6FB; font-family: 'Exo 2', system-ui, sans-serif; }
  .pp a, .pp aside { pointer-events: auto; }
  .pp-back { position: absolute; left: 32px; top: 28px; display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px 0 14px; background: rgba(17,21,33,.88); color: #F4F6FB; font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
  .pp-back:hover { background: rgba(30,36,54,.95); }
  .pp-back:focus-visible { outline: 3px solid #FFD978; outline-offset: -5px; }
  .pp-back kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.28); border-bottom-width: 2px; border-radius: 5px; font: 800 11px/1 'Exo 2', sans-serif; color: #E3E7EF; }
  .pp-logo { position: absolute; right: 36px; top: 38px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .pp-logo:focus-visible { outline: 3px solid #FFD978; outline-offset: 4px; }
  .pp-wm { font-family: Poppins, sans-serif; font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: -0.02em; }
  .pp-wm span:first-child { color: #FFFFFF; }
  .pp-wm span:last-child { color: #F5B947; }

  /* The notes sit in the space beside the phone and step aside when that space gets too narrow for them. */
  .pp-side { position: absolute; top: 0; bottom: 0; width: calc(50% - (var(--pw) + 20px) / 2 - 24px); padding-top: 33.3vh; container-type: inline-size; }
  .pp-l { left: 0; }
  .pp-r { right: 0; }
  .pp-aside { width: min(300px, 100% - 48px); margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
  .pp-r .pp-aside { gap: 14px; }
  @container (max-width: 340px) { .pp-aside { display: none; } }
  .pp-k { font: 700 12px/1 'Exo 2', sans-serif; letter-spacing: .18em; color: #FF6A5E; }
  .pp-tip { display: flex; gap: 14px; align-items: flex-start; }
  .pp-tip svg { flex: none; }
  .pp-aside p { margin: 0; color: #D5DBE8; font-size: 15px; line-height: 1.5; }
  .pp-aside b { color: #FFFFFF; }
  .pp-r p { line-height: 1.55; }
  .pp-r .pp-fine { color: #8F98AD; font-size: 13px; }
}
