/* The tournament ID is the first field of every rendered table key, including moved and spectator seats. */
@layer menuArt2027 {
  html[data-gypsy-type] .neonGame[data-game="poker"][data-casino-table^="bobbydo777-freeroll-nov27:"] {
    --bobby-brass: #e1bd7f;
    --bobby-felt: #2d1320;
    --bobby-portrait: url('/tournament-art/bobby-special-portrait.webp');
    --bobby-deck: url('/tournament-art/bobby-special-deck.webp');
    --bobby-enamel: linear-gradient(158deg,#67404a 0%,#3a1a27 32%,#20121d 70%,#130e16 100%);
    --card-back-paint: var(--bobby-deck) !important;
    background:linear-gradient(180deg,#170a0d24,#170a0d08 64%,#120a13a6),
      url('/tournament-art/bobby-special-room.webp') center/cover no-repeat #21151a !important;
    @media (orientation:portrait) {
      background-position:center, center top clamp(8px,1.6dvh,14px) !important;
    }
    @media (orientation:landscape) {
      background-image:linear-gradient(180deg,#170a0d24,#170a0d08 64%,#120a13a6),
        url('/tournament-art/bobby-special-room-wide.webp') !important;
    }

    &[data-custom-felt]:not([data-custom-felt="red"]) {
      --bobby-felt: color-mix(in srgb, var(--personal-felt), #121624 30%);
    }
    & .waterfrontScene, & .waterfrontFeltTint { display:none !important; }
    & .casinoArena { background:transparent !important; }
    & .manhattanTable {
      display:block !important; position:absolute; pointer-events:none; z-index:0; box-sizing:border-box;
      left:var(--manhattan-left,1%); top:var(--manhattan-top,16%); width:var(--manhattan-width,98%); height:var(--manhattan-height,70%);
      padding:clamp(5px,1vmin,9px); border-radius:50%;
      border:1px solid #e5bb79;
      background:linear-gradient(145deg,#d6a085 0%,#703146 12%,#7d2b38 33%,#360e1d 57%,#9a4d59 76%,#371821 100%) !important;
      box-shadow:inset 0 1px 2px #ffe8bb8a, inset 0 -2px 3px #1a0910,0 3px 9px #090507b3;
    }
    & .manhattanTable::after {
      content:""; display:block; height:100%; width:100%; box-sizing:border-box; border-radius:inherit;
      border:1px solid #c39860; box-shadow:inset 0 0 16px #140713b3;
      background:radial-gradient(ellipse at 44% 28%,#ffffff08,transparent 52%,#080a1680),var(--bobby-felt) !important;
    }
    & .manhattanTable::before {
      content:""; position:absolute; inset:calc(clamp(5px,1vmin,9px) + 1px); z-index:1; border-radius:inherit;
      background:url('/tournament-art/emerald-baize.webp') center/185px 185px repeat;
      filter:grayscale(1) brightness(2.0); mix-blend-mode:soft-light; opacity:.52; pointer-events:none;
    }
    /* The renderer measures the open band between the community cards and the seated player's hand. */
    & .manhattanMark {
      --bobby-seal-size: clamp(66px,min(25vw,14dvh),134px);
      display:block !important; position:absolute !important; z-index:1; pointer-events:none;
      left:50% !important; right:auto !important; top:calc(var(--manhattan-brand-y,61%) + 10px) !important;
      transform:translate(-50%,-50%) !important; margin:0 !important;
      width:var(--bobby-seal-size) !important; height:var(--bobby-seal-size) !important; box-sizing:border-box;
      border-radius:50%; border:1px solid #d5ba82af;
      box-shadow:0 0 0 3px #29151c,0 0 0 4px #bda6718c,inset 0 0 0 3px #170f18;
      background:var(--bobby-portrait) center 22% / auto 106% no-repeat,
        repeating-conic-gradient(from 5deg,#a3563e 0 11deg,#612a2d 11deg 22deg) !important;
      color:transparent !important; font-size:0 !important; text-shadow:none; letter-spacing:normal;
    }
    & .manhattanMark::after {
      content:"Bobby Do"; position:absolute; left:50%; bottom:-4%; transform:translateX(-50%);
      border:1px solid #c2a06e; border-radius:3px; padding:.08em .55em .12em;
      color:#f8e5bf; background:linear-gradient(#43272a,#29131d);
      font:italic 700 clamp(12px,2.9vmin,18px)/1.1 Georgia,serif !important;
      letter-spacing:.025em; white-space:nowrap;
    }
    & .casinoCard.isBack {
      background:var(--bobby-deck) center/100% 100% no-repeat #211521 !important;
      border-color:#d8bb86 !important;
    }
    & .casinoCard.isBack .casinoCardBackMark { visibility:hidden !important; }
    & :is(.neonSeat .casinoPlayerPlate:not(.isInactiveOpponent),button.neonOpenSeat) {
      color:#fff6e8 !important; background:var(--bobby-enamel) !important;
    }
    & .casinoPlayerPlate:not(.isInactiveOpponent) b { color:#f1d797 !important; }
    & :is(.neonHeader > button:not(.royalAudioStatus),.royalTableMenu > summary,.casinoGlassButton,.luxBetPresets button) {
      background:var(--bobby-enamel) !important; border-color:#b59c78 !important; color:#fff7e7 !important;
    }
    & .casinoGlassButton.casinoPrimary {
      color:#30151d !important; text-shadow:none !important;
      background:linear-gradient(152deg,#fff1ce,#deba7c 48%,#b18650) !important;
    }
    & .casinoGlassButton[data-casino-action="fold"] { background:linear-gradient(155deg,#803143,#471d2b) !important; }
  }
  /* The special has dedicated room artwork. The normal View felt controls still work. */
  html:has(.neonGame[data-game="poker"][data-casino-table^="bobbydo777-freeroll-nov27:"]) #gameOptions.pokerViewDialog {
    & section:has(.pokerViewBackgrounds), & .pokerViewMotion {display:none !important;}
  }
}
