:root {
  --bg: #f5f2ea;
  --ink: #11383f;
  --muted: #557075;
  --panel: #ffffff;
  --line: #dce7e3;
  --accent: #f2b84b;
  --teal: #0b3b46;
  --green: #126b62;
  --danger: #b42318;
  --success: #177245;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.buttonLink {
  align-items: center;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.successButton {
  background: var(--success);
}

.compact {
  font-size: 0.92rem;
  min-height: 40px;
  padding: 0 14px;
}

.secondary {
  background: var(--green);
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.guestShell {
  margin: 0 auto;
  max-width: 480px;
  min-height: 100vh;
  overflow-x: clip;
  padding: 18px;
  width: 100%;
}

.adminShell {
  margin: 0 auto;
  max-width: 1080px;
  padding: 32px 20px;
}

.loginShell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.loginPanel {
  max-width: 420px;
  width: 100%;
}

.loginPanel label {
  display: grid;
  gap: 6px;
}

.loginPanel label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.adminSessionBar {
  align-items: center;
  background: var(--teal);
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 10px 20px;
}

.hero {
  background: linear-gradient(135deg, var(--teal), var(--green));
  border-radius: 8px;
  color: #fff;
  margin-bottom: 16px;
  padding: 28px;
}

.homeHero {
  margin-top: 40px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.95;
  margin: 8px 0 18px;
}

.logo {
  display: block;
  margin-bottom: 20px;
  max-height: 80px;
  max-width: 220px;
  object-fit: contain;
}

.venueHero {
  align-items: center;
  background: #000;
  background-image: none;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 22px;
  text-align: center;
}

.venueHero .logo {
  margin: 0;
}

.venueHero .eyebrow {
  margin: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(17, 56, 63, 0.08);
  margin-bottom: 16px;
  padding: 22px;
}

.stack {
  display: grid;
  gap: 14px;
}

.formGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.formGrid label {
  display: grid;
  gap: 6px;
}

.formGrid label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formGrid .wide,
.formActions {
  grid-column: 1 / -1;
}

.formSectionTitle {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 18px;
}

.formSectionTitle h2,
.formSectionTitle h3,
.formSectionTitle p {
  margin: 0;
}

.logoUploadBox {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 14px;
}

.logoUploadBox img {
  background: #000;
  border-radius: 8px;
  max-height: 120px;
  max-width: 240px;
  object-fit: contain;
  padding: 10px;
}

.uploadControl {
  background: var(--teal);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: 0 14px;
  align-items: center;
}

.logoUploadBox input[type="file"] {
  border: 0;
  min-height: auto;
  padding: 0;
}

.checkRow {
  align-items: center;
  display: flex !important;
  gap: 10px !important;
}

.checkRow input {
  min-height: auto;
  width: auto;
}

.formActions {
  display: flex;
  justify-content: flex-end;
}

.inlineForm {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.2fr) 120px minmax(140px, 1fr) minmax(140px, 1fr) auto;
  margin-bottom: 16px;
}

.managerCreateGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.offer {
  background: var(--accent);
  border-radius: 8px;
  color: var(--ink);
  display: inline-block;
  font-weight: 900;
  margin: 8px 0 0;
  padding: 12px 14px;
}

.inputRow {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.starRating {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 100%;
  width: 100%;
}

.starButton {
  background: #e8eeeb;
  border-radius: 8px;
  color: #879895;
  font-size: 1.55rem;
  min-height: 44px;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.selectedStar {
  background: var(--accent);
  color: #111;
}

.gameGrid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.gameButton {
  align-items: center;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  justify-content: stretch;
  min-height: 96px;
  overflow: hidden;
  padding: 18px 18px;
  text-align: left;
  width: 100%;
}

.gameButton strong {
  color: #fff;
  display: block;
  font-size: 1.26rem;
  line-height: 1.1;
}

.gameButtonText span {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 5px;
}

.gameIcon {
  align-items: center;
  display: flex;
  font-size: 3rem;
  justify-content: center;
  line-height: 1;
  min-width: 84px;
}

.gameIcon-wrangle {
  font-size: 4.8rem;
  transform: scale(1.18);
}

.gameArrow {
  color: rgba(255, 255, 255, 0.64);
  font-size: 2.4rem;
  line-height: 1;
}

.gameButton-word {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

.gameButton-hangman {
  background: linear-gradient(135deg, #2196f3, #1976d2);
}

.gameButton-trivia {
  background: linear-gradient(135deg, #00c853, #64dd17);
}

.gameButton-riddle {
  background: linear-gradient(135deg, #9c27b0, #e040fb);
}

.gameButton-spiral {
  background: linear-gradient(135deg, #d50000, #ff1744);
}

.gameButton-wrangle {
  background: linear-gradient(135deg, #651fff, #b388ff);
}

.gameButton:disabled {
  opacity: 0.55;
}

.gameShell {
  background: #111;
  color: #fff;
  max-width: min(480px, 100%);
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}

.gameHeader {
  padding: 8px 0 20px;
  text-align: center;
}

.gameHeader a {
  color: #c9d8d4;
  display: inline-block;
  margin-bottom: 20px;
}

.gameHeader h1 {
  margin: 0;
}

.wordGame {
  display: grid;
  gap: 16px;
  max-width: 100%;
  min-width: 0;
}

.hangmanGame {
  display: grid;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.triviaGame {
  display: grid;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.riddleGame {
  display: grid;
  gap: 16px;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.spiralGame {
  display: grid;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.wrangleGame {
  display: grid;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.spiralHelp {
  color: #c9d8d4;
  line-height: 1.4;
  margin: 0;
}

.wrangleHelp {
  color: #c9d8d4;
  line-height: 1.4;
  margin: 0;
}

.wranglePyramid {
  display: grid;
  gap: 8px;
  justify-self: center;
  max-width: 100%;
}

.wrangleRow {
  display: flex;
  gap: clamp(5px, 2vw, 8px);
  justify-content: center;
  max-width: 100%;
}

.wrangleCell {
  align-items: center;
  background: #fff;
  border: 3px solid #ccc;
  border-radius: 50%;
  color: #111;
  display: flex;
  font-size: clamp(1.15rem, 6vw, 1.55rem);
  font-weight: 900;
  height: clamp(44px, 14vw, 56px);
  justify-content: center;
  width: clamp(44px, 14vw, 56px);
}

.wrangleCell.start {
  background: #e0ffe0;
  border-color: #4dff7a;
  box-shadow: 0 0 12px rgba(77, 255, 122, 0.45);
  color: #006400;
}

.spiralGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  justify-self: center;
  max-width: 310px;
  width: 100%;
}

.spiralCell {
  aspect-ratio: 1;
  background: #242424;
  border: 2px solid #555;
  border-radius: 50%;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  min-height: auto;
  padding: 0;
}

.spiralCell.start {
  border-color: #4dff7a;
  box-shadow: 0 0 12px rgba(77, 255, 122, 0.45);
  color: #4dff7a;
}

.spiralCell.hiddenCell {
  background: #111;
  border-color: #333;
  color: #777;
}

.riddleClue {
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 10px;
}

.riddleSub {
  color: #c9d8d4;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riddleLetters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  min-height: 58px;
}

.riddleBox {
  align-items: center;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 6px;
  color: #111;
  display: flex;
  font-size: 1.45rem;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  min-width: 42px;
}

.riddleBox.filled {
  background: #e8f5e9;
  border-color: #2f8f46;
}

.gameMessage {
  color: var(--accent);
  font-weight: 900;
  margin: 0;
}

.giveUpButton {
  background: transparent;
  color: #777;
  min-height: 36px;
  text-decoration: underline;
}

.triviaProgress,
.triviaCategory {
  color: #c9d8d4;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.triviaCategory {
  background: #333;
  border-radius: 6px;
  color: var(--accent);
  justify-self: center;
  padding: 7px 12px;
}

.triviaGame h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0;
}

.triviaOptions {
  display: grid;
  gap: 10px;
}

.triviaOption {
  background: #2a2a2a;
  border: 1px solid #444;
  justify-content: flex-start;
  min-height: 58px;
  text-align: left;
  width: 100%;
}

.triviaOption:disabled {
  cursor: default;
  opacity: 1;
}

.correctOption {
  background: #2f8f46;
  border-color: #2f8f46;
}

.wrongOption {
  background: #9f1d1d;
  border-color: #9f1d1d;
}

.hangmanHint {
  background: var(--accent);
  border-radius: 999px;
  color: #111;
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 900;
  justify-self: center;
  padding: 8px 16px;
  text-transform: uppercase;
}

.hangmanArt {
  align-items: center;
  background: #181818;
  border: 1px solid #333;
  border-radius: 8px;
  color: #ffb238;
  display: flex;
  font-family: "Courier New", monospace;
  font-size: 2rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1.08;
  margin: 0;
  min-height: 145px;
  white-space: pre;
}

.hangmanPhrase {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  justify-content: center;
  min-height: 112px;
  max-width: 100%;
  overflow: hidden;
}

.hangmanWord {
  display: grid;
  gap: clamp(2px, 1vw, 6px);
  grid-template-columns: repeat(var(--letter-count), minmax(0, 34px));
  justify-content: center;
  max-width: 100%;
  width: min(100%, calc(var(--letter-count) * 40px));
}

.hangmanLetter {
  align-items: center;
  background: #fff;
  border-bottom: 4px solid #ffb238;
  border-bottom-width: clamp(2px, 1vw, 4px);
  border-radius: 6px;
  color: #111;
  display: flex;
  font-size: clamp(0.62rem, calc(62vw / var(--letter-count)), 1.45rem);
  font-weight: 900;
  height: clamp(34px, 11vw, 46px);
  justify-content: center;
  min-width: 0;
  text-transform: uppercase;
}

.hangmanSpace {
  flex-basis: 100%;
  height: 2px;
}

.hangmanMisses {
  color: #c9d8d4;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hangmanKeyboard .keyButton:disabled {
  cursor: default;
  opacity: 0.82;
}

.goodKey {
  background: #2f8f46;
}

.badKey {
  background: #9f1d1d;
}

.phraseAnswer {
  color: #4dff7a;
  font-size: 2rem !important;
  letter-spacing: 0;
}

.wordGrid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 auto;
  max-width: 360px;
  width: 100%;
}

.wordTile {
  align-items: center;
  aspect-ratio: 1;
  background: #222;
  border: 2px solid #555;
  color: #fff;
  display: flex;
  font-size: 1.7rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.wordTile.correct {
  background: #2f8f46;
  border-color: #2f8f46;
}

.wordTile.present {
  background: #b59f3b;
  border-color: #b59f3b;
}

.wordTile.absent {
  background: #3a3a3c;
  border-color: #3a3a3c;
}

.checkGuess {
  background: #2f8f46;
  font-size: 1rem;
  min-height: 54px;
  text-transform: uppercase;
}

.keyboard {
  display: grid;
  gap: 5px;
  max-width: 100%;
  width: 100%;
}

.keyboardRow {
  display: flex;
  gap: 5px;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.keyButton {
  background: #555;
  border-radius: 5px;
  flex: 1 1 0;
  min-height: 44px;
  min-width: 0;
  padding: 0;
}

.actionKey {
  flex: 1.55 1 0;
  font-size: 0.82rem;
}

.gameModal {
  align-items: center;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 20;
}

.gameModalPanel {
  background: #1f1f1f;
  border: 1px solid #555;
  border-radius: 8px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 24px;
  text-align: center;
  width: 100%;
}

.gameModalPanel.winPanel {
  border-color: rgba(77, 255, 122, 0.65);
  box-shadow:
    0 0 0 1px rgba(77, 255, 122, 0.2),
    0 18px 60px rgba(77, 255, 122, 0.16);
}

.gameCelebration {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 4px 0 12px;
}

.gameCelebration p {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0;
}

.celebrationBurst {
  height: 54px;
  position: relative;
  width: 150px;
}

.celebrationBurst::before {
  animation: celebrationPulse 850ms ease-out both;
  background: radial-gradient(circle, rgba(77, 255, 122, 0.95) 0 20%, transparent 22%);
  border-radius: 50%;
  content: "";
  height: 48px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
}

.celebrationBurst span {
  animation: celebrationRay 900ms ease-out both;
  background: var(--accent);
  border-radius: 999px;
  height: 5px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform-origin: 0 50%;
  width: 34px;
}

.celebrationBurst span:nth-child(1) {
  transform: rotate(0deg) translateX(22px);
}

.celebrationBurst span:nth-child(2) {
  animation-delay: 70ms;
  background: #4dff7a;
  transform: rotate(55deg) translateX(22px);
}

.celebrationBurst span:nth-child(3) {
  animation-delay: 110ms;
  background: #2aa7ff;
  transform: rotate(115deg) translateX(22px);
}

.celebrationBurst span:nth-child(4) {
  animation-delay: 150ms;
  transform: rotate(180deg) translateX(22px);
}

.celebrationBurst span:nth-child(5) {
  animation-delay: 190ms;
  background: #4dff7a;
  transform: rotate(235deg) translateX(22px);
}

.celebrationBurst span:nth-child(6) {
  animation-delay: 230ms;
  background: #2aa7ff;
  transform: rotate(305deg) translateX(22px);
}

@keyframes celebrationPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes celebrationRay {
  0% {
    opacity: 0;
    width: 0;
  }
  45% {
    opacity: 1;
    width: 38px;
  }
  100% {
    opacity: 0.9;
    width: 28px;
  }
}

.gameModalPanel h2 {
  color: #4dff7a;
  font-size: clamp(1.8rem, 11vw, 3rem);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.modalActions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.success {
  color: var(--success);
  font-weight: 800;
  margin: 0;
}

.error {
  color: var(--danger);
  font-weight: 800;
  margin: 0;
}

.dangerButton {
  background: var(--danger);
  min-height: 38px;
  padding: 0 12px;
}

.actions,
.adminHeader {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.adminHeader {
  justify-content: space-between;
  margin-bottom: 20px;
}

.adminHeader h1,
.panel h2 {
  margin: 0;
}

.venueList {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.managerList {
  display: grid;
  gap: 16px;
}

.managerCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.managerCardHeader,
.assignedVenueRow,
.managerAssignForm {
  align-items: center;
  display: grid;
  gap: 12px;
}

.managerCardHeader {
  grid-template-columns: 1fr auto;
}

.managerCard h3 {
  margin: 0;
}

.assignedVenueList {
  display: grid;
  gap: 8px;
}

.assignedVenueRow {
  background: #f7fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: 1fr auto;
  padding: 10px;
}

.assignedVenueRow small {
  color: var(--muted);
}

.managerAssignForm {
  grid-template-columns: 1fr auto;
}

.statusActive,
.statusInactive {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  margin: 6px 0 0;
  text-transform: uppercase;
}

.statusActive {
  color: var(--success);
}

.statusInactive {
  color: var(--danger);
}

.venueCard {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 160px 1fr;
  padding: 16px;
}

.venueCard img {
  height: 160px;
  width: 160px;
}

.dashboardGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: 280px 1fr;
}

.contentGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
}

.fieldLabel {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.largeTextarea {
  font-family: "Courier New", monospace;
  min-height: 330px;
}

.qrLarge {
  display: block;
  height: 240px;
  margin-bottom: 14px;
  width: 240px;
}

.qrPrintPage {
  display: none;
}

.qrPrintCard {
  align-items: center;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.12in;
  text-align: center;
}

.qrPrintCard h2 {
  color: #000;
  font-size: 26px;
  margin: 0 0 0.14in;
}

.qrPrintCard img {
  height: 3.45in;
  width: 3.45in;
}

.qrPrintCard p {
  color: #000;
  font-size: 18px;
  font-weight: 900;
  margin: 0.14in 0 0.08in;
}

.detailList {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detailList div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.detailList dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detailList dd {
  margin: 5px 0 0;
}

.metricGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 16px;
}

.metricCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metricCard strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.metricCard span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 8px;
}

.statsPanel {
  margin-bottom: 16px;
}

.statsControls {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto;
}

.statsControls label {
  display: grid;
  gap: 6px;
}

.statsControls span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metricCardTeal {
  border-top: 5px solid var(--teal);
}

.metricCardGold {
  border-top: 5px solid var(--accent);
}

.metricCardGreen {
  border-top: 5px solid var(--green);
}

.metricCardBlue {
  border-top: 5px solid #2e6f95;
}

.metricCardRed {
  border-top: 5px solid var(--danger);
}

.sectionHeader {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tableWrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .inputRow,
  .venueCard,
  .contentGrid,
  .dashboardGrid,
  .formGrid,
  .inlineForm,
  .managerAssignForm,
  .managerCardHeader,
  .managerCreateGrid,
  .statsControls,
  .assignedVenueRow {
    grid-template-columns: 1fr;
  }

  .gameShell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .keyboard {
    gap: 4px;
  }

  .keyboardRow {
    gap: 4px;
  }

  .keyButton {
    font-size: 0.92rem;
    min-height: 42px;
  }

  .hangmanPhrase {
    gap: 8px 4px;
  }
}

@media print {
  @page {
    margin: 0;
    size: letter;
  }

  body {
    background: #fff;
  }

  body * {
    visibility: hidden;
  }

  .qrPrintPage,
  .qrPrintPage * {
    visibility: visible;
  }

  .qrPrintPage {
    background: #fff;
    display: grid !important;
    gap: 0;
    grid-template-columns: repeat(2, 4.25in);
    grid-template-rows: repeat(2, 5.5in);
    height: 11in;
    left: 0;
    position: absolute;
    top: 0;
    width: 8.5in;
  }
}
