:root {
  --green: #087f8c;
  --line: #e2e8f0;
  --muted: #64748b;
  color: #182334;
  background: #f5f7fb;
}
body {
  background: #f5f7fb;
}
.rail {
  width: 216px;
  padding: 32px 22px;
  background: #fff;
  color: #cbd5e1;
  border-right: 1px solid var(--line);
}
.rail .brand {
  font-size: 21px;
  color: #f8fafc;
}
.brand-light,
.rail-label {
  display: none;
}
.rail nav {
  margin-top: 42px;
  gap: 6px;
}
.rail .nav {
  font-size: 14px;
  font-weight: 500;
  color: #aebbd0;
  padding: 13px 16px;
  border-radius: 10px;
  text-align: left;
  display: block;
  width: 100%;
  background: transparent;
}
.rail .nav.active,
.rail .nav:hover {
  background: #23334b;
  color: #f8fafc;
}
.rail-bottom a {
  color: #94a3b8;
}
.rail-bottom {
  color: #94a3b8;
}
.rail-bottom .dot,
.rail-bottom p,
.rail-bottom .version {
  display: none;
}
.nav-more {
  margin-top: 26px;
  color: #94a3b8;
  font-size: 12px;
}
.nav-more summary {
  padding: 12px 16px;
}
main {
  margin-left: 216px;
  width: calc(100% - 216px);
  padding: 0 48px;
  max-width: 1600px;
}
header {
  height: 82px;
  letter-spacing: 1px;
  gap: 14px;
}
header a {
  color: #64748b;
  text-decoration: none;
}
.page-heading {
  margin: 38px 0 28px;
}
.page-heading h1,
h1 {
  font-size: 36px;
  letter-spacing: -1.3px;
  line-height: 1.15;
}
.page-heading p {
  font-size: 15px;
  line-height: 1.6;
}
.card {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 26px;
}
.primary,
.secondary {
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 14px;
}
.primary {
  box-shadow: none;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  text-decoration: none;
}
.text-button {
  color: #087f8c;
}
input,
select {
  border-radius: 9px;
  min-height: 44px;
  background: #fff;
}
label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
p {
  line-height: 1.65;
}
.home-hero {
  position: relative;
  overflow: hidden;
  background: #142337;
  border-radius: 24px;
  padding: 58px;
  margin: 38px 0 24px;
  color: #fff;
}
.home-hero h1 {
  font-size: 48px;
  max-width: 560px;
  margin: 18px 0;
}
.home-hero p {
  color: #c2d4e6;
  font-size: 17px;
  position: relative;
  z-index: 1;
}
.home-hero .eyebrow {
  color: #6ee7d8;
}
.home-hero .primary {
  margin-top: 12px;
  background: #80ead7;
  color: #133c43;
  position: relative;
  z-index: 1;
}
.hero-ball {
  position: absolute;
  right: 4%;
  top: 22%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #38546d, #081522 70%);
  box-shadow: 15px 25px 35px #001a1744;
  transform: rotate(-18deg);
  display: grid;
  place-items: center;
}
.hero-ball span {
  background: #f5f9ff;
  color: #162334;
  border-radius: 50%;
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 700;
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.home-link {
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.home-link:hover {
  border-color: #55b9ba;
  transform: translateY(-2px);
}
.home-link > span {
  font-size: 24px;
  color: #087f8c;
}
.home-link p {
  color: #64748b;
  margin-bottom: 0;
}
.steps {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 24px 0;
  padding: 18px 24px;
  background: #eaf0f6;
  border-radius: 14px;
  justify-content: space-between;
  counter-reset: none;
}
.steps li {
  font-size: 13px;
  color: #718096;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}
.steps .current {
  color: #087f8c;
}
.steps .done {
  color: #087f8c;
}
.wizard-card {
  max-width: 680px;
  margin: 24px 0;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wizard-card .full {
  margin: 20px 0 12px;
}
details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #415b70;
  padding: 14px 0;
  list-style-position: inside;
}
details > summary:focus-visible {
  outline: 3px solid #22b8b1;
  outline-offset: 3px;
}
.advanced {
  margin: 12px 0;
}
.advanced[open] {
  padding-bottom: 14px;
}
.advanced summary {
  font-weight: 400;
  color: #64748b;
}
.disclosure {
  margin-top: 20px;
}
.disclosure > summary {
  padding: 0;
}
.disclosure[open] > summary {
  padding-bottom: 20px;
}
.disclosure > section,
.disclosure > div {
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}
.disclosure h3 {
  font-size: 16px;
}
.flow-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.flow-links a {
  font-size: 13px;
  color: #52657b;
}
.capture-grid {
  grid-template-columns: minmax(0, 1fr) 310px;
}
.settings-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.settings-column .card {
  margin: 0;
}
.settings-column .card-title span,
.settings-column .tip {
  display: none;
}
.settings-column .disclosure {
  padding: 20px;
}
.history-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: 100%;
}
.history-toolbar label {
  min-width: 220px;
}
.game {
  padding: 24px;
}
.game-head {
  padding: 0;
  border: 0;
}
.game-head h3 {
  font-size: 20px;
}
.game-detail {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.game-detail > summary {
  padding-bottom: 0;
}
.game-detail[open] > summary {
  padding-bottom: 18px;
}
.game-reference {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
}
.game-reference a {
  color: #087f8c;
}
.game-reference small {
  color: #64748b;
}
.game .event-details {
  padding: 14px;
  background: #f5f7fb;
  border-radius: 12px;
}
.game .event-details summary {
  padding: 0;
}
.game .event-details[open] summary {
  padding-bottom: 18px;
}
.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric strong {
  font-size: 34px;
}
.metric {
  padding: 22px;
}
.metric:nth-child(n + 5) {
  background: transparent;
  border-color: #e2e8f0;
}
.metric:nth-child(n + 5) strong {
  font-size: 27px;
}
.auth-card,
#login {
  max-width: 470px;
  margin: 80px auto;
}
.auth-card h1,
#login h1 {
  font-size: 36px;
}
.auth-card p,
#login .page-heading p {
  color: #64748b;
}
.signed-out .rail,
.signed-out header,
.signed-out footer {
  display: none;
}
.signed-out main {
  margin: 0;
  width: 100%;
  max-width: none;
  background: radial-gradient(ellipse at top, #e3f4f4, transparent 65%);
  min-height: 100vh;
}
.login-card {
  padding: 28px;
}
.login-card details {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 8px;
}
.login-card #google-login-status {
  font-size: 12px;
}
.signed-out.camera-mode #google-login,
.signed-out.camera-mode #google-login-status {
  display: none;
}
.camera-mode #home,
.camera-mode #live-game,
.camera-mode #capture-steps,
.camera-mode .flow-links,
.camera-mode .aim-card {
  display: none !important;
}
.camera-mode main {
  margin: 0;
  width: 100%;
  max-width: 1050px;
}
.camera-mode .rail {
  display: none;
}
#home-current a {
  font-weight: 600;
  color: #087f8c;
}
.practice-grid {
  gap: 20px;
}
.drill strong {
  font-size: 22px;
}
.drill .eyebrow {
  letter-spacing: 1px;
}
.device-grid {
  margin-top: 24px;
}
.review-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.notice {
  border-radius: 12px;
}
.table-map {
  max-width: none;
}
.game-detail .rack-panel h3 {
  line-height: 1.6;
}
footer {
  margin-top: 40px;
}
@media (min-width: 1400px) {
  .home-hero {
    padding-right: 300px;
  }
}
@media (max-width: 1150px) {
  main {
    padding: 0 28px;
  }
  .hero-ball {
    width: 140px;
    height: 140px;
    right: -35px;
    top: 35%;
  }
  .hero-ball span {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }
  .home-hero {
    padding: 38px 80px 38px 34px;
  }
  .home-hero h1 {
    font-size: 38px;
  }
  .capture-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 850px) {
  .rail {
    width: 100%;
    position: relative;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail nav {
    display: flex;
    overflow-x: auto;
    margin-top: 18px;
    gap: 4px;
    align-items: center;
  }
  .rail .nav {
    white-space: nowrap;
    width: auto;
    font-size: 12px;
    flex: none;
    padding: 10px 12px;
  }
  .nav-more {
    margin: 0;
    flex: none;
  }
  .nav-more[open] {
    display: flex;
  }
  .nav-more summary {
    padding: 10px;
  }
  main {
    width: 100%;
    margin: 0;
    padding: 0 20px;
  }
  header {
    height: 62px;
    font-size: 10px;
  }
  .capture-grid {
    display: flex;
    flex-direction: column;
  }
  .settings-column {
    display: flex;
    flex-direction: column;
  }
  .steps {
    padding: 16px 12px;
    gap: 10px;
  }
  .steps li {
    font-size: 11px;
    gap: 5px;
  }
  .home-hero {
    margin-top: 20px;
  }
  .home-hero h1 {
    font-size: 34px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .page-heading h1,
  h1 {
    font-size: 30px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  .wizard-card {
    padding: 24px;
  }
  .hero-ball {
    opacity: 0.5;
    right: -55px;
  }
  .home-hero p {
    font-size: 15px;
  }
  .game-head {
    gap: 12px;
  }
  .event-form {
    grid-template-columns: 1fr 1fr;
  }
  .history-toolbar label {
    min-width: 0;
    flex: 1;
  }
  .auth-card,
  #login {
    margin: 40px auto;
  }
  .card {
    padding: 22px;
  }
  .page-heading {
    gap: 14px;
    flex-wrap: wrap;
  }
  .flow-links {
    align-items: stretch;
  }
  .flow-links button {
    flex: 1;
  }
  .steps span {
    white-space: normal;
  }
  .home-steps {
    background: transparent;
    padding: 10px 0;
  }
  .disclosure summary {
    font-size: 14px;
  }
  .game-reference {
    word-break: break-word;
  }
}
.privacy-page {
  max-width: 1050px;
  padding-top: 40px;
}
.privacy-page h1 {
  margin: 30px 0;
}
.privacy-page h2 {
  margin-top: 35px;
}
.privacy-page p {
  color: #607363;
}
.camera-mode #login #phone-login {
  border-top: 0;
  margin-top: 0;
}
.camera-mode #phone-login > summary {
  display: none;
}
.auth-card .primary {
  margin: 20px 0;
}
#login .page-heading {
  display: block;
}
#login > .brand {
  margin-bottom: 30px;
  color: #204333;
}
.auth-card {
  padding: 32px;
}
.signed-out .auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
}

