/* LUNA Reference Table 0.6.0 — visual reconstruction of the approved poker concept.
   Intentional DOM layout: .luna-ref-pot + .luna-ref-board + hero seat are independent.
   Scoped to poker only. No balance, timer, card identity, gameplay or server changes.
   The actual playing-card nodes, chip bets and actions are server-driven. */
@media (min-width:761px) {
 body:has(.luna-ref-community) { background: radial-gradient(ellipse 74% 90% at 58% 43%,#0b2c20 0%,#071b13 48%,#030c08 100%) !important; }
 body:has(.luna-ref-community) .main-game {
   box-sizing:border-box!important; margin:0 auto!important;
   max-width:1368px!important; width:calc(100% - 250px)!important;
   margin-left:max(74px,calc((100vw - 1368px)/2 + 42px))!important;margin-right:0!important;
   padding:18px 23px 44px!important;
 }
 body:has(.luna-ref-community) .game-heading {margin:0 0 10px!important;min-height:58px!important}
 body:has(.luna-ref-community) .game-heading h1 {font:400 clamp(29px,2.55vw,43px)/1.05 Georgia,'Times New Roman',serif!important;letter-spacing:-.8px!important}
 body:has(.luna-ref-community) .table-topline {margin:0 0 12px!important}
 body:has(.luna-ref-community) .game-layout {display:grid!important;grid-template-columns:minmax(0,1fr) 275px!important;gap:17px!important}
 body:has(.luna-ref-community) .game-aside {background:linear-gradient(162deg,#0c2119 0%,#071910 100%)!important;border:1px solid #987943!important;border-radius:12px!important;padding:15px 17px!important;box-shadow:0 16px 40px #0008!important}
 body:has(.luna-ref-community) .aside-heading h2 {font:400 30px/1.2 Georgia,serif!important}
 body:has(.luna-ref-community) .aside-summary {background:linear-gradient(144deg,#103a2a,#0b291f 65%,#0a1b15)!important;border:1px solid #a28a59!important;box-shadow:inset 0 1px 0 #f9e0aa20,0 8px 20px #0005!important}
 body:has(.luna-ref-community) .aside-summary>strong{font-size:34px!important;color:#fff0d4!important}
 body:has(.luna-ref-community) .aside-summary .summary-caption{color:#bfe4bb!important}
 body:has(.luna-ref-community) .table-etiquette{display:none!important}
 body:has(.luna-ref-community) .game-log>div {padding:8px 0!important}
 body:has(.luna-ref-community) .vip050-action-dock {margin-top:16px!important;border:1px solid #cfad65!important;border-radius:12px!important;background:linear-gradient(102deg,#092d21 0%,#0b271e 57%,#0b2118 100%)!important;box-shadow:0 12px 30px #0008,inset 0 1px 0 #edda9a24!important;padding:15px 24px!important;min-height:70px}
 body:has(.luna-ref-community) .dock-status b{font:600 16px/1.2 Arial,sans-serif!important;color:#f1dfb1!important}
 body:has(.luna-ref-community) .dock-status small{color:#acbda8!important}
 body:has(.luna-ref-community) .dock-buttons .button.gold{color:#27210d!important;background:linear-gradient(130deg,#fff0ad 0%,#f6d279 40%,#d49b42 100%)!important;box-shadow:0 0 17px #ebc77f55,0 4px 0 #92642d!important;border:1px solid #ffe2a0!important;border-radius:25px!important}
 body:has(.luna-ref-community) .dock-buttons .button:not(.gold){border-radius:24px!important}
}
/* The dedicated stage has the composition and surface proportions of the signed-off image. */
.vip050-stage.poker-stage:has(.luna-ref-community){
  position:relative!important;height:clamp(505px,58vh,568px)!important;overflow:hidden!important;
  isolation:isolate!important;border:1.5px solid #d8a756!important;border-radius:14px!important;
  background:
   radial-gradient(ellipse 49% 47% at 50% 18%,#71633b59 0%,#392c1a38 28%,transparent 78%),
   linear-gradient(180deg,#08170f 0%,#05140e 38%,#040d0a 100%)!important;
  box-shadow:inset 0 1px 0 #f5d28c55,0 17px 44px #000d!important;
}
.vip050-stage.poker-stage:has(.luna-ref-community)::before{
 content:""!important;position:absolute!important;inset:0!important;z-index:0!important;pointer-events:none!important;
 background:
  radial-gradient(ellipse 65% 40% at 50% 20%,#edc68520,transparent 80%),
  linear-gradient(90deg,#0009,transparent 21%,transparent 79%,#0008)!important;
}
.vip050-stage.poker-stage:has(.luna-ref-community)::after{display:none!important}
.vip050-stage.poker-stage .vip050-ambient,.vip050-stage.poker-stage .vip053-stage-glow,.vip050-stage.poker-stage .vip053-premium-rim,.vip050-stage.poker-stage .vip050-side-lights,.vip050-stage.poker-stage .vip050-surface-logo{display:none!important}
/* Table body: strong brushed-brass edge, dark walnut section, thick emerald cloth. */
.vip050-stage.poker-stage .felt{
 position:absolute!important;left:5.4%!important;top:20.5%!important;width:89.2%!important;height:69.5%!important;
 border:19px solid #2a190f!important;border-radius:50% / 49%!important;overflow:visible!important;z-index:3!important;
 background:
  repeating-linear-gradient(21deg,#ffffff02 0 1px,transparent 1px 3px),
  radial-gradient(ellipse at 50% 29%,#116b4f 0%,#08563f 56%,#023f2d 90%,#05281d 100%)!important;
 box-shadow:
  0 0 0 2px #e5c479,0 3px 0 5px #a66b2c,0 10px 0 9px #472616,
  0 17px 0 12px #c18d44,0 23px 0 14px #28170d,0 35px 25px 10px #000c,
  inset 0 0 0 3px #f5d58a82,inset 0 0 0 11px #073d2b99,
  inset 0 0 70px #00150cdd!important;
}
.vip050-stage.poker-stage .felt:after{inset:13px!important;border:1px solid #d0b87555!important;box-shadow:inset 0 0 20px #041b14!important}
.vip050-stage.poker-stage .felt-inner {opacity:0!important}
.vip050-stage.poker-stage .table-deck{z-index:11!important;left:77.8%!important;top:31%!important;width:48px!important;height:69px!important;border:2px solid #e1b968!important;transform:rotate(18deg)!important;background:#0b2d21 url('/assets/luna-v050-card-back.svg') center / cover no-repeat!important;box-shadow:4px 4px 0 #39261a,7px 7px 0 #be8840,10px 12px 18px #000b!important}
.vip050-stage.poker-stage .table-deck img{opacity:0!important}
.vip050-stage.poker-stage .stage-label{position:absolute!important;top:17px!important;left:24px!important;right:24px!important;z-index:35!important;font-size:10px!important;color:#edd39c!important;letter-spacing:1.25px!important}
.vip050-stage.poker-stage .stage-round{color:#e6c17e!important}
/* Player position templates — no absolute-pixel shifts tied to game events. */
.vip050-stage.poker-stage .seat{position:absolute!important;z-index:22!important;width:164px!important;pointer-events:none}
.vip050-stage.poker-stage .seat-0{left:50%!important;right:auto!important;top:auto!important;bottom:1.7%!important;width:200px!important;transform:translateX(-50%)!important;z-index:30!important}
.vip050-stage.poker-stage .seat-1{left:3%!important;right:auto!important;top:auto!important;bottom:20%!important}
.vip050-stage.poker-stage .seat-2{left:3%!important;right:auto!important;top:21%!important;bottom:auto!important}
.vip050-stage.poker-stage .seat-3{left:50%!important;right:auto!important;top:5%!important;bottom:auto!important;transform:translateX(-50%)!important}
.vip050-stage.poker-stage .seat-4{right:3%!important;left:auto!important;top:21%!important;bottom:auto!important}
.vip050-stage.poker-stage .seat-5{right:3%!important;left:auto!important;bottom:20%!important;top:auto!important}
.vip050-stage.poker-stage .seat-info,.vip050-stage.poker-stage .seat.you .seat-info{
 min-width:0!important;max-width:none!important;width:100%!important;min-height:48px!important;box-sizing:border-box!important;
 padding:6px 9px!important;gap:8px!important;border:1.5px solid #cf9d4b!important;border-radius:19px!important;
 background:linear-gradient(120deg,#0a3527f5,#092419f8 68%,#061811)!important;
 box-shadow:inset 0 1px 0 #ffe8aa4a,0 5px 15px #000b!important;
}
.vip050-stage.poker-stage .seat.acting .seat-info{box-shadow:inset 0 1px 0 #ffe8aa4a,0 0 0 1px #f9d487,0 0 19px #e6bc6d75,0 6px 18px #000a!important}
.vip050-stage.poker-stage .seat.folded{opacity:.45!important}
.vip050-stage.poker-stage .seat-info .avatar{width:33px!important;height:33px!important;font-size:10px!important;border:1.5px solid #d6ae64!important;box-shadow:inset 0 1px 0 #f8e5c65c,0 2px 6px #0007!important;background:radial-gradient(circle at 30% 20%,#876b44,#302a18 75%)!important}
.vip050-stage.poker-stage .seat-details b{font:600 12px/1.1 Arial,sans-serif!important;color:#ffe9c6!important}
.vip050-stage.poker-stage .seat-details>span{font:600 14px/1.2 Arial,sans-serif!important;color:#f3e6c8!important}
.vip050-stage.poker-stage .seat>.cards{min-height:0!important;gap:4px!important;margin-bottom:6px!important;justify-content:center!important}
.vip050-stage.poker-stage .seat:not(.you) .card.small{width:42px!important;height:60px!important;border-radius:5px!important}
.vip050-stage.poker-stage .seat.you .card.small{width:54px!important;height:76px!important;border-radius:6px!important}
.vip050-stage.poker-stage .seat .seat-action{font-size:9px!important;white-space:nowrap!important;color:#d9c18e!important;margin-top:4px!important}
.vip050-stage.poker-stage .seat-0 .seat-action{display:none!important}
.vip050-stage.poker-stage .seat-wager{font-size:11px!important;color:#ebd299!important;pointer-events:none!important}
.vip050-stage.poker-stage .seat-0 .seat-wager{top:70px!important;left:calc(100% + 3px)!important}
/* Independent pot/board nodes are the important architectural change. */
.vip050-stage.poker-stage .luna-ref-community{
 position:absolute!important;top:25.5%!important;left:0!important;right:0!important;bottom:auto!important;
 width:100%!important;height:255px!important;transform:none!important;display:block!important;z-index:14!important;pointer-events:none!important;
}
.vip050-stage.poker-stage .luna-ref-pot{
 position:absolute!important;top:0!important;left:50%!important;transform:translateX(-50%)!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
 width:230px!important;height:110px!important;gap:0!important;z-index:2!important;
}
.vip050-stage.poker-stage .luna-ref-pot .pot-label{font:600 10px/1.1 Arial,sans-serif!important;color:#f3dfad!important;letter-spacing:3px!important;margin:0 0 4px!important;white-space:nowrap!important}
.vip050-stage.poker-stage .luna-ref-pot .pot-number{font:400 39px/1.05 Georgia,serif!important;color:#f8d193!important;margin:0 0 6px!important;gap:9px!important;text-shadow:0 2px 8px #000b!important}
.vip050-stage.poker-stage .luna-ref-pot .pot-chip{width:24px!important;height:24px!important;background:radial-gradient(circle,#0c3c29 35%,#dfb979 39% 51%,#153a2c 55%)!important;border:4px dashed #ebdb9c!important}
.vip050-stage.poker-stage .luna-ref-pot-stack{position:relative!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;gap:2px!important;height:30px!important;width:145px!important;margin:0!important;padding:0!important;top:0!important;transform:none!important}
.vip050-stage.poker-stage .luna-ref-pot-stack i{
 position:relative!important;display:block!important;width:32px!important;height:25px!important;flex:none!important;margin:0 -1px!important;
 border-radius:50%!important;border:6px dashed #f8ddb0!important;
 background:radial-gradient(circle at 48% 37%,#1b6147 0 27%,#e7bf76 29% 38%,#167052 41% 59%,#0e3527 62% 100%)!important;
 box-shadow:0 4px 0 #9e6938,0 6px 0 #f4cc7c,0 8px 1px #0e3328,0 13px 9px #0008!important;
}
.vip050-stage.poker-stage .luna-ref-pot-stack i:nth-child(2){background:radial-gradient(circle at 48% 37%,#882633 0 27%,#e7bf76 29% 38%,#a33141 41% 59%,#4c1720 62% 100%)!important;border-color:#ffe2b5!important;transform:translateY(-3px)!important}
.vip050-stage.poker-stage .luna-ref-pot-stack i:nth-child(3){background:radial-gradient(circle at 48% 37%,#1a3975 0 27%,#e7bf76 29% 38%,#285093 41% 59%,#13244d 62% 100%)!important}
.vip050-stage.poker-stage .luna-ref-board{
 position:absolute!important;top:115px!important;left:50%!important;transform:translateX(-50%)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:max-content!important;gap:9px!important;z-index:3!important;
}
.vip050-stage.poker-stage .luna-ref-board .card,.vip050-stage.poker-stage .luna-ref-board .card-slot{
 width:clamp(51px,4.4vw,72px)!important;height:clamp(71px,6.05vw,100px)!important;
 border-radius:7px!important;box-sizing:border-box!important;
}
.vip050-stage.poker-stage .luna-ref-board .card{
 border:1px solid #eee0c7!important;
 background:linear-gradient(145deg,#fffef5,#faf7ec 75%,#e3d4b7)!important;
 box-shadow:0 3px 0 #bda77c,0 9px 16px #0008!important;
}
.vip050-stage.poker-stage .luna-ref-board .card-slot{background:#0a453344!important;border:1px solid #d9c69b88!important;box-shadow:inset 0 0 14px #0003!important}
.vip050-stage.poker-stage .luna-ref-board .card-slot>span{font-size:28px!important;color:#d3bc7b24!important}
.vip050-stage.poker-stage .luna-ref-board .card>.corner{font-size:17px!important}
.vip050-stage.poker-stage .luna-ref-board .card>.corner small{font-size:12px!important}
.vip050-stage.poker-stage .luna-ref-board .card>b{font-size:36px!important}
.vip050-stage.poker-stage .luna-ref-street{
 position:absolute!important;top:222px!important;left:50%!important;transform:translateX(-50%)!important;
 margin:0!important;font:700 10px/1.2 Arial,sans-serif!important;letter-spacing:3px!important;color:#ead3a1!important;
 text-shadow:0 2px 5px #000!important;white-space:nowrap!important;
}
/* Controls and real-time interaction preserve original JS event delegation. */
.vip050-stage.poker-stage .card:not(.back){background:linear-gradient(145deg,#fffefa,#f6f1e4)!important;border:1px solid #e4d3ae!important;box-shadow:0 3px 0 #bea785,0 6px 13px #0009!important}
.vip050-stage.poker-stage .card.back{background:#063524 url('/assets/luna-v050-card-back.svg') center / cover no-repeat!important;border:2px solid #d6ad64!important;box-shadow:0 2px 0 #aa753e,0 8px 14px #0009!important}
/* Don't show developer diagnostic pane for ordinary URLs; ?fxdebug=1 still works. */
@media (min-width:761px) and (max-width:1450px){
 body:has(.luna-ref-community) .main-game{width:calc(100% - 90px)!important;max-width:none!important;margin-left:72px!important;padding:14px!important}
 body:has(.luna-ref-community) .game-layout{grid-template-columns:minmax(0,1fr) 224px!important;gap:12px!important}
 .vip050-stage.poker-stage .seat{width:123px!important}.vip050-stage.poker-stage .seat-info{padding:5px!important}.vip050-stage.poker-stage .seat-details b{font-size:10px!important}
 .vip050-stage.poker-stage .seat:not(.you) .card.small{width:29px!important;height:43px!important}
 .vip050-stage.poker-stage .luna-ref-board{gap:5px!important}
}
@media (max-width:760px){
 /* Keep the proven responsive LUNA table while preserving independent pot/board. */
 .vip050-stage.poker-stage .luna-ref-community{position:absolute!important;top:36%!important;left:0!important;right:0!important;width:100%!important;height:210px!important;transform:none!important;display:block!important}
 .vip050-stage.poker-stage .luna-ref-pot{position:absolute!important;left:50%!important;top:0!important;transform:translateX(-50%)!important;width:140px!important;height:78px!important;display:flex!important;flex-direction:column!important;align-items:center!important}
 .vip050-stage.poker-stage .luna-ref-pot .pot-label{font-size:7px!important;margin:0!important}
 .vip050-stage.poker-stage .luna-ref-pot .pot-number{font-size:27px!important;margin:2px 0!important}
 .vip050-stage.poker-stage .luna-ref-pot-stack{display:none!important}
 .vip050-stage.poker-stage .luna-ref-board{position:absolute!important;top:77px!important;left:50%!important;transform:translateX(-50%)!important;display:flex!important;gap:4px!important;width:max-content!important}
 .vip050-stage.poker-stage .luna-ref-board .card,.vip050-stage.poker-stage .luna-ref-board .card-slot{width:34px!important;height:49px!important}
 .vip050-stage.poker-stage .luna-ref-street{position:absolute!important;top:133px!important;left:50%!important;transform:translateX(-50%)!important;font-size:7px!important}
}
@media(prefers-reduced-motion:reduce){.vip050-stage.poker-stage .luna-ref-pot-stack i{animation:none!important}}
