/* Beta controls reuse the approved palette, typography and button treatments. */
.beta-badge {
  position: absolute; top: 4px; right: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px; border: 1px solid #a76de36b; border-radius: 8px;
  color: #e8d5ff; background: linear-gradient(135deg, #281543, #140b28);
  box-shadow: inset 0 1px 0 #dab4ff12, 0 0 14px #963cff16;
  font: 600 9px/1 "Segoe UI", sans-serif; letter-spacing: 1px; white-space: nowrap;
  animation: beta-badge-in .28s ease-out both;
}
.beta-badge::before { content: ""; width: 3px; height: 3px; flex-shrink: 0; border-radius: 50%; background: #c38aff; box-shadow: 0 0 5px #b96aff66; }
@keyframes beta-badge-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .beta-badge { animation: none; } }
.beta-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 5px 0 8px; flex-shrink: 0; }
.beta-tools button { min-width: 0; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: #b69acb; font: 10px/1.5 "Segoe UI", sans-serif; padding: 7px 4px; }
.beta-tools button span { font-size: 15px; color: #d9a7eb; margin-left: 3px; }
.beta-tools button:active { background: #a067ca12; }
.beta-dialog { max-height: calc(var(--beta-visible-height, 100dvh) - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); scroll-padding: 20px; }
.beta-dialog .modal-top { margin-bottom: 15px; }
.beta-dialog .close-button { min-width: 44px; min-height: 44px; }
.beta-dialog .modal-eyebrow { font-size: 9px; }
.beta-short-rules { gap: 13px; }
.beta-short-rules li { font-size: 12px; }
.feedback-intro { color: #c4acd6; font: 12px/1.7 "Segoe UI", sans-serif; margin: 0 0 20px; }
.feedback-form { display: flex; flex-direction: column; gap: 9px; }
.feedback-form > label, #report-label { display: block; color: #e4cdef; font: 12px/1.6 "Segoe UI", sans-serif; margin: 7px 0 0; }
.feedback-form > label span { color: #a78bbd; font-size: 10px; margin-left: 5px; }
.feedback-form textarea, .feedback-form select, #feedback-report { width: 100%; min-width: 0; max-width: 100%; border: 1px solid #8554ac90; border-radius: 13px; background: #0c0620; color: #f8efff; font: 16px/1.55 "Segoe UI", sans-serif; padding: 11px 12px; }
.feedback-form textarea, #feedback-report { resize: vertical; min-height: 80px; }
.feedback-form select { min-height: 48px; }
.feedback-form textarea::placeholder { color: #89719c; font-size: 12px; }
.feedback-form textarea:focus, .feedback-form select:focus, #feedback-report:focus { outline: 2px solid #30d8ff; outline-offset: 2px; }
.feedback-form [aria-invalid="true"] { border-color: #ff9fcf; }
.feedback-form .game-primary { margin-top: 8px; }
.feedback-privacy { color: #a78bbd; font: 10px/1.7 "Segoe UI", sans-serif; margin: 20px 0 0; }
.rating-fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.rating-fieldset legend { font-size: 13px; color: #ddc0ed; margin: 0 0 8px; }
.rating-stars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.rating-stars label { position: relative; cursor: pointer; }
.rating-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating-stars span { display: grid; place-items: center; min-height: 50px; border: 1px solid #6b458866; border-radius: 12px; background: #2e173c55; font-size: 30px; color: #6b507d; }
.rating-stars [data-active="true"] span { color: #f58bf4; border-color: #d67bea77; background: #6c276133; }
.rating-stars input:focus-visible + span { outline: 2px solid #30d8ff; outline-offset: 3px; }
#feedback-report { margin-top: 9px; font-size: 14px; min-height: 180px; }
.feedback-copy-hint { font: 12px/1.7 "Segoe UI", sans-serif; color: #c6add7; margin: 14px 0; }
.feedback-status { font: 12px/1.7 "Segoe UI", sans-serif; color: #a8e4ee; margin: 12px 0 0; overflow-wrap: anywhere; }
.feedback-status:empty { margin: 0; }
#copy-feedback:disabled { opacity: .55; }
#send-feedback:disabled { opacity: .55; cursor: default; }
html.beta-keyboard dialog { top: calc(var(--beta-visible-top, 0px) + 8px); bottom: auto; margin-top: 0; max-height: calc(var(--beta-visible-height, 100dvh) - 16px); }
@media (max-width: 350px) { .beta-dialog .modal-inner { padding: 18px; } .beta-tools button { font-size: 9px; } .rating-stars span { font-size: 26px; } }
