html,
body {
  background: #176b70;
  min-height: 100%;
  overflow-x: hidden;
}
body {
  font-family: Arial, Helvetica, sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d99b35;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.production-app {
  position: relative;
  width: 100%;
  max-width: 620px;
  min-height: 100dvh;
  margin: auto;
  background: #176b70;
}
.production-app > .screen {
  width: 100%;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.production-app .home {
  height: 100dvh;
}
.production-app .top {
  padding-top: max(12px, env(safe-area-inset-top));
  flex-shrink: 0;
}
.production-app .form-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  min-height: 100dvh;
}
.form-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 6px 32px;
}
.form-content label {
  font-weight: bold;
}
.form-content input:not([type="checkbox"]),
.form-content select {
  padding: 12px;
  border: 1px solid #d9c7be;
  border-radius: 8px;
  background: #fff;
  color: #202a32;
  width: 100%;
  min-height: 44px;
}
.form-content p {
  line-height: 1.5;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox-label input {
  width: 20px;
  height: 20px;
}
.roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px;
}
.roster-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff33;
}
.roster-row strong {
  overflow-wrap: anywhere;
}
.roster-row small {
  margin-left: auto;
  text-align: right;
  min-width: 70px;
}
.roster-row .quiet {
  color: inherit;
}
.lobby-actions {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.lobby .room-code {
  margin: 8px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.lobby .room-code strong {
  font-size: 26px;
  letter-spacing: 2px;
}
.lobby .room-code .quiet {
  color: #fff;
}
.production-app .btn.secondary {
  background: #fff;
  color: #b92331;
  border: 1px solid #d7c4bc;
}
.production-app .gameplay-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.production-app .play-stage,
.production-app .reveal-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  overflow: visible;
}
.production-app .question-card {
  margin: 0 10px;
  flex: none;
  min-height: 330px;
  max-height: none;
  height: auto;
  overflow: visible;
}
.production-app .q-main {
  padding: 18px 16px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}
.production-app .question-card h2 {
  font-size: 25px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.production-app .card-answer-list {
  margin: 0;
  padding: 0;
}
.production-app .card-answer {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  min-height: 38px;
  align-items: center;
  overflow-wrap: anywhere;
}
.production-app .answer-label {
  font-size: 15px;
}
.production-app .text-size-1 h2 {
  font-size: 29px;
}
.production-app .text-size-2 h2 {
  font-size: 33px;
}
.production-app .text-size-1 .answer-label {
  font-size: 17px;
}
.production-app .text-size-2 .answer-label {
  font-size: 19px;
}
.production-app .card-lower {
  padding: 0 14px 12px;
}
.production-app .card-tail {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.production-app .question-feedback {
  display: flex;
  gap: 6px;
}
.production-app .question-feedback button {
  border: 1px solid #e8b3b3;
  border-radius: 20px;
  width: 32px;
  min-height: 32px;
  color: #b92331;
}
.production-app .question-feedback [aria-pressed="true"] {
  background: #b92331;
  color: white;
}
.production-app .cards-dock,
.production-app .reveal-dock {
  position: static;
  flex: none;
  width: 100%;
  margin-top: auto;
  border-radius: 18px 18px 0 0;
  padding: 15px 12px;
  background: #fff9f5;
  color: #352721;
  max-height: none;
  overflow: visible;
}
.production-app .cards-dock {
  margin-top: 30px;
}
.production-app .keys {
  display: flex;
  gap: 6px;
}
.production-app .keys .key {
  flex: 1;
  min-height: 54px;
}
.production-app .selection-line {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 0 10px;
  gap: 7px;
}
.production-app .selection-label {
  font-size: 12px;
  letter-spacing: 1px;
}
.production-app .status-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.production-app .status-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.production-app .status-list span:first-child {
  overflow-wrap: anywhere;
}
.production-app .scores {
  max-height: none;
  overflow: visible;
}
.production-app .score-row {
  min-height: 48px;
}
.production-app .score-name {
  min-width: 0;
  overflow-wrap: anywhere;
  gap: 6px;
}
.handoff-screen {
  display: flex;
  flex-direction: column;
}
.handoff-content {
  padding: 40px 24px;
  display: grid;
  gap: 24px;
  text-align: center;
  margin: auto 0;
}
.handoff-content .icon {
  font-size: 64px;
}
.handoff-content h2 {
  font-size: 30px;
  overflow-wrap: anywhere;
}
.final-screen {
  padding: 16px;
}
.final-scores {
  padding: 24px 0;
}
.final-scores .score-row {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid #ffffff55;
}
.production-app .picker-content {
  padding: 16px;
  overflow: visible;
}
.production-app .picker-list {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}
.production-app .picker-question {
  display: flex;
  flex-direction: column;
  padding: 16px;
  text-align: left;
  gap: 10px;
  white-space: normal;
}
.connection-banner,
.app-alert,
.app-notice {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 580px;
  z-index: 100;
  background: #fff9f5;
  color: #332822;
  padding: 14px;
  border: 2px solid #b92331;
  border-radius: 10px;
  box-shadow: 0 4px 24px #0003;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow-wrap: anywhere;
}
.connection-banner {
  bottom: auto;
  top: 8px;
}
.app-notice {
  border-color: #176b70;
}
.catalog-app {
  max-width: 900px;
  margin: auto;
  padding: 20px 16px 50px;
  color: white;
}
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.catalog-header a {
  color: white;
  padding: 12px;
}
.catalog-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.catalog-controls label {
  display: grid;
  gap: 7px;
}
.catalog-controls input,
.catalog-controls select {
  padding: 12px;
  border-radius: 8px;
  border: 0;
  background: #fff;
  color: #202a32;
  min-width: 0;
  width: 100%;
}
.catalog-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.catalog-card {
  background: #fff9f5;
  color: #b92331;
  padding: 22px;
  border-radius: 14px;
}
.catalog-card h2 {
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.catalog-card ol {
  padding-left: 22px;
  line-height: 1.6;
}
.catalog-meta {
  font-size: 12px;
  color: #76635a;
}
.catalog-empty {
  grid-column: 1/-1;
}
#catalog-status {
  min-height: 25px;
}
@media (max-width: 360px) {
  .production-app .question-card h2 {
    font-size: 22px;
  }
  .production-app .text-size-1 h2 {
    font-size: 26px;
  }
  .production-app .text-size-2 h2 {
    font-size: 29px;
  }
  .catalog-controls {
    grid-template-columns: 1fr;
  }
  .roster-row {
    flex-wrap: wrap;
  }
}
@media (min-width: 700px) {
  .production-app {
    box-shadow: 0 0 60px #0001;
  }
  .production-app .cards-dock {
    margin-top: 40px;
  }
}
.production-app .lobby .room-stage {
  flex: none;
  min-height: 320px;
  padding: 20px 18px 0;
}
.production-app .lobby .table-space {
  width: 100%;
  max-width: 390px;
  height: 300px;
  margin: 0 auto;
  position: relative;
}
.production-app .roster-details {
  padding: 8px 20px;
}
.production-app .roster-details summary {
  cursor: pointer;
  padding: 12px;
  font-weight: bold;
}
.production-app .lobby .seat-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.production-app .lobby .seat button {
  min-width: 38px;
  min-height: 38px;
}
.production-app .lobby .table-space .big-table {
  width: 65%;
  height: 65%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.production-app .lobby .room-code strong {
  color: #fff;
}
.production-app .lobby-actions > .btn:not(.secondary) {
  background: #fff5e8;
  color: #b92331;
  border: 2px solid #fff;
  font-weight: 800;
}
