.sticks { gap: 3px; width: 142px; min-width: 0; }
.penalty-visual { width: 136px; height: 54px; display: flex; align-items: center; justify-content: center; }
.penalty-wood { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(2px 4px 2px #061c1cb3); }
.no-stick { display: grid; place-items: center; width: 112px; height: 35px; padding: 6px; border: 1px dashed #c4d1ad66; border-radius: 7px; color: #d5dfc0; font-size: 10px; }
.stage-5 .no-stick { color: #ffdda0; border-color: #ddb15c; background: #7e551e44; }
.stage-6 .no-stick { color: #d7bdb2; border-color: #bd7e6c; }
.opponent .penalty-label, #human-sticks .penalty-label { font: 500 10px/1.2 'DM Sans', sans-serif; color: #f4dfb7; text-align: center; min-height: 12px; white-space: normal; margin: 0; }
.loss-meter, #human-sticks .loss-meter { display: flex !important; align-items: center; justify-content: center; gap: 4px; height: 7px; margin: 1px 0 !important; }
.loss-meter i { width: 5px; height: 5px; border-radius: 50%; background: #d3d5b929; border: 1px solid #c4cba84d; }
.loss-meter i.filled { background: #d9b475; border-color: #edcc94; }
.loss-count, #human-sticks .loss-count { font: 9px 'DM Sans', sans-serif !important; color: #c5d0b4 !important; margin: 0 !important; letter-spacing: .3px !important; }
.sticks:has(.stage-5) .loss-meter i.filled { background: #f4b155; }
.player-seat .sticks { width: 158px; }
.player-seat { padding-top: 8px; padding-bottom: 8px; }
.turn-marker { display: grid; place-items: center; height: 65px; font: italic 22px Georgia,serif; color: #d7cba5; }
.starter-initial { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #d8c29188; background: #d9bc8050; color: #fff0c9; font: 22px Georgia; }
#pot-count { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
#scene { top: 182px; }
#scene canvas { max-width: 100%; }
.opening-instruction { width: 100%; text-align: center; font-size: 11px; color: #e1d9b6; letter-spacing: .5px; }
.opening-board { padding: 14px 18px; border: 1px solid #d7dccb; border-radius: 9px; margin: 0 0 14px; background: #ebece1; }
.opening-board .eyebrow { display: block; margin-bottom: 10px; font-size: 8px; }
.opening-tie-note { padding: 11px 13px; margin: 0 0 13px; border: 1px solid #c6af77; border-radius: 6px; background: #f5ead0; color: #5a4c2f; font-size: 11px; }
.opening-tie-note>strong { font-size: 11px; }
.tied-faces { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 8px; }
.tied-faces>span { display: inline-flex; align-items: center; gap: 6px; }
.tie-equals { color: #9a8252; }
.opening-tie-note p { margin: 9px 0 0; line-height: 1.5; }
.opening-progress { margin: 11px 0 0; color: #77816c; font-size: 9px; line-height: 1.5; }
.opening-seat { padding: 6px; border: 1px solid transparent; border-radius: 5px; flex-wrap: wrap; }
.opening-seat.current { border-color: #b5c3a8; background: #f5f5e9; }
.opening-seat small { font-size: 8px; color: #7a846e; }
.opening-players { display: flex; gap: 12px; }
.opening-players>div { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.opening-players strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 500; }
.pending-face { font-size: 8px; color: #8a907f; }
.opening-results { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.opening-results>div { display: flex; flex-direction: column; gap: 6px; align-items: center; min-width: 72px; }
.opening-results>div>.mini-die { width: 35px; height: 38px; }
.opening-results strong { font-size: 11px; }
.opening-results>div>span:last-child { font-size: 8px; color: #7b866d; }
.result-losses { display: block; font-size: 8px; color: #7d896f; margin-top: 3px; }
.setup-rule { flex: 1; font-size: 10px; padding: 14px 12px 0; line-height: 1.6; color: #7b866e; }
.setup-rule b { display: block; color: #476044; }
.penalty-guide { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 18px 0; }
.guide-stage { padding: 10px 8px; border: 1px solid #d6dbca; border-radius: 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #eeeee3; }
.guide-stage>span { font-size: 7px; letter-spacing: 1px; color: #849075; }
.guide-stage .penalty-wood { width: 120px; height: 55px; filter: drop-shadow(1px 2px 1px #6d6c4140); }
.guide-stage strong { font-size: 9px; font-weight: 500; }
.guide-empty { display: grid; place-items: center; font-size: 11px; height: 55px; color: #849075; }
.tutorial-note + .tutorial-note { margin-top: 10px; }
@media(max-width:1100px) { .opponent .sticks { width: 112px; }.opponent .penalty-visual { width: 110px; }.opponent { min-width: 0; } }
@media(max-width:500px) {
  .table { height: 580px; }
  .opponent .sticks { width: 100%; max-width: 100px; }
  .opponent .penalty-visual { width: 94px; max-width: 100%; height: 42px; }
  .no-stick { width: 88px; max-width: 100%; font-size: 8px; height: 31px; }
  .opponent .penalty-label { font-size: 8px; min-height: 20px; max-width: 95px; }
  .opponent .loss-count { font-size: 8px !important; }
  .loss-meter i { width: 4px; height: 4px; }
  .opponent small { font-size: 7px; }
  .pot { top: 192px; min-width: 0; width: calc(100% - 32px); max-width: 360px; height: 42px; gap: 8px; }
  .turn-marker { height: 28px; min-width: 43px; font-size: 14px; }
  .starter-initial { width: 25px; height: 25px; font-size: 15px; }
  #pot-count { flex: 1; min-width: 0; max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; font-size: 11px; line-height: 1.2; }
  #scene { top: 240px; }
  .player-seat .sticks { width: 134px; }
  .player-seat .penalty-visual { width: 132px; height: 48px; }
  #human-sticks .penalty-label { font-size: 9px; }
  .player-seat { gap: 8px; }
  .opening-players { gap: 8px; }
  .opening-players>div { flex-direction: column; gap: 7px; }
  .opening-board { padding: 12px; }
  .opening-instruction { font-size: 9px; }
  .setup-rule { padding: 14px 0 0 10px; font-size: 9px; }
}
@media(max-width:360px) {
  .actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .roll-dots { justify-content: flex-end; }
  .action-buttons { display: grid; grid-template-columns: auto minmax(0,1fr); width: 100%; }
  .action-buttons button { padding: 12px 8px; font-size: 10px; }
}