@media (max-width: 480px) {
  .rail .nav {
    padding: 10px 8px;
    font-size: 12px;
  }
}

/* PoolAgent — calm workspace, clear steps, one game at a time. */
:root {
  --ink: #182334;
  --cream: #f5f7fb;
  --green-dark: #086b77;
  --gold: #087f8c;
}
body {
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.rail {
  background: #142337;
  border: 0;
  width: 224px;
  padding: 34px 20px;
}
.rail .brand {
  letter-spacing: -0.6px;
  color: #fff;
}
.rail .ball {
  background: #80ead7;
  color: #142337;
}
.rail .nav.active {
  color: #80ead7;
  background: #24394d;
  box-shadow: inset 3px 0 #80ead7;
}
.rail .nav:hover {
  color: #fff;
}
main {
  margin-left: 224px;
  width: calc(100% - 224px);
  max-width: none;
  padding: 0 clamp(24px, 4vw, 72px);
}
main > section,
main > footer {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
header {
  max-width: 1320px;
  margin: auto;
  height: 76px;
  font-size: 11px;
  letter-spacing: 1.4px;
  border-color: var(--line);
}
.page-heading {
  margin: 36px 0 24px;
}
h1,
.page-heading h1 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -1.6px;
}
h2,
h3 {
  color: var(--ink);
}
.eyebrow {
  color: #087f8c;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 750;
}
.card {
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 4px 24px #16233404;
}
.primary {
  background: #087f8c;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 3px 8px #087f8c18;
}
.primary:hover {
  background: #086b77;
  transform: translateY(-1px);
}
.secondary:hover {
  background: #f1f5f9;
  border-color: #b9cbd9;
}
button,
a.primary,
a.secondary {
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
button:disabled {
  transform: none;
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #41bfc4;
  outline-offset: 3px;
}
input,
select {
  border: 1px solid #dce4ed;
  padding: 12px;
  color: #243247;
}
.notice {
  background: #eef6f7;
  border: 1px solid #d6e9eb;
  color: #345c65;
  padding: 14px 18px;
  font-size: 13px;
}
.home-hero {
  background:
    radial-gradient(ellipse at 85% 20%, #2d6170, transparent 55%), #142337;
  padding: 64px 320px 64px 54px;
  min-height: 330px;
}
.home-hero h1 {
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -2px;
  line-height: 1.08;
}
.hero-ball {
  right: 6%;
  top: 20%;
  box-shadow: 18px 25px 40px #05111e66;
}
.home-hero .primary:hover {
  background: #b0f7e9;
}
.home-grid .card {
  padding: 30px;
}
.home-link h2 {
  margin-top: 14px;
}
.steps {
  background: transparent;
  padding: 0;
  gap: 14px;
  margin: 24px 0 28px;
}
.steps li {
  flex: 1;
  border-top: 3px solid #dce5ee;
  padding-top: 12px;
}
.steps li.current {
  border-color: #087f8c;
  color: #087f8c;
}
.steps li.done {
  border-color: #8bcacb;
}
.wizard-card {
  max-width: 760px;
  margin: 28px auto;
  padding: 34px;
}
[data-panel="new"] > .page-heading,
[data-panel="new"] > .steps {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
#match-form .two-fields {
  gap: 24px;
}
#match-form select {
  min-height: 52px;
}
#quick-player-details {
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.capture-grid {
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
#capture .page-heading {
  margin-bottom: 18px;
}
#capture .flow-links {
  justify-content: flex-end;
  margin: 8px 0 14px;
}
.camera-setup h3 {
  margin-top: 0;
}
.camera-setup #setup-phone {
  width: 100%;
  margin-top: 14px;
}
.table-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: white;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
}
.table-toolbar button {
  font-size: 12px;
  padding: 10px 13px;
}
#setup-confirmation {
  margin: 0;
  border-radius: 0;
  border-top: 0;
  font-size: 12px;
}
.camera-box {
  border-radius: 0 0 16px 16px;
  background: #101c2b;
  border: 0;
}
#camera-empty h2 {
  color: #f8fafc;
}
#camera-empty p {
  color: #9cafc4;
}
.transport {
  margin-top: 12px;
  border-radius: 16px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
}
.transport-buttons {
  flex-wrap: wrap;
  gap: 8px;
}
.transport button {
  padding: 11px 14px;
  font-size: 12px;
}
.finish-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.finish-bar:has(#finish-game[hidden]):has(#close-game[hidden]) {
  display: none;
}
#finish-game {
  background: #142337;
}
#close-game {
  font-size: 12px;
}
.below-camera {
  color: #64748b;
  font-size: 10px;
  flex-wrap: wrap;
}
.settings-column .card {
  padding: 20px;
  border-radius: 16px;
}
.settings-column h3 {
  font-size: 15px;
}
.settings-column p {
  font-size: 12px;
}
.settings-column button {
  max-width: 100%;
}
#tracking-tools .table-map {
  max-width: 640px;
  margin: 16px auto;
}
.history-toolbar {
  margin-bottom: 22px;
}
.game {
  margin-bottom: 16px;
  scroll-margin-top: 24px;
}
.game-head {
  gap: 20px;
  align-items: center;
}
.game-head h3 {
  margin: 0 0 8px;
}
.game-head b {
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 30px;
  line-height: 1.5;
}
.result-panel {
  background: #eff7f8;
  border: 1px solid #d6e9eb;
  border-radius: 16px;
  padding: 28px;
  margin: 8px 0 24px;
  display: flex;
  gap: 20px;
}
.result-panel h2 {
  font-size: 28px;
  margin: 10px 0;
}
.result-panel p {
  color: #54707b;
  max-width: 640px;
  font-size: 14px;
}
.result-icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #087f8c;
  color: white;
  border-radius: 50%;
  font-size: 24px;
}
.winner-choices,
.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.winner-choice {
  background: #fff;
  border: 1px solid #a9ced2;
  padding: 20px 26px;
  border-radius: 12px;
  color: #086b77;
  font-size: 16px;
  font-weight: 650;
  min-width: 180px;
}
.winner-choice:hover {
  background: #087f8c;
  color: #fff;
}
.game-focused .history-toolbar,
.game-focused #filter-empty,
.game-focused .game:not(.focused-game) {
  display: none;
}
.game-focused .focused-game {
  max-width: 960px;
  margin: 0 auto;
}
.game-focused [data-panel="history"] > .page-heading {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.game-focused .game-detail > summary {
  color: #64748b;
  font-size: 12px;
}
.game-actions {
  gap: 10px;
  flex-wrap: wrap;
}
.metric {
  border-radius: 16px;
  background: #fff;
}
.metric strong {
  color: #142337;
}
.pill {
  background: #eaf1f6;
  color: #496074;
}
.auth-card,
#login {
  padding-top: 24px;
}
#login .brand {
  color: #142337;
}
.signed-out main {
  background:
    radial-gradient(ellipse at 50% 0, #d7efef, transparent 65%), #f5f7fb;
}
@media (min-width: 1800px) {
  .rail {
    width: 240px;
  }
  main {
    margin-left: 240px;
    width: calc(100% - 240px);
  }
}
@media (max-width: 1100px) {
  .home-hero {
    padding: 40px 140px 40px 32px;
  }
  .hero-ball {
    right: -30px;
  }
  .capture-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}
@media (max-width: 850px) {
  .rail {
    width: 100%;
    padding: 16px 20px 8px;
  }
  .rail nav {
    margin-top: 16px;
  }
  .rail .nav {
    padding: 11px 14px;
    white-space: nowrap;
  }
  main {
    margin-left: 0;
    width: 100%;
    padding: 0 20px;
  }
  header {
    height: 58px;
    letter-spacing: 0.6px;
  }
  .home-hero {
    padding: 32px 28px;
    min-height: 0;
  }
  .home-hero h1 {
    max-width: 85%;
  }
  .hero-ball {
    opacity: 0.35;
    right: -60px;
    top: 36%;
  }
  .home-hero > div:not(.hero-ball),
  .home-hero h1 {
    position: relative;
    z-index: 1;
  }
  .capture-grid {
    display: flex;
    flex-direction: column;
  }
  .capture-grid > div {
    width: 100%;
    min-width: 0;
  }
  .settings-column {
    order: 0;
  }
  .steps {
    gap: 8px;
  }
  .steps li {
    font-size: 11px;
    gap: 5px;
  }
  .wizard-card {
    padding: 22px;
  }
  .result-panel {
    padding: 20px;
    gap: 12px;
  }
  .result-panel h2 {
    font-size: 23px;
  }
  .winner-choice {
    width: 100%;
    min-width: 0;
  }
  .game-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .result-links > a {
    text-align: center;
  }
  .finish-bar .primary {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

#camera-empty {
  background: radial-gradient(ellipse at 50% 30%, #223d52, #101c2b);
}
#camera-empty .primary {
  background: #80ead7;
  color: #142337;
}
.camera-glyph {
  color: #80ead7;
  border-color: #4c6979;
}
.hint,
.muted,
small,
.page-heading p,
label {
  color: #64748b;
}
.rail .nav-more summary {
  color: #aebbd0;
}
header #breadcrumb,
header #owner-label {
  color: #64748b;
}
.game-head .unconfirmed {
  background: #fff4de;
  color: #845b18;
}
.game-head .confirmed {
  background: #e5f5ee;
  color: #207052;
}
.game-reference {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
@media (max-width: 850px) {
  .capture-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .capture-grid > div:first-child {
    grid-row: 2;
  }
  .settings-column {
    display: contents;
  }
  .camera-setup {
    grid-row: 1;
  }
  .camera-mode .capture-grid {
    display: flex;
  }
  .camera-mode .settings-column {
    display: flex;
  }
}

#result-steps {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 850px) {
  .result-panel {
    flex-direction: column;
  }
  .result-icon {
    flex: none;
    width: 44px;
  }
}

/* Paired phones are camera appliances; game controls stay on the computer. */
#device-panel {
  display: none;
}
.camera-mode #device-panel {
  display: block;
  margin: 20px 0;
}
.camera-mode #device-panel h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 16px 0;
}
.camera-mode #device-status {
  color: #087f8c;
  font-weight: 600;
}
.camera-mode .device-next {
  padding: 16px;
  border-radius: 12px;
  background: #edf6f7;
  margin: 20px 0;
}
.camera-mode .device-next p {
  font-size: 14px;
  margin-bottom: 0;
}
.camera-mode #capture > .page-heading,
.camera-mode #next-action,
.camera-mode #setup-confirmation,
.camera-mode .table-toolbar,
.camera-mode .settings-column,
.camera-mode .transport,
.camera-mode .finish-bar,
.camera-mode .below-camera,
.camera-mode #tracking-tools,
.camera-mode #aim-tools,
.camera-mode #live-shots,
.camera-mode #capture > .hint,
.camera-mode footer {
  display: none !important;
}
.camera-mode main {
  max-width: 760px;
  padding: 0 20px 24px;
  margin: 0 auto;
}
.camera-mode .capture-grid {
  display: block;
}
.camera-mode .camera-box {
  border-radius: 18px;
}
.camera-mode #login .brand {
  pointer-events: none;
}
.camera-mode #key-login {
  display: none;
}
.camera-mode #phone-login #claim {
  width: 100%;
  background: #087f8c;
  color: white;
}

