.bc-game {
  --bc-ink: #10151b;
  --bc-felt: #123536;
  --bc-gold: #d1ac68;
  --bc-paper: #f2e9d4;
  --bc-muted: #a7aaa5;
  color: var(--bc-paper);
  font-family: inherit;
  max-width: 900px;
  margin: 0 auto;
}
.bc-game *, .bc-game *::before, .bc-game *::after { box-sizing: border-box; }
.bc-game button, .bc-game input { font: inherit; }
.bc-game button { cursor: pointer; }
.bc-game button:disabled { opacity: .4; cursor: default; }
.bc-game button:focus-visible, .bc-game input:focus-visible, .bc-rules summary:focus-visible { outline: 2px solid #e7cf97; outline-offset: 4px; }
.bc-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 0 20px; }
.bc-kicker { color: var(--bc-gold); font-size: 10px; letter-spacing: .21em; }
.bc-header h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(24px, 4vw, 36px); letter-spacing: -.02em; line-height: 1.2; margin: 7px 0 0; }
.bc-wallet { display: grid; text-align: right; flex: 0 0 auto; padding-left: 18px; border-left: 1px solid #d1ac683d; }
.bc-wallet > span, .bc-wallet small { font-size: 10px; color: var(--bc-muted); letter-spacing: .08em; }
.bc-wallet strong { color: #e5c78f; font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 500; }
.bc-chatter { display: flex; gap: 13px; border-top: 1px solid #d1ac682d; padding: 15px 0 20px; font-size: 13px; line-height: 1.6; }
.bc-npc-mark { width: 32px; height: 42px; border-radius: 50% 50% 40% 40%; color: #b9a6d2; background: #40334d; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 20px #ae8bd014; }
.bc-chatter p { margin: 0; color: #c8c4b9; }
.bc-chat-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bc-chat-options[hidden] { display: none; }
.bc-chat-options button { padding: 6px 10px; min-height: 35px; color: var(--bc-gold); background: #d1ac680b; border: 1px solid #d1ac6838; border-radius: 2px; font-size: 11px; transition: background .2s; }
.bc-chat-options button:hover { background: #d1ac681d; }
.bc-felt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #225151 0, #143a3a 45%, #102b2d 100%);
  border: 1px solid #c7a46469;
  box-shadow: inset 0 0 0 6px #071a204d, inset 0 0 0 7px #d1ac6824, inset 0 0 60px #00101170, 0 15px 36px #0004;
  border-radius: 90px 90px 8px 8px;
  padding: 30px 28px 25px;
  min-height: 248px;
}
.bc-felt::before { content: '麺'; position: absolute; z-index: -1; font-size: 180px; font-family: serif; color: #d1ac680b; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.bc-felt::after { content: ''; position: absolute; inset: 17px; border: 1px solid #d1ac681f; border-radius: 80px 80px 4px 4px; pointer-events: none; z-index: -1; }
.bc-choices { display: flex; align-items: stretch; justify-content: center; gap: 9px; margin-top: 24px; flex-wrap: wrap; }
.bc-choices button { flex: 1 1 100px; max-width: 220px; min-height: 47px; padding: 10px 12px; border-radius: 3px; color: var(--bc-paper); background: #061a1b5e; border: 1px solid #bdc7b842; font-size: 12px; line-height: 1.35; transition: background .2s, border .2s, transform .2s; }
.bc-choices button:hover:not(:disabled) { background: #d1ac682a; border-color: #d1ac68a3; }
.bc-choices button.is-selected { border-color: var(--bc-gold); color: #ffe0a6; background: #d1ac6824; box-shadow: inset 0 0 0 1px #d1ac6839; }
.bc-controls { display: flex; align-items: flex-end; gap: 10px; margin: 22px 0 15px; flex-wrap: wrap; }
.bc-bet-label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; color: var(--bc-muted); letter-spacing: .06em; }
.bc-game input { display: block; width: 112px; height: 44px; background: #0a0f15; color: var(--bc-paper); border: 1px solid #77786771; border-radius: 3px; padding: 9px 11px; font-size: 16px; font-variant-numeric: tabular-nums; }
.bc-game input:disabled { opacity: .5; }
.bc-quick-bets { display: flex; align-items: center; gap: 5px; }
.bc-quick-bets button { height: 44px; min-width: 39px; padding: 8px; background: #d1ac680a; color: #c7b899; border: 1px solid #d1ac682b; border-radius: 3px; font-size: 11px; }
.bc-quick-bets button:hover:not(:disabled) { background: #d1ac6827; }
.bc-primary { margin-left: auto; height: 44px; min-width: 162px; padding: 10px 20px; color: #191b18; background: #d1ac68; border: 1px solid #e2c58e; border-radius: 3px; font-weight: 600; font-size: 13px; box-shadow: 0 4px 18px #d1ac680b; transition: background .2s; }
.bc-primary:hover:not(:disabled) { background: #e4c48a; }
.bc-result { min-height: 84px; padding: 14px 16px; border: 1px solid #d1ac6826; background: #050a102e; border-radius: 3px; }
.bc-result p { margin: 0; color: #c8c5ba; font-size: 13px; line-height: 1.55; }
.bc-receipt { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 10px; }
.bc-receipt:empty { display: none; }
.bc-receipt > span { font-size: 10px; color: #9c9e98; letter-spacing: .03em; }
.bc-receipt b { display: block; font-size: 13px; font-weight: 500; color: #dfd9ca; margin-top: 3px; font-variant-numeric: tabular-nums; }
.bc-receipt .bc-net-positive b { color: #9bc7aa; }
.bc-receipt .bc-net-negative b { color: #d0988c; }
.bc-rules { margin-top: 17px; font-size: 11px; line-height: 1.65; color: var(--bc-muted); }
.bc-rules summary { color: #c8b38b; cursor: pointer; min-height: 26px; }
.bc-rules p { margin: 8px 0; max-width: 80ch; }
.bc-dice-scene { position: relative; display: flex; justify-content: center; gap: 20px; padding-top: 10px; min-height: 134px; align-items: center; }
.bc-die { display: grid; place-items: center; width: 75px; height: 75px; font-family: 'Apple Symbols', 'Segoe UI Symbol', serif; font-size: 87px; line-height: 1; color: #182522; background: #f1e9d7; border-radius: 12px; box-shadow: 3px 8px 0 #0003, inset -3px -3px 8px #ac936447; transform: rotate(-8deg); }
.bc-die:nth-child(2) { transform: rotate(12deg); }
.bc-dice-sum { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 10px; border: 1px solid #d1ac6854; border-radius: 50%; color: #e5c78f; font-family: Georgia, serif; font-size: 23px; }
.is-rolling .bc-die { animation: bc-dice-roll .15s infinite alternate; }
.is-rolling .bc-die:nth-child(2) { animation-direction: alternate-reverse; }
@keyframes bc-dice-roll { from { transform: translateY(-8px) rotate(-20deg); } to { transform: translateY(5px) rotate(22deg); } }
.bc-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 0 3px; }
.bc-hand { min-width: 0; text-align: center; }
.bc-hand h3 { margin: 1px 0 13px; font-weight: 400; font-size: 11px; letter-spacing: .08em; color: #d1c8ae; }
.bc-hand h3 > span { color: #e7ca8d; font-size: 16px; padding-left: 9px; letter-spacing: 0; }
.bc-cards { display: flex; justify-content: center; align-items: flex-start; min-height: 104px; padding-left: 10px; }
.bc-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 66px; width: 66px; height: 98px; padding: 6px 7px; margin-left: -10px; color: #1c2429; background: #f0e7d4; border-radius: 5px; box-shadow: 0 3px 9px #0005; border: 1px solid #dfd0af; animation: bc-card-enter .3s ease both; text-align: left; font-family: Georgia, serif; font-size: 15px; line-height: 1; }
.bc-card:nth-child(2) { animation-delay: .07s; transform: rotate(3deg); }
.bc-card:nth-child(3) { animation-delay: .14s; transform: rotate(7deg); }
.bc-card:nth-child(n+4) { transform: rotate(9deg); }
.bc-card small { display: block; font-size: 12px; padding-top: 2px; }
.bc-card > b { position: absolute; top: 36px; left: 22px; font-size: 26px; font-weight: 400; }
.bc-card > span:last-child { align-self: flex-end; transform: rotate(180deg); }
.bc-card-red { color: #a22b34; }
.bc-card-back { background: repeating-linear-gradient(45deg, #4b2548 0, #4b2548 3px, #603656 3px, #603656 4px); border: 4px solid #e6d9bd; color: #bca274; justify-content: center; align-items: center; }
.bc-card-back > span { font-size: 30px; padding: 5px; border: 1px solid #ba9b6c5c; }
@keyframes bc-card-enter { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: 0 0; } }
.bc-blackjack-hands { grid-template-columns: 1fr; gap: 23px; }
.bc-blackjack-hands .bc-hand h3 { margin-bottom: 10px; }
.bc-blackjack .bc-felt { padding-top: 25px; border-radius: 90px 90px 8px 8px; }
.bc-blackjack-actions { margin-top: 18px; }
.bc-roulette-scene { position: relative; width: 226px; height: 226px; margin: 0 auto; }
.bc-wheel { position: relative; width: 214px; height: 214px; top: 6px; left: 6px; border: 8px solid #996e38; outline: 1px solid #dbc191; border-radius: 50%; background: repeating-conic-gradient(from -4.865deg, #661f28 0deg 9.73deg, #171c1c 9.73deg 19.46deg); box-shadow: 0 0 0 4px #3a2c1e, 0 8px 30px #0006, inset 0 0 0 24px #0005, inset 0 0 0 25px #af915b; transition: transform 1.85s cubic-bezier(.16,.7,.17,1); }
.bc-wheel::before { content: ''; position: absolute; width: 100%; height: 100%; inset: 0; border-radius: 50%; background: conic-gradient(from -4.865deg, #277451 0deg 9.73deg, transparent 9.73deg); }
.bc-wheel-number { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--bc-number-angle)) translateY(-83px); transform-origin: center; font-size: 8px; color: #e1dac7; line-height: 1; }
.bc-wheel-hub { position: absolute; inset: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 32%, #a07947, #4a341f 65%, #241c18); border: 1px solid #b89860; box-shadow: 0 0 0 4px #221c14, 0 0 0 5px #bc9c64; color: #dfc79b; font-size: 29px; font-family: serif; }
.bc-wheel-pointer { position: absolute; top: -6px; left: 100px; z-index: 2; color: #efd39c; text-shadow: 0 2px 5px #000; font-size: 23px; }
.bc-winning-number { position: absolute; right: -54px; bottom: 35px; width: 48px; height: 58px; display: grid; place-items: center; background: #171c1c; color: #e8d5ac; border: 1px solid #d1ac687b; border-radius: 3px; font-size: 27px; font-family: Georgia, serif; }
.bc-winning-number.is-red { background: #6b2930; }
.bc-winning-number.is-green { background: #266048; }
.bc-roulette-choices { margin-top: 28px; }
.bc-roulette-choices button { flex: 1 1 80px; max-width: 140px; font-size: 11px; }
.bc-roulette-choices .bc-red { background: #62232980; }
.bc-number-label { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #d1c8ae; }
.bc-number-label input { width: 63px; height: 47px; }
@media (max-width: 600px) {
  .bc-header { gap: 11px; }
  .bc-header h2 { font-size: 23px; }
  .bc-wallet { padding-left: 10px; }
  .bc-wallet strong { font-size: 22px; }
  .bc-kicker { font-size: 8px; letter-spacing: .14em; }
  .bc-felt { padding: 24px 15px 22px; border-radius: 65px 65px 6px 6px; }
  .bc-chatter { font-size: 12px; gap: 10px; }
  .bc-choices { gap: 6px; }
  .bc-choices button { padding: 9px 7px; font-size: 11px; flex-basis: 75px; }
  .bc-controls { gap: 8px; }
  .bc-bet-label input { width: 95px; }
  .bc-primary { flex: 1 1 100%; margin-left: 0; }
  .bc-quick-bets { margin-left: auto; }
  .bc-quick-bets button { min-width: 43px; }
  .bc-hands { gap: 5px; }
  .bc-card { width: 51px; height: 80px; flex-basis: 51px; padding: 5px; font-size: 12px; }
  .bc-card > b { top: 28px; left: 16px; font-size: 22px; }
  .bc-card small { font-size: 10px; }
  .bc-cards { min-height: 86px; }
  .bc-card-back > span { font-size: 24px; }
  .bc-blackjack .bc-card { width: 59px; height: 89px; flex-basis: 59px; }
  .bc-blackjack .bc-card > b { left: 20px; top: 32px; }
  .bc-blackjack-hands .bc-cards { flex-wrap: wrap; row-gap: 7px; }
  .bc-hand h3 { font-size: 10px; letter-spacing: .04em; }
  .bc-roulette-choices button { flex-basis: 70px; max-width: none; }
  .bc-roulette-scene { width: 202px; height: 202px; margin-left: calc(50% - 116px); }
  .bc-wheel { width: 190px; height: 190px; }
  .bc-wheel-number { transform: translate(-50%, -50%) rotate(var(--bc-number-angle)) translateY(-71px); font-size: 7px; }
  .bc-wheel-pointer { left: 88px; }
  .bc-wheel-hub { inset: 39px; }
  .bc-winning-number { right: -42px; width: 40px; height: 48px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-game *, .bc-game *::before, .bc-game *::after { animation: none !important; transition: none !important; }
}
