/* Tidebet originals  -  shared with site shell tokens from app.css */
.original-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 22px 28px;
  box-sizing: border-box;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-subtle, rgba(52, 60, 100, 0.55));
  background: var(--bg-elevated, rgb(18 23 49));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.original-panel h1 {
  margin: 0 0 6px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary, #fff);
}

.original-panel__sub {
  margin: 0 0 22px;
  color: var(--text-muted, rgb(118 127 170));
  font-size: 0.875rem;
  line-height: 1.45;
  max-width: 36em;
}

.original-field {
  margin-bottom: 14px;
}

.original-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, rgb(164 170 198));
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.original-field input,
.original-field select {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, rgba(52, 60, 100, 0.65));
  background: var(--bg-deep, rgb(7 11 35));
  color: var(--text-primary, #fff);
  padding: 0 12px;
  font: inherit;
  font-weight: 600;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
}

.original-field input:focus,
.original-field select:focus {
  outline: 2px solid rgba(43, 99, 244, 0.45);
  outline-offset: 0;
  border-color: rgb(43 99 244);
}

.original-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .original-controls {
    grid-template-columns: 1fr;
  }
}

.original-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.original-row button {
  flex: 1;
  min-width: 100px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, rgba(52, 60, 100, 0.55));
  background: var(--bg-panel, rgb(24 30 60));
  color: var(--text-secondary, rgb(164 170 198));
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.original-row button:hover {
  background: var(--bg-panel-hover, rgb(31 37 70));
  color: var(--text-primary, #fff);
}

.original-row button.is-active {
  border-color: rgb(43 99 244);
  background: rgba(43, 99, 244, 0.18);
  color: #fff;
}

.original-play {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  background: rgb(43 99 244);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.original-play:hover:not(:disabled) {
  background: rgb(59 115 255);
}

.original-play:active:not(:disabled) {
  transform: scale(0.99);
}

.original-play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.original-result {
  margin-top: 16px;
  min-height: 2.5rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary, rgb(164 170 198));
}

.original-result--win {
  color: rgb(32 208 149);
}

.original-result--lose {
  color: rgb(232 48 94);
}

.dice-display {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  padding: 22px;
  border-radius: 12px;
  background: var(--bg-deep, rgb(7 11 35));
  border: 1px solid var(--border-subtle, rgba(52, 60, 100, 0.45));
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

/* Legacy plinko markup  -  current pages use .plinko-stage--fs in games.css */
.plinko-stage:not(.plinko-stage--fs) {
  max-width: 320px;
  margin: 0 auto 10px;
}

.plinko-stage:not(.plinko-stage--fs) #plinko-canvas {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, rgba(52, 60, 100, 0.45));
  background: rgb(7 11 35);
}

.plinko-stage:not(.plinko-stage--fs) .plinko-buckets {
  display: flex;
  gap: 2px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 18px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.plinko-bucket {
  flex: 1;
  min-width: 0;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 5px 2px;
  border-radius: 4px;
  text-align: center;
  background: var(--bg-panel, rgb(24 30 60));
  color: var(--text-muted, rgb(118 127 170));
  font-variant-numeric: tabular-nums;
}

.plinko-bucket--hit {
  background: rgb(43 99 244);
  color: #fff;
}
