.fv-board[data-game="30"]:has(> .nn-room),
.game-viewport .fv[data-room-theme="30"] .fv-board[data-game="30"] {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #29251c;
  box-shadow: none;
}
.nn-room {
  position: relative;
  isolation: isolate;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  color: #fff5db;
  background: #1c261f;
}
.nn-felt {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
  container-type: size;
  --nn-sector: 90deg;
  background:
    radial-gradient(ellipse at 50% 50%,transparent 35%,#231c1238 65%,#141610ab 100%),
    url("/scenes/table-01.webp") center / 114% 145% no-repeat #174333;
}
.nn-felt::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 16.5% 14%;
  border-radius: 50%;
  border: 1px solid #d0bc864b;
  background: repeating-conic-gradient(from calc(var(--nn-sector)/2),#ddca894d 0deg .2deg,transparent .45deg var(--nn-sector));
  mask-image: radial-gradient(ellipse closest-side,transparent 47%,#000 49%);
}
.nn-felt[data-seat-count="2"] {--nn-sector:180deg}
.nn-felt[data-seat-count="3"] {--nn-sector:120deg}
.nn-felt[data-seat-count="5"] {--nn-sector:72deg}
.nn-seats {
  position: absolute;
  inset: var(--table-top,0px) var(--table-right,0px) var(--table-bottom,0px) var(--table-left,0px);
  --nn-card-w: clamp(12px,min(3.3cqw,7.45cqh),47px);
  --nn-card-gap: clamp(1px,.42cqw,5px);
}
.nn-seat {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 28%;
  height: calc(var(--nn-card-w) * 1.4);
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff6da;
  font: 650 clamp(10px,min(2.4cqw,4.25cqh),19px)/1.1 "DM Sans",system-ui,sans-serif;
  text-shadow: 0 1px 3px #062518;
}
.nn-seat[data-position="top"] {--x:50%;--y:26%;--dx:0cqw;--dy:-18.2cqh}
.nn-seat[data-position="bottom"] {--x:50%;--y:75%;--dx:0cqw;--dy:17.1cqh}
.nn-seat[data-position="left"] {--x:24%;--y:48%;--dx:-18.1cqw;--dy:0cqh}
.nn-seat[data-position="right"] {--x:76%;--y:48%;--dx:18.1cqw;--dy:0cqh}
.nn-seat[data-position="lower-left"] {--x:33%;--y:74.6%;--dx:-3.5cqw;--dy:17cqh}
.nn-seat[data-position="lower-right"] {--x:67%;--y:74.6%;--dx:3.5cqw;--dy:17cqh}
.nn-seats[data-seat-count="5"] .nn-seat:is([data-position="left"],[data-position="right"]) {--y:42%;--dy:-2cqh}
.nn-name {
  position: absolute;
  left: calc(50% + var(--dx));
  top: calc(50% + var(--dy));
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px,.65cqw,7px);
  width: max-content;
  max-width: 25cqw;
  padding: 2px clamp(4px,.9cqw,12px) 2px 2px;
  box-sizing: border-box;
  border: 1px solid #947346;
  border-radius: 100px;
  background: linear-gradient(130deg,#342e26,#1c241dcf);
  box-shadow: 0 2px 6px #15180e8c;
  font-size: .94em;
  text-shadow: 0 1px 2px #261e16;
}
.nn-avatar {
  display: block;
  object-fit: cover;
  flex: none;
  width: clamp(23px,min(5.5cqw,10.6cqh),76px);
  aspect-ratio: 1;
  border: 1px solid #ddbf7b;
  border-radius: 50%;
  background: #32281e;
}
.nn-name > b:not(.nn-score),.nn-opponent {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nn-seat:is([data-position="left"],[data-position="right"]) .nn-name {
  flex-direction: column;
  gap: 1px;
  max-width: 11cqw;
  border: 0;
  border-radius: 8px;
  padding: 3px;
  background: #251e18cc;
}
.nn-seat:is([data-position="left"],[data-position="right"]) .nn-name > b {max-width:100%}
.nn-seat[data-current="true"] .nn-avatar {box-shadow:0 0 0 2px #ffdc84,0 0 13px #ffcc5e77}
.nn-seat[data-banker="true"] .nn-name {background:linear-gradient(135deg,#644626,#382e20);border-color:#e1bf75}
.nn-self {color:#f7d48a}
.nn-name span.nn-self {font-size:.8em}
.nn-seat > small,.nn-seat > strong,.nn-picked {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82em;
  color: #f3e5c8;
}
.nn-seat > small {top:calc(100% + 2px)}
.nn-seat > strong,.nn-picked {bottom:calc(100% + 3px);color:#ffdd8d}
.nn-seat > small:empty {display:none}
.nn-score,.nn-delta,.nn-stake b {font-variant-numeric:tabular-nums;white-space:nowrap}
.nn-seat .nn-score[data-gain="true"] {color:#a8f3b6}
.nn-seat .nn-score[data-gain="false"] {color:#ffbcac}
.nn-mini,.nn-hand {display:flex;align-items:center;justify-content:center;gap:var(--nn-card-gap);width:max-content}
.nn-own {display:grid;place-items:center}
.nn-mini > .nn-card,.fv .nn-hand > button.nn-card,.nn-mini > .nn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  flex: none;
  width: var(--nn-card-w);
  height: calc(var(--nn-card-w) * 1.4);
  min-height: 0;
  padding: 0;
  border: 1px solid #d6c099;
  border-radius: clamp(3px,.55cqw,6px);
  color: #24302b;
  background: linear-gradient(145deg,#fffcf1 22%,#ecddbb);
  box-shadow: 0 2px 3px #0a1d16a3;
  font: 700 clamp(10px,calc(var(--nn-card-w) * .55),28px)/.95 Georgia,serif;
  text-shadow: none;
}
.nn-card i {font-style:normal}
.nn-mini > .nn-red,.fv .nn-hand > button.nn-red {color:#aa2431}
.nn-mini > .nn-back {
  border: 2px solid #ebd8b0;
  background: repeating-linear-gradient(45deg,#812f30 0 2px,#bc7661 2px 3px,#743a35 3px 5px);
}
.nn-seat:has(.nn-hand button) {
  --nn-card-w:clamp(21px,min(4.45cqw,9.2cqh),56px);
  z-index:2;
}
.nn-hand button {position:relative;touch-action:manipulation;cursor:pointer}
.nn-hand button::after {
  content:"";
  position:absolute;
  left:0;right:0;top:50%;
  height:max(100%,44px);
  transform:translateY(-50%);
}
.nn-mini .nn-selected,.fv .nn-hand > button.nn-selected {
  transform: translateY(-3px);
  border-color:#f0c765;
  background:linear-gradient(150deg,#fff3c6,#f3d382);
  box-shadow:0 0 0 1px #daaa49,0 3px 5px #08231780;
}
.nn-hand button:focus-visible {outline:2px solid #94ddff;outline-offset:2px}
.nn-center {
  position:absolute;
  top:43%;
  left:50%;
  transform:translate(-50%,-50%);
  width:31%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(3px,1cqw,14px);
  color:#f3d99a;
  text-align:center;
  text-shadow:0 1px 3px #06281d;
}
.nn-center h2 {
  margin:0;
  color: #f8e7b5;
  font:650 clamp(11px,min(2.35cqw,4.7cqh),28px)/1.05 Baskervville,Georgia,"Songti SC",serif;
  text-wrap:balance;
}
.nn-stake {display:flex;align-items:center;justify-content:center;gap:.55cqw;margin-top:.7cqh;font:600 clamp(9px,min(1.5cqw,3.6cqh),17px)/1.1 "DM Sans",system-ui,sans-serif}
.nn-stake i {
  display:inline-block;
  flex:none;
  width:clamp(10px,1.8cqw,24px);
  aspect-ratio:1.35;
  margin-bottom:2px;
  border:1px solid #f5d48f;
  border-radius:50%;
  background:radial-gradient(ellipse,#ba7843 43%,#f5ce92 46% 54%,transparent 57%),repeating-conic-gradient(#f2d28b 0 21deg,#973c32 23deg 57deg);
  box-shadow:0 2px #813c2f,0 3px #d1aa66;
}
.nn-stake:has([data-nn-stake="0"]) i {opacity:.55}
.nn-stake b {font-size:1.15em;color:#fff5cb}
.nn-center [data-fv-table-clock] {
  --nn-clock-color: #f4d78b;
  position: relative;
  display:grid;
  place-items:center;
  flex:none;
  width:clamp(28px,min(5.9cqw,12cqh),78px);
  aspect-ratio:1;
  border-radius:50%;
  background:#143e30;
  color:#fff1c2;
  box-shadow:0 2px 6px #0a2a1fcc;
  font:700 clamp(10px,min(2.1cqw,4.75cqh),26px)/1 "DM Sans",system-ui,sans-serif;
  font-variant-numeric:tabular-nums;
}
.nn-center [data-fv-table-clock]:empty {display:none}
.nn-center [data-fv-table-clock]::before {
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:conic-gradient(var(--nn-clock-color) calc(var(--table-time-left,1) * 1turn),#bba87740 0);
  mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));
}
.nn-center [data-fv-table-clock][data-urgent] {--nn-clock-color:#fb9377;color:#ffe4cd}
.nn-felt .nn-actions {
  position:absolute;
  left:50%;top:60.5%;
  transform:translate(-50%,-50%);
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  justify-content:center;
  gap:clamp(3px,.7cqw,10px);
  width:max-content;
  max-width:55%;
  z-index:3;
}
.nn-actions .fv-button,.fv .nn-actions button {
  min-width:0;
  min-height:clamp(30px,9.5cqh,48px);
  margin:0;
  padding:3px clamp(5px,1.3cqw,19px);
  border:1px solid #c9ad73;
  border-radius:7px;
  background:linear-gradient(155deg,#385345,#233c32);
  color:#fff0cd;
  box-shadow:0 2px 4px #132d23b3;
  font:650 clamp(11px,min(1.9cqw,4.2cqh),19px)/1.05 "DM Sans",system-ui,sans-serif;
  text-align:center;
  touch-action:manipulation;
}
.nn-actions .fv-button.primary {background:linear-gradient(150deg,#ead098,#c59a55);color:#322416;border-color:#f5dca4}
.nn-actions .fv-button:disabled {opacity:.48}
.nn-actions .fv-button:focus-visible {outline:2px solid #a6e2ff;outline-offset:1px}
.nn-panel {
  position:absolute;inset:0;
  pointer-events:none;
  box-sizing:border-box;
  container-type:size;
  display:flex;
  justify-content:center;align-items:center;
  gap:clamp(4px,.7vw,10px);
  color:#fff2d4;
}
.nn-panel .nn-receipt {display:contents}
.nn-receipt summary,.nn-panel .fv-result .fv-button {
  position:relative;top:10%;
  display:inline-flex;align-items:center;justify-content:center;
  pointer-events:auto;touch-action:manipulation;cursor:pointer;
  min-height:clamp(30px,9.25cqh,46px);
  padding:3px clamp(6px,1.4cqw,16px);
  box-sizing:border-box;
  border:1px solid #d0b277;border-radius:7px;
  color:#fff1c9;background:linear-gradient(145deg,#3b5347,#23382c);
  box-shadow:0 2px 4px #09291d88;
  font:650 clamp(11px,min(1.8cqw,4cqh),19px)/1.1 "DM Sans",system-ui,sans-serif;
}
.nn-receipt summary {list-style:none;gap:.35em}
.nn-receipt summary::-webkit-details-marker {display:none}
.nn-receipt summary::before {content:"";width:.41em;height:.41em;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-135deg) translate(-.1em,-.1em)}
.nn-receipt[open] summary::before {transform:rotate(45deg) translate(-.1em,-.1em)}
.nn-receipt summary:focus-visible,.nn-settlement:focus-visible {outline:2px solid #a9deff}
.nn-settlement {
  position:absolute;z-index:3;pointer-events:auto;
  left:50%;bottom:calc(40% + clamp(19px,5.2cqh,27px));
  transform:translateX(-50%);
  width:clamp(205px,52cqw,480px);
  max-width:90%;
  max-height:44cqh;
  box-sizing:border-box;
  overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
  padding:clamp(4px,1cqh,10px) clamp(9px,1.5cqw,19px);
  border:1px solid #bea471;border-radius:10px;
  background:linear-gradient(145deg,#243c2ff8,#16291ffb);
  box-shadow:0 6px 22px #102216a6;
  text-align:left;
}
.nn-comparison,.nn-bank-total {
  display:grid;align-items:center;gap:1px 5px;
  padding:5px 0;border-bottom:1px solid #9fba9d38;
  font-size:clamp(12px,min(1.85cqw,4.3cqh),19px);
}
.nn-comparison {grid-template-columns:minmax(0,1fr) max-content max-content}
.nn-opponent {grid-column:1;grid-row:1}
.nn-matchup {grid-column:1;grid-row:2;color:#d5dcc5;font-size:.88em}
.nn-verdict {grid-column:2;grid-row:1 / span 2;font-size:.88em}
.nn-comparison .nn-delta {grid-column:3;grid-row:1 / span 2}
.nn-comparison[data-gain="true"] :is(.nn-verdict,.nn-delta) {color:#a2e6ad}
.nn-comparison[data-gain="false"] :is(.nn-verdict,.nn-delta) {color:#f7b9a6}
.nn-bank-total {grid-template-columns:auto minmax(0,1fr) auto;border:0;color:#f5da9a}
.nn-bank-total b {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nn-panel .fv-result {display:contents}
.nn-panel .fv-result > :is(strong,span),.nn-panel > .fv-map-head {display:none}
.nn-panel .fv-result .primary {background:linear-gradient(150deg,#ead098,#c59a55);color:#322416}
.nn-room[data-phase="done"] .nn-center {top:45%;width:34%}
