/* round-ring.css (20261125) - the dark recessed ring ("socket") around every small round button.
   The PC lobby bars already draw it (desktop-one-layout.css 20261112h C: a ::after ring behind .round-btn), and the PC
   game screen's side panels have it too. This file gives the same ring to the round buttons that had none:
     - phone lobby bottom bars (.tools .round-btn: DND, BRB, info, mute, leave room)
     - phone game / practice screen icon columns (#fod-icons: aim, fine aim, spin, ..., view, zoom, menu, sound)
     - phone game Players pane buttons (#mchat #mg-players-pane .tools)
   The ring is a ::after drawn behind the button (z-index -1) inside the button's bar, which is made its own stacking
   context (isolation) so the ring paints over the bar's background but under the button. It is absolutely positioned,
   so nothing in the layout moves. Pressing, hover, disabled and on/off (yellow DND / BRB) states never remove it.
   Layer "snk-ring" is declared third on games/*.html and play/*.html (after sb3d and snk-btn, which never touch round
   buttons), so these !important rules win over the later layers and the unlayered skins (for !important the earliest
   layer wins). Visual only. */
@layer snk-ring {
  /* bars that hold the buttons: own stacking context so the ring sits on top of the bar art */
  body.mobile #view-lobby .pane .tools,
  body.mobile #mchat #mg-players-pane .tools,
  #fod-icons .col { isolation: isolate !important; }

  body.mobile #view-lobby .pane .tools .round-btn,
  body.mobile #mchat #mg-players-pane .tools :is(button, .round, .round-btn),
  #fod-icons button { position: relative !important; overflow: visible !important; }

  body.mobile #view-lobby .pane .tools .round-btn::after,
  body.mobile #mchat #mg-players-pane .tools :is(button, .round, .round-btn)::after,
  #fod-icons button::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: -4px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    /* same colours as the PC lobby ring */
    background: linear-gradient(180deg, #08111c 0%, #16263a 55%, #2c3f56 100%) !important;
    box-shadow:
      inset 0 2px 3px rgba(0,0,0,.85),
      inset 0 -1px 1px rgba(200,220,240,.28),
      0 -1px 0 rgba(20,32,48,.35),
      0 1px 0 rgba(255,255,255,.45) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
  }
  /* the game icon columns are packed tighter (6px gap, 2-3px on the tight / short layouts): thinner ring so the rings
     of neighbouring buttons do not run into each other */
  #fod-icons button::after { inset: -3px !important; }
  #fod-icons .r.tight button::after { inset: -2px !important; }
  @media (max-height: 430px) { #fod-icons button::after { inset: -2px !important; } }
  /* a hidden button keeps no ring */
  #fod-icons button[hidden]::after { display: none !important; }
}

/* PC game screen, Players panel dock (Return to lobby, settings, sound, mute, info): the ring is drawn by
   desktop-one-layout.css, but pc-game-glass.css clips #lobby-return (overflow:hidden for its sheen), which cut its ring
   off. */
@layer snk-ring {
  html body.gameplay-page:not(.mobile) #side-players > .pane-main > .dock .round { overflow: visible !important; }
}
