/* ─── Design Tokens ─── */
:root {
  --color-bg:           #e9e0c6;
  --color-bg-tan:       #e9e0c6;
  --color-brown-dark:   #1e1610;
  --color-brown-darker: #3a2a1a;
  --color-gold:         #b87838;
  --color-gold-light:   #d49848;
  --color-tan-border:   #1e1610;
  --color-green:        #2a6e1a;
  --color-red:          #c84e18;
  --color-red-dark:     #8c3010;
  --color-orange:       #c84e18;
  --color-blue:         #1a7a96;
  --shadow-card:        2px 2px 0 rgba(30,22,16,0.3);
  --shadow-zone:        2px 2px 0 rgba(30,22,16,0.3);
  --shadow-button:      3px 3px 0 #1e1610;
  --radius-card:        0px;
  --radius-btn:         0px;
}

/* ─── Showdown Screen ─── */

.showdown-overlay {
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.5rem 0 2rem;
  background: rgba(20, 10, 3, 0.96);
  z-index: 110;
  backdrop-filter: blur(3px);
}

.showdown-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.showdown-title-area {
  text-align: center;
  margin-bottom: 1.5rem;
}

@keyframes showdownReveal {
  from { opacity: 0; transform: scale(0.6) translateY(-30px); letter-spacing: 20px; }
  to   { opacity: 1; transform: scale(1) translateY(0);       letter-spacing: 6px; }
}

.showdown-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 2.8rem;
  text-transform: uppercase;
  color: #e8c872;
  letter-spacing: 6px;
  text-shadow: 0 0 40px rgba(232,200,114,0.6), 0 2px 6px rgba(0,0,0,0.8);
  animation: showdownReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  margin-bottom: 0.4rem;
}

.showdown-subtitle {
  color: #c8a96e;
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0;
  animation: tallyAppear 0.6s ease-out 0.9s both;
}

#showdown-players {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.showdown-player {
  background: rgba(233,224,198,0.97);
  border: 2px solid #b87838;
  box-shadow: 2px 2px 0 #1e1610;
  padding: 0.85rem;
}

.showdown-player-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1e1610;
  text-align: center;
  margin-bottom: 0.5rem;
}

.showdown-player-herd {
  text-align: center;
  font-size: 0.8rem;
  color: #2a6e1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.showdown-herd-val {
  font-size: 1.5rem;
  display: inline-block;
  line-height: 1;
}

@keyframes showdownHerdBump {
  0%   { transform: scale(1);    color: #2b6e2b; }
  35%  { transform: scale(1.6);  color: #1a8c1a; text-shadow: 0 0 12px rgba(26,140,26,0.5); }
  100% { transform: scale(1);    color: #2b6e2b; }
}

.showdown-herd-bump {
  animation: showdownHerdBump 0.7s ease-out forwards;
}

.showdown-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  perspective: 800px;
  margin-bottom: 0.6rem;
  min-height: 50px;
}

.showdown-card-grid .card {
  width: 50px;
  height: 70px;
}

.showdown-tally {
  text-align: center;
  font-size: 0.82rem;
  color: #1e1610;
  padding: 0.5rem 0.6rem;
  background: rgba(30,22,16,0.07);
  border: 1px solid rgba(30,22,16,0.15);
  animation: tallyAppear 0.4s ease-out both;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

@keyframes tallyAppear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tally-formula {
  color: #1e1610;
}

.tally-cows   { color: #2a6e1a; font-weight: bold; }
.tally-bonus  { color: #b87838; font-weight: bold; }
.tally-zero   { color: rgba(30,22,16,0.4); font-style: italic; }

.tally-total {
  font-size: 0.9rem;
  font-weight: bold;
  color: #1e1610;
  border-top: 1px solid rgba(30,22,16,0.2);
  padding-top: 0.2rem;
  margin-top: 0.1rem;
}

#showdown-footer {
  text-align: center;
  padding: 0.5rem 1rem 1rem;
  animation: tallyAppear 0.5s ease-out both;
}

@media (max-width: 480px) {
  .showdown-title { font-size: 1.9rem; letter-spacing: 3px; }
  .showdown-card-grid .card { width: 42px; height: 59px; }
  #showdown-players { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1e1610;
  background-color: #e9e0c6;
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Overlays (start, game over, rules, special) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 29, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(3px);
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  background: #e9e0c6;
  border: 2.5px solid #1e1610;
  box-shadow: 6px 6px 0 #1e1610;
  padding: 2.5rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.overlay-content h1,
.overlay-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: #1e1610;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.overlay-content h2 {
  font-size: 1.6rem;
  letter-spacing: 1.5px;
}


.back-link {
  display: block;
  margin-top: 1rem;
  color: rgba(30,22,16,0.5);
  font-size: 0.9rem;
}


.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #1e1610;
  cursor: pointer;
}

/* Buttons */
.btn, .btn-large, .btn-small {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #b87838;
  color: #1e1610;
  text-decoration: none;
  border: 2.5px solid #1e1610;
  font-size: 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform 0.07s, box-shadow 0.07s;
}

.btn:hover, .btn-large:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #1e1610;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-button);
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

.btn-small {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  background: transparent;
  color: rgba(233,224,198,0.65);
  border: 1.5px solid rgba(233,224,198,0.3);
  box-shadow: none;
  font-weight: normal;
}

.btn-small:hover {
  color: #e9e0c6;
  border-color: rgba(233,224,198,0.65);
  transform: none;
  box-shadow: none;
}

.btn-small.btn-disband {
  color: #c84e18;
  border-color: rgba(200,78,24,0.5);
}
.btn-small.btn-disband:hover {
  border-color: #c84e18;
  color: #e9e0c6;
}

.btn-secondary {
  background: rgba(233,224,198,0.18);
  color: rgba(233,224,198,0.95);
  border-color: rgba(233,224,198,0.7);
  box-shadow: none;
  font-weight: normal;
}

.btn-secondary:hover {
  background: rgba(233,224,198,0.28);
  color: #e9e0c6;
  border-color: rgba(233,224,198,0.9);
  transform: none;
  box-shadow: none;
}

/* --- Draw Card button: shimmer + outward glow, escalates with bandit risk --- */
@keyframes drawShimmer {
  0%   { background-position: 220% center; }
  100% { background-position: -80% center; }
}

@keyframes drawGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); }
  50%       { box-shadow: 0 0 12px 4px rgba(192,57,43,0.4); }
}

