/* Tambola Housie - 100% Match Theme */
:root {
  --navy: #000033;
  --blue: #000099;
  --vibrant-blue: #0000ff;
  --coral: #ff8075;
  --yellow: #ffda36;
  --green: #176527;
  --teal: #008f83;
  --purple: #6b21a8;
  --purple-bg: #f4e3f5;
  --red: #ff0000;
  --dark-red: #842929;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body.mobile-app {
  background: #000033;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.app-viewport {
  width: 100%;
  max-width: 440px;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  position: relative;
  background: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-screen {
  display: none !important;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  flex-direction: column;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-screen.active {
  display: flex !important;
}

/* 1. HOME SCREEN */
.home-topbar {
  height: 76px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 5px solid #fff;
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-white { color: #fff; margin-right: 6px; }
.brand-b { color: #ff3333; }
.brand-o1 { color: #ffaa00; }
.brand-o2 { color: #00c3ff; }
.brand-k { color: #00dd55; }

.version-tag {
  font-size: 14px;
  color: #fff;
  line-height: 1.1;
  margin-left: auto;
  text-align: right;
  font-weight: 500;
}

.icon-action-btn {
  background: transparent;
  border: 0;
  color: #bbb;
  margin-left: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.home-content {
  padding: 10px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  flex: 1;
}

.nav-strip {
  min-height: 58px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.strip-navy { background: var(--navy); }
.strip-blue { background: #1976c9; }
.strip-maroon { background: #922d2d; }
.strip-join {
  background: #1976c9;
  justify-content: center;
  font-size: 22px;
  min-height: 64px;
  margin-top: 6px;
}

.strip-icon { font-size: 24px; margin-right: 14px; }
.strip-info { margin-left: auto; font-style: normal; font-size: 20px; }

.host-game-card-large {
  border: 2px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  margin-top: 4px;
}

.card-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hero-user-icon {
  font-size: 36px;
  color: var(--blue);
}

.card-hero-row h2 {
  margin: 0;
  font-size: 22px;
  color: var(--blue);
  font-weight: 800;
}

.card-hero-row small {
  color: var(--blue);
  font-size: 15px;
}

.legal-notice-box {
  background: #fff3c8;
  border-radius: 12px;
  padding: 14px 14px 14px 42px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.45;
  color: #6d4800;
}

.warn-symbol {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 22px;
  color: #d08800;
}

.home-footer-links {
  padding: 14px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-footer-links button {
  background: transparent;
  border: 0;
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

/* 2. NEW GAME PROMPT */
[data-screen="new-game-prompt"] {
  background: var(--navy);
  display: none !important;
}

[data-screen="new-game-prompt"].active {
  background: var(--navy);
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 100%;
  height: 100dvh;
}

.center-screen-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-yellow-big {
  background: var(--yellow);
  color: #000;
  border: 0;
  border-radius: 4px;
  padding: 14px 32px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

/* 3. HOST DASHBOARD */
[data-screen="host"] {
  background: var(--navy);
  padding-bottom: 90px;
  min-height: 100dvh;
}

.host-top-card {
  background: #fff;
  margin: 10px;
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-align: center;
}

.host-game-name {
  font-size: 25px;
  color: var(--blue);
  margin: 0 0 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.btn-coral-round {
  background: var(--coral);
  border: 0;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  margin-bottom: 8px;
  display: inline-block;
}

.host-counts-line {
  color: #5a2d82;
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 10px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.host-header-actions-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-navy-yellow {
  background: var(--navy);
  color: var(--yellow);
  border: 0;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.btn-purple-action {
  background: #5a2d82;
  color: #fff;
  border: 0;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.start-tickets-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.start-tickets-label {
  color: var(--blue);
  font-style: italic;
  font-size: 17px;
  font-weight: 600;
}

.stepper-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.step-val {
  font-size: 19px;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
  color: #000;
}

.select-all-row {
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.btn-win-lose-toggle {
  background: var(--yellow);
  color: #000;
  border: 0;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.win-lose-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}
.badge-winner {
  background: #b8860b;
  color: #fff;
}
.badge-loser {
  background: #d9534f;
  color: #fff;
}

.host-player-container {
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-card-white {
  background: #fff;
  border-radius: 4px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.player-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-title-text {
  font-size: 19px;
  color: var(--blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.sub-red-italic {
  color: #d00;
  font-style: italic;
  font-size: 15px;
  font-weight: 600;
}

.sub-green-italic {
  color: var(--green);
  font-style: italic;
  font-size: 15px;
  font-weight: 600;
}

.sub-ticket-count {
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.btn-pencil-edit {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  padding: 4px;
}

.inline-stepper-panel {
  background: #e4f0ff;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-confirm-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: 0;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
}

.win-lose-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.badge-winner { background: var(--yellow); color: #000; border: 1px solid #c9a600; }
.badge-loser { background: #ff3b30; color: #fff; }
.badge-normal { background: #e0e0e0; color: #555; }

.host-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #f8c9c9;
  display: flex;
  gap: 8px;
  padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px)) 10px;
  box-sizing: border-box;
  z-index: 100;
}

.btn-add-bulk {
  background: #fff;
  color: var(--blue);
  border: 0;
  border-radius: 4px;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-add-player-yellow {
  background: var(--yellow);
  color: #000;
  border: 0;
  border-radius: 4px;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-generate-coral {
  background: var(--coral);
  color: #000;
  border: 0;
  border-radius: 4px;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.btn-start-coral {
  background: var(--coral);
  color: #000;
  border: 0;
  border-radius: 4px;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.btn-share-green {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

/* 4. CALLER SCREEN */
[data-screen="caller"] {
  background: #fff;
  color: #000;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.share-live-board-box {
  padding: 8px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #fff;
  flex-shrink: 0;
}

.share-live-pill {
  border: 1.5px solid #000;
  border-radius: 6px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  color: var(--green);
  font-weight: 600;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #88c799;
  border-radius: 24px;
  transition: .25s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 17px;
  bottom: -1px;
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: .25s;
}

.switch-toggle input:not(:checked) + .toggle-slider:before {
  left: 1px;
  background-color: #777;
}

.switch-toggle input:not(:checked) + .toggle-slider {
  background-color: #ccc;
}

.icon-link-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.caller-board-wrap {
  position: relative;
  width: 100%;
}

.caller-grid-90 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border: 1px solid #000;
  background: #000;
  gap: 1px;
}

.caller-cell {
  aspect-ratio: 1.35;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #b0b0b0;
  cursor: pointer;
  user-select: none;
}

.caller-cell.called {
  background: var(--vibrant-blue) !important;
  color: #fff !important;
}

.caller-cell.current {
  background: var(--red) !important;
  color: #fff !important;
}

.huge-overlay-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 170px;
  font-weight: 900;
  color: var(--red);
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255,255,255,0.9);
  z-index: 10;
  line-height: 1;
  letter-spacing: -6px;
}

.caller-info-section {
  padding: 10px 14px;
  text-align: center;
}

.caller-players-tickets-tag {
  color: var(--dark-red);
  font-style: italic;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.caller-clock-time {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  margin-bottom: 4px;
}

.caller-history-line {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  min-height: 24px;
}

.hist-current {
  color: var(--red);
  font-size: 18px;
}

.hist-prev {
  color: var(--vibrant-blue);
}

.hist-total {
  color: var(--blue);
  margin-left: 8px;
  font-size: 17px;
}

.caller-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 14px;
  margin-top: 6px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}

.radio-label input {
  display: none;
}

.custom-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--teal);
  display: inline-block;
  position: relative;
}

.radio-label input:checked + .custom-radio:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ctrl-icon-btn {
  background: transparent;
  border: 0;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caller-delay-container {
  padding: 6px 30px;
  text-align: center;
}

.delay-text {
  color: #e00;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.green-slider {
  width: 100%;
  accent-color: var(--teal);
  height: 4px;
}

.caller-bottom-bar {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 6px;
  padding: 6px 8px calc(10px + env(safe-area-inset-bottom, 0px)) 8px;
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 10;
  flex-shrink: 0;
}

.btn-caller-verify {
  background: #ff8982;
  color: var(--blue);
  border: 0;
  border-radius: 4px;
  height: 50px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.chk-icon-badge {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--blue);
  color: #ff8982;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.btn-caller-play {
  background: var(--yellow);
  color: #000;
  border: 0;
  border-radius: 4px;
  height: 50px;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.btn-caller-share {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 4px;
  height: 50px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.admin-float-btn {
  position: fixed;
  right: 14px;
  bottom: 66px;
  background: var(--navy);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 24px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer;
  z-index: 101;
}

/* 5. VERIFY DRAWER */
.verify-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.verify-drawer-content {
  background: #fff;
  width: 100%;
  max-width: 440px;
  height: 92dvh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  box-sizing: border-box;
}

.verify-search-box input {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  border: 2px solid #000;
  padding: 0 18px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
}

.verify-ticket-card {
  margin-top: 14px;
  border: 2px solid var(--purple);
  border-radius: 4px;
  background: #fff;
  position: relative;
}

.verify-ticket-header {
  background: var(--purple-bg);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--purple);
}

.verify-header-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.verify-game-tag {
  color: var(--blue);
  font-size: 18px;
  font-weight: 600;
}

.verify-player-tag {
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
}

.btn-trash-green {
  border: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  right: 14px;
  top: 10px;
}

.verify-ticket-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  background: var(--purple);
  gap: 1.5px;
  padding: 1.5px;
}

.verify-cell {
  aspect-ratio: 1.1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #000;
}

.verify-cell.marked {
  background: var(--red) !important;
  color: #fff !important;
}

.verify-bottom-bar {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-verify-nav {
  width: 54px;
  height: 50px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #000;
  cursor: pointer;
}

.btn-verify-share {
  flex: 1;
  height: 50px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

/* 6. CLAIMS SCREEN */
[data-screen="claims"] {
  background: #fff;
  padding-bottom: 90px;
}

.claims-top-banner {
  text-align: center;
  background: #f6f6f6;
  padding: 12px 10px;
  position: relative;
  border-bottom: 1px solid #ddd;
}

.btn-readme-red {
  width: 100%;
  height: 44px;
  border: 1.5px solid #d00;
  background: #fff;
  color: #d00;
  font-size: 17px;
  font-weight: 800;
  border-radius: 4px;
  cursor: pointer;
}

.unlimited-claims-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin: 10px 0 4px;
}

.no-setwise-text {
  font-size: 18px;
  font-weight: 700;
  color: #d00;
  font-style: italic;
}

.btn-claims-gear {
  position: absolute;
  right: 14px;
  bottom: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.claims-pill-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 14px 10px 6px;
}

.pill-tab {
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 18px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.pill-tab.active {
  background: var(--navy);
  color: var(--yellow);
}

.pill-tab:not(.active) {
  background: #e6e6e6;
  color: #444;
}

.btn-design-own-claim {
  display: block;
  margin: 8px 14px 12px auto;
  color: #801515;
  font-size: 17px;
  font-weight: 800;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.claims-accordion-list {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claim-accordion-item {
  border: 2px solid var(--blue);
  border-radius: 4px;
  overflow: hidden;
}

.accordion-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 8px;
  background: #fbfbfb;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #eee;
}

.claim-accordion-item.open .accordion-content {
  display: flex;
}

.claim-checkbox-item {
  border: 1.5px solid #adc1ff;
  border-radius: 4px;
  background: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: #801515;
  font-weight: 500;
  cursor: pointer;
}

.claim-checkbox-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.claims-summary-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.btn-share-summary {
  border: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  background: #fff;
  color: #801515;
  font-size: 16px;
  font-weight: 800;
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
}

.claims-total-count {
  font-size: 26px;
  font-weight: 700;
  color: #000;
}

/* 7. CLAIM SETTINGS MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.claim-settings-dialog {
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 4px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.dialog-title-blue {
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.red-subtitle-center {
  color: #d00;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.slider-box {
  padding: 4px 10px 16px;
}

.navy-slider {
  width: 100%;
  accent-color: var(--navy);
}

.house-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 24px;
  cursor: pointer;
}

.house-checkbox-row input {
  width: 22px;
  height: 22px;
}

.setwise-heading {
  margin-top: 14px;
  margin-bottom: 16px;
}

.setwise-radio-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.set-radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
}

.set-radio-row input {
  width: 22px;
  height: 22px;
  accent-color: #000;
}

.claim-settings-footer-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-dialog-exit {
  border: 1px solid #ccc;
  background: #fff;
  color: #d00;
  font-size: 16px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-dialog-save {
  background: var(--yellow);
  border: 0;
  color: #000;
  font-size: 16px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-dialog-save.full {
  width: 100%;
}

/* 8. CUSTOM CLAIM SCREEN */
[data-screen="custom-claim"],
[data-screen="terms"],
[data-screen="themes"] {
  background: #fff;
}

.screen-titlebar-navy {
  background: var(--navy);
  color: #fff;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.screen-titlebar-navy h2 {
  font-size: 20px;
  font-weight: 700;
}

.btn-back-arrow {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

.custom-claim-form-wrap {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floating-label-input span,
.dropdown-label span {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.floating-label-input input,
.dropdown-label select {
  width: 100%;
  height: 46px;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 17px;
  outline: none;
}

.custom-rule-instruction {
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.sample-ticket-card {
  border: 2px solid var(--purple);
  border-radius: 4px;
  overflow: hidden;
}

.sample-ticket-header {
  background: var(--purple-bg);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1.5px solid var(--purple);
  color: var(--blue);
}

.sample-ticket-header span { font-size: 16px; font-weight: 600; }
.sample-ticket-header strong { font-size: 17px; font-weight: 800; }

.sample-ticket-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  background: var(--purple);
  gap: 1.5px;
  padding: 1.5px;
}

.pattern-cell {
  aspect-ratio: 1.1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.pattern-cell.selected {
  background: var(--red) !important;
  color: #fff !important;
}

.pattern-action-buttons {
  display: flex;
  gap: 12px;
}

.btn-pattern-clear {
  flex: 1;
  height: 44px;
  border: 1.5px solid #d00;
  background: #fff;
  color: #d00;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-pattern-refresh {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
  cursor: pointer;
}

.pattern-desc-box {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 12px;
}

.pattern-desc-box small {
  display: block;
  font-weight: 700;
  color: #555;
  margin-bottom: 4px;
}

.custom-claim-bottom-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-save-claim-green {
  flex: 1;
  height: 48px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.btn-exit-claim-white {
  flex: 1;
  height: 48px;
  border: 1px solid #ccc;
  background: #fff;
  color: #d00;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

/* 9. THEMES */
.theme-picker-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-card-option {
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.theme-card-option.selected {
  border-color: var(--blue);
  background: #f4f8ff;
}

.theme-preview-box {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #aaa;
}

.theme-preview-box.lavender { background: #f4e3f5; }
.theme-preview-box.yellow { background: #fff1a8; }
.theme-preview-box.green { background: #d8f5df; }
.theme-preview-box.blue { background: #d8eeff; }

.theme-info {
  flex: 1;
  text-align: left;
}

.theme-info strong { display: block; font-size: 17px; }
.theme-info small { color: #666; font-size: 14px; }
.theme-check { font-size: 20px; font-weight: 900; color: var(--green); }

/* 10. TERMS OF SERVICE */
.terms-content-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 120px;
}

.terms-logo-center {
  text-align: center;
}

.terms-circle-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.terms-logo-center h2 { font-size: 22px; color: #000; }
.terms-logo-center em { color: #666; font-size: 14px; }

.legal-compliance-card {
  background: #fff3c8;
  border: 1px solid #ffe18a;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #634300;
}

.warn-title {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.terms-details-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.terms-details-card h3 { font-size: 18px; margin-bottom: 4px; }
.terms-updated { color: #888; display: block; margin-bottom: 10px; }
.terms-details-card h4 { font-size: 16px; margin: 10px 0 6px; }
.red-legal-text { color: #d00; font-weight: 600; }

.terms-accept-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 12px 14px;
  z-index: 100;
}

.chk-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.35;
  color: #333;
  margin-bottom: 10px;
  cursor: pointer;
}

.chk-terms-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.btn-accept-continue-green {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 8px;
  width: 100%;
  height: 52px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.btn-accept-continue-green:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* 11. PLAYER TERMS (Screenshot 29) */
[data-screen="player-terms"] {
  background: #f5f5f5;
  padding-bottom: 90px;
}

.player-terms-header-blue {
  background: #1976c9;
  color: #fff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-terms-header-blue h2 {
  font-size: 22px;
  font-weight: 700;
}

.player-terms-reviewed-status {
  padding: 12px 16px;
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.info-green-circle {
  font-size: 18px;
}

.player-terms-body-card {
  margin: 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 18px;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
}

.red-mark {
  background: #ffd8d8;
  color: #d00;
  padding: 1px 4px;
  font-weight: 700;
  border-radius: 2px;
}

.red-bold { color: #d00; font-weight: 700; }

.players-group-title {
  margin: 18px 0 10px;
  font-size: 18px;
  color: #1976c9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-rule-arrow {
  margin: 12px 0 20px;
  line-height: 1.45;
}

.player-agree-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--teal);
  cursor: pointer;
}

.player-agree-box input {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
}

.player-terms-bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  padding: 14px;
  background: #fff;
  border-top: 1px solid #ddd;
  z-index: 100;
}

/* 12. PLAYER TICKET VIEW (Screenshot 1) */
[data-screen="player"] {
  background: #fff;
  padding-bottom: 80px;
}

.player-title-header-blue {
  color: var(--blue);
  font-size: 23px;
  font-weight: 700;
  text-align: center;
  padding: 12px 0 8px;
  background: #fff;
}

.player-board-container {
  padding: 0 4px;
  background: #fff;
}

.player-grid-90 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border: 1.5px solid #888;
  background: #888;
  gap: 1px;
}

.player-board-cell {
  aspect-ratio: 1.25;
  background: #fff;
  color: #888;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-board-cell.called {
  background: var(--vibrant-blue) !important;
  color: #fff !important;
}

.player-board-cell.current {
  background: var(--red) !important;
  color: #fff !important;
}

.player-board-summary-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px;
  background: #fff;
}

.player-called-total {
  font-size: 19px;
  font-weight: 800;
  color: #000;
}

.btn-collapse-board {
  border: 0;
  background: transparent;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  color: #000;
}

.btn-player-sound {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
}

.purple-divider-line {
  height: 5px;
  background: var(--purple);
  width: 100%;
}

.player-tickets-scroll {
  padding: 8px 6px 90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.player-ticket-item {
  border: 2px solid var(--purple);
  border-radius: 2px;
  background: #fff;
}

.ticket-headline {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  padding: 8px 0;
  background: #fdf5ff;
}

.ticket-matrix-3x9 {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  background: var(--purple);
  gap: 1.5px;
  padding: 1.5px;
}

.ticket-number-cell {
  aspect-ratio: 1.05;
  background: #fff;
  font-size: 21px;
  font-weight: 800;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ticket-number-cell.marked {
  background: var(--red) !important;
  color: #fff !important;
}

.ticket-number-cell.blank {
  background: #fff;
}

.player-footer-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 8px;
  padding: 8px;
  z-index: 100;
}

.btn-player-exit {
  flex: 1;
  height: 48px;
  border: 1.5px solid #d00;
  color: #d00;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 4px;
  cursor: pointer;
}

.btn-player-claim {
  flex: 2;
  height: 48px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 4px;
  cursor: pointer;
}

.btn-player-refresh {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: #fff;
  font-size: 22px;
  font-weight: 900;
  border-radius: 4px;
  cursor: pointer;
}

/* 13. WIN / LOSE RIG DRAWER */
.win-lose-drawer-content {
  background: #fff;
  width: 100%;
  max-width: 420px;
  max-height: 85dvh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.win-lose-body {
  padding: 16px;
  overflow-y: auto;
}

.win-lose-intro {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
  margin-bottom: 14px;
}

.player-rig-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.rig-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 8px 12px;
}

.rig-player-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}

.rig-btn-group {
  display: flex;
  gap: 4px;
}

.rig-opt-btn {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rig-opt-btn.active.winner { background: var(--yellow); color: #000; border-color: #c9a600; }
.rig-opt-btn.active.loser { background: #ff3b30; color: #fff; border-color: #d00; }
.rig-opt-btn.active.normal { background: #333; color: #fff; border-color: #000; }

.quick-call-section h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #333;
}

.quick-call-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  background: #eee;
  padding: 4px;
  border-radius: 4px;
}

.quick-num-btn {
  aspect-ratio: 1.2;
  border: 0;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
}

.quick-num-btn.called {
  background: #0000ff;
  color: #fff;
}

/* 14. DIALOGS */
.new-game-dialog-box {
  background: #fff;
  width: 100%;
  max-width: 380px;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.new-game-dialog-box h2 {
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 14px;
  text-align: center;
}

.dialog-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.dialog-field span {
  font-size: 14px;
  color: #555;
  font-weight: 600;
}

.dialog-field input,
.dialog-field select,
.dialog-field textarea {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 10px;
  font-size: 16px;
  outline: none;
}

.field-hint {
  color: #777;
  font-size: 13px;
  display: block;
  margin-top: -6px;
  margin-bottom: 10px;
}

.free-notice-text {
  font-size: 13px;
  color: #555;
  margin: 12px 0 16px;
  text-align: center;
}

.dialog-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.share-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-share-opt {
  background: #f4f8ff;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  text-align: center;
}

/* TOAST */
.toast-popup {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: .25s;
  z-index: 999;
  text-align: center;
  max-width: 80%;
}

.toast-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media(max-width: 440px) {
  body.mobile-app { background: #000; }
  .app-viewport { max-width: 100%; box-shadow: none; }
}
