.bluff-page { --game-accent: #ffcf83; background: radial-gradient(ellipse at 66% 15%, #31544b, transparent 64%), #152423; }
.bluff-layout {
  display: grid; grid-template: "intro table" auto "side table" 1fr / minmax(14rem, .75fr) minmax(25rem, 41rem);
  align-items: start; gap: 1.25rem clamp(1.3rem, 4vw, 4.25rem);
  width: min(70rem, calc(100% - 3rem)); margin-inline: auto; padding: clamp(1.3rem, 4vw, 3.7rem) 0 2rem;
}
.bluff-intro { grid-area: intro; }
.bluff-intro h1 { margin: .68rem 0 .55rem; font-size: clamp(2.5rem, 5.9vw, 5.45rem); line-height: 1.08; letter-spacing: -.065em; }
.bluff-intro h1 span { color: var(--game-accent); }
.bluff-intro > p { color: #c2d6cf; }
.bluff-side { grid-area: side; display: grid; gap: .65rem; min-width: 0; }
.bluff-side .room-panel { border-color: #57786e; background: #243935; }
.bluff-rules { border-top: 1px solid #83ab9b4f; font-size: .9rem; color: #c2d6cf; }
.bluff-rules summary, .bluff-log summary { padding: .63rem .1rem; cursor: pointer; color: var(--game-ink); }
.bluff-rules ol, .bluff-log ol { margin: .05rem 0 .5rem; padding-inline-start: 1.35rem; }
.bluff-rules li + li { margin-top: .28rem; }
.bluff-rules a { text-decoration: underline; text-underline-offset: .24em; }

.bluff-table {
  grid-area: table; min-width: 0; padding: clamp(.72rem, 2.4vw, 1.55rem);
  border: 1px solid #a58657; border-radius: 1.35rem;
  background: radial-gradient(ellipse at 43% 18%, #2e6652, #214438 68%, #18312d);
  box-shadow: inset 0 0 0 4px #f6d5a014, 0 1.4rem 3.5rem #0711129e;
}
.bluff-idle { display: grid; min-height: 22rem; place-content: center; justify-items: center; gap: 1.6rem; text-align: center; color: #e0e9d5; }
.bluff-sample { display: flex; justify-content: center; }
.bluff-sample span {
  display: grid; place-items: center; width: clamp(4.1rem, 9vw, 6.5rem); aspect-ratio: .72;
  border: 1px solid #c19365; border-radius: .72rem; background: #f5ead3; color: #223731;
  font-size: clamp(1.75rem, 4.1vw, 3.2rem); box-shadow: 0 .7rem 1.25rem #11291e6e;
}
.bluff-sample span:nth-child(1) { transform: translate(.46rem, .4rem) rotate(-13deg); }
.bluff-sample span:nth-child(2) { z-index: 1; color: #a6322a; transform: translateY(-.3rem) rotate(-2deg); }
.bluff-sample span:nth-child(3) { transform: translate(-.46rem, .36rem) rotate(12deg); }
.bluff-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 48%), 1fr)); gap: .45rem; list-style: none; padding: 0; margin: 0 0 .7rem; }
.bluff-seats li { display: flex; align-items: center; justify-content: space-between; gap: .35rem; padding: .35rem .52rem; border: 1px solid #82ad9a64; border-radius: .55rem; background: #1d392f; font-size: .84rem; }
.bluff-seats strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bluff-seats li span { flex: none; color: #c8dcd1; font-variant-numeric: tabular-nums; }
.bluff-seats li.is-active { border-color: #d9b277; color: #ffdb9b; }
.bluff-center { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .58rem; min-height: 6.3rem; padding: .7rem .55rem; border: 1px solid #dcbb8375; border-radius: .84rem; background: #1d4236; }
.bluff-ticket, .bluff-stack { display: grid; min-width: 3.3rem; justify-items: center; color: #c2dbca; font-size: .72rem; white-space: nowrap; }
.bluff-ticket strong { color: #ffe1ac; font-size: clamp(2rem, 6.5vw, 3.35rem); font-weight: 800; line-height: 1; }
.bluff-stack b { color: #f1f6e9; font-size: 1.48rem; line-height: 1; font-variant-numeric: tabular-nums; }
.bluff-card-back { width: 1.56rem; height: 2.03rem; margin-bottom: .28rem; border: 2px solid #f2d7ab; border-radius: .24rem; background: repeating-linear-gradient(45deg, #375a7d 0 3px, #243a5a 3px 6px); box-shadow: 2px 2px 0 #c9ac81, 4px 4px 0 #152f2a; }
.bluff-deck, .bluff-legacy { margin-bottom: .55rem; color: #d6e6dd; font-size: .82rem; }
.bluff-legacy { color: #ffdb9b; }
.bluff-call { text-align: center; min-width: 0; overflow-wrap: anywhere; }
.bluff-call h2 { font-size: clamp(1.03rem, 2.5vw, 1.6rem); line-height: 1.22; color: #fff5df; }
.bluff-call p { margin-top: .24rem; color: #c3dacd; font-size: .84rem; }
.bluff-decision, .bluff-reveal { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .68rem; }
.bluff-decision .merge-button { flex: 1; }
.bluff-timer { padding: .25rem .42rem; color: #ffe1ac; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .85rem; }
.bluff-reveal { border-radius: .68rem; padding: .45rem .55rem; background: #16342a; }
.bluff-reveal p { flex-basis: 100%; color: #ffdfaa; font-size: .86rem; overflow-wrap: anywhere; }
.bluff-revealed-card { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; padding: .18rem .22rem; border-radius: .27rem; color: #223731; background: #eee3cf; font-size: .92rem; font-weight: 750; }
.bluff-hand-panel { margin-top: .8rem; padding: .72rem .65rem; border: 1px solid #83ab9b64; border-radius: .85rem; background: #173c30; }
.bluff-hand-panel header { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.bluff-hand-panel header h2 { font-size: .98rem; }
.bluff-hand-panel header span { color: #c2dbca; font-size: .81rem; }
.bluff-hand { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 15rem; overflow: auto; padding: .48rem .15rem .35rem; }
.bluff-card {
  flex: 0 0 clamp(2.66rem, 7vw, 3.15rem); display: grid; align-content: space-between; justify-items: start;
  min-height: 3.62rem; padding: .29rem .44rem .33rem; border: 2px solid #ccb999; border-radius: .43rem;
  background: #f4ead6; color: #223731; font: 750 .98rem/1.05 Georgia, serif;
  box-shadow: 0 2px 3px #0c2b1f; font-variant-numeric: tabular-nums;
}
.bluff-card span:last-child { justify-self: end; font-size: 1.05rem; }
.bluff-card.is-red, .bluff-revealed-card.is-red { color: #9f3129; }
.bluff-card.is-joker { padding-inline: .27rem; font-size: .76rem; }
.bluff-card[aria-pressed="true"] { border-color: #c76420; background: #fff7d7; outline: 1px solid #ffd488; }
.bluff-card:focus-visible { outline-color: #abd6fa; }
.bluff-card:disabled { cursor: default; }
.bluff-play { width: 100%; margin-top: .32rem; }
.bluff-announce { display: flex; flex-wrap: wrap; align-items: center; gap: .48rem; margin-top: .4rem; color: #e2ebdc; font-size: .88rem; }
.bluff-announce select { min-width: 6rem; min-height: 44px; padding: .34rem .6rem; border: 1px solid #90b3a3; border-radius: .52rem; background: #19372d; color: #fff3d8; font: inherit; }
.bluff-log { margin-top: .53rem; color: #c3dacd; font-size: .86rem; }
.bluff-no-js { margin-top: .5rem; color: #e0e9d5; }

@media (max-width: 50rem) {
  .bluff-layout { width: min(34rem, calc(100% - 1.5rem)); grid-template: "intro" auto "side" auto "table" auto / minmax(0, 1fr); gap: .64rem; padding-top: .8rem; }
  .bluff-intro h1 { margin: .38rem 0 .22rem; font-size: clamp(2.08rem, 8.2vw, 3.4rem); }
  .bluff-intro > p { font-size: .92rem; }
  .bluff-idle { min-height: 12rem; gap: 1.08rem; }
  .bluff-side.has-match { grid-area: controls; }
  .bluff-layout:has(.bluff-side.has-match) { grid-template: "intro" auto "table" auto "controls" auto / minmax(0, 1fr); }
}