@keyframes drawGlowWarn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(190,95,0,0); }
  50%       { box-shadow: 0 0 16px 6px rgba(190,95,0,0.55); }
}

@keyframes drawGlowDanger {
  0%, 100% { box-shadow: 0 0 4px 2px rgba(192,57,43,0.25); }
  50%       { box-shadow: 0 0 22px 10px rgba(192,57,43,0.7); }
}

/* Safe (0 bandits) — gentle red shimmer, slow pulse */
.btn-draw {
  color: #e9e0c6;
  border-color: rgba(30,22,16,0.6);
  box-shadow: 3px 3px 0 rgba(30,22,16,0.5);
  background: linear-gradient(
    105deg,
    #c0392b 0%, #c0392b 38%,
    #d9534f 47%, #ea7570 52%,
    #d9534f 57%, #c0392b 66%,
    #c0392b 100%
  );
  background-size: 300% auto;
  animation: drawShimmer 3.5s linear infinite,
             drawGlow 2.5s ease-in-out infinite;
  transition: filter 0.15s;
}

.btn.btn-draw:hover {
  background-color: transparent;
  filter: brightness(1.15);
}

/* 1 bandit — amber, quicker */
.btn-draw.btn-draw-warn {
  background: linear-gradient(
    105deg,
    #9e5200 0%, #9e5200 38%,
    #bf6d0a 47%, #d4860b 52%,
    #bf6d0a 57%, #9e5200 66%,
    #9e5200 100%
  );
  background-size: 300% auto;
  animation: drawShimmer 2.4s linear infinite,
             drawGlowWarn 1.8s ease-in-out infinite;
}

/* 2 bandits — dark crimson, fast urgent pulse */
.btn-draw.btn-draw-danger {
  background: linear-gradient(
    105deg,
    #6b160a 0%, #6b160a 28%,
    #a82018 44%, #c0392b 52%,
    #a82018 58%, #6b160a 74%,
    #6b160a 100%
  );
  background-size: 300% auto;
  animation: drawShimmer 1.6s linear infinite,
             drawGlowDanger 1s ease-in-out infinite;
}

.btn-burn {
  background: transparent;
  color: #c84e18;
  border-color: rgba(200,78,24,0.5);
  box-shadow: none;
  font-weight: normal;
}

.btn-burn:hover {
  color: #1e1610;
  border-color: #c84e18;
  background: rgba(200,78,24,0.1);
  transform: none;
  box-shadow: none;
}

.btn-special {
  background: transparent;
  color: #1a7a96;
  border-color: rgba(26,122,150,0.5);
  box-shadow: none;
  font-weight: normal;
}

.btn-special:hover {
  color: #1e1610;
  border-color: #1a7a96;
  background: rgba(26,122,150,0.1);
  transform: none;
  box-shadow: none;
}

.hidden {
  display: none !important;
}