.camera-mode #camera-info,
.camera-mode #capture > p {
  display: none;
}
.camera-mode .video-bottom {
  justify-content: flex-end;
}

#position-panel {
  display: none;
}
.positioning-phone #position-panel {
  display: block;
  margin: 24px 0;
}
.positioning-phone #capture > .page-heading,
.positioning-phone #capture-steps,
.positioning-phone #next-action,
.positioning-phone .flow-links,
.positioning-phone .table-toolbar,
.positioning-phone #setup-confirmation,
.positioning-phone .settings-column,
.positioning-phone .transport,
.positioning-phone .finish-bar,
.positioning-phone .below-camera,
.positioning-phone #tracking-tools,
.positioning-phone #aim-tools,
.positioning-phone #live-shots {
  display: none !important;
}
.positioning-phone .capture-grid {
  display: block;
}
.positioning-phone .camera-box {
  border-radius: 18px;
}
.positioning-phone #capture {
  max-width: 1000px;
}
#pair-result {
  margin-top: 24px;
}
#pair-state {
  padding: 16px;
  background: #edf6f7;
  border-radius: 12px;
  color: #087f8c;
  font-weight: 600;
}
#position-panel button {
  margin-top: 8px;
}

.waiting-phone #devices .device-grid {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}
.waiting-phone #devices .device-grid > .card:last-child {
  display: none;
}
.waiting-phone #pair-result {
  text-align: center;
}
.waiting-phone #pair-qr {
  margin: 20px auto;
}

#camera-choice {
  display: none;
}
.choosing-camera #capture > :not(#camera-choice) {
  display: none !important;
}
.choosing-camera #camera-choice {
  display: block;
  max-width: 900px;
  margin: 40px auto;
  padding: 36px;
}
#camera-choice h1 {
  margin: 16px 0;
}
.camera-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.camera-choice {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  padding: 28px;
  border: 1px solid #d5e4ea;
  border-radius: 16px;
  background: #f6fafb;
  color: #182334;
}
.camera-choice strong {
  font-size: 21px;
}
.camera-choice span {
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
}
.camera-choice b {
  color: #087f8c;
  margin-top: auto;
}
.camera-choice:hover {
  border-color: #087f8c;
  background: #edf7f7;
}
@media (max-width: 650px) {
  .camera-choices {
    grid-template-columns: 1fr;
  }
  .choosing-camera #camera-choice {
    padding: 24px;
  }
}
