/* Bridge: green baize page over the shared header. Start screen, chips and
   buttons. The table is in table.css, cards in cards.css, the auction and
   bidding box in bidding.css, overlays in panels.css. */
html,
body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #1f6b47 0%, #0c3322 75%) fixed,
    #0c3322;
  color: #f4fbf6;
}

.game-nav {
  flex: 0 0 auto;
  background: transparent;
  border-bottom: 1px solid rgba(220, 255, 235, 0.14);
  box-shadow: none;
}

.nav-title {
  color: #f4fbf6;
  letter-spacing: 0.02em;
}

.options-panel-sheet {
  color: #17251d;
}

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

.br-chip {
  min-width: 56px;
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid #d3ddd6;
  border-radius: 10px;
  background: #ffffff;
  color: #17251d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.br-chip.active {
  border-color: #1f7a4d;
  background: #dff3e7;
}

.br-app {
  --suit-black: #17171a;
  --suit-red: #c8102e;
  --suit-clubs: var(--suit-black);
  --suit-diamonds: var(--suit-red);
  --accent: #f6c445;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  /* Android bars can cover the bottom even when the safe-area inset is 0:
     no control in the bottom 40px nor in the 24px side strips. */
  box-sizing: border-box;
  padding: 0 max(24px, env(safe-area-inset-right, 0px))
    max(40px, calc(env(safe-area-inset-bottom, 0px) + 24px))
    max(24px, env(safe-area-inset-left, 0px));
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.br-app[data-deck="four"] {
  --suit-clubs: #19803d;
  --suit-diamonds: #e07000;
}

.br-app [hidden] {
  display: none !important;
}

.suit-0 {
  color: var(--suit-clubs, #17171a);
}

.suit-1 {
  color: var(--suit-diamonds, #c8102e);
}

.suit-2 {
  color: var(--suit-red, #c8102e);
}

.suit-3 {
  color: var(--suit-black, #17171a);
}

/* --- Start screen --- */
.br-start {
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: safe center;
  padding: 8px 0 0;
  overflow-y: auto;
}

.br-card {
  box-sizing: border-box;
  width: min(100%, 440px);
  padding: 16px 14px;
  border-radius: 20px;
  background: #fbfaf4;
  color: #17251d;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.br-logo {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 2rem;
  line-height: 1;
}

.br-title {
  margin: 8px 0 4px;
  font-size: clamp(1.7rem, 7vw, 2.2rem);
  font-weight: 900;
}

.br-pitch {
  margin: 0 0 14px;
  color: #4d6357;
}

.br-field {
  margin: 0 0 12px;
}

.br-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4f7a62;
}

.br-facts {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef5f0;
  list-style: none;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #2c4637;
}

.br-button {
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #2f9a63, #1f7a4d);
  color: #ffffff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #11502f;
  touch-action: manipulation;
}

.br-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #11502f;
}

.br-button-resume {
  margin-bottom: 14px;
  background: linear-gradient(180deg, #e2a33a, #c4831d);
  box-shadow: 0 4px 0 #7d5110;
}

.br-button-ghost {
  background: #ffffff;
  color: #17251d;
  box-shadow: inset 0 0 0 2px #d3ddd6;
}

.br-link {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