/* Game Layout */
#game {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* Header */
#game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.5rem;
  background: #1e1610;
  color: #e9e0c6;
  border-bottom: 2.5px solid #1e1610;
  margin-bottom: 0.5rem;
}

.header-left {
  font-size: 1rem;
  font-weight: bold;
}

.header-left .sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.header-right {
  display: flex;
  gap: 0.4rem;
}

/* Turn Order Bar */
#turn-order-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: #3a2a1a;
  border: 2px solid #1e1610;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

#turn-order-bar .tor-player {
  padding: 0.15rem 0.5rem;
  color: rgba(233,224,198,0.5);
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s;
}

#turn-order-bar .tor-player.tor-active {
  background: #b87838;
  color: #1e1610;
  font-weight: bold;
  opacity: 1;
}

#turn-order-bar .tor-player.tor-busted {
  text-decoration: line-through;
  opacity: 0.3;
}

#turn-order-bar .tor-arrow {
  color: rgba(233,224,198,0.25);
  font-size: 0.65rem;
}

/* Zone labels */
.zone-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b87838;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

/* Player info bars */
.player-info {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.herd-display {
  color: #2a6e1a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.herd-number-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.herd-number {
  display: inline-block;
  font-size: var(--herd-size, 0.9rem);
  font-weight: var(--herd-weight, 400);
  color: var(--herd-color, #7aaa7a);
  text-shadow: var(--herd-shadow, none);
  letter-spacing: var(--herd-spacing, 0px);
  transition: font-size 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
  line-height: 1;
}

.herd-dust {
  position: absolute;
  left: 105%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 50%;
  width: 0; height: 0;
}

/* Opponent herd — 60% of player size */
.opp-zone .herd-number {
  font-size: calc(var(--herd-size, 0.9rem) * 0.6);
}

@keyframes herdPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
.herd-number.pulsing {
  animation: herdPulse 2.2s ease-in-out infinite;
}

@keyframes herdBump {
  0%   { transform: scale(1); filter: brightness(1); }
  28%  { transform: scale(var(--bump-scale, 1.25)); filter: brightness(1.6); }
  65%  { transform: scale(calc(1 + (var(--bump-scale, 1.25) - 1) * 0.4)); filter: brightness(1.2); }
  100% { transform: scale(1); filter: brightness(1); }
}
.herd-number.bumping {
  animation: herdBump 0.5s ease-out forwards !important;
}

@keyframes dustPuff {
  0%   { opacity: 0.7; width: var(--dust-w0, 12px); height: var(--dust-h0, 8px);
         background: rgba(139,105,20,0.45); filter: blur(2px);
         transform: translateY(-50%) scale(1); }
  100% { opacity: 0;   width: var(--dust-w1, 22px); height: var(--dust-h1, 14px);
         background: rgba(139,105,20,0); filter: blur(5px);
         transform: translateY(-50%) scale(1.7); }
}
.herd-dust.puffing {
  animation: dustPuff 0.65s ease-out forwards;
}

.round-stats {
  display: flex;
  justify-content: space-around;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  background: rgba(30,22,16,0.07);
  border: 1px solid rgba(30,22,16,0.15);
  margin-bottom: 0.25rem;
}

.hud-stat-icon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.hud-stat-icon {
  height: 1.2em;
  width: auto;
  display: block;
}

.round-stats strong {
  font-size: 1.3em;
}

/* Hand row (deck preview + drawn cards) */
.hand-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  overflow: hidden;
}

.hand-row .hand {
  min-width: 0;
}

[id$="-deck-preview"] {
  flex-shrink: 0;
  min-width: 60px;
  min-height: 84px;
}

/* Ghost placeholder when deck is empty — keeps layout stable */
[id$="-deck-preview"]:empty {
  border: 2px dashed rgba(139,105,20,0.2);
  border-radius: 4px;
}

body.phase-draw #player-deck-preview {
  min-width: 100px;
  min-height: 140px;
}

[id$="-deck-preview"] .card {
  opacity: 0.85;
}

.deck-label {
  font-size: 0.6rem;
  text-align: center;
  color: #b87838;
  margin-top: 2px;
}

/* Collapsible sections */
.collapsible {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
  max-height: 300px;
  opacity: 1;
}

.collapsible.collapsed {
  max-height: 0;
  opacity: 0;
}

.collapse-toggle {
  font-size: 0.65rem;
  color: rgba(233,224,198,0.5);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

/* Opponents Zone */
#opponents-zone {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.opp-zone {
  flex: 1;
  min-width: 0;
  background: #e9e0c6;
  border: 2px solid #1e1610;
  box-shadow: var(--shadow-zone);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  position: relative;
}

