/* Deliberately scoped: the game never changes other pages' components. */
.game-intro {
  padding: 45px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.game-intro h1 {
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 8px 0;
}
.game-intro p {
  max-width: 540px;
  margin: 0;
  color: #58564f;
  font-size: 15px;
}
.game-intro .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #171717;
  margin-bottom: 12px;
}
.game-meta {
  font:
    700 10px/1.8 Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-align: right;
  white-space: nowrap;
}
.game-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}
.game-footnote {
  font-size: 12px;
  color: #67635a;
  max-width: 1180px;
  margin: 14px auto 0;
}
.game-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 75px 0;
}
.game-story h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
}
.game-story p,
.game-story li {
  font-size: 16px;
  line-height: 1.75;
  color: #555249;
}
.game-story li {
  margin: 12px 0;
}
.game-story a {
  color: #123bc1;
  text-underline-offset: 4px;
}
.boccia-game-active .floating-wa,
.boccia-game-active .mobile-contact {
  display: none !important;
}
#boccia-game {
  --b3-ink: #f6f3eb;
  --b3-dim: #c0c6c3;
  --b3-panel: rgba(17, 24, 26, 0.94);
  --b3-blue: #224ce9;
  --b3-red: #e4484f;
  position: relative;
  isolation: isolate;
  height: min(800px, 85vh);
  min-height: 630px;
  overflow: hidden;
  background: #171e20;
  color: var(--b3-ink);
  font:
    14px/1.45 Arial,
    Helvetica,
    sans-serif;
  color-scheme: dark;
  border: 1px solid #283235;
}
#boccia-game * {
  box-sizing: border-box;
}
#boccia-game [hidden] {
  display: none !important;
}
#boccia-game button,
#boccia-game select {
  font: inherit;
  border: 1px solid #5a6262;
  border-radius: 2px;
  color: var(--b3-ink);
  background: var(--b3-panel);
  cursor: pointer;
  min-height: 42px;
  padding: 10px 16px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
