* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
}

body {
  background: #081512;
  color: #f8f4ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.wyrApp {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 1040px;
  min-height: 100vh;
  padding: 14px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  height: 46px;
  width: 46px;
}

.brand h1 {
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

.helper,
.status,
.historyMeta,
.voteMeta {
  color: #c9d8d2;
}

.roomBadge {
  background: rgba(255, 250, 240, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  min-width: 92px;
  padding: 8px 10px;
  text-align: center;
}

.hero {
  border-radius: 8px;
  max-height: 260px;
  overflow: hidden;
}

.heroImage {
  display: block;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  width: 100%;
}

.surface,
.history,
.votePanel {
  background: rgba(255, 250, 240, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  color: #14241f;
}

.surface {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.modeGrid,
.joinGrid,
.playGrid,
.choiceGrid,
.controlStack,
.voteList {
  display: grid;
  gap: 10px;
}

.modeGrid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.joinGrid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.playGrid {
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
}

.choiceGrid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.modeButton,
.primaryButton,
.secondaryButton,
.choiceButton {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  min-height: 46px;
  padding: 0 14px;
}

.modeButton {
  background: #102820;
  color: #ffffff;
  padding: 14px;
  text-align: left;
}

.modeButton strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.modeButton span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  line-height: 1.35;
}

.primaryButton {
  background: #238a3b;
  color: #ffffff;
  font-weight: 850;
}

.secondaryButton {
  background: #e7dfd0;
  color: #23302b;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: #53645e;
  font-size: 13px;
}

input,
select {
  border: 1px solid #c9bda8;
  border-radius: 8px;
  color: #15231f;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.roundCard {
  display: grid;
  gap: 12px;
}

.roundHeader {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.roundTitle {
  color: #238a3b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.question {
  font-size: 28px;
  font-weight: 850;
  line-height: 1.12;
  margin: 0;
}

.choiceCard {
  align-content: space-between;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 16px;
  position: relative;
}

.choiceA {
  background: #ff6258;
  border: 1px solid #d63b36;
  color: #1b1110;
}

.choiceB {
  background: #32bed0;
  border: 1px solid #15879a;
  color: #061b20;
}

.choiceLabel {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  display: inline-flex;
  font-size: 28px;
  font-weight: 950;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.choiceText {
  font-size: 25px;
  font-weight: 850;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}

.choiceButton {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  color: #14241f;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
}

.choiceButton.selected {
  background: #14241f;
  color: #ffffff;
}

.resultBar {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.resultFill {
  background: #14241f;
  height: 100%;
}

.votePanel,
.history {
  padding: 12px;
}

.votePanel h2,
.history h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

.voteRow,
.historyRow {
  align-items: center;
  border-top: 1px solid #e6dccb;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 0;
}

.voteRow:first-of-type,
.historyRow:first-of-type {
  border-top: 0;
}

.voteName,
.historyPrompt {
  min-width: 0;
  overflow-wrap: anywhere;
}

.voteChip {
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  min-width: 34px;
  padding: 4px 8px;
  text-align: center;
}

.voteA {
  background: #c93633;
}

.voteB {
  background: #087b90;
}

.voteWaiting {
  background: #7b877f;
}

.status {
  background: rgba(16, 40, 32, 0.08);
  border-radius: 8px;
  color: #445650;
  margin: 0;
  padding: 10px 12px;
}

@media (max-width: 760px) {
  .wyrApp {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .playGrid,
  .joinGrid,
  .choiceGrid {
    grid-template-columns: 1fr;
  }

  .question {
    font-size: 24px;
  }

  .choiceCard {
    min-height: 190px;
  }

  .choiceText {
    font-size: 22px;
  }
}