.ai-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  user-select: none;
  gap: 0.5rem;
}

.ai-summary:hover {
  background: rgba(30,22,16,0.06);
}

.ai-summary-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.ai-inline-stats {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.ai-inline-stats .sep {
  opacity: 0.3;
  margin: 0 0.1rem;
}

.ai-stat-bandit strong {
  color: #c84e18;
}

.opp-zone .collapsible {
  padding: 0 0.5rem 0.5rem;
}

.opp-zone .collapsible .hand {
  min-height: 50px;
}

/* Hand (drawn cards) */
.hand {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-height: 70px;
  padding: 0.25rem 0;
  align-items: flex-start;
}

/* Card */
.card {
  width: 60px;
  height: 84px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card.clickable {
  cursor: pointer;
}

.card.clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.card.affordable {
  box-shadow: 0 0 0 2px #b87838, 0 0 8px rgba(184,120,56, 0.5);
}

.card.selected {
  box-shadow: 0 0 0 3px #b87838, 0 0 12px rgba(184,120,56, 0.5);
  transform: translateY(-4px);
}

/* Card with an active special-action button — blue outline to match btn-special */
.card.card-active-special {
  box-shadow: 0 0 0 2px #1a7a96, 0 0 8px rgba(26,122,150, 0.45);
}

.card.dimmed {
  opacity: 0.85;
  filter: grayscale(0.7) brightness(0.78) sepia(0.15);
}

.card.busted {
  opacity: 0.5;
  filter: sepia(0.5) saturate(2) hue-rotate(-30deg);
}

.card-cost {
  position: absolute;
  bottom: 3px;
  left: 3px;
  background: rgba(30,22,16,0.82);
  color: #d49848;
  font-family: Georgia, serif;
  font-size: 0.6rem;
  padding: 1px 4px;
  font-weight: bold;
}

.card-slot {
  width: 60px;
  height: 84px;
  border: 2px dashed #ccc;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Card flip animation */
.card.flipping {
  animation: cardFlip 0.4s ease-in-out;
}

@keyframes cardFlip {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.card.draw-anim {
  animation: cardDraw 0.3s ease-out;
}

@keyframes cardDraw {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Two-phase card draw flip animation */
@keyframes drawFlipOut {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(90deg); }
}

@keyframes drawFlipIn {
  from { transform: rotateY(90deg); }
  to   { transform: rotateY(0deg); }
}

/* Phase 1: show back, pause briefly so player registers it, then rotate to edge */
.card.card-flip-out {
  animation: drawFlipOut 0.18s ease-in 0.12s both;
}

/* Phase 2: face swapped at midpoint, rotate in with a slight overshoot */
.card.card-flip-in {
  animation: drawFlipIn 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Perspective container for 3D card flip */
#player-hand {
  perspective: 800px;
}

/* Pyramid */
#pyramid-zone {
  padding: 0.5rem;
  background: #1e1610;
  border: 2.5px solid #1e1610;
  margin-bottom: 0.5rem;
  text-align: center;
  overflow: hidden;
}

#pyramid-zone .zone-label {
  color: #b87838;
}

#pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
}

.pyramid-row {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

/* Pyramid cards */
.pyramid-row .card {
  width: 70px;
  height: 98px;
}

/* Action Zone */
#action-zone {
  padding: 0.75rem;
  background: #3a2a1a;
  border: 2px solid #1e1610;
  box-shadow: var(--shadow-zone);
  margin-bottom: 0.5rem;
  text-align: center;
}

#message {
  color: #d49848;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  min-height: 1.4em;
}

#actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Player Zone */
#player-zone {
  padding: 0.5rem;
  background: #e9e0c6;
  border: 2px solid #1e1610;
  box-shadow: var(--shadow-zone);
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  position: relative;
}

/* --- Draw-phase leader indicator: gold border + crown icon --- */
@keyframes crownPop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.35) rotate(8deg);  opacity: 1; }
  80%  { transform: scale(0.9)  rotate(-3deg); opacity: 1; }
  100% { transform: scale(1)    rotate(0deg);  opacity: 1; }
}

#player-zone.draw-leader,
.opp-zone.draw-leader {
  box-shadow: 0 0 0 2px #c9a227, 0 0 10px 3px rgba(201,162,39,0.3);
}

.draw-crown {
  display: none;
  font-size: 0.95rem;
  line-height: 1;
  vertical-align: middle;
  margin-left: 0.2rem;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}

.draw-crown.crown-visible {
  display: inline-block;
  animation: crownPop 0.4s ease-out both;
}