#boccia-game button:hover {
  background: #303c3f;
  border-color: #b8c0bf;
}
#boccia-game button:disabled {
  opacity: 0.4;
  cursor: default;
}
#boccia-game button:focus-visible,
#boccia-game input:focus-visible,
#boccia-game select:focus-visible,
#boccia-game a:focus-visible {
  outline: 3px solid #f5cc65;
  outline-offset: 3px;
}
#boccia-game .b3-primary {
  background: var(--b3-blue);
  border-color: var(--b3-blue);
  font-weight: 700;
  letter-spacing: 0.07em;
  font-size: 12px;
}
#boccia-game .b3-primary:hover {
  background: #315cfb;
}
#boccia-game a {
  color: inherit;
}
#boccia-game .b3-primary span {
  font-size: 22px;
  margin-left: 24px;
}
.b3-world,
.b3-world canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.b3-world canvas {
  touch-action: none;
  outline-offset: -4px;
}
.b3-top {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(#111a1fe8, #111a1f00);
  pointer-events: none;
}
.b3-top > * {
  pointer-events: auto;
}
.b3-wordmark {
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}
.b3-wordmark > span {
  font-size: 12px;
  border: 1px solid #b7c0bc;
  padding: 3px 5px;
  margin-left: 6px;
  vertical-align: 3px;
  letter-spacing: 0;
}
.b3-wordmark small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.14em;
  line-height: 2.5;
  font-weight: 500;
}
.b3-score {
  display: flex;
  align-items: center;
  background: #131d22ed;
  border: 1px solid #536068;
  box-shadow: 0 6px 20px #0002;
  min-height: 68px;
}
.b3-side {
  display: flex;
  gap: 9px;
  padding: 12px 15px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.b3-side > strong {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
.b3-side > i {
  height: 7px;
  width: 7px;
  background: #ed4656;
  border-radius: 50%;
}
.b3-side[data-side="blue"] > i {
  background: #578aff;
}
.b3-balls {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 4px;
  margin: 0 3px;
}
.b3-balls b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef7075;
}
.b3-side[data-side="blue"] .b3-balls b {
  background: #86a5ff;
}
.b3-balls b.used {
  opacity: 0.2;
}
.b3-end {
  text-align: center;
  padding: 0 15px;
  border-right: 1px solid #586066;
  border-left: 1px solid #586066;
  min-width: 114px;
}
.b3-end > span {
  display: block;
  color: var(--b3-dim);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.b3-end > strong {
  font-size: 10px;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 3px;
}
.b3-utilities {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
#boccia-game .b3-utilities button {
  font-size: 11px;
  padding: 8px 10px;
  min-width: 40px;
  background: #142028c9;
}
.b3-camera {
  position: absolute;
  left: 24px;
  top: 112px;
  display: flex;
  gap: 1px;
}
#boccia-game .b3-camera button {
  padding: 8px 14px;
  min-height: 36px;
  font-size: 11px;
  letter-spacing: 0.02em;
}
#boccia-game .b3-camera button[aria-pressed="true"] {
  background: #f2efe5;
  color: #1c2528;
  border-color: #f2efe5;
}
.b3-readout {
  position: absolute;
  right: 24px;
  top: 117px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px #000;
  background: #142028b3;
  padding: 6px 9px;
  border-radius: 2px;
}
#b3-quality {
  font-size: 8px;
  color: #bbc4c5;
  font-weight: 400;
}
.b3-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 24px 12px;
  background: var(--b3-panel);
  border-top: 1px solid #5b6465;
}
.b3-turn {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 17px;
}
.b3-turn > span:first-child {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #ff8c90;
  font-weight: 700;
  white-space: nowrap;
}
.b3-turn > strong {
  font-weight: 500;
  font-size: 13px;
}
.b3-turn > span:last-child {
  font-size: 10px;
  color: var(--b3-dim);
  margin-left: auto;
}
#boccia-game[data-side="blue"] .b3-turn > span:first-child {
  color: #94afff;
}
.b3-controls {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr 0.7fr 1fr 1fr;
  align-items: center;
  gap: 22px;
}
.b3-controls label {
  display: block;
  color: var(--b3-dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.b3-controls output {
  float: right;
  color: #fff;
  letter-spacing: 0;
}
.b3-controls input[type="range"] {
  display: block;
  margin: 13px 0 0;
  width: 100%;
  height: 21px;
  accent-color: #9caef7;
  cursor: pointer;
}
.b3-controls #b3-power {
  accent-color: #e5c578;
}
.b3-controls #b3-throw {
  height: 53px;
  font-size: 13px;
}
.b3-power-pad {
  position: relative;
  height: 53px;
  touch-action: none;
  user-select: none;
  cursor: ns-resize;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 11px 12px;
  border: 1px solid #818a8b;
  color: #b9c2c2;
}
.b3-power-pad b {
  font-size: 7px;
  color: #e3e7e5;
}
.b3-power-pad i {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: var(--b3-power, 50%);
  background: #dcc278;
}
.b3-power-pad.b3-disabled {
  opacity: 0.35;
}
.b3-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  border-top: 1px solid #444d4e;
  padding-top: 7px;
}
#boccia-game .b3-tools button {
  border: none;
  background: transparent;
  min-height: 30px;
  font-size: 10px;
  padding: 4px 0;
  color: #c0c9c8;
}
.b3-tools > span {
  margin-left: auto;
  font-size: 9px;
  color: #97a5a3;
}
.b3-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 55px;
  background: linear-gradient(
    90deg,
    rgba(12, 20, 23, 0.97),
    rgba(12, 20, 23, 0.7) 36%,
    transparent 76%
  );
}
.b3-menu-copy {
  max-width: 440px;
}
.b3-kicker {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: #dbcb9e;
  font-weight: 700;
  margin: 0 0 24px;
}
.b3-menu-copy h2 {
  font-size: clamp(36px, 4.6vw, 65px);
  line-height: 0.99;
  letter-spacing: -0.05em;
  color: #f5f2e8;
  margin: 0 0 24px;
  font-weight: 700;
}
.b3-menu-copy > p:not(.b3-kicker):not(.b3-disclosure) {
  font-size: 14px;
  line-height: 1.65;
  color: #c0c8c8;
  max-width: 335px;
}
.b3-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 28px;
  max-width: 340px;
}
#boccia-game .b3-menu-actions button {
  min-height: 49px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.b3-menu-actions .b3-primary {
  grid-column: 1/3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.b3-menu-actions button:last-child {
  grid-column: 1/3;
  border-color: transparent !important;
  background: transparent !important;
}
.b3-disclosure {
  font-size: 10px;
  line-height: 1.5;
  color: #97a3a3;
  max-width: 335px;
  margin-top: 22px;
}
.b3-menu-caption {
  position: absolute;
  right: 35px;
  bottom: 34px;
  text-align: right;
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: #bdc5c0;
  text-shadow: 0 1px 5px #000;
}
.b3-menu-caption strong {
  color: #fff;
  font-size: 11px;
}
#boccia-game[data-mode="menu"] .b3-score,
#boccia-game[data-mode="menu"] .b3-camera,
#boccia-game[data-mode="menu"] .b3-readout,
#boccia-game[data-mode="menu"] [data-action="pause"] {
  visibility: hidden;
}
#boccia-game[data-mode="menu"] .b3-top {
  z-index: 2;
  background: transparent;
}
.b3-loading,
.b3-launch {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
  background: #111b20;
}
.b3-launch::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid #71857d44;
  pointer-events: none;
}
.b3-launch .b3-kicker {
  margin-top: 20px;
}
.b3-launch h2 {
  font-size: clamp(45px, 8vw, 100px);
  line-height: 1;
  letter-spacing: -0.07em;
  color: #f6f3e9;
  margin: 15px 0;
}
.b3-launch h2 span {
  color: #8b9eae;
  font-weight: 400;
}
.b3-launch p {
  color: #afbcbd;
  max-width: 440px;
  font-size: 14px;
  line-height: 1.7;
}
.b3-launch button {
  margin-top: 24px;
  min-width: 240px;
}
.b3-launch small {
  margin-top: 20px;
  font-size: 10px;
  color: #9aa9aa;
}
.b3-loading strong {
  font-size: 23px;
  font-weight: 500;
}
.b3-loading p {
  color: #b0bdbe;
  font-size: 13px;
}
.b3-loader {
  display: block;
  height: 28px;
  width: 28px;
  border: 2px solid #71817d;
  border-top-color: #ede3bf;
  border-radius: 50%;
  animation: b3-spin 1s linear infinite;
  margin-bottom: 24px;
}
@keyframes b3-spin {
  to {
    transform: rotate(360deg);
  }
}
#boccia-game dialog {
  background: #182326;
  color: #f4f1e6;
  width: min(580px, calc(100% - 28px));
  border: 1px solid #7e8d8d;
  border-radius: 3px;
  padding: 25px 30px;
  max-height: min(85vh, 720px);
  box-shadow: 0 15px 90px #0008;
}
#boccia-game dialog::backdrop {
  background: #081116b8;
  backdrop-filter: blur(5px);
}
.b3-dialog-head {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.b3-dialog-head h2 {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: #f4f1e6;
}
#boccia-game .b3-dialog-head button {
  background: transparent;
  border: 0;
  font-size: 28px;
  padding: 0;
  min-width: 40px;
}
.b3-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 10px;
}
#boccia-game dialog p,
#boccia-game dialog dd {
  font-size: 13px;
  line-height: 1.65;
  color: #c4cecc;
}
#boccia-game dialog dt {
  font-weight: 700;
  font-size: 13px;
  margin-top: 18px;
}
#boccia-game dialog dd {
  margin: 5px 0 0;
}
#boccia-game dialog a {
  color: #b9c9ff;
  text-underline-offset: 3px;
}
#boccia-game dialog .b3-note {
  font-size: 11px;
  color: #9eaeac;
  line-height: 1.6;
  margin-top: 22px;
}
.b3-settings {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.b3-settings > label,
.b3-select-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.b3-settings select,
.b3-select-label select {
  max-width: 65%;
  margin-left: auto;
  font-size: 12px !important;
}
.b3-settings input[type="range"] {
  margin-left: auto;
  accent-color: #a7b8ff;
  width: 50%;
}
.b3-settings input[type="checkbox"] {
  accent-color: #7894ff;
  width: 18px;
  height: 18px;
}
.b3-result {
  display: flex;
  justify-content: space-around;
  padding: 25px 0;
  border-block: 1px solid #475958;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.b3-result strong {
  font-size: 45px;
  font-weight: 400;
  display: block;
  text-align: center;
  letter-spacing: 0;
}
.b3-result > span:first-child {
  color: #ff969e;
}
.b3-result > span:last-child {
  color: #a7bcff;
}
.b3-contrast {
  --b3-panel: #070b0c !important;
  --b3-dim: #fff !important;
}
.b3-contrast .b3-turn > span:first-child {
  color: #fff !important;
}
#boccia-game:fullscreen {
  height: 100dvh;
  min-height: 0;
  max-width: none;
  border: 0;
}
#boccia-game:fullscreen .b3-bottom {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
@media (max-width: 1050px) {
  .game-intro {
    padding-top: 30px;
  }
  .b3-top {
    gap: 12px;
    padding: 16px;
  }
  .b3-score {
    min-height: 60px;
  }
  .b3-side {
    gap: 5px;
    padding: 10px;
  }
  .b3-side > strong {
    font-size: 24px;
  }
  .b3-end {
    padding: 0 9px;
    min-width: 90px;
  }
  .b3-wordmark {
    font-size: 18px;
  }
  .b3-wordmark small {
    font-size: 6px;
  }
  .b3-controls {
    gap: 15px;
    grid-template-columns: 1fr 1.5fr 0.8fr 1.2fr;
  }
  .b3-controls .b3-spin,
  .b3-power-pad {
    display: none;
  }
  .b3-tools > span {
    display: none;
  }
  .b3-turn > span:last-child {
    display: none;
  }
  .b3-overlay {
    padding: 38px;
  }
  .b3-bottom {
    padding: 16px 20px 10px;
  }
  .b3-camera {
    left: 16px;
    top: 94px;
  }
  .b3-readout {
    top: 96px;
    right: 16px;
  }
}
@media (max-width: 650px) {
  .game-intro {
    display: block;
    padding: 25px 0 22px;
  }
  .game-intro h1 {
    font-size: 35px;
  }
  .game-intro p {
    font-size: 13px;
  }
  .game-meta {
    display: none;
  }
  .game-shell {
    padding: 0 8px;
  }
  .game-footnote {
    font-size: 11px;
    padding: 0 12px;
  }
  .game-story {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 45px 0;
  }
  .game-story h2 {
    font-size: 25px;
  }
  #boccia-game {
    height: calc(100svh - 25px);
    min-height: 680px;
    max-height: 850px;
  }
  .b3-top {
    padding: 12px;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .b3-score {
    grid-row: 2;
    grid-column: 1/3;
    justify-self: center;
    min-height: 52px;
    width: 100%;
    justify-content: space-between;
  }
  .b3-side {
    gap: 7px;
    padding: 10px 12px;
  }
  .b3-end {
    flex: 1;
    font-size: 9px;
  }
  .b3-wordmark {
    font-size: 20px;
  }
  .b3-wordmark small {
    display: none;
  }
  .b3-utilities {
    grid-column: 2;
    grid-row: 1;
  }
  #boccia-game .b3-utilities button {
    font-size: 10px;
    min-height: 36px;
    padding: 7px;
  }
  .b3-camera {
    top: 118px;
    left: 12px;
  }
  #boccia-game .b3-camera button {
    font-size: 10px;
    min-height: 34px;
    padding: 8px 11px;
  }
  .b3-readout {
    top: 160px;
    left: 12px;
    right: auto;
    align-items: start;
    font-size: 8px;
  }
  .b3-readout #b3-quality {
    display: none;
  }
  .b3-bottom {
    padding: 13px 12px 8px;
  }
  .b3-turn {
    display: block;
    margin-bottom: 13px;
  }
  .b3-turn > span:first-child {
    display: block;
    font-size: 9px;
    margin-bottom: 5px;
  }
  .b3-turn > strong {
    font-size: 12px;
    display: block;
    min-height: 17px;
  }
  .b3-controls {
    grid-template-columns: 1fr 1fr 76px;
    gap: 10px 16px;
  }
  .b3-controls label {
    font-size: 8px;
  }
  .b3-controls input[type="range"] {
    margin-top: 5px;
    height: 28px;
  }
  .b3-controls .b3-aim {
    grid-column: 1/3;
  }
  .b3-controls label:nth-child(2) {
    grid-column: 1;
  }
  .b3-controls label:nth-child(3) {
    grid-column: 2;
  }
  #boccia-game .b3-controls #b3-throw {
    grid-column: 3;
    grid-row: 1/3;
    height: 100%;
    min-height: 80px;
    font-size: 10px;
    padding: 7px;
  }
  .b3-tools {
    gap: 18px;
    margin-top: 6px;
    padding-top: 5px;
    flex-wrap: wrap;
  }
  #boccia-game .b3-tools button {
    font-size: 9px;
    min-height: 32px;
  }
  .b3-overlay {
    padding: 28px;
    align-items: flex-start;
    padding-top: 105px;
    background: linear-gradient(90deg, #0c1417ee, #0c1417a8 65%, #0c141744);
  }
  .b3-menu-copy h2 {
    font-size: 48px;
  }
  .b3-menu-copy > p:not(.b3-kicker):not(.b3-disclosure) {
    font-size: 13px;
    max-width: 285px;
  }
  .b3-kicker {
    font-size: 9px;
    margin-bottom: 22px;
  }
  .b3-menu-copy {
    max-width: 100%;
  }
  .b3-menu-actions {
    margin-top: 25px;
    max-width: 280px;
  }
  .b3-disclosure {
    font-size: 9px;
    max-width: 275px;
  }
  .b3-menu-caption {
    display: none;
  }
  #boccia-game dialog {
    padding: 20px;
    max-height: 84svh;
  }
  .b3-dialog-head h2 {
    font-size: 22px;
  }
  .b3-select-label {
    display: block;
  }
  .b3-select-label select {
    display: block;
    max-width: 100%;
    width: 100%;
    margin: 12px 0;
  }
  .b3-launch {
    padding: 28px;
  }
  .b3-launch::before {
    inset: 14px;
  }
  #boccia-game[data-mode="menu"] .b3-score {
    display: none;
  }
}
@media (max-height: 600px) and (min-width: 651px) {
  #boccia-game:fullscreen {
    min-height: 0;
  }
  .b3-top {
    padding: 10px 16px;
  }
  .b3-score {
    min-height: 48px;
  }
  .b3-camera {
    top: 75px;
  }
  .b3-readout {
    top: 75px;
  }
  .b3-bottom {
    padding: 8px 16px;
  }
  .b3-turn {
    margin-bottom: 5px;
  }
  .b3-tools {
    margin-top: 4px;
    padding-top: 2px;
  }
  .b3-overlay {
    padding: 75px 35px 20px;
  }
  .b3-menu-copy h2 {
    font-size: 39px;
  }
  .b3-menu-copy > p:not(.b3-kicker) {
    font-size: 11px;
    line-height: 1.35;
  }
  .b3-kicker {
    margin-bottom: 12px;
  }
  .b3-menu-actions {
    margin-top: 14px;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 480px;
  }
  .b3-menu-actions .b3-primary,
  .b3-menu-actions button:last-child {
    grid-column: auto;
  }
  .b3-disclosure {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #boccia-game * {
    transition: none !important;
  }
  .b3-loader {
    animation: none;
  }
}

#boccia-game.b3-expanded {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  border: 0;
}
#boccia-game.b3-expanded .b3-bottom {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

@media (max-width: 650px) {
  #boccia-game .b3-tools button {
    font-size: 11px;
    min-height: 44px;
  }
  .b3-tools {
    gap: 4px 17px;
  }
  #boccia-game .b3-camera button {
    min-height: 40px;
    font-size: 11px;
  }
  #boccia-game .b3-utilities button {
    min-height: 40px;
    font-size: 11px;
  }
  .b3-readout {
    top: 164px;
  }
  .b3-controls label {
    font-size: 10px;
  }
  .b3-turn > strong {
    font-size: 13px;
  }
}

/* The preview-only Netlify drawer is blocked by this site's CSP.
   Do not let its failed iframe cover the court or throwing controls. */
body:has(#boccia-game) > div[data-netlify-deploy-id][data-netlify-site-id] {
  display: none !important;
}
