/* StakeQuiz 1.1.91 - precise mobile game layout, based on current app.zip */

/* Only the game page is changed. No generic avatar/pot DOM scanner is used. */
@media (orientation: landscape) {
  html.sq-coarse-pointer body.game-page .center-question,
  body.game-page.sq-mobile-preview .center-question {
    width: 67% !important;
    max-width: 780px !important;
    min-width: 0 !important;
    max-height: 66% !important;
    padding: 11px 14px 10px !important;
    border-radius: 17px !important;
    overflow: auto !important;
    box-sizing: border-box !important;
    background: linear-gradient(165deg,rgba(3,20,34,.98),rgba(2,10,20,.985)) !important;
    border: 1px solid rgba(56,190,225,.38) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.48), 0 0 26px rgba(38,214,245,.08) !important;
  }

  html.sq-coarse-pointer body.game-page .center-question h2,
  body.game-page.sq-mobile-preview .center-question h2 {
    font-size: clamp(18px,4.25vh,27px) !important;
    line-height: 1.13 !important;
    font-weight: 850 !important;
    padding: 0 42px !important;
    margin: 3px 0 9px !important;
    text-wrap: balance !important;
  }

  html.sq-coarse-pointer body.game-page .center-question .eyebrow,
  body.game-page.sq-mobile-preview .center-question .eyebrow {
    font-size: clamp(8px,1.75vh,11px) !important;
    line-height: 1.1 !important;
    margin: 0 34px 4px !important;
    letter-spacing: .09em !important;
  }

  html.sq-coarse-pointer body.game-page .countdown-ring,
  body.game-page.sq-mobile-preview .countdown-ring {
    width: 38px !important;
    height: 38px !important;
    right: 7px !important;
    top: 7px !important;
    font-size: 12px !important;
  }

  html.sq-coarse-pointer body.game-page .answers,
  body.game-page.sq-mobile-preview .answers {
    gap: 6px 7px !important;
  }

  html.sq-coarse-pointer body.game-page .answers button,
  body.game-page.sq-mobile-preview .answers button {
    min-height: 47px !important;
    padding: 6px 9px !important;
    border-radius: 10px !important;
    font-size: clamp(12px,2.45vh,16px) !important;
    line-height: 1.12 !important;
    gap: 8px !important;
  }

  html.sq-coarse-pointer body.game-page .answers button span,
  body.game-page.sq-mobile-preview .answers button span {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    min-height: 31px !important;
    flex: 0 0 31px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  html.sq-coarse-pointer body.game-page .answers button b,
  body.game-page.sq-mobile-preview .answers button b {
    font-size: inherit !important;
    line-height: 1.12 !important;
  }

  html.sq-coarse-pointer body.game-page .answer-status,
  body.game-page.sq-mobile-preview .answer-status {
    min-height: 13px !important;
    margin-top: 4px !important;
    font-size: clamp(8px,1.65vh,10px) !important;
    line-height: 1.15 !important;
  }

  html.sq-coarse-pointer body.game-page .spectator-seat-controls,
  html.sq-coarse-pointer body.game-page .sitgo-seat-controls,
  body.game-page.sq-mobile-preview .spectator-seat-controls,
  body.game-page.sq-mobile-preview .sitgo-seat-controls {
    margin-top: 6px !important;
    padding: 6px 8px !important;
    gap: 7px !important;
    border-radius: 10px !important;
  }

  html.sq-coarse-pointer body.game-page .spectator-mode-label,
  html.sq-coarse-pointer body.game-page .sitgo-waiting-count,
  body.game-page.sq-mobile-preview .spectator-mode-label,
  body.game-page.sq-mobile-preview .sitgo-waiting-count {
    font-size: clamp(8px,1.6vh,10px) !important;
    line-height: 1.15 !important;
  }

  /* Player cards stay on the table ellipse. Only their content is enlarged. */
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat {
    gap: 4px !important;
    max-width: 126px !important;
    width: auto !important;
    min-width: 0 !important;
    transform: translate(-50%,-50%) !important;
  }

  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat .seat-avatar,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat .seat-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat .seat-avatar > img,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat .seat-avatar > img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
  }

  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat .seat-info,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat .seat-info {
    min-width: 55px !important;
    width: auto !important;
    max-width: 72px !important;
    padding: 3px 5px !important;
    border-radius: 8px !important;
    line-height: 1.05 !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg,rgba(5,20,33,.97),rgba(2,11,20,.97)) !important;
    border: 1px solid rgba(54,116,154,.62) !important;
    box-shadow: 0 7px 16px rgba(0,0,0,.36) !important;
    overflow: hidden !important;
  }

  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat .seat-info strong,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat .seat-info strong {
    max-width: 62px !important;
    font-size: 8.5px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat .seat-info span,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat .seat-info span {
    font-size: 7.4px !important;
    line-height: 1.02 !important;
    white-space: nowrap !important;
  }

  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat .seat-sqp-stars,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat .seat-sqp-stars {
    max-width: 62px !important;
    font-size: 6.7px !important;
    letter-spacing: -.25px !important;
    overflow: hidden !important;
  }

  /* Symmetric ten-seat layout. Keeps every card outside the question panel. */
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-1,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-1 { left:50% !important; top:3% !important; }
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-2,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-2 { left:76% !important; top:10% !important; }
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-3,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-3 { left:95% !important; top:30% !important; }
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-4,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-4 { left:95% !important; top:70% !important; }
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-5,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-5 { left:76% !important; top:91% !important; }
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-6,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-6 { left:50% !important; top:97% !important; }
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-7,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-7 { left:24% !important; top:91% !important; flex-direction:row-reverse !important; }
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-8,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-8 { left:5% !important; top:70% !important; flex-direction:row-reverse !important; }
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-9,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-9 { left:5% !important; top:30% !important; flex-direction:row-reverse !important; }
  html.sq-coarse-pointer body.game-page #poker-table #seats > .seat-10,
  body.game-page.sq-mobile-preview #poker-table #seats > .seat-10 { left:24% !important; top:10% !important; flex-direction:row-reverse !important; }

  /* Pot is always a small centered pill; never a horizontal table-wide strip. */
  html.sq-coarse-pointer body.game-page #poker-table #pot-stack,
  body.game-page.sq-mobile-preview #poker-table #pot-stack {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 150px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transform: translate(-50%,-50%) scale(.78) !important;
    transform-origin: center !important;
    z-index: 4 !important;
  }
  html.sq-coarse-pointer body.game-page #poker-table #pot-stack[hidden],
  body.game-page.sq-mobile-preview #poker-table #pot-stack[hidden] { display:none !important; }
}

/* Fallback for narrow landscape browsers where pointer type is not exposed. */
@media (orientation: landscape) and (max-width: 950px) {
  body.game-page .center-question { width:67% !important; max-height:66% !important; padding:10px 12px 9px !important; }
  body.game-page #poker-table #seats > .seat .seat-avatar { width:34px !important; height:34px !important; min-width:34px !important; min-height:34px !important; max-width:34px !important; max-height:34px !important; flex-basis:34px !important; aspect-ratio:1 / 1 !important; border-radius:50% !important; overflow:hidden !important; }
  body.game-page #poker-table #seats > .seat .seat-avatar > img { width:100% !important; height:100% !important; aspect-ratio:1 / 1 !important; object-fit:cover !important; border-radius:50% !important; }
}