.done-draw-mark {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #5aad5a;
  margin-left: 0.3rem;
  vertical-align: middle;
  pointer-events: none;
}
.done-draw-mark.hidden { display: none; }

/* --- Player zone bust: bandits glow 1-2-3, then zone flashes and BUSTED stamps --- */
@keyframes playerZoneBust {
  0%   { border-color: #1e1610; box-shadow: none; }
  20%  { border-color: #c84e18; box-shadow: 0 0 0 4px #c84e18, 0 0 24px rgba(200,78,24,0.85); }
  100% { border-color: #c84e18; box-shadow: 0 0 0 2px #c84e18, 0 0 10px rgba(200,78,24,0.3), inset 0 0 12px rgba(200,78,24,0.2); }
}

#player-zone.zone-busted {
  animation: playerZoneBust 0.6s ease-out 0.85s both;
}

@keyframes playerBustStamp {
  0%   { opacity: 0; transform: scale(1.5); letter-spacing: 16px; }
  55%  { opacity: 1; transform: scale(0.97); letter-spacing: 8px; }
  100% { opacity: 1; transform: scale(1);   letter-spacing: 8px; }
}

#player-zone.zone-busted::after {
  content: 'BUSTED';
  position: absolute;
  inset: 0;
  background: transparent;
  color: #c84e18;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  animation: playerBustStamp 0.35s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}

/* Opponent zone bust — 3 pulses then stamp */
@keyframes oppBustPulse {
  0%   { box-shadow: none; border-color: #1e1610; }
  11%  { box-shadow: 0 0 0 3px #c84e18, 0 0 14px rgba(200,78,24,0.7); border-color: #c84e18; }
  22%  { box-shadow: none; border-color: #1e1610; }
  33%  { box-shadow: 0 0 0 3px #c84e18, 0 0 14px rgba(200,78,24,0.7); border-color: #c84e18; }
  44%  { box-shadow: none; border-color: #1e1610; }
  55%  { box-shadow: 0 0 0 3px #c84e18, 0 0 14px rgba(200,78,24,0.7); border-color: #c84e18; }
  70%  { box-shadow: none; border-color: #1e1610; }
  100% { box-shadow: 0 0 0 2px #c84e18, 0 0 10px rgba(200,78,24,0.3), inset 0 0 12px rgba(200,78,24,0.2); border-color: #c84e18; }
}

@keyframes oppBustStamp {
  0%   { opacity: 1; transform: scale(2.2) translateY(-6px); }
  55%  { transform: scale(0.92); }
  78%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.opp-zone.zone-busted {
  animation: oppBustPulse 1.1s ease-out forwards;
}

.opp-zone.zone-busted::after {
  content: 'BUSTED';
  position: absolute;
  inset: 0;
  background: transparent;
  color: #c84e18;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.3rem;
  font-style: normal;
  letter-spacing: 4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  animation: oppBustStamp 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

/* --- Player Bust: bandit card highlight --- */
/* box-shadow instead of outline so the ring starts at the card edge —
   outline-offset pushed outside .hand-row's overflow:hidden boundary */
.card.bust-culprit {
  box-shadow: 0 0 0 3px #c84e18, var(--shadow-card);
}

/* Sequential scale pulse so players count 1-2-3 */
/* Allow the scaled card to visually overflow the hand-row during bust */
#player-zone.zone-busted .hand-row {
  overflow: visible;
}
@keyframes banditPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.bust-bandit-pulse { animation: banditPulse 0.35s ease-out forwards; }

/* --- Active buyer zone: pulsing amber border --- */
@keyframes buyPulse {
  0%, 100% { box-shadow: 0 0 0 2px #b07c1a, 0 0  8px 2px rgba(176,124,26,0.25); }
  50%       { box-shadow: 0 0 0 2px #b07c1a, 0 0 18px 6px rgba(176,124,26,0.55); }
}

#player-zone.zone-buying,
.opp-zone.zone-buying {
  animation: buyPulse 1.8s ease-in-out infinite;
}

/* Game Log */
#log-zone {
  margin-bottom: 1rem;
}

.log-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
}

.log-summary:hover {
  background: rgba(30,22,16,0.06);
}

#game-log {
  font-size: 0.75rem;
  color: #3a2a1a;
  max-height: 100px;
  overflow-y: auto;
  padding: 0.25rem;
}

#game-log div {
  padding: 1px 0;
  border-bottom: 1px solid rgba(30,22,16,0.1);
}

#game-log .log-bust {
  color: #c84e18;
  font-weight: bold;
}

#game-log .log-buy {
  color: #2a6e1a;
}

#game-log .log-burn {
  color: #c84e18;
}

#game-log .log-score {
  color: #1e1610;
  font-weight: bold;
}

#game-log .log-tie {
  color: #b87838;
  font-style: italic;
}

/* Score animation */
.score-popup {
  position: fixed;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2a6e1a;
  pointer-events: none;
  animation: scoreFloat 1.5s ease-out forwards;
  z-index: 50;
}

@keyframes scoreFloat {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-60px); }
}

/* Act transition overlay */
.act-transition {
  animation: fadeInOut 2.5s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Special modal cards (for rearrange, replay) */
.modal-cards {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.modal-cards .card {
  width: 80px;
  height: 112px;
  cursor: pointer;
}

.modal-cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-cards .card.selected {
  box-shadow: 0 0 0 3px #b87838;
}

/* Peek button inside rearrange modal */
.modal-peek-btn {
  display: block;
  margin: 1rem auto 0;
  font-size: 0.85rem;
}

/* Peek mode: hide form content, show restore bar */
#special-modal.peeking #special-modal-content {
  visibility: hidden;
}

#peek-restore-bar {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
}

#special-modal.peeking #peek-restore-bar {
  display: flex;
}

#btn-peek-restore {
  background: #1e1610;
  color: #e9e0c6;
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid #b87838;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

#btn-peek-restore:hover {
  background: #3a2a1a;
}

/* Card zoom overlay */
#card-zoom {
  cursor: pointer;
  z-index: 200;
}

#card-zoom-img {
  max-width: 260px;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Card hover preview (floating tooltip on pyramid card hover) */
#card-hover-preview {
  position: fixed;
  z-index: 150;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  transition: opacity 0.1s;
}

#card-hover-preview.hidden {
  display: none;
}

#card-hover-img {
  width: 180px;
  border-radius: 8px;
  display: block;
}

/* Deck viewer modal */
.deck-content {
  max-width: 780px;
  text-align: left;
}

.deck-content h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.deck-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.deck-row-label {
  width: 64px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b87838;
  padding-top: 0.2rem;
}

.deck-row-suits {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.deck-col {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: flex-start;
}

.deck-grid {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.deck-grid .card,
.deck-col .card {
  width: 65px;
  height: 91px;
}

/* Deck peek modal */
.deck-peek-hint {
  font-size: 0.85rem;
  color: #b87838;
  font-style: italic;
  margin-bottom: 1rem;
  text-align: center;
}

.deck-peek-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.deck-peek-pos {
  font-size: 0.6rem;
  color: #b87838;
  text-align: center;
}

.deck-peek-clickable {
  cursor: pointer;
  position: relative;
}

.deck-peek-clickable::after {
  content: '👁 Peek';
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,22,16,0.85);
  color: #e9e0c6;
  font-size: 0.6rem;
  padding: 2px 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.deck-peek-clickable:hover::after {
  opacity: 1;
}

.order-number {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #b87838;
  color: #1e1610;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ─── Zone ordering (flex order within #game column) ─── */
#game-header     { order: 1; }
#opponents-zone  { order: 2; }
#pyramid-zone    { order: 3; }
#action-zone     { order: 4; }
#player-zone     { order: 5; }
#log-zone        { order: 6; }

/* ─── Pyramid: always-on vertical overlap ─── */
#pyramid {
  gap: 0;
  padding: 0.25rem 0;
}

.pyramid-row {
  position: relative;
  pointer-events: none; /* let clicks fall through empty row space */
}

.pyramid-row .card {
  pointer-events: auto;
}
/* .card-slot must NOT have pointer-events:auto — empty slots in higher-z-index
   rows would otherwise block clicks on face-up cards behind them */

/* Hide empty slots in pyramid (cards already taken); match card size */
.pyramid-row .card-slot {
  width: 70px;
  height: 98px;
  border: none;
  background: transparent;
}

/* Bottom rows appear in front of top rows */
.pyramid-row:nth-child(1) { z-index: 1; }
.pyramid-row:nth-child(2) { z-index: 2; margin-top: -55px; }
.pyramid-row:nth-child(3) { z-index: 3; margin-top: -55px; }
.pyramid-row:nth-child(4) { z-index: 4; margin-top: -55px; }
.pyramid-row:nth-child(5) { z-index: 5; margin-top: -55px; }
.pyramid-row:nth-child(6) { z-index: 6; margin-top: -55px; }
.pyramid-row:nth-child(7) { z-index: 7; margin-top: -55px; }

/* ─── Selected card preview (buy phase) ─── */
#card-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

#card-preview .preview-card {
  width: 120px;
  height: 168px;
  cursor: default;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#card-preview .preview-card:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ─── Draw phase layout ─── */
/* Reorder: action + player cards front & center, pyramid shrinks to footer */
body.phase-draw #action-zone  { order: 3; }
body.phase-draw #player-zone  { order: 4; }
body.phase-draw #pyramid-zone { order: 5; }

/* Big player hand cards during draw phase */
body.phase-draw #player-zone .card,
body.phase-draw #player-zone .card-slot,
body.phase-draw #player-deck-preview .card {
  width: 100px;
  height: 140px;
}

body.phase-draw #player-zone .hand {
  min-height: 140px;
  gap: 0.5rem;
}

/* Smaller pyramid cards during draw phase */
body.phase-draw .pyramid-row .card,
body.phase-draw .pyramid-row .card-slot {
  width: 44px;
  height: 62px;
}

body.phase-draw .pyramid-row:nth-child(n+2) {
  margin-top: -35px; /* ~56% of 62px */
}

/* Mobile */
@media (max-width: 768px) {
  #game {
    padding: 0 0.25rem;
  }

  .card {
    width: 50px;
    height: 70px;
  }

  .card-slot {
    width: 50px;
    height: 70px;
  }

  .pyramid-row .card {
    width: 44px;
    height: 62px;
  }

  .pyramid-row .card-slot {
    width: 44px;
    height: 62px;
  }

  /* Recalculate overlap for smaller cards */
  .pyramid-row:nth-child(n+2) { margin-top: -35px; }

  .hand {
    min-height: 56px;
  }

  .hand-row {
    gap: 0.35rem;
  }

  #message {
    font-size: 0.9rem;
  }

  .player-info {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .round-stats {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .ai-summary-left {
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .ai-inline-stats {
    font-size: 0.75rem;
  }

  .opp-zone .collapsible .hand {
    min-height: 40px;
  }

  #opponents-zone {
    flex-direction: column;
  }

  .btn, .btn-large, .btn-small {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
  }

  #actions {
    gap: 0.4rem;
  }

  #actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .overlay-content {
    padding: 1.5rem;
  }

  .overlay-content h1 {
    font-size: 1.6rem;
  }

  .overlay-content h2 {
    font-size: 1.3rem;
  }

  .modal-cards .card {
    width: 65px;
    height: 91px;
  }

  .deck-grid .card,
  .deck-col .card {
    width: 55px;
    height: 77px;
  }

  /* Draw phase: medium player cards on tablet/phone */
  body.phase-draw #player-zone .card,
  body.phase-draw #player-zone .card-slot,
  body.phase-draw #player-deck-preview .card {
    width: 75px;
    height: 105px;
  }

  body.phase-draw #player-zone .hand {
    min-height: 105px;
  }
}

@media (max-width: 400px) {
  .card {
    width: 42px;
    height: 59px;
  }

  .card-slot {
    width: 42px;
    height: 59px;
  }

  .pyramid-row .card {
    width: 38px;
    height: 53px;
  }

  .pyramid-row .card-slot {
    width: 38px;
    height: 53px;
  }

  .pyramid-row:nth-child(n+2) { margin-top: -30px; }

  .pyramid-row {
    gap: 0.2rem;
  }

  .hand {
    gap: 0.2rem;
  }

  .hand-row {
    gap: 0.25rem;
  }

  .card-cost {
    font-size: 0.5rem;
  }

  .deck-label {
    font-size: 0.5rem;
  }

  #game-header {
    font-size: 0.85rem;
  }

  .ai-summary-left {
    font-size: 0.7rem;
    gap: 0.3rem;
  }

  .ai-inline-stats {
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    min-height: 36px;
    min-width: 36px;
  }

  #actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .overlay-content {
    padding: 1rem;
    width: 95%;
  }

  .overlay-content h1 {
    font-size: 1.4rem;
  }

  .overlay-content h2 {
    font-size: 1.15rem;
  }

  .modal-cards .card {
    width: 55px;
    height: 77px;
  }

  .deck-grid .card,
  .deck-col .card {
    width: 46px;
    height: 64px;
  }

  /* Draw phase: smaller player cards on very small screens */
  body.phase-draw #player-zone .card,
  body.phase-draw #player-zone .card-slot,
  body.phase-draw #player-deck-preview .card {
    width: 60px;
    height: 84px;
  }

  body.phase-draw #player-zone .hand {
    min-height: 84px;
  }
}

/* ─── Quick Start Draft Overlay ─── */

.draft-overlay {
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 10, 3, 0.96);
  z-index: 110;
  overflow-y: auto;
  backdrop-filter: blur(3px);
}

.draft-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.draft-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 2rem;
  color: #e8c872;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.draft-round-label {
  font-size: 1rem;
  color: #c8a96e;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.draft-subtitle {
  font-size: 0.88rem;
  color: #c8a96e;
  margin-bottom: 1.5rem;
}

.draft-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.draft-card-grid .card {
  cursor: pointer;
}

.draft-card-grid .card.draft-pending {
  outline: 3px solid #e8c872;
  outline-offset: 2px;
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(232,200,114,0.4);
}

.draft-card-grid .card.draft-selected {
  outline: 3px solid #e8c872;
  outline-offset: 2px;
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(232,200,114,0.4);
  cursor: default;
}

.draft-card-grid .card.draft-unchosen {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Action row: large preview + confirm/cancel buttons side by side — always visible */
.draft-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1rem 0 0.5rem;
}

/* Placeholder box — fixed size always, populated on card click */
.draft-action-preview-wrap {
  width: 120px;
  height: 168px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(200,169,110,0.2);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.draft-action-preview-wrap.has-card {
  border: 3px solid #e8c872;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.draft-action-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.15s;
}

.draft-action-preview-wrap.has-card .draft-action-preview {
  opacity: 1;
}

.draft-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.draft-confirm-btn {
  background: #e8c872;
  color: #1a0d02;
  border: none;
  border-radius: 0;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  white-space: nowrap;
}

.draft-confirm-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.draft-confirm-btn:not(:disabled):hover {
  background: #f5d98a;
  transform: translateY(-1px);
}

.draft-cancel-btn {
  background: transparent;
  color: #c8a96e;
  border: 1px solid #c8a96e;
  border-radius: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, opacity 0.15s;
}

.draft-cancel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.draft-cancel-btn:not(:disabled):hover {
  color: #e8c872;
  border-color: #e8c872;
}

.draft-message {
  color: #c8a96e;
  font-style: italic;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.draft-log {
  margin-top: 1.25rem;
  max-height: 7rem;
  overflow-y: auto;
  font-size: 0.82rem;
  color: #a89060;
  text-align: left;
  padding: 0 0.25rem;
}

.draft-log-entry {
  margin-bottom: 0.25rem;
}

/* ─── Tutorial ─── */

/* Info step text shown inline in the action zone */
#message.tutorial-info-msg {
  line-height: 2.3;
  font-style: normal;
}

/* Message + "Got it →" injected into the deck modal during deck lesson steps */
#tutorial-deck-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 22, 16, 0.2);
  text-align: center;
}

.tutorial-deck-msg {
  color: #1e1610;
  font-size: 0.95rem;
  line-height: 2.2;
  margin: 0 0 0.75rem;
}

/* ── Inline symbol images inside tutorial messages ───────────────────────── */
.tut-sym {
  height: 2.5em;
  vertical-align: middle;
  display: inline-block;
  margin: 0 0.1em;
  background: rgba(255, 248, 225, 0.92);
  border-radius: 50%;
  padding: 0.18em;
  box-sizing: content-box;
}

.tut-back {
  height: 3em;
  vertical-align: middle;
  border-radius: 3px;
  display: inline-block;
  margin: 0 0.1em;
}

/* ── Action-zone tutorial label ──────────────────────────────────────────── */
body.tutorial-active #action-zone {
  border: 2px solid rgba(232, 200, 114, 0.45);
}

body.tutorial-active #action-zone::before {
  content: "Tutorial";
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(232, 200, 114, 0.5);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* ── Deck lesson card highlight ──────────────────────────────────────────── */
#deck-modal-body .card.tut-deck-highlight {
  outline: 3px solid #e8c872;
  outline-offset: 3px;
  border-radius: 4px;
}

#deck-modal-body:has(.tut-deck-highlight) .card:not(.tut-deck-highlight) {
  opacity: 0.35;
  transition: opacity 0.2s;
}

/* ── Spotlight ring ──────────────────────────────────────────────────────── */
.tutorial-spotlight {
  border-radius: 6px;
  outline: 2px solid #e8c872;
  outline-offset: 4px;
  animation: tutorial-pulse 1.2s ease-in-out infinite;
}

#pyramid .card.tutorial-pyramid-hint {
  outline: 3px solid #e8c872;
  outline-offset: 3px;
  border-radius: 4px;
  animation: tutorial-pulse 1.2s ease-in-out infinite;
}

@keyframes tutorial-pulse {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(232, 200, 114, 0.4); }
  50%       { box-shadow: 0 0 20px 5px rgba(232, 200, 114, 0.85); }
}

/* Flash on blocked action */
@keyframes tutorial-blocked {
  0%, 100% { background-color: inherit; }
  30%       { background-color: rgba(192, 57, 43, 0.18); }
}

.tutorial-blocked-flash {
  animation: tutorial-blocked 0.6s ease-in-out;
}
